// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v0.6.15 on Tue Jul  5 12:06:29 2022
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xy
// COLOR                    0   xyzw        2     NONE   float   xyzw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 4   x           3     NONE   float   x
// TEXCOORD                 5    y          3     NONE   float    y
// P                        0   x           4  RTINDEX    uint   x
//
vs_4_0
dcl_output_siv o4.x, rendertarget_array_index
dcl_constantbuffer CB0[19], immediateIndexed
dcl_constantbuffer CB1[16], immediateIndexed
dcl_constantbuffer CB2[5], immediateIndexed
dcl_input v0.xyzw
dcl_input v1.xy
dcl_input v2.xyzw
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.x
dcl_output o3.y
dcl_temps 6
dcl_resource_buffer (float,float,float,float) t125
ld_indexable(buffer)(float,float,float,float) r5.xyzw, l(0, 0, 0, 0), t125.xyzw
mov o4.x, r5.z
ld_indexable(buffer)(float,float,float,float) r2.xyzw, l(0, 0, 0, 0), t125.xyzw
mul r0.x, v0.y, cb1[13].z
mad r0.x, cb1[12].z, v0.x, r0.x
mad r0.x, cb1[14].z, v0.z, r0.x
mad r0.x, cb1[15].z, v0.w, r0.x
add r0.y, r0.x, l(200.000000)
mul r1.xyzw, v0.yyyy, cb1[1].xyzw
mad r1.xyzw, cb1[0].xyzw, v0.xxxx, r1.xyzw
mad r1.xyzw, cb1[2].xyzw, v0.zzzz, r1.xyzw
mad r1.xyzw, cb1[3].xyzw, v0.wwww, r1.xyzw
mov r3.xyw, r1.xyxw
ne r2.w, r1.w, l(1.000000)
if_nz r2.w
  add r2.w, r1.w, -r2.y
  mad r1.x, r2.w, r2.x, r1.x
endif
mul r0.y, r0.y, r1.w
mul r3.z, r0.y, l(0.000833333354)
dp4 r0.y, r1.xyzw, r1.xyzw
sqrt r0.y, r0.y
mad o1.xy, v1.xyxx, cb0[18].xyxx, cb0[18].zwzz
mov o1.zw, l(0,0,0,0)
mov o2.xyzw, v2.xyzw
mul r0.zw, cb2[4].wwww, l(0.000000, 0.000000, 0.200000, 4.060000)
round_ni r0.w, r0.w
add r0.w, -r0.w, l(1.000000)
mul r0.z, r0.w, r0.z
mul r0.y, r0.z, r0.y
exp r0.y, -|r0.y|
mad o3.x, -r0.y, r0.y, l(1.000000)
add r0.y, cb0[6].x, cb0[6].x
div r0.x, r0.x, r0.y
add o3.y, r0.x, l(0.500000)
add r4.x, -r5.y, r3.w
mul r4.y, r5.x, r5.w
mad r4.x, r4.x, r4.y, r3.x
ne r4.y, l(1.000000), r3.w
movc r3.x, r4.y, r4.x, r3.x
mov o0.xyzw, r3.xyzw
ret
// Approximately 0 instruction slots used
