Uart_Ipw_FlexioTransferCallback (const uint32 HwChannel, const Flexio_Uart_Ip_EventType Event, void * UserData)
{
  Uart_EventType TempEvent;
  uint8 Channel;
  long unsigned int _1;
  signed char _2;
  int _3;
  const struct Uart_Ipw_HwConfigType * _4;
  void (*<T53e>) (uint8, Uart_EventType) _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = HwChannel_7(D) + 3;
  _2 = Uart_Ipw_s8HwMapping[_1];
  Channel_9 = (uint8) _2;
  # DEBUG Channel => Channel_9
  # DEBUG BEGIN_STMT
  # DEBUG Event => Event_10(D)
  # DEBUG INLINE_ENTRY Uart_Ipw_FlexioConvertEventType
  # DEBUG BEGIN_STMT
  # DEBUG TempEvent => 3
  # DEBUG BEGIN_STMT
  if (Event_10(D) <= 2)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
<L3>:

  <bb 4> [local count: 1073741824]:
  # TempEvent_12 = PHI <3(2), Event_10(D)(3)>
<L4>:
<L5>:
  # DEBUG TempEvent => TempEvent_12
  # DEBUG BEGIN_STMT
  # DEBUG Event => NULL
  # DEBUG TempEvent => NULL
  # DEBUG ConvertEvent => TempEvent_12
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_9;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->Callback;
  if (_5 != 0B)
    goto <bb 5>; [70.00%]
  else
    goto <bb 6>; [30.00%]

  <bb 5> [local count: 751619278]:
  # DEBUG BEGIN_STMT
  _5 (Channel_9, TempEvent_12);

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

}


Uart_Ipw_LpuartCallback (const uint8 HwInstance, const Lpuart_Uart_Ip_EventType Event, void * UserData)
{
  Uart_EventType TempEvent;
  uint8 Channel;
  int _1;
  signed char _2;
  int _3;
  const struct Uart_Ipw_HwConfigType * _4;
  void (*<T53e>) (uint8, Uart_EventType) _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = (int) HwInstance_7(D);
  _2 = Uart_Ipw_s8HwMapping[_1];
  Channel_9 = (uint8) _2;
  # DEBUG Channel => Channel_9
  # DEBUG BEGIN_STMT
  # DEBUG Event => Event_10(D)
  # DEBUG INLINE_ENTRY Uart_Ipw_LpuartConvertEventType
  # DEBUG BEGIN_STMT
  # DEBUG TempEvent => 3
  # DEBUG BEGIN_STMT
  if (Event_10(D) <= 2)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
<L3>:

  <bb 4> [local count: 1073741824]:
  # TempEvent_12 = PHI <3(2), Event_10(D)(3)>
<L4>:
<L5>:
  # DEBUG TempEvent => TempEvent_12
  # DEBUG BEGIN_STMT
  # DEBUG Event => NULL
  # DEBUG TempEvent => NULL
  # DEBUG ConvertEvent => TempEvent_12
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_9;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->Callback;
  if (_5 != 0B)
    goto <bb 5>; [70.00%]
  else
    goto <bb 6>; [30.00%]

  <bb 5> [local count: 751619278]:
  # DEBUG BEGIN_STMT
  _5 (Channel_9, TempEvent_12);

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

}


Uart_Ipw_FlexioConvertBaudrateType (Uart_BaudrateType Baudrate)
{
  Flexio_Uart_Ip_BaudrateType TempBaud;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 1200
  # DEBUG BEGIN_STMT
  switch (Baudrate_2(D)) <default: <L17> [7.14%], case 2400: <L1> [7.14%], case 4800: <L2> [7.14%], case 9600: <L3> [7.14%], case 14400: <L4> [7.14%], case 19200: <L5> [7.14%], case 28800: <L6> [7.14%], case 38400: <L7> [7.14%], case 57600: <L8> [7.14%], case 115200: <L9> [7.14%], case 230400: <L10> [7.14%], case 460800: <L11> [7.14%], case 921600: <L12> [7.14%], case 1843200: <L13> [7.14%]>

  <bb 3> [local count: 76665166]:
<L1>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 2400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 4> [local count: 76665166]:
<L2>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 4800
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 5> [local count: 76665166]:
<L3>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 9600
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 6> [local count: 76665166]:
<L4>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 14400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 7> [local count: 76665166]:
<L5>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 19200
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 8> [local count: 76665166]:
<L6>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 28800
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 9> [local count: 76665166]:
<L7>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 38400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 10> [local count: 76665166]:
<L8>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 57600
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 11> [local count: 76665166]:
<L9>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 115200
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 12> [local count: 76665166]:
<L10>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 230400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 13> [local count: 76665166]:
<L11>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 460800
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 14> [local count: 76665166]:
<L12>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 921600
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 15> [local count: 76665166]:
<L13>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 1843200
  # DEBUG BEGIN_STMT

  <bb 16> [local count: 1073312328]:
  # TempBaud_1 = PHI <1200(2), 2400(3), 4800(4), 9600(5), 14400(6), 19200(7), 28800(8), 38400(9), 57600(10), 115200(11), 230400(12), 460800(13), 921600(14), 1843200(15)>
<L17>:
  # DEBUG TempBaud => TempBaud_1
  # DEBUG BEGIN_STMT
  return TempBaud_1;

}


Uart_Ipw_FlexioConvertStatus (Flexio_Uart_Ip_StatusType Status)
{
  Uart_StatusType TempStatus;

  <bb 2> [local count: 1073527120]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 6
  # DEBUG BEGIN_STMT
  switch (Status_2(D)) <default: <L5> [16.67%], case 0: <L8> [16.67%], case 2: <L1> [16.67%], case 514: <L4> [16.67%], case 516: <L2> [16.67%], case 518: <L3> [16.67%]>

  <bb 3> [local count: 178956971]:
<L1>:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 4> [local count: 178956971]:
<L2>:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 2
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 5> [local count: 178956971]:
<L3>:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 6
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 6> [local count: 178956971]:
<L4>:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 4
  # DEBUG BEGIN_STMT
  goto <bb 8>; [100.00%]

  <bb 7> [local count: 178956971]:
<L5>:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 8
  # DEBUG BEGIN_STMT

  <bb 8> [local count: 1073741824]:
  # TempStatus_1 = PHI <0(2), 1(3), 2(4), 6(5), 4(6), 8(7)>
<L8>:
  # DEBUG TempStatus => TempStatus_1
  # DEBUG BEGIN_STMT
  return TempStatus_1;

}


Uart_Ipw_LpuartConvertBaudrateType (Uart_BaudrateType Baudrate)
{
  Lpuart_Uart_Ip_BaudrateType TempBaud;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 1200
  # DEBUG BEGIN_STMT
  switch (Baudrate_2(D)) <default: <L17> [7.14%], case 2400: <L1> [7.14%], case 4800: <L2> [7.14%], case 9600: <L3> [7.14%], case 14400: <L4> [7.14%], case 19200: <L5> [7.14%], case 28800: <L6> [7.14%], case 38400: <L7> [7.14%], case 57600: <L8> [7.14%], case 115200: <L9> [7.14%], case 230400: <L10> [7.14%], case 460800: <L11> [7.14%], case 921600: <L12> [7.14%], case 1843200: <L13> [7.14%]>

  <bb 3> [local count: 76665166]:
<L1>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 2400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 4> [local count: 76665166]:
<L2>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 4800
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 5> [local count: 76665166]:
<L3>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 9600
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 6> [local count: 76665166]:
<L4>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 14400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 7> [local count: 76665166]:
<L5>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 19200
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 8> [local count: 76665166]:
<L6>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 28800
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 9> [local count: 76665166]:
<L7>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 38400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 10> [local count: 76665166]:
<L8>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 57600
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 11> [local count: 76665166]:
<L9>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 115200
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 12> [local count: 76665166]:
<L10>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 230400
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 13> [local count: 76665166]:
<L11>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 460800
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 14> [local count: 76665166]:
<L12>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 921600
  # DEBUG BEGIN_STMT
  goto <bb 16>; [100.00%]

  <bb 15> [local count: 76665166]:
<L13>:
  # DEBUG BEGIN_STMT
  # DEBUG TempBaud => 1843200
  # DEBUG BEGIN_STMT

  <bb 16> [local count: 1073312328]:
  # TempBaud_1 = PHI <1200(2), 2400(3), 4800(4), 9600(5), 14400(6), 19200(7), 28800(8), 38400(9), 57600(10), 115200(11), 230400(12), 460800(13), 921600(14), 1843200(15)>
<L17>:
  # DEBUG TempBaud => TempBaud_1
  # DEBUG BEGIN_STMT
  return TempBaud_1;

}


Uart_Ipw_GetReceiveStatus (uint8 Channel, uint32 * BytesRemaining)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Uart_StatusType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  unsigned char _15;
  <unnamed type> _16;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 6
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_6(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_8 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_8
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_14 = Lpuart_Uart_Ip_GetReceiveStatus (HwUnit_8, BytesRemaining_9(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_14
  # DEBUG BEGIN_STMT
  # DEBUG Status => u32LpuartIpStatus_14
  # DEBUG INLINE_ENTRY Uart_Ipw_LpuartConvertStatus
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 6
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_14 <= 9)
    goto <bb 4>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 4> [local count: 268435456]:
<L5>:
  _15 = CSWTCH.3[u32LpuartIpStatus_14];
  _16 = (<unnamed type>) _15;
  goto <bb 7>; [100.00%]

  <bb 6> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_11 = Flexio_Uart_Ip_GetStatus (HwUnit_8, BytesRemaining_9(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_11
  # DEBUG BEGIN_STMT
  TempStatus_12 = Uart_Ipw_FlexioConvertStatus (u32FlexioIpStatus_11);
  # DEBUG TempStatus => TempStatus_12

  <bb 7> [local count: 1073741824]:
  # TempStatus_4 = PHI <_16(4), TempStatus_12(6), 8(3)>
  # DEBUG Status => NULL
  # DEBUG TempStatus => NULL
  # DEBUG TempStatus => TempStatus_4
  # DEBUG BEGIN_STMT
  return TempStatus_4;

}


Uart_Ipw_GetTransmitStatus (uint8 Channel, uint32 * BytesRemaining)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Uart_StatusType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  unsigned char _15;
  <unnamed type> _16;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 6
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_6(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_8 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_8
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_14 = Lpuart_Uart_Ip_GetTransmitStatus (HwUnit_8, BytesRemaining_9(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_14
  # DEBUG BEGIN_STMT
  # DEBUG Status => u32LpuartIpStatus_14
  # DEBUG INLINE_ENTRY Uart_Ipw_LpuartConvertStatus
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 6
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_14 <= 9)
    goto <bb 4>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 4> [local count: 268435456]:
<L5>:
  _15 = CSWTCH.3[u32LpuartIpStatus_14];
  _16 = (<unnamed type>) _15;
  goto <bb 7>; [100.00%]

  <bb 6> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_11 = Flexio_Uart_Ip_GetStatus (HwUnit_8, BytesRemaining_9(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_11
  # DEBUG BEGIN_STMT
  TempStatus_12 = Uart_Ipw_FlexioConvertStatus (u32FlexioIpStatus_11);
  # DEBUG TempStatus => TempStatus_12

  <bb 7> [local count: 1073741824]:
  # TempStatus_4 = PHI <_16(4), TempStatus_12(6), 8(3)>
  # DEBUG Status => NULL
  # DEBUG TempStatus => NULL
  # DEBUG TempStatus => TempStatus_4
  # DEBUG BEGIN_STMT
  return TempStatus_4;

}


Uart_Ipw_AsyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  <unnamed type> _4;
  <unnamed type> _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_8(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_10 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_10
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 5>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _4 = Lpuart_Uart_Ip_AsyncSend (HwUnit_10, Buffer_11(D), BufferSize_12(D));
  if (_4 == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0
  goto <bb 7>; [100.00%]

  <bb 5> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _5 = Flexio_Uart_Ip_AsyncSend (HwUnit_10, Buffer_11(D), BufferSize_12(D));
  if (_5 == 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 6> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0

  <bb 7> [local count: 1073741824]:
  # TempStatus_6 = PHI <0(4), 1(5), 0(6), 1(3)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  return TempStatus_6;

}


Uart_Ipw_AsyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  <unnamed type> _4;
  <unnamed type> _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_8(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_10 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_10
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 5>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _4 = Lpuart_Uart_Ip_AsyncReceive (HwUnit_10, Buffer_11(D), BufferSize_12(D));
  if (_4 == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0
  goto <bb 7>; [100.00%]

  <bb 5> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _5 = Flexio_Uart_Ip_AsyncReceive (HwUnit_10, Buffer_11(D), BufferSize_12(D));
  if (_5 == 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 6> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0

  <bb 7> [local count: 1073741824]:
  # TempStatus_6 = PHI <0(4), 1(5), 0(6), 1(3)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  return TempStatus_6;

}


Uart_Ipw_SyncReceive (uint8 Channel, uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_6(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_8 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_8
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_15 = Lpuart_Uart_Ip_SyncReceive (HwUnit_8, Buffer_9(D), BufferSize_10(D), Timeout_11(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_15
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_15 == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_15 == 3)
    goto <bb 9>; [21.72%]
  else
    goto <bb 5>; [78.28%]

  <bb 5> [local count: 210131275]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  goto <bb 9>; [100.00%]

  <bb 6> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_13 = Flexio_Uart_Ip_SyncReceive (HwUnit_8, Buffer_9(D), BufferSize_10(D), Timeout_11(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_13
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_13 == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 7> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_13 == 518)
    goto <bb 9>; [21.72%]
  else
    goto <bb 8>; [78.28%]

  <bb 8> [local count: 210131275]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1

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

}


Uart_Ipw_SyncSend (uint8 Channel, const uint8 * Buffer, uint32 BufferSize, uint32 Timeout)
{
  Flexio_Uart_Ip_StatusType u32FlexioIpStatus;
  Lpuart_Uart_Ip_StatusType u32LpuartIpStatus;
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_6(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_8 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_8
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 6>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_15 = Lpuart_Uart_Ip_SyncSend (HwUnit_8, Buffer_9(D), BufferSize_10(D), Timeout_11(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_15
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_15 == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_15 == 3)
    goto <bb 9>; [21.72%]
  else
    goto <bb 5>; [78.28%]

  <bb 5> [local count: 210131275]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  goto <bb 9>; [100.00%]

  <bb 6> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_13 = Flexio_Uart_Ip_SyncSend (HwUnit_8, Buffer_9(D), BufferSize_10(D), Timeout_11(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_13
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_13 == 0)
    goto <bb 9>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 7> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_13 == 518)
    goto <bb 9>; [21.72%]
  else
    goto <bb 8>; [78.28%]

  <bb 8> [local count: 210131275]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1

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

}


Uart_Ipw_SetRxBuffer (uint8 Channel, uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_5(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_7 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_7
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_SetRxBuffer (HwUnit_7, Buffer_8(D), BufferSize_9(D));
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_SetRxBuffer (HwUnit_7, Buffer_8(D), BufferSize_9(D));

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

}


Uart_Ipw_SetTxBuffer (uint8 Channel, const uint8 * Buffer, uint32 BufferSize)
{
  uint8 HwUnit;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_5(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_7 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_7
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_SetTxBuffer (HwUnit_7, Buffer_8(D), BufferSize_9(D));
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_SetTxBuffer (HwUnit_7, Buffer_8(D), BufferSize_9(D));

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

}


Uart_Ipw_AbortReceivingData (uint8 Channel)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  <unnamed type> _4;
  <unnamed type> _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_8(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_10 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_10
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 5>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _4 = Lpuart_Uart_Ip_AbortReceivingData (HwUnit_10);
  if (_4 == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0
  goto <bb 7>; [100.00%]

  <bb 5> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _5 = Flexio_Uart_Ip_AbortTransferData (HwUnit_10);
  if (_5 == 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 6> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0

  <bb 7> [local count: 1073741824]:
  # TempStatus_6 = PHI <0(4), 1(5), 0(6), 1(3)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  return TempStatus_6;

}


Uart_Ipw_AbortSendingData (uint8 Channel)
{
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  <unnamed type> _4;
  <unnamed type> _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_8(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_10 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_10
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 5>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _4 = Lpuart_Uart_Ip_AbortSendingData (HwUnit_10);
  if (_4 == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0
  goto <bb 7>; [100.00%]

  <bb 5> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _5 = Flexio_Uart_Ip_AbortTransferData (HwUnit_10);
  if (_5 == 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 6> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0

  <bb 7> [local count: 1073741824]:
  # TempStatus_6 = PHI <0(4), 1(5), 0(6), 1(3)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  return TempStatus_6;

}


Uart_Ipw_GetBaudrate (uint8 Channel, uint32 * BaudrateValue)
{
  uint8 HwUnit;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_5(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_7 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_7
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_GetBaudRate (HwUnit_7, BaudrateValue_8(D));
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_GetBaudRate (HwUnit_7, BaudrateValue_8(D));

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

}


Uart_Ipw_SetBaudrate (uint8 Channel, Uart_BaudrateType BaudRateValue, uint32 ClockFrequency)
{
  Flexio_Uart_Ip_BaudrateType FlexioBaud;
  Lpuart_Uart_Ip_BaudrateType LpuartBaud;
  uint8 HwUnit;
  Std_ReturnType TempStatus;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  <unnamed type> _4;
  <unnamed type> _5;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 1
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_8(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_10 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_10
  # DEBUG BEGIN_STMT
  LpuartBaud_12 = Uart_Ipw_LpuartConvertBaudrateType (BaudRateValue_11(D));
  # DEBUG LpuartBaud => LpuartBaud_12
  # DEBUG BEGIN_STMT
  FlexioBaud_13 = Uart_Ipw_FlexioConvertBaudrateType (BaudRateValue_11(D));
  # DEBUG FlexioBaud => FlexioBaud_13
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 5>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _4 = Lpuart_Uart_Ip_SetBaudRate (HwUnit_10, LpuartBaud_12, ClockFrequency_14(D));
  if (_4 == 0)
    goto <bb 4>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 4> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0
  goto <bb 7>; [100.00%]

  <bb 5> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _5 = Flexio_Uart_Ip_SetBaudRate (HwUnit_10, FlexioBaud_13, ClockFrequency_14(D));
  if (_5 == 0)
    goto <bb 6>; [50.00%]
  else
    goto <bb 7>; [50.00%]

  <bb 6> [local count: 268435456]:
  # DEBUG BEGIN_STMT
  # DEBUG TempStatus => 0

  <bb 7> [local count: 1073741824]:
  # TempStatus_6 = PHI <0(4), 1(5), 0(6), 1(3)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  return TempStatus_6;

}


Uart_Ipw_Deinit (uint8 Channel)
{
  uint8 HwUnit;
  int _1;
  const struct Uart_Ipw_HwConfigType * _2;
  <unnamed type> _3;
  int _4;
  unsigned int _5;
  unsigned int _6;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_8(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_10 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_10
  # DEBUG BEGIN_STMT
  _3 = _2->UartIpType;
  if (_3 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _4 = (int) HwUnit_10;
  Uart_Ipw_s8HwMapping[_4] = -1;
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_Deinit (HwUnit_10);
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _5 = (unsigned int) HwUnit_10;
  _6 = _5 + 3;
  Uart_Ipw_s8HwMapping[_6] = -1;
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_Deinit (HwUnit_10);

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

}


Uart_Ipw_Init (uint8 Channel, const struct Uart_Ipw_HwConfigType * Config)
{
  uint8 HwUnit;
  int _1;
  <unnamed type> _2;
  int _3;
  signed char Channel.0_4;
  const struct Uart_Ipw_IpConfigType * _5;
  const struct Lpuart_Uart_Ip_UserConfigType * _6;
  unsigned int _7;
  unsigned int _8;
  signed char Channel.1_9;
  const struct Uart_Ipw_IpConfigType * _10;
  const struct Flexio_Uart_Ip_UserConfigType * _11;

  <bb 2> [local count: 1073741824]:
  # DEBUG BEGIN_STMT
  HwUnit_15 = Config_14(D)->UartHwChannel;
  # DEBUG HwUnit => HwUnit_15
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_16(D);
  Uart_Ipw_apChnConfig[_1] = Config_14(D);
  # DEBUG BEGIN_STMT
  _2 = Config_14(D)->UartIpType;
  if (_2 == 0)
    goto <bb 3>; [50.00%]
  else
    goto <bb 4>; [50.00%]

  <bb 3> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _3 = (int) HwUnit_15;
  Channel.0_4 = (signed char) Channel_16(D);
  Uart_Ipw_s8HwMapping[_3] = Channel.0_4;
  # DEBUG BEGIN_STMT
  _5 = Config_14(D)->UserConfig;
  _6 = _5->LpuartUserConfig;
  Lpuart_Uart_Ip_Init (HwUnit_15, _6);
  goto <bb 5>; [100.00%]

  <bb 4> [local count: 536870913]:
  # DEBUG BEGIN_STMT
  _7 = (unsigned int) HwUnit_15;
  _8 = _7 + 3;
  Channel.1_9 = (signed char) Channel_16(D);
  Uart_Ipw_s8HwMapping[_8] = Channel.1_9;
  # DEBUG BEGIN_STMT
  _10 = Config_14(D)->UserConfig;
  _11 = _10->FlexioUartUserConfig;
  Flexio_Uart_Ip_Init (HwUnit_15, _11);

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

}


