// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.58 on Sat Apr 25 22:30:27 2026
//
//
// Buffer Definitions:
//
// cbuffer cb4
// {
//
//   float4 cb4[276];                   // Index:    0-275            Components:  1104
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// DepthBuffer                       texture   float          2d  110        1
// IniParams                         texture  float4          1d  120        1
// StereoParams                      texture  float4          2d  125        1
// cb4                               cbuffer      NA          NA    4        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// COLOR                    0   xyzw        1     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 8   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float   xyzw
// COLOR                    1   xyzw        3     NONE   float   xyzw
// TEXCOORD                 9   xyzw        4     NONE   float   xyzw
// TEXCOORD                 0   xyzw        5     NONE   float   xyzw
// TEXCOORD                 1   xyzw        6     NONE   float   xyzw
// TEXCOORD                 2   xyzw        7     NONE   float   xyzw
// TEXCOORD                 3   xyzw        8     NONE   float   xyzw
// TEXCOORD                 4   xyzw        9     NONE   float   xyzw
// TEXCOORD                 5   xyzw       10     NONE   float   xyzw
// TEXCOORD                 6   xyzw       11     NONE   float   xyzw
// TEXCOORD                 7   xyzw       12     NONE   float   xyzw
// P                        0   x          13  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o13.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB4[34], immediateIndexed
dcl_resource_texture2d (float,float,float,float) t110
dcl_resource_texture1d (float,float,float,float) t120
dcl_resource_buffer (float,float,float,float) t125
dcl_input v0.xyzw
dcl_input v1.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_output o7.xyzw
dcl_output o8.xyzw
dcl_output o9.xyzw
dcl_output o10.xyzw
dcl_output o11.xyzw
dcl_output o12.xyzw
dcl_temps 10
ld_indexable(buffer)(float,float,float,float) r9.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o13.x, r9.z
ld_indexable(buffer)(float,float,float,float) r0.xy, l(0, 0, 0, 0), t125.xyzw
ld_indexable(texture1d)(float,float,float,float) r0.z, l(80, 0, 0, 0), t120.xyzw
ld_indexable(texture1d)(float,float,float,float) r0.w, l(88, 0, 0, 0), t120.yzwx
mul r1.xyzw, v0.yyyy, cb4[21].xyzw
mad r1.xyzw, cb4[20].xyzw, v0.xxxx, r1.xyzw
mad r1.xyzw, cb4[22].xyzw, v0.zzzz, r1.xyzw
mad r1.xyzw, cb4[23].xyzw, v0.wwww, r1.xyzw
mul o2.xyzw, v1.xyzw, cb4[32].xyzw
mul r2.x, v0.y, cb4[29].z
mad r2.x, cb4[28].z, v0.x, r2.x
mad r2.x, cb4[30].z, v0.z, r2.x
mad r2.x, cb4[31].z, v0.w, r2.x
max r2.x, r2.x, l(0.100000)
mul r2.yzw, v0.yyyy, cb4[25].xxyz
mad r2.yzw, cb4[24].xxyz, v0.xxxx, r2.yyzw
mad r2.yzw, cb4[26].xxyz, v0.zzzz, r2.yyzw
mad r2.yzw, cb4[27].xxyz, v0.wwww, r2.yyzw
dp3 r2.y, r2.yzwy, r2.yzwy
rsq r2.y, r2.y
ftoi r2.z, r2.y
ieq r2.z, r2.z, l(0x7f800000)
rcp r2.xy, r2.xyxx
movc r2.y, r2.z, l(0), r2.y
ftou r2.z, r2.y
and r2.z, r2.z, l(0x7fffffff)
utof r2.z, r2.z
ftoi r2.z, r2.z
ieq r2.z, r2.z, l(0x7f800000)
movc r2.y, r2.z, l(0x7f800000), r2.y
mul r2.z, r2.y, r2.y
mul r2.x, r2.x, r2.z
mul r2.xy, r2.xyxx, cb4[33].xxxx
mad r2.x, r2.y, l(4.000000), r2.x
mul r2.x, r2.x, cb4[33].x
exp r2.x, r2.x
rcp r2.x, r2.x
ftou r2.y, r2.x
and r2.y, r2.y, l(0x7fffffff)
utof r2.y, r2.y
ftoi r2.y, r2.y
ieq r2.y, r2.y, l(0x7f800000)
movc o4.x, r2.y, l(0x7f800000), r2.x
ne r2.x, r0.w, l(1.000000)
ne r2.y, r1.w, l(1.000000)
add r2.z, -r0.y, r1.w
mad r2.w, -r0.x, r2.z, r1.x
mad r0.z, r0.x, r0.z, r2.w
movc r0.z, r2.y, r0.z, r1.x
movc r3.x, r2.x, r0.z, r1.x
eq r0.z, r0.w, l(1.000000)
if_nz r0.z
  if_nz r2.y
    mad r0.z, -r0.x, r2.z, r3.x
    ne r0.w, r0.x, l(0.000000)
    if_nz r0.w
      ld_indexable(texture1d)(float,float,float,float) r2.xy, l(0, 0, 0, 0), t120.xyzw
      mad r2.xy, r2.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
      add r0.w, -r0.y, l(0.000100)
      mul r2.z, r0.x, r0.w
      mad r0.w, -r0.w, r0.x, r0.x
      mul r0.y, r0.y, r0.x
      mul r0.y, r0.y, l(5.000000)
      resinfo_indexable(texture2d)(float,float,float,float)_uint r4.xy, l(0), t110.xyzw
      iadd r4.zw, r4.xxxy, l(0, 0, -1, -1)
      mad r2.y, r2.y, l(0.500000), l(0.500000)
      utof r4.xy, r4.xyxx
      mul r2.y, r2.y, r4.y
      max r2.y, r2.y, l(0.000000)
      utof r4.yz, r4.zzwz
      min r2.y, r2.y, r4.z
      ftoi r5.y, r2.y
      mov r5.zw, l(0,0,0,0)
      mov r2.y, l(0)
      mov r2.w, r2.z
      mov r4.z, r2.z
      mov r4.w, l(0)
      mov r6.x, l(0)
      loop
        uge r6.y, r4.w, l(255)
        mov r6.x, l(0)
        breakc_nz r6.y
        mad r4.z, r0.w, l(0.00392156886), r4.z
        add r6.y, r2.x, r4.z
        mad r6.y, r6.y, l(0.500000), l(0.500000)
        mul r6.y, r4.x, r6.y
        max r6.y, r6.y, l(0.000000)
        min r6.y, r4.y, r6.y
        ftoi r5.x, r6.y
        ld_indexable(texture2d)(float,float,float,float) r5.x, r5.xyzw, t110.xyzw
        ne r6.y, r5.x, l(1.000000)
        add r6.z, -r5.x, l(1.000000)
        mul r6.z, r6.z, l(0.000100)
        div r6.z, l(0.000100), r6.z
        add r5.x, r5.x, r6.z
        and r5.x, r5.x, r6.y
        eq r6.y, r5.x, l(0.000000)
        if_nz r6.y
          mov r2.y, r0.x
          mov r6.x, l(-1)
          break
        endif
        add r6.z, r0.x, -r4.z
        div r6.z, r0.y, r6.z
        lt r5.x, r5.x, r6.z
        if_nz r5.x
          mov r2.y, l(0)
          mov r6.x, l(0)
          break
        endif
        mov r2.w, r4.z
        iadd r4.w, r4.w, l(1)
        mov r6.x, r6.y
        mov r2.y, l(0)
      endloop
      movc r0.x, r6.x, r2.y, r2.w
    else
      mov r0.x, l(0)
    endif
    mad r3.x, r0.x, r1.w, r0.z
  endif
endif
mov r3.yzw, r1.yyzw
mov r7.xyzw, r3.xyzw
mov o1.xyzw, r1.xyzw
mov o3.xyzw, l(0,0,0,1.000000)
mov o4.yzw, l(0,0,0,0)
mov o5.xyzw, l(0,0,0,1.000000)
mov o6.xyzw, l(0,0,0,1.000000)
mov o7.xyzw, l(0,0,0,1.000000)
mov o8.xyzw, l(0,0,0,1.000000)
mov o9.xyzw, l(0,0,0,1.000000)
mov o10.xyzw, l(0,0,0,1.000000)
mov o11.xyzw, l(0,0,0,1.000000)
mov o12.xyzw, l(0,0,0,1.000000)
add r8.x, -r9.y, r7.w
mul r8.y, r9.x, r9.w
mad r8.x, r8.x, r8.y, r7.x
ne r8.y, l(1.000000), r7.w
movc r7.x, r8.y, r8.x, r7.x
mov o0.xyzw, r7.xyzw
ret
// Approximately 135 instruction slots used
