//Eyes haloing VS.
// ---- Created with 3Dmigoto v1.3.16 on Sun May 30 01:05:07 2021
//Buffer<float4> t6 : register(t6);
//
//struct t5_t {
//  float val[4];
//};
//StructuredBuffer<t5_t> t5 : register(t5);
//
//Texture3D<float4> t4 : register(t4);
//
//Texture3D<float4> t3 : register(t3);
//
//Texture2D<float4> t2 : register(t2);
//
//Texture2D<float4> t1 : register(t1);
//
//Texture2D<float4> t0 : register(t0);
//
//SamplerState s0_s : register(s0);
//
//cbuffer cb5 : register(b5)
//{
//  float4 cb5[18];
//}
//
//cbuffer cb4 : register(b4)
//{
//  float4 cb4[13];
//}
//
//cbuffer cb3 : register(b3)
//{
//  float4 cb3[60];
//}
//
//cbuffer cb2 : register(b2)
//{
//  float4 cb2[45];
//}
//
//cbuffer cb1 : register(b1)
//{
//  float4 cb1[57];
//}
//
//cbuffer cb0 : register(b0)
//{
//  float4 cb0[4];
//}
//
//
//
//
//// 3Dmigoto declarations
//#define cmp -
//Texture1D<float4> IniParams : register(t120);
//Texture2D<float4> StereoParams : register(t125);
//
//
//void main(
//  float4 v0 : ATTRIBUTE0,
//  float3 v1 : ATTRIBUTE1,
//  float4 v2 : ATTRIBUTE2,
//  uint4 v3 : ATTRIBUTE3,
//  uint4 v4 : ATTRIBUTE14,
//  float4 v5 : ATTRIBUTE4,
//  float4 v6 : ATTRIBUTE15,
//  float2 v7 : ATTRIBUTE5,
//  float4 v8 : ATTRIBUTE13,
//  out float4 o0 : TEXCOORD10,
//  out float4 o1 : TEXCOORD11,
//  out float4 o2 : COLOR0,
//  out float4 o3 : TEXCOORD0,
//  out uint4 o4 : TEXCOORD12,
//  out float4 o5 : TEXCOORD7,
//  out float4 o6 : TEXCOORD8,
//  out float4 o7 : TEXCOORD9,
//  out float4 o8 : SV_POSITION0)
//{
//  float4 r0,r1,r2,r3,r4,r5,r6,r7,r8,r11;
//  uint4 bitmask, uiDest;
//  float4 fDest;
//  
//  float4 stereo = StereoParams.Load(0);
//  
//  r0.xyz = v0.xyz * cb0[1].xyz + cb0[0].xyz;
//  r1.xyzw = (int4)v3.xyzw * int4(3,3,3,3);
//  r2.xyzw = t6.Load(r1.x).xyzw;
//  r3.xyzw = mad((int4)v3.xxyy, int4(3,3,3,3), int4(1,2,1,2));
//  r4.xyzw = t6.Load(r3.x).xyzw;
//  r5.xyzw = t6.Load(r3.y).xyzw;
//  r6.xyzw = t6.Load(r1.y).xyzw;
//  r7.xyzw = t6.Load(r3.z).xyzw;
//  r3.xyzw = t6.Load(r3.w).xyzw;
//  r6.xyzw = v5.yyyy * r6.xyzw;
//  r7.xyzw = v5.yyyy * r7.xyzw;
//  r3.xyzw = v5.yyyy * r3.xyzw;
//  r2.xyzw = v5.xxxx * r2.xyzw + r6.xyzw;
//  r4.xyzw = v5.xxxx * r4.xyzw + r7.xyzw;
//  r3.xyzw = v5.xxxx * r5.xyzw + r3.xyzw;
//  r5.xyzw = t6.Load(r1.z).xyzw;
//  r6.xyzw = mad((int4)v3.zzww, int4(3,3,3,3), int4(1,2,1,2));
//  r7.xyzw = t6.Load(r6.x).xyzw;
//  r8.xyzw = t6.Load(r6.y).xyzw;
//  r2.xyzw = v5.zzzz * r5.xyzw + r2.xyzw;
//  r4.xyzw = v5.zzzz * r7.xyzw + r4.xyzw;
//  r3.xyzw = v5.zzzz * r8.xyzw + r3.xyzw;
//  r1.xyzw = t6.Load(r1.w).xyzw;
//  r5.xyzw = t6.Load(r6.z).xyzw;
//  r6.xyzw = t6.Load(r6.w).xyzw;
//  r1.xyzw = v5.wwww * r1.xyzw + r2.xyzw;
//  r2.xyzw = v5.wwww * r5.xyzw + r4.xyzw;
//  r3.xyzw = v5.wwww * r6.xyzw + r3.xyzw;
//  r4.xyzw = (int4)v4.xyzw * int4(3,3,3,3);
//  r5.xyzw = t6.Load(r4.x).xyzw;
//  r6.xyzw = mad((int4)v4.xxyy, int4(3,3,3,3), int4(1,2,1,2));
//  r7.xyzw = t6.Load(r6.x).xyzw;
//  r8.xyzw = t6.Load(r6.y).xyzw;
//  r1.xyzw = v6.xxxx * r5.xyzw + r1.xyzw;
//  r2.xyzw = v6.xxxx * r7.xyzw + r2.xyzw;
//  r3.xyzw = v6.xxxx * r8.xyzw + r3.xyzw;
//  r5.xyzw = t6.Load(r4.y).xyzw;
//  r7.xyzw = t6.Load(r6.z).xyzw;
//  r6.xyzw = t6.Load(r6.w).xyzw;
//  r1.xyzw = v6.yyyy * r5.xyzw + r1.xyzw;
//  r2.xyzw = v6.yyyy * r7.xyzw + r2.xyzw;
//  r3.xyzw = v6.yyyy * r6.xyzw + r3.xyzw;
//  r5.xyzw = t6.Load(r4.z).xyzw;
//  r6.xyzw = mad((int4)v4.zzww, int4(3,3,3,3), int4(1,2,1,2));
//  r7.xyzw = t6.Load(r6.x).xyzw;
//  r8.xyzw = t6.Load(r6.y).xyzw;
//  r1.xyzw = v6.zzzz * r5.xyzw + r1.xyzw;
//  r2.xyzw = v6.zzzz * r7.xyzw + r2.xyzw;
//  r3.xyzw = v6.zzzz * r8.xyzw + r3.xyzw;
//  r4.xyzw = t6.Load(r4.w).xyzw;
//  r5.xyzw = t6.Load(r6.z).xyzw;
//  r6.xyzw = t6.Load(r6.w).xyzw;
//  r1.xyzw = v6.wwww * r4.xyzw + r1.xyzw;
//  r2.xyzw = v6.wwww * r5.xyzw + r2.xyzw;
//  r3.xyzw = v6.wwww * r6.xyzw + r3.xyzw;
//  r4.xyzw = v2.xyzw * float4(2,2,2,2) + float4(-1,-1,-1,-1);
//  r5.xyz = v1.xyz * float3(2,2,2) + float3(-1,-1,-1);
//  r5.w = dot(r1.xyz, r5.xyz);
//  r6.x = dot(r2.xyz, r5.xyz);
//  r5.x = dot(r3.xyz, r5.xyz);
//  r5.y = dot(r1.xyz, r4.xyz);
//  r5.z = dot(r2.xyz, r4.xyz);
//  r4.x = dot(r3.xyz, r4.xyz);
//  r4.y = cmp(0 < v8.z);
//  r6.yz = cmp(v8.zz < float2(1,0.5));
//  r4.y = r4.y ? r6.y : 0;
//  r4.z = 1 + -v8.z;
//  r4.z = r6.z ? r4.z : v8.z;
//  r4.z = 32 * r4.z;
//  r4.z = (uint)r4.z;
//  r4.z = 1 << (int)r4.z;
//  r6.yw = (int2)r4.zz & asint(cb0[2].zy);
//  r4.z = cmp(0 >= (uint)r6.y);
//  r6.y = cmp((int)r6.w == 0);
//  r6.w = ~(int)r6.y;
//  r6.y = r6.z ? r6.w : r6.y;
//  r6.z = asint(cb0[2].w) & 1;
//  r6.z = cmp(0 < (uint)r6.z);
//  r6.w = ~(int)r6.y;
//  r6.y = r6.z ? r6.w : r6.y;
//  r4.z = r4.z ? r6.y : 0;
//  r4.z = cmp((int)r4.z == 0);
//  r4.y = r4.z ? r4.y : 0;
//  r0.w = 1;
//  r1.x = dot(r1.xyzw, r0.xyzw);
//  r1.y = dot(r2.xyzw, r0.xyzw);
//  r0.w = dot(r3.xyzw, r0.xyzw);
//  r1.yzw = cb4[1].xyz * r1.yyy;
//  r1.xyz = cb4[0].xyz * r1.xxx + r1.yzw;
//  r1.xyz = cb4[2].xyz * r0.www + r1.xyz;
//  r2.xyz = cb4[3].xyz + cb1[56].xyz;
//  r1.xyz = r2.xyz + r1.xyz;
//  r1.w = 1;
//  r1.xyzw = r4.yyyy ? float4(0,0,0,0) : r1.xyzw;
//  r2.xyz = cb4[1].xyz * r5.zzz;
//  r2.xyz = r5.yyy * cb4[0].xyz + r2.xyz;
//  r2.xyz = r4.xxx * cb4[2].xyz + r2.xyz;
//  r3.zw = float2(0,0);
//  r0.w = 0;
//  while (true) {
//    r2.w = cmp((uint)r0.w >= asuint(cb0[1].w));
//    if (r2.w != 0) break;
//    r2.w = asint(cb0[2].x) + (int)r0.w;
//    r7.x = t5[r2.w].val[0/4];
//    r7.y = t5[r2.w].val[0/4+1];
//    r7.z = t5[r2.w].val[0/4+2];
//    r7.w = t5[r2.w].val[0/4+3];
//    r2.w = (int)r7.w & 0x0000ffff;
//    r2.w = f16tof32(r2.w);
//    r4.y = cmp(r2.w < 0);
//    r2.w = max(0.00100000005, abs(r2.w));
//    r4.z = (uint)r7.w >> 16;
//    r4.z = f16tof32(r4.z);
//    r4.z = saturate(r4.z);
//    r6.yzw = r7.xyz + -r0.xyz;
//    r6.y = dot(r6.yzw, r6.yzw);
//    r6.y = sqrt(r6.y);
//    r6.y = min(r6.y, r2.w);
//    r6.y = -r6.y + r2.w;
//    r2.w = r6.y / r2.w;
//    r2.w = r2.w * r2.w;
//    r2.w = saturate(r2.w * r4.z);
//    r3.xy = r3.wz + r2.ww;
//    r3.zw = r4.yy ? r3.zx : r3.yw;
//    r0.w = (int)r0.w + 1;
//  }
//  o2.xy = saturate(r3.zw);
//  r0.x = 1 + -abs(cb5[12].z);
//  r0.x = sqrt(r0.x);
//  r0.y = abs(cb5[12].z) * -0.0187292993 + 0.0742610022;
//  r0.y = r0.y * abs(cb5[12].z) + -0.212114394;
//  r0.y = r0.y * abs(cb5[12].z) + 1.57072878;
//  r0.z = r0.y * r0.x;
//  r0.z = r0.z * -2 + 3.14159274;
//  r0.w = cmp(cb5[12].z < -cb5[12].z);
//  r0.z = r0.w ? r0.z : 0;
//  r0.x = r0.y * r0.x + r0.z;
//  r0.x = 1.57079637 + -r0.x;
//  r0.x = cos(r0.x);
//  r0.y = dot(cb5[2].xyz, cb5[2].xyz);
//  r0.y = rsqrt(r0.y);
//  r0.yzw = cb5[2].xyz * r0.yyy;
//  r3.xy = float2(6.28318548,3.14159274) * v7.xy;
//  sincos(r3.x, r7.x, r3.x);
//  r7.y = r3.x;
//  sincos(r3.y, r3.x, r8.x);
//  r3.xy = -r7.xy * r3.xx;
//  r3.z = r8.x;
//  r2.w = dot(r3.xyz, r3.xyz);
//  r2.w = rsqrt(r2.w);
//  r3.xyz = r3.xyz * r2.www;
//  r0.y = dot(r3.xyz, r0.yzw);
//  r0.x = r0.y + -r0.x;
//  r0.z = 1 / cb5[13].y;
//  r0.x = saturate(r0.x + -r0.z);
//  r0.y = max(9.99999975e-006, r0.y);
//  r0.x = r0.x / r0.y;
//  r0.y = dot(cb4[0].xyz, cb4[0].xyz);
//  r0.y = sqrt(r0.y);
//  r0.y = cb5[17].y * r0.y;
//  r0.y = cb5[17].z * r0.y;
//  r0.yzw = r2.xyz * r0.yyy;
//  r0.xyz = r0.xxx * r0.yzw + r1.xyz;
//  r2.xyzw = cb1[1].xyzw * r0.yyyy;
//  r2.xyzw = r0.xxxx * cb1[0].xyzw + r2.xyzw;
//  r2.xyzw = r0.zzzz * cb1[2].xyzw + r2.xyzw;
//  r1.xyzw = r1.wwww * cb1[3].xyzw + r2.xyzw;
//  r0.w = 1 + r1.z;
//  r2.z = min(r0.w, r1.w);
//  r3.xyz = cb4[12].xxx * cb4[0].xyz;
//  r6.yzw = cb4[12].yyy * cb4[1].xyz;
//  r7.xyz = cb4[12].zzz * cb4[2].xyz;
//  r8.xyz = r6.xxx * r6.yzw;
//  r8.xyz = r5.www * r3.xyz + r8.xyz;
//  o0.xyz = r5.xxx * r7.xyz + r8.xyz;
//  r5.xzw = r6.yzw * r5.zzz;
//  r3.xyz = r5.yyy * r3.xyz + r5.xzw;
//  o1.xyz = r4.xxx * r7.xyz + r3.xyz;
//  o1.w = cb4[9].w * r4.w;
//  r0.w = dot(r0.xyz, r0.xyz);
//  r0.w = sqrt(r0.w);
//  r2.w = r0.w * cb3[59].w + 1;
//  r2.w = cb3[59].z / r2.w;
//  r2.w = -cb3[59].z + r2.w;
//  r2.w = saturate(1 + r2.w);
//  r3.x = 9.99999975e-006 * r0.w;
//  r3.y = r0.w * 9.99999975e-006 + -cb2[44].y;
//  r3.z = cb3[47].x * r3.y;
//  r3.w = cmp(0 >= r3.z);
//  if (r3.w != 0) {
//    r4.xyz = float3(0,0,0);
//    r4.w = r2.w;
//  }
//  if (r3.w == 0) {
//    r0.w = r0.z / r0.w;
//    r3.w = r0.z * 9.99999975e-006 + cb3[52].z;
//    r3.w = -cb3[46].z + r3.w;
//    r5.x = cb3[47].y * r3.w;
//    r3.w = r3.w * cb3[47].y + -cb3[52].x;
//    r3.w = cmp(9.99999975e-006 < abs(r3.w));
//    r5.y = 9.99999975e-006 + cb3[52].x;
//    r3.w = r3.w ? r5.x : r5.y;
//    r5.x = exp2(-r3.w);
//    r3.w = -cb3[52].x + r3.w;
//    r5.x = cb3[52].y + -r5.x;
//    r3.w = abs(r5.x) / abs(r3.w);
//    r3.z = r3.z * r3.z;
//    r3.y = r3.y * cb3[47].x + -r3.z;
//    r3.y = cb3[51].w * r3.y + r3.z;
//    r3.z = -r3.y * r3.w;
//    r3.z = exp2(r3.z);
//    r3.y = cb3[48].x * -r3.y;
//    r3.y = exp2(r3.y);
//    r3.w = r3.z * r2.w;
//    r2.w = -r3.z * r2.w + r2.w;
//    r3.z = min(abs(r0.x), abs(r0.y));
//    r5.x = max(abs(r0.x), abs(r0.y));
//    r5.x = 1 / r5.x;
//    r3.z = r5.x * r3.z;
//    r5.x = r3.z * r3.z;
//    r5.y = r5.x * 0.0208350997 + -0.0851330012;
//    r5.y = r5.x * r5.y + 0.180141002;
//    r5.y = r5.x * r5.y + -0.330299497;
//    r5.x = r5.x * r5.y + 0.999866009;
//    r5.y = r5.x * r3.z;
//    r5.z = cmp(abs(r0.y) < abs(r0.x));
//    r5.y = r5.y * -2 + 1.57079637;
//    r5.y = r5.z ? r5.y : 0;
//    r3.z = r3.z * r5.x + r5.y;
//    r5.x = cmp(-r0.y < r0.y);
//    r5.x = r5.x ? -3.141593 : 0;
//    r3.z = r5.x + r3.z;
//    r5.x = min(r0.x, -r0.y);
//    r5.y = max(r0.x, -r0.y);
//    r5.x = cmp(r5.x < -r5.x);
//    r5.y = cmp(r5.y >= -r5.y);
//    r5.x = r5.y ? r5.x : 0;
//    r3.z = r5.x ? -r3.z : r3.z;
//    r5.x = r3.z * -0.159154937 + 0.5;
//    r3.z = 1 + -abs(r0.w);
//    r3.z = sqrt(r3.z);
//    r5.z = abs(r0.w) * -0.0187292993 + 0.0742610022;
//    r5.z = r5.z * abs(r0.w) + -0.212114394;
//    r5.z = r5.z * abs(r0.w) + 1.57072878;
//    r5.w = r5.z * r3.z;
//    r5.w = r5.w * -2 + 3.14159274;
//    r0.w = cmp(-r0.w < r0.w);
//    r0.w = r0.w ? r5.w : 0;
//    r0.w = r5.z * r3.z + r0.w;
//    r0.w = 1.57079637 + -r0.w;
//    r5.y = r0.w * 0.318309873 + 0.5;
//    r0.w = -cb3[52].w * r3.x;
//    r0.w = exp2(r0.w);
//    r0.w = r0.w * cb3[59].y + cb3[59].x;
//    r5.xyz = t0.SampleLevel(s0_s, r5.xy, r0.w).xyz;
//    r5.xyz = cb2[43].www * r5.xyz;
//    r0.w = log2(r3.w);
//    r3.x = 1 + -r3.y;
//    r3.x = r3.x * r3.w;
//    r6.x = cb3[31].w * r3.x;
//    r6.y = cb3[32].w * r3.x;
//    r6.z = cb3[33].w * r3.x;
//    r5.xyz = r5.xyz * r2.www + r6.xyz;
//    r4.w = r3.w * r3.y;
//    r3.xyz = cb3[51].xyz * r0.www;
//    r3.xyz = exp2(r3.xyz);
//    r4.xyz = r5.xyz * r3.xyz;
//  }
//  r3.xyz = cb2[43].yyy * r4.xyz;
//  r0.w = cmp(cb2[13].w != 0.000000);
//  
//  r11.xyzw=r1.xyzw;
//  r11.x+=stereo.x*(r11.w-stereo.y);
//  
//  if (r0.w != 0) {
//    r2.xy = r11.xy;
//    r2.xyw = r2.xyz / r1.www;
//    r2.xy = r2.xy * float2(0.5,-0.5) + float2(0.5,0.5);
//    r0.w = cmp(cb2[13].z < r2.w);
//    r5.xyzw = r0.wwww ? cb2[11].xyzw : cb2[12].xyzw;
//    r4.xy = -r5.zw * float2(0.5,0.5) + float2(1,1);
//    r2.xy = max(float2(0,0), r2.xy);
//    r2.xy = min(r2.xy, r4.xy);
//    r2.xy = r2.xy * r5.xy;
//    r2.xy = floor(r2.xy);
//    r5.xy = (int2)r2.xy;
//    r5.w = 0;
//    r2.x = t1.Load(r5.xyw).x;
//    r2.y = t2.Load(r5.xyw).x;
//    r2.y = r0.w ? r2.x : r2.y;
//    r2.w = cmp(r2.w < r2.y);
//    r2.y = r2.w ? 0 : r2.y;
//    r2.x = r0.w ? r2.x : r2.y;
//    r2.x = max(cb2[13].w, r2.x);
//    r2.y = max(cb2[13].z, r2.x);
//    r2.x = r0.w ? r2.y : r2.x;
//    r2.x = r2.x * cb1[51].z + -cb1[51].w;
//    r2.y = r2.x * r1.w;
//    r4.y = 32 * r2.y;
//    r2.y = r2.y * 32 + -1;
//    r2.y = max(0, r2.y);
//    r4.x = min(30.9990005, r2.y);
//    r4.y = saturate(r4.y);
//    r2.y = cb2[13].x * r2.x;
//    r2.y = r1.w * r2.x + -r2.y;
//    r2.x = -cb2[13].x * r2.x + 1;
//    r2.x = r2.y / r2.x;
//    r2.x = 15 * r2.x;
//    r2.x = max(0, r2.x);
//    r2.x = min(14.9989996, r2.x);
//    r2.y = 1;
//    r2.xy = r0.ww ? r4.xy : r2.xy;
//    r2.w = floor(r2.x);
//    r5.z = (int)r2.w;
//    r2.x = frac(r2.x);
//    if (r0.w != 0) {
//      r6.xyzw = t3.Load(r5.xyzw, int3(0, 0, 0)).xyzw;
//      r7.xyzw = t3.Load(r5.xyzw, int3(0, 0, 0)).xyzw;
//      r7.xyzw = r7.xyzw + -r6.xyzw;
//      r6.xyzw = r2.xxxx * r7.xyzw + r6.xyzw;
//      r6.xyzw = r6.xyzw * r2.yyyy;
//    } else {
//      r7.xyzw = t4.Load(r5.xyzw, int3(0, 0, 0)).xyzw;
//      r5.xyzw = t4.Load(r5.xyzw, int3(0, 0, 0)).xyzw;
//      r5.xyzw = r5.xyzw + -r7.xyzw;
//      r6.xyzw = r2.xxxx * r5.xyzw + r7.xyzw;
//    }
//  } else {
//    r6.xyzw = float4(0,0,0,0);
//  }
//  r0.w = 1 + -r6.w;
//  r2.x = r4.w * r0.w;
//  o7.xyz = r3.xyz * r0.www + r6.xyz;
//  o0.w = 0;
//  o2.zw = v8.zw;
//  o6.xyzw = r11.xyzw;
//  o7.w = r2.x;
//  o8.xyw = r1.xyw;
//  o8.z = r2.z;
//  o5.xyz = r0.xyz;
//  o3.xy = v7.xy;
//  o4.x = cb0[3].x;
//  return;
//}
//
///*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) D3D Shader Disassembler
//
//   using 3Dmigoto v1.3.16 on Sun May 30 01:05:07 2021
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// ATTRIBUTE                0   xyzw        0     NONE   float   xyz
// ATTRIBUTE                1   xyz         1     NONE   float   xyz
// ATTRIBUTE                2   xyzw        2     NONE   float   xyzw
// ATTRIBUTE                3   xyzw        3     NONE    uint   xyzw
// ATTRIBUTE               14   xyzw        4     NONE    uint   xyzw
// ATTRIBUTE                4   xyzw        5     NONE   float   xyzw
// ATTRIBUTE               15   xyzw        6     NONE   float   xyzw
// ATTRIBUTE                5   xy          7     NONE   float   xy
// ATTRIBUTE               13   xyzw        8     NONE   float     zw
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// TEXCOORD                10   xyzw        0     NONE   float   xyzw
// TEXCOORD                11   xyzw        1     NONE   float   xyzw
// COLOR                    0   xyzw        2     NONE   float   xyzw
// TEXCOORD                 0   xy          3     NONE   float   xy
// TEXCOORD                12   x           4     NONE    uint   x
// TEXCOORD                 7   xyz         5     NONE   float   xyz
// TEXCOORD                 8   xyzw        6     NONE   float   xyzw
// TEXCOORD                 9   xyzw        7     NONE   float   xyzw
// SV_POSITION              0   xyzw        8      POS   float   xyzw
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[4], immediateIndexed
dcl_constantbuffer cb1[57], immediateIndexed
dcl_constantbuffer cb2[45], immediateIndexed
dcl_constantbuffer cb3[60], immediateIndexed
dcl_constantbuffer cb4[13], immediateIndexed
dcl_constantbuffer cb5[18], immediateIndexed
dcl_sampler s0, 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_texture3d (float,float,float,float) t3
dcl_resource_texture3d (float,float,float,float) t4
dcl_resource_structured t5, 16
dcl_resource_buffer (float,float,float,float) t6
dcl_input v0.xyz
dcl_input v1.xyz
dcl_input v2.xyzw
dcl_input v3.xyzw
dcl_input v4.xyzw
dcl_input v5.xyzw
dcl_input v6.xyzw
dcl_input v7.xy
dcl_input v8.zw
dcl_output o0.xyzw
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xy
dcl_output o4.x
dcl_output o5.xyz
dcl_output o6.xyzw
dcl_output o7.xyzw
dcl_output_siv o8.xyzw, position
dcl_temps 35
dcl_resource_texture2d (float,float,float,float) t125
ld_indexable(texture2d)(float,float,float,float) r25.xyzw, l(0, 0, 0, 0), t125.xyzw
mad r0.xyz, v0.xyzx, cb0[1].xyzx, cb0[0].xyzx
imul null, r1.xyzw, v3.xyzw, l(3, 3, 3, 3)
ld_indexable(buffer)(float,float,float,float) r2.xyzw, r1.xxxx, t6.xyzw
imad r3.xyzw, v3.xxyy, l(3, 3, 3, 3), l(1, 2, 1, 2)
ld_indexable(buffer)(float,float,float,float) r4.xyzw, r3.xxxx, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r5.xyzw, r3.yyyy, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r6.xyzw, r1.yyyy, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r7.xyzw, r3.zzzz, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r3.xyzw, r3.wwww, t6.xyzw
mul r6.xyzw, r6.xyzw, v5.yyyy
mul r7.xyzw, r7.xyzw, v5.yyyy
mul r3.xyzw, r3.xyzw, v5.yyyy
mad r2.xyzw, v5.xxxx, r2.xyzw, r6.xyzw
mad r4.xyzw, v5.xxxx, r4.xyzw, r7.xyzw
mad r3.xyzw, v5.xxxx, r5.xyzw, r3.xyzw
ld_indexable(buffer)(float,float,float,float) r5.xyzw, r1.zzzz, t6.xyzw
imad r6.xyzw, v3.zzww, l(3, 3, 3, 3), l(1, 2, 1, 2)
ld_indexable(buffer)(float,float,float,float) r7.xyzw, r6.xxxx, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r8.xyzw, r6.yyyy, t6.xyzw
mad r2.xyzw, v5.zzzz, r5.xyzw, r2.xyzw
mad r4.xyzw, v5.zzzz, r7.xyzw, r4.xyzw
mad r3.xyzw, v5.zzzz, r8.xyzw, r3.xyzw
ld_indexable(buffer)(float,float,float,float) r1.xyzw, r1.wwww, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r5.xyzw, r6.zzzz, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r6.xyzw, r6.wwww, t6.xyzw
mad r1.xyzw, v5.wwww, r1.xyzw, r2.xyzw
mad r2.xyzw, v5.wwww, r5.xyzw, r4.xyzw
mad r3.xyzw, v5.wwww, r6.xyzw, r3.xyzw
imul null, r4.xyzw, v4.xyzw, l(3, 3, 3, 3)
ld_indexable(buffer)(float,float,float,float) r5.xyzw, r4.xxxx, t6.xyzw
imad r6.xyzw, v4.xxyy, l(3, 3, 3, 3), l(1, 2, 1, 2)
ld_indexable(buffer)(float,float,float,float) r7.xyzw, r6.xxxx, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r8.xyzw, r6.yyyy, t6.xyzw
mad r1.xyzw, v6.xxxx, r5.xyzw, r1.xyzw
mad r2.xyzw, v6.xxxx, r7.xyzw, r2.xyzw
mad r3.xyzw, v6.xxxx, r8.xyzw, r3.xyzw
ld_indexable(buffer)(float,float,float,float) r5.xyzw, r4.yyyy, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r7.xyzw, r6.zzzz, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r6.xyzw, r6.wwww, t6.xyzw
mad r1.xyzw, v6.yyyy, r5.xyzw, r1.xyzw
mad r2.xyzw, v6.yyyy, r7.xyzw, r2.xyzw
mad r3.xyzw, v6.yyyy, r6.xyzw, r3.xyzw
ld_indexable(buffer)(float,float,float,float) r5.xyzw, r4.zzzz, t6.xyzw
imad r6.xyzw, v4.zzww, l(3, 3, 3, 3), l(1, 2, 1, 2)
ld_indexable(buffer)(float,float,float,float) r7.xyzw, r6.xxxx, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r8.xyzw, r6.yyyy, t6.xyzw
mad r1.xyzw, v6.zzzz, r5.xyzw, r1.xyzw
mad r2.xyzw, v6.zzzz, r7.xyzw, r2.xyzw
mad r3.xyzw, v6.zzzz, r8.xyzw, r3.xyzw
ld_indexable(buffer)(float,float,float,float) r4.xyzw, r4.wwww, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r5.xyzw, r6.zzzz, t6.xyzw
ld_indexable(buffer)(float,float,float,float) r6.xyzw, r6.wwww, t6.xyzw
mad r1.xyzw, v6.wwww, r4.xyzw, r1.xyzw
mad r2.xyzw, v6.wwww, r5.xyzw, r2.xyzw
mad r3.xyzw, v6.wwww, r6.xyzw, r3.xyzw
mad r4.xyzw, v2.xyzw, l(2.000000, 2.000000, 2.000000, 2.000000), l(-1.000000, -1.000000, -1.000000, -1.000000)
mad r5.xyz, v1.xyzx, l(2.000000, 2.000000, 2.000000, 0.000000), l(-1.000000, -1.000000, -1.000000, 0.000000)
dp3 r5.w, r1.xyzx, r5.xyzx
dp3 r6.x, r2.xyzx, r5.xyzx
dp3 r5.x, r3.xyzx, r5.xyzx
dp3 r5.y, r1.xyzx, r4.xyzx
dp3 r5.z, r2.xyzx, r4.xyzx
dp3 r4.x, r3.xyzx, r4.xyzx
lt r4.y, l(0.000000), v8.z
lt r6.yz, v8.zzzz, l(0.000000, 1.000000, 0.500000, 0.000000)
and r4.y, r4.y, r6.y
add r4.z, -v8.z, l(1.000000)
movc r4.z, r6.z, r4.z, v8.z
mul r4.z, r4.z, l(32.000000)
ftou r4.z, r4.z
ishl r4.z, l(1), r4.z
and r6.yw, r4.zzzz, cb0[2].zzzy
uge r4.z, l(0), r6.y
ieq r6.y, r6.w, l(0)
not r6.w, r6.y
movc r6.y, r6.z, r6.w, r6.y
and r6.z, cb0[2].w, l(1)
ult r6.z, l(0), r6.z
not r6.w, r6.y
movc r6.y, r6.z, r6.w, r6.y
and r4.z, r4.z, r6.y
ieq r4.z, r4.z, l(0)
and r4.y, r4.z, r4.y
mov r0.w, l(1.000000)
dp4 r1.x, r1.xyzw, r0.xyzw
dp4 r1.y, r2.xyzw, r0.xyzw
dp4 r0.w, r3.xyzw, r0.xyzw
mul r1.yzw, r1.yyyy, cb4[1].xxyz
mad r1.xyz, cb4[0].xyzx, r1.xxxx, r1.yzwy
mad r1.xyz, cb4[2].xyzx, r0.wwww, r1.xyzx
add r2.xyz, cb1[56].xyzx, cb4[3].xyzx
add r1.xyz, r1.xyzx, r2.xyzx
mov r1.w, l(1.000000)
movc r1.xyzw, r4.yyyy, l(0x7fc00000,0x7fc00000,0x7fc00000,0x7fc00000), r1.xyzw
mul r2.xyz, r5.zzzz, cb4[1].xyzx
mad r2.xyz, r5.yyyy, cb4[0].xyzx, r2.xyzx
mad r2.xyz, r4.xxxx, cb4[2].xyzx, r2.xyzx
mov r3.zw, l(0,0,0,0)
mov r0.w, l(0)
loop
  uge r2.w, r0.w, cb0[1].w
  breakc_nz r2.w
  iadd r2.w, cb0[2].x, r0.w
  ld_structured_indexable(structured_buffer, stride=16)(mixed,mixed,mixed,mixed) r7.xyzw, r2.w, l(0), t5.xyzw
  and r2.w, r7.w, l(0x0000ffff)
  f16tof32 r2.w, r2.w
  lt r4.y, r2.w, l(0.000000)
  max r2.w, |r2.w|, l(0.001000)
  ushr r4.z, r7.w, l(16)
  f16tof32 r4.z, r4.z
  mov_sat r4.z, r4.z
  add r6.yzw, -r0.xxyz, r7.xxyz
  dp3 r6.y, r6.yzwy, r6.yzwy
  sqrt r6.y, r6.y
  min r6.y, r2.w, r6.y
  add r6.y, r2.w, -r6.y
  div r2.w, r6.y, r2.w
  mul r2.w, r2.w, r2.w
  mul_sat r2.w, r4.z, r2.w
  add r3.xy, r2.wwww, r3.wzww
  movc r3.zw, r4.yyyy, r3.zzzx, r3.yyyw
  iadd r0.w, r0.w, l(1)
endloop
mov_sat o2.xy, r3.zwzz
add r0.x, -|cb5[12].z|, l(1.000000)
sqrt r0.x, r0.x
mad r0.y, |cb5[12].z|, l(-0.0187292993), l(0.074261)
mad r0.y, r0.y, |cb5[12].z|, l(-0.212114394)
mad r0.y, r0.y, |cb5[12].z|, l(1.57072878)
mul r0.z, r0.x, r0.y
mad r0.z, r0.z, l(-2.000000), l(3.14159274)
lt r0.w, cb5[12].z, -cb5[12].z
and r0.z, r0.w, r0.z
mad r0.x, r0.y, r0.x, r0.z
add r0.x, -r0.x, l(1.57079637)
sincos null, r0.x, r0.x
dp3 r0.y, cb5[2].xyzx, cb5[2].xyzx
rsq r0.y, r0.y
mul r0.yzw, r0.yyyy, cb5[2].xxyz
mul r3.xy, v7.xyxx, l(6.28318548, 3.14159274, 0.000000, 0.000000)
sincos r7.x, r3.x, r3.x
mov r7.y, r3.x
sincos r3.x, r8.x, r3.y
mul r3.xy, r3.xxxx, -r7.xyxx
mov r3.z, r8.x
dp3 r2.w, r3.xyzx, r3.xyzx
rsq r2.w, r2.w
mul r3.xyz, r2.wwww, r3.xyzx
dp3 r0.y, r3.xyzx, r0.yzwy
add r0.x, -r0.x, r0.y
div r0.z, l(1.000000, 1.000000, 1.000000, 1.000000), cb5[13].y
add_sat r0.x, -r0.z, r0.x
max r0.y, r0.y, l(0.000010)
div r0.x, r0.x, r0.y
dp3 r0.y, cb4[0].xyzx, cb4[0].xyzx
sqrt r0.y, r0.y
mul r0.y, r0.y, cb5[17].y
mul r0.y, r0.y, cb5[17].z
mul r0.yzw, r0.yyyy, r2.xxyz
mad r0.xyz, r0.xxxx, r0.yzwy, r1.xyzx
mul r2.xyzw, r0.yyyy, cb1[1].xyzw
mad r2.xyzw, r0.xxxx, cb1[0].xyzw, r2.xyzw
mad r2.xyzw, r0.zzzz, cb1[2].xyzw, r2.xyzw
mad r1.xyzw, r1.wwww, cb1[3].xyzw, r2.xyzw
add r0.w, r1.z, l(1.000000)
min r2.z, r1.w, r0.w
mul r3.xyz, cb4[0].xyzx, cb4[12].xxxx
mul r6.yzw, cb4[1].xxyz, cb4[12].yyyy
mul r7.xyz, cb4[2].xyzx, cb4[12].zzzz
mul r8.xyz, r6.yzwy, r6.xxxx
mad r8.xyz, r5.wwww, r3.xyzx, r8.xyzx
mad o0.xyz, r5.xxxx, r7.xyzx, r8.xyzx
mul r5.xzw, r5.zzzz, r6.yyzw
mad r3.xyz, r5.yyyy, r3.xyzx, r5.xzwx
mad o1.xyz, r4.xxxx, r7.xyzx, r3.xyzx
mul o1.w, r4.w, cb4[9].w
dp3 r0.w, r0.xyzx, r0.xyzx
sqrt r0.w, r0.w
mad r2.w, r0.w, cb3[59].w, l(1.000000)
div r2.w, cb3[59].z, r2.w
add r2.w, r2.w, -cb3[59].z
add_sat r2.w, r2.w, l(1.000000)
mul r3.x, r0.w, l(0.000010)
mad r3.y, r0.w, l(0.000010), -cb2[44].y
mul r3.z, r3.y, cb3[47].x
ge r3.w, l(0.000000), r3.z
if_nz r3.w
  mov r4.xyz, l(0,0,0,0)
  mov r4.w, r2.w
endif
if_z r3.w
  div r0.w, r0.z, r0.w
  mad r3.w, r0.z, l(0.000010), cb3[52].z
  add r3.w, r3.w, -cb3[46].z
  mul r5.x, r3.w, cb3[47].y
  mad r3.w, r3.w, cb3[47].y, -cb3[52].x
  lt r3.w, l(0.000010), |r3.w|
  add r5.y, cb3[52].x, l(0.000010)
  movc r3.w, r3.w, r5.x, r5.y
  exp r5.x, -r3.w
  add r3.w, r3.w, -cb3[52].x
  add r5.x, -r5.x, cb3[52].y
  div r3.w, |r5.x|, |r3.w|
  mul r3.z, r3.z, r3.z
  mad r3.y, r3.y, cb3[47].x, -r3.z
  mad r3.y, cb3[51].w, r3.y, r3.z
  mul r3.z, r3.w, -r3.y
  exp r3.z, r3.z
  mul r3.y, -r3.y, cb3[48].x
  exp r3.y, r3.y
  mul r3.w, r2.w, r3.z
  mad r2.w, -r3.z, r2.w, r2.w
  min r3.z, |r0.y|, |r0.x|
  max r5.x, |r0.y|, |r0.x|
  div r5.x, l(1.000000, 1.000000, 1.000000, 1.000000), r5.x
  mul r3.z, r3.z, r5.x
  mul r5.x, r3.z, r3.z
  mad r5.y, r5.x, l(0.0208350997), l(-0.085133)
  mad r5.y, r5.x, r5.y, l(0.180141)
  mad r5.y, r5.x, r5.y, l(-0.330299497)
  mad r5.x, r5.x, r5.y, l(0.999866)
  mul r5.y, r3.z, r5.x
  lt r5.z, |r0.y|, |r0.x|
  mad r5.y, r5.y, l(-2.000000), l(1.57079637)
  and r5.y, r5.z, r5.y
  mad r3.z, r3.z, r5.x, r5.y
  lt r5.x, -r0.y, r0.y
  and r5.x, r5.x, l(0xc0490fdb)
  add r3.z, r3.z, r5.x
  min r5.x, -r0.y, r0.x
  max r5.y, -r0.y, r0.x
  lt r5.x, r5.x, -r5.x
  ge r5.y, r5.y, -r5.y
  and r5.x, r5.y, r5.x
  movc r3.z, r5.x, -r3.z, r3.z
  mad r5.x, r3.z, l(-0.159154937), l(0.500000)
  add r3.z, -|r0.w|, l(1.000000)
  sqrt r3.z, r3.z
  mad r5.z, |r0.w|, l(-0.0187292993), l(0.074261)
  mad r5.z, r5.z, |r0.w|, l(-0.212114394)
  mad r5.z, r5.z, |r0.w|, l(1.57072878)
  mul r5.w, r3.z, r5.z
  mad r5.w, r5.w, l(-2.000000), l(3.14159274)
  lt r0.w, -r0.w, r0.w
  and r0.w, r0.w, r5.w
  mad r0.w, r5.z, r3.z, r0.w
  add r0.w, -r0.w, l(1.57079637)
  mad r5.y, r0.w, l(0.318309873), l(0.500000)
  mul r0.w, r3.x, -cb3[52].w
  exp r0.w, r0.w
  mad r0.w, r0.w, cb3[59].y, cb3[59].x
  sample_l_indexable(texture2d)(float,float,float,float) r5.xyz, r5.xyxx, t0.xyzw, s0, r0.w
  mul r5.xyz, r5.xyzx, cb2[43].wwww
  log r0.w, r3.w
  add r3.x, -r3.y, l(1.000000)
  mul r3.x, r3.w, r3.x
  mul r6.x, r3.x, cb3[31].w
  mul r6.y, r3.x, cb3[32].w
  mul r6.z, r3.x, cb3[33].w
  mad r5.xyz, r5.xyzx, r2.wwww, r6.xyzx
  mul r4.w, r3.y, r3.w
  mul r3.xyz, r0.wwww, cb3[51].xyzx
  exp r3.xyz, r3.xyzx
  mul r4.xyz, r3.xyzx, r5.xyzx
endif
mul r3.xyz, r4.xyzx, cb2[43].yyyy
ne r0.w, cb2[13].w, l(0.000000)

mov r11.xyzw, r1.xyzw
add r25.w, r11.w, -r25.y
mad r11.x, r25.x, r25.w, r11.x

if_nz r0.w
  mov r2.xy, r11.xyxx
  div r2.xyw, r2.xyxz, r1.wwww
  mad r2.xy, r2.xyxx, l(0.500000, -0.500000, 0.000000, 0.000000), l(0.500000, 0.500000, 0.000000, 0.000000)
  lt r0.w, cb2[13].z, r2.w
  movc r5.xyzw, r0.wwww, cb2[11].xyzw, cb2[12].xyzw
  mad r4.xy, -r5.zwzz, l(0.500000, 0.500000, 0.000000, 0.000000), l(1.000000, 1.000000, 0.000000, 0.000000)
  max r2.xy, r2.xyxx, l(0.000000, 0.000000, 0.000000, 0.000000)
  min r2.xy, r4.xyxx, r2.xyxx
  mul r2.xy, r5.xyxx, r2.xyxx
  round_ni r2.xy, r2.xyxx
  ftoi r5.xy, r2.xyxx
  mov r5.w, l(0)
  ld_indexable(texture2d)(float,float,float,float) r2.x, r5.xyww, t1.xyzw
  ld_indexable(texture2d)(float,float,float,float) r2.y, r5.xyww, t2.yxzw
  movc r2.y, r0.w, r2.x, r2.y
  lt r2.w, r2.w, r2.y
  movc r2.y, r2.w, l(0), r2.y
  movc r2.x, r0.w, r2.x, r2.y
  max r2.x, r2.x, cb2[13].w
  max r2.y, r2.x, cb2[13].z
  movc r2.x, r0.w, r2.y, r2.x
  mad r2.x, r2.x, cb1[51].z, -cb1[51].w
  mul r2.y, r1.w, r2.x
  mul r4.y, r2.y, l(32.000000)
  mad r2.y, r2.y, l(32.000000), l(-1.000000)
  max r2.y, r2.y, l(0.000000)
  min r4.x, r2.y, l(30.999001)
  mov_sat r4.y, r4.y
  mul r2.y, r2.x, cb2[13].x
  mad r2.y, r1.w, r2.x, -r2.y
  mad r2.x, -cb2[13].x, r2.x, l(1.000000)
  div r2.x, r2.y, r2.x
  mul r2.x, r2.x, l(15.000000)
  max r2.x, r2.x, l(0.000000)
  min r2.x, r2.x, l(14.999000)
  mov r2.y, l(1.000000)
  movc r2.xy, r0.wwww, r4.xyxx, r2.xyxx
  round_ni r2.w, r2.x
  ftoi r5.z, r2.w
  frc r2.x, r2.x
  if_nz r0.w
    ld_aoffimmi_indexable(0,0,0)(texture3d)(float,float,float,float) r6.xyzw, r5.xyzw, t3.xyzw
    ld_aoffimmi_indexable(0,0,1)(texture3d)(float,float,float,float) r7.xyzw, r5.xyzw, t3.xyzw
    add r7.xyzw, -r6.xyzw, r7.xyzw
    mad r6.xyzw, r2.xxxx, r7.xyzw, r6.xyzw
    mul r6.xyzw, r2.yyyy, r6.xyzw
  else
    ld_aoffimmi_indexable(0,0,0)(texture3d)(float,float,float,float) r7.xyzw, r5.xyzw, t4.xyzw
    ld_aoffimmi_indexable(0,0,1)(texture3d)(float,float,float,float) r5.xyzw, r5.xyzw, t4.xyzw
    add r5.xyzw, -r7.xyzw, r5.xyzw
    mad r6.xyzw, r2.xxxx, r5.xyzw, r7.xyzw
  endif
else
  mov r6.xyzw, l(0,0,0,0)
endif
add r0.w, -r6.w, l(1.000000)
mul r2.x, r0.w, r4.w
mad o7.xyz, r3.xyzx, r0.wwww, r6.xyzx
mov o0.w, l(0)
mov o2.zw, v8.zzzw
mov o6.xyzw, r11.xyzw
mov o7.w, r2.x
mov o8.xyw, r1.xyxw
mov o8.z, r2.z
mov o5.xyz, r0.xyzx
mov o3.xy, v7.xyxx
mov o4.x, cb0[3].x
ret
// Approximately 0 instruction slots used
