//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
//   using 3Dmigoto v1.2.67 on Mon Jan 01 13:11:45 2018
//
//
// Buffer Definitions: 
//
// cbuffer $Globals
// {
//
//   float4 g_vParams;                  // Offset:    0 Size:    16 [unused]
//   float4 g_aUVShiftData[64];         // Offset:   16 Size:  1024 [unused]
//   float4 bones[192];                 // Offset: 1040 Size:  3072
//   float4 difColor;                   // Offset: 4112 Size:    16 [unused]
//   float4x4 g_mViewProj;              // Offset: 4128 Size:    64
//   float4 g_vCamPos;                  // Offset: 4192 Size:    16
//   float MAX_DISTANCE_SCALE;          // Offset: 4208 Size:     4 [unused]
//      = 0x43070000 
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// $Globals                          cbuffer      NA          NA    0        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xyz 
// NORMAL                   0   xyz         1     NONE   float   xyz 
// TEXCOORD                 0   xy          2     NONE   float   xy  
// BLENDINDICES             0   x           3     NONE   float   x   
// TEXCOORD                 1   xyz         4     NONE   float   xyz 
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_Position              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xy          1     NONE   float   xy  
// TEXCOORD                 2   xyz         2     NONE   float   xyz 
// TEXCOORD                 1   xyz         3     NONE   float   xyz 
//
vs_4_0
dcl_constantbuffer cb0[263], dynamicIndexed
dcl_input v0.xyz
dcl_input v1.xyz
dcl_input v2.xy
dcl_input v3.x
dcl_input v4.xyz
dcl_output_siv o0.xyzw, position
dcl_output o1.xy
dcl_output o2.xyz
dcl_output o3.xyz
// dcl_temps updated : previous = dcl_temps 5
dcl_temps 8
// added 3dmigoto declaration
dcl_resource_texture1d (float,float,float,float) t120
ld_indexable(texture1d)(float,float,float,float) r6.xyzw, l(0, 0, 0, 0), t120.xyzw
mov r7.x, r6.w
mov r7.y, r6.w
mov r7.zw, l(1.0, 1.0)
// end of 3dmigoto declaration
mul r0.x, v3.x, l(3.000000)
ftoi r0.x, r0.x
mov r1.xyz, v0.xyzx
mov r1.w, l(1.000000)
dp4 r2.x, r1.xyzw, cb0[r0.x + 65].xyzw
mov r2.w, l(1.000000)
iadd r0.yz, r0.xxxx, l(0, 1, 2, 0)
dp4 r2.y, r1.xyzw, cb0[r0.y + 65].xyzw
dp4 r2.z, r1.xyzw, cb0[r0.z + 65].xyzw
// replacing matrix usage :dp4 o0.x, r2.xyzw, cb0[258].xyzw
dp4 r5.x, r2.xyzw, cb0[258].xyzw
mul o0.x, r5.x, r7.x
// replacing matrix usage :dp4 o0.y, r2.xyzw, cb0[259].xyzw
dp4 r5.y, r2.xyzw, cb0[259].xyzw
mul o0.y, r5.y, r7.y
dp4 o0.z, r2.xyzw, cb0[260].xyzw
dp4 o0.w, r2.xyzw, cb0[261].xyzw
mov o1.xy, v2.xyxx
dp3 r1.x, v1.xyzx, cb0[r0.x + 65].xyzx
dp3 r1.y, v1.xyzx, cb0[r0.y + 65].xyzx
dp3 r1.z, v1.xyzx, cb0[r0.z + 65].xyzx
dp3 r0.w, r1.xyzx, r1.xyzx
rsq r0.w, r0.w
mul r1.xyz, r0.wwww, r1.xyzx
mov r3.xyz, v4.xyzx
mov r3.w, l(1.000000)
dp4 r4.x, r3.xyzw, cb0[r0.x + 65].xyzw
dp4 r4.y, r3.xyzw, cb0[r0.y + 65].xyzw
dp4 r4.z, r3.xyzw, cb0[r0.z + 65].xyzw
add r0.xyz, -r4.xyzx, cb0[262].xyzx
dp3 r0.x, r0.xyzx, r1.xyzx
mul r0.x, r0.x, l(0.999000)
mad r0.xyz, r1.xyzx, r0.xxxx, r4.xyzx
mov o3.xyz, r1.xyzx
add r0.xyz, -r0.xyzx, cb0[262].xyzx
mad r0.xyz, -r0.xyzx, l(1000.000000, 1000.000000, 1000.000000, 0.000000), r4.xyzx
add o2.xyz, -r2.xyzx, r0.xyzx
ret 
// Approximately 34 instruction slots used
