/******************************************************************************
 * 013_GenM.cxx : file automaticly generated
 ******************************************************************************/

#include "gamedata\world\levels\_common\cfast\013_GenM.h"
void CFast_YAM_GenMenu_Rfx_YAM_GestionMenuStandard (void) ;
void CFast_YAM_GenMenu_Rfx_YAM_NeRienFaire (void) ;
void CFast_YAM_GenMenu_Rfx_YAM_GestionNomSlot (void) ;
void CFast_YAM_GenMenu_Rfx_YAM_GestionMenuYesNo (void) ;
void CFast_YAM_GenMenu_Rfx_YAM_GestionModifValeur (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_AttenteActivation (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_Desactivation (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuPrincipal (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuOptions (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuSound (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuVideo (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuLangue (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuSave (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuChangeSlot (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuYesNo (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuLoad (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuStart (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuChangeValeur (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuCentre (void) ;
void CFast_YAM_GenMenu_Cmp_YAM_MenuCheats (void) ;

long CFast_YAM_GenMenu_Macro_0 (void) ;
long CFast_YAM_GenMenu_Macro_1 (void) ;
long CFast_YAM_GenMenu_Macro_2 (void) ;
long CFast_YAM_GenMenu_Macro_3 (void) ;
long CFast_YAM_GenMenu_Macro_4 (void) ;
long CFast_YAM_GenMenu_Macro_5 (void) ;
long CFast_YAM_GenMenu_Macro_6 (void) ;
long CFast_YAM_GenMenu_Macro_7 (void) ;
long CFast_YAM_GenMenu_Macro_8 (void) ;
long CFast_YAM_GenMenu_Macro_9 (void) ;
long CFast_YAM_GenMenu_Macro_10 (void) ;
long CFast_YAM_GenMenu_Macro_11 (void) ;
long CFast_YAM_GenMenu_Macro_12 (void) ;
long CFast_YAM_GenMenu_Macro_13 (void) ;
long CFast_YAM_GenMenu_Macro_14 (void) ;
long CFast_YAM_GenMenu_Macro_15 (void) ;
long CFast_YAM_GenMenu_Macro_16 (void) ;
long CFast_YAM_GenMenu_Macro_17 (void) ;
CFast_EvalFunc CFast_YAM_GenMenu_ArrayReflex[] = {
  CFast_YAM_GenMenu_Rfx_YAM_GestionMenuStandard,
  CFast_YAM_GenMenu_Rfx_YAM_NeRienFaire,
  CFast_YAM_GenMenu_Rfx_YAM_GestionNomSlot,
  CFast_YAM_GenMenu_Rfx_YAM_GestionMenuYesNo,
  CFast_YAM_GenMenu_Rfx_YAM_GestionModifValeur
};
CFast_EvalFunc CFast_YAM_GenMenu_ArrayComport[] = { 
  CFast_YAM_GenMenu_Cmp_YAM_AttenteActivation,
  CFast_YAM_GenMenu_Cmp_YAM_Desactivation,
  CFast_YAM_GenMenu_Cmp_YAM_MenuPrincipal,
  CFast_YAM_GenMenu_Cmp_YAM_MenuOptions,
  CFast_YAM_GenMenu_Cmp_YAM_MenuSound,
  CFast_YAM_GenMenu_Cmp_YAM_MenuVideo,
  CFast_YAM_GenMenu_Cmp_YAM_MenuLangue,
  CFast_YAM_GenMenu_Cmp_YAM_MenuSave,
  CFast_YAM_GenMenu_Cmp_YAM_MenuChangeSlot,
  CFast_YAM_GenMenu_Cmp_YAM_MenuYesNo,
  CFast_YAM_GenMenu_Cmp_YAM_MenuLoad,
  CFast_YAM_GenMenu_Cmp_YAM_MenuStart,
  CFast_YAM_GenMenu_Cmp_YAM_MenuChangeValeur,
  CFast_YAM_GenMenu_Cmp_YAM_MenuCentre,
  CFast_YAM_GenMenu_Cmp_YAM_MenuCheats
};

void CFast_Dummy_YAM_GenMenu(void) ;
char g_YAM_GenMenu_StaticTreeInit = 0 ;


void CFast_YAM_GenMenu_Main ( HIE_tdxHandleToSuperObject hSuperObjPerso ) {
  register long                lIndex ;
   register AI_tdstMind         *p_stMind = M_pstGetMindOfBrain(M_GetMSHandle(hSuperObjPerso, Brain)) ;

  p_stGlobalMind = p_stMind;
  gp_stRefTree = &M_CFast_GetReferenceNodeN(hSuperObjPerso, 0);
  g_hSuperObjectPerso = hSuperObjPerso;

#ifndef U64
  gp_stPseudoTree = p_stMind->p_stAIModel->CFast_dst_ParamArray;
#else
  gp_stPseudoTree = CFast_gast_ArrayFunctions[p_stMind->p_stAIModel->CFast_lFunction].mp_stPseudoTree;
#endif

#ifdef DEBUG_CFAST
  if ( !g_YAM_GenMenu_StaticTreeInit ) {
    g_YAM_GenMenu_StaticTreeInit = 1 ;
    CFast_Dummy_YAM_GenMenu();
  }
#endif /* DEBUG_CFAST */
  p_cGlobalDsgMemBuffer = p_stMind->p_stDsgMem->p_cDsgMemBuffer;
  p_stGlobalDsgVarInfo = (*(p_stMind->p_stDsgMem->p_p_stDsgVar))->p_stDsgVarInfo;
  CFast_g_bMetaActionInRfx = 0 ;
  AI_M_SetDoingIntel(p_stMind, 0) ;
  CFast_g_bProcessReflex = 1 ;
  lIndex = M_GetCurrentComport(AI_M_p_stGetReflex(p_stMind))->CFast_lMyIndex ;
  CFast_YAM_GenMenu_ArrayReflex[lIndex]();

  if ( !CFast_g_bMetaActionInRfx  ) {
    AI_M_SetDoingIntel(p_stMind, 1) ;
    CFast_g_bProcessReflex = 0 ;
    lIndex = M_GetCurrentComport(AI_M_p_stGetIntelligence(p_stMind))->CFast_lMyIndex ;
    CFast_YAM_GenMenu_ArrayComport[lIndex]();
  }
}
/*
 * Model : YAM_GenMenu Reflexe YAM_GestionMenuStandard
 */
void CFast_YAM_GenMenu_Rfx_YAM_GestionMenuStandard (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  CFast_YAM_GenMenu_Macro_0 () ;
/* [BeginMacro : 9] ********** [0]*/
/* [EndTree] ************ [0]*/
  CFast_YAM_GenMenu_Macro_1 () ;
/* [BeginMacro : 19] ********** [0]*/
/* [EndTree] ************ [0]*/
  MTH3D_M_vSetVectorElements(&stVector0, LocalCFast_fn_xGetDsgVarFloat(31), LocalCFast_fn_xGetDsgVarFloat(32), MTH_M_xFloatToReal(0.00000f)) ;
  LocalCFast_fn_vSetDsgVarVector(62, &stVector0) ;
  M_GetSetParam_xValue(&CFast_g_a_stParam[2]) = MTH3D_M_xNormVector(((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 62))));
  M_GetSetParam_Type(&CFast_g_a_stParam[2]) = E_vt_Float;

/* [Cond : >] ********** [2, 2, 1]*/
  if ( MTH_M_bGreater(M_GetSetParam_xValue(&CFast_g_a_stParam[2]), MTH_M_xFloatToReal(50.000000f)) ) {

/* [Cond : ACT_TestCustomBit] ********** [1, 1, 1]*/
    if ( !( CFast_CallCondition_Static(0) ) ) {
      if (MTH3D_M_bIsNullVector(((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 62))))) {
        MTH3D_M_vCopyVector(&M_GetSetParam_stVectorValue(&CFast_g_a_stParam[1]), ((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 62))));
      } else {
        MTH3D_M_vNormalizeVector(&M_GetSetParam_stVectorValue(&CFast_g_a_stParam[1]), ((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 62))));
      }
      M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Vector;
      LocalCFast_fn_vSetDsgVarVector(62, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1)) ;
      LocalCFast_fn_vSetDsgVarFloat(59, 0) ;
      LocalCFast_fn_vSetDsgVarFloat(60, 0) ;
      LocalCFast_fn_vSetDsgVarFloat(61, 0) ;

/* [Cond : >] ********** [2, 2, 1]*/
      if ( MTH_M_bGreater(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 20))))), MTH_M_xFloatToReal(0.000000f)) ) {
        LocalCFast_fn_vSetDsgVarInteger(64, 0) ;

/* [Proc : Boucle] *********** [1, 1, 0]*/
        {
          int i0;
for ( i0=(*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 20)))) ; i0>0 ; i0-- ) { /* Boucle 0 */

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : >] ********** [4, 2, 2]*/
          M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)7 ;

/* [Op : [] ********** [0, 2, 0]*/
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
          M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 14 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 64 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Real);
          M_xValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = MTH_M_xFloatToReal(1.000000f) ;
          long1 = CFast_CallCondition_NoStatic( ) ;
          if ( long1 ) {

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : <>] ********** [4, 2, 3]*/
            M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)5 ;

/* [Op : [] ********** [0, 2, 0]*/
            M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
            M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 14 ;
            M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 64 ;
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
            M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 4 ;
            long1 = CFast_CallCondition_NoStatic( ) ;
          }
          if ( long1 ) {
            LocalCFast_fn_vSetDsgVarFloat(60, (CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(64)) - CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18)))) ;
            LocalCFast_fn_vSetDsgVarFloat(61, (CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(64)) - CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18)))) ;
            MTH3D_M_vSetVectorElements(&stVector0, LocalCFast_fn_xGetDsgVarFloat(60), LocalCFast_fn_xGetDsgVarFloat(61), MTH_M_xFloatToReal(0.00000f)) ;
            LocalCFast_fn_vSetDsgVarVector(63, &stVector0) ;
            M_GetSetParam_xValue(&CFast_g_a_stParam[1]) = MTH3D_M_xNormVector(((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 63))));
            M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Float;
            LocalCFast_fn_vSetDsgVarFloat(57, M_GetSetParam_xValue(CFast_g_a_stParam+1)) ;

/* [Cond : <] ********** [2, 2, 1]*/
            if ( MTH_M_bLess((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 57)))), MTH_M_xFloatToReal(10.000000f)) ) {
              LocalCFast_fn_vSetDsgVarFloat(57, 1000) ;
            }
            if (MTH3D_M_bIsNullVector(((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 63))))) {
              MTH3D_M_vCopyVector(&M_GetSetParam_stVectorValue(&CFast_g_a_stParam[1]), ((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 63))));
            } else {
              MTH3D_M_vNormalizeVector(&M_GetSetParam_stVectorValue(&CFast_g_a_stParam[1]), ((MTH3D_tdstVector *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 63))));
            }
            M_GetSetParam_Type(&CFast_g_a_stParam[1]) = E_vt_Vector;
            LocalCFast_fn_vSetDsgVarVector(63, &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1)) ;

/* [Func : VEC_ProduitScalaire] ********** [2, 2, 1]*/
            CFast_CallFunction1_Static( 2 ) ;
            LocalCFast_fn_vSetDsgVarFloat(58, M_GetSetParam_xValue(CFast_g_a_stParam+1)) ;
            LocalCFast_fn_vSetDsgVarFloat(58, MTH_M_xDiv(LocalCFast_fn_xGetDsgVarFloat(58),MTH_M_xDiv(LocalCFast_fn_xGetDsgVarFloat(57),MTH_M_xFloatToReal(250.00000f)))) ;

/* [Cond : >] ********** [2, 2, 1]*/
            if ( MTH_M_bGreater((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 58)))), (*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 59))))) ) {
              LocalCFast_fn_vSetDsgVarFloat(59, LocalCFast_fn_xGetDsgVarFloat(58)) ;
              LocalCFast_fn_vSetDsgVarInteger(65, LocalCFast_fn_lGetDsgVarInteger(64)) ;
            }
          }
          LocalCFast_fn_vSetDsgVarInteger(64, (LocalCFast_fn_lGetDsgVarInteger(64)+1)) ;

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
          }
}

/* [Cond : <>] ********** [2, 2, 1]*/
        if ( MTH_M_bDifferent((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 59)))), MTH_M_xFloatToReal(0.000000f)) ) {
          LocalCFast_fn_vSetDsgVarBoolean(10, 0) ;
          if (CFast_YAM_GenMenu_Macro_2 ())
            return ;
/* [BeginMacro : 24] ********** [0]*/
          LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(65)) ;
          LocalCFast_fn_vSetDsgVarFloat(70, 100) ;
          LocalCFast_fn_vSetDsgVarInteger(71, 4) ;
          LocalCFast_fn_vSetDsgVarBoolean(10, 1) ;
          LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
          LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
          if (CFast_YAM_GenMenu_Macro_2 ())
            return ;
/* [BeginMacro : 24] ********** [0]*/
        }
      }

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
      CFast_CallProcedure_Static( 5 ) ;
    }
  }
  else {

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
    CFast_CallProcedure_Static( 8 ) ;
  }
/* [EndTree] ************ [0]*/
}

long CFast_YAM_GenMenu_Macro_0 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  LocalCFast_fn_vSetDsgVarPerso(51, CFast_fn_hGetDsgVarPersoArray(17,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;

/* [Cond : ObjetValide] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(11) ) {

/* [Cond : =] ********** [2, 2, 1]*/
    if ( MTH_M_bEqual((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 70)))), MTH_M_xFloatToReal(60.000000f)) ) {
      LocalCFast_fn_vSetDsgVarInteger(71, 4) ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( MTH_M_bEqual((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 70)))), MTH_M_xFloatToReal(140.000000f)) ) {
      LocalCFast_fn_vSetDsgVarInteger(71, -4) ;
    }
    LocalCFast_fn_vSetDsgVarFloat(70, MTH_M_xAdd(LocalCFast_fn_xGetDsgVarFloat(70),MTH_M_xLongToReal(LocalCFast_fn_lGetDsgVarInteger(71)))) ;
    M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 70)))),MTH_M_xLongToReal(100)));

/* [Vector] *********** [3, 3, 1]*/
      M_lValueInterpret(p_stPseudoTree+16) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
    CFast_CallVector1_Static (13) ;

/* [Op : ..] ********** [2, 1, 0]*/

/* [Proc : ACT_DeformePerso] *********** [3, 2, 0]*/
    CFast_fn_vSetUltraOperatorPersoVar(51);
      M_p_stVectorInterpret(p_stPseudoTree+18) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 17 ) ;
  }
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_1 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  LocalCFast_fn_vSetDsgVarFloat(31, 0) ;
  LocalCFast_fn_vSetDsgVarFloat(32, 0) ;
  LocalCFast_fn_vSetDsgVarBoolean(33, 0) ;
  LocalCFast_fn_vSetDsgVarBoolean(34, 0) ;
  LocalCFast_fn_vSetDsgVarBoolean(35, 0) ;
  LocalCFast_fn_vSetDsgVarBoolean(36, 0) ;

/* [Cond : BoutonAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+0)) ) {

/* [Func : PAD_LitValeurAnalogiqueEntree] ********** [1, 1, 1]*/
    CFast_CallFunction1_Static( 19 ) ;
    LocalCFast_fn_vSetDsgVarFloat(32, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    LocalCFast_fn_vSetDsgVarBoolean(33, 1) ;

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
    CFast_CallFunction1_Static( 21 ) ;
    LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+1)) ) {

/* [Func : PAD_LitValeurAnalogiqueEntree] ********** [1, 1, 1]*/
    CFast_CallFunction1_Static( 22 ) ;
    LocalCFast_fn_vSetDsgVarFloat(32, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    LocalCFast_fn_vSetDsgVarBoolean(34, 1) ;

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
    CFast_CallFunction1_Static( 21 ) ;
    LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+2)) ) {

/* [Func : PAD_LitValeurAnalogiqueEntree] ********** [1, 1, 1]*/
    CFast_CallFunction1_Static( 24 ) ;
    LocalCFast_fn_vSetDsgVarFloat(31, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    LocalCFast_fn_vSetDsgVarBoolean(36, 1) ;

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
    CFast_CallFunction1_Static( 21 ) ;
    LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+3)) ) {

/* [Func : PAD_LitValeurAnalogiqueEntree] ********** [1, 1, 1]*/
    CFast_CallFunction1_Static( 26 ) ;
    LocalCFast_fn_vSetDsgVarFloat(31, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    LocalCFast_fn_vSetDsgVarBoolean(35, 1) ;

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
    CFast_CallFunction1_Static( 21 ) ;
    LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
  }
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_2 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  LocalCFast_fn_vSetDsgVarPerso(51, CFast_fn_hGetDsgVarPersoArray(17,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;

/* [Cond : ObjetValide] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(11) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 28 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
      CFast_g_bMetaActionInRfx = 1 ;
      return (1) ;
    }
  }
  (LocalCFast_fn_p_stGetDsgVarVector(56))->xX = MTH_M_xLongToReal(CFast_fn_lGetDsgVarIntegerArray(12,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(CFast_fn_lGetDsgVarIntegerArray(13,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 72)))) ) {
    (LocalCFast_fn_p_stGetDsgVarVector(56))->xZ= MTH_M_xLongToReal(LocalCFast_fn_lGetDsgVarInteger(3)) ;
    LocalCFast_fn_vSetDsgVarBoolean(72, 0) ;
  }
  else {
    (LocalCFast_fn_p_stGetDsgVarVector(56))->xZ= MTH_M_xLongToReal(LocalCFast_fn_lGetDsgVarInteger(2)) ;
  }

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 14 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 18 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 3 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {
    LocalCFast_fn_vSetDsgVarBoolean(9, 1) ;
  }
  else {
    LocalCFast_fn_vSetDsgVarBoolean(9, 0) ;
  }
  LocalCFast_fn_vSetDsgVarPerso(51, NULL) ;

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 10)))) == 1 ) {

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_FormateTexte] *********** [5, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
    M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/o240:/w300:" ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 18 ;
    CFast_memcpy ( 4, 5, 4) ;
    CFast_CallProcedure_NoStatic( ) ;
  }
  else {

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 9)))) == 1 ) {

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_FormateTexte] *********** [5, 3, 0]*/
      M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
      M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/o180:/w300:" ;

/* [Op : [] ********** [0, 2, 0]*/
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 18 ;
      CFast_memcpy ( 4, 5, 4) ;
      CFast_CallProcedure_NoStatic( ) ;
    }
    else {

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_FormateTexte] *********** [5, 3, 0]*/
      M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
      M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/o0:/w300:" ;

/* [Op : [] ********** [0, 2, 0]*/
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 18 ;
      CFast_memcpy ( 4, 5, 4) ;
      CFast_CallProcedure_NoStatic( ) ;
    }
  }

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
  CFast_CallFunction1_Static( 30 ) ;
  LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
  CFast_fn_vSetDsgVarPersoArray(17,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18),LocalCFast_fn_hGetDsgVarPerso(51)) ;
  return (0) ;
}
/*
 * Model : YAM_GenMenu Reflexe YAM_NeRienFaire
 */
void CFast_YAM_GenMenu_Rfx_YAM_NeRienFaire (void) {
}

/*
 * Model : YAM_GenMenu Reflexe YAM_GestionNomSlot
 */
void CFast_YAM_GenMenu_Rfx_YAM_GestionNomSlot (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lRfxMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  case 4 : goto label4 ;
  }
  CFast_YAM_GenMenu_Macro_1 () ;
/* [BeginMacro : 19] ********** [0]*/
/* [EndTree] ************ [0]*/

/* [Cond : =] ********** [2, 2, 2]*/
  long1 = (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 33)))) == 1 ? 1 : 0;
if ( long1 ) {
    M_GetSetParam_xValue(&CFast_g_a_stParam[4]) = MTH_M_xAbs((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 32))))) ;
    M_GetSetParam_Type(&CFast_g_a_stParam[4]) = E_vt_Float;

/* [Math_ : Math_ValeurAbsolue] ********** [0, 1, 4]*/

/* [Cond : >] ********** [2, 2, 3]*/
    long1 = MTH_M_bGreater(M_GetSetParam_xValue(&CFast_g_a_stParam[4]), MTH_M_xFloatToReal(60.000000f)) ? 1 : 0;
  }
  if ( long1 ) {
    LocalCFast_fn_vSetDsgVarInteger(49, (LocalCFast_fn_lGetDsgVarInteger(49)+1)) ;

/* [Cond : >] ********** [2, 2, 2]*/
    long1 = MTH_M_bGreater(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49))))), MTH_M_xFloatToReal(90.000000f)) ? 1 : 0;
    if ( !long1 ) {

/* [Cond : =] ********** [2, 2, 3]*/
      long1 = (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49)))) == 33 ? 1 : 0;
    }
    if ( long1 ) {
      LocalCFast_fn_vSetDsgVarInteger(49, 48) ;
    }
    else {

/* [Cond : >] ********** [2, 2, 2]*/
      long1 = MTH_M_bGreater(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49))))), MTH_M_xFloatToReal(57.000000f)) ? 1 : 0;
if ( long1 ) {

/* [Cond : <] ********** [2, 2, 3]*/
        long1 = MTH_M_bLess(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49))))), MTH_M_xFloatToReal(65.000000f)) ? 1 : 0;
      }
      if ( long1 ) {
        LocalCFast_fn_vSetDsgVarInteger(49, 65) ;
      }
    }

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_ChangeCaractere] *********** [6, 4, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)421 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][1]) = 51 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 18 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][5], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 50 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][6], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[4][6]) = 49 ;
    CFast_CallProcedure_NoStatic( ) ;

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 36 ) ;
    p_stLocalMind0->CFast_lRfxMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
          CFast_g_bMetaActionInRfx = 1 ;
  return ;
    }
    p_stLocalMind0->CFast_lRfxMetaAction = 0;
  }
  else {

/* [Cond : =] ********** [2, 2, 2]*/
    long1 = (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 34)))) == 1 ? 1 : 0;
if ( long1 ) {
      M_GetSetParam_xValue(&CFast_g_a_stParam[4]) = MTH_M_xAbs((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 32))))) ;
      M_GetSetParam_Type(&CFast_g_a_stParam[4]) = E_vt_Float;

/* [Math_ : Math_ValeurAbsolue] ********** [0, 1, 4]*/

/* [Cond : >] ********** [2, 2, 3]*/
      long1 = MTH_M_bGreater(M_GetSetParam_xValue(&CFast_g_a_stParam[4]), MTH_M_xFloatToReal(60.000000f)) ? 1 : 0;
    }
    if ( long1 ) {
      LocalCFast_fn_vSetDsgVarInteger(49, (LocalCFast_fn_lGetDsgVarInteger(49)-1)) ;

/* [Cond : <] ********** [2, 2, 2]*/
      long1 = MTH_M_bLess(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49))))), MTH_M_xFloatToReal(65.000000f)) ? 1 : 0;
if ( long1 ) {

/* [Cond : >] ********** [2, 2, 3]*/
        long1 = MTH_M_bGreater(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49))))), MTH_M_xFloatToReal(57.000000f)) ? 1 : 0;
      }
      if ( long1 ) {
        LocalCFast_fn_vSetDsgVarInteger(49, 57) ;
      }
      else {

/* [Cond : <] ********** [2, 2, 2]*/
        long1 = MTH_M_bLess(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49))))), MTH_M_xFloatToReal(48.000000f)) ? 1 : 0;
        if ( !long1 ) {

/* [Cond : =] ********** [2, 2, 3]*/
          long1 = (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 49)))) == 31 ? 1 : 0;
        }
        if ( long1 ) {
          LocalCFast_fn_vSetDsgVarInteger(49, 90) ;
        }
      }

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_ChangeCaractere] *********** [6, 4, 0]*/
      M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)421 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][1]) = 51 ;

/* [Op : [] ********** [0, 2, 0]*/
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 18 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][5], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][5]) = 50 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][6], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][6]) = 49 ;
      CFast_CallProcedure_NoStatic( ) ;

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
      CFast_CallMetaActionInit_Static( 36 ) ;
      p_stLocalMind0->CFast_lRfxMetaAction = 2;
label2 :
      if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
              CFast_g_bMetaActionInRfx = 1 ;
  return ;
      }
      p_stLocalMind0->CFast_lRfxMetaAction = 0;
    }
    else {
      if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 35)))) ) {

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_NiveauTransparence2] *********** [4, 3, 0]*/
        CFast_fn_vSetUltraOperatorPersoVar(51);
        CFast_CallProcedure_Static( 38 ) ;

/* [Cond : <] ********** [2, 2, 1]*/
        if ( MTH_M_bLess(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 50))))), MTH_M_xFloatToReal(2.000000f)) ) {
          LocalCFast_fn_vSetDsgVarInteger(50, (LocalCFast_fn_lGetDsgVarInteger(50)+1)) ;
        }
        else {
          LocalCFast_fn_vSetDsgVarInteger(50, 0) ;
        }

/* [Op : [] ********** [2, 2, 0]*/

/* [Func : TEXT_LettreDuTexteALaPosition] ********** [4, 2, 1]*/
        M_eFuncIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Function][0]) = (tdeFuncId)213 ;

/* [Op : [] ********** [0, 2, 0]*/
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][1], E_ti_Operator);
        M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[3][1]) = (tdeOperatorId)26 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][2], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[3][2]) = 11 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][3], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[3][3]) = 18 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][4], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[3][4]) = 50 ;
        CFast_CallFunction1_NoStatic( ) ;
        LocalCFast_fn_vSetDsgVarInteger(49, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_NiveauTransparence2] *********** [4, 3, 0]*/
        CFast_fn_vSetUltraOperatorPersoVar(51);
        CFast_CallProcedure_Static( 41 ) ;

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
        CFast_CallMetaActionInit_Static( 44 ) ;
        p_stLocalMind0->CFast_lRfxMetaAction = 3;
label3 :
        if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
                  CFast_g_bMetaActionInRfx = 1 ;
  return ;
        }
        p_stLocalMind0->CFast_lRfxMetaAction = 0;
      }
      else {
        if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 36)))) ) {

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_NiveauTransparence2] *********** [4, 3, 0]*/
          CFast_fn_vSetUltraOperatorPersoVar(51);
          CFast_CallProcedure_Static( 38 ) ;

/* [Cond : >] ********** [2, 2, 1]*/
          if ( MTH_M_bGreater(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 50))))), MTH_M_xFloatToReal(0.000000f)) ) {
            LocalCFast_fn_vSetDsgVarInteger(50, (LocalCFast_fn_lGetDsgVarInteger(50)-1)) ;
          }
          else {
            LocalCFast_fn_vSetDsgVarInteger(50, 2) ;
          }

/* [Op : [] ********** [2, 2, 0]*/

/* [Func : TEXT_LettreDuTexteALaPosition] ********** [4, 2, 1]*/
          M_eFuncIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Function][0]) = (tdeFuncId)213 ;

/* [Op : [] ********** [0, 2, 0]*/
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][1], E_ti_Operator);
          M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[3][1]) = (tdeOperatorId)26 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][2], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[3][2]) = 11 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][3], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[3][3]) = 18 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][4], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[3][4]) = 50 ;
          CFast_CallFunction1_NoStatic( ) ;
          LocalCFast_fn_vSetDsgVarInteger(49, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_NiveauTransparence2] *********** [4, 3, 0]*/
          CFast_fn_vSetUltraOperatorPersoVar(51);
          CFast_CallProcedure_Static( 41 ) ;

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
          CFast_CallMetaActionInit_Static( 44 ) ;
          p_stLocalMind0->CFast_lRfxMetaAction = 4;
label4 :
          if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
                      CFast_g_bMetaActionInRfx = 1 ;
  return ;
          }
          p_stLocalMind0->CFast_lRfxMetaAction = 0;
        }
      }
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Reflexe YAM_GestionMenuYesNo
 */
void CFast_YAM_GenMenu_Rfx_YAM_GestionMenuYesNo (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  CFast_YAM_GenMenu_Macro_1 () ;
/* [BeginMacro : 19] ********** [0]*/
/* [EndTree] ************ [0]*/
  if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 38)))) ) {
    (LocalCFast_fn_p_stGetDsgVarVector(56))->xX = MTH_M_xLongToReal(80) ;
    (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(800) ;
    (LocalCFast_fn_p_stGetDsgVarVector(56))->xZ= MTH_M_xLongToReal(LocalCFast_fn_lGetDsgVarInteger(2)) ;
    LocalCFast_fn_vSetDsgVarBoolean(37, 0) ;
    LocalCFast_fn_vSetDsgVarBoolean(38, 1) ;
    LocalCFast_fn_vSetDsgVarPerso(51, NULL) ;
    LocalCFast_fn_vSetDsgVarInteger(55, 0) ;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 39)))) == 0 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 46 ) ;
    }
    else {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 46 ) ;
    }

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
    CFast_CallFunction1_Static( 50 ) ;
    LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    LocalCFast_fn_vSetDsgVarBoolean(38, 0) ;
  }
/* [EndTree] ************ [0]*/
  long1 = (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 35))));
  if ( !long1 ) {
    long1 = (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 36))));
  }
  if ( !long1 ) {
    long1 = (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 34))));
    if ( !long1 ) {
      long1 = (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 33))));
    }
  }
  if ( long1 ) {

/* [Cond : ACT_TestCustomBit] ********** [1, 1, 1]*/
    if ( !( CFast_CallCondition_Static(0) ) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
      fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
      CFast_CallProcedure_Static( 28 ) ;
      if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
        CFast_g_bMetaActionInRfx = 1 ;
        return ;
      }
      LocalCFast_fn_vSetDsgVarPerso(51, NULL) ;
      LocalCFast_fn_vSetDsgVarInteger(55, 0) ;
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xX = MTH_M_xLongToReal(80) ;
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(800) ;
      if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 37)))) ) {
        LocalCFast_fn_vSetDsgVarBoolean(37, 0) ;

/* [Cond : =] ********** [2, 2, 1]*/
        if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 39)))) == 0 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
          CFast_CallProcedure_Static( 46 ) ;
        }
        else {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
          CFast_CallProcedure_Static( 46 ) ;
        }
      }
      else {
        LocalCFast_fn_vSetDsgVarBoolean(37, 1) ;

/* [Cond : =] ********** [2, 2, 1]*/
        if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 39)))) == 0 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
          CFast_CallProcedure_Static( 56 ) ;
        }
        else {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
          CFast_CallProcedure_Static( 56 ) ;
        }
      }

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
      CFast_CallFunction1_Static( 50 ) ;
      LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
      CFast_CallProcedure_Static( 5 ) ;
    }
  }
  else {

/* [Proc : ACT_ChangeCustomBit] *********** [2, 2, 0]*/
    CFast_CallProcedure_Static( 8 ) ;
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Reflexe YAM_GestionModifValeur
 */
void CFast_YAM_GenMenu_Rfx_YAM_GestionModifValeur (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  CFast_YAM_GenMenu_Macro_1 () ;
/* [BeginMacro : 19] ********** [0]*/
/* [EndTree] ************ [0]*/
  CFast_YAM_GenMenu_Macro_0 () ;
/* [BeginMacro : 9] ********** [0]*/
/* [EndTree] ************ [0]*/
  if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 36)))) ) {

/* [Cond : >] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41)))) > (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 43)))) ) {
      M_Full_GetSetParam_Float(&CFast_g_a_stParam[3], MTH_M_xDiv((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 31)))),MTH_M_xLongToReal(20)));
      M_GetSetParam_lValue(&CFast_g_a_stParam[2]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[3])) ;
      M_GetSetParam_Type(&CFast_g_a_stParam[2]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [0, 1, 2]*/
      LocalCFast_fn_vSetDsgVarInteger(41, (LocalCFast_fn_lGetDsgVarInteger(41)+M_GetSetParam_lValue(CFast_g_a_stParam+2))) ;

/* [Cond : <] ********** [2, 2, 1]*/
      if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41)))) < (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 43)))) ) {
        LocalCFast_fn_vSetDsgVarInteger(41, LocalCFast_fn_lGetDsgVarInteger(43)) ;
      }

/* [Cond : =] ********** [2, 2, 1]*/
      if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 42)))) == 0 ) {

/* [Vector] *********** [4, 3, 1]*/
        CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
        CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+66) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
          M_p_stVectorInterpret(p_stPseudoTree+67) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        CFast_CallProcedure_Static( 64 ) ;
        M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
          M_lValueInterpret(p_stPseudoTree+73) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
        CFast_CallVector1_Static (70) ;

/* [Vector] *********** [5, 3, 2]*/
        CFast_CallVector2_Static (74) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+80) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
          M_p_stVectorInterpret(p_stPseudoTree+81) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        CFast_CallProcedure_Static( 78 ) ;
      }
      else {

/* [Vector] *********** [4, 3, 1]*/
        CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
        CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+86) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
          M_p_stVectorInterpret(p_stPseudoTree+87) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        CFast_CallProcedure_Static( 84 ) ;
        M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
          M_lValueInterpret(p_stPseudoTree+93) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
        CFast_CallVector1_Static (90) ;

/* [Vector] *********** [5, 3, 2]*/
        CFast_CallVector2_Static (94) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
          M_p_stVectorInterpret(p_stPseudoTree+100) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
          M_p_stVectorInterpret(p_stPseudoTree+101) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
        CFast_CallProcedure_Static( 98 ) ;
      }
    }
  }
  else {
    if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 35)))) ) {

/* [Cond : <] ********** [2, 2, 1]*/
      if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41)))) < (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 44)))) ) {
        M_Full_GetSetParam_Float(&CFast_g_a_stParam[3], MTH_M_xDiv((*((MTH_tdxReal *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 31)))),MTH_M_xLongToReal(20)));
        M_GetSetParam_lValue(&CFast_g_a_stParam[2]) = MTH_M_xRealToLong(M_GetSetParam_xValue(&CFast_g_a_stParam[3])) ;
        M_GetSetParam_Type(&CFast_g_a_stParam[2]) = E_vt_Integer;

/* [Math_ : Math_ConversionEnEntier] ********** [0, 1, 2]*/
        LocalCFast_fn_vSetDsgVarInteger(41, (LocalCFast_fn_lGetDsgVarInteger(41)+M_GetSetParam_lValue(CFast_g_a_stParam+2))) ;

/* [Cond : >] ********** [2, 2, 1]*/
        if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41)))) > (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 44)))) ) {
          LocalCFast_fn_vSetDsgVarInteger(41, LocalCFast_fn_lGetDsgVarInteger(44)) ;
        }

/* [Cond : =] ********** [2, 2, 1]*/
        if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 42)))) == 0 ) {

/* [Vector] *********** [4, 3, 1]*/
          CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
          CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
            M_p_stVectorInterpret(p_stPseudoTree+66) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
            M_p_stVectorInterpret(p_stPseudoTree+67) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
          CFast_CallProcedure_Static( 64 ) ;
          M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
            M_lValueInterpret(p_stPseudoTree+73) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
          CFast_CallVector1_Static (70) ;

/* [Vector] *********** [5, 3, 2]*/
          CFast_CallVector2_Static (74) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
            M_p_stVectorInterpret(p_stPseudoTree+80) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
            M_p_stVectorInterpret(p_stPseudoTree+81) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
          CFast_CallProcedure_Static( 78 ) ;
        }
        else {

/* [Vector] *********** [4, 3, 1]*/
          CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
          CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
            M_p_stVectorInterpret(p_stPseudoTree+86) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
            M_p_stVectorInterpret(p_stPseudoTree+87) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
          CFast_CallProcedure_Static( 84 ) ;
          M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 41))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
            M_lValueInterpret(p_stPseudoTree+93) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
          CFast_CallVector1_Static (90) ;

/* [Vector] *********** [5, 3, 2]*/
          CFast_CallVector2_Static (94) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
            M_p_stVectorInterpret(p_stPseudoTree+100) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
            M_p_stVectorInterpret(p_stPseudoTree+101) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
          CFast_CallProcedure_Static( 98 ) ;
        }
      }
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_AttenteActivation
 */
void CFast_YAM_GenMenu_Cmp_YAM_AttenteActivation (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  if (p_stLocalMind0->CFast_lCmpMetaAction) 
    goto label1 ;

/* [Proc : SPO_SwitchSuperimposedTab] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 104 ) ;
  LocalCFast_fn_vSetDsgVarInteger(1, 90) ;
  LocalCFast_fn_vSetDsgVarInteger(2, 20) ;
  LocalCFast_fn_vSetDsgVarInteger(3, 35) ;
  LocalCFast_fn_vSetDsgVarInteger(4, 100) ;
  LocalCFast_fn_vSetDsgVarInteger(5, 16) ;
  LocalCFast_fn_vSetDsgVarFloat(70, 100) ;
  LocalCFast_fn_vSetDsgVarInteger(71, 4) ;

/* [Proc : MAP_LitLaSortieUtilisee] *********** [2, 2, 0]*/
  CFast_CallProcedure_Static( 106 ) ;

/* [Cond : =] ********** [2, 2, 2]*/
  long1 = (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 6)))) == 0 ? 1 : 0;
if ( long1 ) {

/* [Cond : =] ********** [2, 2, 3]*/
    long1 = (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 7)))) == 0 ? 1 : 0;
  }
  if ( long1 ) {
    LocalCFast_fn_vSetDsgVarBoolean(23, 1) ;
  }
  else {
    LocalCFast_fn_vSetDsgVarBoolean(23, 0) ;
  }
/* [EndTree] ************ [0]*/

/* [Vector] *********** [4, 3, 2]*/
  CFast_CallVector2_Static (60) ;

/* [Func : GenereObjet] ********** [2, 2, 1]*/
    M_p_stVectorInterpret(p_stPseudoTree+111) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
  CFast_CallFunction1_Static( 109 ) ;
  LocalCFast_fn_vSetDsgVarPersoWithEngine(0, M_GetSetParam_p_stEngineObjValue(CFast_g_a_stParam+1)) ;

/* [Cond : Alw_EstAMoi] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(112) ) {
    CFast_fn_vSetDsgVarPerso ( M_CFast_ucGetRealIndice(14), (M_GetMSHandle( (*((HIE_tdxHandleToSuperObject *)M_GetDsgVarAddr(p_stLocalMind0, 0))), Brain)->p_stMind), g_hSuperObjectPerso) ;
  }
/* [EndTree] ************ [0]*/
  CFast_YAM_GenMenu_Macro_3 () ;
/* [BeginMacro : 24] ********** [0]*/
/* [EndTree] ************ [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
  CFast_CallMetaActionInit_Static( 114 ) ;
  p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
  if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
    return ;
  }
  p_stLocalMind0->CFast_lCmpMetaAction = 0;
  if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
    CFast_CallFunction1_Static( 21 ) ;
    LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
    CFast_YAM_GenMenu_Macro_4 () ;
/* [BeginMacro : 29] ********** [0]*/
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 118 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
  else {
    CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 120 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

long CFast_YAM_GenMenu_Macro_3 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  LocalCFast_fn_vSetDsgVarInteger(67, 0) ;
  LocalCFast_fn_vSetDsgVarInteger(24, 0) ;

/* [Func : OPTION_GetNbSlotsAvailable] ********** [1, 1, 1]*/
  CFast_CallFunction1_Static( 122 ) ;
  LocalCFast_fn_vSetDsgVarInteger(25, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Proc : Boucle] *********** [1, 1, 0]*/
  {
    int i0;
for ( i0=3 ; i0>0 ; i0-- ) { /* Boucle 0 */
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[2], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 67)))) + 1);

/* [Func : Option_SlotIsValid] ********** [1, 1, 1]*/
      M_lValueInterpret(p_stPseudoTree+125) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
    CFast_CallFunction1_Static( 124 ) ;
    LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    LocalCFast_fn_vSetDsgVarInteger(24, (LocalCFast_fn_lGetDsgVarInteger(24)+LocalCFast_fn_lGetDsgVarInteger(54))) ;
    CFast_fn_vSetDsgVarIntegerArray(29,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67),LocalCFast_fn_lGetDsgVarInteger(54)) ;
    LocalCFast_fn_vSetDsgVarInteger(67, (LocalCFast_fn_lGetDsgVarInteger(67)+1)) ;

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
    }
}

/* [Cond : <>] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 25)))) != 3 ) {
    LocalCFast_fn_vSetDsgVarInteger(67, 2) ;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 25)))) == (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 24)))) ) {

/* [Proc : Boucle] *********** [1, 1, 0]*/
      {
        int i1;
for ( i1=3 ; i1>0 ; i1-- ) { /* Boucle 1 */

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
        M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
        M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 67 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
        long1 = CFast_CallCondition_NoStatic( ) ;
        if ( long1 ) {
          CFast_fn_vSetDsgVarIntegerArray(29,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67),-1) ;
        }
        LocalCFast_fn_vSetDsgVarInteger(67, (LocalCFast_fn_lGetDsgVarInteger(67)-1)) ;

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
        }
}
    }
    else {
      LocalCFast_fn_vSetDsgVarInteger(67, 2) ;
      LocalCFast_fn_vSetDsgVarInteger(54, (3 - LocalCFast_fn_lGetDsgVarInteger(25))) ;

/* [Proc : Boucle] *********** [1, 1, 0]*/
      {
        int i2;
for ( i2=3 ; i2>0 ; i2-- ) { /* Boucle 2 */

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
        M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
        M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 67 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
        long1 = CFast_CallCondition_NoStatic( ) ;
        if ( long1 ) {
          CFast_fn_vSetDsgVarIntegerArray(29,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67),-1) ;
          LocalCFast_fn_vSetDsgVarInteger(54, (LocalCFast_fn_lGetDsgVarInteger(54)-1)) ;
        }
        LocalCFast_fn_vSetDsgVarInteger(67, (LocalCFast_fn_lGetDsgVarInteger(67)-1)) ;

/* [Cond : =] ********** [2, 2, 1]*/
        if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 54)))) == 0 ) {

/* [Proc : Break] *********** [1, 1, 0]*/
          break ;
        }

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
        }
}
    }
  }
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_4 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 15) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 16) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 17) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,400) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,400) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,400) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,200) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,800) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,200) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,800) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 24)))) == 0 ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,1) ;
  }
  LocalCFast_fn_vSetDsgVarInteger(20, 3) ;
  LocalCFast_fn_vSetDsgVarInteger(18, 0) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_5 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  if ( 1 ) {
    LocalCFast_fn_vSetDsgVarInteger(67, 0) ;

/* [Proc : Boucle] *********** [1, 1, 0]*/
    {
      int i0;
for ( i0=(*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 20)))) ; i0>0 ; i0-- ) { /* Boucle 0 */

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : <>] ********** [4, 2, 1]*/
      M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)5 ;

/* [Op : [] ********** [0, 2, 0]*/
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 14 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 67 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
      long1 = CFast_CallCondition_NoStatic( ) ;
      if ( long1 ) {
        LocalCFast_fn_vSetDsgVarPerso(51, NULL) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
        M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
        M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 14 ;
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 67 ;
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 3 ;
        long1 = CFast_CallCondition_NoStatic( ) ;
        if ( long1 ) {
          LocalCFast_fn_vSetDsgVarBoolean(9, 1) ;
        }
        else {
          LocalCFast_fn_vSetDsgVarBoolean(9, 0) ;
        }

/* [Cond : =] ********** [2, 2, 1]*/
        if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 67)))) == (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) ) {
          LocalCFast_fn_vSetDsgVarBoolean(10, 1) ;
        }
        else {
          LocalCFast_fn_vSetDsgVarBoolean(10, 0) ;
        }

/* [Cond : =] ********** [2, 2, 1]*/
        if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 10)))) == 1 ) {

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_FormateTexte] *********** [5, 3, 0]*/
          M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
          M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/o240:/w300:" ;

/* [Op : [] ********** [0, 2, 0]*/
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
          M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 67 ;
          CFast_memcpy ( 4, 5, 4) ;
          CFast_CallProcedure_NoStatic( ) ;
        }
        else {

/* [Cond : =] ********** [2, 2, 1]*/
          if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 9)))) == 1 ) {

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_FormateTexte] *********** [5, 3, 0]*/
            M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
            M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/o180:/w300:" ;

/* [Op : [] ********** [0, 2, 0]*/
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
            M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
            M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
            M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 67 ;
            CFast_memcpy ( 4, 5, 4) ;
            CFast_CallProcedure_NoStatic( ) ;
          }
          else {

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : TEXT_FormateTexte] *********** [5, 3, 0]*/
            M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
            M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/o0:/w300:" ;

/* [Op : [] ********** [0, 2, 0]*/
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
            M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
            M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
            M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
            M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 67 ;
            CFast_memcpy ( 4, 5, 4) ;
            CFast_CallProcedure_NoStatic( ) ;
          }
        }
        (LocalCFast_fn_p_stGetDsgVarVector(56))->xX = MTH_M_xLongToReal(CFast_fn_lGetDsgVarIntegerArray(12,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67))) ;
        (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(CFast_fn_lGetDsgVarIntegerArray(13,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67))) ;
        (LocalCFast_fn_p_stGetDsgVarVector(56))->xZ= MTH_M_xLongToReal(LocalCFast_fn_lGetDsgVarInteger(2)) ;

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
        CFast_CallFunction1_Static( 30 ) ;
        LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Cond : Alw_EstAMoi] ********** [1, 1, 1]*/
        if ( CFast_CallCondition_Static(126) ) {
          CFast_fn_vSetDsgVarPersoArray(17,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67),LocalCFast_fn_hGetDsgVarPerso(51)) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : ACT_ChangeCustomBit] *********** [4, 3, 0]*/
          CFast_fn_vSetUltraOperatorPersoVar(51);
          CFast_CallProcedure_Static( 5 ) ;
          CFast_fn_vSetDsgVarInteger ( M_CFast_ucGetRealIndice(19), (M_GetMSHandle( (*((HIE_tdxHandleToSuperObject *)M_GetDsgVarAddr(p_stLocalMind0, 51))), Brain)->p_stMind), LocalCFast_fn_lGetDsgVarInteger(5)) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
          M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
          M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 14 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 67 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 1 ;
          long1 = CFast_CallCondition_NoStatic( ) ;
          if ( long1 ) {
            CFast_fn_vSetDsgVarInteger ( M_CFast_ucGetRealIndice(20), (M_GetMSHandle( (*((HIE_tdxHandleToSuperObject *)M_GetDsgVarAddr(p_stLocalMind0, 51))), Brain)->p_stMind), LocalCFast_fn_lGetDsgVarInteger(1)) ;
          }
          else {
            CFast_fn_vSetDsgVarInteger ( M_CFast_ucGetRealIndice(20), (M_GetMSHandle( (*((HIE_tdxHandleToSuperObject *)M_GetDsgVarAddr(p_stLocalMind0, 51))), Brain)->p_stMind), 255) ;
          }
        }
      }
      LocalCFast_fn_vSetDsgVarInteger(67, (LocalCFast_fn_lGetDsgVarInteger(67)+1)) ;

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
      }
}
  }
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_6 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 23) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 16) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 17) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 3 ;
  CFast_memcpy ( 2, 4, 24) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,50) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,50) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,525) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,3,700) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,200) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,800) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,3,900) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,3,700) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,200) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,800) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,3,900) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,2) ;

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 24)))) == 0 ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,1) ;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 25)))) == 0 ) {
      CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,1) ;
    }
  }
  LocalCFast_fn_vSetDsgVarInteger(20, 4) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : <>] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)5 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 14 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 0 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 2 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {
    LocalCFast_fn_vSetDsgVarInteger(18, 2) ;
  }
  else {
    LocalCFast_fn_vSetDsgVarInteger(18, 0) ;
  }
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
/*
 * Model : YAM_GenMenu Comportement YAM_Desactivation
 */
void CFast_YAM_GenMenu_Cmp_YAM_Desactivation (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  }
  if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_4 () ;
/* [BeginMacro : 29] ********** [0]*/
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 118 ) ;
label2 :
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : Alw_EstAMoi] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(112) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 128 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
          return ;
    }
  }
/* [EndTree] ************ [0]*/

/* [Cond : Alw_EstAMoi] ********** [1, 1, 1]*/
  if ( CFast_CallCondition_Static(130) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 132 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
          return ;
    }
  }
/* [EndTree] ************ [0]*/

/* [Proc : SPO_SwitchSuperimposedTab] *********** [1, 1, 0]*/
  CFast_CallProcedure_Static( 134 ) ;

/* [Proc : MAP_IndiqueLaSortieUtilisee] *********** [2, 2, 0]*/
  CFast_CallProcedure_Static( 136 ) ;

/* [Func : ACT_LitPointsDeVie] ********** [2, 1, 1]*/
  CFast_CallFunction1_Static( 139 ) ;

/* [Proc : ACT_FixePointsDeVieInit] *********** [2, 2, 0]*/
    M_lValueInterpret(p_stPseudoTree+143) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
  CFast_CallProcedure_Static( 141 ) ;

/* [Proc : ChangeMap] *********** [1, 1, 0]*/
  M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)86 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
  M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "mapmonde" ;
  CFast_CallProcedure_NoStatic( ) ;
/* [EndTree] ************ [0]*/
}

long CFast_YAM_GenMenu_Macro_7 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  if ( 1 ) {
    LocalCFast_fn_vSetDsgVarInteger(67, 0) ;

/* [Proc : Boucle] *********** [1, 1, 0]*/
    {
      int i0;
for ( i0=(*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 20)))) ; i0>0 ; i0-- ) { /* Boucle 0 */
      LocalCFast_fn_vSetDsgVarPerso(51, CFast_fn_hGetDsgVarPersoArray(17,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67))) ;

/* [Cond : ObjetValide] ********** [1, 1, 1]*/
      if ( CFast_CallCondition_Static(11) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
        fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
        CFast_CallProcedure_Static( 28 ) ;
        if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
          CFast_g_bMetaActionInRfx = 1 ;
          return (1) ;
        }
      }
      CFast_fn_vSetDsgVarPersoArray(17,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67),NULL) ;
      LocalCFast_fn_vSetDsgVarInteger(67, (LocalCFast_fn_lGetDsgVarInteger(67)+1)) ;

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
      }
}
  }
  return (0) ;
}
/*
 * Model : YAM_GenMenu Comportement YAM_MenuPrincipal
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuPrincipal (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 0 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_8 () ;
/* [BeginMacro : 89] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 148 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 1 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_9 () ;
/* [BeginMacro : 66] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 150 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 2 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_10 () ;
/* [BeginMacro : 26] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 152 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 3 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_11 () ;
/* [BeginMacro : 11] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 154 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/
}

long CFast_YAM_GenMenu_Macro_8 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 32) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 33) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 34) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 3 ;
  CFast_memcpy ( 2, 4, 35) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 4 ;
  CFast_memcpy ( 2, 4, 35) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 5 ;
  CFast_memcpy ( 2, 4, 35) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 6 ;
  CFast_memcpy ( 2, 4, 23) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,500) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,3,650) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,4,650) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,5,650) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,6,500) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,350) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,650) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,3,350) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,4,500) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,5,650) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,6,100) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,350) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,350) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,350) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,3,700) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,4,700) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,5,700) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,6,700) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,350) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,650) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,3,350) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,4,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,5,650) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,6,100) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,4,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,5,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,6,4) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 2 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 1 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {

/* [Func : TEXT_LitNomDuSlot] ********** [2, 1, 1]*/
    CFast_CallFunction1_Static( 156 ) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      M_lValueInterpret(p_stPseudoTree+160) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 158 ) ;
    LocalCFast_fn_vSetDsgVarInteger(18, 2) ;
  }
  else {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,5,0) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
    M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 2 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
    long1 = CFast_CallCondition_NoStatic( ) ;
    if ( long1 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 162 ) ;
    }
    else {
      CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,1) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 166 ) ;
    }
  }

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 1 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 1 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {

/* [Func : TEXT_LitNomDuSlot] ********** [2, 1, 1]*/
    CFast_CallFunction1_Static( 170 ) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      M_lValueInterpret(p_stPseudoTree+174) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 172 ) ;
    LocalCFast_fn_vSetDsgVarInteger(18, 1) ;
  }
  else {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,4,0) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
    M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 1 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
    long1 = CFast_CallCondition_NoStatic( ) ;
    if ( long1 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 176 ) ;
    }
    else {
      CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,1) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 180 ) ;
    }
  }

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 0 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 1 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {

/* [Func : TEXT_LitNomDuSlot] ********** [2, 1, 1]*/
    CFast_CallFunction1_Static( 184 ) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      M_lValueInterpret(p_stPseudoTree+188) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 186 ) ;
    LocalCFast_fn_vSetDsgVarInteger(18, 0) ;
  }
  else {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,0) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
    M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 0 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
    long1 = CFast_CallCondition_NoStatic( ) ;
    if ( long1 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 190 ) ;
    }
    else {
      CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,1) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 194 ) ;
    }
  }
  LocalCFast_fn_vSetDsgVarInteger(20, 7) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_9 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 32) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 33) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 34) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 3 ;
  CFast_memcpy ( 2, 4, 16) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,100) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,100) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,100) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,3,100) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,400) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,600) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,800) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,3,100) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,3,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,300) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,700) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,3,100) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,4) ;
  if ( 1 ) {
    LocalCFast_fn_vSetDsgVarInteger(67, 2) ;

/* [Proc : Boucle] *********** [1, 1, 0]*/
    {
      int i0;
for ( i0=3 ; i0>0 ; i0-- ) { /* Boucle 0 */

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 2]*/
      M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 67 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
      long1 = CFast_CallCondition_NoStatic( ) ;
      if ( !long1 ) {

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 3]*/
        M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
        M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 67 ;
        M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = -1 ;
        long1 = CFast_CallCondition_NoStatic( ) ;
      }
      if ( long1 ) {
        CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(67),1) ;
      }
      else {
        LocalCFast_fn_vSetDsgVarInteger(64, LocalCFast_fn_lGetDsgVarInteger(67)) ;
      }
      LocalCFast_fn_vSetDsgVarInteger(67, (LocalCFast_fn_lGetDsgVarInteger(67)-1)) ;

/* [Proc : FinBoucle] ********** [0, 0, 0]*/
      }
}
  }

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 2 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 1 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {

/* [Func : TEXT_LitNomDuSlot] ********** [2, 1, 1]*/
    CFast_CallFunction1_Static( 156 ) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      M_lValueInterpret(p_stPseudoTree+160) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 158 ) ;
  }
  else {

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
    M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 2 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
    long1 = CFast_CallCondition_NoStatic( ) ;
    if ( long1 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 162 ) ;
    }
    else {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 166 ) ;
    }
  }

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 1 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 1 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {

/* [Func : TEXT_LitNomDuSlot] ********** [2, 1, 1]*/
    CFast_CallFunction1_Static( 170 ) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      M_lValueInterpret(p_stPseudoTree+174) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 172 ) ;
  }
  else {

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
    M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 1 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
    long1 = CFast_CallCondition_NoStatic( ) ;
    if ( long1 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 176 ) ;
    }
    else {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 180 ) ;
    }
  }

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
  M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 0 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 1 ;
  long1 = CFast_CallCondition_NoStatic( ) ;
  if ( long1 ) {

/* [Func : TEXT_LitNomDuSlot] ********** [2, 1, 1]*/
    CFast_CallFunction1_Static( 184 ) ;

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      M_lValueInterpret(p_stPseudoTree+188) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
    CFast_CallProcedure_Static( 186 ) ;
  }
  else {

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
    M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 0 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
    long1 = CFast_CallCondition_NoStatic( ) ;
    if ( long1 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 190 ) ;
    }
    else {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      CFast_CallProcedure_Static( 194 ) ;
    }
  }
  LocalCFast_fn_vSetDsgVarInteger(20, 4) ;
  LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(64)) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_10 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 41) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 42) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 43) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,50) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,50) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,50) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,200) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,800) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,200) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,800) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;
  LocalCFast_fn_vSetDsgVarInteger(20, 3) ;
  LocalCFast_fn_vSetDsgVarInteger(18, 0) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_11 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 24) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,400) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  LocalCFast_fn_vSetDsgVarInteger(20, 1) ;
  LocalCFast_fn_vSetDsgVarInteger(18, 0) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
/*
 * Model : YAM_GenMenu Comportement YAM_MenuOptions
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuOptions (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_3 () ;
/* [BeginMacro : 24] ********** [0]*/
    if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
      CFast_CallFunction1_Static( 21 ) ;
      LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
      CFast_YAM_GenMenu_Macro_4 () ;
/* [BeginMacro : 29] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(18, 2) ;
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    }
    else {
      CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(18, 2) ;
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    }
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;
    if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 118 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
    else {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 120 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 0 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_12 () ;
/* [BeginMacro : 69] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 198 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 1 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_13 () ;
/* [BeginMacro : 62] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 200 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 2 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_14 () ;
/* [BeginMacro : 42] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 202 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/
}

long CFast_YAM_GenMenu_Macro_12 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 46) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 47) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 48) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 3 ;
  CFast_memcpy ( 2, 4, 49) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 4 ;
  CFast_memcpy ( 2, 4, 50) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 5 ;
  CFast_memcpy ( 2, 4, 51) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 6 ;
  CFast_memcpy ( 2, 4, 52) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,100) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,600) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,600) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,3,100) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,4,600) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,5,600) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,6,100) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,225) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,180) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,270) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,3,575) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,4,530) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,5,620) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,6,850) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,150) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,575) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,575) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,3,150) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,4,575) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,5,575) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,6,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,225) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,150) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,300) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,3,575) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,4,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,5,650) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,6,850) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,4) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,4) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,4,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,5,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,6,2) ;

/* [Func : VID_NbAvailableResolution] ********** [0, 0, 1]*/
  CFast_CallFunction1_Static( 204 ) ;
  LocalCFast_fn_vSetDsgVarInteger(26, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Func : VID_CurrentResolution] ********** [0, 0, 1]*/
  CFast_CallFunction1_Static( 205 ) ;
  LocalCFast_fn_vSetDsgVarInteger(27, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Cond : >] ********** [2, 2, 1]*/
  if ( !( MTH_M_bGreater(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 26))))), MTH_M_xFloatToReal(1.000000f)) ) ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,1) ;
  }

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 27)))) == 1 ) {

/* [Proc : VID_SelectShapnessMax] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 206 ) ;
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,4,1) ;
  }
  M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 27)))) + 1);

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 14 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][4], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][4]) = 3 ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Cond : VID_IsShapnessMax] ********** [0, 0, 1]*/
  if ( CFast_CallCondition_Static(208) ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,5,3) ;
  }
  else {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,4,3) ;
  }
  LocalCFast_fn_vSetDsgVarInteger(20, 7) ;
  LocalCFast_fn_vSetDsgVarInteger(18, (LocalCFast_fn_lGetDsgVarInteger(27) + 1)) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_13 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 54) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 55) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 56) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 3 ;
  CFast_memcpy ( 2, 4, 57) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 4 ;
  CFast_memcpy ( 2, 4, 58) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,650) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,650) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,100) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,3,100) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,4,100) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,170) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,280) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,500) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,3,800) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,4,225) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,650) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,650) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,700) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,3,700) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,4,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,180) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,310) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,510) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,3,800) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,4,700) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,4,4) ;

/* [Cond : SOUND_IsInStereoMode] ********** [0, 0, 1]*/
  if ( CFast_CallCondition_Static(209) ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,3) ;
    LocalCFast_fn_vSetDsgVarInteger(18, 1) ;
  }
  else {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,3) ;
    LocalCFast_fn_vSetDsgVarInteger(18, 0) ;
  }
  LocalCFast_fn_vSetDsgVarInteger(43, 0) ;
  LocalCFast_fn_vSetDsgVarInteger(44, 127) ;

/* [Func : Option_GetVolumeMusical] ********** [0, 0, 1]*/
  CFast_CallFunction1_Static( 210 ) ;
  LocalCFast_fn_vSetDsgVarInteger(45, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Func : Option_GetVolumeEffets] ********** [0, 0, 1]*/
  CFast_CallFunction1_Static( 211 ) ;
  LocalCFast_fn_vSetDsgVarInteger(46, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Vector] *********** [4, 3, 1]*/
  CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
  CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
    M_p_stVectorInterpret(p_stPseudoTree+66) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
    M_p_stVectorInterpret(p_stPseudoTree+67) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
  CFast_CallProcedure_Static( 64 ) ;
  M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 45))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
    M_lValueInterpret(p_stPseudoTree+73) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
  CFast_CallVector1_Static (70) ;

/* [Vector] *********** [5, 3, 2]*/
  CFast_CallVector2_Static (212) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
    M_p_stVectorInterpret(p_stPseudoTree+80) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
    M_p_stVectorInterpret(p_stPseudoTree+81) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
  CFast_CallProcedure_Static( 78 ) ;

/* [Vector] *********** [4, 3, 1]*/
  CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
  CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
    M_p_stVectorInterpret(p_stPseudoTree+86) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
    M_p_stVectorInterpret(p_stPseudoTree+87) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
  CFast_CallProcedure_Static( 84 ) ;
  M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 46))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
    M_lValueInterpret(p_stPseudoTree+93) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
  CFast_CallVector1_Static (90) ;

/* [Vector] *********** [5, 3, 2]*/
  CFast_CallVector2_Static (216) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
    M_p_stVectorInterpret(p_stPseudoTree+100) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
    M_p_stVectorInterpret(p_stPseudoTree+101) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
  CFast_CallProcedure_Static( 98 ) ;
  LocalCFast_fn_vSetDsgVarInteger(20, 5) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_14 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 0 ;
  CFast_memcpy ( 2, 4, 60) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 1 ;
  CFast_memcpy ( 2, 4, 61) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 2 ;
  CFast_memcpy ( 2, 4, 62) ;
  CFast_CallOperator0_NoStatic( ) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 11 ;
  M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = 3 ;
  CFast_memcpy ( 2, 4, 63) ;
  CFast_CallOperator0_NoStatic( ) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,0,25) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,1,25) ;
  CFast_fn_vSetDsgVarIntegerArray(12,p_stLocalMind0,2,625) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,0,300) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,1,700) ;
  CFast_fn_vSetDsgVarIntegerArray(13,p_stLocalMind0,2,200) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,0,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,1,500) ;
  CFast_fn_vSetDsgVarIntegerArray(15,p_stLocalMind0,2,500) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,0,300) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,1,700) ;
  CFast_fn_vSetDsgVarIntegerArray(16,p_stLocalMind0,2,200) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,0,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,2) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,2) ;

/* [Func : TEXT_GetNbLanguages] ********** [0, 0, 1]*/
  CFast_CallFunction1_Static( 220 ) ;
  LocalCFast_fn_vSetDsgVarInteger(28, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 28)))) == 1 ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,1,0) ;
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,0) ;
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,0) ;
  }

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 28)))) == 2 ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,2,0) ;
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,0) ;
  }

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 28)))) == 3 ) {
    CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,3,0) ;
  }
  LocalCFast_fn_vSetDsgVarInteger(20, 4) ;

/* [Func : TEXT_GetCurrentLanguageId] ********** [0, 0, 1]*/
  CFast_CallFunction1_Static( 221 ) ;
  LocalCFast_fn_vSetDsgVarInteger(18, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
  CFast_fn_vSetDsgVarIntegerArray(14,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18),3) ;
  LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  return (0) ;
}
/*
 * Model : YAM_GenMenu Comportement YAM_MenuSound
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuSound (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {

/* [Vector] *********** [4, 3, 1]*/
    CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+66) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+67) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 64 ) ;
    M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 45))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
      M_lValueInterpret(p_stPseudoTree+73) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
    CFast_CallVector1_Static (70) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (222) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+80) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+81) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 78 ) ;

/* [Vector] *********** [4, 3, 1]*/
    CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+86) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+87) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 84 ) ;
    M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 46))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
      M_lValueInterpret(p_stPseudoTree+93) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
    CFast_CallVector1_Static (90) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (226) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+100) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+101) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 98 ) ;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {

/* [Vector] *********** [4, 3, 1]*/
    CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+66) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+67) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 64 ) ;
    M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 45))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
      M_lValueInterpret(p_stPseudoTree+73) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
    CFast_CallVector1_Static (70) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (222) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+80) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+81) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 78 ) ;

/* [Vector] *********** [4, 3, 1]*/
    CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+86) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+87) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 84 ) ;
    M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 46))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
      M_lValueInterpret(p_stPseudoTree+93) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
    CFast_CallVector1_Static (90) ;

/* [Vector] *********** [5, 3, 2]*/
    CFast_CallVector2_Static (226) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
      M_p_stVectorInterpret(p_stPseudoTree+100) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
      M_p_stVectorInterpret(p_stPseudoTree+101) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallProcedure_Static( 98 ) ;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_10 () ;
/* [BeginMacro : 26] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, 1) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 152 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 0 ) {

/* [Proc : SOUND_SetInStereoMode] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 230 ) ;
      LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_13 () ;
/* [BeginMacro : 62] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 1 ) {

/* [Proc : SOUND_SetInStereoMode] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 232 ) ;
      LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_13 () ;
/* [BeginMacro : 62] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 2 ) {

/* [Vector] *********** [4, 3, 1]*/
      CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
      CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
        M_p_stVectorInterpret(p_stPseudoTree+66) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
        M_p_stVectorInterpret(p_stPseudoTree+67) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
      CFast_CallProcedure_Static( 64 ) ;
      M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 45))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
        M_lValueInterpret(p_stPseudoTree+73) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
      CFast_CallVector1_Static (70) ;

/* [Vector] *********** [5, 3, 2]*/
      CFast_CallVector2_Static (74) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
        M_p_stVectorInterpret(p_stPseudoTree+80) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
        M_p_stVectorInterpret(p_stPseudoTree+81) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
      CFast_CallProcedure_Static( 78 ) ;
      LocalCFast_fn_vSetDsgVarInteger(42, 0) ;
      LocalCFast_fn_vSetDsgVarInteger(41, LocalCFast_fn_lGetDsgVarInteger(45)) ;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 234 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 236 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 3 ) {

/* [Vector] *********** [4, 3, 1]*/
      CFast_CallVector1_Static (60) ;

/* [Vector] *********** [5, 3, 2]*/
      CFast_CallVector2_Static (60) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
        M_p_stVectorInterpret(p_stPseudoTree+86) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
        M_p_stVectorInterpret(p_stPseudoTree+87) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
      CFast_CallProcedure_Static( 84 ) ;
      M_Full_GetSetParam_Float(&CFast_g_a_stParam[2], MTH_M_xDiv(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 46))))),MTH_M_xFloatToReal(1.270000f)));

/* [Vector] *********** [4, 3, 1]*/
        M_lValueInterpret(p_stPseudoTree+93) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
      CFast_CallVector1_Static (90) ;

/* [Vector] *********** [5, 3, 2]*/
      CFast_CallVector2_Static (94) ;

/* [Proc : LanceAGO] *********** [5, 5, 0]*/
        M_p_stVectorInterpret(p_stPseudoTree+100) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+1);
        M_p_stVectorInterpret(p_stPseudoTree+101) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
      CFast_CallProcedure_Static( 98 ) ;
      LocalCFast_fn_vSetDsgVarInteger(42, 1) ;
      LocalCFast_fn_vSetDsgVarInteger(41, LocalCFast_fn_lGetDsgVarInteger(46)) ;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 234 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 236 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuVideo
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuVideo (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  case 4 : goto label4 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_10 () ;
/* [BeginMacro : 26] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, 0) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 152 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 1 ) {

/* [Proc : VID_SelectResolution] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 238 ) ;
      LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_12 () ;
/* [BeginMacro : 69] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 2 ) {

/* [Proc : VID_SelectResolution] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 240 ) ;
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_12 () ;
/* [BeginMacro : 69] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 4 ) {

/* [Proc : VID_SelectShapnessMax] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 242 ) ;
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_12 () ;
/* [BeginMacro : 69] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 5 ) {

/* [Proc : VID_SelectShapnessMax] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 206 ) ;
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_12 () ;
/* [BeginMacro : 69] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 6 ) {

/* [Cond : Alw_EstAMoi] ********** [1, 1, 1]*/
      if ( CFast_CallCondition_Static(112) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
        fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
        CFast_CallProcedure_Static( 128 ) ;
        if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
                  return ;
        }
      }
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xX = MTH_M_xLongToReal(500) ;
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(400) ;
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xZ= MTH_M_xLongToReal(LocalCFast_fn_lGetDsgVarInteger(2)) ;
      LocalCFast_fn_vSetDsgVarPerso(53, NULL) ;

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
      CFast_CallFunction1_Static( 244 ) ;
      LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(600) ;
      LocalCFast_fn_vSetDsgVarPerso(52, NULL) ;

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
      CFast_CallFunction1_Static( 250 ) ;
      LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
      CFast_CallMetaActionInit_Static( 114 ) ;
      p_stLocalMind0->CFast_lCmpMetaAction = 4;
label4 :
      if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
        return ;
      }
      p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 256 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuLangue
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuLangue (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_10 () ;
/* [BeginMacro : 26] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, 2) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 152 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : TEXT_ChangeLangueCourante] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 258 ) ;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_10 () ;
/* [BeginMacro : 26] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, 2) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 152 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuSave
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuSave (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  case 4 : goto label4 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_3 () ;
/* [BeginMacro : 24] ********** [0]*/
    CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 120 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Cond : <] ********** [2, 2, 1]*/
    if ( MTH_M_bLess(MTH_M_xLongToReal((*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18))))), MTH_M_xFloatToReal(3.000000f)) ) {

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
      M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 18 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
      long1 = CFast_CallCondition_NoStatic( ) ;
      if ( long1 ) {
        CFast_YAM_GenMenu_Macro_15 () ;
/* [BeginMacro : 8] ********** [0]*/
        LocalCFast_fn_vSetDsgVarBoolean(10, 1) ;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 260 ) ;
        LocalCFast_fn_vSetDsgVarBoolean(72, 1) ;
        if (CFast_YAM_GenMenu_Macro_2 ())
          return ;
/* [BeginMacro : 24] ********** [0]*/
        p_stLocalMind0->CFast_lCmpMetaAction = 4;
label4 :
        if (CFast_YAM_GenMenu_Macro_16 ())
          return ;
        p_stLocalMind0->CFast_lCmpMetaAction = 0;
/* [BeginMacro : 12] ********** [0]*/

/* [Op : [] ********** [2, 2, 0]*/

/* [Func : TEXT_LettreDuTexteALaPosition] ********** [4, 2, 1]*/
        M_eFuncIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Function][0]) = (tdeFuncId)213 ;

/* [Op : [] ********** [0, 2, 0]*/
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][1], E_ti_Operator);
        M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[3][1]) = (tdeOperatorId)26 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][2], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[3][2]) = 11 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][3], E_ti_DsgVarRef);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[3][3]) = 18 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][4], E_ti_Constant);
        M_lValueInterpret(&CFast_g_a_stPseudoTree[3][4]) = 0 ;
        CFast_CallFunction1_NoStatic( ) ;
        LocalCFast_fn_vSetDsgVarInteger(49, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 260 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 262 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
      else {
        LocalCFast_fn_vSetDsgVarBoolean(38, 1) ;
        LocalCFast_fn_vSetDsgVarInteger(39, 0) ;
        LocalCFast_fn_vSetDsgVarBoolean(10, 1) ;
        if (CFast_YAM_GenMenu_Macro_2 ())
          return ;
/* [BeginMacro : 24] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 264 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 266 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
    }
    else {
      LocalCFast_fn_vSetDsgVarBoolean(38, 1) ;
      LocalCFast_fn_vSetDsgVarInteger(39, 1) ;
      LocalCFast_fn_vSetDsgVarBoolean(10, 1) ;
      if (CFast_YAM_GenMenu_Macro_2 ())
        return ;
/* [BeginMacro : 24] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 264 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 266 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/
}

long CFast_YAM_GenMenu_Macro_15 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;


/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 0 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
    M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
    M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/w500:/h500:/c:" ;
    CFast_memcpy ( 4, 2, 70) ;
    CFast_memcpy ( 4, 3, 32) ;
    CFast_CallProcedure_NoStatic( ) ;
  }
  else {

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 1 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
      M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
      M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/w500:/h500:/c:" ;
      CFast_memcpy ( 4, 2, 71) ;
      CFast_memcpy ( 4, 3, 33) ;
      CFast_CallProcedure_NoStatic( ) ;
    }
    else {

/* [Cond : =] ********** [2, 2, 1]*/
      if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 2 ) {

/* [Proc : TEXT_FormateTexte] *********** [3, 3, 0]*/
        M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)422 ;
        M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
        M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "/w500:/h500:/c:" ;
        CFast_memcpy ( 4, 2, 72) ;
        CFast_memcpy ( 4, 3, 34) ;
        CFast_CallProcedure_NoStatic( ) ;
      }
    }
  }
  return (0) ;
}
long CFast_YAM_GenMenu_Macro_16 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  long lMetaAction ;

  if ( CFast_g_bProcessReflex )
    lMetaAction = p_stLocalMind0->CFast_lRfxMetaActionForMacro ;
  else
    lMetaAction = p_stLocalMind0->CFast_lCmpMetaActionForMacro ;
  switch(lMetaAction) {
  case 1 : goto label1 ;
  }
  LocalCFast_fn_vSetDsgVarPerso(51, CFast_fn_hGetDsgVarPersoArray(17,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
  LocalCFast_fn_vSetDsgVarInteger(50, 0) ;

/* [Op : [] ********** [2, 2, 0]*/

/* [Func : TEXT_LettreDuTexteALaPosition] ********** [4, 2, 1]*/
  M_eFuncIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Function][0]) = (tdeFuncId)213 ;

/* [Op : [] ********** [0, 2, 0]*/
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][1], E_ti_Operator);
  M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[3][1]) = (tdeOperatorId)26 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][2], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[3][2]) = 11 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][3], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[3][3]) = 18 ;
  M_SetTypeInterpret(&CFast_g_a_stPseudoTree[3][4], E_ti_DsgVarRef);
  M_lValueInterpret(&CFast_g_a_stPseudoTree[3][4]) = 50 ;
  CFast_CallFunction1_NoStatic( ) ;
  LocalCFast_fn_vSetDsgVarInteger(49, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_ActivationTransparence2] *********** [4, 3, 0]*/
  CFast_fn_vSetUltraOperatorPersoVar(51);
  CFast_CallProcedure_Static( 268 ) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_ActivationTransparence2] *********** [4, 3, 0]*/
  CFast_fn_vSetUltraOperatorPersoVar(51);
  CFast_CallProcedure_Static( 271 ) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_ActivationTransparence2] *********** [4, 3, 0]*/
  CFast_fn_vSetUltraOperatorPersoVar(51);
  CFast_CallProcedure_Static( 274 ) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_NiveauTransparence2] *********** [4, 3, 0]*/
  CFast_fn_vSetUltraOperatorPersoVar(51);
  CFast_CallProcedure_Static( 277 ) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_NiveauTransparence2] *********** [4, 3, 0]*/
  CFast_fn_vSetUltraOperatorPersoVar(51);
  CFast_CallProcedure_Static( 280 ) ;

/* [Op : ..] ********** [3, 1, 0]*/

/* [Proc : MOD_NiveauTransparence2] *********** [4, 3, 0]*/
  CFast_fn_vSetUltraOperatorPersoVar(51);
  CFast_CallProcedure_Static( 283 ) ;

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
  CFast_CallMetaActionInit_Static( 44 ) ;
  if ( !CFast_g_bProcessReflex ) 
    p_stLocalMind0->CFast_lCmpMetaActionForMacro = 1;
  else
    p_stLocalMind0->CFast_lRfxMetaActionForMacro = 1;
label1 :
  if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
    if ( CFast_g_bProcessReflex ) 
      CFast_g_bMetaActionInRfx = 1 ;
    return (1) ;
  }
  if ( CFast_g_bProcessReflex ) 
    p_stLocalMind0->CFast_lRfxMetaActionForMacro = 0;
  else
    p_stLocalMind0->CFast_lCmpMetaActionForMacro = 0;
  return (0) ;
}
/*
 * Model : YAM_GenMenu Comportement YAM_MenuChangeSlot
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuChangeSlot (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  case 4 : goto label4 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
    CFast_YAM_GenMenu_Macro_8 () ;
/* [BeginMacro : 89] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 148 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Op : [] ********** [2, 2, 0]*/
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[2], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) + 1);

/* [Cond : OPTION_IsAValidSlotName] ********** [5, 3, 1]*/
    M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)124 ;

/* [Op : [] ********** [0, 2, 0]*/
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][1], E_ti_Operator);
    M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][2], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 11 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][3], E_ti_DsgVarRef);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 18 ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = M_GetSetParam_lValue(&CFast_g_a_stParam[2]) ;
    M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][5], E_ti_Constant);
    M_lValueInterpret(&CFast_g_a_stPseudoTree[1][5]) = 3 ;
    long1 = CFast_CallCondition_NoStatic( ) ;
    if ( long1 ) {

/* [Op : [] ********** [2, 2, 0]*/

/* [Cond : =] ********** [4, 2, 1]*/
      M_eCondIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Condition][0]) = (tdeCondId)4 ;

/* [Op : [] ********** [0, 2, 0]*/
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[1][1]) = (tdeOperatorId)26 ;
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][2]) = 29 ;
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][3]) = 18 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[1][4], E_ti_Constant);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[1][4]) = 0 ;
      long1 = CFast_CallCondition_NoStatic( ) ;
      if ( long1 ) {
        CFast_fn_vSetDsgVarIntegerArray(29,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18),1) ;
        LocalCFast_fn_vSetDsgVarInteger(24, (LocalCFast_fn_lGetDsgVarInteger(24)+1)) ;
      }
      M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) + 1);

/* [Op : [] ********** [3, 2, 0]*/

/* [Proc : MNU_ValideNomDuSlot] *********** [4, 2, 0]*/
      M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)423 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_Constant);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][1]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;

/* [Op : [] ********** [0, 2, 0]*/
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][2], E_ti_Operator);
      M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[4][2]) = (tdeOperatorId)26 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][3], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][3]) = 11 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][4], E_ti_DsgVarRef);
      M_lValueInterpret(&CFast_g_a_stPseudoTree[4][4]) = 18 ;
      CFast_CallProcedure_NoStatic( ) ;
      M_Full_GetSetParam_Integer(&CFast_g_a_stParam[2], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) + 1);

/* [Func : SauvePartie] ********** [1, 1, 1]*/
        M_lValueInterpret(p_stPseudoTree+287) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
      CFast_CallFunction1_Static( 286 ) ;
      LocalCFast_fn_vSetDsgVarInteger(30, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Cond : =] ********** [2, 2, 1]*/
      if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 30)))) == 1 ) {
        LocalCFast_fn_vSetDsgVarInteger(40, 0) ;
        p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
        if (CFast_YAM_GenMenu_Macro_17 ())
          return ;
        p_stLocalMind0->CFast_lCmpMetaAction = 0;
/* [BeginMacro : 17] ********** [0]*/
      }
      CFast_YAM_GenMenu_Macro_3 () ;
/* [BeginMacro : 24] ********** [0]*/
      CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 120 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
    else {
      LocalCFast_fn_vSetDsgVarInteger(40, 1) ;
      p_stLocalMind0->CFast_lCmpMetaAction = 4;
label4 :
      if (CFast_YAM_GenMenu_Macro_17 ())
        return ;
      p_stLocalMind0->CFast_lCmpMetaAction = 0;
/* [BeginMacro : 17] ********** [0]*/
      LocalCFast_fn_vSetDsgVarBoolean(10, 1) ;
    }
  }
/* [EndTree] ************ [0]*/
}

long CFast_YAM_GenMenu_Macro_17 (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  long lMetaAction ;

  if ( CFast_g_bProcessReflex )
    lMetaAction = p_stLocalMind0->CFast_lRfxMetaActionForMacro ;
  else
    lMetaAction = p_stLocalMind0->CFast_lCmpMetaActionForMacro ;
  switch(lMetaAction) {
  case 1 : goto label1 ;
  }
  LocalCFast_fn_vSetDsgVarPerso(52, NULL) ;
  LocalCFast_fn_vSetDsgVarInteger(55, 0) ;

/* [Cond : =] ********** [2, 2, 1]*/
  if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 40)))) == 0 ) {
    (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(500) ;
    LocalCFast_fn_vSetDsgVarInteger(55, 0) ;

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
    CFast_CallFunction1_Static( 288 ) ;
    LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
  }
  else {

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 40)))) == 1 ) {
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xX = MTH_M_xLongToReal(80) ;
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xZ= MTH_M_xLongToReal(20) ;
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(850) ;

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
      CFast_CallFunction1_Static( 294 ) ;
      LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    }
    else {
      (LocalCFast_fn_p_stGetDsgVarVector(56))->xY = MTH_M_xLongToReal(500) ;
      LocalCFast_fn_vSetDsgVarInteger(55, 0) ;

/* [Func : TEXT_Affiche] ********** [5, 5, 1]*/
      CFast_CallFunction1_Static( 300 ) ;
      LocalCFast_fn_vSetDsgVarInteger(54, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;
    }
  }

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
  CFast_CallMetaActionInit_Static( 306 ) ;
  if ( !CFast_g_bProcessReflex ) 
    p_stLocalMind0->CFast_lCmpMetaActionForMacro = 1;
  else
    p_stLocalMind0->CFast_lRfxMetaActionForMacro = 1;
label1 :
  if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
    if ( CFast_g_bProcessReflex ) 
      CFast_g_bMetaActionInRfx = 1 ;
    return (1) ;
  }
  if ( CFast_g_bProcessReflex ) 
    p_stLocalMind0->CFast_lRfxMetaActionForMacro = 0;
  else
    p_stLocalMind0->CFast_lCmpMetaActionForMacro = 0;

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
  fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
  CFast_CallProcedure_Static( 308 ) ;
  if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
    CFast_g_bMetaActionInRfx = 1 ;
    return (1) ;
  }
  return (0) ;
}
/*
 * Model : YAM_GenMenu Comportement YAM_MenuYesNo
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuYesNo (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  case 4 : goto label4 ;
  case 5 : goto label5 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 28 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
          return ;
    }
    LocalCFast_fn_vSetDsgVarPerso(51, NULL) ;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 28 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
          return ;
    }
    LocalCFast_fn_vSetDsgVarPerso(51, NULL) ;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
    CFast_YAM_GenMenu_Macro_8 () ;
/* [BeginMacro : 89] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 148 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
    fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
    CFast_CallProcedure_Static( 28 ) ;
    if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
          return ;
    }
    LocalCFast_fn_vSetDsgVarPerso(51, NULL) ;

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 37)))) ) {

/* [Cond : =] ********** [2, 2, 1]*/
      if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 39)))) == 0 ) {
        LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
        CFast_YAM_GenMenu_Macro_8 () ;
/* [BeginMacro : 89] ********** [0]*/
        LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
        LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
        LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
        CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/
        LocalCFast_fn_vSetDsgVarBoolean(10, 1) ;
        LocalCFast_fn_vSetDsgVarBoolean(72, 1) ;
        if (CFast_YAM_GenMenu_Macro_2 ())
          return ;
/* [BeginMacro : 24] ********** [0]*/
        p_stLocalMind0->CFast_lCmpMetaAction = 4;
label4 :
        if (CFast_YAM_GenMenu_Macro_16 ())
          return ;
        p_stLocalMind0->CFast_lCmpMetaAction = 0;
/* [BeginMacro : 12] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 260 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 262 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
      else {
        M_Full_GetSetParam_Integer(&CFast_g_a_stParam[2], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) - 2);

/* [Func : EffacePartie] ********** [1, 1, 1]*/
          M_lValueInterpret(p_stPseudoTree+311) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
        CFast_CallFunction1_Static( 310 ) ;
        LocalCFast_fn_vSetDsgVarInteger(30, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Cond : =] ********** [2, 2, 1]*/
        if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 30)))) == 1 ) {
          M_Full_GetSetParam_Integer(&CFast_g_a_stParam[1], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) - 3);

/* [Op : [] ********** [2, 2, 0]*/

/* [Op : :=] ********** [4, 2, 0]*/
          M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Operator][0]) = (tdeOperatorId)11 ;

/* [Op : [] ********** [0, 2, 0]*/
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][1], E_ti_Operator);
          M_eOperatorIdInterpret(&CFast_g_a_stPseudoTree[2][1]) = (tdeOperatorId)26 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][2], E_ti_DsgVarRef);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[2][2]) = 29 ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][3], E_ti_Constant);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[2][3]) = M_GetSetParam_lValue(&CFast_g_a_stParam[1]) ;
          M_SetTypeInterpret(&CFast_g_a_stPseudoTree[2][4], E_ti_Constant);
          M_lValueInterpret(&CFast_g_a_stPseudoTree[2][4]) = 0 ;
          CFast_CallOperator0_NoStatic( ) ;
          LocalCFast_fn_vSetDsgVarInteger(24, (LocalCFast_fn_lGetDsgVarInteger(24)-1)) ;
          LocalCFast_fn_vSetDsgVarInteger(40, 2) ;
          p_stLocalMind0->CFast_lCmpMetaAction = 5;
label5 :
          if (CFast_YAM_GenMenu_Macro_17 ())
            return ;
          p_stLocalMind0->CFast_lCmpMetaAction = 0;
/* [BeginMacro : 17] ********** [0]*/
        }
        CFast_YAM_GenMenu_Macro_3 () ;
/* [BeginMacro : 24] ********** [0]*/
        CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
        CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 120 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
    }
    else {
      LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
      CFast_YAM_GenMenu_Macro_8 () ;
/* [BeginMacro : 89] ********** [0]*/
      LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
      LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Cond : =] ********** [2, 2, 1]*/
      if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 39)))) == 0 ) {

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 148 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
      else {

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 148 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuLoad
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuLoad (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  case 4 : goto label4 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_3 () ;
/* [BeginMacro : 24] ********** [0]*/
    if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
      CFast_CallFunction1_Static( 21 ) ;
      LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
      CFast_YAM_GenMenu_Macro_4 () ;
/* [BeginMacro : 29] ********** [0]*/
    }
    else {
      CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
    }
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;
    if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 118 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
    else {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 120 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;
    M_Full_GetSetParam_Integer(&CFast_g_a_stParam[2], (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) + 1);

/* [Func : ChargePartie] ********** [1, 1, 1]*/
      M_lValueInterpret(p_stPseudoTree+313) = M_GetSetParam_lValue(CFast_g_a_stParam+2);
    CFast_CallFunction1_Static( 312 ) ;
    LocalCFast_fn_vSetDsgVarInteger(30, M_GetSetParam_lValue(CFast_g_a_stParam+1)) ;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 30)))) == 1 ) {

/* [Func : ACT_LitPointsDeVie] ********** [2, 1, 1]*/
      CFast_CallFunction1_Static( 139 ) ;

/* [Proc : ACT_FixePointsDeVieInit] *********** [2, 2, 0]*/
        M_lValueInterpret(p_stPseudoTree+143) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
      CFast_CallProcedure_Static( 141 ) ;

/* [Proc : ChangeMap] *********** [1, 1, 0]*/
      M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)86 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
      M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "mapmonde" ;
      CFast_CallProcedure_NoStatic( ) ;
    }
    else {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_3 () ;
/* [BeginMacro : 24] ********** [0]*/
      if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {

/* [Func : Temps_Obtenir] ********** [0, 0, 1]*/
        CFast_CallFunction1_Static( 21 ) ;
        LocalCFast_fn_vSetDsgVarInteger(21, M_GetSetParam_ulValue(CFast_g_a_stParam+1)) ;
        CFast_YAM_GenMenu_Macro_4 () ;
/* [BeginMacro : 29] ********** [0]*/
      }
      else {
        CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
      }
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
      CFast_CallMetaActionInit_Static( 114 ) ;
      p_stLocalMind0->CFast_lCmpMetaAction = 4;
label4 :
      if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
        return ;
      }
      p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;
      if ( (*((char *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 23)))) ) {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 118 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
      else {

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
        CFast_CallProcedure_Static( 120 ) ;
        CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
        return ;
      }
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuStart
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuStart (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 0 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
      CFast_CallMetaActionInit_Static( 114 ) ;
      p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
      if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
        return ;
      }
      p_stLocalMind0->CFast_lCmpMetaAction = 0;
      LocalCFast_fn_vSetDsgVarBoolean(23, 0) ;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 144 ) ;

/* [Func : ACT_LitPointsDeVie] ********** [2, 1, 1]*/
      CFast_CallFunction1_Static( 139 ) ;

/* [Proc : ACT_FixePointsDeVieInit] *********** [2, 2, 0]*/
        M_lValueInterpret(p_stPseudoTree+143) = M_GetSetParam_lValue(CFast_g_a_stParam+1);
      CFast_CallProcedure_Static( 141 ) ;

/* [Proc : ChangeMap] *********** [1, 1, 0]*/
      M_eProcedureIdInterpret(&CFast_g_a_stPseudoTree[E_ti_Procedure][0]) = (tdeProcedureId)86 ;
      M_SetTypeInterpret(&CFast_g_a_stPseudoTree[4][1], E_ti_String);
      M_szStringInterpret(&CFast_g_a_stPseudoTree[4][1]) = "jail_10" ;
      CFast_CallProcedure_NoStatic( ) ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 1 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_9 () ;
/* [BeginMacro : 66] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 150 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 18)))) == 2 ) {
      if (CFast_YAM_GenMenu_Macro_7 ())
        return ;
/* [BeginMacro : 7] ********** [0]*/
      CFast_YAM_GenMenu_Macro_10 () ;
/* [BeginMacro : 26] ********** [0]*/
      CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 152 ) ;
      CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
      return ;
    }
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuChangeValeur
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuChangeValeur (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  case 3 : goto label3 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
    CFast_YAM_GenMenu_Macro_13 () ;
/* [BeginMacro : 62] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 200 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ) {

/* [Cond : =] ********** [2, 2, 1]*/
    if ( (*((int *)(M_LocalGetDsgVarAddr(p_stLocalMind0, 42)))) == 0 ) {

/* [Proc : Option_ChangeVolumeMusical] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 314 ) ;
    }
    else {

/* [Proc : Option_ChangeVolumeEffets] *********** [1, 1, 0]*/
      CFast_CallProcedure_Static( 316 ) ;
    }

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(68, LocalCFast_fn_lGetDsgVarInteger(18)) ;
    CFast_YAM_GenMenu_Macro_13 () ;
/* [BeginMacro : 62] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, LocalCFast_fn_lGetDsgVarInteger(68)) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 3;
label3 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 200 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuCentre
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuCentre (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  }

/* [Proc : VID_CenterScreen] *********** [0, 0, 0]*/
  CFast_CallProcedure_Static( 318 ) ;

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {

/* [Cond : ObjetValide] ********** [1, 1, 1]*/
    if ( CFast_CallCondition_Static(319) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
      fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
      CFast_CallProcedure_Static( 321 ) ;
      if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
              return ;
      }
    }

/* [Cond : ObjetValide] ********** [1, 1, 1]*/
    if ( CFast_CallCondition_Static(323) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
      fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
      CFast_CallProcedure_Static( 308 ) ;
      if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
              return ;
      }
    }

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 2]*/
  long1 = (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ? 1 : 0;
  if ( !long1 ) {

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 3]*/
    long1 = (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+31)) ? 1 : 0;
  }
  if ( long1 ) {

/* [Cond : ObjetValide] ********** [1, 1, 1]*/
    if ( CFast_CallCondition_Static(319) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
      fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
      CFast_CallProcedure_Static( 321 ) ;
      if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
              return ;
      }
    }

/* [Cond : ObjetValide] ********** [1, 1, 1]*/
    if ( CFast_CallCondition_Static(323) ) {

/* [Proc : DetruitPerso] *********** [1, 1, 0]*/
      fn_vSetProcedureActionReturn(C_ACTION_ENGINE_CONTINUE);
      CFast_CallProcedure_Static( 308 ) ;
      if (fn_ucGetProcedureActionReturn() != (C_ACTION_ENGINE_CONTINUE)) {
              return ;
      }
    }
    CFast_YAM_GenMenu_Macro_12 () ;
/* [BeginMacro : 69] ********** [0]*/
    LocalCFast_fn_vSetDsgVarInteger(18, 6) ;
    LocalCFast_fn_vSetDsgVarInteger(47, CFast_fn_lGetDsgVarIntegerArray(15,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    LocalCFast_fn_vSetDsgVarInteger(48, CFast_fn_lGetDsgVarIntegerArray(16,p_stLocalMind0,LocalCFast_fn_lGetDsgVarInteger(18))) ;
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Vector] *********** [4, 3, 2]*/
    CFast_CallVector2_Static (60) ;

/* [Func : GenereObjet] ********** [2, 2, 1]*/
      M_p_stVectorInterpret(p_stPseudoTree+111) = &M_GetSetParam_stVectorValue(CFast_g_a_stParam+2);
    CFast_CallFunction1_Static( 109 ) ;
    LocalCFast_fn_vSetDsgVarPersoWithEngine(0, M_GetSetParam_p_stEngineObjValue(CFast_g_a_stParam+1)) ;

/* [Cond : Alw_EstAMoi] ********** [1, 1, 1]*/
    if ( CFast_CallCondition_Static(112) ) {
      CFast_fn_vSetDsgVarPerso ( M_CFast_ucGetRealIndice(14), (M_GetMSHandle( (*((HIE_tdxHandleToSuperObject *)M_GetDsgVarAddr(p_stLocalMind0, 0))), Brain)->p_stMind), g_hSuperObjectPerso) ;
    }

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 198 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

/*
 * Model : YAM_GenMenu Comportement YAM_MenuCheats
 */
void CFast_YAM_GenMenu_Cmp_YAM_MenuCheats (void) {
  MTH3D_tdstVector stVector0;


 register  AI_tdstMind                 *p_stLocalMind0 = p_stGlobalMind;
  register struct tdstNodeInterpret_   *p_stRefTree = gp_stRefTree;
  register struct tdstNodeInterpret_   *p_stPseudoTree = gp_stPseudoTree;
  register tdstIntelligence            *p_stIntelligence = p_stLocalMind0->p_stIntelligence;
  register tdstIntelligence            *p_stReflex = p_stLocalMind0->p_stReflex;
  register char                        *p_cLocalDsgMemBuffer = p_cGlobalDsgMemBuffer ;
  register tdstDsgVarInfo              *p_stLocalDsgVarInfo = p_stGlobalDsgVarInfo ;

  register long                        long1, long2 ;
  long                                 long3, long4, long5, long6, long7, long8;
  register AI_tdstMind                 *p_stLocalMind1, *p_stLocalMind2, *p_stLocalMind4, *p_stLocalMind8;

  switch(p_stLocalMind0->CFast_lCmpMetaAction) {
  case 1 : goto label1 ;
  case 2 : goto label2 ;
  }

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+27)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 1;
label1 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 144 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 146 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/

/* [Cond : BoutonJusteAppuye] ********** [1, 1, 1]*/
  if ( (long)IPT_fn_bIsJustValidated((IPT_tdxHandleToEntryElement) M_lValueInterpret(p_stRefTree+30)) ) {
    if (CFast_YAM_GenMenu_Macro_7 ())
      return ;
/* [BeginMacro : 7] ********** [0]*/
    CFast_YAM_GenMenu_Macro_6 () ;
/* [BeginMacro : 42] ********** [0]*/
    CFast_YAM_GenMenu_Macro_5 () ;
/* [BeginMacro : 36] ********** [0]*/

/* [Meta : Temps_AttenteFigee] ********** [1, 1, 0]*/
    CFast_CallMetaActionInit_Static( 114 ) ;
    p_stLocalMind0->CFast_lCmpMetaAction = 2;
label2 :
    if ( CFast_CallMetaAction(0) & (C_DefaultMetaActionNotFinished)) {
      return ;
    }
    p_stLocalMind0->CFast_lCmpMetaAction = 0;

/* [Proc : ChangeMonComportementReflexe] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 116 ) ;

/* [Proc : ChangeMonComportement] *********** [1, 1, 0]*/
    CFast_CallProcedure_Static( 120 ) ;
    CFast_YAM_GenMenu_ArrayComport[p_stIntelligence->p_stCurrentComport->CFast_lMyIndex]();
    return ;
  }
/* [EndTree] ************ [0]*/
}

void CFast_Dummy_YAM_GenMenu(void) {
#ifdef DEBUG_CFAST
  long lSize ;
  FILE *fd = fopen ( "CfastAISize.log", "a") ;

  lSize = (long)CFast_Dummy_YAM_GenMenu - (long)CFast_YAM_GenMenu_Main ;
  lSize += sizeof ( CFast_YAM_GenMenu_ArrayReflex ) ;
  lSize += sizeof ( CFast_YAM_GenMenu_ArrayComport ) ;
  lSize += 2600;
  fprintf ( fd, "YAM_GenMenu : 	AI = 150256\tC = %d\tDiff = %+d\n", lSize, 150256-lSize ) ;
  fclose (fd) ;
#endif /* DEBUG_CFAST */
}
