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



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


[maxvertexcount(3)]
void main( 
  inout TriangleStream<float> m0,
  float4 v0 : SV_Position0,
  float4 v1 : TEXCOORD0,
  float4 v2 : TEXCOORD1,
  float2 v3 : TEXCOORD2,
  float2 w3 : TEXCOORD3,
  float2 v4 : TEXCOORD4,
  out float4 o0 : SV_Position0,
  out float4 o1 : TEXCOORD0,
  out float4 o2 : TEXCOORD1,
  out float2 o3 : TEXCOORD2,
  out float2 p3 : TEXCOORD3,
  out float2 o4 : TEXCOORD4,
  out uint o5 : SV_RenderTargetArrayIndex0)
{
// Needs manual fix for instruction: 
// unknown dcl_: dcl_input_siv v[3][0].xyzw, position
  float4 r0;
  uint4 bitmask, uiDest;
  float4 fDest;

// Needs manual fix for instruction: 
// unknown dcl_: dcl_inputprimitive triangle 
// Needs manual fix for instruction:  
//dcl_stream m0
// Needs manual fix for instruction: 
// unknown dcl_: dcl_outputtopology trianglestrip 
  r0.x = (uint)v[0][1].z;
  r0.y = 0;
  while (true) {
    r0.z = cmp((int)r0.y >= 3);
    if (r0.z != 0) break;
    o0.xyzw = v[r0.y+0][0].xyzw;
    o1.xyz = v[r0.y+0][1].xyz;
    o2.xyz = v[r0.y+0][2].xyz;
    o3.xyzw = v[r0.y+0][3].xyzw;
    o4.xy = v[r0.y+0][4].xy;
    o5.x = r0.x;
  // Needs manual fix for instruction, maybe. 
//    emit_stream m0
  m0.Append(0); 
    r0.y = (int)r0.y + 1;
  }
// Needs manual fix for instruction, maybe. 
//cut_stream m0
m0.RestartStrip(); 
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original ASM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyz         1     NONE   float   xyz 
// TEXCOORD                 1   xyz         2     NONE   float   xyz 
// TEXCOORD                 2   xy          3     NONE   float   xy  
// TEXCOORD                 3     zw        3     NONE   float     zw
// TEXCOORD                 4   xy          4     NONE   float   xy  
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyz         1     NONE   float   xyz 
// TEXCOORD                 1   xyz         2     NONE   float   xyz 
// TEXCOORD                 2   xy          3     NONE   float   xy  
// TEXCOORD                 3     zw        3     NONE   float     zw
// TEXCOORD                 4   xy          4     NONE   float   xy  
// SV_RenderTargetArrayIndex     0   x           5  RTINDEX    uint   x   
//
gs_5_0
dcl_globalFlags refactoringAllowed
dcl_input_siv v[3][0].xyzw, position
dcl_input v[3][1].xyz
dcl_input v[3][2].xyz
dcl_input v[3][3].xy
dcl_input v[3][3].zw
dcl_input v[3][4].xy
dcl_temps 1
dcl_inputprimitive triangle 
dcl_stream m0
dcl_outputtopology trianglestrip 
dcl_output_siv o0.xyzw, position
dcl_output o1.xyz
dcl_output o2.xyz
dcl_output o3.xy
dcl_output o3.zw
dcl_output o4.xy
dcl_output_siv o5.x, rendertarget_array_index
dcl_maxout 3
ftou r0.x, v[0][1].z
mov r0.y, l(0)
loop 
  ige r0.z, r0.y, l(3)
  breakc_nz r0.z
  mov o0.xyzw, v[r0.y + 0][0].xyzw
  mov o1.xyz, v[r0.y + 0][1].xyzx
  mov o2.xyz, v[r0.y + 0][2].xyzx
  mov o3.xyzw, v[r0.y + 0][3].xyzw
  mov o4.xy, v[r0.y + 0][4].xyxx
  mov o5.x, r0.x
  emit_stream m0
  iadd r0.y, r0.y, l(1)
endloop 
cut_stream m0
ret 
// Approximately 16 instruction slots used

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