//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   row_major float4x4 CurrentViewProj;
//   sampler2D DeformationSampler;
//   float DeformationScale;
//   float DeformationVelScale;
//   sampler2D DepthMapSampler;
//   sampler2D FillSampler;
//   row_major float4x4 LastViewProj;
//   float VelocityPower;
//   float VelocityScale;
//   row_major float4x4 matViewProjectionInv;
//
//
// Registers:
//
//   Name                 Reg   Size
//   -------------------- ----- ----
//   matViewProjectionInv c0       4
//   CurrentViewProj      c4       4
//   LastViewProj         c8       4
//   VelocityScale        c12      1
//   VelocityPower        c13      1
//   DeformationScale     c14      1
//   DeformationVelScale  c15      1
//   FillSampler          s0       1
//   DepthMapSampler      s2       1
//   DeformationSampler   s3       1
//

    ps_3_0
    def c16, 0.00392156886, 100, 0, 0
    def c17, 0, 1, -0, -1
def c220, 0, 0, 0.0625, 0
dcl_2d s13

    dcl_texcoord v0.xy
    dcl_texcoord1 v1.xy
    dcl_2d s0
    dcl_2d s2
    dcl_2d s3
    mul r0, c1, v1.y
    mad r0, v1.x, c0, r0
    texld_pp r1, v0, s3
    mul_pp r2.xy, r1.ywzw, c14.x
    mad_pp r2.xy, r1.xzzw, c14.x, -r2
    mul r1, r1, c15.x
    add r2.xy, -r2, v0
    texld r3, r2, s2
    texld_pp r2, r2, s0
    mad r0, r3.x, c2, r0
    add r0, r0, c3


mov r11,r0
rcp r11.w, r11.w
mul r11, r11, r11.w
mul r10, r11.y, c151
mad r10, r11.x, c150, r10
mad r10, r11.z, c152, r10
add r10, r10, c153
texldl r20, c220.z, s13
add r20.y, r10.w, -r20.y
mul r20.x, r20.x, r20.y
add r10.x, r10.x, -r20.x
rcp r11.w, r10.w
mul r10, r10, r11.w
mul r11, r10.y, c155
mad r11, r10.x, c154, r11
mad r11, r10.z, c156, r11
add r11, r11, c157
rcp r10.w, r11.w
mul r11, r11, r10.w
mul r11, r11, r0.w
mov r0, r11
    rcp r0.w, r0.w

    mul r0.xyz, r0.w, r0
    mul r3.xyz, r0.y, c9.xyww
    mad r3.xyz, r0.x, c8.xyww, r3
    mad r3.xyz, r0.z, c10.xyww, r3
    add r3.xyz, r3, c11.xyww
    rcp r0.w, r3.z
    mul r3.xy, r0.w, r3
    mul r4.xyz, r0.y, c5.xyww
    mad r0.xyw, r0.x, c4, r4.xyzz
    mad r0.xyz, r0.z, c6.xyww, r0.xyww
    add r0.xyz, r0, c7.xyww
    rcp r0.z, r0.z
    mad r0.xy, r0, r0.z, -r3
    mul r0.xy, r0, c12.x
    cmp r0.zw, -r0.xyxy, c17.x, c17.y
    cmp r3.xy, r0, c17.z, c17.w
    add r0.zw, r0, r3.xyxy
    max r3.xy, r0.zwzw, c17.x
    max r3.zw, -r0, c17.x
    mul_pp r4, r0_abs.xxyy, r3.xzwy
    add_pp r0, r4, c16.x
    cmp_pp r0, -r2_abs.x, r0, r2.xywz
    mad_pp r0, r0, c13.x, r1
    mul_pp oC0, r0, c16.y

// approximately 36 instruction slots used (3 texture, 33 arithmetic)
 
