//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sun May 23 18:35:34 2021
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyzw        3     NONE   float   xyzw
// TEXCOORD                 3   x           4     NONE    uint   x
// TEXCOORD                 4   xyzw        5     NONE   float   xyzw
// TEXCOORD                 5   xy          6     NONE   float
//
//
// 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 cb0[1], immediateIndexed
dcl_constantbuffer cb1[141], immediateIndexed
dcl_constantbuffer cb2[12], immediateIndexed
dcl_constantbuffer cb3[5], immediateIndexed
dcl_constantbuffer cb4[9], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xyzw
dcl_input_ps constant v3.xyzw
dcl_input_ps constant v4.x
dcl_input_ps constant v5.xyzw
dcl_output o0.xyzw
dcl_temps 4
mad r0.xyzw, v1.zwxy, l(2.000000, 2.000000, 2.000000, 2.000000), l(-1.000000, -1.000000, -1.000000, -1.000000)
add r1.xyzw, -|r0.xyxy|, l(1.000000, 1.000000, 1.000000, 1.000000)
div r1.xyzw, r0.xyxy, r1.xyzw
max r0.x, |r0.w|, |r0.z|
mad_sat r0.x, -r0.x, l(8.000000), l(9.200000)
mul r2.xz, cb1[138].yyyy, cb1[140].wwww
mul r2.yw, cb1[138].yyyy, cb1[139].wwww
add r1.xyzw, r1.xyzw, r2.xyzw
mad r1.xyzw, r1.xyzw, cb1[138].xxxx, -v2.xyxy
mul r2.xyzw, cb4[8].xxyy, l(0.000002, 0.000002, 0.000002, 0.000002)
mul r2.xyzw, r1.xyzw, r2.xyzw
mul r1.xyzw, r1.zzww, v3.xyzw
add r0.yz, r1.zzwz, r1.xxyx
lt r0.w, l(0.000010), |cb3[4].x|
movc r0.w, r0.w, cb3[4].x, cb2[11].z
mad r1.xy, r0.wwww, cb4[4].xyxx, r2.zwzz
mad r1.zw, r0.wwww, cb4[2].xxxy, r2.xxxy
sample_indexable(texture2d)(float,float,float,float) r2.xyzw, r1.zwzz, t0.xyzw, s0
sample_indexable(texture2d)(float,float,float,float) r1.xyzw, r1.xyxx, t1.xyzw, s0
add r1.xyzw, r1.xyzw, l(-0.500000, -0.500000, -0.500000, -0.500000)
mad r1.xyzw, r1.xyzw, l(0.500000, 0.500000, 0.500000, 0.500000), r2.xyzw
mad r0.zw, r0.yyyz, l(0.000000, 0.000000, 0.0000195312496, 0.0000195312496), l(0.000000, 0.000000, 0.500000, 0.500000)
mul r0.y, r0.y, l(0.0000195312496)
and r2.x, v4.x, l(255)
utof r2.x, r2.x
add r2.x, r0.z, r2.x
add r0.zw, -r0.wwww, l(0.000000, 0.000000, 1.000000, 0.500000)
ubfe r2.zw, l(0, 0, 8, 4), l(0, 0, 8, 16), v4.xxxx
utof r2.z, r2.z
add r2.y, r0.z, r2.z
max r0.y, |r0.w|, |r0.y|
mad_sat r0.y, -r0.y, l(128.000000), l(64.000000)
mul r0.x, r0.y, r0.x
mul r0.x, r0.x, v2.z
mul r0.yz, r2.xxyx, cb0[0].xxyx
mad r2.xy, -r2.xyxx, cb0[0].xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
mul r0.yz, r0.yyzy, r2.xxyx
mul r0.y, r0.z, r0.y
mul r0.y, r0.y, l(16.000000)
mul r0.y, r0.y, r0.y
min r0.y, r0.y, l(1.000000)
mul r3.w, r0.y, r1.w
mad r3.xyz, r1.xyzx, r0.yyyy, cb4[5].xyzx
mad r0.xyzw, r3.xyzw, r0.xxxx, v2.wwww
ushr r1.x, v4.x, l(16)
and r1.xyzw, r1.xxxx, l(1, 2, 4, 8)
movc r1.xyzw, r1.xyzw, r0.xxxx, l(0,0,0,0)
movc r0.xyzw, r2.wwww, r1.xyzw, r0.xyzw
add r1.x, -r0.x, l(1.000000)
mad r0.x, r0.y, r1.x, r0.x
add r0.y, -r0.x, l(1.000000)
mad r0.x, r0.z, r0.y, r0.x
add r0.y, -r0.x, l(1.000000)
mad r0.x, r0.w, r0.y, r0.x
add r0.x, r0.x, -cb0[0].z
max r0.z, r0.x, l(0.000000)
mov r0.xyw, v5.xyxw
mul r0.xyzw, r0.zzzz, r0.xyzw
mul r0.z, r0.z, v5.z
mov o0.xyw, r0.xyxw
sqrt o0.z, r0.z
ret
// Approximately 0 instruction slots used
