// flipping flowers
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sun May 03 07:56:56 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[71], immediateIndexed
dcl_constantbuffer cb1[5], immediateIndexed
dcl_constantbuffer cb2[27], immediateIndexed
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_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 15
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 o3.xyzw, cb2[19].xyzw
endif
if_z r0.y
  and r2.xy, cb2[7].zzzz, 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) r0.y, r0.yyyy, t1.yxzw
    iadd r2.xzw, r2.yyyy, 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, t1.yzwx
    ld_indexable(buffer)(float,float,float,float) r2.x, r2.zzzz, t1.xyzw
    ld_indexable(buffer)(float,float,float,float) r2.z, r2.wwww, t1.yzxw
    mov o3.x, r0.y
    mov o3.y, r1.w
    mov o3.zw, r2.xxxz
  else
    imad r0.y, r2.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r0.y, r0.yyyy, t0.yxzw
    iadd r2.xyz, r2.yyyy, l(1, 2, 3, 0)
    imad r2.xyz, r2.xyzx, 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.yyyy, t0.xyzw
    ld_indexable(buffer)(float,float,float,float) r2.y, r2.zzzz, t0.yxzw
    mov o3.x, r0.y
    mov o3.y, r1.w
    mov o3.zw, r2.xxxy
  endif
endif
if_nz r0.z
  mov r2.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) r2.x, r0.yyyy, t1.xyzw
    iadd r3.xy, r0.zzzz, l(1, 2, 0, 0)
    imad r3.xy, r3.xyxx, 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.yyyy, t1.yzxw
  else
    imad r0.y, r0.z, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.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) r2.y, r0.yyyy, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r2.z, r0.zzzz, t0.yzxw
  endif
endif
ieq r0.y, cb2[6].z, l(-1)
if_nz r0.y
  mov r3.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) 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 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, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r3.z, r4.yyyy, t0.yzxw
    ld_indexable(buffer)(float,float,float,float) r3.w, r4.zzzz, t0.yzwx
  endif
endif
if_nz r0.w
  mov r4.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) r4.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) r4.y, r0.yyyy, t1.yxzw
    ld_indexable(buffer)(float,float,float,float) r4.z, r0.wwww, t1.yzxw
  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 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) r4.y, r0.yyyy, t0.yxzw
    ld_indexable(buffer)(float,float,float,float) r4.z, r0.zzzz, t0.yzxw
  endif
endif
mul r0.yzw, r4.xxyz, cb2[2].xxyz
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.w, r1.xyzx, r1.xyzx
    sqrt r2.w, r2.w
    lt r3.w, l(0.000000), r2.w
    div r1.xyz, r1.xyzx, r2.wwww
    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.yyyy, cb1[1].xyzx
    mad r1.xyz, cb1[0].xyzx, r2.xxxx, r1.xyzx
    mad r1.xyz, cb1[2].xyzx, r2.zzzz, r1.xyzx
    add r1.xyz, r1.xyzx, cb1[3].xyzx
    movc r1.xyz, cb2[0].xxxx, r1.xyzx, r2.xyzx
    add r1.xyz, -r1.xyzx, cb0[67].xyzx
    dp3 r2.w, r1.xyzx, r1.xyzx
    rsq r2.w, r2.w
    mul r1.xyz, r1.xyzx, r2.wwww
    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.w, r1.x
    and r1.z, r1.z, r2.w
    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.w, 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.w, r5.zyxz, r1.xyzx
    lt r2.w, l(0.990000), |r2.w|
    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.wwww, r6.xyzx, r5.yzxy
    mul r7.xyz, r1.xzyx, r6.xyzx
    mad r6.xyz, r1.yxzy, r6.yzxy, -r7.xyzx
    dp3 r2.w, r6.xyzx, r6.xyzx
    rsq r2.w, r2.w
    mul r6.xyz, r2.wwww, 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.w, 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.wwww, 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.yyyy, cb1[1].xyzx
mad r1.xyz, cb1[0].xyzx, r2.xxxx, r1.xyzx
mad r1.xyz, cb1[2].xyzx, r2.zzzz, r1.xyzx
add r1.xyz, r1.xyzx, cb1[3].xyzx
movc r1.xyz, cb2[0].xxxx, r1.xyzx, r2.xyzx
ieq r1.w, cb2[9].y, l(-1)
if_nz r1.w
  mov r2.w, 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.w, r1.wwww, t1.yzwx
  else
    imad r0.x, r6.y, cb2[26].x, r0.x
    ld_indexable(buffer)(float,float,float,float) r2.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 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.wwww, r2.xyzx
mul r2.xyz, r4.xyzx, cb2[1].xyzx
dp3 r4.x, r2.xyzx, r5.xyzx
dp3 r4.y, r2.xyzx, r9.xyzx
dp3 r4.z, r2.xyzx, r3.xyzx
add r2.xyz, r1.xyzx, r4.xyzx
movc r1.xyz, cb2[1].wwww, r1.xyzx, r2.xyzx
mul r2.xyz, r0.yzwy, r5.xyzx
mul r4.xyz, r0.yzwy, r9.xyzx
mul r0.xyz, r0.yzwy, r3.xyzx
if_nz cb2[0].x
  mul r3.xyz, r4.xxxx, cb1[1].xyzx
  mad r3.xyz, r2.xxxx, cb1[0].xyzx, r3.xyzx
  mad r3.xyz, r0.xxxx, cb1[2].xyzx, r3.xyzx
  mul r5.xyz, r4.yyyy, cb1[1].xyzx
  mad r5.xyz, r2.yyyy, cb1[0].xyzx, r5.xyzx
  mad r5.xyz, r0.yyyy, cb1[2].xyzx, r5.xyzx
  mul r6.xyz, r4.zzzz, cb1[1].xyzx
  mad r6.xyz, r2.zzzz, cb1[0].xyzx, r6.xyzx
  mad r0.xyz, r0.zzzz, cb1[2].xyzx, r6.xyzx
  mul r6.xyz, r1.yyyy, cb1[1].xyzx
  mad r6.xyz, r1.xxxx, cb1[0].xyzx, r6.xyzx
  mad r6.xyz, r1.zzzz, cb1[2].xyzx, r6.xyzx
  add r1.xyz, r6.xyzx, cb1[3].xyzx
  mov r2.x, r3.x
  mov r2.y, r5.x
  mov r2.z, r0.x
  mov r4.x, r3.y
  mov r4.y, r5.y
  mov r4.z, r0.y
  mov r0.x, r3.z
  mov r0.y, r5.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 r2.w, r1.x
dp4 r2.x, v0.xyzw, r2.xyzw
mov r4.w, r1.y
dp4 r2.y, v0.xyzw, r4.xyzw
mov r0.w, r1.z
dp4 r2.z, v0.xyzw, r0.xyzw
add r0.xyz, r2.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
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 o0.xyzw, l(0,0,0,0)

ret
// Approximately 0 instruction slots used

///////////////////////////////// HLSL Code /////////////////////////////////
// // ---- Created with 3Dmigoto v1.3.16 on Sun May 03 07:56:56 2026
// Buffer<sint4> t2 : register(t2);
//
// Buffer<float4> t1 : register(t1);
//
// Buffer<float4> t0 : register(t0);
//
// cbuffer cb2 : register(b2)
// {
//   float4 cb2[27];
// }
//
// 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(
//   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;
//   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) {
//     o3.xyzw = cb2[19].xyzw;
//   }
//   if (r0.y == 0) {
//     r2.xy = asint(cb2[7].zz) & int2(0x80000000,0x7fffffff);
//     if (r2.x != 0) {
//       r0.y = mad((int)r2.y, asint(cb2[26].x), (int)r0.x);
//       r0.y = t1.Load(r0.y).x;
//       r2.xzw = (int3)r2.yyy + int3(1,2,3);
//       r2.xzw = mad((int3)r2.xzw, asint(cb2[26].xxx), (int3)r0.xxx);
//       r1.w = t1.Load(r2.x).x;
//       r2.x = t1.Load(r2.z).x;
//       r2.z = t1.Load(r2.w).x;
//       o3.x = r0.y;
//       o3.y = r1.w;
//       o3.zw = r2.xz;
//     } else {
//       r0.y = mad((int)r2.y, asint(cb2[26].x), (int)r0.x);
//       r0.y = t0.Load(r0.y).x;
//       r2.xyz = (int3)r2.yyy + int3(1,2,3);
//       r2.xyz = mad((int3)r2.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r1.w = t0.Load(r2.x).x;
//       r2.x = t0.Load(r2.y).x;
//       r2.y = t0.Load(r2.z).x;
//       o3.x = r0.y;
//       o3.y = r1.w;
//       o3.zw = r2.xy;
//     }
//   }
//   if (r0.z != 0) {
//     r2.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);
//       r2.x = t1.Load(r0.y).x;
//       r3.xy = (int2)r0.zz + int2(1,2);
//       r3.xy = mad((int2)r3.xy, asint(cb2[26].xx), (int2)r0.xx);
//       r2.y = t1.Load(r3.x).x;
//       r2.z = t1.Load(r3.y).x;
//     } else {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r2.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);
//       r2.y = t0.Load(r0.y).x;
//       r2.z = t0.Load(r0.z).x;
//     }
//   }
//   r0.y = cmp(asint(cb2[6].z) == -1);
//   if (r0.y != 0) {
//     r3.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);
//       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;
//       r4.xyz = (int3)r0.zzz + int3(1,2,3);
//       r4.xyz = mad((int3)r4.xyz, asint(cb2[26].xxx), (int3)r0.xxx);
//       r3.y = t0.Load(r4.x).x;
//       r3.z = t0.Load(r4.y).x;
//       r3.w = t0.Load(r4.z).x;
//     }
//   }
//   if (r0.w != 0) {
//     r4.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);
//       r4.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);
//       r4.y = t1.Load(r0.y).x;
//       r4.z = t1.Load(r0.w).x;
//     } else {
//       r0.y = mad((int)r0.z, asint(cb2[26].x), (int)r0.x);
//       r4.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);
//       r4.y = t0.Load(r0.y).x;
//       r4.z = t0.Load(r0.z).x;
//     }
//   }
//   r0.yzw = cb2[2].xyz * r4.xyz;
//   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.w = dot(r1.xyz, r1.xyz);
//       r2.w = sqrt(r2.w);
//       r3.w = cmp(0 < r2.w);
//       r1.xyz = r1.xyz / r2.www;
//       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.yyy;
//       r1.xyz = cb1[0].xyz * r2.xxx + r1.xyz;
//       r1.xyz = cb1[2].xyz * r2.zzz + r1.xyz;
//       r1.xyz = cb1[3].xyz + r1.xyz;
//       r1.xyz = cb2[0].xxx ? r1.xyz : r2.xyz;
//       r1.xyz = cb0[67].xyz + -r1.xyz;
//       r2.w = dot(r1.xyz, r1.xyz);
//       r2.w = rsqrt(r2.w);
//       r1.xyz = r2.www * 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.w = ~(int)r1.x;
//       r1.z = r1.z ? r2.w : 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.w : 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.w = dot(r5.zyx, r1.xyz);
//       r2.w = cmp(0.99000001 < abs(r2.w));
//       r3.w = cmp(0.99000001 < abs(r1.z));
//       r6.xyz = r3.www ? float3(1,0,0) : float3(0,0,1);
//       r6.xyz = r2.www ? r6.xyz : r5.yzx;
//       r7.xyz = r6.xyz * r1.xzy;
//       r6.xyz = r1.yxz * r6.yzx + -r7.xyz;
//       r2.w = dot(r6.xyz, r6.xyz);
//       r2.w = rsqrt(r2.w);
//       r6.xyz = r6.xyz * r2.www;
//       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.w = 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.www ? 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.yyy;
//   r1.xyz = cb1[0].xyz * r2.xxx + r1.xyz;
//   r1.xyz = cb1[2].xyz * r2.zzz + r1.xyz;
//   r1.xyz = cb1[3].xyz + r1.xyz;
//   r1.xyz = cb2[0].xxx ? r1.xyz : r2.xyz;
//   r1.w = cmp(asint(cb2[9].y) == -1);
//   if (r1.w != 0) {
//     r2.w = 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.w = t1.Load(r1.w).x;
//     } else {
//       r0.x = mad((int)r6.y, asint(cb2[26].x), (int)r0.x);
//       r2.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;
//   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.www + r2.xyz;
//   r2.xyz = cb2[1].xyz * r4.xyz;
//   r4.x = dot(r2.xyz, r5.xyz);
//   r4.y = dot(r2.xyz, r9.xyz);
//   r4.z = dot(r2.xyz, r3.xyz);
//   r2.xyz = r4.xyz + r1.xyz;
//   r1.xyz = cb2[1].www ? r1.xyz : r2.xyz;
//   r2.xyz = r5.xyz * r0.yzw;
//   r4.xyz = r9.xyz * r0.yzw;
//   r0.xyz = r3.xyz * r0.yzw;
//   if (cb2[0].x != 0) {
//     r3.xyz = cb1[1].xyz * r4.xxx;
//     r3.xyz = r2.xxx * cb1[0].xyz + r3.xyz;
//     r3.xyz = r0.xxx * cb1[2].xyz + r3.xyz;
//     r5.xyz = cb1[1].xyz * r4.yyy;
//     r5.xyz = r2.yyy * cb1[0].xyz + r5.xyz;
//     r5.xyz = r0.yyy * cb1[2].xyz + r5.xyz;
//     r6.xyz = cb1[1].xyz * r4.zzz;
//     r6.xyz = r2.zzz * cb1[0].xyz + r6.xyz;
//     r0.xyz = r0.zzz * cb1[2].xyz + r6.xyz;
//     r6.xyz = cb1[1].xyz * r1.yyy;
//     r6.xyz = r1.xxx * cb1[0].xyz + r6.xyz;
//     r6.xyz = r1.zzz * cb1[2].xyz + r6.xyz;
//     r1.xyz = cb1[3].xyz + r6.xyz;
//     r2.x = r3.x;
//     r2.y = r5.x;
//     r2.z = r0.x;
//     r4.x = r3.y;
//     r4.y = r5.y;
//     r4.z = r0.y;
//     r0.x = r3.z;
//     r0.y = r5.z;
//   }
//   if (cb2[1].w != 0) {
//     r1.xyz = cb2[1].xyz + r1.xyz;
//   }
//   o4.xyz = cb0[70].xyz + r1.xyz;
//   r2.w = r1.x;
//   r2.x = dot(v0.xyzw, r2.xyzw);
//   r4.w = r1.y;
//   r2.y = dot(v0.xyzw, r4.xyzw);
//   r0.w = r1.z;
//   r2.z = dot(v0.xyzw, r0.xyzw);
//   r0.xyz = cb0[70].xyz + r2.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);
//   return;
// }
//////////////////////////////// HLSL Errors ////////////////////////////////
// A:\southofmidnight\midnight\binaries\win64\ShaderFixes\7831432fcdf8844b-vs_replace.txt(2,8-12): error X3000: syntax error: unexpected token 'sint4'
/////////////////////////////////////////////////////////////////////////////
