// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.198 on Sat Nov 21 12:16:50 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xyzw        0     NONE   float   xyz
// ATTRIBUTE               13   x           1     NONE    uint   x
// SV_VertexID              0   x           2   VERTID    uint   x
//
//
// 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
// P                        0   x           3  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o3.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[143], immediateIndexed
dcl_constantbuffer CB1[1], immediateIndexed
dcl_constantbuffer CB2[14], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_structured t0, 16
dcl_resource_buffer (float,float,float,float) t1
dcl_resource_buffer (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_input v0.xyz
dcl_input v1.x
dcl_input_sgv v2.x, vertex_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_temps 18
dcl_resource_buffer (float,float,float,float) t125
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(buffer)(float,float,float,float) r17.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o3.x, r17.z
mad r0.xyz, cb0[142].zzzz, l(0.000000, 0.000000, -10.000000, 0.000000), v0.xyzx
div r0.xyz, r0.xyzx, cb2[12].wwww
sample_l_indexable(texture2d)(float,float,float,float) r1.xy, r0.yzyy, t3.xyzw, s0, l(-1.000000)
mad r1.xy, r1.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r1.xyxx, r1.xyxx
add r0.w, -r0.w, l(1.000000)
max r0.w, r0.w, l(0.000000)
sqrt r1.z, r0.w
sample_l_indexable(texture2d)(float,float,float,float) r0.zw, r0.xzxx, t3.zwxy, s0, l(-1.000000)
sample_l_indexable(texture2d)(float,float,float,float) r0.xy, r0.xyxx, t3.xyzw, s0, l(-1.000000)
mad r2.xy, r0.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mad r0.xy, r0.zwzz, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r0.w, r0.xyxx, r0.xyxx
add r0.w, -r0.w, l(1.000000)
max r0.w, r0.w, l(0.000000)
sqrt r0.z, r0.w
add r1.xyz, -r0.xyzx, r1.xyzx
iadd r0.w, v2.x, cb1[0].w
bfi r1.w, l(31), l(1), r0.w, l(1)
imul null, r0.w, r0.w, cb1[0].y
ld_indexable(buffer)(float,float,float,float) r3.xy, r0.wwww, t1.xyzw
mov o1.xy, r3.xyxx
ld_indexable(buffer)(float,float,float,float) r3.xyz, r1.wwww, t2.xyzw
imul null, r0.w, v1.x, l(36)
imad r4.xy, v1.xxxx, l(36, 36, 0, 0), l(1, 3, 0, 0)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r4.xzw, r4.x, l(0), t0.xxyz
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r5.xyz, r4.y, l(0), t0.xyzx
add r5.xyz, r5.xyzx, cb0[70].xyzx
imad r6.xyzw, v1.xxxx, l(36, 36, 36, 36), l(4, 6, 7, 8)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyz, r6.x, l(0), t0.xyzx
mul r8.xyz, r4.xzwx, r7.yyyy
mul r4.xyz, r4.xzwx, v0.yyyy
mul r8.xyz, r3.yyyy, r8.xyzx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r9.xyz, r0.w, l(0), t0.xyzx
imad r0.w, v1.x, l(36), l(2)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r10.xyz, r0.w, l(0), t0.xyzx
mul r7.xyw, r7.xxxx, r9.xyxz
mad r4.xyz, r9.xyzx, v0.xxxx, r4.xyzx
mad r4.xyz, r10.xyzx, v0.zzzz, r4.xyzx
mul r9.xyz, r7.zzzz, r10.xyzx
add r4.xyz, r5.xyzx, r4.xyzx
mad r3.xyw, r3.xxxx, r7.xyxw, r8.xyxz
mad r3.xyz, r3.zzzz, r9.xyzx, r3.xywx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r5.x, r6.y, l(0), t0.xxxx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r5.y, r6.z, l(0), t0.xxxx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r5.z, r6.w, l(0), t0.xxxx
dp3 r0.w, r3.xyzx, r5.xyzx
mad_sat r0.w, |r0.w|, l(3.000000), l(-1.000000)
mad r0.xyz, r0.wwww, r1.xyzx, r0.xyzx
dp2 r0.w, r2.xyxx, r2.xyxx
add r0.w, -r0.w, l(1.000000)
max r0.w, r0.w, l(0.000000)
sqrt r2.z, r0.w
add r1.xyz, -r0.xyzx, r2.xyzx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r2.x, r6.y, l(8), t0.xxxx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r2.y, r6.z, l(8), t0.xxxx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r2.z, r6.w, l(8), t0.xxxx
dp3 r0.w, r3.xyzx, r2.xyzx
mad_sat r0.w, |r0.w|, l(3.000000), l(-1.000000)
mad r0.xyz, r0.wwww, r1.xyzx, r0.xyzx
mul r0.xyz, r0.xyzx, cb2[13].xxxx
add r1.xyz, r4.xyzx, -cb0[70].xyzx
imad r0.w, v1.x, l(36), l(9)
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r2.xyz, r0.w, l(0), t0.xyzx
mov r3.w, r2.x
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r5.xyz, r6.y, l(0), t0.yxzx
mov r3.x, r5.y
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyz, r6.z, l(0), t0.xzyx
ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r6.xyz, r6.w, l(0), t0.xyzx
mov r3.y, r7.x
mov r3.z, r6.x
mov r1.w, l(1.000000)
dp4 r3.x, r1.xyzw, r3.xyzw
mov r7.x, r5.z
mov r5.y, r7.z
mov r5.z, r6.y
mov r7.z, r6.z
mov r5.w, r2.y
mov r7.w, r2.z
dp4 r3.z, r1.xyzw, r7.xyzw
dp4 r3.y, r1.xyzw, r5.xyzw
mul r1.xyz, r3.xyzx, cb2[13].zzzz
mul r1.xyz, r1.xyzx, l(-1.000000, -1.000000, 0.000000, 0.000000)
mad r0.xyz, r0.xyzx, cb2[13].yyyy, r1.xyzx
add r0.xyz, r0.xyzx, r4.xyzx
mul r1.xyzw, r0.yyyy, cb0[1].xyzw
mad r1.xyzw, r0.xxxx, cb0[0].xyzw, r1.xyzw
mad r0.xyzw, r0.zzzz, cb0[2].xyzw, r1.xyzw
ld_indexable(buffer)(float,float,float,float) r12.xyzw, l(0, 0, 0, 0), t125.xyzw
ld_indexable(texture1d)(float,float,float,float) r11.xyzw, l(8, 0, 0, 0), t120.xyzw
add r13.xyzw, r0.xyzw, cb0[3].xyzw
mov r15.xyzw, r13.xyzw
mov o1.zw, v0.xxxy
mov o2.x, v0.z
mov o2.zw, l(0,0,0,0)
add r16.x, -r17.y, r15.w
mul r16.y, r17.x, r17.w
mad r16.x, r16.x, r16.y, r15.x
ne r16.y, l(1.000000), r15.w
movc r15.x, r16.y, r16.x, r15.x
mov o0.xyzw, r15.xyzw
ret
// Approximately 0 instruction slots used
