// MANUALLY DUMPED [ShaderRegexHalo2] Exception 2. Sun and moon at screen depth.
//
// Generated by Microsoft (R) HLSL Shader Compiler 6.3.9600.16384
//
//   using 3Dmigoto v1.3.16 on Fri Feb 05 17:19:22 2021
//
//
// Buffer Definitions:
//
// cbuffer $Globals
// {
//
//   row_major float4x4 g_mC2L;         // Index:    0 1 2 3          Components:    16
//   float g_fProjFarZ;                 // Index:    4.x              Components:     1
//   row_major float4x4 g_mL2G;         // Index:    5 6 7 8          Components:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xy          0     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[9], immediateIndexed
dcl_input v0.xy
dcl_output_siv o0.xyzw, position

dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_temps 4
dcl_resource_texture2d (float,float,float,float) t125
mov r0.xy, v0.xyxx
mov r0.z, cb0[4].x
mov r0.w, l(1.000000)

mov o1.xyzw, r0.xyzw

ld_indexable(texture2d)(float,float,float,float) r2.xyzw, l(0, 0, 0, 0), t125.xyzw
//ieq r3.x, r0.w, l(1.0)
//if_z r3.x
add r2.w, r0.w, l(0.0)
mad r0.x, r2.x, r2.w, r0.x
//endif

mov o0.xyzw, r0.xyzw

mul r0.xyzw, v0.yyyy, cb0[1].xyzw
mad r0.xyzw, v0.xxxx, cb0[0].xyzw, r0.xyzw
mad r0.xyzw, cb0[4].xxxx, cb0[2].xyzw, r0.xyzw
add r0.xyzw, r0.xyzw, cb0[3].xyzw
mov o2.xyzw, r0.xyzw
mul r1.xyzw, r0.yyyy, cb0[6].xyzw
mad r1.xyzw, r0.xxxx, cb0[5].xyzw, r1.xyzw
mad r1.xyzw, r0.zzzz, cb0[7].xyzw, r1.xyzw
mad o3.xyzw, r0.wwww, cb0[8].xyzw, r1.xyzw
ret
// Approximately 15 instruction slots used
