//Puddle reflection
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.7 on Thu Nov 12 18:22:11 2015
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float       
// TEXCOORD                 0   xy          1     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xy          0   TARGET   float   xy  
// SV_Target                1   xyzw        1   TARGET   float   xyzw
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb12[28], immediateIndexed
dcl_constantbuffer cb0[3], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, 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) t125
dcl_input_ps linear v1.xy
dcl_output o0.xy
dcl_output o1.xyzw
//dcl_temps 7
dcl_temps 28

sample_indexable(texture2d)(float,float,float,float) r0.x, v1.xyxx, t2.xyzw, s2
mad r0.x, r0.x, cb0[2].z, l(-0.010000)
lt r0.x, r0.x, l(0.000000)
discard_nz r0.x
sample_l_indexable(texture2d)(float,float,float,float) r0.z, v1.xyxx, t0.yzxw, s0, l(0.000000)
ge r0.w, l(0.010000), r0.z
if_nz r0.w
  mul r1.z, r0.z, l(100.000000)
  mov r2.xyzw, cb12[24].xyzw
  mov r3.xyzw, cb12[25].xyzw
  mov r4.xyzw, cb12[26].xyzw
  mov r5.xyzw, cb12[27].xyzw
else 
  mad r1.z, r0.z, l(1.010000), l(-0.010000)
  mov r2.xyzw, cb12[20].xyzw
  mov r3.xyzw, cb12[21].xyzw
  mov r4.xyzw, cb12[22].xyzw
  mov r5.xyzw, cb12[23].xyzw
endif 
mov r0.xy, v1.yxyy
mad r6.xy, r0.yxyy, l(1.000000, -1.000000, 0.000000, 0.000000), l(0.000000, 1.000000, 0.000000, 0.000000)
mad r1.xy, r6.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mov r1.w, l(1.000000)
dp4 r2.x, r2.xyzw, r1.xyzw
dp4 r2.y, r3.xyzw, r1.xyzw
dp4 r2.z, r4.xyzw, r1.xyzw
dp4 r0.w, r5.xyzw, r1.xyzw
div r1.xyz, r2.xyzx, r0.wwww

ld_indexable(texture2d)(float,float,float,float) r28.xyzw, l(0, 0, 0, 0), t125.xyzw
add r28.w, r1.z, -r28.y
mul r28.w, r28.w, r28.x
mul r28.w, r28.w, cb12[20].x
div r28.w, r28.w, cb12[21].y 
mul r28.w, r28.w, l(0.2)
add r1.x, r1.x, -r28.w

dp3 r0.w, -r1.xyzx, -r1.xyzx
rsq r0.w, r0.w
mul r2.xyz, r0.wwww, -r1.xyzx
sample_indexable(texture2d)(float,float,float,float) r3.xy, v1.xyxx, t1.xyzw, s1
mad r3.xy, r3.xyxx, l(4.000000, 4.000000, 0.000000, 0.000000), l(-2.000000, -2.000000, 0.000000, 0.000000)
dp2 r0.w, r3.xyxx, r3.xyxx
mad r3.zw, -r0.wwww, l(0.000000, 0.000000, 0.250000, 0.500000), l(0.000000, 0.000000, 1.000000, 1.000000)
sqrt r0.w, r3.z
mul r3.xy, r0.wwww, r3.xyxx
mov r3.z, -r3.w
dp3 r0.w, r3.xyzx, r3.xyzx
rsq r0.w, r0.w
mul r3.xyz, r0.wwww, r3.xyzx
dp3 r0.w, r3.xyzx, r2.xyzx
ge r0.w, r0.w, l(0.000000)
dp3 r4.x, cb12[12].xyzx, r3.xyzx
dp3 r4.y, cb12[13].xyzx, r3.xyzx
dp3 r1.w, cb12[14].xyzx, r3.xyzx
mul r4.z, r1.w, cb0[2].x
dp3 r1.w, r4.xyzx, r4.xyzx
rsq r1.w, r1.w
mul r3.xyz, r1.wwww, r4.xyzx
dp3 r4.x, cb12[0].xyzx, r3.xyzx
dp3 r4.y, cb12[1].xyzx, r3.xyzx
dp3 r4.z, cb12[2].xyzx, r3.xyzx
dp3 r1.w, r4.xyzx, r4.xyzx
rsq r1.w, r1.w
mul r3.xyz, r1.wwww, r4.xyzx
dp3 r1.w, -r2.xyzx, r3.xyzx
add r1.w, r1.w, r1.w
mad r2.xyz, r3.xyzx, -r1.wwww, -r2.xyzx
lt r1.w, cb0[1].y, r2.z
mad r2.xyz, r2.xyzx, l(1000.000000, 1000.000000, 1000.000000, 0.000000), r1.xyzx
mov r2.w, l(1.000000)
dp4 r3.x, cb12[4].xyzw, r2.xyzw
dp4 r3.y, cb12[5].xyzw, r2.xyzw
dp4 r3.z, cb12[6].xyzw, r2.xyzw
dp4 r2.x, cb12[7].xyzw, r2.xyzw
eq r2.y, r2.x, l(0.000000)
div r2.xzw, r3.xxyz, r2.xxxx
movc r2.xyz, r2.yyyy, l(1.000000,1.000000,1.000000,0), r2.xzwx
mad r2.xyz, r2.xyzx, l(0.500000, -0.500000, 1.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
add r2.xyz, -r0.yxzy, r2.xyzx
div r0.xy, r2.xyxx, r2.zzzz
mad r1.xy, -r0.zzzz, r0.xyxx, v1.xyxx
and r0.xyz, r1.xyzx, r1.wwww
and r0.xyz, r0.xyzx, r0.wwww
mov o1.x, r0.z
mov o1.yzw, l(0,0,0,0)
mov o0.xy, r0.xyxx
ret 
// Approximately 0 instruction slots used
