// ---- Created with 3Dmigoto v1.2.35 on Tue Apr 26 22:30:28 2016

cbuffer ccbLutParam : register(b0)
{
  int4 g_SrcTexInfo : packoffset(c0);
  int4 g_Src2TexInfo : packoffset(c1);
  int4 g_DstTexInfo : packoffset(c2);
  float4 g_csBlend : packoffset(c3);
}

Texture2D<float4> g_csInputTex0 : register(t0);
Texture2D<float4> g_csInputTex1 : register(t1);


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


void main()
{
// Needs manual fix for instruction: 
// unknown dcl_: dcl_uav_typed_texture3d (float,float,float,float) u0
  float4 r0,r1,r2,r3;
  uint4 bitmask, uiDest;
  float4 fDest;

// Needs manual fix for instruction: 
// unknown dcl_: dcl_thread_group 4, 16, 1
  r0.y = vThreadIDInGroup.x;
  r0.z = mad((int)vThreadGroupID.z, 16, (int)vThreadIDInGroup.y);
  r0.w = 0;
  r1.xyzw = g_csInputTex1.Load(r0.yzw).xyzw;
  r2.xyzw = g_csInputTex0.Load(r0.yzw).xyzw;
  r1.xyzw = -r2.xyzw + r1.xyzw;
  r1.xyzw = g_csBlend.xxxx * r1.xyzw + r2.xyzw;
  r2.xy = vThreadIDInGroup.xy;
  r2.z = vThreadGroupID.z;
// No code for instruction (needs manual fix):
store_uav_typed u0.xyzw, r2.xyzz, r1.xyzw
  r0.x = (int)vThreadIDInGroup.x + 4;
  r1.xyzw = g_csInputTex1.Load(r0.xzw).xyzw;
  r3.xyzw = g_csInputTex0.Load(r0.xzw).xyzw;
  r1.xyzw = -r3.xyzw + r1.xyzw;
  r1.xyzw = g_csBlend.xxxx * r1.xyzw + r3.xyzw;
  r2.w = r0.x;
  r0.y = (int)r0.x + 4;
// No code for instruction (needs manual fix):
store_uav_typed u0.xyzw, r2.wyzz, r1.xyzw
  r1.xyzw = g_csInputTex1.Load(r0.yzw).xyzw;
  r3.xyzw = g_csInputTex0.Load(r0.yzw).xyzw;
  r1.xyzw = -r3.xyzw + r1.xyzw;
  r1.xyzw = g_csBlend.xxxx * r1.xyzw + r3.xyzw;
  r2.x = r0.y;
  r0.x = (int)r0.y | 12;
// No code for instruction (needs manual fix):
store_uav_typed u0.xyzw, r2.xyzz, r1.xyzw
  r1.xyzw = g_csInputTex1.Load(r0.xzw).xyzw;
  r3.xyzw = g_csInputTex0.Load(r0.xzw).xyzw;
  r2.w = r0.x;
  r0.xyzw = -r3.xyzw + r1.xyzw;
  r0.xyzw = g_csBlend.xxxx * r0.xyzw + r3.xyzw;
// No code for instruction (needs manual fix):
store_uav_typed u0.xyzw, r2.wyzz, r0.xyzw
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original ASM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//
// Buffer Definitions: 
//
// cbuffer ccbLutParam
// {
//
//   int4 g_SrcTexInfo;                 // Offset:    0 Size:    16 [unused]
//   int4 g_Src2TexInfo;                // Offset:   16 Size:    16 [unused]
//   int4 g_DstTexInfo;                 // Offset:   32 Size:    16 [unused]
//   float4 g_csBlend;                  // Offset:   48 Size:    16
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// g_csInputTex0                     texture  float4          2d    0        1
// g_csInputTex1                     texture  float4          2d    1        1
// g_csInOut3DTex                        UAV  float4          3d    0        1
// ccbLutParam                       cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Input
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// no Output
cs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[4], immediateIndexed
dcl_resource_texture2d (float,float,float,float) t0
dcl_resource_texture2d (float,float,float,float) t1
dcl_uav_typed_texture3d (float,float,float,float) u0
dcl_input vThreadGroupID.z
dcl_input vThreadIDInGroup.xy
dcl_temps 4
dcl_thread_group 4, 16, 1
mov r0.y, vThreadIDInGroup.x
imad r0.z, vThreadGroupID.z, l(16), vThreadIDInGroup.y
mov r0.w, l(0)
ld_indexable(texture2d)(float,float,float,float) r1.xyzw, r0.yzww, t1.xyzw
ld_indexable(texture2d)(float,float,float,float) r2.xyzw, r0.yzww, t0.xyzw
add r1.xyzw, r1.xyzw, -r2.xyzw
mad r1.xyzw, cb0[3].xxxx, r1.xyzw, r2.xyzw
mov r2.xy, vThreadIDInGroup.xyxx
mov r2.z, vThreadGroupID.z
store_uav_typed u0.xyzw, r2.xyzz, r1.xyzw
iadd r0.x, vThreadIDInGroup.x, l(4)
ld_indexable(texture2d)(float,float,float,float) r1.xyzw, r0.xzww, t1.xyzw
ld_indexable(texture2d)(float,float,float,float) r3.xyzw, r0.xzww, t0.xyzw
add r1.xyzw, r1.xyzw, -r3.xyzw
mad r1.xyzw, cb0[3].xxxx, r1.xyzw, r3.xyzw
mov r2.w, r0.x
iadd r0.y, r0.x, l(4)
store_uav_typed u0.xyzw, r2.wyzz, r1.xyzw
ld_indexable(texture2d)(float,float,float,float) r1.xyzw, r0.yzww, t1.xyzw
ld_indexable(texture2d)(float,float,float,float) r3.xyzw, r0.yzww, t0.xyzw
add r1.xyzw, r1.xyzw, -r3.xyzw
mad r1.xyzw, cb0[3].xxxx, r1.xyzw, r3.xyzw
mov r2.x, r0.y
or r0.x, r0.y, l(12)
store_uav_typed u0.xyzw, r2.xyzz, r1.xyzw
ld_indexable(texture2d)(float,float,float,float) r1.xyzw, r0.xzww, t1.xyzw
ld_indexable(texture2d)(float,float,float,float) r3.xyzw, r0.xzww, t0.xyzw
mov r2.w, r0.x
add r0.xyzw, r1.xyzw, -r3.xyzw
mad r0.xyzw, cb0[3].xxxx, r0.xyzw, r3.xyzw
store_uav_typed u0.xyzw, r2.wyzz, r0.xyzw
ret 
// Approximately 32 instruction slots used

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