Uart_StartAsyncSend.isra.0 (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
{
  Std_ReturnType TempReturn;
  <unnamed type> _2;

  <bb 6> [local count: 1073741824]:
  # DEBUG CoreId s=> CoreId

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  _2 = Uart_Ipw_GetTransmitStatus (Channel_1(D), 0B);
  if (_2 == 1)
    goto <bb 3>; [34.00%]
  else
    goto <bb 4>; [66.00%]

  <bb 3> [local count: 365072220]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 5, 6);
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 708669605]:
  # DEBUG BEGIN_STMT
  TempReturn_5 = Uart_Ipw_AsyncSend (Channel_1(D), Buffer_3(D), BufferSize_4(D));
  # DEBUG TempReturn => TempReturn_5

  <bb 5> [local count: 1073741824]:
  # TempReturn_6 = PHI <1(3), TempReturn_5(4)>
  # DEBUG TempReturn => TempReturn_6
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  return TempReturn_6;

}


Uart_StartAsyncReceive.isra.0 (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
{
  Std_ReturnType TempReturn;
  <unnamed type> _2;

  <bb 6> [local count: 1073741824]:
  # DEBUG CoreId s=> CoreId

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  _2 = Uart_Ipw_GetReceiveStatus (Channel_1(D), 0B);
  if (_2 == 1)
    goto <bb 3>; [34.00%]
  else
    goto <bb 4>; [66.00%]

  <bb 3> [local count: 365072220]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 7, 6);
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 708669605]:
  # DEBUG BEGIN_STMT
  TempReturn_5 = Uart_Ipw_AsyncReceive (Channel_1(D), Buffer_3(D), BufferSize_4(D));
  # DEBUG TempReturn => TempReturn_5

  <bb 5> [local count: 1073741824]:
  # TempReturn_6 = PHI <1(3), TempReturn_5(4)>
  # DEBUG TempReturn => TempReturn_6
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  return TempReturn_6;

}


Uart_StartSyncReceive.isra.0 (uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Std_ReturnType TempReturn;
  <unnamed type> _2;

  <bb 7> [local count: 1073741824]:
  # DEBUG CoreId s=> CoreId

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  _2 = Uart_Ipw_GetReceiveStatus (Channel_1(D), 0B);
  if (_2 == 1)
    goto <bb 3>; [34.00%]
  else
    goto <bb 4>; [66.00%]

  <bb 3> [local count: 365072220]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 6, 6);
  goto <bb 6>; [100.00%]

  <bb 4> [local count: 708669605]:
  # DEBUG BEGIN_STMT
  TempReturn_6 = Uart_Ipw_SyncReceive (Channel_1(D), Buffer_3(D), BufferSize_4(D), Timeout_5(D));
  # DEBUG TempReturn => TempReturn_6
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (TempReturn_6 == 6)
    goto <bb 5>; [20.24%]
  else
    goto <bb 6>; [79.76%]

  <bb 5> [local count: 143434728]:
  # DEBUG BEGIN_STMT
  Det_ReportRuntimeError (255, 0, 6, 8);
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1

  <bb 6> [local count: 1073741824]:
  # TempReturn_7 = PHI <1(3), TempReturn_6(4), 1(5)>
  # DEBUG TempReturn => TempReturn_7
  # DEBUG BEGIN_STMT
  return TempReturn_7;

}


Uart_StartSyncSend.isra.0 (uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Std_ReturnType TempReturn;
  <unnamed type> _2;

  <bb 7> [local count: 1073741824]:
  # DEBUG CoreId s=> CoreId

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  _2 = Uart_Ipw_GetTransmitStatus (Channel_1(D), 0B);
  if (_2 == 1)
    goto <bb 3>; [34.00%]
  else
    goto <bb 4>; [66.00%]

  <bb 3> [local count: 365072220]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 4, 6);
  goto <bb 6>; [100.00%]

  <bb 4> [local count: 708669605]:
  # DEBUG BEGIN_STMT
  TempReturn_6 = Uart_Ipw_SyncSend (Channel_1(D), Buffer_3(D), BufferSize_4(D), Timeout_5(D));
  # DEBUG TempReturn => TempReturn_6
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  if (TempReturn_6 == 6)
    goto <bb 5>; [20.24%]
  else
    goto <bb 6>; [79.76%]

  <bb 5> [local count: 143434728]:
  # DEBUG BEGIN_STMT
  Det_ReportRuntimeError (255, 0, 4, 8);
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1

  <bb 6> [local count: 1073741824]:
  # TempReturn_7 = PHI <1(3), TempReturn_6(4), 1(5)>
  # DEBUG TempReturn => TempReturn_7
  # DEBUG BEGIN_STMT
  return TempReturn_7;

}


Uart_StartSetBuffer.isra.0 (uint8 Channel, uint8 * Buffer, uint32 BufferSize, Uart_DataDirectionType Direction)
{
  <bb 6> [local count: 1073741824]:
  # DEBUG CoreId s=> CoreId

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  if (Direction_1(D) == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Uart_Ipw_SetTxBuffer (Channel_2(D), Buffer_3(D), BufferSize_4(D));
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Uart_Ipw_SetRxBuffer (Channel_2(D), Buffer_3(D), BufferSize_4(D));

  <bb 5> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 0
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  return 0;

}


Uart_GetVersionInfo (struct Std_VersionInfoType * VersionInfo)
{
  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  if (VersionInfo_2(D) == 0B)
    goto <bb 3>; [17.43%]
  else
    goto <bb 4>; [82.57%]

  <bb 3> [local count: 187153200]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 10, 3);
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 886588625]:
  # DEBUG BEGIN_STMT
  VersionInfo_2(D)->vendorID = 43;
  # DEBUG BEGIN_STMT
  VersionInfo_2(D)->moduleID = 255;
  # DEBUG BEGIN_STMT
  VersionInfo_2(D)->sw_major_version = 1;
  # DEBUG BEGIN_STMT
  VersionInfo_2(D)->sw_minor_version = 0;
  # DEBUG BEGIN_STMT
  VersionInfo_2(D)->sw_patch_version = 0;

  <bb 5> [local count: 1073741824]:
  return;

}


Uart_GetStatus (uint8 Channel, uint32 * BytesTransfered, Uart_DataDirectionType TransferType)
{
  Uart_StatusType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 4
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [20.96%]
  else
    goto <bb 4>; [79.04%]

  <bb 3> [local count: 225056286]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 9, 1);
  goto <bb 11>; [100.00%]

  <bb 4> [local count: 848685538]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [20.96%]
  else
    goto <bb 6>; [79.04%]

  <bb 5> [local count: 177884489]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 9, 2);
  goto <bb 11>; [100.00%]

  <bb 6> [local count: 670801049]:
  # DEBUG BEGIN_STMT
  if (BytesTransfered_6(D) == 0B)
    goto <bb 7>; [10.21%]
  else
    goto <bb 8>; [89.79%]

  <bb 7> [local count: 68488787]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 9, 3);
  goto <bb 11>; [100.00%]

  <bb 8> [local count: 602312262]:
  # DEBUG BEGIN_STMT
  if (TransferType_7(D) == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 9> [local count: 301156131]:
  # DEBUG BEGIN_STMT
  TempReturn_11 = Uart_Ipw_GetTransmitStatus (Channel_5(D), BytesTransfered_6(D));
  # DEBUG TempReturn => TempReturn_11
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 301156131]:
  # DEBUG BEGIN_STMT
  TempReturn_9 = Uart_Ipw_GetReceiveStatus (Channel_5(D), BytesTransfered_6(D));
  # DEBUG TempReturn => TempReturn_9

  <bb 11> [local count: 1073741824]:
  # TempReturn_2 = PHI <4(3), 4(5), 4(7), TempReturn_11(9), TempReturn_9(10)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_AsyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
{
  Std_ReturnType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 5, 1);
  goto <bb 11>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 5, 2);
  goto <bb 11>; [100.00%]

  <bb 6> [local count: 482002705]:
  # DEBUG BEGIN_STMT
  if (Buffer_6(D) == 0B)
    goto <bb 7>; [17.43%]
  else
    goto <bb 8>; [82.57%]

  <bb 7> [local count: 84013071]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 5, 3);
  goto <bb 11>; [100.00%]

  <bb 8> [local count: 397989633]:
  # DEBUG BEGIN_STMT
  if (BufferSize_7(D) == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 9> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 5, 7);
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  # DEBUG D#5 => 0
  TempReturn_9 = Uart_StartAsyncSend.isra.0 (Channel_5(D), Buffer_6(D), BufferSize_7(D));
  # DEBUG TempReturn => TempReturn_9

  <bb 11> [local count: 1073741824]:
  # TempReturn_2 = PHI <1(3), 1(5), 1(7), 1(9), TempReturn_9(10)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_AsyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
{
  Std_ReturnType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 7, 1);
  goto <bb 11>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 7, 2);
  goto <bb 11>; [100.00%]

  <bb 6> [local count: 482002705]:
  # DEBUG BEGIN_STMT
  if (Buffer_6(D) == 0B)
    goto <bb 7>; [17.43%]
  else
    goto <bb 8>; [82.57%]

  <bb 7> [local count: 84013071]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 7, 3);
  goto <bb 11>; [100.00%]

  <bb 8> [local count: 397989633]:
  # DEBUG BEGIN_STMT
  if (BufferSize_7(D) == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 9> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 7, 7);
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  # DEBUG D#4 => 0
  TempReturn_9 = Uart_StartAsyncReceive.isra.0 (Channel_5(D), Buffer_6(D), BufferSize_7(D));
  # DEBUG TempReturn => TempReturn_9

  <bb 11> [local count: 1073741824]:
  # TempReturn_2 = PHI <1(3), 1(5), 1(7), 1(9), TempReturn_9(10)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_SyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Std_ReturnType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 6, 1);
  goto <bb 11>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 6, 2);
  goto <bb 11>; [100.00%]

  <bb 6> [local count: 482002705]:
  # DEBUG BEGIN_STMT
  if (Buffer_6(D) == 0B)
    goto <bb 7>; [17.43%]
  else
    goto <bb 8>; [82.57%]

  <bb 7> [local count: 84013071]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 6, 3);
  goto <bb 11>; [100.00%]

  <bb 8> [local count: 397989633]:
  # DEBUG BEGIN_STMT
  if (BufferSize_7(D) == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 9> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 6, 7);
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  # DEBUG D#3 => 0
  TempReturn_10 = Uart_StartSyncReceive.isra.0 (Channel_5(D), Buffer_6(D), BufferSize_7(D), Timeout_8(D));
  # DEBUG TempReturn => TempReturn_10

  <bb 11> [local count: 1073741824]:
  # TempReturn_2 = PHI <1(3), 1(5), 1(7), 1(9), TempReturn_10(10)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_SyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Std_ReturnType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 4, 1);
  goto <bb 11>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 4, 2);
  goto <bb 11>; [100.00%]

  <bb 6> [local count: 482002705]:
  # DEBUG BEGIN_STMT
  if (Buffer_6(D) == 0B)
    goto <bb 7>; [17.43%]
  else
    goto <bb 8>; [82.57%]

  <bb 7> [local count: 84013071]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 4, 3);
  goto <bb 11>; [100.00%]

  <bb 8> [local count: 397989633]:
  # DEBUG BEGIN_STMT
  if (BufferSize_7(D) == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 9> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 4, 7);
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  # DEBUG D#2 => 0
  TempReturn_10 = Uart_StartSyncSend.isra.0 (Channel_5(D), Buffer_6(D), BufferSize_7(D), Timeout_8(D));
  # DEBUG TempReturn => TempReturn_10

  <bb 11> [local count: 1073741824]:
  # TempReturn_2 = PHI <1(3), 1(5), 1(7), 1(9), TempReturn_10(10)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_SetBuffer (uint8 Channel, uint8 * Buffer, uint32 BufferSize, Uart_DataDirectionType Direction)
{
  Std_ReturnType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 11, 1);
  goto <bb 11>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 11, 2);
  goto <bb 11>; [100.00%]

  <bb 6> [local count: 482002705]:
  # DEBUG BEGIN_STMT
  if (Buffer_6(D) == 0B)
    goto <bb 7>; [17.43%]
  else
    goto <bb 8>; [82.57%]

  <bb 7> [local count: 84013071]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 11, 3);
  goto <bb 11>; [100.00%]

  <bb 8> [local count: 397989633]:
  # DEBUG BEGIN_STMT
  if (BufferSize_7(D) == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 10>; [50.00%]

  <bb 9> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 11, 7);
  goto <bb 11>; [100.00%]

  <bb 10> [local count: 198994816]:
  # DEBUG BEGIN_STMT
  # DEBUG D#1 => 0
  TempReturn_10 = Uart_StartSetBuffer.isra.0 (Channel_5(D), Buffer_6(D), BufferSize_7(D), Direction_8(D));
  # DEBUG TempReturn => TempReturn_10

  <bb 11> [local count: 1073741824]:
  # TempReturn_2 = PHI <1(3), 1(5), 1(7), 1(9), TempReturn_10(10)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_Abort (uint8 Channel, Uart_DataDirectionType TransmissionType)
{
  Std_ReturnType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 8, 1);
  goto <bb 9>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 8, 2);
  goto <bb 9>; [100.00%]

  <bb 6> [local count: 482002705]:
  # DEBUG BEGIN_STMT
  if (TransmissionType_6(D) == 0)
    goto <bb 7>; [50.00%]
  else
    goto <bb 8>; [50.00%]

  <bb 7> [local count: 241001352]:
  # DEBUG BEGIN_STMT
  TempReturn_10 = Uart_Ipw_AbortSendingData (Channel_5(D));
  # DEBUG TempReturn => TempReturn_10
  goto <bb 9>; [100.00%]

  <bb 8> [local count: 241001352]:
  # DEBUG BEGIN_STMT
  TempReturn_8 = Uart_Ipw_AbortReceivingData (Channel_5(D));
  # DEBUG TempReturn => TempReturn_8

  <bb 9> [local count: 1073741824]:
  # TempReturn_2 = PHI <1(3), 1(5), TempReturn_10(7), TempReturn_8(8)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_GetBaudrate (uint8 Channel, uint32 * Baudrate)
{
  Std_ReturnType TempReturn;
  <unnamed type> _1;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 3, 1);
  goto <bb 9>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_5(D) > 4)
    goto <bb 5>; [33.00%]
  else
    goto <bb 6>; [67.00%]

  <bb 5> [local count: 237404317]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 3, 2);
  goto <bb 9>; [100.00%]

  <bb 6> [local count: 482002705]:
  # DEBUG BEGIN_STMT
  if (Baudrate_6(D) == 0B)
    goto <bb 7>; [30.00%]
  else
    goto <bb 8>; [70.00%]

  <bb 7> [local count: 144600811]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 3, 3);
  goto <bb 9>; [100.00%]

  <bb 8> [local count: 337401893]:
  # DEBUG BEGIN_STMT
  Uart_Ipw_GetBaudrate (Channel_5(D), Baudrate_6(D));
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 0

  <bb 9> [local count: 1073741824]:
  # TempReturn_2 = PHI <1(3), 1(5), 1(7), 0(8)>
  # DEBUG TempReturn => TempReturn_2
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  return TempReturn_2;

}


Uart_SetBaudrate (uint8 Channel, Uart_BaudrateType Baudrate)
{
  Uart_StatusType TransmitStatus;
  Uart_StatusType ReceiveStatus;
  Std_ReturnType TempReturn;
  <unnamed type> _1;
  int _2;
  long unsigned int _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempReturn => 1
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 == 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 354334802]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 2, 1);
  goto <bb 10>; [100.00%]

  <bb 4> [local count: 719407023]:
  # DEBUG BEGIN_STMT
  if (Channel_7(D) > 4)
    goto <bb 5>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 5> [local count: 359703511]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 2, 2);
  goto <bb 10>; [100.00%]

  <bb 6> [local count: 359703511]:
  # DEBUG BEGIN_STMT
  ReceiveStatus_9 = Uart_Ipw_GetReceiveStatus (Channel_7(D), 0B);
  # DEBUG ReceiveStatus => ReceiveStatus_9
  # DEBUG BEGIN_STMT
  TransmitStatus_11 = Uart_Ipw_GetTransmitStatus (Channel_7(D), 0B);
  # DEBUG TransmitStatus => TransmitStatus_11
  # DEBUG BEGIN_STMT
  if (ReceiveStatus_9 == 1)
    goto <bb 8>; [20.24%]
  else
    goto <bb 7>; [79.76%]

  <bb 7> [local count: 286899520]:
  if (TransmitStatus_11 == 1)
    goto <bb 8>; [51.12%]
  else
    goto <bb 9>; [48.88%]

  <bb 8> [local count: 219467026]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 2, 6);
  goto <bb 10>; [100.00%]

  <bb 9> [local count: 140236486]:
  # DEBUG BEGIN_STMT
  _2 = (int) Channel_7(D);
  _3 = Uart_au32ClockFrequency[0][_2];
  TempReturn_14 = Uart_Ipw_SetBaudrate (Channel_7(D), Baudrate_12(D), _3);
  # DEBUG TempReturn => TempReturn_14

  <bb 10> [local count: 1073741824]:
  # TempReturn_4 = PHI <1(3), 1(5), 1(8), TempReturn_14(9)>
  # DEBUG TempReturn => TempReturn_4
  # DEBUG BEGIN_STMT
  return TempReturn_4;

}


Uart_Deinit ()
{
  uint8 u8ChLoop;
  <unnamed type> _1;
  const struct Uart_ConfigType * _2;
  int _3;
  const struct Uart_ChannelConfigType * _4;
  unsigned char _5;

  <bb 2> [local count: 350142337]:
  # DEBUG BEGIN_STMT
  # DEBUG u8ChLoop => 0
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 != 1)
    goto <bb 3>; [48.88%]
  else
    goto <bb 8>; [51.12%]

  <bb 8> [local count: 178992762]:
  goto <bb 5>; [100.00%]

  <bb 3> [local count: 171149574]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 1, 1);
  goto <bb 7>; [100.00%]

  <bb 4> [local count: 894749063]:
  # DEBUG BEGIN_STMT
  _2 = Uart_apConfig[0];
  _3 = (int) u8ChLoop_6;
  _4 = _2->Configs[_3];
  _5 = _4->UartChannelId;
  Uart_Ipw_Deinit (_5);
  # DEBUG BEGIN_STMT
  Uart_au8DriverStatus[0] = 0;
  # DEBUG BEGIN_STMT
  u8ChLoop_13 = u8ChLoop_6 + 1;
  # DEBUG u8ChLoop => u8ChLoop_13

  <bb 5> [local count: 1073741824]:
  # u8ChLoop_6 = PHI <u8ChLoop_13(4), 0(8)>
  # DEBUG u8ChLoop => u8ChLoop_6
  # DEBUG BEGIN_STMT
  if (u8ChLoop_6 != 5)
    goto <bb 4>; [83.33%]
  else
    goto <bb 6>; [16.67%]

  <bb 6> [local count: 178992762]:
  # DEBUG BEGIN_STMT
  Uart_apConfig[0] = 0B;

  <bb 7> [local count: 350142336]:
  return;

}


Uart_Init (const struct Uart_ConfigType * Config)
{
  uint8 Channel;
  uint8 u8ChLoop;
  <unnamed type> _1;
  const struct Uart_ConfigType * _2;
  const struct Uart_ConfigType * _3;
  int _4;
  const struct Uart_ChannelConfigType * _5;
  const struct Uart_Ipw_HwConfigType * _6;
  const struct Uart_ConfigType * _7;
  const struct Uart_ChannelConfigType * _8;
  int _9;
  long unsigned int _10;

  <bb 2> [local count: 574152970]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG CoreId => 0
  # DEBUG BEGIN_STMT
  _1 = Uart_au8DriverStatus[0];
  if (_1 != 0)
    goto <bb 3>; [33.00%]
  else
    goto <bb 4>; [67.00%]

  <bb 3> [local count: 189470480]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 0, 4);
  goto <bb 11>; [100.00%]

  <bb 4> [local count: 384682489]:
  # DEBUG BEGIN_STMT
  if (Config_16(D) != 0B)
    goto <bb 5>; [53.47%]
  else
    goto <bb 6>; [46.53%]

  <bb 5> [local count: 205689727]:
  # DEBUG BEGIN_STMT
  Det_ReportError (255, 0, 0, 9);
  goto <bb 11>; [100.00%]

  <bb 6> [local count: 178992762]:
  # DEBUG BEGIN_STMT
  _2 = Uart_pxPBcfgVariantPredefined[0];
  Uart_apConfig[0] = _2;
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  # DEBUG u8ChLoop => 0
  goto <bb 10>; [100.00%]

  <bb 7> [local count: 894749063]:
  # DEBUG BEGIN_STMT
  _3 = Uart_apConfig[0];
  _4 = (int) u8ChLoop_11;
  _5 = _3->Configs[_4];
  if (_5 != 0B)
    goto <bb 8>; [53.47%]
  else
    goto <bb 9>; [46.53%]

  <bb 8> [local count: 478422324]:
  # DEBUG BEGIN_STMT
  Channel_18 = _5->UartChannelId;
  # DEBUG Channel => Channel_18
  # DEBUG BEGIN_STMT
  _6 = _5->UartChannelConfig;
  Uart_Ipw_Init (Channel_18, _6);
  # DEBUG BEGIN_STMT
  _7 = Uart_apConfig[0];
  _8 = _7->Configs[_4];
  _9 = (int) Channel_18;
  _10 = _8->ChannelClockFrequency;
  Uart_au32ClockFrequency[0][_9] = _10;
  # DEBUG BEGIN_STMT
  Uart_au8DriverStatus[0] = 1;

  <bb 9> [local count: 894749063]:
  # DEBUG BEGIN_STMT
  u8ChLoop_22 = u8ChLoop_11 + 1;
  # DEBUG u8ChLoop => u8ChLoop_22

  <bb 10> [local count: 1073741824]:
  # u8ChLoop_11 = PHI <0(6), u8ChLoop_22(9)>
  # DEBUG u8ChLoop => u8ChLoop_11
  # DEBUG BEGIN_STMT
  if (u8ChLoop_11 != 5)
    goto <bb 7>; [83.33%]
  else
    goto <bb 11>; [16.67%]

  <bb 11> [local count: 574152970]:
  return;

}


