//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   sampler2D distortionMap;
//   float4 distortionModelCenter;
//   float2 distortionNormalPower;
//   float4 distortionParam;
//   float2 distortionPivot;
//   float4 distortionRotMatrix[3];
//   sampler2D screenMap;
//   float4 viewProjMatrix[4];
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   distortionRotMatrix   c20      3
//   viewProjMatrix        c23      3
//   distortionParam       c26      1
//   distortionNormalPower c27      1
//   distortionModelCenter c28      1
//   distortionPivot       c29      1
//   screenMap             s0       1
//   distortionMap         s1       1
//
//
// Default values:
//
//   distortionParam
//     c26  = { 1, 0, 0, 0 };
//
//   distortionNormalPower
//     c27  = { 0, 0, 0, 0 };
//
//   distortionModelCenter
//     c28  = { 0, 0, 0, 1 };
//
//   distortionPivot
//     c29  = { 0, 0, 0, 0 };
//

    ps_3_0
    def c0, 2, -1, 0.5, 1
    dcl_texcoord3_pp v0
    dcl_texcoord v1.xy
    dcl_texcoord5 v2.xyw
    dcl_color_pp v3.xyz
    dcl_2d s0
    dcl_2d s1
    mad_pp r0.xyz, v3, c0.x, c0.y
    nrm_pp r1.xyz, r0
    mul r0.xy, r1.y, c24
    mad r0.xy, r1.x, c23, r0
    mad r0.xy, r1.z, c25, r0
    mad r0.xy, r0, -c27.x, v2
    rcp r0.z, v2.w
    mul r1.xy, r0.z, r0
    mad r0.xy, r0, -r0.z, c28
    mov r0.z, c22.w
    dp3 r2.x, c20, r0
    dp3 r2.y, c21, r0
    mad r0.zw, r2.xyxy, c26.w, r1.xyxy
    mov r1.y, c0.y
    add r1.x, r1.y, c26.x
    mul r0.xy, r0, r1.x
    texld_pp r1, v1, s1
    mad r0.xy, r0, r1.w, r0.zwzw
    add r0.xy, r0, c29
    mad r0.xy, c26.yzzw, r1.w, r0
    mad r0.xy, r0, c0.z, c0.z
    add r0.z, -r0.y, c0.w
    texld_pp r0, r0.xzzw, s0
    mov_pp r1.xyz, r0
    mul_pp oC0, r1, v0

// approximately 27 instruction slots used (2 texture, 25 arithmetic)
 