//
// Generated by Microsoft (R) HLSL Shader Compiler 9.27.952.3022
//
// Parameters:
//
//   sampler2D BlurredImage;
//   float4 GammaColorScaleAndInverse;
//   float4 GammaOverlayColor;
//   float4 MinMaxBlurClamp;
//   float4 MinZ_MaxZRatio;
//   float4 PackedParameters;
//   sampler2D SceneColorTexture;
//   float4 SceneInverseHighLights;
//   float4 SceneMidTones;
//   float4 SceneScaledLuminanceWeights;
//   float4 SceneShadowsAndDesaturation;
//
//
// Registers:
//
//   Name                        Reg   Size
//   --------------------------- ----- ----
//   PackedParameters            c0       1
//   MinZ_MaxZRatio              c2       1
//   MinMaxBlurClamp             c3       1
//   SceneShadowsAndDesaturation c40       1
//   SceneInverseHighLights      c5       1
//   SceneMidTones               c6       1
//   SceneScaledLuminanceWeights c7       1
//   GammaColorScaleAndInverse   c8       1
//   GammaOverlayColor           c9       1
//   SceneColorTexture           s0       1
//   BlurredImage                s1       1
//

    ps_3_0
    def c1, 4, 0.298999995, 0.587000012, 0.114
    def c10, 65504, -9.99999997e-007, 0, 1
    def c40, 0, 0, 0, 0
    dcl_texcoord v0.zw
    dcl_texcoord1 v1.zw
    dcl_2d s0
    dcl_2d s1
    texld_pp r0, v1.zwzw, s0
    min_pp r1.x, r0.w, c10.x
    mad r0.w, r1.x, c2.z, -c2.w
    rcp_pp r0.w, r0.w
    add_pp r0.w, r0.w, -c0.x
    mul_sat_pp r1.x, r0_abs.w, c0.y
    cmp_pp r0.w, r0.w, c3.y, c3.x
    add r1.y, r1.x, c10.y
    pow_pp r2.x, r1.x, c0.z
    cmp_pp r1.x, r1.y, r2.x, c10.z
    min_pp r2.x, r1.x, r0.w
    add_sat_pp r0.w, -r2.x, c10.w
    texld r1, v0.zwzw, s1
    mul_pp r1.xyz, r1, c1.x
    mad_pp r1.w, r1.w, c1.x, r0.w
    mad_pp r0.xyz, r0, r0.w, r1
    rcp r0.w, r1.w
    mad_sat_pp r0.xyz, r0, r0.w, -c40
    mul r0.xyz, r0, c5
    log r1.x, r0.x
    log r1.y, r0.y
    log r1.z, r0.z
    mul r0.xyz, r1, c6
    exp_pp r1.x, r0.x
    exp_pp r1.y, r0.y
    exp_pp r1.z, r0.z
    dp3_pp r0.x, r1, c7
    mad_pp r0.xyz, r1, c40.w, r0.x
    add_pp r0.xyz, r0, c9
    mul_sat_pp r0.xyz, r0, c8
    max r1.xyz, r0, -c10.y
    log r0.x, r1.x
    log r0.y, r1.y
    log r0.z, r1.z
    mul r0.xyz, r0, c8.w
    exp_pp r1.x, r0.x
    exp_pp r1.y, r0.y
    exp_pp r1.z, r0.z
    dp3_pp oC0.w, r1, c1.yzww
    mov_pp oC0.xyz, r1

// approximately 42 instruction slots used (2 texture, 40 arithmetic)
 