//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.7 on Thu Nov 12 18:20:23 2015
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xy  
// TEXCOORD                 0   xyzw        1     NONE   float   xyz 
// TEXCOORD                 4   xyzw        2     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 cb12[28], immediateIndexed
dcl_constantbuffer cb0[1], immediateIndexed
dcl_constantbuffer cb1[14], immediateIndexed
dcl_constantbuffer cb2[5], immediateIndexed
dcl_sampler s7, mode_default
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_texture2d (float,float,float,float) t125
dcl_input_ps_siv linear noperspective v0.xy, position
dcl_resource_texture2d (float,float,float,float) t125
dcl_input_ps linear v1.xyz
dcl_output o0.xyzw
//dcl_temps 7
dcl_temps 28

dp3 r0.x, v1.xyzx, v1.xyzx
rsq r0.x, r0.x
mul r0.xyz, r0.xxxx, v1.xyzx
mul r1.xy, v0.xyxx, cb0[0].xyxx
sample_indexable(texture2d)(float,float,float,float) r0.w, r1.xyxx, t7.yzwx, s7
ge r1.z, l(0.010000), r0.w
if_nz r1.z
  mul r2.z, r0.w, l(100.000000)
  mov r3.xyzw, cb12[24].xyzw
  mov r4.xyzw, cb12[25].xyzw
  mov r5.xyzw, cb12[26].xyzw
  mov r6.xyzw, cb12[27].xyzw
else 
  mad r2.z, r0.w, l(1.010000), l(-0.010000)
  mov r3.xyzw, cb12[20].xyzw
  mov r4.xyzw, cb12[21].xyzw
  mov r5.xyzw, cb12[22].xyzw
  mov r6.xyzw, cb12[23].xyzw
endif 
mul r1.x, r1.x, cb0[0].z
mad r1.z, -r1.y, cb0[0].w, l(1.000000)
mad r2.xy, r1.xzxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
mov r2.w, l(1.000000)
dp4 r1.x, r3.xyzw, r2.xyzw
dp4 r1.y, r4.xyzw, r2.xyzw
dp4 r1.z, r5.xyzw, r2.xyzw
dp4 r0.w, r6.xyzw, r2.xyzw
div r1.xyz, r1.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
add r1.x, r1.x, -r28.w

dp3 r0.w, r1.xyzx, r1.xyzx
sqrt r0.w, r0.w
mul r0.xyz, r0.wwww, -r0.xyzx
dp3 r0.w, r0.xyzx, cb2[4].xyzx
dp3 r0.x, r0.xyzx, r0.xyzx
sqrt r0.x, r0.x
div r0.y, cb2[4].w, r0.w
add r0.y, -r0.y, l(1.000000)
mul r0.x, r0.x, r0.y
div r0.x, r0.x, cb1[10].w
mul r0.y, |r0.w|, r0.y
div r0.y, r0.y, cb1[10].w
add_sat r0.xy, -r0.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
add r0.zw, -cb1[12].yyyz, cb1[12].xxxw
add r0.x, r0.x, -cb1[12].y
div r0.z, l(1.000000, 1.000000, 1.000000, 1.000000), r0.z
mul_sat r0.x, r0.z, r0.x
mad r0.z, r0.x, l(-2.000000), l(3.000000)
mul r0.x, r0.x, r0.x
mad r0.x, -r0.z, r0.x, l(1.000000)
log r0.x, r0.x
mul r0.x, r0.x, l(0.330000)
exp r0.x, r0.x
mad o0.w, r0.x, r0.w, cb1[12].z
add r0.x, -cb1[13].y, cb1[13].x
add r0.y, r0.y, -cb1[13].y
div r0.x, l(1.000000, 1.000000, 1.000000, 1.000000), r0.x
mul_sat r0.x, r0.x, r0.y
mad r0.y, r0.x, l(-2.000000), l(3.000000)
mul r0.x, r0.x, r0.x
mul r0.x, r0.x, r0.y
add r0.yzw, cb1[0].xxyz, -cb1[1].xxyz
mad o0.xyz, r0.xxxx, r0.yzwy, cb1[1].xyzx
ret 
// Approximately 0 instruction slots used
