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

dp3 r0.x, v1.xyzx, v1.xyzx
rsq r0.x, r0.x
mul r0.xyz, r0.xxxx, v1.xyzx
add r0.w, v1.w, l(-8192.000000)
add r1.x, cb1[10].x, l(-8192.000000)
div_sat r0.w, r0.w, r1.x



mul r1.xy, v0.xyxx, cb0[0].xyxx
sample_indexable(texture2d)(float,float,float,float) r1.z, r1.xyxx, t7.yzxw, s7
ge r1.w, l(0.010000), r1.z
if_nz r1.w
  mul r2.z, r1.z, 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, r1.z, 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 r7.x, r1.x, cb0[0].z
mad r7.z, -r1.y, cb0[0].w, l(1.000000)
mad r2.xy, r7.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 r3.x, r3.xyzw, r2.xyzw
dp4 r3.y, r4.xyzw, r2.xyzw
dp4 r3.z, r5.xyzw, r2.xyzw
dp4 r1.z, r6.xyzw, r2.xyzw
div r2.xyz, r3.xyzx, r1.zzzz

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


dp3 r1.z, r2.xyzx, r2.xyzx
sqrt r1.z, r1.z
mul r2.xyz, -r0.xyzx, r1.zzzz
dp3 r1.z, r2.xyzx, cb2[4].xyzx
dp3 r1.w, r2.xyzx, r2.xyzx
sqrt r1.w, r1.w
div r2.x, cb2[4].w, r1.z
add r2.x, -r2.x, l(1.000000)
mul r1.w, r1.w, r2.x
div r1.w, r1.w, cb1[10].w
mul r1.z, |r1.z|, r2.x
div r1.z, r1.z, cb1[10].w
add_sat r1.zw, -r1.zzzw, l(0.000000, 0.000000, 1.000000, 1.000000)
add r2.xy, -cb1[12].yzyy, cb1[12].xwxx
add r1.w, r1.w, -cb1[12].y
div r2.x, l(1.000000, 1.000000, 1.000000, 1.000000), r2.x
mul_sat r1.w, r1.w, r2.x
mad r2.x, r1.w, l(-2.000000), l(3.000000)
mul r1.w, r1.w, r1.w
mad r1.w, -r2.x, r1.w, l(1.000000)
log r1.w, r1.w
mul r1.w, r1.w, l(0.330000)
exp r1.w, r1.w
mad r1.w, r1.w, r2.y, cb1[12].z
add r2.x, -cb1[11].x, l(1.000000)
add r2.yz, r1.zzzz, -cb1[11].xxwx
div r1.z, l(1.000000, 1.000000, 1.000000, 1.000000), r2.x
mul_sat r1.z, r1.z, r2.y
mad r2.x, r1.z, l(-2.000000), l(3.000000)
mul r1.z, r1.z, r1.z
mul r1.z, r1.z, r2.x
add r2.x, -cb1[11].w, cb1[11].z
div r2.x, l(1.000000, 1.000000, 1.000000, 1.000000), r2.x
mul_sat r2.x, r2.x, r2.z
mad r2.y, r2.x, l(-2.000000), l(3.000000)
mul r2.x, r2.x, r2.x
mad r2.x, -r2.y, r2.x, l(1.000000)
mul r2.x, r2.x, cb1[11].y
sample_indexable(texture2d)(float,float,float,float) r2.yz, v3.xyxx, t4.zxyw, s4
add r3.xy, r2.yzyy, r2.yzyy
mad r2.yz, r2.yyzy, l(0.000000, 2.000000, 2.000000, 0.000000), l(0.000000, -1.000000, -1.000000, 0.000000)
dp2 r2.y, r2.yzyy, r2.yzyy
min r2.y, r2.y, l(1.000000)
add r2.y, -r2.y, l(1.000000)
sqrt r3.z, r2.y
add r2.yzw, r3.xxyz, l(0.000000, -1.000000, -1.000000, -1.000000)
mad r2.yzw, cb1[9].xxxx, r2.yyzw, l(0.000000, 0.000000, 0.000000, 1.000000)
sample_indexable(texture2d)(float,float,float,float) r3.xy, v3.zwzz, t5.xyzw, s5
mad r3.xy, r3.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r3.w, r3.xyxx, r3.xyxx
min r3.w, r3.w, l(1.000000)
add r3.w, -r3.w, l(1.000000)
sqrt r3.z, r3.w
sample_indexable(texture2d)(float,float,float,float) r4.xy, v4.xyxx, t6.xyzw, s6
mad r4.xy, r4.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r3.w, r4.xyxx, r4.xyxx
min r3.w, r3.w, l(1.000000)
add r3.w, -r3.w, l(1.000000)
sqrt r4.z, r3.w
mul r3.xyz, r3.xyzx, cb1[9].yyyy
mul r4.xyz, r4.xyzx, cb1[9].zzzz
mad r2.yzw, r3.xxyz, r0.wwww, r2.yyzw
mad r2.yzw, r4.xxyz, r0.wwww, r2.yyzw
dp3 r3.x, r2.yzwy, r2.yzwy
rsq r3.x, r3.x
mad r2.yzw, r2.yyzw, r3.xxxx, l(0.000000, -0.000000, -0.000000, -1.000000)
mad r2.xyz, r2.xxxx, r2.yzwy, l(0.000000, 0.000000, 1.000000, 0.000000)
dp3 r2.w, r2.xyzx, r2.xyzx
rsq r2.w, r2.w
mul r2.xyz, r2.wwww, r2.xyzx
dp3_sat r3.x, -r0.xyzx, r2.xyzx
add r3.x, -r3.x, l(1.000000)
add r3.y, -cb1[13].z, l(1.000000)
mul r3.z, r3.x, r3.x
mul r3.z, r3.z, r3.z
mul r3.x, r3.z, r3.x
mad r3.x, r3.y, r3.x, cb1[13].z
dp3 r0.x, r0.xyzx, r2.xyzx
add r0.x, r0.x, r0.x
mad r0.x, r2.z, -r0.x, r0.z
add_sat r0.y, r0.x, l(0.750000)
add r3.yzw, -cb1[3].xxyz, cb1[4].xxyz
mad r3.yzw, r0.yyyy, r3.yyzw, cb1[3].xxyz
mad_sat r0.x, r0.x, l(1.900000), l(0.350000)
add r4.xyz, -r3.yzwy, cb1[5].xyzx
mad r0.xyz, r0.xxxx, r4.xyzx, r3.yzwy
add r3.yzw, r0.xxyz, -cb1[2].xxyz
mad r3.yzw, cb1[2].wwww, r3.yyzw, cb1[2].xxyz
resinfo_indexable(texture2d)(float,float,float,float) r4.xy, l(0), t11.xyzw
mul r4.z, r2.z, l(0.062500)
mul r4.zw, r2.xxxy, r4.zzzz
mad r4.z, v0.x, cb0[0].x, -r4.z
mul r4.x, r4.x, r4.z
ftoi r5.x, r4.x
mad r4.x, v0.y, cb0[0].y, r4.w
mul r4.x, r4.y, r4.x
ftoi r5.y, r4.x
sample_indexable(texture2d)(float,float,float,float) r4.xyz, r1.xyxx, t1.xyzw, s1
mov r5.zw, l(0,0,0,0)
ld_indexable(texture2d)(float,float,float,float) r6.xyz, r5.xyww, t1.xyzw
ld_indexable(texture2d)(float,float,float,float) r1.x, r5.xyzw, t11.wxyz
mad r1.xy, r1.xxxx, l(255.000000, 255.000000, 0.000000, 0.000000), l(-2.000000, -3.000000, 0.000000, 0.000000)
lt r1.xy, |r1.xyxx|, l(0.250000, 0.250000, 0.000000, 0.000000)
or r1.x, r1.y, r1.x
movc r4.xyz, r1.xxxx, r6.xyzx, r4.xyzx
add r5.xyz, cb1[6].xyzx, -cb1[7].xyzx
mad r5.xyz, r4.xyzx, r5.xyzx, cb1[7].xyzx
add r1.x, -r1.w, l(1.000000)
add r5.xyz, -r4.xyzx, r5.xyzx
mul r1.xyw, r1.xxxx, r5.xyxz
mad r1.xyw, cb1[6].wwww, r1.xyxw, r4.xyxz
mov r4.xyz, v5.xyzx
mov r4.w, l(1.000000)
dp4 r4.x, cb12[14].xyzw, r4.xyzw
add r4.x, r4.x, cb12[35].z
dp3 r4.y, v5.xyzx, v5.xyzx
sqrt r4.y, r4.y
mad r4.y, r4.y, cb12[41].x, -cb12[41].z
mov_sat r4.z, r4.y
mad_sat r4.xw, r4.xxxx, cb12[46].xxxy, -cb12[46].zzzw
add r4.w, -r4.x, r4.w
mad r4.x, r4.z, r4.w, r4.x
lt r4.w, l(0.750000), r4.y
add r5.x, r4.z, l(-0.750000)
mul r5.x, r5.x, l(4.000000)
add r5.y, -cb12[43].w, l(1.000000)
mad r5.x, r5.x, r5.y, cb12[43].w
min r5.x, r5.x, l(1.000000)
movc r4.w, r4.w, r5.x, cb12[43].w
lt r4.y, r4.y, l(0.015000)
mul r5.x, r4.z, l(66.666672)
movc r4.y, r4.y, r5.x, l(1.000000)
log r4.z, r4.z
mul r4.z, r4.z, cb12[42].w
exp r4.z, r4.z
min r4.z, r4.w, r4.z
add r4.w, -r4.x, l(1.000000)
mad r4.w, r4.x, cb12[44].w, r4.w
add r5.xyz, -cb12[42].xyzx, cb12[44].xyzx
mad r5.xyz, r4.zzzz, r5.xyzx, cb12[42].xyzx
add r7.xyz, -cb12[43].xyzx, cb12[45].xyzx
mad r7.xyz, r4.zzzz, r7.xyzx, cb12[43].xyzx
add r7.xyz, -r5.xyzx, r7.xyzx
mad r5.xyz, r4.xxxx, r7.xyzx, r5.xyzx
mul r4.x, r4.w, r4.z
mul r4.x, r4.y, r4.x
dp3 r4.y, -v5.xyzx, -v5.xyzx
rsq r4.y, r4.y
mul r4.yzw, r4.yyyy, -v5.xxyz
dp3 r5.w, -r4.yzwy, cb0[1].xyzx
max r5.w, r5.w, l(0.000000)
log r5.w, r5.w
mul r5.w, r5.w, cb0[2].w
exp r5.w, r5.w
mul r5.w, r5.w, cb0[1].w
add r7.xyz, -r5.xyzx, cb0[2].xyzx
mad r5.xyz, r5.wwww, r7.xyzx, r5.xyzx
mul r7.xyz, cb0[1].wwww, cb0[2].xyzx
dp3_sat r5.w, r2.xyzx, l(-0.099000, -0.099000, 0.990000, 0.000000)
log r5.w, r5.w
mul r5.w, r5.w, cb1[0].w
exp r5.w, r5.w
mul r8.xyz, r7.xyzx, r5.wwww
mul r8.xyz, r8.xyzx, cb1[10].zzzz
mov r2.w, l(1.000000)
dp4 r9.x, cb12[0].xyzw, r2.xyzw
dp4 r9.y, cb12[1].xyzw, r2.xyzw
dp4 r9.z, cb12[2].xyzw, r2.xyzw
dp3 r2.x, -r4.yzwy, r9.xyzx
add r2.x, r2.x, r2.x
mad r2.xyz, r9.xyzx, -r2.xxxx, -r4.yzwy
dp3_sat r2.x, r2.xyzx, cb0[1].xyzx
log r2.x, r2.x
mul r2.x, r2.x, cb1[8].x
exp r2.x, r2.x
mul r2.xyz, r7.xyzx, r2.xxxx
mad r2.xyz, r2.xyzx, cb1[1].wwww, r8.xyzx
mul r2.w, r3.x, cb1[8].y
add r0.xyz, r0.xyzx, -r1.xywx
mad r0.xyz, r2.wwww, r0.xyzx, r1.xywx
add r0.xyz, -r3.yzwy, r0.xyzx
mad r0.xyz, r0.wwww, r0.xyzx, r3.yzwy
add r0.xyz, r2.xyzx, r0.xyzx
add r1.xyw, -r0.xyxz, r6.xyxz
mad r0.xyz, r1.zzzz, r1.xywx, r0.xyzx
add r1.xyz, -r0.xyzx, r5.xyzx
mad o0.xyz, r4.xxxx, r1.xyzx, r0.xyzx
mov o0.w, l(0)
ret 
// Approximately 0 instruction slots used
