#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 */
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ gpio_init_mux(int volatile *);
int /*<<< orphan*/ gpio_init_pad(int volatile *);
void gpio_init(void) {
  gpio_init_mux(&(*((volatile uint32_t *)0x20e02d0u)));
  gpio_init_pad(&(*((volatile uint32_t *)0x20e06b8u)));
  (*((volatile uint32_t *)0x20b4004u)) |= 1 << 8;
  gpio_init_mux(&(*((volatile uint32_t *)0x20e00bcu)));
  gpio_init_pad(&(*((volatile uint32_t *)0x20e03d0u)));
  (*((volatile uint32_t *)0x20a4004u)) |= 1 << 26;
  gpio_init_mux(&(*((volatile uint32_t *)0x20e0250u)));
  gpio_init_pad(&(*((volatile uint32_t *)0x20e0620u)));
  (*((volatile uint32_t *)0x20b4004u)) |= 1 << 13;
  gpio_init_mux(&(*((volatile uint32_t *)0x20e0254u)));
  gpio_init_pad(&(*((volatile uint32_t *)0x20e0624u)));
  (*((volatile uint32_t *)0x20a8004u)) |= 1 << 5;
}


x86 assembly (clang, -O0):
<gpio_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x20e02d0,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e06b8,%edi
call   1040 <gpio_init_pad@plt>
mov    $0x20b4004,%eax
mov    (%rax),%ecx
or     $0x100,%ecx
mov    $0x20b4004,%eax
mov    %ecx,(%rax)
mov    $0x20e00bc,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e03d0,%edi
call   1040 <gpio_init_pad@plt>
mov    $0x20a4004,%eax
mov    (%rax),%ecx
or     $0x4000000,%ecx
mov    $0x20a4004,%eax
mov    %ecx,(%rax)
mov    $0x20e0250,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e0620,%edi
call   1040 <gpio_init_pad@plt>
mov    $0x20b4004,%eax
mov    (%rax),%ecx
or     $0x2000,%ecx
mov    $0x20b4004,%eax
mov    %ecx,(%rax)
mov    $0x20e0254,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e0624,%edi
call   1040 <gpio_init_pad@plt>
mov    $0x20a8004,%eax
mov    (%rax),%ecx
or     $0x20,%ecx
mov    $0x20a8004,%eax
mov    %ecx,(%rax)
pop    %rbp
ret

x86 assembly (clang, -O2):
<gpio_init>:
push   %rax
mov    $0x20e02d0,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e06b8,%edi
call   1040 <gpio_init_pad@plt>
orl    $0x100,0x20b4004
mov    $0x20e00bc,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e03d0,%edi
call   1040 <gpio_init_pad@plt>
orl    $0x4000000,0x20a4004
mov    $0x20e0250,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e0620,%edi
call   1040 <gpio_init_pad@plt>
orl    $0x2000,0x20b4004
mov    $0x20e0254,%edi
call   1030 <gpio_init_mux@plt>
mov    $0x20e0624,%edi
call   1040 <gpio_init_pad@plt>
orl    $0x20,0x20a8004
20
pop    %rax
ret

LLVM IR (-O0):
define void @gpio_init() {
%1 = call i32 @gpio_init_mux(i32* inttoptr (i64 34472656 to i32*))
%2 = call i32 @gpio_init_pad(i32* inttoptr (i64 34473656 to i32*))
%3 = load volatile i32, i32* inttoptr (i64 34291716 to i32*)
%4 = or i32 %3, 256
store volatile i32 %4, i32* inttoptr (i64 34291716 to i32*)
%5 = call i32 @gpio_init_mux(i32* inttoptr (i64 34472124 to i32*))
%6 = call i32 @gpio_init_pad(i32* inttoptr (i64 34472912 to i32*))
%7 = load volatile i32, i32* inttoptr (i64 34226180 to i32*)
%8 = or i32 %7, 67108864
store volatile i32 %8, i32* inttoptr (i64 34226180 to i32*)
%9 = call i32 @gpio_init_mux(i32* inttoptr (i64 34472528 to i32*))
%10 = call i32 @gpio_init_pad(i32* inttoptr (i64 34473504 to i32*))
%11 = load volatile i32, i32* inttoptr (i64 34291716 to i32*)
%12 = or i32 %11, 8192
store volatile i32 %12, i32* inttoptr (i64 34291716 to i32*)
%13 = call i32 @gpio_init_mux(i32* inttoptr (i64 34472532 to i32*))
%14 = call i32 @gpio_init_pad(i32* inttoptr (i64 34473508 to i32*))
%15 = load volatile i32, i32* inttoptr (i64 34242564 to i32*)
%16 = or i32 %15, 32
store volatile i32 %16, i32* inttoptr (i64 34242564 to i32*)
ret void
}

LLVM IR (-O2):
define void @gpio_init() {
%1 = tail call i32 @gpio_init_mux(i32* inttoptr (i64 34472656 to i32*))
%2 = tail call i32 @gpio_init_pad(i32* inttoptr (i64 34473656 to i32*))
%3 = load volatile i32, i32* inttoptr (i64 34291716 to i32*)
%4 = or i32 %3, 256
store volatile i32 %4, i32* inttoptr (i64 34291716 to i32*)
%5 = tail call i32 @gpio_init_mux(i32* inttoptr (i64 34472124 to i32*))
%6 = tail call i32 @gpio_init_pad(i32* inttoptr (i64 34472912 to i32*))
%7 = load volatile i32, i32* inttoptr (i64 34226180 to i32*)
%8 = or i32 %7, 67108864
store volatile i32 %8, i32* inttoptr (i64 34226180 to i32*)
%9 = tail call i32 @gpio_init_mux(i32* inttoptr (i64 34472528 to i32*))
%10 = tail call i32 @gpio_init_pad(i32* inttoptr (i64 34473504 to i32*))
%11 = load volatile i32, i32* inttoptr (i64 34291716 to i32*)
%12 = or i32 %11, 8192
store volatile i32 %12, i32* inttoptr (i64 34291716 to i32*)
%13 = tail call i32 @gpio_init_mux(i32* inttoptr (i64 34472532 to i32*))
%14 = tail call i32 @gpio_init_pad(i32* inttoptr (i64 34473508 to i32*))
%15 = load volatile i32, i32* inttoptr (i64 34242564 to i32*)
%16 = or i32 %15, 32
store volatile i32 %16, i32* inttoptr (i64 34242564 to i32*)
ret void
}