// AUTOMATICALLY CONVERTED FROM SHADER FIXES 
//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//   using 3Dmigoto v0.6.89 on Wed Dec 21 12:57:03 2022
//
//
// Buffer Definitions:
//
// cbuffer cb3
// {
//
//   float4 cb3[2];                     // Index:    0 1              Components:     8
//
// }
//
// cbuffer cb0
// {
//
//   float4 cb0;                        // Index:    0.xyzw           Components:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// s0_s                              sampler      NA          NA    0        1
// t0                                texture  float4          2d    0        1
// StereoParams                      texture  float4          2d  125        1
// cb0                               cbuffer      NA          NA    0        1
// cb3                               cbuffer      NA          NA    3        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float
// TEXCOORD                 0   xyzw        1     NONE   float   xy
// TEXCOORD                 1   xyz         2     NONE   float   xy
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB3[2], immediateIndexed
dcl_constantbuffer CB0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_buffer (float,float,float,float) t125
dcl_input_ps linear v1.xy
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 5
ld_indexable(buffer)(float,float,float,float) r0.x, l(0, 0, 0, 0), t125.xyzw
add r0.x, r0.x, v2.x
mov r0.y, v2.y
mul r0.xy, r0.xyxx, cb3[0].wwww
mul r0.xy, r0.xyxx, l(0.010000, 0.010000, 0.000000, 0.000000)
dp2 r0.z, v2.xyxx, v2.xyxx
sqrt r0.z, r0.z
log r0.w, r0.z
mul r0.w, r0.w, cb3[0].z
exp r0.w, r0.w
sample_indexable(texture2d)(float,float,float,float) r1.xyzw, v1.xyxx, t0.xyzw, s0
mul r0.z, r0.z, cb3[1].z
mad r0.z, -cb0[0].x, cb3[1].y, r0.z
sincos null, r0.z, r0.z
mad r0.z, |r0.z|, cb3[1].x, -cb3[1].x
add r0.z, r0.z, l(1.000000)
mul r0.xy, r0.wwww, r0.xyxx
mov r2.xyzw, r1.xyzw
mov r0.w, l(1.000000)
loop
  ftoi r3.x, r0.w
  ige r3.y, r3.x, l(16)
  if_nz r3.y
    break
  endif
  mul r3.yz, r0.xxyx, r0.wwww
  mad r3.yz, r3.yyzy, r0.zzzz, v1.xxyx
  sample_indexable(texture2d)(float,float,float,float) r4.xyzw, r3.yzyy, t0.xyzw, s0
  add r2.xyzw, r2.xyzw, r4.xyzw
  iadd r3.x, r3.x, l(1)
  itof r0.w, r3.x
endloop
mul o0.xyzw, r2.xyzw, l(0.062500, 0.062500, 0.062500, 0.062500)
ret
// Approximately 34 instruction slots used
