// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.63 on Sun Oct  9 13:48:42 2022
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_VertexID              0   x           0   VERTID    uint   x
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy
// TEXCOORD                 1   x           2     NONE   float   x
// TEXCOORD                 2    y          2     NONE    uint    y
// P                        0   x           3  RTINDEX    uint   x
//
vs_5_0
dcl_output_siv o3.x, rendertarget_array_index
dcl_globalFlags refactoringAllowed
dcl_immediateConstantBuffer { { -1.000000, 0.333333, 0, 0.333333343},
                              { -0.333333, 1.000000, 0.333333343, 0},
                              { 0.333333, 1.000000, 0.666666687, 0},
                              { 1.000000, 0.333333, 1.000000, 0.333333343},
                              { 1.000000, -0.333333, 1.000000, 0.666666687},
                              { 0.333333, -1.000000, 0.666666687, 1.000000},
                              { -0.333333, -1.000000, 0.333333343, 1.000000},
                              { -1.000000, -0.333333, 0, 0.666666687},
                              { 0, 0, 0.500000, 0.500000},
                              { -1.000000, 1.000000, 0, 0},
                              { -1.000000, -1.000000, 0, 1.000000},
                              { 1.000000, -1.000000, 1.000000, 1.000000},
                              { 1.000000, 1.000000, 1.000000, 0} }
dcl_constantbuffer CB0[100], dynamicIndexed
dcl_resource_structured t32, 8
dcl_resource_structured t33, 4
dcl_input_sgv v0.x, vertex_id
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.x
dcl_output o2.y
dcl_temps 53
dcl_resource_buffer (float,float,float,float) t125
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(buffer)(float,float,float,float) r52.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o3.x, r52.z
ld_indexable(buffer)(float,float,float,float) r40.xyzw, l(0, 0, 0, 0), t125.xyzw
ld_indexable(texture1d)(float,float,float,float) r35.xyzw, l(10, 0, 0, 0), t120.xyzw
utof r0.x, cb0[98].y
ld_structured_indexable(structured_buffer, stride=4)(mixed,mixed,mixed,mixed) r0.y, cb0[98].x, l(0), t33.xxxx
utof r0.y, r0.y
mov r10.y, r0.y
div r10.y, r10.y, l(640.000000)
div r0.x, r0.y, r0.x
ne r0.w, r0.x, l(0.000000)
if_nz r0.w
  ld_structured_indexable(structured_buffer, stride=8)(mixed,mixed,mixed,mixed) r0.yz, v0.x, l(0), t32.xyxx
  imul null, r0.w, r0.y, l(3)
  movc r1.xyzw, cb0[99].yyyy, icb[r0.z + 0].zwxy, icb[r0.z + 9].zwxy
  add r0.z, cb0[97].z, cb0[97].z
  mov r10.z, r0.z
  mul r0.z, r0.z, cb0[r0.w + 0].z
  mul r1.zw, r1.zzzw, cb0[r0.w + 0].xxxy
  eq r2.x, l(1.000000), cb0[r0.w + 0].w
  max r2.y, r0.x, l(0.001000)
  mul r2.yz, r1.zzwz, r2.yyyy
  movc r1.zw, r2.xxxx, r2.yyyz, r1.zzzw
  lt r2.x, l(0.000000), cb0[97].z
  div r2.y, cb0[97].x, cb0[99].x
  min r2.z, |r2.y|, |cb0[97].y|
  max r2.w, |r2.y|, |cb0[97].y|
  div r2.w, l(1.000000, 1.000000, 1.000000, 1.000000), r2.w
  mul r2.z, r2.w, r2.z
  mul r2.w, r2.z, r2.z
  mad r3.x, r2.w, l(0.0208350997), l(-0.085133)
  mad r3.x, r2.w, r3.x, l(0.180141)
  mad r3.x, r2.w, r3.x, l(-0.330299497)
  mad r2.w, r2.w, r3.x, l(0.999866)
  mul r3.x, r2.w, r2.z
  mov r10.x, r2.w
  mul r10.x, r10.x, l(0.025000)
  lt r3.y, |r2.y|, |cb0[97].y|
  mad r3.x, r3.x, l(-2.000000), l(1.57079637)
  and r3.x, r3.y, r3.x
  mad r2.z, r2.z, r2.w, r3.x
  lt r2.w, r2.y, -r2.y
  and r2.w, r2.w, l(0xc0490fdb)
  add r2.z, r2.w, r2.z
  min r2.w, r2.y, cb0[97].y
  max r2.y, r2.y, cb0[97].y
  lt r2.w, r2.w, -r2.w
  ge r2.y, r2.y, -r2.y
  and r2.y, r2.y, r2.w
  movc r2.y, r2.y, -r2.z, r2.z
  add r2.y, r2.y, l(1.57079637)
  mad r2.y, r2.y, cb0[r0.w + 1].x, cb0[r0.w + 1].y
  movc r2.x, r2.x, r2.y, cb0[r0.w + 1].y
  mov r10.w, r2.x
  sincos r2.x, r3.x, r2.x
  mov r4.x, -r2.x
  mov r4.y, r3.x
  dp2 r3.x, r1.wzww, r4.xyxx
  mov r4.z, r2.x
  dp2 r1.z, r1.wzww, r4.yzyy
  mad r3.y, cb0[r0.w + 1].z, cb0[97].z, r1.z
  mad r1.zw, r3.xxxy, cb0[98].zzzw, cb0[96].xxxy
  mad r2.xy, r0.zzzz, cb0[97].xyxx, r1.zwzz
  mov r2.z, l(1.000000)
  mul r40.w, r40.y, -r10.x
  add r40.w, r2.z, r40.w
  mad r2.x, r40.x, r2.z, r2.x
else
  mov r2.xyz, l(0,0,0,0)
  mov r1.xy, l(0,0,0,0)
  mov r0.xy, l(0,0,0,0)
endif
mov r50.xyw, r2.xyxz
mov r50.z, l(0)
mov o1.xy, r1.xyxx
mov o2.xy, r0.xyxx
add r51.x, -r52.y, r50.w
mul r51.y, r52.x, r52.w
mad r51.x, r51.x, r51.y, r50.x
ne r51.y, l(1.000000), r50.w
movc r50.x, r51.y, r51.x, r50.x
mov o0.xyzw, r50.xyzw
ret
// Approximately 0 instruction slots used
