// o8 : ghosting in cockpit canopy and cockpit light on panel
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4 g_vAmbientSettings;
//
//
// Registers:
//
//   Name               Reg   Size
//   ------------------ ----- ----
//   g_vAmbientSettings c0       1
//
//
// Default values:
//
//   g_vAmbientSettings
//     c0   = { 0, 0, 0, 0 };
//

    // preshader
    // lt ob0.x, (0.5), c0.y

// approximately 1 instruction used
//
// Generated by Microsoft (R) HLSL Shader Compiler 9.29.952.3111
//
// Parameters:
//
//   float4x4 LightSpace;
//   float4 bones[60];
//   float4 g_aUVShiftData[20];
//   float4x4 g_mCloudsShadowsSpace;
//   float4x4 g_mView;
//   float4x4 g_mViewProj;
//   float3 g_vCamPos;
//   float4 g_vCloudsShadowDesc;
//
//
// Registers:
//
//   Name                  Reg   Size
//   --------------------- ----- ----
//   bones                 c0      60
//   g_aUVShiftData        c60     20
//   g_mViewProj           c80      4
//   LightSpace            c84      4
//   g_mCloudsShadowsSpace c88      3
//   g_mView               c91      3
//   g_vCloudsShadowDesc   c94      1
//   g_vCamPos             c95      1
//
//
// Default values:
//
//   bones
//     c0   = { 0, 0, 0, 0 };
//     c1   = { 0, 0, 0, 0 };
//     c2   = { 0, 0, 0, 0 };
//     c3   = { 0, 0, 0, 0 };
//     c4   = { 0, 0, 0, 0 };
//     c5   = { 0, 0, 0, 0 };
//     c6   = { 0, 0, 0, 0 };
//     c7   = { 0, 0, 0, 0 };
//     c8   = { 0, 0, 0, 0 };
//     c9   = { 0, 0, 0, 0 };
//     c10  = { 0, 0, 0, 0 };
//     c11  = { 0, 0, 0, 0 };
//     c12  = { 0, 0, 0, 0 };
//     c13  = { 0, 0, 0, 0 };
//     c14  = { 0, 0, 0, 0 };
//     c15  = { 0, 0, 0, 0 };
//     c16  = { 0, 0, 0, 0 };
//     c17  = { 0, 0, 0, 0 };
//     c18  = { 0, 0, 0, 0 };
//     c19  = { 0, 0, 0, 0 };
//     c20  = { 0, 0, 0, 0 };
//     c21  = { 0, 0, 0, 0 };
//     c22  = { 0, 0, 0, 0 };
//     c23  = { 0, 0, 0, 0 };
//     c24  = { 0, 0, 0, 0 };
//     c25  = { 0, 0, 0, 0 };
//     c26  = { 0, 0, 0, 0 };
//     c27  = { 0, 0, 0, 0 };
//     c28  = { 0, 0, 0, 0 };
//     c29  = { 0, 0, 0, 0 };
//     c30  = { 0, 0, 0, 0 };
//     c31  = { 0, 0, 0, 0 };
//     c32  = { 0, 0, 0, 0 };
//     c33  = { 0, 0, 0, 0 };
//     c34  = { 0, 0, 0, 0 };
//     c35  = { 0, 0, 0, 0 };
//     c36  = { 0, 0, 0, 0 };
//     c37  = { 0, 0, 0, 0 };
//     c38  = { 0, 0, 0, 0 };
//     c39  = { 0, 0, 0, 0 };
//     c40  = { 0, 0, 0, 0 };
//     c41  = { 0, 0, 0, 0 };
//     c42  = { 0, 0, 0, 0 };
//     c43  = { 0, 0, 0, 0 };
//     c44  = { 0, 0, 0, 0 };
//     c45  = { 0, 0, 0, 0 };
//     c46  = { 0, 0, 0, 0 };
//     c47  = { 0, 0, 0, 0 };
//     c48  = { 0, 0, 0, 0 };
//     c49  = { 0, 0, 0, 0 };
//     c50  = { 0, 0, 0, 0 };
//     c51  = { 0, 0, 0, 0 };
//     c52  = { 0, 0, 0, 0 };
//     c53  = { 0, 0, 0, 0 };
//     c54  = { 0, 0, 0, 0 };
//     c55  = { 0, 0, 0, 0 };
//     c56  = { 0, 0, 0, 0 };
//     c57  = { 0, 0, 0, 0 };
//     c58  = { 0, 0, 0, 0 };
//     c59  = { 0, 0, 0, 0 };
//
//   g_aUVShiftData
//     c60  = { 0, 0, 0, 0 };
//     c61  = { 0, 0, 0, 0 };
//     c62  = { 0, 0, 0, 0 };
//     c63  = { 0, 0, 0, 0 };
//     c64  = { 0, 0, 0, 0 };
//     c65  = { 0, 0, 0, 0 };
//     c66  = { 0, 0, 0, 0 };
//     c67  = { 0, 0, 0, 0 };
//     c68  = { 0, 0, 0, 0 };
//     c69  = { 0, 0, 0, 0 };
//     c70  = { 0, 0, 0, 0 };
//     c71  = { 0, 0, 0, 0 };
//     c72  = { 0, 0, 0, 0 };
//     c73  = { 0, 0, 0, 0 };
//     c74  = { 0, 0, 0, 0 };
//     c75  = { 0, 0, 0, 0 };
//     c76  = { 0, 0, 0, 0 };
//     c77  = { 0, 0, 0, 0 };
//     c78  = { 0, 0, 0, 0 };
//     c79  = { 0, 0, 0, 0 };
//
//   g_mViewProj
//     c80  = { 0, 0, 0, 0 };
//     c81  = { 0, 0, 0, 0 };
//     c82  = { 0, 0, 0, 0 };
//     c83  = { 0, 0, 0, 0 };
//
//   LightSpace
//     c84  = { 0, 0, 0, 0 };
//     c85  = { 0, 0, 0, 0 };
//     c86  = { 0, 0, 0, 0 };
//     c87  = { 0, 0, 0, 0 };
//
//   g_mCloudsShadowsSpace
//     c88  = { 0, 0, 0, 0 };
//     c89  = { 0, 0, 0, 0 };
//     c90  = { 0, 0, 0, 0 };
//
//   g_mView
//     c91  = { 0, 0, 0, 0 };
//     c92  = { 0, 0, 0, 0 };
//     c93  = { 0, 0, 0, 0 };
//
//   g_vCloudsShadowDesc
//     c94  = { 0, 0, 0, 0 };
//
//   g_vCamPos
//     c95  = { 0, 0, 0, 0 };
//

    vs_3_0
    // def c96, 3, 1, 0, 0.5
def c96, 3, 1, 0, 0.5
    def c97, 64, 0.99000001, 0.00390625, 256
    def c98, 0.00392156886, 0, 0, 0
    dcl_position v0
    dcl_normal v1
    dcl_texcoord v2
    dcl_blendindices v3
    dcl_position o0
    dcl_texcoord o1.xy
    dcl_texcoord1 o2.xyz
    dcl_texcoord2 o3
    dcl_texcoord3 o4.xyz
    dcl_texcoord4 o5.xyz
    dcl_texcoord5 o6.xyz
    dcl_texcoord6 o7.xyz
    dcl_texcoord7 o8
    dcl_color o9.xy
    mul r0.x, c96.x, v3.x
    frc r0.x, r0.x
    mad r0.x, v3.x, c96.x, -r0.x
    mova a0.x, r0.x
    dp3 r0.z, v1, c2[a0.x]
    mov r1.w, c96.y
    mad r2, v0.xyzx, c96.yyyz, c96.zzzy
    dp4 r1.z, r2, c2[a0.x]
    dp4 r1.x, r2, c0[a0.x]
    dp4 r1.y, r2, c1[a0.x]
    add r2.xyz, -r1, c95
    dp3 r0.w, r2, r2
    rsq r0.w, r0.w
    mul o5.xyz, r0.w, r2
    frc r0.w, v3.x
    add r0.w, -r0.w, v3.x
    dp4 r2.x, r1, c80
    dp4 r2.y, r1, c81
    dp4 r2.z, r1, c82
    dp4 r2.w, r1, c83
    mova a0.y, r0.w
    mov r3.zw, c60[a0.y]
    if_ge r3.z, c97.y
      mov o0, c96.z
    else
      mov o0, r2
    endif
    mov o2.z, c60[a0.y].z
    mov o6.xyz, r1
    dp4 r0.w, r1, c87
    add r3.xy, v2, c60[a0.y]
    mov o1.xy, r3
    mov o3.w, r0.w
    dp3 r0.x, v1, c0[a0.x]
    dp3 r0.y, v1, c1[a0.x]
    nrm r4.xyz, r0
    if b0
      dp3 r2.x, r4, c91
      dp3 r2.y, r4, c92
      dp3 r2.z, r4, c93
    else
      add r0.x, r2.w, r2.x
      mul r2.x, r0.x, c96.w
      add r0.x, -r2.y, r2.w
      mul r2.y, r0.x, c96.w
    endif
    mov o8, r2
    mov o7.xyz, r4
    dp4 o4.x, r1, c88
    dp4 r0.x, r1, c89
    add r0.x, r0.x, -c94.x
    mov r0.y, c96.y
    mad_sat o4.z, r0.x, -c94.y, r0.y
    dp4 o4.y, r1, c90
    dp4 r0.x, r1, c84
    add r0.x, r0.w, r0.x
    mul o3.x, r0.x, c96.w
    dp4 r0.x, r1, c85
    add r0.x, -r0.x, r0.w
    mul o3.y, r0.x, c96.w
    dp4 o3.z, r1, c86
    mul r0.x, r3.w, c97.z
    frc r0.y, r0.x
    add r0.x, -r0.y, r0.x
    mul o9.y, r0.x, c98.x
    mul o2.xy, r3, c97.x
    mad r0.x, r0.x, -c97.w, r3.w
    mul o9.x, r0.x, c98.x

// desactivate o8 regarding value of c221.z (const3)
mov r5.z, c221.z
if_ne r5.z, c96.z
mov o8, c96.zzzz
endif
// approximately 74 instruction slots used
