// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.163 on Fri Oct 31 20:25:25 2025
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xyz
// TEXCOORD                 0   xy          1     NONE   float   xy
// SV_InstanceID            0   x           2   INSTID    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyz         1     NONE   float   xyz
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyz         3     NONE   float   xyz
// TEXCOORD                 3   x           4     NONE     int   x
// P                        0   x           5  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o5.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB1[1], immediateIndexed
dcl_resource_structured t15, 128
dcl_input v0.xyz
dcl_input v1.xy
dcl_input_sgv v2.x, instance_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xyz
dcl_output o2.xyzw
dcl_output o3.xyz
dcl_output o4.x
dcl_temps 36
dcl_resource_buffer (float,float,float,float) t125
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(buffer)(float,float,float,float) r35.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o5.x, r35.z
ld_indexable(buffer)(float,float,float,float) r25.xyzw, l(0, 0, 0, 0), t125.xyzw
ld_indexable(texture1d)(float,float,float,float) r23.xyzw, l(3, 0, 0, 0), t120.xyzw
ld_indexable(texture1d)(float,float,float,float) r31.xyzw, l(11, 0, 0, 0), t120.xyzw
mov r0.xyz, v0.xyzx
mov r0.w, l(1.000000)
iadd r1.x, v2.x, cb1[0].x
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r2.xyzw, r1.x, l(0), t15.xyzw
dp4 r10.x, r0.xyzw, r2.xyzw
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r2.xyzw, r1.x, l(16), t15.xyzw
dp4 r10.y, r0.xyzw, r2.xyzw
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r2.xyzw, r1.x, l(32), t15.xyzw
dp4 r10.z, r0.xyzw, r2.xyzw
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r2.xyzw, r1.x, l(48), t15.xyzw
dp4 r10.w, r0.xyzw, r2.xyzw
mad r0.xy, v1.xyxx, l(1.000000, -1.000000, 0.000000, 0.000000), l(0.000000, 1.000000, 0.000000, 0.000000)
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r2.xyzw, r1.x, l(80), t15.xyzw
mad o1.xy, r0.xyxx, r2.zwzz, r2.xyxx
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r0.xyzw, r1.x, l(112), t15.xyzw
and r0.x, r0.x, l(256)
mov o3.xyz, r0.yzwy
movc o1.z, r0.x, l(1.000000), l(0)
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) o2.xyzw, r1.x, l(64), t15.xyzw
ld_structured_indexable(structured_buffer, stride=128)(mixed,mixed,mixed,mixed) r0.x, r1.x, l(96), t15.xxxx
ftoi o4.x, r0.x
eq r11.x, r10.w, l(1.000000)
ne r11.y, r23.w, l(10.000000)
eq r11.z, r31.y, l(0.000000)
eq r11.w, r31.x, l(1.000000)
and r12.x, r11.x, r11.y
and r12.x, r12.x, r11.z
and r12.x, r12.x, r11.w
if_nz r12.x
  mad r10.x, r25.x, l(0.300000), r10.x
endif
mov r33.xyzw, r10.xyzw
add r34.x, -r35.y, r33.w
mul r34.y, r35.x, r35.w
mad r34.x, r34.x, r34.y, r33.x
ne r34.y, l(1.000000), r33.w
movc r33.x, r34.y, r34.x, r33.x
mov o0.xyzw, r33.xyzw
ret
// Approximately 0 instruction slots used
