#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*/ gpio_set_alt(int, int);
int /*<<< orphan*/ gpio_set_pullupdown(int, int);
int main(void) {
  volatile int i, dummy;
  gpio_set_alt(13, 5);
  gpio_set_alt(12, 5);
  gpio_set_alt(26, 4);
  gpio_set_alt(5, 5);
  gpio_set_alt(22, 4);
  gpio_set_pullupdown(13, 0x00);
  gpio_set_pullupdown(12, 0x00);
  gpio_set_pullupdown(26, 0x00);
  gpio_set_pullupdown(5, 0x00);
  gpio_set_pullupdown(22, 0x02);
  while (1)
    ;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0xd,%edi
mov    $0x5,%esi
call   1030 <gpio_set_alt@plt>
mov    $0xc,%edi
mov    $0x5,%esi
call   1030 <gpio_set_alt@plt>
mov    $0x1a,%edi
mov    $0x4,%esi
call   1030 <gpio_set_alt@plt>
mov    $0x5,%esi
mov    %esi,%edi
call   1030 <gpio_set_alt@plt>
mov    $0x16,%edi
mov    $0x4,%esi
call   1030 <gpio_set_alt@plt>
mov    $0xd,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0xc,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0x1a,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0x16,%edi
mov    $0x2,%esi
call   1040 <gpio_set_pullupdown@plt>
jmp    11b6 <main+0x96>

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0xd,%edi
mov    $0x5,%esi
call   1030 <gpio_set_alt@plt>
mov    $0xc,%edi
mov    $0x5,%esi
call   1030 <gpio_set_alt@plt>
mov    $0x1a,%edi
mov    $0x4,%esi
call   1030 <gpio_set_alt@plt>
mov    $0x5,%edi
mov    $0x5,%esi
call   1030 <gpio_set_alt@plt>
mov    $0x16,%edi
mov    $0x4,%esi
call   1030 <gpio_set_alt@plt>
mov    $0xd,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0xc,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0x1a,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0x5,%edi
xor    %esi,%esi
call   1040 <gpio_set_pullupdown@plt>
mov    $0x16,%edi
mov    $0x2,%esi
call   1040 <gpio_set_pullupdown@plt>
nopl   0x0(%rax,%rax,1)
jmp    11b0 <main+0x90>

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
store i32 0, i32* %1
%4 = call i32 @gpio_set_alt(i32 13, i32 5)
%5 = call i32 @gpio_set_alt(i32 12, i32 5)
%6 = call i32 @gpio_set_alt(i32 26, i32 4)
%7 = call i32 @gpio_set_alt(i32 5, i32 5)
%8 = call i32 @gpio_set_alt(i32 22, i32 4)
%9 = call i32 @gpio_set_pullupdown(i32 13, i32 0)
%10 = call i32 @gpio_set_pullupdown(i32 12, i32 0)
%11 = call i32 @gpio_set_pullupdown(i32 26, i32 0)
%12 = call i32 @gpio_set_pullupdown(i32 5, i32 0)
%13 = call i32 @gpio_set_pullupdown(i32 22, i32 2)
br label %14
14: ; preds = %0, %14
br label %14
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @gpio_set_alt(i32 13, i32 5)
%2 = tail call i32 @gpio_set_alt(i32 12, i32 5)
%3 = tail call i32 @gpio_set_alt(i32 26, i32 4)
%4 = tail call i32 @gpio_set_alt(i32 5, i32 5)
%5 = tail call i32 @gpio_set_alt(i32 22, i32 4)
%6 = tail call i32 @gpio_set_pullupdown(i32 13, i32 0)
%7 = tail call i32 @gpio_set_pullupdown(i32 12, i32 0)
%8 = tail call i32 @gpio_set_pullupdown(i32 26, i32 0)
%9 = tail call i32 @gpio_set_pullupdown(i32 5, i32 0)
%10 = tail call i32 @gpio_set_pullupdown(i32 22, i32 2)
br label %11
11: ; preds = %11, %0
br label %11
}