// Unconfirmed
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.65 on Sun Sep 24 10:57:05 2017
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xy w
//
//
// 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[149], immediateIndexed
dcl_constantbuffer cb1[2], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t5
dcl_input_ps_siv linear noperspective v0.xyw, position
dcl_output o0.xyzw
//dcl_temps 6

dcl_temps 25

// 3DMigoto StereoParams:
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r25.xyzw, l(0, 0, 0, 0), t125.xyzw

add r0.xy, v0.xyxx, -cb0[116].xyxx
mad r0.xy, r0.xyxx, cb0[117].zwzz, l(-0.500000, -0.500000, 0.000000, 0.000000)
mul r0.xy, r0.xyxx, v0.wwww
mov r0.z, v0.w
mul r0.xyz, r0.xyzx, l(2.000000, -2.000000, 1.000000, 0.000000)
div r0.xy, r0.xyxx, r0.zzzz
mad r0.zw, r0.xxxy, cb0[54].xxxy, cb0[54].wwwz
mul r0.xy, r0.xyxx, cb0[54].xyxx
div r0.xy, r0.xyxx, cb0[54].xyxx
sample_l_indexable(texture2d)(float,float,float,float) r1.x, r0.zwzz, t5.xyzw, s5, l(0.000000)
max r1.x, |r1.x|, l(0.000001)
mul r1.x, r1.x, r1.x
mad r1.x, r1.x, l(-4.000000), l(4.000000)
sample_l_indexable(texture2d)(float,float,float,float) r1.yz, r0.zwzz, t1.xywz, s1, l(0.000000)
add r1.y, -r1.y, l(1.000000)
mul r1.z, r1.z, l(255.000000)
round_ne r1.z, r1.z
ftou r1.z, r1.z
and r1.z, r1.z, l(16)
mad r1.x, r1.y, l(2.000000), r1.x
sample_l_indexable(texture2d)(float,float,float,float) r1.y, r0.zwzz, t3.yxzw, s3, l(0.000000)
mad r1.w, r1.y, cb0[53].z, -cb0[53].w
mad r1.y, r1.y, cb0[53].x, cb0[53].y
div r1.w, l(1.000000, 1.000000, 1.000000, 1.000000), r1.w
add r1.y, r1.w, r1.y
mul r0.xy, r0.xyxx, r1.yyyy

//Fix
add r25.w, r1.y, -r25.y
mul r25.w, r25.x, r25.w
add r0.x, r0.x, -r25.w

mul r2.xyzw, r0.yyyy, cb0[41].xyzw
mad r2.xyzw, r0.xxxx, cb0[40].xyzw, r2.xyzw
mad r2.xyzw, r1.yyyy, cb0[42].xyzw, r2.xyzw
add r2.xyzw, r2.xyzw, cb0[43].xyzw
div r2.xyz, r2.xyzx, r2.wwww
sample_l_indexable(texture2d)(float,float,float,float) r3.xyz, r0.zwzz, t0.xyzw, s0, l(0.000000)
mad r3.xyz, r3.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
mad r4.xyz, -r3.xyzx, r1.xxxx, r2.xyzx
add r4.xyz, r2.xyzx, -r4.xyzx
add r2.xyz, r2.xyzx, -cb0[55].xyzx
dp3 r0.x, r4.xyzx, r4.xyzx
sqrt r0.x, r0.x
mul r0.x, r0.x, l(0.0111111114)
max r0.x, r0.x, l(0.000001)
mul r0.x, r0.x, r0.x
mul r0.x, r0.x, r0.x
mul r0.x, r0.x, l(65300.000000)
sample_l_indexable(texture2d)(float,float,float,float) r0.y, r0.zwzz, t2.xwyz, s2, l(0.000000)
sample_indexable(texture2d)(float,float,float,float) r4.xyz, r0.zwzz, t4.xyzw, s4
movc r0.y, r1.z, l(0), r0.y
mul_sat r0.z, r0.y, l(5.000000)
mad r0.x, r0.z, -r0.x, r0.x
mul_sat r0.x, r0.x, l(6.000000)
mad r0.zw, cb0[148].xxxx, l(0.000000, 0.000000, 0.750000, -2.000000), l(0.000000, 0.000000, 0.250000, 3.000000)
mov_sat r0.z, r0.z
max r0.w, r0.w, l(1.000000)
min r0.w, r0.w, l(3.000000)
mad r0.x, -r0.x, r0.z, l(1.000000)
max r0.z, r0.x, l(0.000001)
mul r0.x, r0.x, l(0.250000)
log r0.z, r0.z
mul r0.z, r0.z, r0.w
exp r0.z, r0.z
mov_sat r1.xzw, r4.xxyz
mul r5.xyz, r0.xxxx, r1.xzwx
mad r1.xzw, r4.xxyz, r1.xxzw, r5.xxyz
mad r5.xyz, -r1.xzwx, cb0[147].xyzx, r4.xyzx
mul r1.xzw, r1.xxzw, cb0[147].xxyz
mad r0.xzw, r0.zzzz, r5.xxyz, r1.xxzw
add r1.x, r1.y, l(-2097152.000000)
ge r1.y, r1.y, l(2097152.000000)
movc r1.y, r1.y, l(0), l(1.000000)
lt r1.x, l(0.000010), |r1.x|
and r1.x, r1.y, r1.x
dp3 r1.y, r2.xyzx, r2.xyzx
sqrt r1.y, r1.y
div r1.yzw, r2.xxyz, r1.yyyy
dp3 r1.y, r3.xyzx, r1.yzwy
mad_sat r1.y, r1.y, l(0.500000), l(0.500000)
max r1.y, r1.y, l(0.000001)
mul r1.y, r1.y, r1.y
mul r1.y, r1.y, l(6.000000)
mul r0.y, r0.y, r1.y
mul r0.y, r1.x, r0.y
mad r0.xyz, r0.yyyy, r4.xyzx, r0.xzwx
add r0.xyz, r0.xyzx, cb1[1].xyzx
max o0.xyz, r0.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mov o0.w, l(1.000000)
ret 
// Approximately 0 instruction slots used
