#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ p18_adc_3();
int /*<<< orphan*/ p18_eeprom_2();
int /*<<< orphan*/ p18_int_pin_2();
int /*<<< orphan*/ p18_int_ports();
int /*<<< orphan*/ p18_mssp_2();
int /*<<< orphan*/ p18_pps_out();
int /*<<< orphan*/ p18_tmr0_2();
int /*<<< orphan*/ p18_tmr1_2();
int /*<<< orphan*/ p18_tmr2_2();
int /*<<< orphan*/ p18_wdt_2();
int /*<<< orphan*/ serial(int);
void PIC18F27K40_periferic(void) {
  p18_pps_out();
  p18_mssp_2();
  p18_adc_3();
  p18_int_pin_2();
  p18_int_ports();
  p18_tmr0_2();
  p18_wdt_2();
  p18_eeprom_2();
  p18_tmr1_2();
  p18_tmr2_2();
  serial(0);
  ;
  serial(1);
  ;
}


x86 assembly (clang, -O0):
<PIC18F27K40_periferic>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   10a0 <p18_pps_out@plt>
mov    $0x0,%al
call   1040 <p18_mssp_2@plt>
mov    $0x0,%al
call   10b0 <p18_adc_3@plt>
mov    $0x0,%al
call   1090 <p18_int_pin_2@plt>
mov    $0x0,%al
call   10d0 <p18_int_ports@plt>
mov    $0x0,%al
call   1030 <p18_tmr0_2@plt>
mov    $0x0,%al
call   1060 <p18_wdt_2@plt>
mov    $0x0,%al
call   10c0 <p18_eeprom_2@plt>
mov    $0x0,%al
call   1070 <p18_tmr1_2@plt>
mov    $0x0,%al
call   1080 <p18_tmr2_2@plt>
xor    %edi,%edi
call   1050 <serial@plt>
mov    $0x1,%edi
call   1050 <serial@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<PIC18F27K40_periferic>:
push   %rax
xor    %eax,%eax
call   10a0 <p18_pps_out@plt>
xor    %eax,%eax
call   1040 <p18_mssp_2@plt>
xor    %eax,%eax
call   10b0 <p18_adc_3@plt>
xor    %eax,%eax
call   1090 <p18_int_pin_2@plt>
xor    %eax,%eax
call   10d0 <p18_int_ports@plt>
xor    %eax,%eax
call   1030 <p18_tmr0_2@plt>
xor    %eax,%eax
call   1060 <p18_wdt_2@plt>
xor    %eax,%eax
call   10c0 <p18_eeprom_2@plt>
xor    %eax,%eax
call   1070 <p18_tmr1_2@plt>
xor    %eax,%eax
call   1080 <p18_tmr2_2@plt>
xor    %edi,%edi
call   1050 <serial@plt>
mov    $0x1,%edi
pop    %rax
jmp    1050 <serial@plt>

LLVM IR (-O0):
define void @PIC18F27K40_periferic() {
%1 = call i32 (...) @p18_pps_out()
%2 = call i32 (...) @p18_mssp_2()
%3 = call i32 (...) @p18_adc_3()
%4 = call i32 (...) @p18_int_pin_2()
%5 = call i32 (...) @p18_int_ports()
%6 = call i32 (...) @p18_tmr0_2()
%7 = call i32 (...) @p18_wdt_2()
%8 = call i32 (...) @p18_eeprom_2()
%9 = call i32 (...) @p18_tmr1_2()
%10 = call i32 (...) @p18_tmr2_2()
%11 = call i32 @serial(i32 0)
%12 = call i32 @serial(i32 1)
ret void
}

LLVM IR (-O2):
define void @PIC18F27K40_periferic() {
%1 = tail call i32 (...) @p18_pps_out()
%2 = tail call i32 (...) @p18_mssp_2()
%3 = tail call i32 (...) @p18_adc_3()
%4 = tail call i32 (...) @p18_int_pin_2()
%5 = tail call i32 (...) @p18_int_ports()
%6 = tail call i32 (...) @p18_tmr0_2()
%7 = tail call i32 (...) @p18_wdt_2()
%8 = tail call i32 (...) @p18_eeprom_2()
%9 = tail call i32 (...) @p18_tmr1_2()
%10 = tail call i32 (...) @p18_tmr2_2()
%11 = tail call i32 @serial(i32 0)
%12 = tail call i32 @serial(i32 1)
ret void
}