//
// 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   xyz         1     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 cb12[36], immediateIndexed
dcl_constantbuffer cb2[5], 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.xyzw
//dcl_temps 6
dcl_temps 28

sample_indexable(texture2d)(float,float,float,float) r0.xy, v1.xyxx, t0.xyzw, s0
mad r0.xy, r0.xyxx, l(4.000000, 4.000000, 0.000000, 0.000000), l(-2.000000, -2.000000, 0.000000, 0.000000)
dp2 r0.z, r0.xyxx, r0.xyxx
mad r0.zw, -r0.zzzz, l(0.000000, 0.000000, 0.250000, 0.500000), l(0.000000, 0.000000, 1.000000, 1.000000)
sqrt r0.z, r0.z
mul r0.xy, r0.zzzz, r0.xyxx
mov r0.z, -r0.w
sample_indexable(texture2d)(float,float,float,float) r0.w, v1.xyxx, t1.yzwx, s1
dp3 r0.x, -cb2[0].xyzx, r0.xyzx
lt r0.x, l(0.500000), r0.x
mad r0.y, r0.w, l(2.000000), l(-1.000000)
mad r0.y, -r0.y, cb2[1].w, cb2[1].z
div r0.y, cb2[1].y, r0.y



lt r0.y, cb2[1].x, r0.y
and r0.x, r0.y, r0.x
movc r0.x, r0.x, l(0), l(2.000000)
ge r0.y, l(0.010000), r0.w
if_nz r0.y
  mul r1.z, r0.w, 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.w, 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 
mad r0.yz, v1.xxyx, l(0.000000, 1.000000, -1.000000, 0.000000), l(0.000000, 0.000000, 1.000000, 0.000000)
mad r1.xy, r0.yzyy, 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.y, r5.xyzw, r1.xyzw
div r1.xyz, r2.xyzx, r0.yyyy

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
add r1.x, r1.x, -r28.w

mov r1.w, l(1.000000)
dp4 r2.x, cb12[12].xyzw, r1.xyzw
dp4 r2.y, cb12[13].xyzw, r1.xyzw
dp4 r2.z, cb12[14].xyzw, r1.xyzw
dp4 r2.w, cb12[15].xyzw, r1.xyzw
dp4 r0.y, cb2[2].xyzw, r2.xyzw
dp4 r0.z, cb2[3].xyzw, r2.xyzw
dp4 r0.w, cb2[4].xyzw, r2.xyzw
mad r1.x, r0.y, l(0.500000), l(0.500000)
mad r1.y, r0.z, l(-0.500000), l(0.500000)
sample_indexable(texture2d)(float,float,float,float) r0.y, r1.xyxx, t2.yxzw, s2
lt r0.y, r0.y, r0.w
movc o0.w, r0.y, l(2.000000), r0.x
add o0.xyz, r2.xyzx, cb12[35].xyzx
ret 
// Approximately 0 instruction slots used
