//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.16384
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:45 2018
//
//
// Buffer Definitions: 
//
// cbuffer Constants
// {
//
//   float4 fsize;                      // Offset:    0 Size:    16
//   float4 offset;                     // Offset:   16 Size:    16
//   float4 scolor;                     // Offset:   32 Size:    16
//   float4 scolor2;                    // Offset:   48 Size:    16
//   float4 srctexscale;                // Offset:   64 Size:    16
//   float4 texscale;                   // Offset:   80 Size:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// sampler_srctex                    sampler      NA          NA    0        1
// sampler_tex                       sampler      NA          NA    1        1
// srctex                            texture  float4          2d    0        1
// tex                               texture  float4          2d    1        1
// Constants                         cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                 0   xyzw        0     NONE   float   xyzw
// TEXCOORD                 1   xyzw        1     NONE   float   xyzw
// TEXCOORD                 2   xy          2     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
//
ps_4_0
dcl_constantbuffer cb0[6], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_input_ps linear v0.xyzw
dcl_input_ps linear v1.xyzw
dcl_input_ps linear v2.xy
dcl_output o0.xyzw
dcl_temps 4
mov r0.xy, l(0,0,0,0)
mov r0.z, -cb0[0].x
loop 
  lt r0.w, cb0[0].x, r0.z
  breakc_nz r0.w
  add r1.x, r0.z, cb0[1].x
  mov r2.xy, r0.yxyy
  mov r2.z, -cb0[0].y
  loop 
    lt r0.w, cb0[0].y, r2.z
    breakc_nz r0.w
    add r1.y, r2.z, cb0[1].y
    mad r1.zw, r1.xxxy, cb0[5].xxxy, v2.xxxy
    sample_l r3.xyzw, r1.zwzz, t1.xyzw, s1, l(0.000000)
    add r2.y, r2.y, r3.w
    mad r1.yz, -r1.xxyx, cb0[5].xxyx, v2.xxyx
    sample_l r3.xyzw, r1.yzyy, t1.xyzw, s1, l(0.000000)
    add r2.x, r2.x, r3.w
    add r2.z, r2.z, l(1.000000)
  endloop 
  mov r0.xy, r2.yxyy
  add r0.z, r0.z, l(1.000000)
endloop 
mul r0.xy, r0.xyxx, cb0[0].wwww
mul r0.zw, v2.xxxy, cb0[4].xxxy
sample_l r1.xyzw, r0.zwzz, t0.xyzw, s0, l(0.000000)
mad r0.xy, -r0.xyxx, cb0[0].zzzz, l(1.000000, 1.000000, 0.000000, 0.000000)
add_sat r0.xy, -r0.yxyy, r0.xyxx
mul r2.xyzw, r0.yyyy, cb0[3].xyzw
mad r2.xyzw, cb0[2].xyzw, r0.xxxx, r2.xyzw
add r0.x, -r0.x, l(1.000000)
add r0.x, -r0.y, r0.x
mad r0.xyzw, r1.xyzw, r0.xxxx, r2.xyzw
mov r1.xyz, v1.xyzx
mov r1.w, l(1.000000)
mul r0.xyzw, r0.xyzw, r1.xyzw
mul r0.xyzw, r0.xyzw, v1.wwww
mad o0.xyzw, v0.xyzw, r0.wwww, r0.xyzw
ret 
// Approximately 39 instruction slots used
