//
// 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
	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_sat r0.xyz, r0, r0.w, -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, c1.w

// approximately 37 instruction slots used (2 texture, 35 arithmetic)
 