//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
// Buffer Definitions: 
//
// cbuffer _Globals
// {
//
//   float Contrast;                    // Offset:    0 Size:     4
//   float Sharpening;                  // Offset:    4 Size:     4
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim      HLSL Bind  Count
// ------------------------------ ---------- ------- ----------- -------------- ------
// __s0                              sampler      NA          NA             s0      1 
// __srgbV__TexColor                 texture  float4          2d             t5      1 
// _Globals                          cbuffer      NA          NA            cb0      1 
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float       
// TEXCOORD                 0   xy          1     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_TARGET                0   xyz         0   TARGET   float   xyz 
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer CB0[1], immediateIndexed
dcl_sampler s0, mode_default
dcl_resource_texture2d (float,float,float,float) t5
dcl_input_ps linear v1.xy
dcl_output o0.xyz
dcl_temps 9
sample_aoffimmi_indexable(-1,-1,0)(texture2d)(float,float,float,float) r0.xyz, v1.xyxx, t5.xyzw, s0
sample_aoffimmi_indexable(1,-1,0)(texture2d)(float,float,float,float) r1.xyz, v1.xyxx, t5.xyzw, s0
max r2.xyz, r0.xyzx, r1.xyzx
min r0.xyz, r0.xyzx, r1.xyzx
sample_aoffimmi_indexable(-1,1,0)(texture2d)(float,float,float,float) r1.xyz, v1.xyxx, t5.xyzw, s0
add r3.xy, v1.xyxx, l(0.000171, 0.000175, 0.000000, 0.000000)
gather4_indexable(texture2d)(float,float,float,float) r4.xyzw, r3.xyxx, t5.xyzw, s0.x
mov r5.x, r4.y
gather4_indexable(texture2d)(float,float,float,float) r6.xyzw, r3.xyxx, t5.xzyw, s0.y
gather4_indexable(texture2d)(float,float,float,float) r3.xyzw, r3.xyxx, t5.xywz, s0.z
mov r5.y, r6.z
mov r5.z, r3.y
max r7.xyz, r1.xyzx, r5.xyzx
min r1.xyz, r1.xyzx, r5.xyzx
min r0.xyz, r0.xyzx, r1.xyzx
max r1.xyz, r2.xyzx, r7.xyzx
mov r2.x, r4.x
mov r2.y, r6.x
mov r2.z, r3.x
mov r6.x, r4.z
mov r3.x, r4.w
mov r3.y, r6.w
mov r6.z, r3.w
sample_aoffimmi_indexable(0,-1,0)(texture2d)(float,float,float,float) r4.xyz, v1.xyxx, t5.xyzw, s0
max r5.xyz, r4.xyzx, r6.xyzx
sample_aoffimmi_indexable(-1,0,0)(texture2d)(float,float,float,float) r7.xyz, v1.xyxx, t5.xyzw, s0
max r8.xyz, r3.xyzx, r7.xyzx
max r5.xyz, r5.xyzx, r8.xyzx
max r5.xyz, r2.xyzx, r5.xyzx
max r1.xyz, r1.xyzx, r5.xyzx
add r1.xyz, r1.xyzx, r5.xyzx
add r5.xyz, -r1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000)
rcp r1.xyz, r1.xyzx
min r8.xyz, r4.xyzx, r6.xyzx
add r6.xyz, r2.xyzx, r6.xyzx
add r4.xyz, r4.xyzx, r7.xyzx
min r7.xyz, r3.xyzx, r7.xyzx
min r7.xyz, r8.xyzx, r7.xyzx
min r2.xyz, r2.xyzx, r7.xyzx
add r4.xyz, r6.xyzx, r4.xyzx
min r0.xyz, r0.xyzx, r2.xyzx
add r0.xyz, r0.xyzx, r2.xyzx
min r0.xyz, r5.xyzx, r0.xyzx
mul_sat r0.xyz, r1.xyzx, r0.xyzx
rsq r0.xyz, r0.xyzx
mad r0.w, cb0[0].x, l(-3.000000), l(8.000000)
mul r0.xyz, r0.wwww, r0.xyzx
rcp r0.xyz, r0.xyzx
mad r1.xyz, r4.xyzx, -r0.xyzx, r3.xyzx
mad r0.xyz, r0.xyzx, l(-4.000000, -4.000000, -4.000000, 0.000000), l(1.000000, 1.000000, 1.000000, 0.000000)
rcp r0.xyz, r0.xyzx
mul_sat r0.xyz, r0.xyzx, r1.xyzx
add r0.xyz, -r3.xyzx, r0.xyzx
mad o0.xyz, cb0[0].yyyy, r0.xyzx, r3.xyzx
ret 
// Approximately 55 instruction slots used
