//
// Generated by Microsoft (R) HLSL Shader Compiler 10.1
//
//
// Buffer Definitions: 
//
// cbuffer _Globals
// {
//
//   float CASContrast;                 // Offset:    0 Size:     4
//   float MaxDelta;                    // Offset:    4 Size:     4
//   float Sharpening;                  // Offset:    8 Size:     4
//   float Contrast;                    // Offset:   12 Size:     4
//   float Brightness;                  // Offset:   16 Size:     4
//   float Saturation;                  // Offset:   20 Size:     4
//   float SharpeningRadius;            // Offset:   24 Size:     4
//   bool SingleImage;                  // Offset:   28 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[2], 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 12
lt r0.x, v1.x, l(0.500000)
movc r0.x, r0.x, l(0.250000), l(0.750000)
mov r0.y, l(0.500000)
add r0.xy, r0.xyxx, -v1.xyxx
add r1.xy, -v1.xyxx, l(0.500000, 0.500000, 0.000000, 0.000000)
mul r0.z, r0.x, l(2.000000)
movc r0.xy, cb0[1].wwww, r0.zyzz, r1.xyxx
dp2 r0.x, r0.xyxx, r0.xyxx
mul r0.x, r0.x, l(4.000000)
ne r0.y, cb0[0].z, l(0.000000)
mul r0.z, cb0[1].z, cb0[1].z
lt r0.x, r0.x, r0.z
and r0.x, r0.x, r0.y
if_nz r0.x
  sample_aoffimmi_indexable(-1,-1,0)(texture2d)(float,float,float,float) r0.xyz, v1.xyxx, t5.xyzw, s0
  sample_aoffimmi_indexable(0,-1,0)(texture2d)(float,float,float,float) r1.xyz, v1.xyxx, t5.xyzw, s0
  sample_aoffimmi_indexable(1,-1,0)(texture2d)(float,float,float,float) r2.xyz, v1.xyxx, t5.xyzw, s0
  sample_aoffimmi_indexable(-1,0,0)(texture2d)(float,float,float,float) r3.xyz, v1.xyxx, t5.xyzw, s0
  sample_aoffimmi_indexable(-1,1,0)(texture2d)(float,float,float,float) r4.xyz, v1.xyxx, t5.xyzw, s0
  sample_indexable(texture2d)(float,float,float,float) r5.xyz, v1.xyxx, t5.xyzw, s0
  sample_aoffimmi_indexable(1,0,0)(texture2d)(float,float,float,float) r6.xyz, v1.xyxx, t5.xyzw, s0
  sample_aoffimmi_indexable(0,1,0)(texture2d)(float,float,float,float) r7.xyz, v1.xyxx, t5.xyzw, s0
  sample_aoffimmi_indexable(1,1,0)(texture2d)(float,float,float,float) r8.xyz, v1.xyxx, t5.xyzw, s0
  min r9.xyz, r3.xyzx, r5.xyzx
  min r10.xyz, r1.xyzx, r6.xyzx
  min r9.xyz, r9.xyzx, r10.xyzx
  min r9.xyz, r7.xyzx, r9.xyzx
  min r10.xyz, r0.xyzx, r2.xyzx
  min r11.xyz, r4.xyzx, r8.xyzx
  min r10.xyz, r10.xyzx, r11.xyzx
  min r10.xyz, r9.xyzx, r10.xyzx
  add r9.xyz, r9.xyzx, r10.xyzx
  max r10.xyz, r3.xyzx, r5.xyzx
  max r11.xyz, r1.xyzx, r6.xyzx
  max r10.xyz, r10.xyzx, r11.xyzx
  max r10.xyz, r7.xyzx, r10.xyzx
  max r0.xyz, r0.xyzx, r2.xyzx
  max r2.xyz, r4.xyzx, r8.xyzx
  max r0.xyz, r0.xyzx, r2.xyzx
  max r0.xyz, r0.xyzx, r10.xyzx
  add r0.xyz, r0.xyzx, r10.xyzx
  rcp r2.xyz, r0.xyzx
  add r0.xyz, -r0.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000)
  min r0.xyz, r0.xyzx, r9.xyzx
  mul_sat r0.xyz, r2.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 r2.xyz, r0.xyzx, l(-4.000000, -4.000000, -4.000000, 0.000000), l(1.000000, 1.000000, 1.000000, 0.000000)
  rcp r2.xyz, r2.xyzx
  add r1.xyz, r1.xyzx, r3.xyzx
  add r3.xyz, r6.xyzx, r7.xyzx
  add r1.xyz, r1.xyzx, r3.xyzx
  mad r0.xyz, r1.xyzx, -r0.xyzx, r5.xyzx
  mul_sat r0.xyz, r2.xyzx, r0.xyzx
  add r0.xyz, -r5.xyzx, r0.xyzx
  max r0.xyz, r0.xyzx, -cb0[0].yyyy
  min r0.xyz, r0.xyzx, cb0[0].yyyy
  mad r0.xyz, cb0[0].zzzz, r0.xyzx, r5.xyzx
else 
  sample_indexable(texture2d)(float,float,float,float) r0.xyz, v1.xyxx, t5.xyzw, s0
endif 
add r0.xyz, r0.xyzx, l(-0.500000, -0.500000, -0.500000, 0.000000)
mad r0.xyz, cb0[0].wwww, r0.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000)
add r0.w, cb0[1].x, l(-1.000000)
add r0.xyz, r0.wwww, r0.xyzx
ne r0.w, cb0[1].y, l(1.000000)
dp3 r1.x, l(0.212500, 0.715400, 0.072100, 0.000000), r0.xyzx
add r1.yzw, r0.xxyz, -r1.xxxx
mad r1.xyz, cb0[1].yyyy, r1.yzwy, r1.xxxx
movc o0.xyz, r0.wwww, r1.xyzx, r0.xyzx
ret 
// Approximately 73 instruction slots used
