//
// Generated by Microsoft (R) HLSL Shader Compiler 9.26.952.2844
//
// Parameters:
//
//   sampler2D AdapLumSampler;
//   float4 ColorCorrect;
//   float4 ColorShift;
//   float Exposure;
//   sampler2D GBufferTextureSampler2;
//   sampler2D HDRSampler;
//   float4 TexelSize;
//   float4 ToneMapParams;
//   float4 deSatContrastGamma;
//
//
// Registers:
//
//   Name                   Reg   Size
//   ---------------------- ----- ----
//   Exposure               c66      1
//   TexelSize              c72      1
//   ToneMapParams          c73      1
//   deSatContrastGamma     c74      1
//   ColorCorrect           c75      1
//   ColorShift             c76      1
//   GBufferTextureSampler2 s0       1
//   HDRSampler             s1       1
//   AdapLumSampler         s2       1
//

    ps_3_0
    def c219, 1.8395173895e+25, 3.9938258725e+24, 4.5435787456e+30, 1.1630777254e-42 // 830
    def c0, -0.5, -1.5, 1.5, 0.5
    def c1, 0.212500006, 0.715399981, 0.0720999986, 0.25
    def c2, 256, 1, 0, 0.25
    def c3, 0, 2, 4, 8
    def c4, 256, 2, 4, 8
    dcl_texcoord v0.xy
    dcl_2d s0
    dcl_2d s1
    dcl_2d s2
    texld r0, v0, s0
    mov r0.xy, c2
    mad r1, r0.w, -r0.x, c3
    mad r2, r0.w, -c4.x, c4.yzwx
    cmp r2, r2, -c2.y, -c2.z
    cmp r1, r1, c2.y, c2.z
    add r1, r2, r1
    mul r1, r1, c0.x
    dp4 r0.x, r1, c2.y
    add r0.x, r0.x, c0.w
    rcp r0.x, r0.x
    mov r2, c0
    mad r0.zw, c72.xyxy, r2.xyxy, v0.xyxy
    texld r3, r0.zwzw, s1
    mul r4.xyz, r1.x, r3
    texld r5, v0, s1
    mad r4.xyz, r5, c0.w, r4
    dp3 r0.z, r5, c1
    mad r5.xy, c72, r2.zxzw, v0
    texld r5, r5, s1
    mad r4.xyz, r5, r1.y, r4
    mad r1.xy, c72, r2.wzzw, v0
    texld r6, r1, s1
    mad r1.xyz, r6, r1.z, r4
    mad r2.xy, c72, r2.ywzw, v0
    texld r2, r2, s1
    mad r1.xyz, r2, r1.w, r1
    mul r1.xyz, r0.x, r1
    dp3 r4.x, r3, c1
    dp3 r4.y, r5, c1
    dp3 r4.z, r6, c1
    dp3 r4.w, r2, c1
    dp4 r0.x, r4, c1.w
    add r4, r4, -r0.x
    add r0.x, r0.z, -r0.x
    dp4 r0.z, r4, r4
    mad r0.x, r0.x, r0.x, -r0.z
    cmp r0.xz, r0.x, c2.zyww, c2.yyzw
    mul r3.xyz, r3, r0.z
    mad r1.xyz, r1, r0.x, r3
    mad r1.xyz, r5, r0.z, r1
    mad r1.xyz, r6, r0.z, r1
    mad r0.xzw, r2.xyyz, r0.z, r1.xyyz
    mul r0.xzw, r0, c66.x
    texld r1, c2.z, s2
    rcp r1.x, r1.x
    mul r1.x, r1.x, c73.y
    mul r1.yzw, r0.xxzw, r1.x
    dp3 r1.y, r1.yzww, c1
    mad r0.xzw, r0, r1.x, -r1.y
    mad r0.xzw, c74.x, r0, r1.y
    mul r1.x, r1.y, c76.w
    mov_sat r1.y, r1.y
    mad r0.xzw, c76.xyyz, -r1.x, r0
    mul r2.xyz, r1.x, c76
    mov_sat r1.x, r1.x
    mad r0.xzw, r1.x, r0, r2.xyyz
    mul r0.xzw, r0, c75.xyyz
    add r0.xzw, r0, r0
    add r0.y, -r0.y, c74.z
    pow r2.x, r1.y, r0.y
    mul oC0.xyz, r0.xzww, r2.x
    mov oC0.w, c2.y

// approximately 65 instruction slots used (7 texture, 58 arithmetic)
