//black smoke in town in sky
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.164 on Sat May  9 21:58:16 2026
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xyzw        0     NONE   float   xyzw
// ATTRIBUTE                1   xyz         1     NONE   float   xyz
// ATTRIBUTE                2   xyzw        2     NONE   float   xyzw
// ATTRIBUTE                3   xyzw        3     NONE   float   xyzw
// ATTRIBUTE                4   xy          4     NONE   float   xy
// ATTRIBUTE                5   xy          5     NONE   float   xy
// ATTRIBUTE                6   xy          6     NONE   float
// 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                10   xyzw        1     NONE   float   xyzw
// TEXCOORD                11   xyzw        2     NONE   float   xyzw
// TEXCOORD                 0   xyzw        3     NONE   float   xyzw
// TEXCOORD                 1   xyzw        4     NONE   float   xyzw
// COLOR                    0   xyzw        5     NONE   float   xyzw
// COLOR                    1   xyzw        6     NONE   float   xyzw
// COLOR                    3   xyzw        7     NONE   float   xyzw
// COLOR                    5   xyzw        8     NONE   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[143], immediateIndexed
dcl_constantbuffer CB1[5], immediateIndexed
dcl_constantbuffer CB2[27], immediateIndexed
dcl_constantbuffer CB3[35], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, 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_input v0.xyzw
dcl_input v1.xyz
dcl_input v2.xyzw
dcl_input v3.xyzw
dcl_input v4.xy
dcl_input v5.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.xyzw
dcl_output o5.xyzw
dcl_output o6.xyzw
dcl_output o7.xyzw
dcl_output o8.xyzw

//dcl_resource_texture2d (float,float,float,float) t125
//ld_indexable(texture2d)(float,float,float,float) r15.xyzw, l(0, 0, 0, 0), t125.xyzw

dcl_temps 17
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[6].yyzy, l(0, -1, -1, 0)
if_nz r0.y
  mov o6.xyzw, cb2[14].xyzw
endif
if_z r0.y
  and r0.yw, cb2[6].yyyy, 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) r0.y, r0.yyyy, t1.yxzw
    iadd r1.xyz, r0.wwww, l(1, 2, 3, 0)
    imad r1.xyz, r1.xyzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.x, r1.xxxx, t1.xyzw
    ld_indexable(buffer)(float,float,float,float) r1.y, r1.yyyy, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r1.z, r1.zzzz, t1.yzxw
    mov o6.x, r0.y
    mov o6.yzw, r1.xxyz
  else
    imad r0.y, r0.w, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r0.yyyy, t0.yxzw
    iadd r1.xyz, r0.wwww, l(1, 2, 3, 0)
    imad r1.xyz, r1.xyzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r0.w, r1.xxxx, t0.yzwx
    ld_indexable(buffer)(float,float,float,float) r1.x, r1.yyyy, t0.xyzw
    ld_indexable(buffer)(float,float,float,float) r1.y, r1.zzzz, t0.yxzw
    mov o6.xy, r0.ywyy
    mov o6.zw, r1.xxxy
  endif
endif
ieq r0.yw, cb2[5].wwwy, l(0, -1, 0, -1)
if_nz r0.y
  mov r1.xyz, cb2[12].xyzx
endif
if_z r0.y
  and r2.xy, cb2[5].wwww, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r2.x
    imad r0.y, r2.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.x, r0.yyyy, t1.xyzw
    iadd r2.xz, r2.yyyy, l(1, 0, 2, 0)
    imad r2.xz, r2.xxzx, 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.zzzz, t1.yzxw
  else
    imad r0.y, r2.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r1.x, r0.yyyy, t0.xyzw
    iadd r2.xy, r2.yyyy, 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, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r1.z, r2.yyyy, t0.yzxw
  endif
endif
ieq r2.xy, cb2[7].wxww, l(-1, -1, 0, 0)
if_nz r2.x
  mov o7.xyzw, cb2[20].xyzw
endif
if_z r2.x
  and r2.xz, cb2[7].wwww, l(0x80000000, 0, 0x7fffffff, 0)
  if_nz r2.x
    imad r0.y, r2.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r0.yyyy, t1.yxzw
    iadd r3.xyz, r2.zzzz, l(1, 2, 3, 0)
    imad r3.xyz, r3.xyzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.w, r3.xxxx, t1.yzwx
    ld_indexable(buffer)(float,float,float,float) r2.x, r3.yyyy, t1.xyzw
    ld_indexable(buffer)(float,float,float,float) r2.w, r3.zzzz, t1.yzwx
    mov o7.x, r0.y
    mov o7.y, r1.w
    mov o7.zw, r2.xxxw
  else
    imad r0.y, r2.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r0.yyyy, t0.yxzw
    iadd r2.xzw, r2.zzzz, l(1, 0, 2, 3)
    imad r2.xzw, r2.xxzw, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.w, r2.xxxx, t0.yzwx
    ld_indexable(buffer)(float,float,float,float) r2.x, r2.zzzz, t0.xyzw
    ld_indexable(buffer)(float,float,float,float) r2.z, r2.wwww, t0.yzxw
    mov o7.x, r0.y
    mov o7.y, r1.w
    mov o7.zw, r2.xxxz
  endif
endif
ieq r0.y, cb2[8].y, l(-1)
if_nz r0.y
  mov o8.xyzw, cb2[22].xyzw
endif
if_z r0.y
  and r2.xz, cb2[8].yyyy, l(0x80000000, 0, 0x7fffffff, 0)
  if_nz r2.x
    imad r0.y, r2.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r0.yyyy, t1.yxzw
    iadd r3.xyz, r2.zzzz, l(1, 2, 3, 0)
    imad r3.xyz, r3.xyzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.w, r3.xxxx, t1.yzwx
    ld_indexable(buffer)(float,float,float,float) r2.x, r3.yyyy, t1.xyzw
    ld_indexable(buffer)(float,float,float,float) r2.w, r3.zzzz, t1.yzwx
    mov o8.x, r0.y
    mov o8.y, r1.w
    mov o8.zw, r2.xxxw
  else
    imad r0.y, r2.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r0.yyyy, t0.yxzw
    iadd r2.xzw, r2.zzzz, l(1, 0, 2, 3)
    imad r2.xzw, r2.xxzw, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r1.w, r2.xxxx, t0.yzwx
    ld_indexable(buffer)(float,float,float,float) r2.x, r2.zzzz, t0.xyzw
    ld_indexable(buffer)(float,float,float,float) r2.z, r2.wwww, t0.yzxw
    mov o8.x, r0.y
    mov o8.y, r1.w
    mov o8.zw, r2.xxxz
  endif
endif
if_nz r0.w
  mov r2.xzw, cb2[10].xxyz
endif
if_z r0.w
  and r0.yw, cb2[5].yyyy, 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) r2.x, r0.yyyy, t1.xwyz
    iadd r3.xy, r0.wwww, l(1, 2, 0, 0)
    imad r3.xy, r3.xyxx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r2.z, r3.xxxx, t1.ywxz
    ld_indexable(buffer)(float,float,float,float) r2.w, r3.yyyy, t1.ywzx
  else
    imad r0.y, r0.w, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.x, r0.yyyy, t0.xwyz
    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) r2.z, r0.yyyy, t0.ywxz
    ld_indexable(buffer)(float,float,float,float) r2.w, r0.wwww, t0.ywzx
  endif
endif
if_nz r0.z
  mov r3.xyzw, cb2[15].xyzw
endif
if_z r0.z
  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) r3.x, r0.yyyy, t1.xyzw
    iadd r4.xyz, r0.zzzz, l(1, 2, 3, 0)
    imad r4.xyz, r4.xyzx, 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
    ld_indexable(buffer)(float,float,float,float) r3.w, r4.zzzz, t1.yzwx
  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.yzw, r0.zzzz, l(0, 1, 2, 3)
    imad r0.yzw, r0.yyzw, 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
    ld_indexable(buffer)(float,float,float,float) r3.w, r0.wwww, t0.yzwx
  endif
endif
if_nz r2.y
  mov r0.yzw, cb2[17].xxyz
endif
if_z r2.y
  and r4.xy, cb2[7].xxxx, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r4.x
    imad r1.w, r4.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r1.wwww, t1.wxyz
    iadd r4.xz, r4.yyyy, l(1, 0, 2, 0)
    imad r4.xz, r4.xxzx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r0.z, r4.xxxx, t1.wyxz
    ld_indexable(buffer)(float,float,float,float) r0.w, r4.zzzz, t1.wyzx
  else
    imad r1.w, r4.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r1.wwww, t0.wxyz
    iadd r4.xy, r4.yyyy, l(1, 2, 0, 0)
    imad r4.xy, r4.xyxx, cb2[26].xxxx, r0.xxxx
    ld_indexable(buffer)(float,float,float,float) r0.z, r4.xxxx, t0.wyxz
    ld_indexable(buffer)(float,float,float,float) r0.w, r4.yyyy, t0.wyzx
  endif
endif
mul r4.xyz, r0.yzwy, cb2[2].xyzx
dp4 r1.w, r3.xyzw, r3.xyzw
rsq r1.w, r1.w
mul r3.xyzw, r1.wwww, r3.xyzw
add r5.xyzw, r3.zzxy, r3.zzxy
mul r6.xy, r3.xyxx, r5.zwzz
mul r7.xyzw, r3.yzww, r5.xyzw
mul r1.w, r3.w, r5.y
mad r8.xyz, r3.yxxy, r5.wzyw, r7.yywy
mad r9.x, r3.x, r5.w, r1.w
mad r9.w, r3.x, r5.y, -r7.w
mad r10.x, r3.x, r5.w, -r1.w
add r9.yz, -r8.yyxy, l(0.000000, 1.000000, 1.000000, 0.000000)
add r10.z, r7.z, r7.x
mad r3.y, r3.y, r5.x, -r7.z
add r1.w, r6.y, r6.x
add r3.z, -r1.w, l(1.000000)
if_nz cb2[24].z
  switch cb2[24].z
    case l(1)
    dp3 r2.y, r1.xyzx, r1.xyzx
    sqrt r2.y, r2.y
    lt r3.w, l(0.000000), r2.y
    div r1.xyz, r1.xyzx, r2.yyyy
    and r1.xyz, r1.xyzx, r3.wwww
    mul r6.x, cb1[0].z, cb1[4].x
    mul r6.y, cb1[1].z, cb1[4].y
    mul r6.z, cb1[2].z, cb1[4].z
    movc r6.xyz, cb2[0].xxxx, r6.xyzx, l(0,0,1.000000,0)
    movc r5.xyz, r3.wwww, r1.zxyz, r6.zxyz
    mov r1.w, l(1)
    break
    case l(2)
    mul r1.xyz, r2.zzzz, cb1[1].xyzx
    mad r1.xyz, cb1[0].xyzx, r2.xxxx, r1.xyzx
    mad r1.xyz, cb1[2].xyzx, r2.wwww, r1.xyzx
    add r1.xyz, r1.xyzx, cb1[3].xyzx
    movc r1.xyz, cb2[0].xxxx, r1.xyzx, r2.xzwx
    add r1.xyz, -r1.xyzx, cb0[67].xyzx
    dp3 r2.y, r1.xyzx, r1.xyzx
    rsq r2.y, r2.y
    mul r1.xyz, r1.xyzx, r2.yyyy
    mul r6.xyz, cb1[0].xyzx, cb1[4].xxxx
    mul r7.xyz, cb1[1].xyzx, cb1[4].yyyy
    mul r11.xyz, cb1[2].xyzx, cb1[4].zzzz
    dp3 r6.x, r1.xyzx, r6.xyzx
    dp3 r6.y, r1.xyzx, r7.xyzx
    dp3 r6.z, r1.xyzx, r11.xyzx
    movc r5.xyz, cb2[0].xxxx, r6.zxyz, r1.zxyz
    mov r1.w, l(2)
    break
    default
    mul r1.xyz, cb1[0].xyzx, cb1[4].xxxx
    mul r6.xyz, cb1[1].xyzx, cb1[4].yyyy
    mul r7.xyz, cb1[2].xyzx, cb1[4].zzzz
    dp3 r1.x, -cb0[60].xyzx, r1.xyzx
    dp3 r1.y, -cb0[60].xyzx, r6.xyzx
    dp3 r1.z, -cb0[60].xyzx, r7.xyzx
    movc r5.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 r2.y, r1.x
    and r1.z, r1.z, r2.y
    or r1.y, r1.z, r1.y
    and r1.x, r1.x, r1.y
    mul r6.xyz, cb1[0].yzxy, cb1[4].xxxx
    mul r7.xyz, cb1[1].yzxy, cb1[4].yyyy
    mul r11.xyz, cb1[2].yzxy, cb1[4].zzzz
    dp3 r12.z, cb2[25].yzxy, r6.xyzx
    dp3 r12.x, cb2[25].yzxy, r7.xyzx
    dp3 r12.y, cb2[25].yzxy, r11.xyzx
    not r1.y, r1.y
    and r1.y, r2.y, r1.y
    mul r7.xyz, r7.xyzx, cb2[25].yyyy
    mad r6.xyz, r6.xyzx, cb2[25].xxxx, r7.xyzx
    mad r6.xyz, r11.xyzx, cb2[25].zzzz, r6.xyzx
    movc r6.xyz, r1.yyyy, r6.xyzx, cb2[25].yzxy
    movc r1.xyz, r1.xxxx, r12.xzyx, r6.xzyx
    dp3 r2.y, r5.zyxz, r1.xyzx
    lt r2.y, l(0.990000), |r2.y|
    lt r3.w, l(0.990000), |r1.z|
    movc r6.xyz, r3.wwww, l(1.000000,0,0,0), l(0,0,1.000000,0)
    movc r6.xyz, r2.yyyy, r6.xyzx, r5.yzxy
    mul r7.xyz, r1.xzyx, r6.xyzx
    mad r6.xyz, r1.yxzy, r6.yzxy, -r7.xyzx
    dp3 r2.y, r6.xyzx, r6.xyzx
    rsq r2.y, r2.y
    mul r6.xyz, r2.yyyy, r6.xyzx
    mul r7.xyz, r1.xzyx, r6.xyzx
    mad r7.xyz, r6.zxyz, r1.zyxz, -r7.xyzx
    mov r11.x, r7.x
    mov r11.y, r6.y
    mov r11.z, r1.y
    mov r12.x, r7.y
    mov r12.y, r6.z
    mov r12.z, r1.x
    mov r1.x, r7.z
    mov r1.y, r6.x
  else
    ieq r1.w, r1.w, l(3)
    lt r2.y, l(0.990000), |r5.x|
    lt r3.w, l(0.000000), r5.x
    lt r4.w, r5.x, l(0.000000)
    iadd r3.w, r3.w, -r4.w
    itof r3.w, r3.w
    mul r6.xyz, r3.wwww, l(1.000000, 0.000000, 0.000000, 0.000000)
    movc r6.xyz, r2.yyyy, r6.xyzx, l(0,0,1.000000,0)
    movc r6.xyz, r1.wwww, cb0[61].xyzx, r6.xyzx
    mul r7.xyz, cb1[0].xyzx, cb1[4].xxxx
    mul r13.xyz, cb1[1].xyzx, cb1[4].yyyy
    mul r14.xyz, cb1[2].xyzx, cb1[4].zzzz
    dp3 r7.x, r6.xyzx, r7.xyzx
    dp3 r7.y, r6.xyzx, r13.xyzx
    dp3 r7.z, r6.xyzx, r14.xyzx
    movc r6.xyz, cb2[0].xxxx, r7.xyzx, r6.xyzx
    mul r7.xyz, r5.xyzx, r6.xyzx
    mad r6.xyz, r6.zxyz, r5.yzxy, -r7.xyzx
    dp3 r1.w, r6.xyzx, r6.xyzx
    rsq r1.w, r1.w
    mul r6.xyz, r1.wwww, r6.xyzx
    mul r7.xyz, r5.xyzx, r6.xyzx
    mad r1.xyz, r5.zxyz, r6.yzxy, -r7.xyzx
    mov r11.x, r5.y
    mov r11.y, r6.z
    mov r11.z, r1.x
    mov r12.x, r5.z
    mov r12.y, r6.x
    mov r12.z, r1.y
    mov r1.x, r5.x
    mov r1.y, r6.y
  endif
  dp3 r5.x, r9.zxwz, r11.xyzx
  dp3 r6.x, r9.zxwz, r12.xyzx
  dp3 r7.x, r9.zxwz, r1.xyzx
  mov r10.y, r9.y
  dp3 r5.y, r10.xyzx, r11.xyzx
  dp3 r6.y, r10.xyzx, r12.xyzx
  dp3 r7.y, r10.xyzx, r1.xyzx
  mov r3.x, r8.z
  dp3 r5.z, r3.xyzx, r11.xyzx
  dp3 r6.z, r3.xyzx, r12.xyzx
  dp3 r7.z, r3.xyzx, r1.xyzx
  mov r9.xyz, r6.xyzx
  mov r3.xyz, r7.xyzx
else
  mad r5.xz, r8.xxzx, l(-1.000000, 0.000000, 1.000000, 0.000000), l(1.000000, 0.000000, 0.000000, 0.000000)
  mov r5.y, r10.x
  mov r9.z, r3.y
  mov r3.x, r9.w
  mov r3.y, r10.z
endif
mul r1.xyz, r2.zzzz, cb1[1].xyzx
mad r1.xyz, cb1[0].xyzx, r2.xxxx, r1.xyzx
mad r1.xyz, cb1[2].xyzx, r2.wwww, r1.xyzx
add r1.xyz, r1.xyzx, cb1[3].xyzx
movc r1.xyz, cb2[0].xxxx, r1.xyzx, r2.xzwx
ieq r1.w, cb2[9].y, l(-1)
if_nz r1.w
  mov r2.y, cb2[23].w
endif
if_z r1.w
  and r6.xy, cb2[9].yyyy, l(0x80000000, 0x7fffffff, 0, 0)
  if_nz r6.x
    imad r1.w, r6.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.y, r1.wwww, t1.yxzw
  else
    imad r0.x, r6.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.y, r0.xxxx, t0.yxzw
  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 r6.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 r6.x, r1.xyzx, r6.xyzx
dp3 r6.y, r1.xyzx, r7.xyzx
dp3 r6.z, r1.xyzx, r8.xyzx
movc r1.xyz, cb2[0].xxxx, r6.xyzx, r1.xyzx
mad r1.xyz, r1.xyzx, r2.yyyy, r2.xzwx
mul r0.xyz, r0.yzwy, cb2[1].xyzx
dp3 r2.x, r0.xyzx, r5.xyzx
dp3 r2.y, r0.xyzx, r9.xyzx
dp3 r2.z, r0.xyzx, r3.xyzx
add r0.xyz, r1.xyzx, r2.xyzx
movc r0.xyz, cb2[1].wwww, r1.xyzx, r0.xyzx
mul r1.xyz, r4.xyzx, r5.xyzx
mul r2.xyz, r4.xyzx, r9.xyzx
mul r4.xyz, r3.xyzx, r4.xyzx
if_nz cb2[0].x
  mul r6.xyz, r2.xxxx, cb1[1].xyzx
  mad r6.xyz, r1.xxxx, cb1[0].xyzx, r6.xyzx
  mad r6.xyz, r4.xxxx, cb1[2].xyzx, r6.xyzx
  mul r7.xyz, r2.yyyy, cb1[1].xyzx
  mad r7.xyz, r1.yyyy, cb1[0].xyzx, r7.xyzx
  mad r7.xyz, r4.yyyy, cb1[2].xyzx, r7.xyzx
  mul r8.xyz, r2.zzzz, cb1[1].xyzx
  mad r8.xyz, r1.zzzz, cb1[0].xyzx, r8.xyzx
  mad r4.xyz, r4.zzzz, cb1[2].xyzx, r8.xyzx
  mul r8.xyz, r0.yyyy, cb1[1].xyzx
  mad r8.xyz, r0.xxxx, cb1[0].xyzx, r8.xyzx
  mad r8.xyz, r0.zzzz, cb1[2].xyzx, r8.xyzx
  add r0.xyz, r8.xyzx, cb1[3].xyzx
  mul r8.xyz, r9.xxxx, cb1[1].xyzx
  mad r8.xyz, r5.xxxx, cb1[0].xyzx, r8.xyzx
  mad r8.xyz, r3.xxxx, cb1[2].xyzx, r8.xyzx
  mul r10.xyz, r9.yyyy, cb1[1].xyzx
  mad r10.xyz, r5.yyyy, cb1[0].xyzx, r10.xyzx
  mad r10.xyz, r3.yyyy, cb1[2].xyzx, r10.xyzx
  mul r11.xyz, r9.zzzz, cb1[1].xyzx
  mad r11.xyz, r5.zzzz, cb1[0].xyzx, r11.xyzx
  mad r11.xyz, r3.zzzz, cb1[2].xyzx, r11.xyzx
  mul r8.xyz, r8.xyzx, cb1[4].xxxx
  mul r10.xyz, r10.xyzx, cb1[4].yyyy
  mul r3.xyz, r11.xyzx, cb1[4].zzzz
  mov r1.x, r6.x
  mov r1.y, r7.x
  mov r1.z, r4.x
  mov r2.x, r6.y
  mov r2.y, r7.y
  mov r2.z, r4.y
  mov r4.x, r6.z
  mov r4.y, r7.z
  mov r5.x, r8.x
  mov r5.y, r10.x
  mov r5.z, r3.x
  mov r9.x, r8.y
  mov r9.y, r10.y
  mov r9.z, r3.y
  mov r3.x, r8.z
  mov r3.y, r10.z
endif
if_nz cb2[1].w
  add r6.xyz, r0.xyzx, cb2[1].xyzx
  mov r1.w, r6.x
  mov r2.w, r6.y
  mov r4.w, r6.z
else
  mov r1.w, r0.x
  mov r2.w, r0.y
  mov r4.w, r0.z
endif
dp4 r0.x, v0.xyzw, r1.xyzw
dp4 r0.y, v0.xyzw, r2.xyzw
dp4 r0.z, v0.xyzw, r4.xyzw
add r0.yzw, r0.xxyz, cb0[70].xxyz
mul r6.x, v5.x, cb3[26].z
mul r1.w, v5.y, cb3[27].z
add r7.xy, cb3[33].xyxx, l(-0.050000, -0.050000, 0.000000, 0.000000)
lt r7.xy, l(0.000010, 0.000010, 0.000000, 0.000000), |r7.xyxx|
ge r7.zw, cb3[33].xxxy, l(0.000000, 0.000000, 0.050000, 0.050000)
and r2.w, r7.z, cb3[32].w
movc r2.w, r7.x, r2.w, cb3[32].w
and r3.w, r2.w, r7.w
movc r2.w, r7.y, r3.w, r2.w
round_ne r2.w, r2.w
mad r2.w, r2.w, l(100.000000), cb3[33].z
div r2.w, cb3[33].w, r2.w
mad r0.x, r0.x, cb3[34].x, cb0[142].z
add r0.x, r0.x, -cb3[34].y
add r3.w, r2.w, l(-0.010000)
div r3.w, cb3[34].z, r3.w
mul r0.x, r0.x, r3.w
mul r0.x, r0.x, cb3[34].w
frc r0.x, r0.x
mul r0.x, r2.w, r0.x
round_ni r3.w, r0.x
add r4.w, r3.w, l(1.000000)
div r3.w, r3.w, r2.w
ge r5.w, r3.w, -r3.w
frc r3.w, |r3.w|
movc r3.w, r5.w, r3.w, -r3.w
mul r3.w, r2.w, r3.w
div r5.w, l(1.000000, 1.000000, 1.000000, 1.000000), r2.w
mul r3.w, r3.w, r5.w
mad r6.y, r3.w, cb3[27].z, r1.w
sample_l_indexable(texture2d)(float,float,float,float) r7.xyz, r6.xyxx, t3.xyzw, s0, l(-1.000000)
mad r8.xyz, r7.xyzx, cb3[24].xyzx, cb3[23].xyzx
add r3.w, cb3[30].z, l(-0.500000)
lt r3.w, l(0.000010), |r3.w|
ge r6.w, cb3[30].z, l(0.500000)
movc r8.xyz, r6.wwww, r7.xyzx, r8.xyzx
movc r7.xyz, r3.wwww, r8.xyzx, r7.xyzx
div r4.w, r4.w, r2.w
ge r7.w, r4.w, -r4.w
frc r4.w, |r4.w|
movc r4.w, r7.w, r4.w, -r4.w
mul r2.w, r2.w, r4.w
mul r2.w, r5.w, r2.w
mad r6.z, r2.w, cb3[27].z, r1.w
sample_l_indexable(texture2d)(float,float,float,float) r8.xyz, r6.xzxx, t3.xyzw, s0, l(-1.000000)
mad r10.xyz, r8.xyzx, cb3[24].xyzx, cb3[23].xyzx
movc r10.xyz, r6.wwww, r8.xyzx, r10.xyzx
movc r8.xyz, r3.wwww, r10.xyzx, r8.xyzx
frc r0.x, r0.x
add r8.xyz, -r7.xyzx, r8.xyzx
mad r7.xyz, r0.xxxx, r8.xyzx, r7.xyzx
add r1.w, v5.y, l(-0.900000)
lt r1.w, l(0.000010), |r1.w|
ge r2.w, v5.y, l(0.900000)
movc r7.xyz, r2.wwww, -v0.xyzx, r7.xyzx
movc r7.xyz, r1.wwww, r7.xyzx, -v0.xyzx
dp3 r8.x, r7.xyzx, r1.xyzx
dp3 r8.y, r7.xyzx, r2.xyzx
dp3 r8.z, r7.xyzx, r4.xyzx
add r0.yzw, r0.yyzw, r8.xxyz
mul r7.xyzw, r0.zzzz, cb0[1].xyzw
mad r7.xyzw, r0.yyyy, cb0[0].xyzw, r7.xyzw
mad r7.xyzw, r0.wwww, cb0[2].xyzw, r7.xyzw
mad o0.xyzw, v0.wwww, cb0[3].xyzw, r7.xyzw
sample_l_indexable(texture2d)(float,float,float,float) r7.xyzw, r6.xyxx, t4.xyzw, s1, l(-1.000000)
add r8.xyzw, r7.xyzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
add r8.xyzw, r8.xyzw, r8.xyzw
movc r8.xyzw, r6.wwww, r7.xyzw, r8.xyzw
movc r7.xyzw, r3.wwww, r8.xyzw, r7.xyzw
mul r0.yzw, r7.xxyz, l(0.000000, 1.000000, 0.000000, 0.000000)
mad r0.yzw, r7.zzxy, l(0.000000, 0.000000, 0.000000, 1.000000), -r0.yyzw
mad r0.yzw, r7.wwww, l(0.000000, 0.000000, 1.000000, 0.000000), r0.yyzw
mul r8.xyz, r0.yzwy, r7.zxyz
mad r0.yzw, r7.yyzx, r0.zzwy, -r8.xxyz
mad r0.yzw, r0.yyzw, l(0.000000, 2.000000, 2.000000, 2.000000), l(0.000000, 0.000000, 0.000000, 1.000000)
sample_l_indexable(texture2d)(float,float,float,float) r7.xyzw, r6.xzxx, t4.xyzw, s1, l(-1.000000)
add r8.xyzw, r7.xyzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
add r8.xyzw, r8.xyzw, r8.xyzw
movc r6.xyzw, r6.wwww, r7.xyzw, r8.xyzw
movc r6.xyzw, r3.wwww, r6.xyzw, r7.xyzw
mul r7.xyz, r6.xyzx, l(1.000000, 0.000000, 0.000000, 0.000000)
mad r7.xyz, r6.zxyz, l(0.000000, 0.000000, 1.000000, 0.000000), -r7.xyzx
mad r7.xyz, r6.wwww, l(0.000000, 1.000000, 0.000000, 0.000000), r7.xyzx
mul r8.xyz, r6.zxyz, r7.xyzx
mad r6.xyz, r6.yzxy, r7.yzxy, -r8.xyzx
mad r6.xyz, r6.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(0.000000, 0.000000, 1.000000, 0.000000)
add r6.xyz, -r0.yzwy, r6.xyzx
mad r0.xyz, r0.xxxx, r6.xyzx, r0.yzwy
dp3 r1.x, r0.xyzx, r1.xyzx
dp3 r1.y, r0.xyzx, r2.xyzx
dp3 r1.z, r0.xyzx, r4.xyzx
dp3 r0.x, r1.xyzx, r1.xyzx
sqrt r0.x, r0.x
div o4.xy, r1.xyxx, r0.xxxx
mul r0.xyz, v1.xyzx, v2.yzxy
mad r0.xyz, v2.xyzx, v1.yzxy, -r0.xyzx
mul r0.xyz, r0.xyzx, v2.wwww
mul r1.xyz, r0.xyzx, v2.yzxy
mad r0.xyz, r0.zxyz, v2.zxyz, -r1.xyzx
mul r0.xyz, r0.xyzx, v2.wwww
dp3 r1.x, r0.xyzx, r5.xyzx
dp3 r1.y, r0.xyzx, r9.xyzx
dp3 r1.z, r0.xyzx, r3.xyzx
dp3 r0.x, v2.xyzx, r5.xyzx
dp3 r0.y, v2.xyzx, r9.xyzx
dp3 r0.z, v2.xyzx, r3.xyzx
dp3 r0.w, r1.xyzx, r1.xyzx
rsq r0.w, r0.w
mul o1.xyz, r0.wwww, r1.xyzx
dp3 r0.w, r0.xyzx, r0.xyzx
rsq r0.w, r0.w
mul o2.xyz, r0.wwww, r0.xyzx
mul o2.w, v2.w, cb1[4].w
mov o1.w, l(0)
mov o3.xy, v4.xyxx
mov o3.zw, v5.yyyx
mov o4.zw, l(0,0,0,0)
mov o5.xyzw, v3.xyzw

//add r15.y, r16.w, -r15.y
//mul r15.x, r15.x, r15.y
//add r16.x, r16.x, r15.x
mov o0.xyzw, l(0,0,0,0)

ret
// Approximately 0 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v0.6.164 on Sat May  9 21:58:16 2026
// 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 s1_s : register(s1);
//
// SamplerState s0_s : register(s0);
//
// cbuffer cb3 : register(b3)
// {
//   float4 cb3[35];
// }
//
// 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 : TEXCOORD10,
//   out float4 o2 : TEXCOORD11,
//   out float4 o3 : TEXCOORD0,
//   out float4 o4 : TEXCOORD1,
//   out float4 o5 : COLOR0,
//   out float4 o6 : COLOR1,
//   out float4 o7 : COLOR3,
//   out float4 o8 : COLOR5)
// {
// // 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;
//   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[6].yz) == int2(-1,-1));
//   if (r0.y != 0) {
//     o6.xyzw = cb2[14].xyzw;
//   }
//   if (r0.y == 0) {
//     r0.yw = asint(cb2[6].yy) & int2(0x80000000,0x7fffffff);
//     if (r0.y != 0) {
//       r0.y = mad((int)r0.w, asint(cb2[26].x), (int)r0.x);
//       r0.y = t1.Load(r0.y).x;
//       r1.xyz = (int3)r0.www + int3(1,2,3);
//       r1.xyz = mad((int3)r1.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r1.x = t1.Load(r1.x).x;
//       r1.y = t1.Load(r1.y).x;
//       r1.z = t1.Load(r1.z).x;
//       o6.x = r0.y;
//       o6.yzw = r1.xyz;
//     } else {
//       r0.y = mad((int)r0.w, asint(cb2[26].x), (int)r0.x);
//       r0.y = t0.Load(r0.y).x;
//       r1.xyz = (int3)r0.www + int3(1,2,3);
//       r1.xyz = mad((int3)r1.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r0.w = t0.Load(r1.x).x;
//       r1.x = t0.Load(r1.y).x;
//       r1.y = t0.Load(r1.z).x;
//       o6.xy = r0.yw;
//       o6.zw = r1.xy;
//     }
//   }
//   r0.yw = cmp(asint(cb2[5].wy) == int2(-1,-1));
//   if (r0.y != 0) {
//     r1.xyz = cb2[12].xyz;
//   }
//   if (r0.y == 0) {
//     r2.xy = asint(cb2[5].ww) & int2(0x80000000,0x7fffffff);
//     if (r2.x != 0) {
//       r0.y = mad((int)r2.y, asint(cb2[26].x), (int)r0.x);
//       r1.x = t1.Load(r0.y).x;
//       r2.xz = (int2)r2.yy + int2(1,2);
//       r2.xz = mad((int2)r2.xz, asint(cb2[26].xx), (int2)r0.xx);
//       r1.y = t1.Load(r2.x).x;
//       r1.z = t1.Load(r2.z).x;
//     } else {
//       r0.y = mad((int)r2.y, asint(cb2[26].x), (int)r0.x);
//       r1.x = t0.Load(r0.y).x;
//       r2.xy = (int2)r2.yy + int2(1,2);
//       r2.xy = mad((int2)r2.xy, asint(cb2[26].xx), (int2)r0.xx);
//       r1.y = t0.Load(r2.x).x;
//       r1.z = t0.Load(r2.y).x;
//     }
//   }
//   r2.xy = cmp(asint(cb2[7].wx) == int2(-1,-1));
//   if (r2.x != 0) {
//     o7.xyzw = cb2[20].xyzw;
//   }
//   if (r2.x == 0) {
//     r2.xz = asint(cb2[7].ww) & int2(0x80000000,0x7fffffff);
//     if (r2.x != 0) {
//       r0.y = mad((int)r2.z, asint(cb2[26].x), (int)r0.x);
//       r0.y = t1.Load(r0.y).x;
//       r3.xyz = (int3)r2.zzz + int3(1,2,3);
//       r3.xyz = mad((int3)r3.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r1.w = t1.Load(r3.x).x;
//       r2.x = t1.Load(r3.y).x;
//       r2.w = t1.Load(r3.z).x;
//       o7.x = r0.y;
//       o7.y = r1.w;
//       o7.zw = r2.xw;
//     } else {
//       r0.y = mad((int)r2.z, asint(cb2[26].x), (int)r0.x);
//       r0.y = t0.Load(r0.y).x;
//       r2.xzw = (int3)r2.zzz + int3(1,2,3);
//       r2.xzw = mad((int3)r2.xzw, asint(cb2[26].xxx), (int3)r0.xxx);
//       r1.w = t0.Load(r2.x).x;
//       r2.x = t0.Load(r2.z).x;
//       r2.z = t0.Load(r2.w).x;
//       o7.x = r0.y;
//       o7.y = r1.w;
//       o7.zw = r2.xz;
//     }
//   }
//   r0.y = cmp(asint(cb2[8].y) == -1);
//   if (r0.y != 0) {
//     o8.xyzw = cb2[22].xyzw;
//   }
//   if (r0.y == 0) {
//     r2.xz = asint(cb2[8].yy) & int2(0x80000000,0x7fffffff);
//     if (r2.x != 0) {
//       r0.y = mad((int)r2.z, asint(cb2[26].x), (int)r0.x);
//       r0.y = t1.Load(r0.y).x;
//       r3.xyz = (int3)r2.zzz + int3(1,2,3);
//       r3.xyz = mad((int3)r3.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r1.w = t1.Load(r3.x).x;
//       r2.x = t1.Load(r3.y).x;
//       r2.w = t1.Load(r3.z).x;
//       o8.x = r0.y;
//       o8.y = r1.w;
//       o8.zw = r2.xw;
//     } else {
//       r0.y = mad((int)r2.z, asint(cb2[26].x), (int)r0.x);
//       r0.y = t0.Load(r0.y).x;
//       r2.xzw = (int3)r2.zzz + int3(1,2,3);
//       r2.xzw = mad((int3)r2.xzw, asint(cb2[26].xxx), (int3)r0.xxx);
//       r1.w = t0.Load(r2.x).x;
//       r2.x = t0.Load(r2.z).x;
//       r2.z = t0.Load(r2.w).x;
//       o8.x = r0.y;
//       o8.y = r1.w;
//       o8.zw = r2.xz;
//     }
//   }
//   if (r0.w != 0) {
//     r2.xzw = cb2[10].xyz;
//   }
//   if (r0.w == 0) {
//     r0.yw = asint(cb2[5].yy) & int2(0x80000000,0x7fffffff);
//     if (r0.y != 0) {
//       r0.y = mad((int)r0.w, asint(cb2[26].x), (int)r0.x);
//       r2.x = t1.Load(r0.y).x;
//       r3.xy = (int2)r0.ww + int2(1,2);
//       r3.xy = mad((int2)r3.xy, asint(cb2[26].xx), (int2)r0.xx);
//       r2.z = t1.Load(r3.x).x;
//       r2.w = t1.Load(r3.y).x;
//     } else {
//       r0.y = mad((int)r0.w, asint(cb2[26].x), (int)r0.x);
//       r2.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);
//       r2.z = t0.Load(r0.y).x;
//       r2.w = t0.Load(r0.w).x;
//     }
//   }
//   if (r0.z != 0) {
//     r3.xyzw = cb2[15].xyzw;
//   }
//   if (r0.z == 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);
//       r3.x = t1.Load(r0.y).x;
//       r4.xyz = (int3)r0.zzz + int3(1,2,3);
//       r4.xyz = mad((int3)r4.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r3.y = t1.Load(r4.x).x;
//       r3.z = t1.Load(r4.y).x;
//       r3.w = t1.Load(r4.z).x;
//     } else {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r3.x = t0.Load(r0.y).x;
//       r0.yzw = (int3)r0.zzz + int3(1,2,3);
//       r0.yzw = mad((int3)r0.yzw, asint(cb2[26].xxx), (int3)r0.xxx);
//       r3.y = t0.Load(r0.y).x;
//       r3.z = t0.Load(r0.z).x;
//       r3.w = t0.Load(r0.w).x;
//     }
//   }
//   if (r2.y != 0) {
//     r0.yzw = cb2[17].xyz;
//   }
//   if (r2.y == 0) {
//     r4.xy = asint(cb2[7].xx) & int2(0x80000000,0x7fffffff);
//     if (r4.x != 0) {
//       r1.w = mad((int)r4.y, asint(cb2[26].x), (int)r0.x);
//       r0.y = t1.Load(r1.w).x;
//       r4.xz = (int2)r4.yy + int2(1,2);
//       r4.xz = mad((int2)r4.xz, asint(cb2[26].xx), (int2)r0.xx);
//       r0.z = t1.Load(r4.x).x;
//       r0.w = t1.Load(r4.z).x;
//     } else {
//       r1.w = mad((int)r4.y, asint(cb2[26].x), (int)r0.x);
//       r0.y = t0.Load(r1.w).x;
//       r4.xy = (int2)r4.yy + int2(1,2);
//       r4.xy = mad((int2)r4.xy, asint(cb2[26].xx), (int2)r0.xx);
//       r0.z = t0.Load(r4.x).x;
//       r0.w = t0.Load(r4.y).x;
//     }
//   }
//   r4.xyz = cb2[2].xyz * r0.yzw;
//   r1.w = dot(r3.xyzw, r3.xyzw);
//   r1.w = rsqrt(r1.w);
//   r3.xyzw = r3.xyzw * r1.wwww;
//   r5.xyzw = r3.zzxy + r3.zzxy;
//   r6.xy = r5.zw * r3.xy;
//   r7.xyzw = r5.xyzw * r3.yzww;
//   r1.w = r5.y * r3.w;
//   r8.xyz = r3.yxx * r5.wzy + r7.yyw;
//   r9.x = r3.x * r5.w + r1.w;
//   r9.w = r3.x * r5.y + -r7.w;
//   r10.x = r3.x * r5.w + -r1.w;
//   r9.yz = float2(1,1) + -r8.yx;
//   r10.z = r7.x + r7.z;
//   r3.y = r3.y * r5.x + -r7.z;
//   r1.w = r6.x + r6.y;
//   r3.z = 1 + -r1.w;
//   if (cb2[24].z != 0) {
//     switch (cb2[24].z) {
//       case 1 :      r2.y = dot(r1.xyz, r1.xyz);
//       r2.y = sqrt(r2.y);
//       r3.w = cmp(0 < r2.y);
//       r1.xyz = r1.xyz / r2.yyy;
//       r1.xyz = r3.www ? r1.xyz : 0;
//       r6.x = cb1[4].x * cb1[0].z;
//       r6.y = cb1[4].y * cb1[1].z;
//       r6.z = cb1[4].z * cb1[2].z;
//       r6.xyz = cb2[0].xxx ? r6.xyz : float3(0,0,1);
//       r5.xyz = r3.www ? r1.zxy : r6.zxy;
//       r1.w = 1;
//       break;
//       case 2 :      r1.xyz = cb1[1].xyz * r2.zzz;
//       r1.xyz = cb1[0].xyz * r2.xxx + r1.xyz;
//       r1.xyz = cb1[2].xyz * r2.www + r1.xyz;
//       r1.xyz = cb1[3].xyz + r1.xyz;
//       r1.xyz = cb2[0].xxx ? r1.xyz : r2.xzw;
//       r1.xyz = cb0[67].xyz + -r1.xyz;
//       r2.y = dot(r1.xyz, r1.xyz);
//       r2.y = rsqrt(r2.y);
//       r1.xyz = r2.yyy * r1.xyz;
//       r6.xyz = cb1[4].xxx * cb1[0].xyz;
//       r7.xyz = cb1[4].yyy * cb1[1].xyz;
//       r11.xyz = cb1[4].zzz * cb1[2].xyz;
//       r6.x = dot(r1.xyz, r6.xyz);
//       r6.y = dot(r1.xyz, r7.xyz);
//       r6.z = dot(r1.xyz, r11.xyz);
//       r5.xyz = cb2[0].xxx ? r6.zxy : r1.zxy;
//       r1.w = 2;
//       break;
//       default :
//       r1.xyz = cb1[4].xxx * cb1[0].xyz;
//       r6.xyz = cb1[4].yyy * cb1[1].xyz;
//       r7.xyz = cb1[4].zzz * cb1[2].xyz;
//       r1.x = dot(-cb0[60].xyz, r1.xyz);
//       r1.y = dot(-cb0[60].xyz, r6.xyz);
//       r1.z = dot(-cb0[60].xyz, r7.xyz);
//       r5.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));
//       r2.y = ~(int)r1.x;
//       r1.z = r1.z ? r2.y : 0;
//       r1.y = (int)r1.z | (int)r1.y;
//       r1.x = r1.x ? r1.y : 0;
//       r6.xyz = cb1[4].xxx * cb1[0].yzx;
//       r7.xyz = cb1[4].yyy * cb1[1].yzx;
//       r11.xyz = cb1[4].zzz * cb1[2].yzx;
//       r12.z = dot(cb2[25].yzx, r6.xyz);
//       r12.x = dot(cb2[25].yzx, r7.xyz);
//       r12.y = dot(cb2[25].yzx, r11.xyz);
//       r1.y = ~(int)r1.y;
//       r1.y = r1.y ? r2.y : 0;
//       r7.xyz = cb2[25].yyy * r7.xyz;
//       r6.xyz = r6.xyz * cb2[25].xxx + r7.xyz;
//       r6.xyz = r11.xyz * cb2[25].zzz + r6.xyz;
//       r6.xyz = r1.yyy ? r6.xyz : cb2[25].yzx;
//       r1.xyz = r1.xxx ? r12.xzy : r6.xzy;
//       r2.y = dot(r5.zyx, r1.xyz);
//       r2.y = cmp(0.99000001 < abs(r2.y));
//       r3.w = cmp(0.99000001 < abs(r1.z));
//       r6.xyz = r3.www ? float3(1,0,0) : float3(0,0,1);
//       r6.xyz = r2.yyy ? r6.xyz : r5.yzx;
//       r7.xyz = r6.xyz * r1.xzy;
//       r6.xyz = r1.yxz * r6.yzx + -r7.xyz;
//       r2.y = dot(r6.xyz, r6.xyz);
//       r2.y = rsqrt(r2.y);
//       r6.xyz = r6.xyz * r2.yyy;
//       r7.xyz = r6.xyz * r1.xzy;
//       r7.xyz = r6.zxy * r1.zyx + -r7.xyz;
//       r11.x = r7.x;
//       r11.y = r6.y;
//       r11.z = r1.y;
//       r12.x = r7.y;
//       r12.y = r6.z;
//       r12.z = r1.x;
//       r1.x = r7.z;
//       r1.y = r6.x;
//     } else {
//       r1.w = cmp((int)r1.w == 3);
//       r2.y = cmp(0.99000001 < abs(r5.x));
//       r3.w = cmp(0 < r5.x);
//       r4.w = cmp(r5.x < 0);
//       r3.w = (int)r3.w + (int)-r4.w;
//       r3.w = (int)r3.w;
//       r6.xyz = float3(1,0,0) * r3.www;
//       r6.xyz = r2.yyy ? r6.xyz : float3(0,0,1);
//       r6.xyz = r1.www ? cb0[61].xyz : r6.xyz;
//       r7.xyz = cb1[4].xxx * cb1[0].xyz;
//       r13.xyz = cb1[4].yyy * cb1[1].xyz;
//       r14.xyz = cb1[4].zzz * cb1[2].xyz;
//       r7.x = dot(r6.xyz, r7.xyz);
//       r7.y = dot(r6.xyz, r13.xyz);
//       r7.z = dot(r6.xyz, r14.xyz);
//       r6.xyz = cb2[0].xxx ? r7.xyz : r6.xyz;
//       r7.xyz = r6.xyz * r5.xyz;
//       r6.xyz = r6.zxy * r5.yzx + -r7.xyz;
//       r1.w = dot(r6.xyz, r6.xyz);
//       r1.w = rsqrt(r1.w);
//       r6.xyz = r6.xyz * r1.www;
//       r7.xyz = r6.xyz * r5.xyz;
//       r1.xyz = r5.zxy * r6.yzx + -r7.xyz;
//       r11.x = r5.y;
//       r11.y = r6.z;
//       r11.z = r1.x;
//       r12.x = r5.z;
//       r12.y = r6.x;
//       r12.z = r1.y;
//       r1.x = r5.x;
//       r1.y = r6.y;
//     }
//     r5.x = dot(r9.zxw, r11.xyz);
//     r6.x = dot(r9.zxw, r12.xyz);
//     r7.x = dot(r9.zxw, r1.xyz);
//     r10.y = r9.y;
//     r5.y = dot(r10.xyz, r11.xyz);
//     r6.y = dot(r10.xyz, r12.xyz);
//     r7.y = dot(r10.xyz, r1.xyz);
//     r3.x = r8.z;
//     r5.z = dot(r3.xyz, r11.xyz);
//     r6.z = dot(r3.xyz, r12.xyz);
//     r7.z = dot(r3.xyz, r1.xyz);
//     r9.xyz = r6.xyz;
//     r3.xyz = r7.xyz;
//   } else {
//     r5.xz = r8.xz * float2(-1,1) + float2(1,0);
//     r5.y = r10.x;
//     r9.z = r3.y;
//     r3.x = r9.w;
//     r3.y = r10.z;
//   }
//   r1.xyz = cb1[1].xyz * r2.zzz;
//   r1.xyz = cb1[0].xyz * r2.xxx + r1.xyz;
//   r1.xyz = cb1[2].xyz * r2.www + r1.xyz;
//   r1.xyz = cb1[3].xyz + r1.xyz;
//   r1.xyz = cb2[0].xxx ? r1.xyz : r2.xzw;
//   r1.w = cmp(asint(cb2[9].y) == -1);
//   if (r1.w != 0) {
//     r2.y = cb2[23].w;
//   }
//   if (r1.w == 0) {
//     r6.xy = asint(cb2[9].yy) & int2(0x80000000,0x7fffffff);
//     if (r6.x != 0) {
//       r1.w = mad((int)r6.y, asint(cb2[26].x), (int)r0.x);
//       r2.y = t1.Load(r1.w).x;
//     } else {
//       r0.x = mad((int)r6.y, asint(cb2[26].x), (int)r0.x);
//       r2.y = 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;
//   r6.xyz = cb1[4].xxx * cb1[0].xyz;
//   r7.xyz = cb1[4].yyy * cb1[1].xyz;
//   r8.xyz = cb1[4].zzz * cb1[2].xyz;
//   r6.x = dot(r1.xyz, r6.xyz);
//   r6.y = dot(r1.xyz, r7.xyz);
//   r6.z = dot(r1.xyz, r8.xyz);
//   r1.xyz = cb2[0].xxx ? r6.xyz : r1.xyz;
//   r1.xyz = r1.xyz * r2.yyy + r2.xzw;
//   r0.xyz = cb2[1].xyz * r0.yzw;
//   r2.x = dot(r0.xyz, r5.xyz);
//   r2.y = dot(r0.xyz, r9.xyz);
//   r2.z = dot(r0.xyz, r3.xyz);
//   r0.xyz = r2.xyz + r1.xyz;
//   r0.xyz = cb2[1].www ? r1.xyz : r0.xyz;
//   r1.xyz = r5.xyz * r4.xyz;
//   r2.xyz = r9.xyz * r4.xyz;
//   r4.xyz = r4.xyz * r3.xyz;
//   if (cb2[0].x != 0) {
//     r6.xyz = cb1[1].xyz * r2.xxx;
//     r6.xyz = r1.xxx * cb1[0].xyz + r6.xyz;
//     r6.xyz = r4.xxx * cb1[2].xyz + r6.xyz;
//     r7.xyz = cb1[1].xyz * r2.yyy;
//     r7.xyz = r1.yyy * cb1[0].xyz + r7.xyz;
//     r7.xyz = r4.yyy * cb1[2].xyz + r7.xyz;
//     r8.xyz = cb1[1].xyz * r2.zzz;
//     r8.xyz = r1.zzz * cb1[0].xyz + r8.xyz;
//     r4.xyz = r4.zzz * cb1[2].xyz + r8.xyz;
//     r8.xyz = cb1[1].xyz * r0.yyy;
//     r8.xyz = r0.xxx * cb1[0].xyz + r8.xyz;
//     r8.xyz = r0.zzz * cb1[2].xyz + r8.xyz;
//     r0.xyz = cb1[3].xyz + r8.xyz;
//     r8.xyz = cb1[1].xyz * r9.xxx;
//     r8.xyz = r5.xxx * cb1[0].xyz + r8.xyz;
//     r8.xyz = r3.xxx * cb1[2].xyz + r8.xyz;
//     r10.xyz = cb1[1].xyz * r9.yyy;
//     r10.xyz = r5.yyy * cb1[0].xyz + r10.xyz;
//     r10.xyz = r3.yyy * cb1[2].xyz + r10.xyz;
//     r11.xyz = cb1[1].xyz * r9.zzz;
//     r11.xyz = r5.zzz * cb1[0].xyz + r11.xyz;
//     r11.xyz = r3.zzz * cb1[2].xyz + r11.xyz;
//     r8.xyz = cb1[4].xxx * r8.xyz;
//     r10.xyz = cb1[4].yyy * r10.xyz;
//     r3.xyz = cb1[4].zzz * r11.xyz;
//     r1.x = r6.x;
//     r1.y = r7.x;
//     r1.z = r4.x;
//     r2.x = r6.y;
//     r2.y = r7.y;
//     r2.z = r4.y;
//     r4.x = r6.z;
//     r4.y = r7.z;
//     r5.x = r8.x;
//     r5.y = r10.x;
//     r5.z = r3.x;
//     r9.x = r8.y;
//     r9.y = r10.y;
//     r9.z = r3.y;
//     r3.x = r8.z;
//     r3.y = r10.z;
//   }
//   if (cb2[1].w != 0) {
//     r6.xyz = cb2[1].xyz + r0.xyz;
//     r1.w = r6.x;
//     r2.w = r6.y;
//     r4.w = r6.z;
//   } else {
//     r1.w = r0.x;
//     r2.w = r0.y;
//     r4.w = r0.z;
//   }
//   r0.x = dot(v0.xyzw, r1.xyzw);
//   r0.y = dot(v0.xyzw, r2.xyzw);
//   r0.z = dot(v0.xyzw, r4.xyzw);
//   r0.yzw = cb0[70].xyz + r0.xyz;
//   r6.x = cb3[26].z * v5.x;
//   r1.w = cb3[27].z * v5.y;
//   r7.xy = float2(-0.0500000007,-0.0500000007) + cb3[33].xy;
//   r7.xy = cmp(float2(9.99999975e-06,9.99999975e-06) < abs(r7.xy));
//   r7.zw = cmp(cb3[33].xy >= float2(0.0500000007,0.0500000007));
//   r2.w = r7.z ? cb3[32].w : 0;
//   r2.w = r7.x ? r2.w : cb3[32].w;
//   r3.w = r7.w ? r2.w : 0;
//   r2.w = r7.y ? r3.w : r2.w;
//   r2.w = round(r2.w);
//   r2.w = r2.w * 100 + cb3[33].z;
//   r2.w = cb3[33].w / r2.w;
//   r0.x = r0.x * cb3[34].x + cb0[142].z;
//   r0.x = -cb3[34].y + r0.x;
//   r3.w = -0.00999999978 + r2.w;
//   r3.w = cb3[34].z / r3.w;
//   r0.x = r3.w * r0.x;
//   r0.x = cb3[34].w * r0.x;
//   r0.x = frac(r0.x);
//   r0.x = r0.x * r2.w;
//   r3.w = floor(r0.x);
//   r4.w = 1 + r3.w;
//   r3.w = r3.w / r2.w;
//   r5.w = cmp(r3.w >= -r3.w);
//   r3.w = frac(abs(r3.w));
//   r3.w = r5.w ? r3.w : -r3.w;
//   r3.w = r3.w * r2.w;
//   r5.w = 1 / r2.w;
//   r3.w = r5.w * r3.w;
//   r6.y = r3.w * cb3[27].z + r1.w;
//   r7.xyz = t3.SampleLevel(s0_s, r6.xy, -1).xyz;
//   r8.xyz = r7.xyz * cb3[24].xyz + cb3[23].xyz;
//   r3.w = -0.5 + cb3[30].z;
//   r3.w = cmp(9.99999975e-06 < abs(r3.w));
//   r6.w = cmp(cb3[30].z >= 0.5);
//   r8.xyz = r6.www ? r7.xyz : r8.xyz;
//   r7.xyz = r3.www ? r8.xyz : r7.xyz;
//   r4.w = r4.w / r2.w;
//   r7.w = cmp(r4.w >= -r4.w);
//   r4.w = frac(abs(r4.w));
//   r4.w = r7.w ? r4.w : -r4.w;
//   r2.w = r4.w * r2.w;
//   r2.w = r2.w * r5.w;
//   r6.z = r2.w * cb3[27].z + r1.w;
//   r8.xyz = t3.SampleLevel(s0_s, r6.xz, -1).xyz;
//   r10.xyz = r8.xyz * cb3[24].xyz + cb3[23].xyz;
//   r10.xyz = r6.www ? r8.xyz : r10.xyz;
//   r8.xyz = r3.www ? r10.xyz : r8.xyz;
//   r0.x = frac(r0.x);
//   r8.xyz = r8.xyz + -r7.xyz;
//   r7.xyz = r0.xxx * r8.xyz + r7.xyz;
//   r1.w = -0.899999976 + v5.y;
//   r1.w = cmp(9.99999975e-06 < abs(r1.w));
//   r2.w = cmp(v5.y >= 0.899999976);
//   r7.xyz = r2.www ? -v0.xyz : r7.xyz;
//   r7.xyz = r1.www ? r7.xyz : -v0.xyz;
//   r8.x = dot(r7.xyz, r1.xyz);
//   r8.y = dot(r7.xyz, r2.xyz);
//   r8.z = dot(r7.xyz, r4.xyz);
//   r0.yzw = r8.xyz + r0.yzw;
//   r7.xyzw = cb0[1].xyzw * r0.zzzz;
//   r7.xyzw = r0.yyyy * cb0[0].xyzw + r7.xyzw;
//   r7.xyzw = r0.wwww * cb0[2].xyzw + r7.xyzw;
//   o0.xyzw = v0.wwww * cb0[3].xyzw + r7.xyzw;
//   r7.xyzw = t4.SampleLevel(s1_s, r6.xy, -1).xyzw;
//   r8.xyzw = float4(-0.5,-0.5,-0.5,-0.5) + r7.xyzw;
//   r8.xyzw = r8.xyzw + r8.xyzw;
//   r8.xyzw = r6.wwww ? r7.xyzw : r8.xyzw;
//   r7.xyzw = r3.wwww ? r8.xyzw : r7.xyzw;
//   r0.yzw = float3(1,0,0) * r7.xyz;
//   r0.yzw = r7.zxy * float3(0,0,1) + -r0.yzw;
//   r0.yzw = r7.www * float3(0,1,0) + r0.yzw;
//   r8.xyz = r7.zxy * r0.yzw;
//   r0.yzw = r7.yzx * r0.zwy + -r8.xyz;
//   r0.yzw = r0.yzw * float3(2,2,2) + float3(0,0,1);
//   r7.xyzw = t4.SampleLevel(s1_s, r6.xz, -1).xyzw;
//   r8.xyzw = float4(-0.5,-0.5,-0.5,-0.5) + r7.xyzw;
//   r8.xyzw = r8.xyzw + r8.xyzw;
//   r6.xyzw = r6.wwww ? r7.xyzw : r8.xyzw;
//   r6.xyzw = r3.wwww ? r6.xyzw : r7.xyzw;
//   r7.xyz = float3(1,0,0) * r6.xyz;
//   r7.xyz = r6.zxy * float3(0,0,1) + -r7.xyz;
//   r7.xyz = r6.www * float3(0,1,0) + r7.xyz;
//   r8.xyz = r7.xyz * r6.zxy;
//   r6.xyz = r6.yzx * r7.yzx + -r8.xyz;
//   r6.xyz = r6.xyz * float3(2,2,2) + float3(0,0,1);
//   r6.xyz = r6.xyz + -r0.yzw;
//   r0.xyz = r0.xxx * r6.xyz + r0.yzw;
//   r1.x = dot(r0.xyz, r1.xyz);
//   r1.y = dot(r0.xyz, r2.xyz);
//   r1.z = dot(r0.xyz, r4.xyz);
//   r0.x = dot(r1.xyz, r1.xyz);
//   r0.x = sqrt(r0.x);
//   o4.xy = r1.xy / r0.xx;
//   r0.xyz = v2.yzx * v1.xyz;
//   r0.xyz = v2.xyz * v1.yzx + -r0.xyz;
//   r0.xyz = v2.www * r0.xyz;
//   r1.xyz = v2.yzx * r0.xyz;
//   r0.xyz = r0.zxy * v2.zxy + -r1.xyz;
//   r0.xyz = v2.www * r0.xyz;
//   r1.x = dot(r0.xyz, r5.xyz);
//   r1.y = dot(r0.xyz, r9.xyz);
//   r1.z = dot(r0.xyz, r3.xyz);
//   r0.x = dot(v2.xyz, r5.xyz);
//   r0.y = dot(v2.xyz, r9.xyz);
//   r0.z = dot(v2.xyz, r3.xyz);
//   r0.w = dot(r1.xyz, r1.xyz);
//   r0.w = rsqrt(r0.w);
//   o1.xyz = r1.xyz * r0.www;
//   r0.w = dot(r0.xyz, r0.xyz);
//   r0.w = rsqrt(r0.w);
//   o2.xyz = r0.xyz * r0.www;
//   o2.w = cb1[4].w * v2.w;
//   o1.w = 0;
//   o3.xy = v4.xy;
//   o3.zw = v5.yx;
//   o4.zw = float2(0,0);
//   o5.xyzw = v3.xyzw;
//   return;
// }
//////////////////////////////// HLSL Errors ////////////////////////////////
// A:\southofmidnight\midnight\binaries\win64\ShaderFixes\c3b630d37900823e-vs_replace.txt(6,8-12): error X3000: syntax error: unexpected token 'sint4'
/////////////////////////////////////////////////////////////////////////////
