SampleAppTask2 ()
{
  Eth_RxStatusType RxStatus;
  uint8 CtrlIndex;
  Std_ReturnType tempRet;
  int _1;
  const struct Eth_43_PFE_StaticCtrlCfgType * _2;
  unsigned char _3;
  int _4;
  const struct Eth_43_PFE_StaticCtrlCfgType * _5;
  unsigned char _6;
  unsigned char CtrlIndex.1_7;
  Std_ReturnType _16;
  unsigned char _18;

  <bb 2> :
  # DEBUG BEGIN_STMT
  tempRet_13 = 0;
  # DEBUG tempRet => tempRet_13
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  CtrlIndex_14 = 0;
  # DEBUG CtrlIndex => CtrlIndex_14
  goto <bb 8>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _18 = Tst_Pfe_SendDummyFrame (CtrlIndex_9, &broadcastMac);
  tempRet_19 = _18 | tempRet_8;
  # DEBUG tempRet => tempRet_19
  # DEBUG BEGIN_STMT
  _1 = (int) CtrlIndex_9;
  _2 = Eth_43_PFE_StaticConfig.pController[_1];
  _3 = _2->EnableRxInterrupt;
  if (_3 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  Eth_43_PFE_Receive (CtrlIndex_9, 0, &RxStatus);
  RxStatus ={v} {CLOBBER};

  <bb 5> :
  # DEBUG BEGIN_STMT
  _4 = (int) CtrlIndex_9;
  _5 = Eth_43_PFE_StaticConfig.pController[_4];
  _6 = _5->EnableTxInterrupt;
  if (_6 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  Eth_43_PFE_TxConfirmation (CtrlIndex_9);

  <bb 7> :
  # DEBUG BEGIN_STMT
  CtrlIndex.1_7 = CtrlIndex_9;
  CtrlIndex_23 = CtrlIndex.1_7 + 1;
  # DEBUG CtrlIndex => CtrlIndex_23

  <bb 8> :
  # tempRet_8 = PHI <tempRet_13(2), tempRet_19(7)>
  # CtrlIndex_9 = PHI <CtrlIndex_14(2), CtrlIndex_23(7)>
  # DEBUG CtrlIndex => CtrlIndex_9
  # DEBUG tempRet => tempRet_8
  # DEBUG BEGIN_STMT
  if (CtrlIndex_9 <= 2)
    goto <bb 3>; [INV]
  else
    goto <bb 9>; [INV]

  <bb 9> :
  # DEBUG BEGIN_STMT
  _16 = tempRet_8;
  return _16;

}


SimpleDelay (uint32 timeout)
{
  long unsigned int timeout.0_1;

  <bb 2> :
  # DEBUG BEGIN_STMT
  goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  __asm__ __volatile__("nop");

  <bb 4> :
  # timeout_2 = PHI <timeout_4(D)(2), timeout_6(3)>
  # DEBUG timeout => timeout_2
  # DEBUG BEGIN_STMT
  timeout.0_1 = timeout_2;
  timeout_6 = timeout.0_1 + 4294967295;
  # DEBUG timeout => timeout_6
  if (timeout.0_1 != 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 5> :
  return;

}


