// Batch Swizzle oDepthLE DHR
// ---- Created with 3Dmigoto v1.2.65 on Wed Sep 20 21:35:13 2017
Texture2D<float4> t3 : register(t3);

Texture2D<float4> t2 : register(t2);

Texture2D<float4> t1 : register(t1);

Texture2D<float4> t0 : register(t0);

SamplerState s3_s : register(s3);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb4 : register(b4)
{
  float4 cb4[24];
}

cbuffer cb3 : register(b3)
{
  float4 cb3[8];
}

cbuffer cb2 : register(b2)
{
  float4 cb2[6];
}

cbuffer cb1 : register(b1)
{
  float4 cb1[12];
}

cbuffer cb0 : register(b0)
{
  float4 cb0[129];
}




// 3Dmigoto declarations
#define cmp -
Texture1D<float4> IniParams : register(t120);
Texture2D<float4> StereoParams : register(t125);
#include "matrix.hlsl"


void main( 
  linear centroid float4 v0 : TEXCOORD10,
  linear centroid float4 v1 : TEXCOORD11,
  float4 v2 : COLOR0,
  float2 v3 : TEXCOORD0,
  float4 v4 : SV_Position0,
  uint v5 : SV_IsFrontFace0,
  out float4 o0 : SV_Target0,
  out float4 o1 : SV_Target1,
  out float4 o2 : SV_Target2,
  out float4 o3 : SV_Target3,
  out float4 o4 : SV_Target4,
  out float4 o5 : SV_Target5)
  //out float oDepthLE : SV_DepthLessEqual)
{
  float4 r0,r1,r2,r3,r4,r5,r6,r7,r8;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xyz = v1.zxy * v0.yzx;
  r0.xyz = v1.yzx * v0.zxy + -r0.xyz;
  r0.xyz = v1.www * r0.xyz;
  r0.w = v4.z;
  r1.x = 1;
  r0.w = v4.w * r0.w;
  r2.xyzw = cb0[37].xyzw * v4.yyyy;
  r2.xyzw = v4.xxxx * cb0[36].xyzw + r2.xyzw;
  r2.xyzw = v4.zzzz * cb0[38].xyzw + r2.xyzw;
  r2.xyzw = cb0[39].xyzw + r2.xyzw;
  r1.yzw = r2.xyz / r2.www;
  
  // Common SVPositionToTranslatedWorld fix:
float4 s = StereoParams.Load(0);
matrix TranslatedWorldToClip = MATRIX(cb0, 0);
matrix ClipToTranslatedWorld = MATRIX(cb0, 32);
float4 t = mul(r1.yzw, TranslatedWorldToClip);
t.x -= s.x * (t.w - s.y);
r1.yzw = mul(t, ClipToTranslatedWorld);
  
  r2.xyz = -cb0[58].xyz + r1.yzw;
  r2.w = dot(-r1.yzw, -r1.yzw);
  r2.w = rsqrt(r2.w);
  r3.xyz = r2.www * -r1.yzw;
  r3.w = cb1[9].w * cb0[125].w;
  r4.x = v5.x ? 1 : -1;
  r3.w = r4.x * r3.w;
  r4.xy = t0.SampleBias(s0_s, v3.xy, cb4[17].x).xy;
  r4.xy = r4.xy * float2(2,2) + float2(-1,-1);
  r4.w = dot(r4.xy, r4.xy);
  r4.w = 1 + -r4.w;
  r4.w = max(0, r4.w);
  r4.z = sqrt(r4.w);
  r4.xyz = r4.xyz * cb0[122].www + cb0[122].xyz;
  r4.xyz = r4.xyz * r3.www;
  r3.w = dot(r4.xyz, r4.xyz);
  r3.w = rsqrt(r3.w);
  r4.xyz = r4.xyz * r3.www;
  r5.xyz = r4.yyy * r0.xyz;
  r4.xyw = r4.xxx * v0.xyz + r5.xyz;
  r4.xyz = r4.zzz * v1.xyz + r4.xyw;
  r3.w = dot(r4.xyz, r4.xyz);
  r3.w = rsqrt(r3.w);
  r4.xyz = r4.xyz * r3.www;
  r5.xyz = cb3[7].xyz + -r2.xyz;
  r3.w = dot(r5.xyz, r5.xyz);
  r3.w = sqrt(r3.w);
  r5.xyz = r5.xyz / r3.www;
  r3.w = dot(r5.xyz, cb3[6].xyz);
  r4.w = saturate(0.100000024 + -r3.w);
  r4.w = max(9.99999997e-007, r4.w);
  r4.w = log2(r4.w);
  r4.w = 10 * r4.w;
  r4.w = exp2(r4.w);
  r5.x = dot(r5.xyz, r4.xyz);
  r5.x = r5.x * r4.w;
  r5.yz = float2(0.5,0.0500000007) * cb3[1].yy;
  r6.xyz = -cb3[7].xyz + r2.xyz;
  r5.w = dot(r6.xyz, r6.xyz);
  r5.w = sqrt(r5.w);
  r6.xy = min(r5.ww, r5.yz);
  r5.yz = r6.xy / r5.yz;
  r5.y = 1 + -r5.y;
  r5.y = max(9.99999997e-007, abs(r5.y));
  r5.y = r5.y * r5.y;
  r5.x = r5.x * r5.y;
  r5.y = t1.Sample(s1_s, v3.xy).x;
  r6.xyz = cb4[2].xyz * r5.yyy;
  r6.xyz = r6.xyz * r4.www;
  r6.xyz = float3(1.5,1.5,1.5) * r6.xyz;
  r3.w = saturate(-r3.w);
  r3.w = max(9.99999997e-007, r3.w);
  r3.w = log2(r3.w);
  r3.w = 30 * r3.w;
  r3.w = exp2(r3.w);
  r7.xyz = r5.yyy * cb4[4].xyz + -r6.xyz;
  r6.xyz = r3.www * r7.xyz + r6.xyz;
  r5.xyw = r6.xyz * r5.xxx;
  r3.w = max(9.99999997e-007, abs(r5.z));
  r3.w = r3.w * r3.w;
  r3.w = r3.w * r3.w;
  r5.xyz = r5.xyw * r3.www;
  r5.xyz = cb3[5].yyy * r5.xyz;
  r6.xy = t0.SampleBias(s0_s, v3.xy, cb4[17].w).xy;
  r6.xy = r6.xy * float2(2,2) + float2(-1,-1);
  r3.w = dot(r6.xy, r6.xy);
  r3.w = 1 + -r3.w;
  r3.w = max(0, r3.w);
  r6.z = sqrt(r3.w);
  r7.xyz = float3(0,0,1) * r6.zxy;
  r7.xyz = r6.yzx * float3(0,1,0) + -r7.xyz;
  r3.w = dot(r7.yz, r7.yz);
  r3.w = sqrt(r3.w);
  r7.xyz = r7.xyz / r3.www;
  r8.xy = t2.SampleBias(s2_s, v3.xy, 1).xy;
  r3.w = -cb4[19].x + cb4[18].w;
  r3.w = r8.x * r3.w + cb4[19].x;
  r3.w = -cb4[19].y + r3.w;
  r3.w = cb4[19].z + r3.w;
  r6.xyz = r3.www * r6.xyz + r7.xyz;
  r3.w = dot(r6.xyz, r6.xyz);
  r3.w = sqrt(r3.w);
  r6.xyz = r6.xyz / r3.www;
  r1.yzw = -r1.yzw * r2.www + -cb0[14].xyz;
  r7.x = dot(v0.xyz, r1.yzw);
  r7.y = dot(r0.xyz, r1.yzw);
  r7.z = dot(v1.xyz, r1.yzw);
  r0.xyz = float3(-1,-0,-0) + r7.xyz;
  r1.y = dot(r0.xyz, r0.xyz);
  r1.y = sqrt(r1.y);
  r0.xyz = r0.xyz / r1.yyy;
  r0.x = dot(r6.xyz, r0.xyz);
  r0.y = saturate(1 + r0.x);
  r0.z = r0.y * -2 + 3;
  r0.y = r0.y * r0.y;
  r0.y = r0.z * r0.y;
  r0.x = -r0.x * r0.x + 1;
  r0.x = sqrt(r0.x);
  r0.x = max(9.99999997e-007, r0.x);
  r0.x = log2(r0.x);
  r0.z = cb4[19].w * r0.x;
  r0.z = exp2(r0.z);
  r0.z = cb4[20].x * r0.z;
  r0.z = r0.y * r0.z;
  r1.yzw = cb4[7].xyz * r0.zzz;
  r1.yzw = r1.yzw * r8.yyy;
  r1.yzw = saturate(cb4[20].yyy * r1.yzw);
  r0.z = dot(r4.xyz, r3.xyz);
  r0.z = max(0, r0.z);
  r0.z = 1 + -r0.z;
  r0.z = max(9.99999997e-007, abs(r0.z));
  r0.z = log2(r0.z);
  r0.z = cb4[20].z * r0.z;
  r0.z = exp2(r0.z);
  r0.z = cb4[20].w * r0.z;
  r6.xyz = r1.yzw * r0.zzz + r0.zzz;
  r5.xyz = r5.xyz * cb4[5].xyz + r6.xyz;
  r5.xyz = r5.xyz * cb3[5].xxx + cb4[8].xyz;
  r6.xyzw = t3.Sample(s3_s, v3.xy).xyzw;
  r0.z = t2.SampleBias(s2_s, v3.xy, -1).z;
  r0.z = saturate(cb4[21].x * r0.z);
  r6.xyz = -cb4[12].xyz + r6.xyz;
  r6.xyz = r0.zzz * r6.xyz + cb4[12].xyz;
  r0.x = cb4[21].z * r0.x;
  r0.x = exp2(r0.x);
  r0.x = cb4[21].w * r0.x;
  r0.x = r0.y * r0.x;
  r0.xyz = cb4[14].xyz * r0.xxx;
  r0.xyz = r0.xyz * r6.xyz;
  r0.xyz = cb4[21].yyy * r6.xyz + r0.xyz;
  r0.xyz = r1.yzw * float3(3,3,3) + r0.xyz;
  r1.yzw = saturate(cb4[9].xyz * r0.xyz);
  r6.xy = t2.Sample(s2_s, v3.xy).xy;
  r2.w = cb4[22].x * r6.y;
  r3.w = 1 + -r6.x;
  r3.w = dot(r3.ww, cb4[23].zz);
  r3.w = 1 + -r3.w;
  r4.w = dot(r6.xx, cb4[23].yy);
  r5.w = cmp(r6.x >= 0.5);
  r3.w = r5.w ? r3.w : r4.w;
  r3.w = cb4[23].w + r3.w;
  r3.w = max(0, r3.w);
  r1.x = r1.x * v4.w + r3.w;
  //oDepthLE = r0.w / r1.x;
  r0.w = r6.w * cb4[22].w + -0.333299994;
  r0.w = cmp(r0.w < 0);
  if (r0.w != 0) discard;
  r6.xy = saturate(r2.ww);
  r0.w = saturate(cb4[22].y);
  o2.z = r0.w * cb0[123].y + cb0[123].x;
  r0.xyz = saturate(cb4[16].xyz * r0.xyz);
  r0.xyz = saturate(r0.xyz * cb0[120].www + cb0[120].xyz);
  o4.w = saturate(cb4[22].z);
  r0.w = cmp(0 < cb1[11].y);
  o5.x = r0.w ? cb2[5].x : 1;
  o4.xyz = sqrt(r0.xyz);
  r0.x = 0.0799999982 * r6.y;
  r0.yzw = -r6.yyy * float3(0.0799999982,0.0799999982,0.0799999982) + r1.yzw;
  r0.xyz = r6.yyy * r0.yzw + r0.xxx;
  r7.xyz = -r1.yzw * r6.yyy + r1.yzw;
  r7.xyz = r7.xyz * cb0[120].www + cb0[120].xyz;
  r0.xyz = r0.xyz * cb0[121].www + cb0[121].xyz;
  r0.xyz = r0.xyz * float3(0.449999988,0.449999988,0.449999988) + r7.xyz;
  r5.xyz = max(float3(0,0,0), r5.xyz);
  r0.w = cmp(0 < cb0[124].x);
  if (r0.w != 0) {
    r2.xyz = r3.xyz * r3.www + r2.xyz;
    r3.xyz = -cb1[8].xyz + r2.xyz;
    r7.xyz = float3(1,1,1) + cb1[9].xyz;
    r3.xyz = cmp(r7.xyz < abs(r3.xyz));
    r0.w = (int)r3.y | (int)r3.x;
    r0.w = (int)r3.z | (int)r0.w;
    r1.x = dot(r2.xyz, float3(0.577000022,0.577000022,0.577000022));
    r1.x = 0.00200000009 * r1.x;
    r1.x = frac(r1.x);
    r1.x = cmp(0.5 < r1.x);
    r2.xyz = r1.xxx ? float3(0,1,1) : float3(1,1,0);
    r5.xyz = r0.www ? r2.xyz : r5.xyz;
  }
  o0.xyz = cb0[128].xxx * r0.xyz + r5.xyz;
  r0.xyz = float3(0.0078125,0.0078125,0.0078125) * v4.xyx;
  r0.xyz = frac(r0.xyz);
  r0.xyz = r0.xyz * float3(128,128,128) + float3(-64.3406219,-72.4656219,-64.3406219);
  r0.xyz = r0.xyz * r0.xyy;
  r0.x = dot(r0.xyz, float3(20.390625,60.703125,2.42812085));
  r0.x = frac(r0.x);
  r0.x = -0.5 + r0.x;
  o1.xyz = r4.xyz * float3(0.5,0.5,0.5) + float3(0.5,0.5,0.5);
  o3.w = 0.00392156886 * r0.x;
  o0.w = 0;
  o1.w = cb1[11].x;
  o2.w = 0.760784328;
  o2.xy = r6.xy;
  o3.xyz = r1.yzw;
  o5.yzw = float3(1,1,1);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original ASM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                10   xyzw        0     NONE   float   xyz 
// TEXCOORD                11   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float       
// TEXCOORD                 0   xy          3     NONE   float   xy  
// SV_Position              0   xyzw        4      POS   float   xyzw
// SV_IsFrontFace           0   x           5    FFACE    uint   x   
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Target                0   xyzw        0   TARGET   float   xyzw
// SV_Target                1   xyzw        1   TARGET   float   xyzw
// SV_Target                2   xyzw        2   TARGET   float   xyzw
// SV_Target                3   xyzw        3   TARGET   float   xyzw
// SV_Target                4   xyzw        4   TARGET   float   xyzw
// SV_Target                5   xyzw        5   TARGET   float   xyzw
// SV_DepthLessEqual        0    N/A oDepthLE  DEPTHLE   float    YES
//
ps_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[129], immediateIndexed
dcl_constantbuffer cb1[12], immediateIndexed
dcl_constantbuffer cb2[6], immediateIndexed
dcl_constantbuffer cb3[8], immediateIndexed
dcl_constantbuffer cb4[24], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_resource_texture2d (float,float,float,float) t2
dcl_resource_texture2d (float,float,float,float) t3
dcl_input_ps linear centroid v0.xyz
dcl_input_ps linear centroid v1.xyzw
dcl_input_ps linear v3.xy
dcl_input_ps_siv linear noperspective centroid v4.xyzw, position
dcl_input_ps_sgv v5.x, is_front_face
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyzw
dcl_output o4.xyzw
dcl_output o5.xyzw
dcl_output oDepthLE
dcl_temps 9
mul r0.xyz, v0.yzxy, v1.zxyz
mad r0.xyz, v1.yzxy, v0.zxyz, -r0.xyzx
mul r0.xyz, r0.xyzx, v1.wwww
mov r0.w, v4.z
mov r1.x, l(1.000000)
mul r0.w, r0.w, v4.w
mul r2.xyzw, v4.yyyy, cb0[37].xyzw
mad r2.xyzw, v4.xxxx, cb0[36].xyzw, r2.xyzw
mad r2.xyzw, v4.zzzz, cb0[38].xyzw, r2.xyzw
add r2.xyzw, r2.xyzw, cb0[39].xyzw
div r1.yzw, r2.xxyz, r2.wwww
add r2.xyz, r1.yzwy, -cb0[58].xyzx
dp3 r2.w, -r1.yzwy, -r1.yzwy
rsq r2.w, r2.w
mul r3.xyz, -r1.yzwy, r2.wwww
mul r3.w, cb0[125].w, cb1[9].w
movc r4.x, v5.x, l(1.000000), l(-1.000000)
mul r3.w, r3.w, r4.x
sample_b_indexable(texture2d)(float,float,float,float) r4.xy, v3.xyxx, t0.xyzw, s0, cb4[17].x
mad r4.xy, r4.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r4.w, r4.xyxx, r4.xyxx
add r4.w, -r4.w, l(1.000000)
max r4.w, r4.w, l(0.000000)
sqrt r4.z, r4.w
mad r4.xyz, r4.xyzx, cb0[122].wwww, cb0[122].xyzx
mul r4.xyz, r3.wwww, r4.xyzx
dp3 r3.w, r4.xyzx, r4.xyzx
rsq r3.w, r3.w
mul r4.xyz, r3.wwww, r4.xyzx
mul r5.xyz, r0.xyzx, r4.yyyy
mad r4.xyw, r4.xxxx, v0.xyxz, r5.xyxz
mad r4.xyz, r4.zzzz, v1.xyzx, r4.xywx
dp3 r3.w, r4.xyzx, r4.xyzx
rsq r3.w, r3.w
mul r4.xyz, r3.wwww, r4.xyzx
add r5.xyz, -r2.xyzx, cb3[7].xyzx
dp3 r3.w, r5.xyzx, r5.xyzx
sqrt r3.w, r3.w
div r5.xyz, r5.xyzx, r3.wwww
dp3 r3.w, r5.xyzx, cb3[6].xyzx
add_sat r4.w, -r3.w, l(0.100000)
max r4.w, r4.w, l(0.000001)
log r4.w, r4.w
mul r4.w, r4.w, l(10.000000)
exp r4.w, r4.w
dp3 r5.x, r5.xyzx, r4.xyzx
mul r5.x, r4.w, r5.x
mul r5.yz, cb3[1].yyyy, l(0.000000, 0.500000, 0.050000, 0.000000)
add r6.xyz, r2.xyzx, -cb3[7].xyzx
dp3 r5.w, r6.xyzx, r6.xyzx
sqrt r5.w, r5.w
min r6.xy, r5.yzyy, r5.wwww
div r5.yz, r6.xxyx, r5.yyzy
add r5.y, -r5.y, l(1.000000)
max r5.y, |r5.y|, l(0.000001)
mul r5.y, r5.y, r5.y
mul r5.x, r5.y, r5.x
sample_indexable(texture2d)(float,float,float,float) r5.y, v3.xyxx, t1.yxzw, s1
mul r6.xyz, r5.yyyy, cb4[2].xyzx
mul r6.xyz, r4.wwww, r6.xyzx
mul r6.xyz, r6.xyzx, l(1.500000, 1.500000, 1.500000, 0.000000)
mov_sat r3.w, -r3.w
max r3.w, r3.w, l(0.000001)
log r3.w, r3.w
mul r3.w, r3.w, l(30.000000)
exp r3.w, r3.w
mad r7.xyz, r5.yyyy, cb4[4].xyzx, -r6.xyzx
mad r6.xyz, r3.wwww, r7.xyzx, r6.xyzx
mul r5.xyw, r5.xxxx, r6.xyxz
max r3.w, |r5.z|, l(0.000001)
mul r3.w, r3.w, r3.w
mul r3.w, r3.w, r3.w
mul r5.xyz, r3.wwww, r5.xywx
mul r5.xyz, r5.xyzx, cb3[5].yyyy
sample_b_indexable(texture2d)(float,float,float,float) r6.xy, v3.xyxx, t0.xyzw, s0, cb4[17].w
mad r6.xy, r6.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r3.w, r6.xyxx, r6.xyxx
add r3.w, -r3.w, l(1.000000)
max r3.w, r3.w, l(0.000000)
sqrt r6.z, r3.w
mul r7.xyz, r6.zxyz, l(0.000000, 0.000000, 1.000000, 0.000000)
mad r7.xyz, r6.yzxy, l(0.000000, 1.000000, 0.000000, 0.000000), -r7.xyzx
dp2 r3.w, r7.yzyy, r7.yzyy
sqrt r3.w, r3.w
div r7.xyz, r7.xyzx, r3.wwww
sample_b_indexable(texture2d)(float,float,float,float) r8.xy, v3.xyxx, t2.xyzw, s2, l(1.000000)
add r3.w, cb4[18].w, -cb4[19].x
mad r3.w, r8.x, r3.w, cb4[19].x
add r3.w, r3.w, -cb4[19].y
add r3.w, r3.w, cb4[19].z
mad r6.xyz, r3.wwww, r6.xyzx, r7.xyzx
dp3 r3.w, r6.xyzx, r6.xyzx
sqrt r3.w, r3.w
div r6.xyz, r6.xyzx, r3.wwww
mad r1.yzw, -r1.yyzw, r2.wwww, -cb0[14].xxyz
dp3 r7.x, v0.xyzx, r1.yzwy
dp3 r7.y, r0.xyzx, r1.yzwy
dp3 r7.z, v1.xyzx, r1.yzwy
add r0.xyz, r7.xyzx, l(-1.000000, -0.000000, -0.000000, 0.000000)
dp3 r1.y, r0.xyzx, r0.xyzx
sqrt r1.y, r1.y
div r0.xyz, r0.xyzx, r1.yyyy
dp3 r0.x, r6.xyzx, r0.xyzx
add_sat r0.y, r0.x, l(1.000000)
mad r0.z, r0.y, l(-2.000000), l(3.000000)
mul r0.y, r0.y, r0.y
mul r0.y, r0.y, r0.z
mad r0.x, -r0.x, r0.x, l(1.000000)
sqrt r0.x, r0.x
max r0.x, r0.x, l(0.000001)
log r0.x, r0.x
mul r0.z, r0.x, cb4[19].w
exp r0.z, r0.z
mul r0.z, r0.z, cb4[20].x
mul r0.z, r0.z, r0.y
mul r1.yzw, r0.zzzz, cb4[7].xxyz
mul r1.yzw, r8.yyyy, r1.yyzw
mul_sat r1.yzw, r1.yyzw, cb4[20].yyyy
dp3 r0.z, r4.xyzx, r3.xyzx
max r0.z, r0.z, l(0.000000)
add r0.z, -r0.z, l(1.000000)
max r0.z, |r0.z|, l(0.000001)
log r0.z, r0.z
mul r0.z, r0.z, cb4[20].z
exp r0.z, r0.z
mul r0.z, r0.z, cb4[20].w
mad r6.xyz, r1.yzwy, r0.zzzz, r0.zzzz
mad r5.xyz, r5.xyzx, cb4[5].xyzx, r6.xyzx
mad r5.xyz, r5.xyzx, cb3[5].xxxx, cb4[8].xyzx
sample_indexable(texture2d)(float,float,float,float) r6.xyzw, v3.xyxx, t3.xyzw, s3
sample_b_indexable(texture2d)(float,float,float,float) r0.z, v3.xyxx, t2.xyzw, s2, l(-1.000000)
mul_sat r0.z, r0.z, cb4[21].x
add r6.xyz, r6.xyzx, -cb4[12].xyzx
mad r6.xyz, r0.zzzz, r6.xyzx, cb4[12].xyzx
mul r0.x, r0.x, cb4[21].z
exp r0.x, r0.x
mul r0.x, r0.x, cb4[21].w
mul r0.x, r0.x, r0.y
mul r0.xyz, r0.xxxx, cb4[14].xyzx
mul r0.xyz, r6.xyzx, r0.xyzx
mad r0.xyz, cb4[21].yyyy, r6.xyzx, r0.xyzx
mad r0.xyz, r1.yzwy, l(3.000000, 3.000000, 3.000000, 0.000000), r0.xyzx
mul_sat r1.yzw, r0.xxyz, cb4[9].xxyz
sample_indexable(texture2d)(float,float,float,float) r6.xy, v3.xyxx, t2.xyzw, s2
mul r2.w, r6.y, cb4[22].x
add r3.w, -r6.x, l(1.000000)
dp2 r3.w, r3.wwww, cb4[23].zzzz
add r3.w, -r3.w, l(1.000000)
dp2 r4.w, r6.xxxx, cb4[23].yyyy
ge r5.w, r6.x, l(0.500000)
movc r3.w, r5.w, r3.w, r4.w
add r3.w, r3.w, cb4[23].w
max r3.w, r3.w, l(0.000000)
mad r1.x, r1.x, v4.w, r3.w
div oDepthLE, r0.w, r1.x
mad r0.w, r6.w, cb4[22].w, l(-0.333300)
lt r0.w, r0.w, l(0.000000)
discard_nz r0.w
mov_sat r6.xy, r2.wwww
mov_sat r0.w, cb4[22].y
mad o2.z, r0.w, cb0[123].y, cb0[123].x
mul_sat r0.xyz, r0.xyzx, cb4[16].xyzx
mad_sat r0.xyz, r0.xyzx, cb0[120].wwww, cb0[120].xyzx
mov_sat o4.w, cb4[22].z
lt r0.w, l(0.000000), cb1[11].y
movc o5.x, r0.w, cb2[5].x, l(1.000000)
sqrt o4.xyz, r0.xyzx
mul r0.x, r6.y, l(0.080000)
mad r0.yzw, -r6.yyyy, l(0.000000, 0.080000, 0.080000, 0.080000), r1.yyzw
mad r0.xyz, r6.yyyy, r0.yzwy, r0.xxxx
mad r7.xyz, -r1.yzwy, r6.yyyy, r1.yzwy
mad r7.xyz, r7.xyzx, cb0[120].wwww, cb0[120].xyzx
mad r0.xyz, r0.xyzx, cb0[121].wwww, cb0[121].xyzx
mad r0.xyz, r0.xyzx, l(0.450000, 0.450000, 0.450000, 0.000000), r7.xyzx
max r5.xyz, r5.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r0.w, l(0.000000), cb0[124].x
if_nz r0.w
  mad r2.xyz, r3.xyzx, r3.wwww, r2.xyzx
  add r3.xyz, r2.xyzx, -cb1[8].xyzx
  add r7.xyz, cb1[9].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  lt r3.xyz, r7.xyzx, |r3.xyzx|
  or r0.w, r3.y, r3.x
  or r0.w, r3.z, r0.w
  dp3 r1.x, r2.xyzx, l(0.577000, 0.577000, 0.577000, 0.000000)
  mul r1.x, r1.x, l(0.002000)
  frc r1.x, r1.x
  lt r1.x, l(0.500000), r1.x
  movc r2.xyz, r1.xxxx, l(0,1.000000,1.000000,0), l(1.000000,1.000000,0,0)
  movc r5.xyz, r0.wwww, r2.xyzx, r5.xyzx
endif 
mad o0.xyz, cb0[128].xxxx, r0.xyzx, r5.xyzx
mul r0.xyz, v4.xyxx, l(0.007813, 0.007813, 0.007813, 0.000000)
frc r0.xyz, r0.xyzx
mad r0.xyz, r0.xyzx, l(128.000000, 128.000000, 128.000000, 0.000000), l(-64.340622, -72.465622, -64.340622, 0.000000)
mul r0.xyz, r0.xyyx, r0.xyzx
dp3 r0.x, r0.xyzx, l(20.390625, 60.703125, 2.428121, 0.000000)
frc r0.x, r0.x
add r0.x, r0.x, l(-0.500000)
mad o1.xyz, r4.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
mul o3.w, r0.x, l(0.003922)
mov o0.w, l(0)
mov o1.w, cb1[11].x
mov o2.w, l(0.760784)
mov o2.xy, r6.xyxx
mov o3.xyz, r1.yzwy
mov o5.yzw, l(0,1.000000,1.000000,1.000000)
ret 
// Approximately 0 instruction slots used

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/


/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~ HLSL errors ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
error X8000: D3D11 Internal Compiler Error: Invalid Bytecode: Interpolation mode for PS input position must be linear_noperspective_centroid or linear_noperspective_sample when outputting oDepthGE or oDepthLE and not running at sample frequency (which is forced by inputting SV_SampleIndex or declaring an input linear_sample or linear_noperspective_sample). 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*/
