// flipping flowers
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Thu May  7 21:17:19 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xyzw        0     NONE   float   xyzw
// ATTRIBUTE                1   xyz         1     NONE   float
// ATTRIBUTE                2   xyzw        2     NONE   float
// ATTRIBUTE                3   xyzw        3     NONE   float
// ATTRIBUTE                4   xy          4     NONE   float   xy
// ATTRIBUTE                5   xy          5     NONE   float   xy
// ATTRIBUTE                6   xy          6     NONE   float   xy
// SV_InstanceID            0   x           7   INSTID    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
// COLOR                    2   xyzw        3     NONE   float   xyzw
// PARTICLE_POSITION        0   xyz         4     NONE   float   xyz
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[143], immediateIndexed
dcl_constantbuffer CB1[5], immediateIndexed
dcl_constantbuffer CB2[27], immediateIndexed
dcl_constantbuffer CB3[8], immediateIndexed
dcl_constantbuffer CB4[41], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_resource_buffer (float,float,float,float) t0
dcl_resource_buffer (float,float,float,float) t1
dcl_resource_buffer (sint,sint,sint,sint) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t6
dcl_input v0.xyzw
dcl_input v4.xy
dcl_input v5.xy
dcl_input v6.xy
dcl_input_sgv v7.x, instance_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyz
dcl_temps 16
ine r0.x, cb2[5].x, l(-1)
if_nz r0.x
  iadd r0.x, v7.x, cb2[5].x
  ld_indexable(buffer)(sint,sint,sint,sint) r0.x, r0.xxxx, t2.xyzw
else
  mov r0.x, v7.x
endif
ieq r0.yz, cb2[5].wwyw, l(0, -1, -1, 0)
if_nz r0.y
  mov r1.xyz, cb2[12].xyzx
endif
if_z r0.y
  and r0.yw, cb2[5].wwww, l(0, 0x80000000, 0, 0x7fffffff)
  if_nz r0.y
    imad r0.y, r0.w, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.x, r0.yyyy, t1.xyzw
    iadd r2.xy, r0.wwww, l(1, 2, 0, 0)
    imad r2.xy, r2.xyxx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.y, r2.xxxx, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r1.z, r2.yyyy, t1.yzxw
  else
    imad r0.y, r0.w, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.x, r0.yyyy, t0.xyzw
    iadd r0.yw, r0.wwww, l(0, 1, 0, 2)
    imad r0.yw, r0.yyyw, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.y, r0.yyyy, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r1.z, r0.wwww, t0.yzxw
  endif
endif
ieq r0.yw, cb2[7].zzzx, l(0, -1, 0, -1)
if_nz r0.y
  mov r2.xyzw, cb2[19].xyzw
endif
if_z r0.y
  and r3.xy, cb2[7].zzzz, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r3.x
    imad r0.y, r3.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.x, r0.yyyy, t1.xyzw
    iadd r3.xzw, r3.yyyy, l(1, 0, 2, 3)
    imad r3.xzw, r3.xxzw, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r2.z, r3.zzzz, t1.yzxw
    ld_indexable(buffer)(float,float,float,float) r2.w, r3.wwww, t1.yzwx
  else
    imad r0.y, r3.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.x, r0.yyyy, t0.xyzw
    iadd r3.xyz, r3.yyyy, l(1, 2, 3, 0)
    imad r3.xyz, r3.xyzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r2.y, r3.xxxx, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r2.z, r3.yyyy, t0.yzxw
    ld_indexable(buffer)(float,float,float,float) r2.w, r3.zzzz, t0.yzwx
  endif
endif
if_nz r0.z
  mov r3.xyz, cb2[10].xyzx
endif
if_z r0.z
  and r0.yz, cb2[5].yyyy, l(0, 0x80000000, 0x7fffffff, 0)
  if_nz r0.y
    imad r0.y, r0.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r3.x, r0.yyyy, t1.xyzw
    iadd r4.xy, r0.zzzz, l(1, 2, 0, 0)
    imad r4.xy, r4.xyxx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r3.y, r4.xxxx, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r3.z, r4.yyyy, t1.yzxw
  else
    imad r0.y, r0.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r3.x, r0.yyyy, t0.xyzw
    iadd r0.yz, r0.zzzz, l(0, 1, 2, 0)
    imad r0.yz, r0.yyzy, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r3.y, r0.yyyy, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r3.z, r0.zzzz, t0.yzxw
  endif
endif
ieq r0.y, cb2[6].z, l(-1)
if_nz r0.y
  mov r4.xyzw, cb2[15].xyzw
endif
if_z r0.y
  and r0.yz, cb2[6].zzzz, l(0, 0x80000000, 0x7fffffff, 0)
  if_nz r0.y
    imad r0.y, r0.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r4.x, r0.yyyy, t1.xyzw
    iadd r5.xyz, r0.zzzz, l(1, 2, 3, 0)
    imad r5.xyz, r5.xyzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r4.y, r5.xxxx, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r4.z, r5.yyyy, t1.yzxw
    ld_indexable(buffer)(float,float,float,float) r4.w, r5.zzzz, t1.yzwx
  else
    imad r0.y, r0.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r4.x, r0.yyyy, t0.xyzw
    iadd r5.xyz, r0.zzzz, l(1, 2, 3, 0)
    imad r5.xyz, r5.xyzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r4.y, r5.xxxx, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r4.z, r5.yyyy, t0.yzxw
    ld_indexable(buffer)(float,float,float,float) r4.w, r5.zzzz, t0.yzwx
  endif
endif
if_nz r0.w
  mov r5.xyz, cb2[17].xyzx
endif
if_z r0.w
  and r0.yz, cb2[7].xxxx, l(0, 0x80000000, 0x7fffffff, 0)
  if_nz r0.y
    imad r0.y, r0.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r5.x, r0.yyyy, t1.xyzw
    iadd r0.yw, r0.zzzz, l(0, 1, 0, 2)
    imad r0.yw, r0.yyyw, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r5.y, r0.yyyy, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r5.z, r0.wwww, t1.yzxw
  else
    imad r0.y, r0.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r5.x, r0.yyyy, t0.xyzw
    iadd r0.yz, r0.zzzz, l(0, 1, 2, 0)
    imad r0.yz, r0.yyzy, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r5.y, r0.yyyy, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r5.z, r0.zzzz, t0.yzxw
  endif
endif
mul r0.yzw, r5.xxyz, cb2[2].xxyz
dp4 r1.w, r4.xyzw, r4.xyzw
rsq r1.w, r1.w
mul r4.xyzw, r1.wwww, r4.xyzw
add r6.xyzw, r4.zzxy, r4.zzxy
mul r7.xy, r4.xyxx, r6.zwzz
mul r8.xyzw, r4.yzww, r6.xyzw
mul r1.w, r4.w, r6.y
mad r9.xyz, r4.yxxy, r6.wzyw, r8.yywy
mad r10.x, r4.x, r6.w, r1.w
mad r10.w, r4.x, r6.y, -r8.w
mad r11.x, r4.x, r6.w, -r1.w
add r10.yz, -r9.yyxy, l(0.000000, 1.000000, 1.000000, 0.000000)
add r11.z, r8.z, r8.x
mad r4.y, r4.y, r6.x, -r8.z
add r1.w, r7.y, r7.x
add r4.z, -r1.w, l(1.000000)
if_nz cb2[24].z
  switch cb2[24].z
    case l(1)
    dp3 r3.w, r1.xyzx, r1.xyzx
    sqrt r3.w, r3.w
    lt r4.w, l(0.000000), r3.w
    div r1.xyz, r1.xyzx, r3.wwww
    and r1.xyz, r1.xyzx, r4.wwww
    mul r7.x, cb1[0].z, cb1[4].x
    mul r7.y, cb1[1].z, cb1[4].y
    mul r7.z, cb1[2].z, cb1[4].z
    movc r7.xyz, cb2[0].xxxx, r7.xyzx, l(0,0,1.000000,0)
    movc r6.xyz, r4.wwww, r1.zxyz, r7.zxyz
    mov r1.w, l(1)
    break
    case l(2)
    mul r1.xyz, r3.yyyy, cb1[1].xyzx
    mad r1.xyz, cb1[0].xyzx, r3.xxxx, r1.xyzx
    mad r1.xyz, cb1[2].xyzx, r3.zzzz, r1.xyzx
    add r1.xyz, r1.xyzx, cb1[3].xyzx
    movc r1.xyz, cb2[0].xxxx, r1.xyzx, r3.xyzx
    add r1.xyz, -r1.xyzx, cb0[67].xyzx
    dp3 r3.w, r1.xyzx, r1.xyzx
    rsq r3.w, r3.w
    mul r1.xyz, r1.xyzx, r3.wwww
    mul r7.xyz, cb1[0].xyzx, cb1[4].xxxx
    mul r8.xyz, cb1[1].xyzx, cb1[4].yyyy
    mul r12.xyz, cb1[2].xyzx, cb1[4].zzzz
    dp3 r7.x, r1.xyzx, r7.xyzx
    dp3 r7.y, r1.xyzx, r8.xyzx
    dp3 r7.z, r1.xyzx, r12.xyzx
    movc r6.xyz, cb2[0].xxxx, r7.zxyz, r1.zxyz
    mov r1.w, l(2)
    break
    default
    mul r1.xyz, cb1[0].xyzx, cb1[4].xxxx
    mul r7.xyz, cb1[1].xyzx, cb1[4].yyyy
    mul r8.xyz, cb1[2].xyzx, cb1[4].zzzz
    dp3 r1.x, -cb0[60].xyzx, r1.xyzx
    dp3 r1.y, -cb0[60].xyzx, r7.xyzx
    dp3 r1.z, -cb0[60].xyzx, r8.xyzx
    movc r6.xyz, cb2[0].xxxx, r1.zxyz, -cb0[60].zxyz
    mov r1.w, cb2[24].z
    break
  endswitch
  if_nz cb2[24].w
    ine r1.x, cb2[0].x, l(0)
    ieq r1.yz, cb2[25].wwww, l(0, 1, 0, 0)
    not r3.w, r1.x
    and r1.z, r1.z, r3.w
    or r1.y, r1.z, r1.y
    and r1.x, r1.x, r1.y
    mul r7.xyz, cb1[0].yzxy, cb1[4].xxxx
    mul r8.xyz, cb1[1].yzxy, cb1[4].yyyy
    mul r12.xyz, cb1[2].yzxy, cb1[4].zzzz
    dp3 r13.z, cb2[25].yzxy, r7.xyzx
    dp3 r13.x, cb2[25].yzxy, r8.xyzx
    dp3 r13.y, cb2[25].yzxy, r12.xyzx
    not r1.y, r1.y
    and r1.y, r3.w, r1.y
    mul r8.xyz, r8.xyzx, cb2[25].yyyy
    mad r7.xyz, r7.xyzx, cb2[25].xxxx, r8.xyzx
    mad r7.xyz, r12.xyzx, cb2[25].zzzz, r7.xyzx
    movc r7.xyz, r1.yyyy, r7.xyzx, cb2[25].yzxy
    movc r1.xyz, r1.xxxx, r13.xzyx, r7.xzyx
    dp3 r3.w, r6.zyxz, r1.xyzx
    lt r3.w, l(0.990000), |r3.w|
    lt r4.w, l(0.990000), |r1.z|
    movc r7.xyz, r4.wwww, l(1.000000,0,0,0), l(0,0,1.000000,0)
    movc r7.xyz, r3.wwww, r7.xyzx, r6.yzxy
    mul r8.xyz, r1.xzyx, r7.xyzx
    mad r7.xyz, r1.yxzy, r7.yzxy, -r8.xyzx
    dp3 r3.w, r7.xyzx, r7.xyzx
    rsq r3.w, r3.w
    mul r7.xyz, r3.wwww, r7.xyzx
    mul r8.xyz, r1.xzyx, r7.xyzx
    mad r8.xyz, r7.zxyz, r1.zyxz, -r8.xyzx
    mov r12.x, r8.x
    mov r12.y, r7.y
    mov r12.z, r1.y
    mov r13.x, r8.y
    mov r13.y, r7.z
    mov r13.z, r1.x
    mov r1.x, r8.z
    mov r1.y, r7.x
  else
    ieq r1.w, r1.w, l(3)
    lt r3.w, l(0.990000), |r6.x|
    lt r4.w, l(0.000000), r6.x
    lt r5.w, r6.x, l(0.000000)
    iadd r4.w, r4.w, -r5.w
    itof r4.w, r4.w
    mul r7.xyz, r4.wwww, l(1.000000, 0.000000, 0.000000, 0.000000)
    movc r7.xyz, r3.wwww, r7.xyzx, l(0,0,1.000000,0)
    movc r7.xyz, r1.wwww, cb0[61].xyzx, r7.xyzx
    mul r8.xyz, cb1[0].xyzx, cb1[4].xxxx
    mul r14.xyz, cb1[1].xyzx, cb1[4].yyyy
    mul r15.xyz, cb1[2].xyzx, cb1[4].zzzz
    dp3 r8.x, r7.xyzx, r8.xyzx
    dp3 r8.y, r7.xyzx, r14.xyzx
    dp3 r8.z, r7.xyzx, r15.xyzx
    movc r7.xyz, cb2[0].xxxx, r8.xyzx, r7.xyzx
    mul r8.xyz, r6.xyzx, r7.xyzx
    mad r7.xyz, r7.zxyz, r6.yzxy, -r8.xyzx
    dp3 r1.w, r7.xyzx, r7.xyzx
    rsq r1.w, r1.w
    mul r7.xyz, r1.wwww, r7.xyzx
    mul r8.xyz, r6.xyzx, r7.xyzx
    mad r1.xyz, r6.zxyz, r7.yzxy, -r8.xyzx
    mov r12.x, r6.y
    mov r12.y, r7.z
    mov r12.z, r1.x
    mov r13.x, r6.z
    mov r13.y, r7.x
    mov r13.z, r1.y
    mov r1.x, r6.x
    mov r1.y, r7.y
  endif
  dp3 r6.x, r10.zxwz, r12.xyzx
  dp3 r7.x, r10.zxwz, r13.xyzx
  dp3 r8.x, r10.zxwz, r1.xyzx
  mov r11.y, r10.y
  dp3 r6.y, r11.xyzx, r12.xyzx
  dp3 r7.y, r11.xyzx, r13.xyzx
  dp3 r8.y, r11.xyzx, r1.xyzx
  mov r4.x, r9.z
  dp3 r6.z, r4.xyzx, r12.xyzx
  dp3 r7.z, r4.xyzx, r13.xyzx
  dp3 r8.z, r4.xyzx, r1.xyzx
  mov r10.xyz, r7.xyzx
  mov r4.xyz, r8.xyzx
else
  mad r6.xz, r9.xxzx, l(-1.000000, 0.000000, 1.000000, 0.000000), l(1.000000, 0.000000, 0.000000, 0.000000)
  mov r6.y, r11.x
  mov r10.z, r4.y
  mov r4.x, r10.w
  mov r4.y, r11.z
endif
mul r1.xyz, r3.yyyy, cb1[1].xyzx
mad r1.xyz, cb1[0].xyzx, r3.xxxx, r1.xyzx
mad r1.xyz, cb1[2].xyzx, r3.zzzz, r1.xyzx
add r1.xyz, r1.xyzx, cb1[3].xyzx
movc r1.xyz, cb2[0].xxxx, r1.xyzx, r3.xyzx
ieq r1.w, cb2[9].y, l(-1)
if_nz r1.w
  mov r3.w, cb2[23].w
endif
if_z r1.w
  and r7.xy, cb2[9].yyyy, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r7.x
    imad r1.w, r7.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r3.w, r1.wwww, t1.yzwx
  else
    imad r0.x, r7.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r3.w, r0.xxxx, t0.yzwx
  endif
endif
add r1.xyz, -r1.xyzx, cb0[67].xyzx
dp3 r0.x, r1.xyzx, r1.xyzx
rsq r0.x, r0.x
mul r1.xyz, r0.xxxx, r1.xyzx
mul r7.xyz, cb1[0].xyzx, cb1[4].xxxx
mul r8.xyz, cb1[1].xyzx, cb1[4].yyyy
mul r9.xyz, cb1[2].xyzx, cb1[4].zzzz
dp3 r7.x, r1.xyzx, r7.xyzx
dp3 r7.y, r1.xyzx, r8.xyzx
dp3 r7.z, r1.xyzx, r9.xyzx
movc r1.xyz, cb2[0].xxxx, r7.xyzx, r1.xyzx
mad r1.xyz, r1.xyzx, r3.wwww, r3.xyzx
mul r3.xyz, r5.xyzx, cb2[1].xyzx
dp3 r5.x, r3.xyzx, r6.xyzx
dp3 r5.y, r3.xyzx, r10.xyzx
dp3 r5.z, r3.xyzx, r4.xyzx
add r3.xyz, r1.xyzx, r5.xyzx
movc r1.xyz, cb2[1].wwww, r1.xyzx, r3.xyzx
mul r3.xyz, r0.yzwy, r6.xyzx
mul r5.xyz, r0.yzwy, r10.xyzx
mul r0.xyz, r0.yzwy, r4.xyzx
if_nz cb2[0].x
  mul r4.xyz, r5.xxxx, cb1[1].xyzx
  mad r4.xyz, r3.xxxx, cb1[0].xyzx, r4.xyzx
  mad r4.xyz, r0.xxxx, cb1[2].xyzx, r4.xyzx
  mul r6.xyz, r5.yyyy, cb1[1].xyzx
  mad r6.xyz, r3.yyyy, cb1[0].xyzx, r6.xyzx
  mad r6.xyz, r0.yyyy, cb1[2].xyzx, r6.xyzx
  mul r7.xyz, r5.zzzz, cb1[1].xyzx
  mad r7.xyz, r3.zzzz, cb1[0].xyzx, r7.xyzx
  mad r0.xyz, r0.zzzz, cb1[2].xyzx, r7.xyzx
  mul r7.xyz, r1.yyyy, cb1[1].xyzx
  mad r7.xyz, r1.xxxx, cb1[0].xyzx, r7.xyzx
  mad r7.xyz, r1.zzzz, cb1[2].xyzx, r7.xyzx
  add r1.xyz, r7.xyzx, cb1[3].xyzx
  mov r3.x, r4.x
  mov r3.y, r6.x
  mov r3.z, r0.x
  mov r5.x, r4.y
  mov r5.y, r6.y
  mov r5.z, r0.y
  mov r0.x, r4.z
  mov r0.y, r6.z
endif
if_nz cb2[1].w
  add r1.xyz, r1.xyzx, cb2[1].xyzx
endif
add o4.xyz, r1.xyzx, cb0[70].xyzx
mov r3.w, r1.x
dp4 r4.x, v0.xyzw, r3.xyzw
mov r5.w, r1.y
dp4 r4.y, v0.xyzw, r5.xyzw
mov r0.w, r1.z
dp4 r4.z, v0.xyzw, r0.xyzw
add r1.xyz, r4.xyzx, cb0[70].xyzx
mul r1.w, cb3[2].w, cb4[36].y
mul r4.w, cb0[142].z, l(30.000000)
round_ni r4.w, r4.w
mul r4.w, r4.w, l(0.0333333351)
sample_l_indexable(texture2d)(float,float,float,float) r6.x, v5.xyxx, t3.wxyz, s0, l(-1.000000)
ushr r6.yz, r6.xxxx, l(0, 16, 23, 0)
and r6.y, r6.y, l(0x00008000)
bfi r6.z, l(8), l(10), r6.z, l(0)
iadd r6.z, r6.z, l(0xfffe4000)
ubfe r6.x, l(10), l(13), r6.x
or r6.y, r6.z, r6.y
iadd r6.x, r6.y, r6.x
iadd r6.x, r6.x, l(-1024)
utof r6.x, r6.x
div r6.y, r6.x, cb4[38].x
ge r6.z, r6.y, -r6.y
frc r6.w, |r6.y|
movc r6.z, r6.z, r6.w, -r6.w
mul r7.x, r6.z, cb4[38].x
round_ni r7.y, r6.y
add r6.yz, r7.xxyx, l(0.000000, 0.500000, 0.500000, 0.000000)
div r6.yz, r6.yyzy, cb4[24].xxyx
sample_l_indexable(texture2d)(float,float,float,float) r6.w, r6.yzyy, t3.xyzw, s0, l(-1.000000)
ushr r7.xy, r6.wwww, l(16, 23, 0, 0)
and r7.x, r7.x, l(0x00008000)
bfi r7.y, l(8), l(10), r7.y, l(0)
iadd r7.y, r7.y, l(0xfffe4000)
ubfe r6.w, l(10), l(13), r6.w
or r7.x, r7.y, r7.x
iadd r6.w, r6.w, r7.x
iadd r6.w, r6.w, l(-1024)
utof r6.w, r6.w
add r7.x, -r6.x, r6.w
lt r7.x, l(0.000010), |r7.x|
and r7.x, r7.x, l(0x3f800000)
mul r7.yz, v5.xxyx, cb4[24].xxyx
round_ni r7.yz, r7.yyzy
mad r7.y, r7.z, cb4[38].x, r7.y
add r6.x, r6.x, -r7.y
lt r6.x, l(0.000010), |r6.x|
and r6.x, r6.x, l(0x3f800000)
add r6.x, r6.x, r7.x
div r7.x, r6.w, cb4[38].x
ge r7.y, r7.x, -r7.x
frc r7.z, |r7.x|
movc r7.y, r7.y, r7.z, -r7.z
mul r8.x, r7.y, cb4[38].x
round_ni r8.y, r7.x
add r7.xy, r8.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
div r7.xy, r7.xyxx, cb4[24].xyxx
sample_l_indexable(texture2d)(float,float,float,float) r7.z, r7.xyxx, t3.xywz, s0, l(-1.000000)
ushr r8.xy, r7.zzzz, l(16, 23, 0, 0)
and r7.w, r8.x, l(0x00008000)
bfi r8.x, l(8), l(10), r8.y, l(0)
iadd r8.x, r8.x, l(0xfffe4000)
ubfe r7.z, l(10), l(13), r7.z
or r7.w, r7.w, r8.x
iadd r7.z, r7.w, r7.z
iadd r7.z, r7.z, l(-1024)
utof r7.z, r7.z
add r6.w, -r6.w, r7.z
lt r6.w, l(0.000010), |r6.w|
and r6.w, r6.w, l(0x3f800000)
add r6.x, r6.w, r6.x
min r6.w, r6.x, l(1.000000)
add r6.yz, r6.yyzy, -v5.xxyx
mad r6.yz, r6.wwww, r6.yyzy, v5.xxyx
add r6.xw, r6.xxxx, l(-1.000000, 0.000000, 0.000000, -2.000000)
mov_sat r6.x, r6.x
add r7.xy, -r6.yzyy, r7.xyxx
mad r6.xy, r6.xxxx, r7.xyxx, r6.yzyy
div r6.z, r7.z, cb4[38].x
ge r7.x, r6.z, -r6.z
frc r7.y, |r6.z|
movc r7.x, r7.x, r7.y, -r7.y
mul r7.x, r7.x, cb4[38].x
round_ni r7.y, r6.z
add r7.xy, r7.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
div r7.xy, r7.xyxx, cb4[24].xyxx
max r6.z, r6.w, l(0.000000)
add r7.xy, -r6.xyxx, r7.xyxx
mad r6.xy, r6.zzzz, r7.xyxx, r6.xyxx
sample_l_indexable(texture2d)(float,float,float,float) r7.xyz, r6.xyxx, t4.xyzw, s1, l(-1.000000)
mov r7.w, l(1.000000)
dp4 r8.x, r7.xyzw, r3.xyzw
dp4 r8.y, r7.xyzw, r5.xyzw
dp4 r8.z, r7.xyzw, r0.xyzw
sample_l_indexable(texture2d)(float,float,float,float) r6.xyzw, r6.xyxx, t5.xyzw, s2, l(-1.000000)
add r6.xyz, r6.xyzx, l(-0.500000, -0.500000, -0.500000, 0.000000)
add r6.xyz, r6.xyzx, r6.xyzx
dp3 r7.z, r6.xyzx, r3.xyzx
dp3 r7.x, r6.xyzx, r5.xyzx
dp3 r7.y, r6.xyzx, r0.xyzx
dp3 r0.w, r7.xyzx, r7.xyzx
sqrt r0.w, r0.w
div r6.xyz, r7.xyzx, r0.wwww
mul r0.w, r6.w, l(2048.000000)
max r0.w, r0.w, l(8.000000)
mad r7.xyz, r6.zxyz, r0.wwww, r8.xyzx
dp3 r9.x, cb3[6].xyzx, r7.xyzx
dp3 r9.y, cb3[7].xyzx, r7.xyzx
div r7.xy, r9.xyxx, cb4[38].yyyy
mad r7.xy, r4.wwww, cb4[23].xyxx, r7.xyxx
frc r7.zw, r7.xxxy
sample_l_indexable(texture2d)(float,float,float,float) r3.w, r7.zwzz, t6.xyzw, s3, l(-1.000000)
add r3.w, r3.w, cb4[38].z
mul r1.w, r1.w, r3.w
dp3 r3.w, cb3[6].yzxy, r6.xyzx
add r4.w, r3.w, cb4[39].y
mul r4.w, r4.w, cb4[39].z
mul r1.w, r1.w, r4.w
add r9.xyz, r4.xyzx, -r8.xyzx
mov r10.x, r3.x
mov r10.y, r5.x
mov r10.z, r0.x
dp3 r3.x, -r10.xyzx, -r10.xyzx
sqrt r10.x, r3.x
mov r11.x, r3.y
mov r11.y, r5.y
mov r11.z, r0.y
dp3 r3.x, -r11.xyzx, -r11.xyzx
sqrt r10.y, r3.x
mov r0.x, r3.z
mov r0.y, r5.z
dp3 r0.x, -r0.xyzx, -r0.xyzx
sqrt r10.z, r0.x
div r0.xyz, r9.xyzx, r10.xyzx
dp3 r3.x, r6.xyzx, r6.xyzx
sqrt r3.x, r3.x
div r3.xyz, r6.zxyz, r3.xxxx
dp3 r0.x, r0.xyzx, r3.xyzx
mul r0.y, r0.w, cb4[39].w
div_sat r0.x, r0.x, r0.y
mul r0.x, r0.x, r1.w
mul r0.x, r0.x, l(6.28318548)
div r0.yz, r7.xxyx, cb4[40].xxxx
frc r0.yz, r0.yyzy
sample_l_indexable(texture2d)(float,float,float,float) r0.yzw, r0.yzyy, t6.wxyz, s3, l(-1.000000)
add r0.yzw, r0.wwyz, l(0.000000, -0.500000, -0.500000, -0.500000)
ge r1.w, l(0.000000), r3.w
mul r3.x, r3.w, r3.w
mul r3.x, r3.x, r3.x
mul r3.x, r3.x, r3.w
mul r3.xyz, r3.xxxx, l(0.000000, 0.000000, -0.200000, 0.000000)
movc r3.xyz, r1.wwww, l(0,0,-0.000000,0), r3.xyzx
add r3.xyz, r3.xyzx, cb3[6].xyzx
mul r5.xyz, r3.xyzx, r6.xyzx
mad r3.xyz, r6.zxyz, r3.yzxy, -r5.xyzx
mad r0.yzw, cb4[40].yyyy, r0.yyzw, r3.xxyz
dp3 r1.w, r0.yzwy, r0.yzwy
sqrt r1.w, r1.w
div r0.yzw, r0.yyzw, r1.wwww
dp3 r1.w, r0.zwyz, r9.xyzx
mad r3.xyz, r0.zwyz, r1.wwww, r8.xyzx
add r5.xyz, -r3.xyzx, r4.xyzx
mul r6.xyz, r0.yzwy, r5.yzxy
mad r0.yzw, r0.wwyz, r5.zzxy, -r6.xxyz
sincos r0.x, r6.x, r0.x
mul r0.xyz, r0.xxxx, r0.yzwy
mad r0.xyz, r5.xyzx, r6.xxxx, r0.xyzx
add r0.xyz, r0.xyzx, r3.xyzx
add r0.xyz, -r4.xyzx, r0.xyzx
and r0.w, cb2[4].w, l(1)
movc r0.w, r0.w, r2.x, l(1.000000)
mad r0.xyz, r0.wwww, r0.xyzx, r1.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
mad o0.xyzw, v0.wwww, cb0[3].xyzw, r0.xyzw
mov o1.xy, v4.xyxx
mov o1.zw, v5.yyyx
mov o2.xy, v6.xyxx
mov o2.zw, l(0,0,0,0)
mov o3.xyzw, r2.xyzw

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

ret
// Approximately 0 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.164 on Thu May  7 21:17:19 2026
// Texture2D<float4> t6 : register(t6);
//
// Texture2D<float4> t5 : register(t5);
//
// Texture2D<float4> t4 : register(t4);
//
// Texture2D<float4> t3 : register(t3);
//
// Buffer<sint4> t2 : register(t2);
//
// Buffer<float4> t1 : register(t1);
//
// Buffer<float4> t0 : register(t0);
//
// SamplerState s3_s : register(s3);
//
// SamplerState s2_s : register(s2);
//
// SamplerState s1_s : register(s1);
//
// SamplerState s0_s : register(s0);
//
// cbuffer cb4 : register(b4)
// {
//   float4 cb4[41];
// }
//
// cbuffer cb3 : register(b3)
// {
//   float4 cb3[8];
// }
//
// cbuffer cb2 : register(b2)
// {
//   float4 cb2[27];
// }
//
// cbuffer cb1 : register(b1)
// {
//   float4 cb1[5];
// }
//
// cbuffer cb0 : register(b0)
// {
//   float4 cb0[143];
// }
//
//
//
//
// // 3Dmigoto declarations
// #define cmp -
// Texture1D<float4> IniParams : register(t120);
// Texture2D<float4> StereoParams : register(t125);
//
//
// void main(
//   float4 v0 : ATTRIBUTE0,
//   float3 v1 : ATTRIBUTE1,
//   float4 v2 : ATTRIBUTE2,
//   float4 v3 : ATTRIBUTE3,
//   float2 v4 : ATTRIBUTE4,
//   float2 v5 : ATTRIBUTE5,
//   float2 v6 : ATTRIBUTE6,
//   uint v7 : SV_InstanceID0,
//   out float4 o0 : SV_POSITION0,
//   out float4 o1 : TEXCOORD0,
//   out float4 o2 : TEXCOORD1,
//   out float4 o3 : COLOR2,
//   out float3 o4 : PARTICLE_POSITION0)
// {
// // Needs manual fix for instruction:
// // unknown dcl_: dcl_input_sgv v7.x, instance_id
//   float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14,r15;
//   uint4 bitmask, uiDest;
//   float4 fDest;
//
//   r0.x = cmp(asint(cb2[5].x) != -1);
//   if (r0.x != 0) {
//     r0.x = (int)v7.x + asint(cb2[5].x);
//     r0.x = t2.Load(r0.x).x;
//   } else {
//     r0.x = v7.x;
//   }
//   r0.yz = cmp(asint(cb2[5].wy) == int2(-1,-1));
//   if (r0.y != 0) {
//     r1.xyz = cb2[12].xyz;
//   }
//   if (r0.y == 0) {
//     r0.yw = asint(cb2[5].ww) & int2(0x80000000,0x7fffffff);
//     if (r0.y != 0) {
//       r0.y = mad((int)r0.w, asint(cb2[26].x), (int)r0.x);
//       r1.x = t1.Load(r0.y).x;
//       r2.xy = (int2)r0.ww + int2(1,2);
//       r2.xy = mad((int2)r2.xy, asint(cb2[26].xx), (int2)r0.xx);
//       r1.y = t1.Load(r2.x).x;
//       r1.z = t1.Load(r2.y).x;
//     } else {
//       r0.y = mad((int)r0.w, asint(cb2[26].x), (int)r0.x);
//       r1.x = t0.Load(r0.y).x;
//       r0.yw = (int2)r0.ww + int2(1,2);
//       r0.yw = mad((int2)r0.yw, asint(cb2[26].xx), (int2)r0.xx);
//       r1.y = t0.Load(r0.y).x;
//       r1.z = t0.Load(r0.w).x;
//     }
//   }
//   r0.yw = cmp(asint(cb2[7].zx) == int2(-1,-1));
//   if (r0.y != 0) {
//     r2.xyzw = cb2[19].xyzw;
//   }
//   if (r0.y == 0) {
//     r3.xy = asint(cb2[7].zz) & int2(0x80000000,0x7fffffff);
//     if (r3.x != 0) {
//       r0.y = mad((int)r3.y, asint(cb2[26].x), (int)r0.x);
//       r2.x = t1.Load(r0.y).x;
//       r3.xzw = (int3)r3.yyy + int3(1,2,3);
//       r3.xzw = mad((int3)r3.xzw, asint(cb2[26].xxx), (int3)r0.xxx);
//       r2.y = t1.Load(r3.x).x;
//       r2.z = t1.Load(r3.z).x;
//       r2.w = t1.Load(r3.w).x;
//     } else {
//       r0.y = mad((int)r3.y, asint(cb2[26].x), (int)r0.x);
//       r2.x = t0.Load(r0.y).x;
//       r3.xyz = (int3)r3.yyy + int3(1,2,3);
//       r3.xyz = mad((int3)r3.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r2.y = t0.Load(r3.x).x;
//       r2.z = t0.Load(r3.y).x;
//       r2.w = t0.Load(r3.z).x;
//     }
//   }
//   if (r0.z != 0) {
//     r3.xyz = cb2[10].xyz;
//   }
//   if (r0.z == 0) {
//     r0.yz = asint(cb2[5].yy) & int2(0x80000000,0x7fffffff);
//     if (r0.y != 0) {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r3.x = t1.Load(r0.y).x;
//       r4.xy = (int2)r0.zz + int2(1,2);
//       r4.xy = mad((int2)r4.xy, asint(cb2[26].xx), (int2)r0.xx);
//       r3.y = t1.Load(r4.x).x;
//       r3.z = t1.Load(r4.y).x;
//     } else {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r3.x = t0.Load(r0.y).x;
//       r0.yz = (int2)r0.zz + int2(1,2);
//       r0.yz = mad((int2)r0.yz, asint(cb2[26].xx), (int2)r0.xx);
//       r3.y = t0.Load(r0.y).x;
//       r3.z = t0.Load(r0.z).x;
//     }
//   }
//   r0.y = cmp(asint(cb2[6].z) == -1);
//   if (r0.y != 0) {
//     r4.xyzw = cb2[15].xyzw;
//   }
//   if (r0.y == 0) {
//     r0.yz = asint(cb2[6].zz) & int2(0x80000000,0x7fffffff);
//     if (r0.y != 0) {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r4.x = t1.Load(r0.y).x;
//       r5.xyz = (int3)r0.zzz + int3(1,2,3);
//       r5.xyz = mad((int3)r5.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r4.y = t1.Load(r5.x).x;
//       r4.z = t1.Load(r5.y).x;
//       r4.w = t1.Load(r5.z).x;
//     } else {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r4.x = t0.Load(r0.y).x;
//       r5.xyz = (int3)r0.zzz + int3(1,2,3);
//       r5.xyz = mad((int3)r5.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r4.y = t0.Load(r5.x).x;
//       r4.z = t0.Load(r5.y).x;
//       r4.w = t0.Load(r5.z).x;
//     }
//   }
//   if (r0.w != 0) {
//     r5.xyz = cb2[17].xyz;
//   }
//   if (r0.w == 0) {
//     r0.yz = asint(cb2[7].xx) & int2(0x80000000,0x7fffffff);
//     if (r0.y != 0) {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r5.x = t1.Load(r0.y).x;
//       r0.yw = (int2)r0.zz + int2(1,2);
//       r0.yw = mad((int2)r0.yw, asint(cb2[26].xx), (int2)r0.xx);
//       r5.y = t1.Load(r0.y).x;
//       r5.z = t1.Load(r0.w).x;
//     } else {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r5.x = t0.Load(r0.y).x;
//       r0.yz = (int2)r0.zz + int2(1,2);
//       r0.yz = mad((int2)r0.yz, asint(cb2[26].xx), (int2)r0.xx);
//       r5.y = t0.Load(r0.y).x;
//       r5.z = t0.Load(r0.z).x;
//     }
//   }
//   r0.yzw = cb2[2].xyz * r5.xyz;
//   r1.w = dot(r4.xyzw, r4.xyzw);
//   r1.w = rsqrt(r1.w);
//   r4.xyzw = r4.xyzw * r1.wwww;
//   r6.xyzw = r4.zzxy + r4.zzxy;
//   r7.xy = r6.zw * r4.xy;
//   r8.xyzw = r6.xyzw * r4.yzww;
//   r1.w = r6.y * r4.w;
//   r9.xyz = r4.yxx * r6.wzy + r8.yyw;
//   r10.x = r4.x * r6.w + r1.w;
//   r10.w = r4.x * r6.y + -r8.w;
//   r11.x = r4.x * r6.w + -r1.w;
//   r10.yz = float2(1,1) + -r9.yx;
//   r11.z = r8.x + r8.z;
//   r4.y = r4.y * r6.x + -r8.z;
//   r1.w = r7.x + r7.y;
//   r4.z = 1 + -r1.w;
//   if (cb2[24].z != 0) {
//     switch (cb2[24].z) {
//       case 1 :      r3.w = dot(r1.xyz, r1.xyz);
//       r3.w = sqrt(r3.w);
//       r4.w = cmp(0 < r3.w);
//       r1.xyz = r1.xyz / r3.www;
//       r1.xyz = r4.www ? r1.xyz : 0;
//       r7.x = cb1[4].x * cb1[0].z;
//       r7.y = cb1[4].y * cb1[1].z;
//       r7.z = cb1[4].z * cb1[2].z;
//       r7.xyz = cb2[0].xxx ? r7.xyz : float3(0,0,1);
//       r6.xyz = r4.www ? r1.zxy : r7.zxy;
//       r1.w = 1;
//       break;
//       case 2 :      r1.xyz = cb1[1].xyz * r3.yyy;
//       r1.xyz = cb1[0].xyz * r3.xxx + r1.xyz;
//       r1.xyz = cb1[2].xyz * r3.zzz + r1.xyz;
//       r1.xyz = cb1[3].xyz + r1.xyz;
//       r1.xyz = cb2[0].xxx ? r1.xyz : r3.xyz;
//       r1.xyz = cb0[67].xyz + -r1.xyz;
//       r3.w = dot(r1.xyz, r1.xyz);
//       r3.w = rsqrt(r3.w);
//       r1.xyz = r3.www * r1.xyz;
//       r7.xyz = cb1[4].xxx * cb1[0].xyz;
//       r8.xyz = cb1[4].yyy * cb1[1].xyz;
//       r12.xyz = cb1[4].zzz * cb1[2].xyz;
//       r7.x = dot(r1.xyz, r7.xyz);
//       r7.y = dot(r1.xyz, r8.xyz);
//       r7.z = dot(r1.xyz, r12.xyz);
//       r6.xyz = cb2[0].xxx ? r7.zxy : r1.zxy;
//       r1.w = 2;
//       break;
//       default :
//       r1.xyz = cb1[4].xxx * cb1[0].xyz;
//       r7.xyz = cb1[4].yyy * cb1[1].xyz;
//       r8.xyz = cb1[4].zzz * cb1[2].xyz;
//       r1.x = dot(-cb0[60].xyz, r1.xyz);
//       r1.y = dot(-cb0[60].xyz, r7.xyz);
//       r1.z = dot(-cb0[60].xyz, r8.xyz);
//       r6.xyz = cb2[0].xxx ? r1.zxy : -cb0[60].zxy;
//       r1.w = cb2[24].z;
//       break;
//     }
//     if (cb2[24].w != 0) {
//       r1.x = cmp(asint(cb2[0].x) != 0);
//       r1.yz = cmp(asint(cb2[25].ww) == int2(1,0));
//       r3.w = ~(int)r1.x;
//       r1.z = r1.z ? r3.w : 0;
//       r1.y = (int)r1.z | (int)r1.y;
//       r1.x = r1.x ? r1.y : 0;
//       r7.xyz = cb1[4].xxx * cb1[0].yzx;
//       r8.xyz = cb1[4].yyy * cb1[1].yzx;
//       r12.xyz = cb1[4].zzz * cb1[2].yzx;
//       r13.z = dot(cb2[25].yzx, r7.xyz);
//       r13.x = dot(cb2[25].yzx, r8.xyz);
//       r13.y = dot(cb2[25].yzx, r12.xyz);
//       r1.y = ~(int)r1.y;
//       r1.y = r1.y ? r3.w : 0;
//       r8.xyz = cb2[25].yyy * r8.xyz;
//       r7.xyz = r7.xyz * cb2[25].xxx + r8.xyz;
//       r7.xyz = r12.xyz * cb2[25].zzz + r7.xyz;
//       r7.xyz = r1.yyy ? r7.xyz : cb2[25].yzx;
//       r1.xyz = r1.xxx ? r13.xzy : r7.xzy;
//       r3.w = dot(r6.zyx, r1.xyz);
//       r3.w = cmp(0.99000001 < abs(r3.w));
//       r4.w = cmp(0.99000001 < abs(r1.z));
//       r7.xyz = r4.www ? float3(1,0,0) : float3(0,0,1);
//       r7.xyz = r3.www ? r7.xyz : r6.yzx;
//       r8.xyz = r7.xyz * r1.xzy;
//       r7.xyz = r1.yxz * r7.yzx + -r8.xyz;
//       r3.w = dot(r7.xyz, r7.xyz);
//       r3.w = rsqrt(r3.w);
//       r7.xyz = r7.xyz * r3.www;
//       r8.xyz = r7.xyz * r1.xzy;
//       r8.xyz = r7.zxy * r1.zyx + -r8.xyz;
//       r12.x = r8.x;
//       r12.y = r7.y;
//       r12.z = r1.y;
//       r13.x = r8.y;
//       r13.y = r7.z;
//       r13.z = r1.x;
//       r1.x = r8.z;
//       r1.y = r7.x;
//     } else {
//       r1.w = cmp((int)r1.w == 3);
//       r3.w = cmp(0.99000001 < abs(r6.x));
//       r4.w = cmp(0 < r6.x);
//       r5.w = cmp(r6.x < 0);
//       r4.w = (int)r4.w + (int)-r5.w;
//       r4.w = (int)r4.w;
//       r7.xyz = float3(1,0,0) * r4.www;
//       r7.xyz = r3.www ? r7.xyz : float3(0,0,1);
//       r7.xyz = r1.www ? cb0[61].xyz : r7.xyz;
//       r8.xyz = cb1[4].xxx * cb1[0].xyz;
//       r14.xyz = cb1[4].yyy * cb1[1].xyz;
//       r15.xyz = cb1[4].zzz * cb1[2].xyz;
//       r8.x = dot(r7.xyz, r8.xyz);
//       r8.y = dot(r7.xyz, r14.xyz);
//       r8.z = dot(r7.xyz, r15.xyz);
//       r7.xyz = cb2[0].xxx ? r8.xyz : r7.xyz;
//       r8.xyz = r7.xyz * r6.xyz;
//       r7.xyz = r7.zxy * r6.yzx + -r8.xyz;
//       r1.w = dot(r7.xyz, r7.xyz);
//       r1.w = rsqrt(r1.w);
//       r7.xyz = r7.xyz * r1.www;
//       r8.xyz = r7.xyz * r6.xyz;
//       r1.xyz = r6.zxy * r7.yzx + -r8.xyz;
//       r12.x = r6.y;
//       r12.y = r7.z;
//       r12.z = r1.x;
//       r13.x = r6.z;
//       r13.y = r7.x;
//       r13.z = r1.y;
//       r1.x = r6.x;
//       r1.y = r7.y;
//     }
//     r6.x = dot(r10.zxw, r12.xyz);
//     r7.x = dot(r10.zxw, r13.xyz);
//     r8.x = dot(r10.zxw, r1.xyz);
//     r11.y = r10.y;
//     r6.y = dot(r11.xyz, r12.xyz);
//     r7.y = dot(r11.xyz, r13.xyz);
//     r8.y = dot(r11.xyz, r1.xyz);
//     r4.x = r9.z;
//     r6.z = dot(r4.xyz, r12.xyz);
//     r7.z = dot(r4.xyz, r13.xyz);
//     r8.z = dot(r4.xyz, r1.xyz);
//     r10.xyz = r7.xyz;
//     r4.xyz = r8.xyz;
//   } else {
//     r6.xz = r9.xz * float2(-1,1) + float2(1,0);
//     r6.y = r11.x;
//     r10.z = r4.y;
//     r4.x = r10.w;
//     r4.y = r11.z;
//   }
//   r1.xyz = cb1[1].xyz * r3.yyy;
//   r1.xyz = cb1[0].xyz * r3.xxx + r1.xyz;
//   r1.xyz = cb1[2].xyz * r3.zzz + r1.xyz;
//   r1.xyz = cb1[3].xyz + r1.xyz;
//   r1.xyz = cb2[0].xxx ? r1.xyz : r3.xyz;
//   r1.w = cmp(asint(cb2[9].y) == -1);
//   if (r1.w != 0) {
//     r3.w = cb2[23].w;
//   }
//   if (r1.w == 0) {
//     r7.xy = asint(cb2[9].yy) & int2(0x80000000,0x7fffffff);
//     if (r7.x != 0) {
//       r1.w = mad((int)r7.y, asint(cb2[26].x), (int)r0.x);
//       r3.w = t1.Load(r1.w).x;
//     } else {
//       r0.x = mad((int)r7.y, asint(cb2[26].x), (int)r0.x);
//       r3.w = t0.Load(r0.x).x;
//     }
//   }
//   r1.xyz = cb0[67].xyz + -r1.xyz;
//   r0.x = dot(r1.xyz, r1.xyz);
//   r0.x = rsqrt(r0.x);
//   r1.xyz = r1.xyz * r0.xxx;
//   r7.xyz = cb1[4].xxx * cb1[0].xyz;
//   r8.xyz = cb1[4].yyy * cb1[1].xyz;
//   r9.xyz = cb1[4].zzz * cb1[2].xyz;
//   r7.x = dot(r1.xyz, r7.xyz);
//   r7.y = dot(r1.xyz, r8.xyz);
//   r7.z = dot(r1.xyz, r9.xyz);
//   r1.xyz = cb2[0].xxx ? r7.xyz : r1.xyz;
//   r1.xyz = r1.xyz * r3.www + r3.xyz;
//   r3.xyz = cb2[1].xyz * r5.xyz;
//   r5.x = dot(r3.xyz, r6.xyz);
//   r5.y = dot(r3.xyz, r10.xyz);
//   r5.z = dot(r3.xyz, r4.xyz);
//   r3.xyz = r5.xyz + r1.xyz;
//   r1.xyz = cb2[1].www ? r1.xyz : r3.xyz;
//   r3.xyz = r6.xyz * r0.yzw;
//   r5.xyz = r10.xyz * r0.yzw;
//   r0.xyz = r4.xyz * r0.yzw;
//   if (cb2[0].x != 0) {
//     r4.xyz = cb1[1].xyz * r5.xxx;
//     r4.xyz = r3.xxx * cb1[0].xyz + r4.xyz;
//     r4.xyz = r0.xxx * cb1[2].xyz + r4.xyz;
//     r6.xyz = cb1[1].xyz * r5.yyy;
//     r6.xyz = r3.yyy * cb1[0].xyz + r6.xyz;
//     r6.xyz = r0.yyy * cb1[2].xyz + r6.xyz;
//     r7.xyz = cb1[1].xyz * r5.zzz;
//     r7.xyz = r3.zzz * cb1[0].xyz + r7.xyz;
//     r0.xyz = r0.zzz * cb1[2].xyz + r7.xyz;
//     r7.xyz = cb1[1].xyz * r1.yyy;
//     r7.xyz = r1.xxx * cb1[0].xyz + r7.xyz;
//     r7.xyz = r1.zzz * cb1[2].xyz + r7.xyz;
//     r1.xyz = cb1[3].xyz + r7.xyz;
//     r3.x = r4.x;
//     r3.y = r6.x;
//     r3.z = r0.x;
//     r5.x = r4.y;
//     r5.y = r6.y;
//     r5.z = r0.y;
//     r0.x = r4.z;
//     r0.y = r6.z;
//   }
//   if (cb2[1].w != 0) {
//     r1.xyz = cb2[1].xyz + r1.xyz;
//   }
//   o4.xyz = cb0[70].xyz + r1.xyz;
//   r3.w = r1.x;
//   r4.x = dot(v0.xyzw, r3.xyzw);
//   r5.w = r1.y;
//   r4.y = dot(v0.xyzw, r5.xyzw);
//   r0.w = r1.z;
//   r4.z = dot(v0.xyzw, r0.xyzw);
//   r1.xyz = cb0[70].xyz + r4.xyz;
//   r1.w = cb4[36].y * cb3[2].w;
//   r4.w = 30 * cb0[142].z;
//   r4.w = floor(r4.w);
//   r4.w = 0.0333333351 * r4.w;
//   r6.x = t3.SampleLevel(s0_s, v5.xy, -1).w;
//   r6.yz = (uint2)r6.xx >> int2(16,23);
//   r6.y = (int)r6.y & 0x00008000;
//   bitmask.z = ((~(-1 << 8)) << 10) & 0xffffffff;  r6.z = (((uint)r6.z << 10) & bitmask.z) | ((uint)0 & ~bitmask.z);
//   r6.z = (int)r6.z + 0xfffe4000;
//   if (10 == 0) r6.x = 0; else if (10+13 < 32) {   r6.x = (uint)r6.x << (32-(10 + 13)); r6.x = (uint)r6.x >> (32-10);  } else r6.x = (uint)r6.x >> 13;
//   r6.y = (int)r6.z | (int)r6.y;
//   r6.x = (int)r6.y + (int)r6.x;
//   r6.x = (int)r6.x + -1024;
//   r6.x = (uint)r6.x;
//   r6.y = r6.x / cb4[38].x;
//   r6.z = cmp(r6.y >= -r6.y);
//   r6.w = frac(abs(r6.y));
//   r6.z = r6.z ? r6.w : -r6.w;
//   r7.x = cb4[38].x * r6.z;
//   r7.y = floor(r6.y);
//   r6.yz = float2(0.5,0.5) + r7.xy;
//   r6.yz = r6.yz / cb4[24].xy;
//   r6.w = t3.SampleLevel(s0_s, r6.yz, -1).w;
//   r7.xy = (uint2)r6.ww >> int2(16,23);
//   r7.x = (int)r7.x & 0x00008000;
//   bitmask.y = ((~(-1 << 8)) << 10) & 0xffffffff;  r7.y = (((uint)r7.y << 10) & bitmask.y) | ((uint)0 & ~bitmask.y);
//   r7.y = (int)r7.y + 0xfffe4000;
//   if (10 == 0) r6.w = 0; else if (10+13 < 32) {   r6.w = (uint)r6.w << (32-(10 + 13)); r6.w = (uint)r6.w >> (32-10);  } else r6.w = (uint)r6.w >> 13;
//   r7.x = (int)r7.y | (int)r7.x;
//   r6.w = (int)r6.w + (int)r7.x;
//   r6.w = (int)r6.w + -1024;
//   r6.w = (uint)r6.w;
//   r7.x = r6.w + -r6.x;
//   r7.x = cmp(9.99999975e-06 < abs(r7.x));
//   r7.x = r7.x ? 1.000000 : 0;
//   r7.yz = cb4[24].xy * v5.xy;
//   r7.yz = floor(r7.yz);
//   r7.y = r7.z * cb4[38].x + r7.y;
//   r6.x = -r7.y + r6.x;
//   r6.x = cmp(9.99999975e-06 < abs(r6.x));
//   r6.x = r6.x ? 1.000000 : 0;
//   r6.x = r7.x + r6.x;
//   r7.x = r6.w / cb4[38].x;
//   r7.y = cmp(r7.x >= -r7.x);
//   r7.z = frac(abs(r7.x));
//   r7.y = r7.y ? r7.z : -r7.z;
//   r8.x = cb4[38].x * r7.y;
//   r8.y = floor(r7.x);
//   r7.xy = float2(0.5,0.5) + r8.xy;
//   r7.xy = r7.xy / cb4[24].xy;
//   r7.z = t3.SampleLevel(s0_s, r7.xy, -1).w;
//   r8.xy = (uint2)r7.zz >> int2(16,23);
//   r7.w = (int)r8.x & 0x00008000;
//   bitmask.x = ((~(-1 << 8)) << 10) & 0xffffffff;  r8.x = (((uint)r8.y << 10) & bitmask.x) | ((uint)0 & ~bitmask.x);
//   r8.x = (int)r8.x + 0xfffe4000;
//   if (10 == 0) r7.z = 0; else if (10+13 < 32) {   r7.z = (uint)r7.z << (32-(10 + 13)); r7.z = (uint)r7.z >> (32-10);  } else r7.z = (uint)r7.z >> 13;
//   r7.w = (int)r7.w | (int)r8.x;
//   r7.z = (int)r7.w + (int)r7.z;
//   r7.z = (int)r7.z + -1024;
//   r7.z = (uint)r7.z;
//   r6.w = r7.z + -r6.w;
//   r6.w = cmp(9.99999975e-06 < abs(r6.w));
//   r6.w = r6.w ? 1.000000 : 0;
//   r6.x = r6.x + r6.w;
//   r6.w = min(1, r6.x);
//   r6.yz = -v5.xy + r6.yz;
//   r6.yz = r6.ww * r6.yz + v5.xy;
//   r6.xw = float2(-1,-2) + r6.xx;
//   r6.x = saturate(r6.x);
//   r7.xy = r7.xy + -r6.yz;
//   r6.xy = r6.xx * r7.xy + r6.yz;
//   r6.z = r7.z / cb4[38].x;
//   r7.x = cmp(r6.z >= -r6.z);
//   r7.y = frac(abs(r6.z));
//   r7.x = r7.x ? r7.y : -r7.y;
//   r7.x = cb4[38].x * r7.x;
//   r7.y = floor(r6.z);
//   r7.xy = float2(0.5,0.5) + r7.xy;
//   r7.xy = r7.xy / cb4[24].xy;
//   r6.z = max(0, r6.w);
//   r7.xy = r7.xy + -r6.xy;
//   r6.xy = r6.zz * r7.xy + r6.xy;
//   r7.xyz = t4.SampleLevel(s1_s, r6.xy, -1).xyz;
//   r7.w = 1;
//   r8.x = dot(r7.xyzw, r3.xyzw);
//   r8.y = dot(r7.xyzw, r5.xyzw);
//   r8.z = dot(r7.xyzw, r0.xyzw);
//   r6.xyzw = t5.SampleLevel(s2_s, r6.xy, -1).xyzw;
//   r6.xyz = float3(-0.5,-0.5,-0.5) + r6.xyz;
//   r6.xyz = r6.xyz + r6.xyz;
//   r7.z = dot(r6.xyz, r3.xyz);
//   r7.x = dot(r6.xyz, r5.xyz);
//   r7.y = dot(r6.xyz, r0.xyz);
//   r0.w = dot(r7.xyz, r7.xyz);
//   r0.w = sqrt(r0.w);
//   r6.xyz = r7.xyz / r0.www;
//   r0.w = 2048 * r6.w;
//   r0.w = max(8, r0.w);
//   r7.xyz = r6.zxy * r0.www + r8.xyz;
//   r9.x = dot(cb3[6].xyz, r7.xyz);
//   r9.y = dot(cb3[7].xyz, r7.xyz);
//   r7.xy = r9.xy / cb4[38].yy;
//   r7.xy = r4.ww * cb4[23].xy + r7.xy;
//   r7.zw = frac(r7.xy);
//   r3.w = t6.SampleLevel(s3_s, r7.zw, -1).w;
//   r3.w = cb4[38].z + r3.w;
//   r1.w = r3.w * r1.w;
//   r3.w = dot(cb3[6].yzx, r6.xyz);
//   r4.w = cb4[39].y + r3.w;
//   r4.w = cb4[39].z * r4.w;
//   r1.w = r4.w * r1.w;
//   r9.xyz = -r8.xyz + r4.xyz;
//   r10.x = r3.x;
//   r10.y = r5.x;
//   r10.z = r0.x;
//   r3.x = dot(-r10.xyz, -r10.xyz);
//   r10.x = sqrt(r3.x);
//   r11.x = r3.y;
//   r11.y = r5.y;
//   r11.z = r0.y;
//   r3.x = dot(-r11.xyz, -r11.xyz);
//   r10.y = sqrt(r3.x);
//   r0.x = r3.z;
//   r0.y = r5.z;
//   r0.x = dot(-r0.xyz, -r0.xyz);
//   r10.z = sqrt(r0.x);
//   r0.xyz = r9.xyz / r10.xyz;
//   r3.x = dot(r6.xyz, r6.xyz);
//   r3.x = sqrt(r3.x);
//   r3.xyz = r6.zxy / r3.xxx;
//   r0.x = dot(r0.xyz, r3.xyz);
//   r0.y = cb4[39].w * r0.w;
//   r0.x = saturate(r0.x / r0.y);
//   r0.x = r1.w * r0.x;
//   r0.x = 6.28318548 * r0.x;
//   r0.yz = r7.xy / cb4[40].xx;
//   r0.yz = frac(r0.yz);
//   r0.yzw = t6.SampleLevel(s3_s, r0.yz, -1).xyz;
//   r0.yzw = float3(-0.5,-0.5,-0.5) + r0.wyz;
//   r1.w = cmp(0 >= r3.w);
//   r3.x = r3.w * r3.w;
//   r3.x = r3.x * r3.x;
//   r3.x = r3.w * r3.x;
//   r3.xyz = float3(0,0,-0.200000003) * r3.xxx;
//   r3.xyz = r1.www ? float3(0,0,-0) : r3.xyz;
//   r3.xyz = cb3[6].xyz + r3.xyz;
//   r5.xyz = r6.xyz * r3.xyz;
//   r3.xyz = r6.zxy * r3.yzx + -r5.xyz;
//   r0.yzw = cb4[40].yyy * r0.yzw + r3.xyz;
//   r1.w = dot(r0.yzw, r0.yzw);
//   r1.w = sqrt(r1.w);
//   r0.yzw = r0.yzw / r1.www;
//   r1.w = dot(r0.zwy, r9.xyz);
//   r3.xyz = r0.zwy * r1.www + r8.xyz;
//   r5.xyz = r4.xyz + -r3.xyz;
//   r6.xyz = r5.yzx * r0.yzw;
//   r0.yzw = r0.wyz * r5.zxy + -r6.xyz;
//   sincos(r0.x, r0.x, r6.x);
//   r0.xyz = r0.yzw * r0.xxx;
//   r0.xyz = r5.xyz * r6.xxx + r0.xyz;
//   r0.xyz = r3.xyz + r0.xyz;
//   r0.xyz = r0.xyz + -r4.xyz;
//   r0.w = asint(cb2[4].w) & 1;
//   r0.w = r0.w ? r2.x : 1;
//   r0.xyz = r0.www * r0.xyz + r1.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 = v0.wwww * cb0[3].xyzw + r0.xyzw;
//   o1.xy = v4.xy;
//   o1.zw = v5.yx;
//   o2.xy = v6.xy;
//   o2.zw = float2(0,0);
//   o3.xyzw = r2.xyzw;
//   return;
// }
//////////////////////////////// HLSL Errors ////////////////////////////////
// A:\southofmidnight\midnight\binaries\win64\ShaderFixes\1eb6ada075ff925c-vs_replace.txt(10,8-12): error X3000: syntax error: unexpected token 'sint4'
/////////////////////////////////////////////////////////////////////////////
