//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.58 on Sat Apr 18 21:19:46 2026
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// cursor_mask                       texture  float4          2d  100        1
// cursor_color                      texture  float4          2d  101        1
// DepthBuffer                       texture   float          2d  110        1
// IniParams                         texture  float4          1d  120        1
// StereoParams                      texture  float4          2d  125        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_VertexID              0   x           0   VERTID    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
// P                        0   x           2  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o2.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_resource_texture2d (float,float,float,float) t100
dcl_resource_texture2d (float,float,float,float) t101
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_sgv v0.x, vertex_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_temps 9
ld_indexable(buffer)(float,float,float,float) r8.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o2.x, r8.z
ld_indexable(texture1d)(float,float,float,float) r0.xyzw, l(1, 0, 0, 0), t120.xyzw
ne r0.z, l(0.000000, 0.000000, 0.000000, 0.000000), r0.z
if_z r0.z
  mov r6.xyzw, l(0,0,0,0)
  mov o1.xy, l(0,0,0,0)
  add r7.x, -r8.y, r6.w
  mul r7.y, r8.x, r8.w
  mad r7.x, r7.x, r7.y, r6.x
  ne r7.y, l(1.000000), r6.w
  movc r6.x, r7.y, r7.x, r6.x
  mov o0.xyzw, r6.xyzw
  ret
endif
resinfo_indexable(texture2d)(float,float,float,float)_uint r1.xy, l(0), t101.xyzw
if_nz r1.x
  eq r0.z, r0.w, l(2.000000)
  if_nz r0.z
    mov r6.xyzw, l(0,0,0,0)
    mov o1.xy, l(0,0,0,0)
    add r7.x, -r8.y, r6.w
    mul r7.y, r8.x, r8.w
    mad r7.x, r7.x, r7.y, r6.x
    ne r7.y, l(1.000000), r6.w
    movc r6.x, r7.y, r7.x, r6.x
    mov o0.xyzw, r6.xyzw
    ret
  endif
  utof r1.xz, r1.xxyx
else
  eq r0.z, r0.w, l(1.000000)
  if_nz r0.z
    mov r6.xyzw, l(0,0,0,0)
    mov o1.xy, l(0,0,0,0)
    add r7.x, -r8.y, r6.w
    mul r7.y, r8.x, r8.w
    mad r7.x, r7.x, r7.y, r6.x
    ne r7.y, l(1.000000), r6.w
    movc r6.x, r7.y, r7.x, r6.x
    mov o0.xyzw, r6.xyzw
    ret
  endif
  resinfo_indexable(texture2d)(float,float,float,float)_uint r0.zw, l(0), t100.zwxy
  ushr r0.w, r0.w, l(1)
  utof r1.xz, r0.zzwz
endif
ld_indexable(texture1d)(float,float,float,float) r2.xyzw, l(0, 0, 0, 0), t120.xyzw
add r2.yz, -r2.wwzw, r2.yyxy
switch v0.x
  case l(0)
  mov r2.xy, r2.zyzz
  mov r1.w, l(0)
  mov r1.xy, r1.wzww
  break
  case l(1)
  add r2.w, r1.z, r2.y
  mov r2.xy, r2.zwzz
  mov r1.xy, l(0,0,0,0)
  break
  case l(2)
  add r2.x, r1.x, r2.z
  mov r1.xy, r1.xzxx
  break
  case l(3)
  add r2.xy, r1.xzxx, r2.zyzz
  mov r1.y, l(0)
  break
  default
  mov r2.xy, l(0,0,0,0)
  mov r1.xy, l(0,0,0,0)
  break
endswitch
mov o1.xy, r1.xyxx
div r0.xy, r2.xyxx, r0.xyxx
mad r0.xy, r0.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mul r1.xy, r0.xyxx, l(1.000000, -1.000000, 0.000000, 0.000000)
ld_indexable(texture1d)(float,float,float,float) r0.z, l(88, 0, 0, 0), t120.yzxw
eq r0.z, r0.z, l(1.000000)
lt r0.w, r0.y, l(0.880000)
and r0.z, r0.w, r0.z
if_nz r0.z
  ld_indexable(buffer)(float,float,float,float) r0.zw, l(0, 0, 0, 0), t125.zwxy
  ne r2.x, r0.z, l(0.000000)
  if_nz r2.x
    add r2.x, -r0.w, l(0.000100)
    mul r2.y, r0.z, r2.x
    mad r2.x, -r2.x, r0.z, r0.z
    mul r0.w, r0.w, r0.z
    mul r0.w, r0.w, l(5.000000)
    resinfo_indexable(texture2d)(float,float,float,float)_uint r2.zw, l(0), t110.zwxy
    iadd r3.xy, r2.zwzz, l(-1, -1, 0, 0)
    mad r0.y, r0.y, l(0.500000), l(0.500000)
    utof r2.zw, r2.zzzw
    mul r0.y, r0.y, r2.w
    max r0.y, r0.y, l(0.000000)
    utof r3.xy, r3.xyxx
    min r0.y, r0.y, r3.y
    ftoi r4.y, r0.y
    mov r4.zw, l(0,0,0,0)
    mov r0.y, r2.y
    mov r2.w, r2.y
    mov r3.yz, l(0,0,0,0)
    loop
      uge r3.w, r3.y, l(255)
      mov r3.z, l(0)
      breakc_nz r3.w
      mad r2.w, r2.x, l(0.00392156886), r2.w
      mad r3.w, r0.x, l(1.000000), r2.w
      mad r3.w, r3.w, l(0.500000), l(0.500000)
      mul r3.w, r2.z, r3.w
      max r3.w, r3.w, l(0.000000)
      min r3.w, r3.x, r3.w
      ftoi r4.x, r3.w
      ld_indexable(texture2d)(float,float,float,float) r3.w, r4.xyzw, t110.yzwx
      ne r4.x, r3.w, l(1.000000)
      add r5.x, -r3.w, l(1.000000)
      mul r5.x, r5.x, l(0.000100)
      div r5.x, l(0.000100), r5.x
      add r3.w, r3.w, r5.x
      and r3.w, r3.w, r4.x
      eq r4.x, r3.w, l(0.000000)
      if_nz r4.x
        mov r3.z, l(-1)
        break
      endif
      add r5.x, r0.z, -r2.w
      div r5.x, r0.w, r5.x
      lt r3.w, r3.w, r5.x
      if_nz r3.w
        mov r3.z, l(0)
        break
      endif
      mov r0.y, r2.w
      iadd r3.y, r3.y, l(1)
      mov r3.z, r4.x
    endloop
    movc r0.y, r3.z, l(0), r0.y
  else
    mov r0.y, l(0)
  endif
  mad r1.x, r0.x, l(1.000000), r0.y
endif
mov r1.zw, l(0,0,0,1.000000)
mov r6.xyzw, r1.xyzw
add r7.x, -r8.y, r6.w
mul r7.y, r8.x, r8.w
mad r7.x, r7.x, r7.y, r6.x
ne r7.y, l(1.000000), r6.w
movc r6.x, r7.y, r7.x, r6.x
mov o0.xyzw, r6.xyzw
ret
// Approximately 126 instruction slots used
