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

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = HwChannel_10(D) + 3;
  _2 = Uart_Ipw_s8HwMapping[_1];
  Channel_12 = (uint8) _2;
  # DEBUG Channel => Channel_12
  # DEBUG BEGIN_STMT
  ConvertEvent_15 = Uart_Ipw_FlexioConvertEventType (Event_13(D));
  # DEBUG ConvertEvent => ConvertEvent_15
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_12;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->Callback;
  if (_5 != 0B)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = (int) Channel_12;
  _7 = Uart_Ipw_apChnConfig[_6];
  _8 = _7->Callback;
  _8 (Channel_12, ConvertEvent_15);

  <bb 4> :
  return;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) HwInstance_10(D);
  _2 = Uart_Ipw_s8HwMapping[_1];
  Channel_12 = (uint8) _2;
  # DEBUG Channel => Channel_12
  # DEBUG BEGIN_STMT
  ConvertEvent_15 = Uart_Ipw_LpuartConvertEventType (Event_13(D));
  # DEBUG ConvertEvent => ConvertEvent_15
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_12;
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->Callback;
  if (_5 != 0B)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = (int) Channel_12;
  _7 = Uart_Ipw_apChnConfig[_6];
  _8 = _7->Callback;
  _8 (Channel_12, ConvertEvent_15);

  <bb 4> :
  return;

}


Uart_Ipw_FlexioConvertEventType (Flexio_Uart_Ip_EventType Event)
{
  Uart_EventType TempEvent;
  Uart_EventType _8;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempEvent_2 = 3;
  # DEBUG TempEvent => TempEvent_2
  # DEBUG BEGIN_STMT
  switch (Event_3(D)) <default: <L7> [INV], case 0: <L0> [INV], case 1: <L1> [INV], case 2: <L2> [INV], case 3: <L3> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempEvent_7 = 0;
  # DEBUG TempEvent => TempEvent_7
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempEvent_6 = 1;
  # DEBUG TempEvent => TempEvent_6
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempEvent_5 = 2;
  # DEBUG TempEvent => TempEvent_5
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempEvent_4 = 3;
  # DEBUG TempEvent => TempEvent_4
  # DEBUG BEGIN_STMT

  <bb 7> :
  # TempEvent_1 = PHI <TempEvent_7(3), TempEvent_6(4), TempEvent_5(5), TempEvent_4(6), TempEvent_2(2)>
<L7>:
  # DEBUG TempEvent => TempEvent_1
  # DEBUG BEGIN_STMT
  _8 = TempEvent_1;
  return _8;

}


Uart_Ipw_FlexioConvertBaudrateType (Uart_BaudrateType Baudrate)
{
  Flexio_Uart_Ip_BaudrateType TempBaud;
  Flexio_Uart_Ip_BaudrateType _18;

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

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempBaud_17 = 1200;
  # DEBUG TempBaud => TempBaud_17
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempBaud_16 = 2400;
  # DEBUG TempBaud => TempBaud_16
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempBaud_15 = 4800;
  # DEBUG TempBaud => TempBaud_15
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempBaud_14 = 9600;
  # DEBUG TempBaud => TempBaud_14
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempBaud_13 = 14400;
  # DEBUG TempBaud => TempBaud_13
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempBaud_12 = 19200;
  # DEBUG TempBaud => TempBaud_12
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 9> :
<L6>:
  # DEBUG BEGIN_STMT
  TempBaud_11 = 28800;
  # DEBUG TempBaud => TempBaud_11
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 10> :
<L7>:
  # DEBUG BEGIN_STMT
  TempBaud_10 = 38400;
  # DEBUG TempBaud => TempBaud_10
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 11> :
<L8>:
  # DEBUG BEGIN_STMT
  TempBaud_9 = 57600;
  # DEBUG TempBaud => TempBaud_9
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 12> :
<L9>:
  # DEBUG BEGIN_STMT
  TempBaud_8 = 115200;
  # DEBUG TempBaud => TempBaud_8
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 13> :
<L10>:
  # DEBUG BEGIN_STMT
  TempBaud_7 = 230400;
  # DEBUG TempBaud => TempBaud_7
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 14> :
<L11>:
  # DEBUG BEGIN_STMT
  TempBaud_6 = 460800;
  # DEBUG TempBaud => TempBaud_6
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 15> :
<L12>:
  # DEBUG BEGIN_STMT
  TempBaud_5 = 921600;
  # DEBUG TempBaud => TempBaud_5
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 16> :
<L13>:
  # DEBUG BEGIN_STMT
  TempBaud_4 = 1843200;
  # DEBUG TempBaud => TempBaud_4
  # DEBUG BEGIN_STMT

  <bb 17> :
  # TempBaud_1 = PHI <TempBaud_17(3), TempBaud_16(4), TempBaud_15(5), TempBaud_14(6), TempBaud_13(7), TempBaud_12(8), TempBaud_11(9), TempBaud_10(10), TempBaud_9(11), TempBaud_8(12), TempBaud_7(13), TempBaud_6(14), TempBaud_5(15), TempBaud_4(16), TempBaud_2(2)>
<L17>:
  # DEBUG TempBaud => TempBaud_1
  # DEBUG BEGIN_STMT
  _18 = TempBaud_1;
  return _18;

}


Uart_Ipw_FlexioConvertStatus (Flexio_Uart_Ip_StatusType Status)
{
  Uart_StatusType TempStatus;
  Uart_StatusType _10;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_2 = 6;
  # DEBUG TempStatus => TempStatus_2
  # DEBUG BEGIN_STMT
  switch (Status_3(D)) <default: <L5> [INV], case 0: <L0> [INV], case 2: <L1> [INV], case 514: <L4> [INV], case 516: <L2> [INV], case 518: <L3> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempStatus_8 = 0;
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempStatus_7 = 1;
  # DEBUG TempStatus => TempStatus_7
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempStatus_5 = 2;
  # DEBUG TempStatus => TempStatus_5
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempStatus_4 = 6;
  # DEBUG TempStatus => TempStatus_4
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempStatus_6 = 4;
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  goto <bb 9>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempStatus_9 = 8;
  # DEBUG TempStatus => TempStatus_9
  # DEBUG BEGIN_STMT

  <bb 9> :
  # TempStatus_1 = PHI <TempStatus_8(3), TempStatus_7(4), TempStatus_5(5), TempStatus_4(6), TempStatus_6(7), TempStatus_9(8)>
  # DEBUG TempStatus => TempStatus_1
  # DEBUG BEGIN_STMT
  _10 = TempStatus_1;
  return _10;

}


Uart_Ipw_LpuartConvertEventType (Lpuart_Uart_Ip_EventType Event)
{
  Uart_EventType TempEvent;
  Uart_EventType _8;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempEvent_2 = 3;
  # DEBUG TempEvent => TempEvent_2
  # DEBUG BEGIN_STMT
  switch (Event_3(D)) <default: <L7> [INV], case 0: <L0> [INV], case 1: <L1> [INV], case 2: <L2> [INV], case 3: <L3> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempEvent_7 = 0;
  # DEBUG TempEvent => TempEvent_7
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempEvent_6 = 1;
  # DEBUG TempEvent => TempEvent_6
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempEvent_5 = 2;
  # DEBUG TempEvent => TempEvent_5
  # DEBUG BEGIN_STMT
  goto <bb 7>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempEvent_4 = 3;
  # DEBUG TempEvent => TempEvent_4
  # DEBUG BEGIN_STMT

  <bb 7> :
  # TempEvent_1 = PHI <TempEvent_7(3), TempEvent_6(4), TempEvent_5(5), TempEvent_4(6), TempEvent_2(2)>
<L7>:
  # DEBUG TempEvent => TempEvent_1
  # DEBUG BEGIN_STMT
  _8 = TempEvent_1;
  return _8;

}


Uart_Ipw_LpuartConvertBaudrateType (Uart_BaudrateType Baudrate)
{
  Lpuart_Uart_Ip_BaudrateType TempBaud;
  Lpuart_Uart_Ip_BaudrateType _18;

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

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempBaud_17 = 1200;
  # DEBUG TempBaud => TempBaud_17
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempBaud_16 = 2400;
  # DEBUG TempBaud => TempBaud_16
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempBaud_15 = 4800;
  # DEBUG TempBaud => TempBaud_15
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempBaud_14 = 9600;
  # DEBUG TempBaud => TempBaud_14
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempBaud_13 = 14400;
  # DEBUG TempBaud => TempBaud_13
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempBaud_12 = 19200;
  # DEBUG TempBaud => TempBaud_12
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 9> :
<L6>:
  # DEBUG BEGIN_STMT
  TempBaud_11 = 28800;
  # DEBUG TempBaud => TempBaud_11
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 10> :
<L7>:
  # DEBUG BEGIN_STMT
  TempBaud_10 = 38400;
  # DEBUG TempBaud => TempBaud_10
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 11> :
<L8>:
  # DEBUG BEGIN_STMT
  TempBaud_9 = 57600;
  # DEBUG TempBaud => TempBaud_9
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 12> :
<L9>:
  # DEBUG BEGIN_STMT
  TempBaud_8 = 115200;
  # DEBUG TempBaud => TempBaud_8
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 13> :
<L10>:
  # DEBUG BEGIN_STMT
  TempBaud_7 = 230400;
  # DEBUG TempBaud => TempBaud_7
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 14> :
<L11>:
  # DEBUG BEGIN_STMT
  TempBaud_6 = 460800;
  # DEBUG TempBaud => TempBaud_6
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 15> :
<L12>:
  # DEBUG BEGIN_STMT
  TempBaud_5 = 921600;
  # DEBUG TempBaud => TempBaud_5
  # DEBUG BEGIN_STMT
  goto <bb 17>; [INV]

  <bb 16> :
<L13>:
  # DEBUG BEGIN_STMT
  TempBaud_4 = 1843200;
  # DEBUG TempBaud => TempBaud_4
  # DEBUG BEGIN_STMT

  <bb 17> :
  # TempBaud_1 = PHI <TempBaud_17(3), TempBaud_16(4), TempBaud_15(5), TempBaud_14(6), TempBaud_13(7), TempBaud_12(8), TempBaud_11(9), TempBaud_10(10), TempBaud_9(11), TempBaud_8(12), TempBaud_7(13), TempBaud_6(14), TempBaud_5(15), TempBaud_4(16), TempBaud_2(2)>
<L17>:
  # DEBUG TempBaud => TempBaud_1
  # DEBUG BEGIN_STMT
  _18 = TempBaud_1;
  return _18;

}


Uart_Ipw_LpuartConvertStatus (Lpuart_Uart_Ip_StatusType Status)
{
  Uart_StatusType TempStatus;
  Uart_StatusType _13;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_2 = 6;
  # DEBUG TempStatus => TempStatus_2
  # DEBUG BEGIN_STMT
  switch (Status_3(D)) <default: <L8> [INV], case 0: <L0> [INV], case 2: <L1> [INV], case 3: <L3> [INV], case 5: <L5> [INV], case 6: <L2> [INV], case 7: <L4> [INV], case 8: <L7> [INV], case 9: <L6> [INV]>

  <bb 3> :
<L0>:
  # DEBUG BEGIN_STMT
  TempStatus_11 = 0;
  # DEBUG TempStatus => TempStatus_11
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 4> :
<L1>:
  # DEBUG BEGIN_STMT
  TempStatus_10 = 1;
  # DEBUG TempStatus => TempStatus_10
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 5> :
<L2>:
  # DEBUG BEGIN_STMT
  TempStatus_7 = 2;
  # DEBUG TempStatus => TempStatus_7
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 6> :
<L3>:
  # DEBUG BEGIN_STMT
  TempStatus_9 = 6;
  # DEBUG TempStatus => TempStatus_9
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 7> :
<L4>:
  # DEBUG BEGIN_STMT
  TempStatus_6 = 3;
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 8> :
<L5>:
  # DEBUG BEGIN_STMT
  TempStatus_8 = 4;
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 9> :
<L6>:
  # DEBUG BEGIN_STMT
  TempStatus_4 = 7;
  # DEBUG TempStatus => TempStatus_4
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 10> :
<L7>:
  # DEBUG BEGIN_STMT
  TempStatus_5 = 5;
  # DEBUG TempStatus => TempStatus_5
  # DEBUG BEGIN_STMT
  goto <bb 12>; [INV]

  <bb 11> :
<L8>:
  # DEBUG BEGIN_STMT
  TempStatus_12 = 8;
  # DEBUG TempStatus => TempStatus_12
  # DEBUG BEGIN_STMT

  <bb 12> :
  # TempStatus_1 = PHI <TempStatus_11(3), TempStatus_10(4), TempStatus_7(5), TempStatus_9(6), TempStatus_6(7), TempStatus_8(8), TempStatus_4(9), TempStatus_5(10), TempStatus_12(11)>
  # DEBUG TempStatus => TempStatus_1
  # DEBUG BEGIN_STMT
  _13 = TempStatus_1;
  return _13;

}


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;
  int _3;
  const struct Uart_Ipw_HwConfigType * _4;
  <unnamed type> _5;
  Uart_StatusType _21;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_8 = 6;
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_9(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_11 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_11
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_9(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_18 = Lpuart_Uart_Ip_GetReceiveStatus (HwUnit_11, BytesRemaining_12(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_18
  # DEBUG BEGIN_STMT
  TempStatus_20 = Uart_Ipw_LpuartConvertStatus (u32LpuartIpStatus_18);
  # DEBUG TempStatus => TempStatus_20
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_14 = Flexio_Uart_Ip_GetStatus (HwUnit_11, BytesRemaining_12(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_14
  # DEBUG BEGIN_STMT
  TempStatus_16 = Uart_Ipw_FlexioConvertStatus (u32FlexioIpStatus_14);
  # DEBUG TempStatus => TempStatus_16

  <bb 5> :
  # TempStatus_6 = PHI <TempStatus_20(3), TempStatus_16(4)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  _21 = TempStatus_6;
  return _21;

}


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;
  int _3;
  const struct Uart_Ipw_HwConfigType * _4;
  <unnamed type> _5;
  Uart_StatusType _21;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_8 = 6;
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_9(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_11 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_11
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_9(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_18 = Lpuart_Uart_Ip_GetTransmitStatus (HwUnit_11, BytesRemaining_12(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_18
  # DEBUG BEGIN_STMT
  TempStatus_20 = Uart_Ipw_LpuartConvertStatus (u32LpuartIpStatus_18);
  # DEBUG TempStatus => TempStatus_20
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_14 = Flexio_Uart_Ip_GetStatus (HwUnit_11, BytesRemaining_12(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_14
  # DEBUG BEGIN_STMT
  TempStatus_16 = Uart_Ipw_FlexioConvertStatus (u32FlexioIpStatus_14);
  # DEBUG TempStatus => TempStatus_16

  <bb 5> :
  # TempStatus_6 = PHI <TempStatus_20(3), TempStatus_16(4)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  _21 = TempStatus_6;
  return _21;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_10 = 1;
  # DEBUG TempStatus => TempStatus_10
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_11(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_13 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_13
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_11(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AsyncSend (HwUnit_13, Buffer_14(D), BufferSize_15(D));
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus_19 = 0;
  # DEBUG TempStatus => TempStatus_19
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AsyncSend (HwUnit_13, Buffer_14(D), BufferSize_15(D));
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus_17 = 0;
  # DEBUG TempStatus => TempStatus_17

  <bb 7> :
  # TempStatus_8 = PHI <TempStatus_19(4), TempStatus_10(5), TempStatus_17(6), TempStatus_10(3)>
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _20 = TempStatus_8;
  return _20;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_10 = 1;
  # DEBUG TempStatus => TempStatus_10
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_11(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_13 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_13
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_11(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AsyncReceive (HwUnit_13, Buffer_14(D), BufferSize_15(D));
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus_19 = 0;
  # DEBUG TempStatus => TempStatus_19
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AsyncReceive (HwUnit_13, Buffer_14(D), BufferSize_15(D));
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus_17 = 0;
  # DEBUG TempStatus => TempStatus_17

  <bb 7> :
  # TempStatus_8 = PHI <TempStatus_19(4), TempStatus_10(5), TempStatus_17(6), TempStatus_10(3)>
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _20 = TempStatus_8;
  return _20;

}


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;
  int _3;
  const struct Uart_Ipw_HwConfigType * _4;
  <unnamed type> _5;
  Std_ReturnType _25;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_8 = 1;
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_9(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_11 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_11
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_9(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 8>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_21 = Lpuart_Uart_Ip_SyncReceive (HwUnit_11, Buffer_12(D), BufferSize_13(D), Timeout_14(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_21
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_21 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus_24 = 0;
  # DEBUG TempStatus => TempStatus_24
  goto <bb 13>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_21 == 3)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus_23 = 6;
  # DEBUG TempStatus => TempStatus_23
  goto <bb 13>; [INV]

  <bb 7> :
  # DEBUG BEGIN_STMT
  TempStatus_22 = 1;
  # DEBUG TempStatus => TempStatus_22
  goto <bb 13>; [INV]

  <bb 8> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_16 = Flexio_Uart_Ip_SyncReceive (HwUnit_11, Buffer_12(D), BufferSize_13(D), Timeout_14(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_16
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_16 == 0)
    goto <bb 9>; [INV]
  else
    goto <bb 10>; [INV]

  <bb 9> :
  # DEBUG BEGIN_STMT
  TempStatus_19 = 0;
  # DEBUG TempStatus => TempStatus_19
  goto <bb 13>; [INV]

  <bb 10> :
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_16 == 518)
    goto <bb 11>; [INV]
  else
    goto <bb 12>; [INV]

  <bb 11> :
  # DEBUG BEGIN_STMT
  TempStatus_18 = 6;
  # DEBUG TempStatus => TempStatus_18
  goto <bb 13>; [INV]

  <bb 12> :
  # DEBUG BEGIN_STMT
  TempStatus_17 = 1;
  # DEBUG TempStatus => TempStatus_17

  <bb 13> :
  # TempStatus_6 = PHI <TempStatus_23(6), TempStatus_19(9), TempStatus_18(11), TempStatus_17(12), TempStatus_24(4), TempStatus_22(7)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  _25 = TempStatus_6;
  return _25;

}


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;
  int _3;
  const struct Uart_Ipw_HwConfigType * _4;
  <unnamed type> _5;
  Std_ReturnType _25;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_8 = 1;
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_9(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_11 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_11
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_9(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 8>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32LpuartIpStatus_21 = Lpuart_Uart_Ip_SyncSend (HwUnit_11, Buffer_12(D), BufferSize_13(D), Timeout_14(D));
  # DEBUG u32LpuartIpStatus => u32LpuartIpStatus_21
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_21 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus_24 = 0;
  # DEBUG TempStatus => TempStatus_24
  goto <bb 13>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  if (u32LpuartIpStatus_21 == 3)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus_23 = 6;
  # DEBUG TempStatus => TempStatus_23
  goto <bb 13>; [INV]

  <bb 7> :
  # DEBUG BEGIN_STMT
  TempStatus_22 = 1;
  # DEBUG TempStatus => TempStatus_22
  goto <bb 13>; [INV]

  <bb 8> :
  # DEBUG BEGIN_STMT
  # DEBUG BEGIN_STMT
  u32FlexioIpStatus_16 = Flexio_Uart_Ip_SyncSend (HwUnit_11, Buffer_12(D), BufferSize_13(D), Timeout_14(D));
  # DEBUG u32FlexioIpStatus => u32FlexioIpStatus_16
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_16 == 0)
    goto <bb 9>; [INV]
  else
    goto <bb 10>; [INV]

  <bb 9> :
  # DEBUG BEGIN_STMT
  TempStatus_19 = 0;
  # DEBUG TempStatus => TempStatus_19
  goto <bb 13>; [INV]

  <bb 10> :
  # DEBUG BEGIN_STMT
  if (u32FlexioIpStatus_16 == 518)
    goto <bb 11>; [INV]
  else
    goto <bb 12>; [INV]

  <bb 11> :
  # DEBUG BEGIN_STMT
  TempStatus_18 = 6;
  # DEBUG TempStatus => TempStatus_18
  goto <bb 13>; [INV]

  <bb 12> :
  # DEBUG BEGIN_STMT
  TempStatus_17 = 1;
  # DEBUG TempStatus => TempStatus_17

  <bb 13> :
  # TempStatus_6 = PHI <TempStatus_23(6), TempStatus_19(9), TempStatus_18(11), TempStatus_17(12), TempStatus_24(4), TempStatus_22(7)>
  # DEBUG TempStatus => TempStatus_6
  # DEBUG BEGIN_STMT
  _25 = TempStatus_6;
  return _25;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_7(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_9 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_9
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_7(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_SetRxBuffer (HwUnit_9, Buffer_10(D), BufferSize_11(D));
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_SetRxBuffer (HwUnit_9, Buffer_10(D), BufferSize_11(D));

  <bb 5> :
  return;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_7(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_9 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_9
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_7(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_SetTxBuffer (HwUnit_9, Buffer_10(D), BufferSize_11(D));
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_SetTxBuffer (HwUnit_9, Buffer_10(D), BufferSize_11(D));

  <bb 5> :
  return;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_10 = 1;
  # DEBUG TempStatus => TempStatus_10
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_11(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_13 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_13
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_11(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AbortReceivingData (HwUnit_13);
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus_17 = 0;
  # DEBUG TempStatus => TempStatus_17
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AbortTransferData (HwUnit_13);
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus_15 = 0;
  # DEBUG TempStatus => TempStatus_15

  <bb 7> :
  # TempStatus_8 = PHI <TempStatus_17(4), TempStatus_10(5), TempStatus_15(6), TempStatus_10(3)>
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _18 = TempStatus_8;
  return _18;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_10 = 1;
  # DEBUG TempStatus => TempStatus_10
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_11(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_13 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_13
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_11(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_AbortSendingData (HwUnit_13);
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus_17 = 0;
  # DEBUG TempStatus => TempStatus_17
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_AbortTransferData (HwUnit_13);
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus_15 = 0;
  # DEBUG TempStatus => TempStatus_15

  <bb 7> :
  # TempStatus_8 = PHI <TempStatus_17(4), TempStatus_10(5), TempStatus_15(6), TempStatus_10(3)>
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _18 = TempStatus_8;
  return _18;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_7(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_9 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_9
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_7(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_GetBaudRate (HwUnit_9, BaudrateValue_10(D));
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_GetBaudRate (HwUnit_9, BaudrateValue_10(D));

  <bb 5> :
  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;
  int _3;
  const struct Uart_Ipw_HwConfigType * _4;
  <unnamed type> _5;
  <unnamed type> _6;
  <unnamed type> _7;
  Std_ReturnType _24;

  <bb 2> :
  # DEBUG BEGIN_STMT
  TempStatus_10 = 1;
  # DEBUG TempStatus => TempStatus_10
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_11(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_13 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_13
  # DEBUG BEGIN_STMT
  LpuartBaud_16 = Uart_Ipw_LpuartConvertBaudrateType (BaudRateValue_14(D));
  # DEBUG LpuartBaud => LpuartBaud_16
  # DEBUG BEGIN_STMT
  FlexioBaud_18 = Uart_Ipw_FlexioConvertBaudrateType (BaudRateValue_14(D));
  # DEBUG FlexioBaud => FlexioBaud_18
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_11(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 5>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = Lpuart_Uart_Ip_SetBaudRate (HwUnit_13, LpuartBaud_16, ClockFrequency_19(D));
  if (_6 == 0)
    goto <bb 4>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  TempStatus_23 = 0;
  # DEBUG TempStatus => TempStatus_23
  goto <bb 7>; [INV]

  <bb 5> :
  # DEBUG BEGIN_STMT
  _7 = Flexio_Uart_Ip_SetBaudRate (HwUnit_13, FlexioBaud_18, ClockFrequency_19(D));
  if (_7 == 0)
    goto <bb 6>; [INV]
  else
    goto <bb 7>; [INV]

  <bb 6> :
  # DEBUG BEGIN_STMT
  TempStatus_21 = 0;
  # DEBUG TempStatus => TempStatus_21

  <bb 7> :
  # TempStatus_8 = PHI <TempStatus_23(4), TempStatus_10(5), TempStatus_21(6), TempStatus_10(3)>
  # DEBUG TempStatus => TempStatus_8
  # DEBUG BEGIN_STMT
  _24 = TempStatus_8;
  return _24;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_11(D);
  _2 = Uart_Ipw_apChnConfig[_1];
  HwUnit_13 = _2->UartHwChannel;
  # DEBUG HwUnit => HwUnit_13
  # DEBUG BEGIN_STMT
  _3 = (int) Channel_11(D);
  _4 = Uart_Ipw_apChnConfig[_3];
  _5 = _4->UartIpType;
  if (_5 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _6 = (int) HwUnit_13;
  Uart_Ipw_s8HwMapping[_6] = -1;
  # DEBUG BEGIN_STMT
  Lpuart_Uart_Ip_Deinit (HwUnit_13);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  _7 = (unsigned int) HwUnit_13;
  _8 = _7 + 3;
  Uart_Ipw_s8HwMapping[_8] = -1;
  # DEBUG BEGIN_STMT
  Flexio_Uart_Ip_Deinit (HwUnit_13);

  <bb 5> :
  # DEBUG BEGIN_STMT
  _9 = (int) Channel_11(D);
  Uart_Ipw_apChnConfig[_9] = 0B;
  return;

}


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

  <bb 2> :
  # DEBUG BEGIN_STMT
  HwUnit_17 = Config_16(D)->UartHwChannel;
  # DEBUG HwUnit => HwUnit_17
  # DEBUG BEGIN_STMT
  _1 = (int) Channel_18(D);
  Uart_Ipw_apChnConfig[_1] = Config_16(D);
  # DEBUG BEGIN_STMT
  _2 = (int) Channel_18(D);
  _3 = Uart_Ipw_apChnConfig[_2];
  _4 = _3->UartIpType;
  if (_4 == 0)
    goto <bb 3>; [INV]
  else
    goto <bb 4>; [INV]

  <bb 3> :
  # DEBUG BEGIN_STMT
  _5 = (int) HwUnit_17;
  Channel.0_6 = (signed char) Channel_18(D);
  Uart_Ipw_s8HwMapping[_5] = Channel.0_6;
  # DEBUG BEGIN_STMT
  _7 = Config_16(D)->UserConfig;
  _8 = _7->LpuartUserConfig;
  Lpuart_Uart_Ip_Init (HwUnit_17, _8);
  goto <bb 5>; [INV]

  <bb 4> :
  # DEBUG BEGIN_STMT
  _9 = (unsigned int) HwUnit_17;
  _10 = _9 + 3;
  Channel.1_11 = (signed char) Channel_18(D);
  Uart_Ipw_s8HwMapping[_10] = Channel.1_11;
  # DEBUG BEGIN_STMT
  _12 = Config_16(D)->UserConfig;
  _13 = _12->FlexioUartUserConfig;
  Flexio_Uart_Ip_Init (HwUnit_17, _13);

  <bb 5> :
  return;

}


