//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:45 2018
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// DamageSampler                     sampler      NA          NA    0        1
// AlphaSampler                      sampler      NA          NA    1        1
// DiffuseSampler                    sampler      NA          NA    2        1
// DamageSampler                     texture  float4          2d    0        1
// DiffuseSampler                    texture  float4          2d    1        1
// AlphaSampler                      texture  float4          2d    2        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float       
// TEXCOORD                 0   xyz         1     NONE   float   xyz 
// TEXCOORD                 1   xy          2     NONE   float   xy  
// SV_ClipDistance          0   xyzw        3  CLIPDST   float       
// SV_ClipDistance          1   xyzw        4  CLIPDST   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_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_input_ps linear v1.xyz
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 2
ge r0.x, v1.z, l(0.250000)
if_nz r0.x
  sample_indexable(texture2d)(float,float,float,float) r0.xyz, v1.xyxx, t0.xyzw, s0
  ge r1.xy, v1.zzzz, l(0.500000, 0.750000, 0.000000, 0.000000)
  if_nz r1.x
    max r0.x, r0.y, r0.x
  endif 
  if_nz r1.y
    max r0.x, r0.z, r0.x
  endif 
  ge r0.x, r0.x, l(0.750000)
  if_nz r0.x
    mov r0.x, l(0)
  else 
    mov r0.x, l(1.000000)
  endif 
else 
  mov r0.x, l(1.000000)
endif 
lt r0.x, r0.x, l(0.500000)
if_nz r0.x
  discard_nz l(-1)
endif 
sample_indexable(texture2d)(float,float,float,float) r0.y, v1.xyxx, t1.xwyz, s2
div o0.xyz, v2.xxxx, v2.yyyy
mov r0.x, l(0.500000)
sample_indexable(texture2d)(float,float,float,float) r0.x, r0.xyxx, t2.zxyw, s1
lt r0.y, r0.x, l(0.500000)
if_nz r0.y
  discard_nz l(-1)
endif 
mov o0.w, r0.x
ret 
// Approximately 33 instruction slots used
