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

cbuffer cbTextureTilingScale : register(b1)
{
  float4 FC_TextureTilingScale[25] : packoffset(c0);
}

cbuffer cbMatDynParam : register(b2)
{
  bool FC_isDitherAlpha : packoffset(c0);
  float FC_TranslucencyScale : packoffset(c1);
  float4 FC_EmissiveColor : packoffset(c2);
  float4 FC_BlendMaskParam : packoffset(c3);
  float FC_PomHeightScale : packoffset(c4);
  float FC_PomHeightBias : packoffset(c4.y);
  float FC_PomMinSamples : packoffset(c4.z);
  float FC_PomMaxSamples : packoffset(c4.w);
  float FC_PomShadowSoftening : packoffset(c5);
  bool FC_bPomDisplayShadows : packoffset(c5.y);
  float4 FC_ParallaxParam : packoffset(c6);
  float FC_Pom2HeightScale : packoffset(c7);
  float FC_Pom2HeightBias : packoffset(c7.y);
  float FC_Pom2MinSamples : packoffset(c7.z);
  float FC_Pom2MaxSamples : packoffset(c7.w);
  bool VC_isEnableCloth : packoffset(c8);
  float FC_EnvMapDolBlendRate : packoffset(c9);
  float4 FC_SnowMaskParam : packoffset(c10);
  float FC_FROZEN_THRESHOLD : packoffset(c11);
  float FC_FROZEN_POW : packoffset(c11.y);
  float FC_BlendRate : packoffset(c12);
  float4 FC_FlowMapUvTiling : packoffset(c13);
  float4 FC_FlowMapIntencity : packoffset(c14);
  float FC_SoftVolume : packoffset(c15);
  float FC_PointCloudRate : packoffset(c16);
  float4 FC_WaterNormalUvScrollSpeed : packoffset(c17);
  float4 FC_WaterDiffuseUvScrollSpeed : packoffset(c18);
  float4 FC_WaterMiddleUvScrollSpeed : packoffset(c19);
  float4 FC_WaterFogParam0 : packoffset(c20);
  float4 FC_WaterFogParam1 : packoffset(c21);
  float4 FC_WaterFresnel : packoffset(c22);
  float4 FC_WaterFadeParam : packoffset(c23);
  float4 FC_DynamicDiffuseColor : packoffset(c24);
  float FC_SSS_ID : packoffset(c25);
  float4 FC_PhantomEdgeColor : packoffset(c26);
  float4 FC_PhantomFrontColor : packoffset(c27);
  float4 FC_PhantomDiffColor : packoffset(c28);
  float4 FC_PhantomSpecColor : packoffset(c29);
  float4 FC_PhantomLightColor : packoffset(c30);
  float VC_VelocityOffset : packoffset(c31);
  float4 FC_DamagedNormalParam : packoffset(c32);
  float4 FC_DamagedNormalUvTiling : packoffset(c33);
  float4 FC_DamagedNormal2UvTiling : packoffset(c34);
  float4 FC_WetDiffuseColor : packoffset(c35);
  float4 FC_WetParam1 : packoffset(c36);
  float4 FC_WetRefrectanceColor : packoffset(c37);
  float4 FC_WetParam2 : packoffset(c38);
  float FlowmapVertexOffset_snp_0_float_0_0 : packoffset(c39);
  float FlowmapVertexOffset_snp_0_float_1_0 : packoffset(c39.y);
  float FlowmapVertexOffset_snp_0_float_2_0 : packoffset(c39.z);
  float FlowmapVertexOffset_snp_0_float_3_0 : packoffset(c39.w);
}

cbuffer cbPerFrame : register(b9)
{
  float4 FC_DebugParam : packoffset(c0);
  float4 FC_DebugOutputMode : packoffset(c1);
  float4 FC_DebugParam2 : packoffset(c2);
  float FC_GlobalSpecularMask : packoffset(c3);
  float FC_GlobalReflectanceScale : packoffset(c3.y);
  float FC_GlobalShininessScale : packoffset(c3.z);
  float FC_GlobalAlbedoOffset : packoffset(c3.w);
  float4 FC_GlobalRefRectanceRGBScale : packoffset(c4);
  float4 FC_GlobalAlbedoOffsetRGB : packoffset(c5);
  float4 FC_SnowDir : packoffset(c6);
  float4 FC_SnowTilingScale : packoffset(c7);
  float4 FC_SnowAlbedo : packoffset(c8);
  float FC_SnowReflectance : packoffset(c9);
  float FC_GroundPlaneHeight : packoffset(c9.y);
  float FC_RcpSnowHeightRange : packoffset(c9.z);
  float FC_SnowNormalScale : packoffset(c9.w);
  float4 FC_SnowSpakleTinlingScale : packoffset(c10);
  float FC_GlobalTime : packoffset(c11);
  float FC_DominantSharpnesMinValue : packoffset(c12);
  float FC_DominantSharpnesOffset : packoffset(c12.y);
  float FC_DominantSharpnesExponent : packoffset(c12.z);
  float FC_DominantColorScale : packoffset(c12.w);
  float4 FC_DominantRgbScale : packoffset(c13);
}

cbuffer cbInstanceData : register(b4)
{

  struct
  {
    float4x3 mWorld;
    float4 atlasUvScaleOffset;
    float4 userClipPlane;
    uint4 matricesData;
    uint envData;
    bool dynamicLightDisable;
    uint2 envPad;
    float4 mulCol;
    float4 aSh[3];
    float4 ShLightMask;
    float4 vDominantRotateParam;
    float4 parallaxCorrectedCubemapOrigin_envMapInterpRatio;
    float4 parallaxCorrectedCubemapAabbMin_envMapColorScale0;
    float4 parallaxCorrectedCubemapAabbMax_envMapColorScale1;
    float ditherFadeAlpha;
  } VC_InstanceData[2] : packoffset(c0);

}

cbuffer cbMatrixWVP : register(b0)
{
  float4x4 VC_MatrixWVP : packoffset(c0);
  float4x4 VC_PrevMatrixWVP : packoffset(c4);
  float4x4 VC_NowToPrevView : packoffset(c8);
}

cbuffer cbObjMatrix : register(b5)
{
  float4x3 VC_aObjMatrix[2] : packoffset(c0);
}

cbuffer cbPrevObjMatrix : register(b6)
{
  float4x3 VC_aOldObjMatrix[2] : packoffset(c0);
}

cbuffer cbTexScroll : register(b11)
{
  float4 VC_TexScroll_0 : packoffset(c0);
  float4 VC_TexScroll_1 : packoffset(c1);
  float4 VC_TexScroll_2 : packoffset(c2);
  float4 VC_TexScroll_3 : packoffset(c3);
}

SamplerState SS_WrapLinear_s : register(s8);
Texture2D<float4> FlowmapVertexOffset_snp_0_Texture2D_5 : register(t2);


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


void main( 
  float3 v0 : POSITION0,
  uint4 v1 : NORMAL0,
  uint4 v2 : TANGENT0,
  uint4 v3 : BLENDINDICES0,
  float4 v4 : BLENDWEIGHT0,
  int4 v5 : TEXCOORD0,
  float4 v6 : TEXCOORD1,
  out float4 o0 : SV_POSITION0,
  out float4 o1 : TEXCOORD0,
  out float4 o2 : TEXCOORD1,
  out float4 o3 : TEXCOORD2,
  out float2 o4 : TEXCOORD3)
{
  float4 r0,r1,r2,r3,r4,r5,r6;
  uint4 bitmask, uiDest;
  float4 fDest;

  r0.xy = (int2)v5.xy;
  r0.xy = VC_TexScroll_0.xy * r0.xy;
  r0.xy = r0.xy * float2(0.00048828125,0.00048828125) + VC_TexScroll_0.zw;
  r0.zw = FC_GlobalTime * FlowmapVertexOffset_snp_0_float_0_0 + r0.xy;
  o4.xy = r0.xy;
  r0.xy = r0.zw * FC_TextureTilingScale[5].xy + FC_TextureTilingScale[5].zw;
  r0.x = FlowmapVertexOffset_snp_0_Texture2D_5.SampleLevel(SS_WrapLinear_s, r0.xy, 0).x;
  r0.y = FlowmapVertexOffset_snp_0_float_1_0 * v6.x;
  r0.x = r0.x * r0.y;
  r0.yzw = (uint3)v1.xyz;
  r0.yzw = float3(-127,-127,-127) + r0.yzw;
  r0.yzw = float3(0.00787401572,0.00787401572,0.00787401572) * r0.yzw;
  r1.xyzw = (int4)v3.xyzw + (int4)VC_InstanceData[0].matricesData.xxxx;
  r1.xyzw = (int4)r1.xyzw * int4(3,3,3,3);
  r2.x = dot(float4(1,1,1,1), v4.xyzw);
  r2.x = max(0.00100000005, r2.x);
  r2.xyzw = v4.xyzw / r2.xxxx;
  r3.xyzw = VC_aObjMatrix[r1.y/3]._m00_m10_m20_m30 * r2.yyyy;
  r3.xyzw = VC_aObjMatrix[r1.x/3]._m00_m10_m20_m30 * r2.xxxx + r3.xyzw;
  r3.xyzw = VC_aObjMatrix[r1.z/3]._m00_m10_m20_m30 * r2.zzzz + r3.xyzw;
  r3.xyzw = VC_aObjMatrix[r1.w/3]._m00_m10_m20_m30 * r2.wwww + r3.xyzw;
  r4.x = dot(r0.yzw, r3.xyz);
  r5.xyzw = VC_aObjMatrix[r1.y/3]._m01_m11_m21_m31 * r2.yyyy;
  r5.xyzw = VC_aObjMatrix[r1.x/3]._m01_m11_m21_m31 * r2.xxxx + r5.xyzw;
  r5.xyzw = VC_aObjMatrix[r1.z/3]._m01_m11_m21_m31 * r2.zzzz + r5.xyzw;
  r5.xyzw = VC_aObjMatrix[r1.w/3]._m01_m11_m21_m31 * r2.wwww + r5.xyzw;
  r4.y = dot(r0.yzw, r5.xyz);
  r6.xyzw = VC_aObjMatrix[r1.y/3]._m02_m12_m22_m32 * r2.yyyy;
  r6.xyzw = VC_aObjMatrix[r1.x/3]._m02_m12_m22_m32 * r2.xxxx + r6.xyzw;
  r6.xyzw = VC_aObjMatrix[r1.z/3]._m02_m12_m22_m32 * r2.zzzz + r6.xyzw;
  r1.xyzw = VC_aObjMatrix[r1.w/3]._m02_m12_m22_m32 * r2.wwww + r6.xyzw;
  r4.z = dot(r0.yzw, r1.xyz);
  r6.xyz = v0.xyz;
  r6.w = 1;
  r3.x = dot(r6.xyzw, r3.xyzw);
  r3.y = dot(r6.xyzw, r5.xyzw);
  r3.z = dot(r6.xyzw, r1.xyzw);
  r0.xyz = r0.xxx * r4.xyz + r3.xyz;
  o3.xyz = r4.xyz;
  r0.w = 1;
  r1.x = dot(r0.xyzw, VC_MatrixWVP._m00_m10_m20_m30);
  r1.y = dot(r0.xyzw, VC_MatrixWVP._m01_m11_m21_m31);
  r1.z = dot(r0.xyzw, VC_MatrixWVP._m02_m12_m22_m32);
  r1.w = dot(r0.xyzw, VC_MatrixWVP._m03_m13_m23_m33);
  o0.xyzw = r1.xyzw;
  o1.xyzw = r1.xyzw;
  r0.xyzw = (int4)v3.xyzw * int4(3,3,3,3);
  r1.xyzw = VC_aOldObjMatrix[v3.y]._m00_m10_m20_m30 * r2.yyyy;
  r1.xyzw = VC_aOldObjMatrix[v3.x]._m00_m10_m20_m30 * r2.xxxx + r1.xyzw;
  r1.xyzw = VC_aOldObjMatrix[v3.z]._m00_m10_m20_m30 * r2.zzzz + r1.xyzw;
  r1.xyzw = VC_aOldObjMatrix[v3.w]._m00_m10_m20_m30 * r2.wwww + r1.xyzw;
  r1.x = dot(r6.xyzw, r1.xyzw);
  r3.xyzw = VC_aOldObjMatrix[v3.y]._m01_m11_m21_m31 * r2.yyyy;
  r3.xyzw = VC_aOldObjMatrix[v3.x]._m01_m11_m21_m31 * r2.xxxx + r3.xyzw;
  r3.xyzw = VC_aOldObjMatrix[v3.z]._m01_m11_m21_m31 * r2.zzzz + r3.xyzw;
  r3.xyzw = VC_aOldObjMatrix[v3.w]._m01_m11_m21_m31 * r2.wwww + r3.xyzw;
  r1.y = dot(r6.xyzw, r3.xyzw);
  r3.xyzw = VC_aOldObjMatrix[v3.y]._m02_m12_m22_m32 * r2.yyyy;
  r3.xyzw = VC_aOldObjMatrix[v3.x]._m02_m12_m22_m32 * r2.xxxx + r3.xyzw;
  r3.xyzw = VC_aOldObjMatrix[v3.z]._m02_m12_m22_m32 * r2.zzzz + r3.xyzw;
  r0.xyzw = VC_aOldObjMatrix[v3.w]._m02_m12_m22_m32 * r2.wwww + r3.xyzw;
  r1.z = dot(r6.xyzw, r0.xyzw);
  r1.w = 1;
  o2.x = dot(r1.xyzw, VC_PrevMatrixWVP._m00_m10_m20_m30);
  o2.y = dot(r1.xyzw, VC_PrevMatrixWVP._m01_m11_m21_m31);
  o2.z = dot(r1.xyzw, VC_PrevMatrixWVP._m02_m12_m22_m32);
  o2.w = dot(r1.xyzw, VC_PrevMatrixWVP._m03_m13_m23_m33);
  return;
}

/*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Original ASM ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.30.9200.20546
//
//
// Buffer Definitions: 
//
// cbuffer cbTextureTilingScale
// {
//
//   float4 FC_TextureTilingScale[25];  // Offset:    0 Size:   400
//
// }
//
// cbuffer cbMatDynParam
// {
//
//   bool FC_isDitherAlpha;             // Offset:    0 Size:     4 [unused]
//   float FC_TranslucencyScale;        // Offset:   16 Size:     4 [unused]
//   float4 FC_EmissiveColor;           // Offset:   32 Size:    16 [unused]
//   float4 FC_BlendMaskParam;          // Offset:   48 Size:    16 [unused]
//   float FC_PomHeightScale;           // Offset:   64 Size:     4 [unused]
//   float FC_PomHeightBias;            // Offset:   68 Size:     4 [unused]
//   float FC_PomMinSamples;            // Offset:   72 Size:     4 [unused]
//   float FC_PomMaxSamples;            // Offset:   76 Size:     4 [unused]
//   float FC_PomShadowSoftening;       // Offset:   80 Size:     4 [unused]
//   bool FC_bPomDisplayShadows;        // Offset:   84 Size:     4 [unused]
//   float4 FC_ParallaxParam;           // Offset:   96 Size:    16 [unused]
//   float FC_Pom2HeightScale;          // Offset:  112 Size:     4 [unused]
//   float FC_Pom2HeightBias;           // Offset:  116 Size:     4 [unused]
//   float FC_Pom2MinSamples;           // Offset:  120 Size:     4 [unused]
//   float FC_Pom2MaxSamples;           // Offset:  124 Size:     4 [unused]
//   bool VC_isEnableCloth;             // Offset:  128 Size:     4 [unused]
//   float FC_EnvMapDolBlendRate;       // Offset:  144 Size:     4 [unused]
//   float4 FC_SnowMaskParam;           // Offset:  160 Size:    16 [unused]
//   float FC_FROZEN_THRESHOLD;         // Offset:  176 Size:     4 [unused]
//   float FC_FROZEN_POW;               // Offset:  180 Size:     4 [unused]
//   float FC_BlendRate;                // Offset:  192 Size:     4 [unused]
//   float4 FC_FlowMapUvTiling;         // Offset:  208 Size:    16 [unused]
//   float4 FC_FlowMapIntencity;        // Offset:  224 Size:    16 [unused]
//   float FC_SoftVolume;               // Offset:  240 Size:     4 [unused]
//   float FC_PointCloudRate;           // Offset:  256 Size:     4 [unused]
//   float4 FC_WaterNormalUvScrollSpeed;// Offset:  272 Size:    16 [unused]
//   float4 FC_WaterDiffuseUvScrollSpeed;// Offset:  288 Size:    16 [unused]
//   float4 FC_WaterMiddleUvScrollSpeed;// Offset:  304 Size:    16 [unused]
//   float4 FC_WaterFogParam0;          // Offset:  320 Size:    16 [unused]
//   float4 FC_WaterFogParam1;          // Offset:  336 Size:    16 [unused]
//   float4 FC_WaterFresnel;            // Offset:  352 Size:    16 [unused]
//   float4 FC_WaterFadeParam;          // Offset:  368 Size:    16 [unused]
//   float4 FC_DynamicDiffuseColor;     // Offset:  384 Size:    16 [unused]
//   float FC_SSS_ID;                   // Offset:  400 Size:     4 [unused]
//   float4 FC_PhantomEdgeColor;        // Offset:  416 Size:    16 [unused]
//   float4 FC_PhantomFrontColor;       // Offset:  432 Size:    16 [unused]
//   float4 FC_PhantomDiffColor;        // Offset:  448 Size:    16 [unused]
//   float4 FC_PhantomSpecColor;        // Offset:  464 Size:    16 [unused]
//   float4 FC_PhantomLightColor;       // Offset:  480 Size:    16 [unused]
//   float VC_VelocityOffset;           // Offset:  496 Size:     4 [unused]
//   float4 FC_DamagedNormalParam;      // Offset:  512 Size:    16 [unused]
//   float4 FC_DamagedNormalUvTiling;   // Offset:  528 Size:    16 [unused]
//   float4 FC_DamagedNormal2UvTiling;  // Offset:  544 Size:    16 [unused]
//   float4 FC_WetDiffuseColor;         // Offset:  560 Size:    16 [unused]
//   float4 FC_WetParam1;               // Offset:  576 Size:    16 [unused]
//   float4 FC_WetRefrectanceColor;     // Offset:  592 Size:    16 [unused]
//   float4 FC_WetParam2;               // Offset:  608 Size:    16 [unused]
//   float FlowmapVertexOffset_snp_0_float_0_0;// Offset:  624 Size:     4
//   float FlowmapVertexOffset_snp_0_float_1_0;// Offset:  628 Size:     4
//   float FlowmapVertexOffset_snp_0_float_2_0;// Offset:  632 Size:     4 [unused]
//   float FlowmapVertexOffset_snp_0_float_3_0;// Offset:  636 Size:     4 [unused]
//
// }
//
// cbuffer cbPerFrame
// {
//
//   float4 FC_DebugParam;              // Offset:    0 Size:    16 [unused]
//   float4 FC_DebugOutputMode;         // Offset:   16 Size:    16 [unused]
//   float4 FC_DebugParam2;             // Offset:   32 Size:    16 [unused]
//   float FC_GlobalSpecularMask;       // Offset:   48 Size:     4 [unused]
//   float FC_GlobalReflectanceScale;   // Offset:   52 Size:     4 [unused]
//   float FC_GlobalShininessScale;     // Offset:   56 Size:     4 [unused]
//   float FC_GlobalAlbedoOffset;       // Offset:   60 Size:     4 [unused]
//   float4 FC_GlobalRefRectanceRGBScale;// Offset:   64 Size:    16 [unused]
//   float4 FC_GlobalAlbedoOffsetRGB;   // Offset:   80 Size:    16 [unused]
//   float4 FC_SnowDir;                 // Offset:   96 Size:    16 [unused]
//   float4 FC_SnowTilingScale;         // Offset:  112 Size:    16 [unused]
//   float4 FC_SnowAlbedo;              // Offset:  128 Size:    16 [unused]
//   float FC_SnowReflectance;          // Offset:  144 Size:     4 [unused]
//   float FC_GroundPlaneHeight;        // Offset:  148 Size:     4 [unused]
//   float FC_RcpSnowHeightRange;       // Offset:  152 Size:     4 [unused]
//   float FC_SnowNormalScale;          // Offset:  156 Size:     4 [unused]
//   float4 FC_SnowSpakleTinlingScale;  // Offset:  160 Size:    16 [unused]
//   float FC_GlobalTime;               // Offset:  176 Size:     4
//   float FC_DominantSharpnesMinValue; // Offset:  192 Size:     4 [unused]
//   float FC_DominantSharpnesOffset;   // Offset:  196 Size:     4 [unused]
//   float FC_DominantSharpnesExponent; // Offset:  200 Size:     4 [unused]
//   float FC_DominantColorScale;       // Offset:  204 Size:     4 [unused]
//   float4 FC_DominantRgbScale;        // Offset:  208 Size:    16 [unused]
//
// }
//
// cbuffer cbInstanceData
// {
//
//   struct PerInstanceData
//   {
//       
//       float4x3 mWorld;               // Offset:    0
//       float4 atlasUvScaleOffset;     // Offset:   48
//       float4 userClipPlane;          // Offset:   64
//       uint4 matricesData;            // Offset:   80
//       uint envData;                  // Offset:   96
//       bool dynamicLightDisable;      // Offset:  100
//       uint2 envPad;                  // Offset:  104
//       float4 mulCol;                 // Offset:  112
//       float4 aSh[3];                 // Offset:  128
//       float4 ShLightMask;            // Offset:  176
//       float4 vDominantRotateParam;   // Offset:  192
//       float4 parallaxCorrectedCubemapOrigin_envMapInterpRatio;// Offset:  208
//       float4 parallaxCorrectedCubemapAabbMin_envMapColorScale0;// Offset:  224
//       float4 parallaxCorrectedCubemapAabbMax_envMapColorScale1;// Offset:  240
//       float ditherFadeAlpha;         // Offset:  256
//
//   } VC_InstanceData[2];              // Offset:    0 Size:   532
//
// }
//
// cbuffer cbMatrixWVP
// {
//
//   float4x4 VC_MatrixWVP;             // Offset:    0 Size:    64
//   float4x4 VC_PrevMatrixWVP;         // Offset:   64 Size:    64
//   float4x4 VC_NowToPrevView;         // Offset:  128 Size:    64 [unused]
//
// }
//
// cbuffer cbObjMatrix
// {
//
//   float4x3 VC_aObjMatrix[2];         // Offset:    0 Size:    96
//
// }
//
// cbuffer cbPrevObjMatrix
// {
//
//   float4x3 VC_aOldObjMatrix[2];      // Offset:    0 Size:    96
//
// }
//
// cbuffer cbTexScroll
// {
//
//   float4 VC_TexScroll_0;             // Offset:    0 Size:    16
//   float4 VC_TexScroll_1;             // Offset:   16 Size:    16 [unused]
//   float4 VC_TexScroll_2;             // Offset:   32 Size:    16 [unused]
//   float4 VC_TexScroll_3;             // Offset:   48 Size:    16 [unused]
//
// }
//
//
// Resource Bindings:
//
// Name                                 Type  Format         Dim Slot Elements
// ------------------------------ ---------- ------- ----------- ---- --------
// SS_WrapLinear                     sampler      NA          NA    8        1
// FlowmapVertexOffset_snp_0_Texture2D_5    texture  float4          2d    2        1
// cbMatrixWVP                       cbuffer      NA          NA    0        1
// cbTextureTilingScale              cbuffer      NA          NA    1        1
// cbMatDynParam                     cbuffer      NA          NA    2        1
// cbInstanceData                    cbuffer      NA          NA    4        1
// cbObjMatrix                       cbuffer      NA          NA    5        1
// cbPrevObjMatrix                   cbuffer      NA          NA    6        1
// cbPerFrame                        cbuffer      NA          NA    9        1
// cbTexScroll                       cbuffer      NA          NA   11        1
//
//
//
// Input signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// POSITION                 0   xyz         0     NONE   float   xyz 
// NORMAL                   0   xyzw        1     NONE    uint   xyz 
// TANGENT                  0   xyzw        2     NONE    uint       
// BLENDINDICES             0   xyzw        3     NONE    uint   xyzw
// BLENDWEIGHT              0   xyzw        4     NONE   float   xyzw
// TEXCOORD                 0   xy          5     NONE     int   xy  
// TEXCOORD                 1   xyzw        6     NONE   float   x   
//
//
// Output signature:
//
// Name                 Index   Mask Register SysValue  Format   Used
// -------------------- ----- ------ -------- -------- ------- ------
// SV_POSITION              0   xyzw        0      POS   float   xyzw
// TEXCOORD                 0   xyzw        1     NONE   float   xyzw
// TEXCOORD                 1   xyzw        2     NONE   float   xyzw
// TEXCOORD                 2   xyz         3     NONE   float   xyz 
// TEXCOORD                 3   xy          4     NONE   float   xy  
//
vs_5_0
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb1[6], immediateIndexed
dcl_constantbuffer cb2[40], immediateIndexed
dcl_constantbuffer cb9[12], immediateIndexed
dcl_constantbuffer cb4[6], immediateIndexed
dcl_constantbuffer cb0[8], immediateIndexed
dcl_constantbuffer cb5[6], dynamicIndexed
dcl_constantbuffer cb6[6], dynamicIndexed
dcl_constantbuffer cb11[1], immediateIndexed
dcl_sampler s8, mode_default
dcl_resource_texture2d (float,float,float,float) t2
dcl_input v0.xyz
dcl_input v1.xyz
dcl_input v3.xyzw
dcl_input v4.xyzw
dcl_input v5.xy
dcl_input v6.x
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xyzw
dcl_output o3.xyz
dcl_output o4.xy
dcl_temps 7
itof r0.xy, v5.xyxx
mul r0.xy, r0.xyxx, cb11[0].xyxx
mad r0.xy, r0.xyxx, l(0.000488, 0.000488, 0.000000, 0.000000), cb11[0].zwzz
mad r0.zw, cb9[11].xxxx, cb2[39].xxxx, r0.xxxy
mov o4.xy, r0.xyxx
mad r0.xy, r0.zwzz, cb1[5].xyxx, cb1[5].zwzz
sample_l_indexable(texture2d)(float,float,float,float) r0.x, r0.xyxx, t2.xyzw, s8, l(0.000000)
mul r0.y, v6.x, cb2[39].y
mul r0.x, r0.y, r0.x
utof r0.yzw, v1.xxyz
add r0.yzw, r0.yyzw, l(0.000000, -127.000000, -127.000000, -127.000000)
mul r0.yzw, r0.yyzw, l(0.000000, 0.007874, 0.007874, 0.007874)
iadd r1.xyzw, v3.xyzw, cb4[5].xxxx
imul null, r1.xyzw, r1.xyzw, l(3, 3, 3, 3)
dp4 r2.x, l(1.000000, 1.000000, 1.000000, 1.000000), v4.xyzw
max r2.x, r2.x, l(0.001000)
div r2.xyzw, v4.xyzw, r2.xxxx
mul r3.xyzw, r2.yyyy, cb5[r1.y + 0].xyzw
mad r3.xyzw, cb5[r1.x + 0].xyzw, r2.xxxx, r3.xyzw
mad r3.xyzw, cb5[r1.z + 0].xyzw, r2.zzzz, r3.xyzw
mad r3.xyzw, cb5[r1.w + 0].xyzw, r2.wwww, r3.xyzw
dp3 r4.x, r0.yzwy, r3.xyzx
mul r5.xyzw, r2.yyyy, cb5[r1.y + 1].xyzw
mad r5.xyzw, cb5[r1.x + 1].xyzw, r2.xxxx, r5.xyzw
mad r5.xyzw, cb5[r1.z + 1].xyzw, r2.zzzz, r5.xyzw
mad r5.xyzw, cb5[r1.w + 1].xyzw, r2.wwww, r5.xyzw
dp3 r4.y, r0.yzwy, r5.xyzx
mul r6.xyzw, r2.yyyy, cb5[r1.y + 2].xyzw
mad r6.xyzw, cb5[r1.x + 2].xyzw, r2.xxxx, r6.xyzw
mad r6.xyzw, cb5[r1.z + 2].xyzw, r2.zzzz, r6.xyzw
mad r1.xyzw, cb5[r1.w + 2].xyzw, r2.wwww, r6.xyzw
dp3 r4.z, r0.yzwy, r1.xyzx
mov r6.xyz, v0.xyzx
mov r6.w, l(1.000000)
dp4 r3.x, r6.xyzw, r3.xyzw
dp4 r3.y, r6.xyzw, r5.xyzw
dp4 r3.z, r6.xyzw, r1.xyzw
mad r0.xyz, r0.xxxx, r4.xyzx, r3.xyzx
mov o3.xyz, r4.xyzx
mov r0.w, l(1.000000)
dp4 r1.x, r0.xyzw, cb0[0].xyzw
dp4 r1.y, r0.xyzw, cb0[1].xyzw
dp4 r1.z, r0.xyzw, cb0[2].xyzw
dp4 r1.w, r0.xyzw, cb0[3].xyzw
mov o0.xyzw, r1.xyzw
mov o1.xyzw, r1.xyzw
imul null, r0.xyzw, v3.xyzw, l(3, 3, 3, 3)
mul r1.xyzw, r2.yyyy, cb6[r0.y + 0].xyzw
mad r1.xyzw, cb6[r0.x + 0].xyzw, r2.xxxx, r1.xyzw
mad r1.xyzw, cb6[r0.z + 0].xyzw, r2.zzzz, r1.xyzw
mad r1.xyzw, cb6[r0.w + 0].xyzw, r2.wwww, r1.xyzw
dp4 r1.x, r6.xyzw, r1.xyzw
mul r3.xyzw, r2.yyyy, cb6[r0.y + 1].xyzw
mad r3.xyzw, cb6[r0.x + 1].xyzw, r2.xxxx, r3.xyzw
mad r3.xyzw, cb6[r0.z + 1].xyzw, r2.zzzz, r3.xyzw
mad r3.xyzw, cb6[r0.w + 1].xyzw, r2.wwww, r3.xyzw
dp4 r1.y, r6.xyzw, r3.xyzw
mul r3.xyzw, r2.yyyy, cb6[r0.y + 2].xyzw
mad r3.xyzw, cb6[r0.x + 2].xyzw, r2.xxxx, r3.xyzw
mad r3.xyzw, cb6[r0.z + 2].xyzw, r2.zzzz, r3.xyzw
mad r0.xyzw, cb6[r0.w + 2].xyzw, r2.wwww, r3.xyzw
dp4 r1.z, r6.xyzw, r0.xyzw
mov r1.w, l(1.000000)
dp4 o2.x, r1.xyzw, cb0[4].xyzw
dp4 o2.y, r1.xyzw, cb0[5].xyzw
dp4 o2.z, r1.xyzw, cb0[6].xyzw
dp4 o2.w, r1.xyzw, cb0[7].xyzw
ret 
// Approximately 68 instruction slots used

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