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

    ps_3_0
    def c1, 9.99999975e-005, 1, 4, -0.00400000019
    def c9, 0, 6.19999981, 0.5, 1.70000005
    def c10, 0.0599999987, 0, 0, 0
	def c99, 0, 0, 0, 0
    dcl_texcoord v0.xy
    dcl_texcoord1 v1.xy
    dcl_2d s0
    dcl_2d s1
    texld_pp r0, v1, s0
    add_pp r0.w, r0.w, -c0.x
    mul_sat r1.x, r0_abs.w, c0.y
    cmp_pp r0.w, r0.w, c99.y, c99.x
    max r2.x, r1.x, c1.x
    pow_pp r1.x, r2.x, c0.z
    min_pp r2.x, r1.x, r0.w
    add_sat_pp r0.w, -r2.x, c1.y
    texld r1, v0, s1
    mul_pp r1.xyz, r1, c1.z
    mad_pp r1.w, r1.w, c1.z, r0.w
    mad_pp r0.xyz, r0, r0.w, r1
    rcp r0.w, r1.w
    mad_pp r0.xyz, r0, r0.w, c1.w
    max_pp r1.xyz, r0, c9.x
    mad r0.xyz, r1, c9.y, c9.z
    mul r0.xyz, r1, r0
    mad r2.xyz, r1, c9.y, c9.w
    mad r1.xyz, r1, r2, c10.x
    rcp r2.x, r1.x
    rcp r2.y, r1.y
    rcp r2.z, r1.z
    mul r0.xyz, r0, r2
    mad_sat r0.xyz, r0, r0, -c3
    mul_pp r0.xyz, r0, c4
    log_pp r1.x, r0.x
    log_pp r1.y, r0.y
    log_pp r1.z, r0.z
    mul_pp r0.xyz, r1, c5
    exp_pp r1.x, r0.x
    exp_pp r1.y, r0.y
    exp_pp r1.z, r0.z
    dp3_pp r0.x, r1, c6
    mov r0.w, c3.w
    mad r0.yzw, r1.xxyz, r0.w, c8.xxyz
    add_pp r0.xyz, r0.x, r0.yzww
    mul_sat_pp r0.xyz, r0, c7
    log_pp r1.x, r0.x
    log_pp r1.y, r0.y
    log_pp r1.z, r0.z
    mul_pp r0.xyz, r1, c7.w
    exp_pp oC0.x, r0.x
    exp_pp oC0.y, r0.y
    exp_pp oC0.z, r0.z
    mov oC0.w, c9.x

// approximately 47 instruction slots used (2 texture, 45 arithmetic)
 