//wrong effect
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Sun May 10 13:53:48 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xy          0     NONE   float   xy
// SV_VertexID              0   x           1   VERTID    uint   x
// 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
// PARTICLE_DYNAMIC_PARAM     1   xyzw        1     NONE   float   xyzw
// TEXCOORD                 0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 1   xyzw        3     NONE   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[71], immediateIndexed
dcl_constantbuffer CB1[5], immediateIndexed
dcl_constantbuffer CB2[2], immediateIndexed
dcl_constantbuffer CB3[32], immediateIndexed
dcl_resource_buffer (float,float,float,float) t0
dcl_resource_buffer (float,float,float,float) t1
dcl_resource_buffer (float,float,float,float) t2
dcl_resource_buffer (sint,sint,sint,sint) t3
dcl_input v0.xy
dcl_input_sgv v1.x, vertex_id
dcl_input_sgv v2.x, instance_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_temps 23
ine r0.x, cb2[1].x, l(-1)
if_nz r0.x
  iadd r0.x, v2.x, cb2[1].x
  ld_indexable(buffer)(sint,sint,sint,sint) r0.x, r0.xxxx, t3.xyzw
else
  mov r0.x, v2.x
endif
ieq r0.yz, cb3[9].xxzx, l(0, -1, -1, 0)
if_nz r0.y
  mov r1.xyz, cb3[16].xyzx
endif
if_z r0.y
  and r0.yw, cb3[9].xxxx, l(0, 0x80000000, 0, 0x7fffffff)
  if_nz r0.y
    imad r0.y, r0.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.x, r0.yyyy, t2.xyzw
    iadd r2.xy, r0.wwww, l(1, 2, 0, 0)
    imad r2.xy, r2.xyxx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.y, r2.xxxx, t2.yxzw
    ld_indexable(buffer)(float,float,float,float) r1.z, r2.yyyy, t2.yzxw
  else
    imad r0.y, r0.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.x, r0.yyyy, t1.xyzw
    iadd r0.yw, r0.wwww, l(0, 1, 0, 2)
    imad r0.yw, r0.yyyw, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.y, r0.yyyy, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r1.z, r0.wwww, t1.yzxw
  endif
endif
mul r2.xyz, r1.yyyy, cb1[1].xyzx
mad r2.xyz, cb1[0].xyzx, r1.xxxx, r2.xyzx
mad r2.xyz, cb1[2].xyzx, r1.zzzz, r2.xyzx
add r2.xyz, r2.xyzx, cb1[3].xyzx
movc r1.xyz, cb3[0].xxxx, r2.xyzx, r1.xyzx
ieq r0.yw, cb3[10].xxxz, l(0, -1, 0, -1)
if_nz r0.y
  mov r1.w, cb3[21].w
endif
if_z r0.y
  and r2.xy, cb3[10].xxxx, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r2.x
    imad r0.y, r2.y, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.w, r0.yyyy, t2.yzwx
  else
    imad r0.y, r2.y, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.w, r0.yyyy, t1.yzwx
  endif
endif
mul r0.y, r1.w, cb3[7].x
if_nz r0.w
  mov r2.xy, cb3[18].xyxx
endif
if_z r0.w
  and r2.zw, cb3[10].zzzz, l(0, 0, 0x80000000, 0x7fffffff)
  if_nz r2.z
    imad r0.w, r2.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.x, r0.wwww, t2.xyzw
    iadd r0.w, r2.w, l(1)
    imad r0.w, r0.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.y, r0.wwww, t2.yxzw
  else
    imad r0.w, r2.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.x, r0.wwww, t1.xyzw
    iadd r0.w, r2.w, l(1)
    imad r0.w, r0.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.y, r0.wwww, t1.yxzw
  endif
endif
if_nz r0.z
  mov r3.xyz, cb3[20].xyzx
endif
if_z r0.z
  and r0.zw, cb3[9].zzzz, l(0, 0, 0x80000000, 0x7fffffff)
  if_nz r0.z
    imad r0.z, r0.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r3.x, r0.zzzz, t2.xyzw
    iadd r2.zw, r0.wwww, l(0, 0, 1, 2)
    imad r2.zw, r2.zzzw, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r3.y, r2.zzzz, t2.yxzw
    ld_indexable(buffer)(float,float,float,float) r3.z, r2.wwww, t2.yzxw
  else
    imad r0.z, r0.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r3.x, r0.zzzz, t1.xyzw
    iadd r0.zw, r0.wwww, l(0, 0, 1, 2)
    imad r0.zw, r0.zzzw, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r3.y, r0.zzzz, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r3.z, r0.wwww, t1.yzxw
  endif
endif
mul r4.xyz, cb1[0].xyzx, cb1[4].xxxx
mul r5.xyz, cb1[1].xyzx, cb1[4].yyyy
mul r6.xyz, cb1[2].xyzx, cb1[4].zzzz
ieq r0.zw, cb3[11].xxxy, l(0, 0, -1, -1)
if_nz r0.z
  mov r1.w, cb3[25].x
endif
if_z r0.z
  and r2.zw, cb3[11].xxxx, l(0, 0, 0x80000000, 0x7fffffff)
  if_nz r2.z
    imad r0.z, r2.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.w, r0.zzzz, t2.yzwx
  else
    imad r0.z, r2.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.w, r0.zzzz, t1.yzwx
  endif
endif
ieq r2.zw, cb3[12].wwwx, l(0, 0, -1, -1)
if_nz r2.z
  mov r7.xyz, cb3[26].xyzx
endif
if_z r2.z
  and r8.xy, cb3[12].wwww, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r8.x
    imad r0.z, r8.y, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r7.x, r0.zzzz, t2.xyzw
    iadd r8.xz, r8.yyyy, l(1, 0, 2, 0)
    imad r8.xz, r8.xxzx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r7.y, r8.xxxx, t2.yxzw
    ld_indexable(buffer)(float,float,float,float) r7.z, r8.zzzz, t2.yzxw
  else
    imad r0.z, r8.y, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r7.x, r0.zzzz, t1.xyzw
    iadd r8.xy, r8.yyyy, l(1, 2, 0, 0)
    imad r8.xy, r8.xyxx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r7.y, r8.xxxx, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r7.z, r8.yyyy, t1.yzxw
  endif
endif
mul r8.xyz, r5.zxyz, r7.yyyy
mad r8.xyz, r4.zxyz, r7.xxxx, r8.xyzx
mad r8.xyz, r6.zxyz, r7.zzzz, r8.xyzx
movc r7.xyz, cb3[0].xxxx, r8.xyzx, r7.zxyz
dp3 r0.z, r7.xyzx, r7.xyzx
sqrt r0.z, r0.z
max r0.z, r0.z, l(0.000001)
div r7.xyz, r7.xyzx, r0.zzzz
ieq r0.z, cb3[13].y, l(-1)
if_nz r0.z
  mov r8.xyz, cb3[28].xyzx
endif
if_z r0.z
  and r9.xy, cb3[13].yyyy, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r9.x
    imad r0.z, r9.y, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r8.x, r0.zzzz, t2.xyzw
    iadd r9.xz, r9.yyyy, l(1, 0, 2, 0)
    imad r9.xz, r9.xxzx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r8.y, r9.xxxx, t2.yxzw
    ld_indexable(buffer)(float,float,float,float) r8.z, r9.zzzz, t2.yzxw
  else
    imad r0.z, r9.y, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r8.x, r0.zzzz, t1.xyzw
    iadd r9.xy, r9.yyyy, l(1, 2, 0, 0)
    imad r9.xy, r9.xyxx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r8.y, r9.xxxx, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r8.z, r9.yyyy, t1.yzxw
  endif
endif
ieq r9.xyz, cb3[14].wzxw, l(-1, -1, -1, 0)
if_nz r9.x
  mov r10.xy, cb3[8].xyxx
endif
if_z r9.x
  and r9.xw, cb3[14].wwww, l(0x80000000, 0, 0, 0x7fffffff)
  if_nz r9.x
    imad r0.z, r9.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r10.x, r0.zzzz, t2.xyzw
    iadd r0.z, r9.w, l(1)
    imad r0.z, r0.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r10.y, r0.zzzz, t2.yxzw
  else
    imad r0.z, r9.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r10.x, r0.zzzz, t1.xyzw
    iadd r0.z, r9.w, l(1)
    imad r0.z, r0.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r10.y, r0.zzzz, t1.yxzw
  endif
endif
if_nz r9.y
  mov r9.xw, cb3[19].xxxy
endif
if_z r9.y
  and r10.zw, cb3[14].zzzz, l(0, 0, 0x80000000, 0x7fffffff)
  if_nz r10.z
    imad r0.z, r10.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r9.x, r0.zzzz, t2.xzwy
    iadd r0.z, r10.w, l(1)
    imad r0.z, r0.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r9.w, r0.zzzz, t2.yzwx
  else
    imad r0.z, r10.w, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r9.x, r0.zzzz, t1.xzwy
    iadd r0.z, r10.w, l(1)
    imad r0.z, r0.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r9.w, r0.zzzz, t1.yzwx
  endif
endif
add r11.xyz, -r1.zxyz, cb0[67].zxyz
dp3 r0.z, r11.xyzx, r11.xyzx
sqrt r2.z, r0.z
max r2.z, r2.z, l(0.000001)
div r11.xyz, r11.xyzx, r2.zzzz
if_nz r9.z
  mov r2.z, cb3[24].y
endif
if_z r9.z
  and r9.yz, cb3[14].xxxx, l(0, 0x80000000, 0x7fffffff, 0)
  if_nz r9.y
    imad r3.w, r9.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.z, r3.wwww, t2.yzxw
  else
    imad r3.w, r9.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.z, r3.wwww, t1.yzxw
  endif
endif
if_nz r0.w
  mov o2.xyzw, cb3[23].xyzw
endif
if_z r0.w
  and r9.yz, cb3[11].yyyy, l(0, 0x80000000, 0x7fffffff, 0)
  if_nz r9.y
    imad r0.w, r9.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.w, r0.wwww, t2.yzwx
    iadd r12.xyz, r9.zzzz, l(1, 2, 3, 0)
    imad r12.xyz, r12.xyzx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r3.w, r12.xxxx, t2.yzwx
    ld_indexable(buffer)(float,float,float,float) r4.w, r12.yyyy, t2.yzwx
    ld_indexable(buffer)(float,float,float,float) r5.w, r12.zzzz, t2.yzwx
    mov o2.x, r0.w
    mov o2.y, r3.w
    mov o2.z, r4.w
    mov o2.w, r5.w
  else
    imad r0.w, r9.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.w, r0.wwww, t1.yzwx
    iadd r12.xyz, r9.zzzz, l(1, 2, 3, 0)
    imad r12.xyz, r12.xyzx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r3.w, r12.xxxx, t1.yzwx
    ld_indexable(buffer)(float,float,float,float) r4.w, r12.yyyy, t1.yzwx
    ld_indexable(buffer)(float,float,float,float) r5.w, r12.zzzz, t1.yzwx
    mov o2.x, r0.w
    mov o2.y, r3.w
    mov o2.z, r4.w
    mov o2.w, r5.w
  endif
endif
if_nz r2.w
  mov o1.xyzw, cb3[31].xyzw
endif
if_z r2.w
  and r9.yz, cb3[12].xxxx, l(0, 0x80000000, 0x7fffffff, 0)
  if_nz r9.y
    imad r0.w, r9.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.w, r0.wwww, t2.yzwx
    iadd r12.xyz, r9.zzzz, l(1, 2, 3, 0)
    imad r12.xyz, r12.xyzx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r2.w, r12.xxxx, t2.yzwx
    ld_indexable(buffer)(float,float,float,float) r3.w, r12.yyyy, t2.yzwx
    ld_indexable(buffer)(float,float,float,float) r4.w, r12.zzzz, t2.yzwx
    mov o1.x, r0.w
    mov o1.y, r2.w
    mov o1.z, r3.w
    mov o1.w, r4.w
  else
    imad r0.w, r9.z, cb2[0].y, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.w, r0.wwww, t1.yzwx
    iadd r12.xyz, r9.zzzz, l(1, 2, 3, 0)
    imad r12.xyz, r12.xyzx, cb2[0].yyyy, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r0.x, r12.xxxx, t1.xyzw
    ld_indexable(buffer)(float,float,float,float) r2.w, r12.yyyy, t1.yzwx
    ld_indexable(buffer)(float,float,float,float) r3.w, r12.zzzz, t1.yzwx
    mov o1.xy, r0.wxww
    mov o1.z, r2.w
    mov o1.w, r3.w
  endif
endif
ieq r0.x, cb2[0].w, l(2)
movc r7.xyz, r0.xxxx, r7.xyzx, r11.xyzx
if_z cb2[0].z
  add r12.xyz, -cb0[62].xyzx, cb0[64].xyzx
  mad r12.xyz, cb3[5].wwww, r12.xyzx, cb0[62].xyzx
  add r13.xyz, -cb0[61].yzxy, cb0[63].yzxy
  mad r13.xyz, cb3[5].wwww, r13.xyzx, cb0[61].yzxy
  mul r14.xyz, r13.xyzx, -cb0[60].zxyz
  mad r14.xyz, -cb0[60].yzxy, r13.yzxy, -r14.xyzx
  dp3 r0.w, r14.xyzx, r14.xyzx
  sqrt r0.w, r0.w
  max r0.w, r0.w, l(0.000001)
  div r14.xyz, r14.xyzx, r0.wwww
  mul r15.xyz, r14.yzxy, -cb0[60].zxyz
  mad r15.xyz, -cb0[60].yzxy, r14.zxyz, -r15.xyzx
  mul r16.xyz, r7.xyzx, r13.xyzx
  mad r16.xyz, r7.zxyz, r13.yzxy, -r16.xyzx
  dp3 r0.w, r16.xyzx, r16.xyzx
  sqrt r0.w, r0.w
  max r0.w, r0.w, l(0.000001)
  div r16.xyz, r16.xyzx, r0.wwww
  mul r17.xyz, r7.xyzx, r16.yzxy
  mad r17.xyz, r7.zxyz, r16.zxyz, -r17.xyzx
  mul r18.xyz, r11.xyzx, l(0.000000, 1.000000, 0.000000, 0.000000)
  mad r18.xyz, r11.zxyz, l(1.000000, 0.000000, 0.000000, 0.000000), -r18.xyzx
  dp2 r0.w, r18.xyxx, r18.xyxx
  sqrt r0.w, r0.w
  max r0.w, r0.w, l(0.000001)
  div r19.xyz, r18.xyzx, r0.wwww
  mul r20.xyz, r11.xyzx, r19.yzxy
  mad r20.xyz, r11.zxyz, r19.zxyz, -r20.xyzx
  mad_sat r0.z, r0.z, cb3[5].y, -cb3[5].z
  mul r21.xyz, r11.xyzx, r18.yzxy
  mad r21.xyz, r11.zxyz, r18.zxyz, -r21.xyzx
  add r22.xyz, r12.xyzx, -r18.xyzx
  mad r18.xyz, r0.zzzz, r22.xyzx, r18.xyzx
  add r22.xyz, -r13.zxyz, -r21.xyzx
  mad r21.xyz, r0.zzzz, r22.xyzx, r21.xyzx
  ieq r0.zw, cb2[0].wwww, l(0, 0, 4, 1)
  movc r16.xyz, r0.xxxx, r16.xyzx, r19.xyzx
  movc r17.xyz, r0.xxxx, r17.xyzx, r20.xyzx
  movc r14.xyz, r0.wwww, r14.xyzx, r16.xyzx
  movc r15.xyz, r0.wwww, r15.xyzx, r17.xyzx
  movc r12.xyz, cb2[0].wwww, r14.xyzx, r12.xyzx
  movc r13.xyz, cb2[0].wwww, r15.xyzx, -r13.zxyz
  movc r12.xyz, r0.zzzz, r18.xyzx, r12.xyzx
  movc r13.xyz, r0.zzzz, r21.xyzx, r13.xyzx
else
  mul r14.xyz, r3.yyyy, r5.xyzx
  mad r14.xyz, r4.xyzx, r3.xxxx, r14.xyzx
  mad r14.xyz, r6.xyzx, r3.zzzz, r14.xyzx
  movc r3.xyz, cb3[0].xxxx, r14.xyzx, r3.xyzx
  mul r5.xyz, r5.xyzx, r8.yyyy
  mad r4.xyz, r4.xyzx, r8.xxxx, r5.xyzx
  mad r4.xyz, r6.xyzx, r8.zzzz, r4.xyzx
  movc r4.xyz, cb3[0].xxxx, r4.xyzx, r8.xyzx
  dp3 r0.z, r4.xyzx, r4.xyzx
  sqrt r0.z, r0.z
  max r0.z, r0.z, l(0.000001)
  div r4.xyz, r4.xyzx, r0.zzzz
  dp3 r0.z, r3.xyzx, r3.xyzx
  sqrt r0.z, r0.z
  lt r0.w, l(0.000001), r0.z
  div r3.xyz, r3.xyzx, r0.zzzz
  movc r3.xyz, r0.wwww, r3.xyzx, l(0,0,1.000000,0)
  ieq r0.z, cb2[0].z, l(2)
  and r0.z, r0.z, l(0x3f800000)
  add r4.xyz, -r3.xyzx, r4.xyzx
  mad r3.xyz, r0.zzzz, r4.xyzx, r3.xyzx
  mul r4.xyz, r3.yzxy, r7.xyzx
  mad r4.xyz, r7.zxyz, r3.zxyz, -r4.xyzx
  dp3 r0.z, r4.xyzx, r4.xyzx
  sqrt r0.z, r0.z
  max r0.z, r0.z, l(0.000001)
  div r12.xyz, r4.xyzx, r0.zzzz
  mul r4.xyz, r7.xyzx, r12.yzxy
  mad r4.xyz, r7.zxyz, r12.zxyz, -r4.xyzx
  and r0.x, r0.x, l(0x3f800000)
  add r4.xyz, r3.xyzx, r4.xyzx
  mad r13.xyz, r0.xxxx, r4.xyzx, -r3.xyzx
endif
mad r0.x, r0.y, l(0.0174532942), cb3[7].y
sincos r0.x, r3.x, r0.x
mul r0.yzw, r0.xxxx, r12.xxyz
mul r3.yzw, r3.xxxx, r12.xxyz
mad r3.yzw, r13.xxyz, r0.xxxx, r3.yyzw
mad r0.xyz, r13.xyzx, r3.xxxx, -r0.yzwy
lt r4.xy, l(0.000000, 0.000000, 0.000000, 0.000000), r2.xyxx
lt r4.zw, r2.xxxy, l(0.000000, 0.000000, 0.000000, 0.000000)
iadd r4.xy, -r4.xyxx, r4.zwzz
itof r4.xy, r4.xyxx
if_nz cb2[0].x
  ieq r0.w, cb2[0].x, l(8)
  movc r0.w, r0.w, l(7), l(3)
  and r0.w, r0.w, v1.x
  mul r2.w, cb3[4].y, cb3[4].x
  div r3.x, r1.w, r2.w
  ge r4.z, r3.x, -r3.x
  frc r3.x, |r3.x|
  movc r3.x, r4.z, r3.x, -r3.x
  mul r2.w, r2.w, r3.x
  ftou r2.w, r2.w
  mul r3.x, r4.y, r4.x
  lt r3.x, r3.x, l(0.000000)
  iadd r4.z, cb2[0].x, l(-1)
  iadd r4.z, -r0.w, r4.z
  movc r0.w, r3.x, r4.z, r0.w
  imad r0.w, r2.w, cb2[0].x, r0.w
  ld_indexable(buffer)(float,float,float,float) r4.zw, r0.wwww, t0.zwxy
  lt r5.xy, r4.xyxx, l(0.000000, 0.000000, 0.000000, 0.000000)
  add r5.zw, -r4.zzzw, l(0.000000, 0.000000, 1.000000, 1.000000)
  movc r5.xy, r5.xyxx, r5.zwzz, r4.zwzz
else
  lt r4.xy, r4.xyxx, l(0.000000, 0.000000, 0.000000, 0.000000)
  add r5.zw, -v0.xxxy, l(0.000000, 0.000000, 1.000000, 1.000000)
  movc r4.zw, r4.xxxy, r5.zzzw, v0.xxxy
  mov r5.xy, v0.xyxx
endif
add r4.xy, r4.zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
mad r4.xy, r4.xyxx, r9.xwxx, l(0.500000, 0.500000, 0.000000, 0.000000)
add r4.zw, -r10.xxxy, r5.xxxy
mul r2.xy, |r2.xyxx|, r4.zwzz
mul r0.xyz, r0.xyzx, r2.yyyy
mad r0.xyz, r2.xxxx, r3.yzwy, r0.xyzx
mad r0.xyz, r11.yzxy, r2.zzzz, r0.xyzx
add r0.xyz, r0.xyzx, r1.xyzx
frc r0.w, r1.w
add r0.w, -r0.w, r1.w
add r1.x, r0.w, l(1.000000)
div r1.y, r0.w, cb3[4].x
ge r1.z, r1.y, -r1.y
frc r1.y, |r1.y|
movc r1.y, r1.z, r1.y, -r1.y
mul r2.x, r1.y, cb3[4].x
div r1.y, r1.x, cb3[4].x
ge r1.z, r1.y, -r1.y
frc r1.y, |r1.y|
movc r1.y, r1.z, r1.y, -r1.y
mul r1.z, r1.y, cb3[4].x
mul r0.w, r0.w, cb3[4].z
round_ni r2.y, r0.w
mul r0.w, r1.x, cb3[4].z
round_ni r1.w, r0.w
add r1.xy, r4.xyxx, r2.xyxx
mul o3.xy, r1.xyxx, cb3[4].zwzz
add r1.xy, r4.xyxx, r1.zwzz
mul o3.zw, r1.xxxy, cb3[4].zzzw
add r0.xyz, r0.xyzx, cb0[70].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
add o0.xyzw, r0.xyzw, cb0[3].xyzw

mov o0.xyzw, l(0,0,0,0)

ret
// Approximately 0 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.164 on Sun May 10 13:53:48 2026
// Buffer<sint4> t3 : register(t3);
//
// Buffer<float4> t2 : register(t2);
//
// Buffer<float4> t1 : register(t1);
//
// Buffer<float4> t0 : register(t0);
//
// cbuffer cb3 : register(b3)
// {
//   float4 cb3[32];
// }
//
// cbuffer cb2 : register(b2)
// {
//   float4 cb2[2];
// }
//
// cbuffer cb1 : register(b1)
// {
//   float4 cb1[5];
// }
//
// cbuffer cb0 : register(b0)
// {
//   float4 cb0[71];
// }
//
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Texture2D<float4> StereoParams : register(t125);
//
//
// void main(
//   float2 v0 : ATTRIBUTE0,
//   uint v1 : SV_VertexID0,
//   uint v2 : SV_InstanceID0,
//   out float4 o0 : SV_POSITION0,
//   out float4 o1 : PARTICLE_DYNAMIC_PARAM1,
//   out float4 o2 : TEXCOORD0,
//   out float4 o3 : TEXCOORD1)
// {
// // Needs manual fix for instruction:
// // unknown dcl_: dcl_input_sgv v1.x, vertex_id
// // Needs manual fix for instruction:
// // unknown dcl_: dcl_input_sgv v2.x, instance_id
//   float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15,r16,r17,r18,r19,r20,r21,r22;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r0.x = cmp(asint(cb2[1].x) != -1);
//   if (r0.x != 0) {
//     r0.x = (int)v2.x + asint(cb2[1].x);
//     r0.x = t3.Load(r0.x).x;
//   } else {
//     r0.x = v2.x;
//   }
//   r0.yz = cmp(asint(cb3[9].xz) == int2(-1,-1));
//   if (r0.y != 0) {
//     r1.xyz = cb3[16].xyz;
//   }
//   if (r0.y == 0) {
//     r0.yw = asint(cb3[9].xx) & int2(0x80000000,0x7fffffff);
//     if (r0.y != 0) {
//       r0.y = mad((int)r0.w, asint(cb2[0].y), (int)r0.x);
//       r1.x = t2.Load(r0.y).x;
//       r2.xy = (int2)r0.ww + int2(1,2);
//       r2.xy = mad((int2)r2.xy, asint(cb2[0].yy), (int2)r0.xx);
//       r1.y = t2.Load(r2.x).x;
//       r1.z = t2.Load(r2.y).x;
//     } else {
//       r0.y = mad((int)r0.w, asint(cb2[0].y), (int)r0.x);
//       r1.x = t1.Load(r0.y).x;
//       r0.yw = (int2)r0.ww + int2(1,2);
//       r0.yw = mad((int2)r0.yw, asint(cb2[0].yy), (int2)r0.xx);
//       r1.y = t1.Load(r0.y).x;
//       r1.z = t1.Load(r0.w).x;
//     }
//   }
//   r2.xyz = cb1[1].xyz * r1.yyy;
//   r2.xyz = cb1[0].xyz * r1.xxx + r2.xyz;
//   r2.xyz = cb1[2].xyz * r1.zzz + r2.xyz;
//   r2.xyz = cb1[3].xyz + r2.xyz;
//   r1.xyz = cb3[0].xxx ? r2.xyz : r1.xyz;
//   r0.yw = cmp(asint(cb3[10].xz) == int2(-1,-1));
//   if (r0.y != 0) {
//     r1.w = cb3[21].w;
//   }
//   if (r0.y == 0) {
//     r2.xy = asint(cb3[10].xx) & int2(0x80000000,0x7fffffff);
//     if (r2.x != 0) {
//       r0.y = mad((int)r2.y, asint(cb2[0].y), (int)r0.x);
//       r1.w = t2.Load(r0.y).x;
//     } else {
//       r0.y = mad((int)r2.y, asint(cb2[0].y), (int)r0.x);
//       r1.w = t1.Load(r0.y).x;
//     }
//   }
//   r0.y = cb3[7].x * r1.w;
//   if (r0.w != 0) {
//     r2.xy = cb3[18].xy;
//   }
//   if (r0.w == 0) {
//     r2.zw = asint(cb3[10].zz) & int2(0x80000000,0x7fffffff);
//     if (r2.z != 0) {
//       r0.w = mad((int)r2.w, asint(cb2[0].y), (int)r0.x);
//       r2.x = t2.Load(r0.w).x;
//       r0.w = (int)r2.w + 1;
//       r0.w = mad((int)r0.w, asint(cb2[0].y), (int)r0.x);
//       r2.y = t2.Load(r0.w).x;
//     } else {
//       r0.w = mad((int)r2.w, asint(cb2[0].y), (int)r0.x);
//       r2.x = t1.Load(r0.w).x;
//       r0.w = (int)r2.w + 1;
//       r0.w = mad((int)r0.w, asint(cb2[0].y), (int)r0.x);
//       r2.y = t1.Load(r0.w).x;
//     }
//   }
//   if (r0.z != 0) {
//     r3.xyz = cb3[20].xyz;
//   }
//   if (r0.z == 0) {
//     r0.zw = asint(cb3[9].zz) & int2(0x80000000,0x7fffffff);
//     if (r0.z != 0) {
//       r0.z = mad((int)r0.w, asint(cb2[0].y), (int)r0.x);
//       r3.x = t2.Load(r0.z).x;
//       r2.zw = (int2)r0.ww + int2(1,2);
//       r2.zw = mad((int2)r2.zw, asint(cb2[0].yy), (int2)r0.xx);
//       r3.y = t2.Load(r2.z).x;
//       r3.z = t2.Load(r2.w).x;
//     } else {
//       r0.z = mad((int)r0.w, asint(cb2[0].y), (int)r0.x);
//       r3.x = t1.Load(r0.z).x;
//       r0.zw = (int2)r0.ww + int2(1,2);
//       r0.zw = mad((int2)r0.zw, asint(cb2[0].yy), (int2)r0.xx);
//       r3.y = t1.Load(r0.z).x;
//       r3.z = t1.Load(r0.w).x;
//     }
//   }
//   r4.xyz = cb1[4].xxx * cb1[0].xyz;
//   r5.xyz = cb1[4].yyy * cb1[1].xyz;
//   r6.xyz = cb1[4].zzz * cb1[2].xyz;
//   r0.zw = cmp(asint(cb3[11].xy) == int2(-1,-1));
//   if (r0.z != 0) {
//     r1.w = cb3[25].x;
//   }
//   if (r0.z == 0) {
//     r2.zw = asint(cb3[11].xx) & int2(0x80000000,0x7fffffff);
//     if (r2.z != 0) {
//       r0.z = mad((int)r2.w, asint(cb2[0].y), (int)r0.x);
//       r1.w = t2.Load(r0.z).x;
//     } else {
//       r0.z = mad((int)r2.w, asint(cb2[0].y), (int)r0.x);
//       r1.w = t1.Load(r0.z).x;
//     }
//   }
//   r2.zw = cmp(asint(cb3[12].wx) == int2(-1,-1));
//   if (r2.z != 0) {
//     r7.xyz = cb3[26].xyz;
//   }
//   if (r2.z == 0) {
//     r8.xy = asint(cb3[12].ww) & int2(0x80000000,0x7fffffff);
//     if (r8.x != 0) {
//       r0.z = mad((int)r8.y, asint(cb2[0].y), (int)r0.x);
//       r7.x = t2.Load(r0.z).x;
//       r8.xz = (int2)r8.yy + int2(1,2);
//       r8.xz = mad((int2)r8.xz, asint(cb2[0].yy), (int2)r0.xx);
//       r7.y = t2.Load(r8.x).x;
//       r7.z = t2.Load(r8.z).x;
//     } else {
//       r0.z = mad((int)r8.y, asint(cb2[0].y), (int)r0.x);
//       r7.x = t1.Load(r0.z).x;
//       r8.xy = (int2)r8.yy + int2(1,2);
//       r8.xy = mad((int2)r8.xy, asint(cb2[0].yy), (int2)r0.xx);
//       r7.y = t1.Load(r8.x).x;
//       r7.z = t1.Load(r8.y).x;
//     }
//   }
//   r8.xyz = r7.yyy * r5.zxy;
//   r8.xyz = r4.zxy * r7.xxx + r8.xyz;
//   r8.xyz = r6.zxy * r7.zzz + r8.xyz;
//   r7.xyz = cb3[0].xxx ? r8.xyz : r7.zxy;
//   r0.z = dot(r7.xyz, r7.xyz);
//   r0.z = sqrt(r0.z);
//   r0.z = max(9.99999997e-07, r0.z);
//   r7.xyz = r7.xyz / r0.zzz;
//   r0.z = cmp(asint(cb3[13].y) == -1);
//   if (r0.z != 0) {
//     r8.xyz = cb3[28].xyz;
//   }
//   if (r0.z == 0) {
//     r9.xy = asint(cb3[13].yy) & int2(0x80000000,0x7fffffff);
//     if (r9.x != 0) {
//       r0.z = mad((int)r9.y, asint(cb2[0].y), (int)r0.x);
//       r8.x = t2.Load(r0.z).x;
//       r9.xz = (int2)r9.yy + int2(1,2);
//       r9.xz = mad((int2)r9.xz, asint(cb2[0].yy), (int2)r0.xx);
//       r8.y = t2.Load(r9.x).x;
//       r8.z = t2.Load(r9.z).x;
//     } else {
//       r0.z = mad((int)r9.y, asint(cb2[0].y), (int)r0.x);
//       r8.x = t1.Load(r0.z).x;
//       r9.xy = (int2)r9.yy + int2(1,2);
//       r9.xy = mad((int2)r9.xy, asint(cb2[0].yy), (int2)r0.xx);
//       r8.y = t1.Load(r9.x).x;
//       r8.z = t1.Load(r9.y).x;
//     }
//   }
//   r9.xyz = cmp(asint(cb3[14].wzx) == int3(-1,-1,-1));
//   if (r9.x != 0) {
//     r10.xy = cb3[8].xy;
//   }
//   if (r9.x == 0) {
//     r9.xw = asint(cb3[14].ww) & int2(0x80000000,0x7fffffff);
//     if (r9.x != 0) {
//       r0.z = mad((int)r9.w, asint(cb2[0].y), (int)r0.x);
//       r10.x = t2.Load(r0.z).x;
//       r0.z = (int)r9.w + 1;
//       r0.z = mad((int)r0.z, asint(cb2[0].y), (int)r0.x);
//       r10.y = t2.Load(r0.z).x;
//     } else {
//       r0.z = mad((int)r9.w, asint(cb2[0].y), (int)r0.x);
//       r10.x = t1.Load(r0.z).x;
//       r0.z = (int)r9.w + 1;
//       r0.z = mad((int)r0.z, asint(cb2[0].y), (int)r0.x);
//       r10.y = t1.Load(r0.z).x;
//     }
//   }
//   if (r9.y != 0) {
//     r9.xw = cb3[19].xy;
//   }
//   if (r9.y == 0) {
//     r10.zw = asint(cb3[14].zz) & int2(0x80000000,0x7fffffff);
//     if (r10.z != 0) {
//       r0.z = mad((int)r10.w, asint(cb2[0].y), (int)r0.x);
//       r9.x = t2.Load(r0.z).x;
//       r0.z = (int)r10.w + 1;
//       r0.z = mad((int)r0.z, asint(cb2[0].y), (int)r0.x);
//       r9.w = t2.Load(r0.z).x;
//     } else {
//       r0.z = mad((int)r10.w, asint(cb2[0].y), (int)r0.x);
//       r9.x = t1.Load(r0.z).x;
//       r0.z = (int)r10.w + 1;
//       r0.z = mad((int)r0.z, asint(cb2[0].y), (int)r0.x);
//       r9.w = t1.Load(r0.z).x;
//     }
//   }
//   r11.xyz = cb0[67].zxy + -r1.zxy;
//   r0.z = dot(r11.xyz, r11.xyz);
//   r2.z = sqrt(r0.z);
//   r2.z = max(9.99999997e-07, r2.z);
//   r11.xyz = r11.xyz / r2.zzz;
//   if (r9.z != 0) {
//     r2.z = cb3[24].y;
//   }
//   if (r9.z == 0) {
//     r9.yz = asint(cb3[14].xx) & int2(0x80000000,0x7fffffff);
//     if (r9.y != 0) {
//       r3.w = mad((int)r9.z, asint(cb2[0].y), (int)r0.x);
//       r2.z = t2.Load(r3.w).x;
//     } else {
//       r3.w = mad((int)r9.z, asint(cb2[0].y), (int)r0.x);
//       r2.z = t1.Load(r3.w).x;
//     }
//   }
//   if (r0.w != 0) {
//     o2.xyzw = cb3[23].xyzw;
//   }
//   if (r0.w == 0) {
//     r9.yz = asint(cb3[11].yy) & int2(0x80000000,0x7fffffff);
//     if (r9.y != 0) {
//       r0.w = mad((int)r9.z, asint(cb2[0].y), (int)r0.x);
//       r0.w = t2.Load(r0.w).x;
//       r12.xyz = (int3)r9.zzz + int3(1,2,3);
//       r12.xyz = mad((int3)r12.xyz, asint(cb2[0].yyy), (int3)r0.xxx);
//       r3.w = t2.Load(r12.x).x;
//       r4.w = t2.Load(r12.y).x;
//       r5.w = t2.Load(r12.z).x;
//       o2.x = r0.w;
//       o2.y = r3.w;
//       o2.z = r4.w;
//       o2.w = r5.w;
//     } else {
//       r0.w = mad((int)r9.z, asint(cb2[0].y), (int)r0.x);
//       r0.w = t1.Load(r0.w).x;
//       r12.xyz = (int3)r9.zzz + int3(1,2,3);
//       r12.xyz = mad((int3)r12.xyz, asint(cb2[0].yyy), (int3)r0.xxx);
//       r3.w = t1.Load(r12.x).x;
//       r4.w = t1.Load(r12.y).x;
//       r5.w = t1.Load(r12.z).x;
//       o2.x = r0.w;
//       o2.y = r3.w;
//       o2.z = r4.w;
//       o2.w = r5.w;
//     }
//   }
//   if (r2.w != 0) {
//     o1.xyzw = cb3[31].xyzw;
//   }
//   if (r2.w == 0) {
//     r9.yz = asint(cb3[12].xx) & int2(0x80000000,0x7fffffff);
//     if (r9.y != 0) {
//       r0.w = mad((int)r9.z, asint(cb2[0].y), (int)r0.x);
//       r0.w = t2.Load(r0.w).x;
//       r12.xyz = (int3)r9.zzz + int3(1,2,3);
//       r12.xyz = mad((int3)r12.xyz, asint(cb2[0].yyy), (int3)r0.xxx);
//       r2.w = t2.Load(r12.x).x;
//       r3.w = t2.Load(r12.y).x;
//       r4.w = t2.Load(r12.z).x;
//       o1.x = r0.w;
//       o1.y = r2.w;
//       o1.z = r3.w;
//       o1.w = r4.w;
//     } else {
//       r0.w = mad((int)r9.z, asint(cb2[0].y), (int)r0.x);
//       r0.w = t1.Load(r0.w).x;
//       r12.xyz = (int3)r9.zzz + int3(1,2,3);
//       r12.xyz = mad((int3)r12.xyz, asint(cb2[0].yyy), (int3)r0.xxx);
//       r0.x = t1.Load(r12.x).x;
//       r2.w = t1.Load(r12.y).x;
//       r3.w = t1.Load(r12.z).x;
//       o1.xy = r0.wx;
//       o1.z = r2.w;
//       o1.w = r3.w;
//     }
//   }
//   r0.x = cmp(asint(cb2[0].w) == 2);
//   r7.xyz = r0.xxx ? r7.xyz : r11.xyz;
//   if (cb2[0].z == 0) {
//     r12.xyz = cb0[64].xyz + -cb0[62].xyz;
//     r12.xyz = cb3[5].www * r12.xyz + cb0[62].xyz;
//     r13.xyz = cb0[63].yzx + -cb0[61].yzx;
//     r13.xyz = cb3[5].www * r13.xyz + cb0[61].yzx;
//     r14.xyz = -cb0[60].zxy * r13.xyz;
//     r14.xyz = -cb0[60].yzx * r13.yzx + -r14.xyz;
//     r0.w = dot(r14.xyz, r14.xyz);
//     r0.w = sqrt(r0.w);
//     r0.w = max(9.99999997e-07, r0.w);
//     r14.xyz = r14.xyz / r0.www;
//     r15.xyz = -cb0[60].zxy * r14.yzx;
//     r15.xyz = -cb0[60].yzx * r14.zxy + -r15.xyz;
//     r16.xyz = r13.xyz * r7.xyz;
//     r16.xyz = r7.zxy * r13.yzx + -r16.xyz;
//     r0.w = dot(r16.xyz, r16.xyz);
//     r0.w = sqrt(r0.w);
//     r0.w = max(9.99999997e-07, r0.w);
//     r16.xyz = r16.xyz / r0.www;
//     r17.xyz = r16.yzx * r7.xyz;
//     r17.xyz = r7.zxy * r16.zxy + -r17.xyz;
//     r18.xyz = float3(0,1,0) * r11.xyz;
//     r18.xyz = r11.zxy * float3(1,0,0) + -r18.xyz;
//     r0.w = dot(r18.xy, r18.xy);
//     r0.w = sqrt(r0.w);
//     r0.w = max(9.99999997e-07, r0.w);
//     r19.xyz = r18.xyz / r0.www;
//     r20.xyz = r19.yzx * r11.xyz;
//     r20.xyz = r11.zxy * r19.zxy + -r20.xyz;
//     r0.z = saturate(r0.z * cb3[5].y + -cb3[5].z);
//     r21.xyz = r18.yzx * r11.xyz;
//     r21.xyz = r11.zxy * r18.zxy + -r21.xyz;
//     r22.xyz = -r18.xyz + r12.xyz;
//     r18.xyz = r0.zzz * r22.xyz + r18.xyz;
//     r22.xyz = -r21.xyz + -r13.zxy;
//     r21.xyz = r0.zzz * r22.xyz + r21.xyz;
//     r0.zw = cmp(asint(cb2[0].ww) == int2(4,1));
//     r16.xyz = r0.xxx ? r16.xyz : r19.xyz;
//     r17.xyz = r0.xxx ? r17.xyz : r20.xyz;
//     r14.xyz = r0.www ? r14.xyz : r16.xyz;
//     r15.xyz = r0.www ? r15.xyz : r17.xyz;
//     r12.xyz = cb2[0].www ? r14.xyz : r12.xyz;
//     r13.xyz = cb2[0].www ? r15.xyz : -r13.zxy;
//     r12.xyz = r0.zzz ? r18.xyz : r12.xyz;
//     r13.xyz = r0.zzz ? r21.xyz : r13.xyz;
//   } else {
//     r14.xyz = r5.xyz * r3.yyy;
//     r14.xyz = r4.xyz * r3.xxx + r14.xyz;
//     r14.xyz = r6.xyz * r3.zzz + r14.xyz;
//     r3.xyz = cb3[0].xxx ? r14.xyz : r3.xyz;
//     r5.xyz = r8.yyy * r5.xyz;
//     r4.xyz = r4.xyz * r8.xxx + r5.xyz;
//     r4.xyz = r6.xyz * r8.zzz + r4.xyz;
//     r4.xyz = cb3[0].xxx ? r4.xyz : r8.xyz;
//     r0.z = dot(r4.xyz, r4.xyz);
//     r0.z = sqrt(r0.z);
//     r0.z = max(9.99999997e-07, r0.z);
//     r4.xyz = r4.xyz / r0.zzz;
//     r0.z = dot(r3.xyz, r3.xyz);
//     r0.z = sqrt(r0.z);
//     r0.w = cmp(9.99999997e-07 < r0.z);
//     r3.xyz = r3.xyz / r0.zzz;
//     r3.xyz = r0.www ? r3.xyz : float3(0,0,1);
//     r0.z = cmp(asint(cb2[0].z) == 2);
//     r0.z = r0.z ? 1.000000 : 0;
//     r4.xyz = r4.xyz + -r3.xyz;
//     r3.xyz = r0.zzz * r4.xyz + r3.xyz;
//     r4.xyz = r7.xyz * r3.yzx;
//     r4.xyz = r7.zxy * r3.zxy + -r4.xyz;
//     r0.z = dot(r4.xyz, r4.xyz);
//     r0.z = sqrt(r0.z);
//     r0.z = max(9.99999997e-07, r0.z);
//     r12.xyz = r4.xyz / r0.zzz;
//     r4.xyz = r12.yzx * r7.xyz;
//     r4.xyz = r7.zxy * r12.zxy + -r4.xyz;
//     r0.x = r0.x ? 1.000000 : 0;
//     r4.xyz = r4.xyz + r3.xyz;
//     r13.xyz = r0.xxx * r4.xyz + -r3.xyz;
//   }
//   r0.x = r0.y * 0.0174532942 + cb3[7].y;
//   sincos(r0.x, r0.x, r3.x);
//   r0.yzw = r12.xyz * r0.xxx;
//   r3.yzw = r12.xyz * r3.xxx;
//   r3.yzw = r13.xyz * r0.xxx + r3.yzw;
//   r0.xyz = r13.xyz * r3.xxx + -r0.yzw;
//   r4.xy = cmp(float2(0,0) < r2.xy);
//   r4.zw = cmp(r2.xy < float2(0,0));
//   r4.xy = (int2)-r4.xy + (int2)r4.zw;
//   r4.xy = (int2)r4.xy;
//   if (cb2[0].x != 0) {
//     r0.w = cmp(asint(cb2[0].x) == 8);
//     r0.w = r0.w ? 7 : 3;
//     r0.w = (int)r0.w & (int)v1.x;
//     r2.w = cb3[4].x * cb3[4].y;
//     r3.x = r1.w / r2.w;
//     r4.z = cmp(r3.x >= -r3.x);
//     r3.x = frac(abs(r3.x));
//     r3.x = r4.z ? r3.x : -r3.x;
//     r2.w = r3.x * r2.w;
//     r2.w = (uint)r2.w;
//     r3.x = r4.x * r4.y;
//     r3.x = cmp(r3.x < 0);
//     r4.z = asint(cb2[0].x) + -1;
//     r4.z = (int)-r0.w + (int)r4.z;
//     r0.w = r3.x ? r4.z : r0.w;
//     r0.w = mad((int)r2.w, asint(cb2[0].x), (int)r0.w);
//     r4.zw = t0.Load(r0.w).xy;
//     r5.xy = cmp(r4.xy < float2(0,0));
//     r5.zw = float2(1,1) + -r4.zw;
//     r5.xy = r5.xy ? r5.zw : r4.zw;
//   } else {
//     r4.xy = cmp(r4.xy < float2(0,0));
//     r5.zw = float2(1,1) + -v0.xy;
//     r4.zw = r4.xy ? r5.zw : v0.xy;
//     r5.xy = v0.xy;
//   }
//   r4.xy = float2(-0.5,-0.5) + r4.zw;
//   r4.xy = r4.xy * r9.xw + float2(0.5,0.5);
//   r4.zw = r5.xy + -r10.xy;
//   r2.xy = r4.zw * abs(r2.xy);
//   r0.xyz = r2.yyy * r0.xyz;
//   r0.xyz = r2.xxx * r3.yzw + r0.xyz;
//   r0.xyz = r11.yzx * r2.zzz + r0.xyz;
//   r0.xyz = r1.xyz + r0.xyz;
//   r0.w = frac(r1.w);
//   r0.w = r1.w + -r0.w;
//   r1.x = 1 + r0.w;
//   r1.y = r0.w / cb3[4].x;
//   r1.z = cmp(r1.y >= -r1.y);
//   r1.y = frac(abs(r1.y));
//   r1.y = r1.z ? r1.y : -r1.y;
//   r2.x = cb3[4].x * r1.y;
//   r1.y = r1.x / cb3[4].x;
//   r1.z = cmp(r1.y >= -r1.y);
//   r1.y = frac(abs(r1.y));
//   r1.y = r1.z ? r1.y : -r1.y;
//   r1.z = cb3[4].x * r1.y;
//   r0.w = cb3[4].z * r0.w;
//   r2.y = floor(r0.w);
//   r0.w = cb3[4].z * r1.x;
//   r1.w = floor(r0.w);
//   r1.xy = r2.xy + r4.xy;
//   o3.xy = cb3[4].zw * r1.xy;
//   r1.xy = r1.zw + r4.xy;
//   o3.zw = cb3[4].zw * r1.xy;
//   r0.xyz = cb0[70].xyz + r0.xyz;
//   r1.xyzw = cb0[1].xyzw * r0.yyyy;
//   r1.xyzw = r0.xxxx * cb0[0].xyzw + r1.xyzw;
//   r0.xyzw = r0.zzzz * cb0[2].xyzw + r1.xyzw;
//   o0.xyzw = cb0[3].xyzw + r0.xyzw;
//   return;
// }
//////////////////////////////// HLSL Errors ////////////////////////////////
// A:\southofmidnight\midnight\binaries\win64\ShaderFixes\8abf0830edcf2cb2-vs_replace.txt(2,8-12): error X3000: syntax error: unexpected token 'sint4'
/////////////////////////////////////////////////////////////////////////////
