// Decals Swizzle oDepthLE
Texture2D<float4> t10 : register(t10);

Texture2D<float4> t9 : register(t9);

Texture2D<float4> t8 : register(t8);

Texture2D<float4> t7 : register(t7);

Texture2D<float4> t6 : register(t6);

Texture2D<float4> t5 : register(t5);

Texture2D<float4> t4 : register(t4);

Texture3D<float4> t3 : register(t3);

Texture3D<float4> t2 : register(t2);

Texture3D<float4> t1 : register(t1);

Texture3D<float4> t0 : register(t0);

SamplerState s7_s : register(s7);

SamplerState s6_s : register(s6);

SamplerState s5_s : register(s5);

SamplerState s4_s : register(s4);

SamplerState s3_s : register(s3);

SamplerState s2_s : register(s2);

SamplerState s1_s : register(s1);

SamplerState s0_s : register(s0);

cbuffer cb5 : register(b5)
{
  float4 cb5[6];
}

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

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

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

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

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




// 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,r9,r10;
  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 = cb1[37].xyzw * v4.yyyy;
  r2.xyzw = v4.xxxx * cb1[36].xyzw + r2.xyzw;
  r2.xyzw = v4.zzzz * cb1[38].xyzw + r2.xyzw;
  r2.xyzw = cb1[39].xyzw + r2.xyzw;
  r1.yzw = r2.xyz / r2.www;
  
  // Common SVPositionToTranslatedWorld fix:
float4 s = StereoParams.Load(0);
matrix TranslatedWorldToClip = MATRIX(cb1, 0);
matrix ClipToTranslatedWorld = MATRIX(cb1, 32);
float4 t = mul(r1.yzw, TranslatedWorldToClip);
t.x -= s.x * (t.w - s.y);
r1.yzw = mul(t, ClipToTranslatedWorld);
  
  r2.xyz = -cb1[58].xyz + r1.yzw;
  r3.xy = t4.Sample(s1_s, v3.xy).xy;
  r3.xy = r3.xy * float2(2,2) + float2(-1,-1);
  r2.w = dot(r3.xy, r3.xy);
  r2.w = 1 + -r2.w;
  r2.w = max(0, r2.w);
  r3.z = sqrt(r2.w);
  r4.xyzw = float4(10,10,5,5) * v3.xyxy;
  r5.xy = t5.Sample(s2_s, r4.xy).xy;
  r5.xy = r5.xy * float2(2,2) + float2(-1,-1);
  r2.w = dot(r5.xy, r5.xy);
  r2.w = 1 + -r2.w;
  r2.w = max(0, r2.w);
  r5.z = sqrt(r2.w);
  r4.xy = t6.Sample(s3_s, r4.xy).xy;
  r6.xy = r4.xy * float2(2,2) + float2(-1,-1);
  r2.w = dot(r6.xy, r6.xy);
  r2.w = 1 + -r2.w;
  r2.w = max(0, r2.w);
  r6.z = sqrt(r2.w);
  r4.xy = t7.Sample(s4_s, v3.xy).xy;
  r6.xyz = r6.xyz + -r5.xyz;
  r5.xyz = r4.yyy * r6.xyz + r5.xyz;
  r3.xyz = r5.xyz + r3.xyz;
  r2.w = dot(r3.xyz, r3.xyz);
  r2.w = sqrt(r2.w);
  r3.xyz = r3.xyz / r2.www;
  r3.xyz = r3.xyz * cb1[122].www + cb1[122].xyz;
  r2.w = dot(r3.xyz, r3.xyz);
  r2.w = rsqrt(r2.w);
  r3.xyz = r3.xyz * r2.www;
  r0.xyz = r3.yyy * r0.xyz;
  r0.xyz = r3.xxx * v0.xyz + r0.xyz;
  r0.xyz = r3.zzz * v1.xyz + r0.xyz;
  r2.w = dot(r0.xyz, r0.xyz);
  r2.w = rsqrt(r2.w);
  r3.xyz = r2.www * r0.xyz;
  r5.xyzw = t8.Sample(s5_s, v3.xy).wxyz;
  r6.xyz = float3(1,1,1) + -r5.yzw;
  r6.xyz = r6.xyz + r6.xyz;
  r0.x = t9.Sample(s6_s, r4.zw).x;
  r0.y = 1 + -r0.x;
  r6.xyz = -r6.xyz * r0.yyy + float3(1,1,1);
  r7.xyz = r5.yzw * r0.xxx;
  r7.xyz = r7.xyz + r7.xyz;
  r5.yzw = cmp(r5.yzw >= float3(0.5,0.5,0.5));
  r5.yzw = r5.yzw ? r6.xyz : r7.xyz;
  r5.yzw = saturate(cb5[3].xyz * r5.yzw);
  r0.xy = float2(1,1) + -r4.xy;
  r0.x = saturate(r0.x * r5.x);
  r6.xyzw = float4(-0.015625,-0.015625,-0.015625,-0.015625) * r2.xzyz;
  r4.x = t10.Sample(s7_s, r6.xy).x;
  r4.z = t10.Sample(s7_s, r6.zw).x;
  r4.z = r4.z + -r4.x;
  r4.x = abs(v1.x) * r4.z + r4.x;
  r4.zw = float2(-0.015625,-0.015625) * r2.xy;
  r4.z = t10.Sample(s7_s, r4.zw).x;
  r4.z = r4.z + -r4.x;
  r4.x = abs(v1.z) * r4.z + r4.x;
  r4.z = r4.x * 4 + 6;
  r6.xyz = v1.xyz * r4.zzz + r2.xyz;
  r7.xyz = -cb1[161].xyz + r6.xyz;
  r7.xyz = cb1[161].www + r7.xyz;
  r7.xyz = max(float3(0,0,0), r7.xyz);
  r8.xyz = cb1[161].xyz + cb1[161].www;
  r8.xyz = r8.xyz + -r6.xyz;
  r8.xyz = max(float3(0,0,0), r8.xyz);
  r7.xyz = min(r8.xyz, r7.xyz);
  r4.z = min(r7.y, r7.z);
  r4.z = min(r7.x, r4.z);
  r4.w = cb1[169].y * cb1[161].w;
  r4.z = cmp(r4.w < r4.z);
  if (r4.z != 0) {
    r7.xyz = r6.xyz * cb1[165].www + cb1[165].xyz;
    r4.z = t0.SampleLevel(s0_s, r7.xyz, 0).x;
  } else {
    r7.xyz = -cb1[162].xyz + r6.xyz;
    r7.xyz = cb1[162].www + r7.xyz;
    r7.xyz = max(float3(0,0,0), r7.xyz);
    r8.xyz = cb1[162].xyz + cb1[162].www;
    r8.xyz = r8.xyz + -r6.xyz;
    r8.xyz = max(float3(0,0,0), r8.xyz);
    r7.xyz = min(r8.xyz, r7.xyz);
    r4.w = min(r7.y, r7.z);
    r4.w = min(r7.x, r4.w);
    r6.w = cb1[169].y * cb1[162].w;
    r4.w = cmp(r6.w < r4.w);
    if (r4.w != 0) {
      r7.xyz = r6.xyz * cb1[166].www + cb1[166].xyz;
      r4.z = t1.SampleLevel(s0_s, r7.xyz, 0).x;
    } else {
      r7.xyz = -cb1[163].xyz + r6.xyz;
      r7.xyz = cb1[163].www + r7.xyz;
      r7.xyz = max(float3(0,0,0), r7.xyz);
      r8.xyz = cb1[163].xyz + cb1[163].www;
      r8.xyz = r8.xyz + -r6.xyz;
      r8.xyz = max(float3(0,0,0), r8.xyz);
      r7.xyz = min(r8.xyz, r7.xyz);
      r4.w = min(r7.y, r7.z);
      r4.w = min(r7.x, r4.w);
      r7.xyz = -cb1[164].xyz + r6.xyz;
      r7.xyz = cb1[164].www + r7.xyz;
      r7.xyz = max(float3(0,0,0), r7.xyz);
      r8.xyz = cb1[164].xyz + cb1[164].www;
      r8.xyz = r8.xyz + -r6.xyz;
      r8.xyz = max(float3(0,0,0), r8.xyz);
      r7.xyz = min(r8.xyz, r7.xyz);
      r6.w = min(r7.y, r7.z);
      r6.w = min(r7.x, r6.w);
      r7.x = cb1[169].y * cb1[163].w;
      r4.w = cmp(r7.x < r4.w);
      if (r4.w != 0) {
        r7.xyz = r6.xyz * cb1[167].www + cb1[167].xyz;
        r4.z = t2.SampleLevel(s0_s, r7.xyz, 0).x;
      } else {
        r4.w = cb1[169].y * cb1[164].w;
        r4.w = cmp(r4.w < r6.w);
        if (r4.w != 0) {
          r4.w = cb1[168].w * r6.w;
          r4.w = saturate(10 * r4.w);
          r6.xyz = r6.xyz * cb1[168].www + cb1[168].xyz;
          r6.x = t3.SampleLevel(s0_s, r6.xyz, 0).x;
          r6.x = -cb1[169].z + r6.x;
          r4.z = r4.w * r6.x + cb1[169].z;
        } else {
          r4.z = cb1[169].z;
        }
      }
    }
  }
  r4.z = saturate(0.175438598 * r4.z);
  r4.z = r4.y * r4.z;
  r4.z = r4.z * -0.5 + -0.199999988;
  r4.z = saturate(r5.x * r4.z + 1);
  r4.w = 1 + -r4.x;
  r4.w = r4.w + r4.w;
  r0.y = -r4.w * r0.y + 1;
  r4.w = dot(r4.xx, r4.yy);
  r4.x = cmp(r4.x >= 0.5);
  r0.y = r4.x ? r0.y : r4.w;
  r4.x = 1 + -r0.y;
  r4.w = saturate(r0.z * r2.w + 1);
  r4.x = r4.w * -r4.x + r4.x;
  r4.w = cb4[1].x + r2.z;
  r4.w = saturate(r4.w / cb4[0].w);
  r4.w = 1 + -r4.w;
  r4.w = max(9.99999997e-007, r4.w);
  r4.w = r4.w * r4.w;
  r6.x = r4.w * r4.w;
  r4.w = r6.x * r4.w;
  r4.w = r4.w * 5.98999977 + 0.00999999978;
  r0.y = max(9.99999997e-007, abs(r0.y));
  r0.y = log2(r0.y);
  r0.y = r4.w * r0.y;
  r0.y = exp2(r0.y);
  r0.y = r4.x + r0.y;
  r0.y = r6.x * -r0.y + r0.y;
  r0.y = saturate(r0.z * r2.w + -r0.y);
  r0.z = saturate(cb4[1].z);
  r0.y = r0.z * r0.y;
  r0.z = r5.x * -4 + 4;
  r2.w = -4 + -r0.z;
  r0.z = r4.y * r2.w + r0.z;
  r0.z = max(0, r0.z);
  r1.x = r1.x * v4.w + r0.z;
  //oDepthLE = r0.w / r1.x;
  r0.w = cmp(cb0[2].x != 0.000000);
  r1.x = cmp(0.00100000005 < abs(cb0[2].x));
  r0.w = r0.w ? r1.x : 0;
  r4.xy = floor(v4.xy);
  r1.x = dot(r4.xy, float2(347.834503,3343.28369));
  r1.x = cos(r1.x);
  r1.x = 1000 * r1.x;
  r1.x = frac(r1.x);
  r2.w = cmp(cb0[2].x < 0);
  r4.x = 1 + cb0[2].x;
  r4.x = cmp(r1.x < r4.x);
  r1.x = cmp(cb0[2].x < r1.x);
  r1.x = r2.w ? r4.x : r1.x;
  r1.x = cmp((int)r1.x == 0);
  r0.w = r0.w ? r1.x : 0;
  if (r0.w != 0) discard;
  r5.x = saturate(r5.x);
  o2.z = r4.z * cb1[123].y + cb1[123].x;
  r0.w = cmp(0 < cb2[11].y);
  o5.x = r0.w ? cb3[5].x : 1;
  r0.w = cmp(0 < r0.y);
  o4.x = r0.w ? cb5[5].x : 0;
  o4.yz = float2(0,0);
  o4.w = r0.w ? r0.y : 0;
  r0.y = 0.0799999982 * r0.x;
  r4.xy = (uint2)v4.xy;
  r1.x = (uint)cb1[135].x;
  r2.w = (int)r4.y + (int)r4.x;
  r1.x = (int)r1.x + (int)r2.w;
  r1.x = (int)r1.x & 1;
  r2.w = cmp(0 < cb1[139].x);
  r4.x = cmp(0 < cb1[169].w);
  r4.y = r2.w ? r4.x : 0;
  r4.z = cmp(0 != cb1[139].x);
  r6.xyz = r4.zzz ? float3(1,1,1) : r5.yzw;
  r4.zw = r1.xx ? float2(1,0) : float2(0,1);
  r1.x = r4.w * r0.y;
  r6.xyz = r4.yyy ? r4.zzz : r6.xyz;
  r1.x = r4.y ? r1.x : r0.y;
  r6.xyz = r0.www ? r6.xyz : r5.yzw;
  r0.y = r0.w ? r1.x : r0.y;
  r6.xyz = r6.xyz * cb1[120].www + cb1[120].xyz;
  r7.xyz = r0.yyy * cb1[121].www + cb1[121].xyz;
  r3.w = 1;
  r8.x = dot(cb1[151].xyzw, r3.xyzw);
  r8.y = dot(cb1[152].xyzw, r3.xyzw);
  r8.z = dot(cb1[153].xyzw, r3.xyzw);
  r9.xyzw = r3.xyzz * r3.yzzx;
  r10.x = dot(cb1[154].xyzw, r9.xyzw);
  r10.y = dot(cb1[155].xyzw, r9.xyzw);
  r10.z = dot(cb1[156].xyzw, r9.xyzw);
  r0.y = r3.y * r3.y;
  r0.y = r3.x * r3.x + -r0.y;
  r8.xyz = r10.xyz + r8.xyz;
  r8.xyz = cb1[157].xyz * r0.yyy + r8.xyz;
  r8.xyz = max(float3(0,0,0), r8.xyz);
  r8.xyz = cb1[150].xyz * r8.xyz;
  r8.xyz = r8.xyz * r6.xyz;
  r9.xyz = r8.xyz * r5.xxx;
  r6.xyz = r7.xyz * float3(0.449999988,0.449999988,0.449999988) + r6.xyz;
  r7.xyz = max(float3(0,0,0), cb5[2].xyz);
  r0.y = cmp(0 < cb1[124].x);
  if (r0.y != 0) {
    r0.y = dot(-r1.yzw, -r1.yzw);
    r0.y = rsqrt(r0.y);
    r1.xyz = -r1.yzw * r0.yyy;
    r1.xyz = r1.xyz * r0.zzz + r2.xyz;
    r2.xyz = -cb2[8].xyz + r1.xyz;
    r10.xyz = float3(1,1,1) + cb2[9].xyz;
    r2.xyz = cmp(r10.xyz < abs(r2.xyz));
    r0.y = (int)r2.y | (int)r2.x;
    r0.y = (int)r2.z | (int)r0.y;
    r0.z = dot(r1.xyz, float3(0.577000022,0.577000022,0.577000022));
    r0.z = 0.00200000009 * r0.z;
    r0.z = frac(r0.z);
    r0.z = cmp(0.5 < r0.z);
    r1.xyz = r0.zzz ? float3(0,1,1) : float3(1,1,0);
    r7.xyz = r0.yyy ? r1.xyz : r7.xyz;
  }
  r1.xyz = cb1[128].xxx * r6.xyz + r7.xyz;
  r0.y = r0.w ? r2.w : 0;
  r0.y = r4.x ? r0.y : 0;
  r2.xyz = r1.xyz * r4.www;
  r1.xyz = r0.yyy ? r2.xyz : r1.xyz;
  o0.xyz = r8.xyz * r5.xxx + r1.xyz;
  r0.y = cmp(cb1[169].w == 0.000000);
  r0.z = dot(r9.xyz, float3(0.300000012,0.589999974,0.109999999));
  r0.z = r0.y ? r0.z : 0;
  r0.z = r0.w ? r0.z : 0;
  o0.w = r0.y ? r0.z : 0;
  r1.xyz = float3(0.0078125,0.0078125,0.0078125) * v4.xyx;
  r1.xyz = frac(r1.xyz);
  r1.xyz = r1.xyz * float3(128,128,128) + float3(-64.3406219,-72.4656219,-64.3406219);
  r1.xyz = r1.xyz * r1.xyy;
  r0.y = dot(r1.xyz, float3(20.390625,60.703125,2.42812085));
  r0.y = frac(r0.y);
  r0.y = -0.5 + r0.y;
  o1.xyz = r3.xyz * float3(0.5,0.5,0.5) + float3(0.5,0.5,0.5);
  o2.w = r0.w ? 0.772549093 : 0.756862819;
  o3.w = 0.00392156886 * r0.y;
  o1.w = cb2[11].x;
  o2.x = 0;
  o2.y = r0.x;
  o3.xyz = r5.yzw;
  o5.yzw = float3(1,1,1);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.2.65 on Thu Sep 21 19:42:46 2017
//
//
// 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       
//
//
// 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[3], immediateIndexed
dcl_constantbuffer cb1[170], immediateIndexed
dcl_constantbuffer cb2[12], immediateIndexed
dcl_constantbuffer cb3[6], immediateIndexed
dcl_constantbuffer cb4[2], immediateIndexed
dcl_constantbuffer cb5[6], immediateIndexed
dcl_sampler s0, mode_default
dcl_sampler s1, mode_default
dcl_sampler s2, mode_default
dcl_sampler s3, mode_default
dcl_sampler s4, mode_default
dcl_sampler s5, mode_default
dcl_sampler s6, mode_default
dcl_sampler s7, mode_default
dcl_resource_texture3d (float,float,float,float) t0
dcl_resource_texture3d (float,float,float,float) t1
dcl_resource_texture3d (float,float,float,float) t2
dcl_resource_texture3d (float,float,float,float) t3
dcl_resource_texture2d (float,float,float,float) t4
dcl_resource_texture2d (float,float,float,float) t5
dcl_resource_texture2d (float,float,float,float) t6
dcl_resource_texture2d (float,float,float,float) t7
dcl_resource_texture2d (float,float,float,float) t8
dcl_resource_texture2d (float,float,float,float) t9
dcl_resource_texture2d (float,float,float,float) t10
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_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 11
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, cb1[37].xyzw
mad r2.xyzw, v4.xxxx, cb1[36].xyzw, r2.xyzw
mad r2.xyzw, v4.zzzz, cb1[38].xyzw, r2.xyzw
add r2.xyzw, r2.xyzw, cb1[39].xyzw
div r1.yzw, r2.xxyz, r2.wwww
add r2.xyz, r1.yzwy, -cb1[58].xyzx
sample_indexable(texture2d)(float,float,float,float) r3.xy, v3.xyxx, t4.xyzw, s1
mad r3.xy, r3.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r2.w, r3.xyxx, r3.xyxx
add r2.w, -r2.w, l(1.000000)
max r2.w, r2.w, l(0.000000)
sqrt r3.z, r2.w
mul r4.xyzw, v3.xyxy, l(10.000000, 10.000000, 5.000000, 5.000000)
sample_indexable(texture2d)(float,float,float,float) r5.xy, r4.xyxx, t5.xyzw, s2
mad r5.xy, r5.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r2.w, r5.xyxx, r5.xyxx
add r2.w, -r2.w, l(1.000000)
max r2.w, r2.w, l(0.000000)
sqrt r5.z, r2.w
sample_indexable(texture2d)(float,float,float,float) r4.xy, r4.xyxx, t6.xyzw, s3
mad r6.xy, r4.xyxx, l(2.000000, 2.000000, 0.000000, 0.000000), l(-1.000000, -1.000000, 0.000000, 0.000000)
dp2 r2.w, r6.xyxx, r6.xyxx
add r2.w, -r2.w, l(1.000000)
max r2.w, r2.w, l(0.000000)
sqrt r6.z, r2.w
sample_indexable(texture2d)(float,float,float,float) r4.xy, v3.xyxx, t7.xyzw, s4
add r6.xyz, -r5.xyzx, r6.xyzx
mad r5.xyz, r4.yyyy, r6.xyzx, r5.xyzx
add r3.xyz, r3.xyzx, r5.xyzx
dp3 r2.w, r3.xyzx, r3.xyzx
sqrt r2.w, r2.w
div r3.xyz, r3.xyzx, r2.wwww
mad r3.xyz, r3.xyzx, cb1[122].wwww, cb1[122].xyzx
dp3 r2.w, r3.xyzx, r3.xyzx
rsq r2.w, r2.w
mul r3.xyz, r2.wwww, r3.xyzx
mul r0.xyz, r0.xyzx, r3.yyyy
mad r0.xyz, r3.xxxx, v0.xyzx, r0.xyzx
mad r0.xyz, r3.zzzz, v1.xyzx, r0.xyzx
dp3 r2.w, r0.xyzx, r0.xyzx
rsq r2.w, r2.w
mul r3.xyz, r0.xyzx, r2.wwww
sample_indexable(texture2d)(float,float,float,float) r5.xyzw, v3.xyxx, t8.wxyz, s5
add r6.xyz, -r5.yzwy, l(1.000000, 1.000000, 1.000000, 0.000000)
add r6.xyz, r6.xyzx, r6.xyzx
sample_indexable(texture2d)(float,float,float,float) r0.x, r4.zwzz, t9.xyzw, s6
add r0.y, -r0.x, l(1.000000)
mad r6.xyz, -r6.xyzx, r0.yyyy, l(1.000000, 1.000000, 1.000000, 0.000000)
mul r7.xyz, r0.xxxx, r5.yzwy
add r7.xyz, r7.xyzx, r7.xyzx
ge r5.yzw, r5.yyzw, l(0.000000, 0.500000, 0.500000, 0.500000)
movc r5.yzw, r5.yyzw, r6.xxyz, r7.xxyz
mul_sat r5.yzw, r5.yyzw, cb5[3].xxyz
add r0.xy, -r4.xyxx, l(1.000000, 1.000000, 0.000000, 0.000000)
mul_sat r0.x, r5.x, r0.x
mul r6.xyzw, r2.xzyz, l(-0.015625, -0.015625, -0.015625, -0.015625)
sample_indexable(texture2d)(float,float,float,float) r4.x, r6.xyxx, t10.xyzw, s7
sample_indexable(texture2d)(float,float,float,float) r4.z, r6.zwzz, t10.yzxw, s7
add r4.z, -r4.x, r4.z
mad r4.x, |v1.x|, r4.z, r4.x
mul r4.zw, r2.xxxy, l(0.000000, 0.000000, -0.015625, -0.015625)
sample_indexable(texture2d)(float,float,float,float) r4.z, r4.zwzz, t10.yzxw, s7
add r4.z, -r4.x, r4.z
mad r4.x, |v1.z|, r4.z, r4.x
mad r4.z, r4.x, l(4.000000), l(6.000000)
mad r6.xyz, v1.xyzx, r4.zzzz, r2.xyzx
add r7.xyz, r6.xyzx, -cb1[161].xyzx
add r7.xyz, r7.xyzx, cb1[161].wwww
max r7.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
add r8.xyz, cb1[161].wwww, cb1[161].xyzx
add r8.xyz, -r6.xyzx, r8.xyzx
max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
min r7.xyz, r7.xyzx, r8.xyzx
min r4.z, r7.z, r7.y
min r4.z, r4.z, r7.x
mul r4.w, cb1[161].w, cb1[169].y
lt r4.z, r4.w, r4.z
if_nz r4.z
  mad r7.xyz, r6.xyzx, cb1[165].wwww, cb1[165].xyzx
  sample_l_indexable(texture3d)(float,float,float,float) r4.z, r7.xyzx, t0.yzxw, s0, l(0.000000)
else 
  add r7.xyz, r6.xyzx, -cb1[162].xyzx
  add r7.xyz, r7.xyzx, cb1[162].wwww
  max r7.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  add r8.xyz, cb1[162].wwww, cb1[162].xyzx
  add r8.xyz, -r6.xyzx, r8.xyzx
  max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
  min r7.xyz, r7.xyzx, r8.xyzx
  min r4.w, r7.z, r7.y
  min r4.w, r4.w, r7.x
  mul r6.w, cb1[162].w, cb1[169].y
  lt r4.w, r6.w, r4.w
  if_nz r4.w
    mad r7.xyz, r6.xyzx, cb1[166].wwww, cb1[166].xyzx
    sample_l_indexable(texture3d)(float,float,float,float) r4.z, r7.xyzx, t1.yzxw, s0, l(0.000000)
  else 
    add r7.xyz, r6.xyzx, -cb1[163].xyzx
    add r7.xyz, r7.xyzx, cb1[163].wwww
    max r7.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
    add r8.xyz, cb1[163].wwww, cb1[163].xyzx
    add r8.xyz, -r6.xyzx, r8.xyzx
    max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
    min r7.xyz, r7.xyzx, r8.xyzx
    min r4.w, r7.z, r7.y
    min r4.w, r4.w, r7.x
    add r7.xyz, r6.xyzx, -cb1[164].xyzx
    add r7.xyz, r7.xyzx, cb1[164].wwww
    max r7.xyz, r7.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
    add r8.xyz, cb1[164].wwww, cb1[164].xyzx
    add r8.xyz, -r6.xyzx, r8.xyzx
    max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
    min r7.xyz, r7.xyzx, r8.xyzx
    min r6.w, r7.z, r7.y
    min r6.w, r6.w, r7.x
    mul r7.x, cb1[163].w, cb1[169].y
    lt r4.w, r7.x, r4.w
    if_nz r4.w
      mad r7.xyz, r6.xyzx, cb1[167].wwww, cb1[167].xyzx
      sample_l_indexable(texture3d)(float,float,float,float) r4.z, r7.xyzx, t2.yzxw, s0, l(0.000000)
    else 
      mul r4.w, cb1[164].w, cb1[169].y
      lt r4.w, r4.w, r6.w
      if_nz r4.w
        mul r4.w, r6.w, cb1[168].w
        mul_sat r4.w, r4.w, l(10.000000)
        mad r6.xyz, r6.xyzx, cb1[168].wwww, cb1[168].xyzx
        sample_l_indexable(texture3d)(float,float,float,float) r6.x, r6.xyzx, t3.xyzw, s0, l(0.000000)
        add r6.x, r6.x, -cb1[169].z
        mad r4.z, r4.w, r6.x, cb1[169].z
      else 
        mov r4.z, cb1[169].z
      endif 
    endif 
  endif 
endif 
mul_sat r4.z, r4.z, l(0.175438598)
mul r4.z, r4.z, r4.y
mad r4.z, r4.z, l(-0.500000), l(-0.199999988)
mad_sat r4.z, r5.x, r4.z, l(1.000000)
add r4.w, -r4.x, l(1.000000)
add r4.w, r4.w, r4.w
mad r0.y, -r4.w, r0.y, l(1.000000)
dp2 r4.w, r4.xxxx, r4.yyyy
ge r4.x, r4.x, l(0.500000)
movc r0.y, r4.x, r0.y, r4.w
add r4.x, -r0.y, l(1.000000)
mad_sat r4.w, r0.z, r2.w, l(1.000000)
mad r4.x, r4.w, -r4.x, r4.x
add r4.w, r2.z, cb4[1].x
div_sat r4.w, r4.w, cb4[0].w
add r4.w, -r4.w, l(1.000000)
max r4.w, r4.w, l(0.000001)
mul r4.w, r4.w, r4.w
mul r6.x, r4.w, r4.w
mul r4.w, r4.w, r6.x
mad r4.w, r4.w, l(5.990000), l(0.010000)
max r0.y, |r0.y|, l(0.000001)
log r0.y, r0.y
mul r0.y, r0.y, r4.w
exp r0.y, r0.y
add r0.y, r0.y, r4.x
mad r0.y, r6.x, -r0.y, r0.y
mad_sat r0.y, r0.z, r2.w, -r0.y
mov_sat r0.z, cb4[1].z
mul r0.y, r0.y, r0.z
mad r0.z, r5.x, l(-4.000000), l(4.000000)
add r2.w, -r0.z, l(-4.000000)
mad r0.z, r4.y, r2.w, r0.z
max r0.z, r0.z, l(0.000000)
mad r1.x, r1.x, v4.w, r0.z
div oDepthLE, r0.w, r1.x
ne r0.w, cb0[2].x, l(0.000000)
lt r1.x, l(0.001000), |cb0[2].x|
and r0.w, r0.w, r1.x
round_ni r4.xy, v4.xyxx
dp2 r1.x, r4.xyxx, l(347.834503, 3343.283691, 0.000000, 0.000000)
sincos null, r1.x, r1.x
mul r1.x, r1.x, l(1000.000000)
frc r1.x, r1.x
lt r2.w, cb0[2].x, l(0.000000)
add r4.x, cb0[2].x, l(1.000000)
lt r4.x, r1.x, r4.x
lt r1.x, cb0[2].x, r1.x
movc r1.x, r2.w, r4.x, r1.x
ieq r1.x, r1.x, l(0)
and r0.w, r0.w, r1.x
discard_nz r0.w
mov_sat r5.x, r5.x
mad o2.z, r4.z, cb1[123].y, cb1[123].x
lt r0.w, l(0.000000), cb2[11].y
movc o5.x, r0.w, cb3[5].x, l(1.000000)
lt r0.w, l(0.000000), r0.y
and o4.x, r0.w, cb5[5].x
mov o4.yz, l(0,0,0,0)
and o4.w, r0.y, r0.w
mul r0.y, r0.x, l(0.080000)
ftou r4.xy, v4.xyxx
ftou r1.x, cb1[135].x
iadd r2.w, r4.y, r4.x
iadd r1.x, r1.x, r2.w
and r1.x, r1.x, l(1)
lt r2.w, l(0.000000), cb1[139].x
lt r4.x, l(0.000000), cb1[169].w
and r4.y, r2.w, r4.x
ne r4.z, l(0.000000, 0.000000, 0.000000, 0.000000), cb1[139].x
movc r6.xyz, r4.zzzz, l(1.000000,1.000000,1.000000,0), r5.yzwy
movc r4.zw, r1.xxxx, l(0,0,1.000000,0), l(0,0,0,1.000000)
mul r1.x, r0.y, r4.w
movc r6.xyz, r4.yyyy, r4.zzzz, r6.xyzx
movc r1.x, r4.y, r1.x, r0.y
movc r6.xyz, r0.wwww, r6.xyzx, r5.yzwy
movc r0.y, r0.w, r1.x, r0.y
mad r6.xyz, r6.xyzx, cb1[120].wwww, cb1[120].xyzx
mad r7.xyz, r0.yyyy, cb1[121].wwww, cb1[121].xyzx
mov r3.w, l(1.000000)
dp4 r8.x, cb1[151].xyzw, r3.xyzw
dp4 r8.y, cb1[152].xyzw, r3.xyzw
dp4 r8.z, cb1[153].xyzw, r3.xyzw
mul r9.xyzw, r3.yzzx, r3.xyzz
dp4 r10.x, cb1[154].xyzw, r9.xyzw
dp4 r10.y, cb1[155].xyzw, r9.xyzw
dp4 r10.z, cb1[156].xyzw, r9.xyzw
mul r0.y, r3.y, r3.y
mad r0.y, r3.x, r3.x, -r0.y
add r8.xyz, r8.xyzx, r10.xyzx
mad r8.xyz, cb1[157].xyzx, r0.yyyy, r8.xyzx
max r8.xyz, r8.xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
mul r8.xyz, r8.xyzx, cb1[150].xyzx
mul r8.xyz, r6.xyzx, r8.xyzx
mul r9.xyz, r5.xxxx, r8.xyzx
mad r6.xyz, r7.xyzx, l(0.450000, 0.450000, 0.450000, 0.000000), r6.xyzx
max r7.xyz, cb5[2].xyzx, l(0.000000, 0.000000, 0.000000, 0.000000)
lt r0.y, l(0.000000), cb1[124].x
if_nz r0.y
  dp3 r0.y, -r1.yzwy, -r1.yzwy
  rsq r0.y, r0.y
  mul r1.xyz, r0.yyyy, -r1.yzwy
  mad r1.xyz, r1.xyzx, r0.zzzz, r2.xyzx
  add r2.xyz, r1.xyzx, -cb2[8].xyzx
  add r10.xyz, cb2[9].xyzx, l(1.000000, 1.000000, 1.000000, 0.000000)
  lt r2.xyz, r10.xyzx, |r2.xyzx|
  or r0.y, r2.y, r2.x
  or r0.y, r2.z, r0.y
  dp3 r0.z, r1.xyzx, l(0.577000, 0.577000, 0.577000, 0.000000)
  mul r0.z, r0.z, l(0.002000)
  frc r0.z, r0.z
  lt r0.z, l(0.500000), r0.z
  movc r1.xyz, r0.zzzz, l(0,1.000000,1.000000,0), l(1.000000,1.000000,0,0)
  movc r7.xyz, r0.yyyy, r1.xyzx, r7.xyzx
endif 
mad r1.xyz, cb1[128].xxxx, r6.xyzx, r7.xyzx
and r0.y, r0.w, r2.w
and r0.y, r4.x, r0.y
mul r2.xyz, r4.wwww, r1.xyzx
movc r1.xyz, r0.yyyy, r2.xyzx, r1.xyzx
mad o0.xyz, r8.xyzx, r5.xxxx, r1.xyzx
eq r0.y, cb1[169].w, l(0.000000)
dp3 r0.z, r9.xyzx, l(0.300000, 0.590000, 0.110000, 0.000000)
and r0.z, r0.z, r0.y
and r0.z, r0.z, r0.w
and o0.w, r0.z, r0.y
mul r1.xyz, v4.xyxx, l(0.00781250000, 0.00781250000, 0.00781250000, 0.000000)
frc r1.xyz, r1.xyzx
mad r1.xyz, r1.xyzx, l(128.000000, 128.000000, 128.000000, 0.000000), l(-64.340622, -72.465622, -64.340622, 0.000000)
mul r1.xyz, r1.xyyx, r1.xyzx
dp3 r0.y, r1.xyzx, l(20.390625, 60.703125, 2.42812085, 0.000000)
frc r0.y, r0.y
add r0.y, r0.y, l(-0.500000)
mad o1.xyz, r3.xyzx, l(0.500000, 0.500000, 0.500000, 0.000000), l(0.500000, 0.500000, 0.500000, 0.000000)
movc o2.w, r0.w, l(0.772549093), l(0.756862819)
mul o3.w, r0.y, l(0.00392156886)
mov o1.w, cb2[11].x
mov o2.x, l(0)
mov o2.y, r0.x
mov o3.xyz, r5.yzwy
mov o5.yzw, l(0,1.000000,1.000000,1.000000)
ret 
// Approximately 0 instruction slots used

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