#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*/ delay(int);
int /*<<< orphan*/ mbus_enumerate(int);
int /*<<< orphan*/ mbus_remote_register_write(int, int, int);
int /*<<< orphan*/ pmu_adc_enable();
int /*<<< orphan*/ pmu_adc_reset_setting();
int /*<<< orphan*/ set_flag(int /*<<< orphan*/, int);
int /*<<< orphan*/ set_halt_until_mbus_trx();
int /*<<< orphan*/ set_halt_until_mbus_tx();
void initialization(void) {
  set_flag(0, 1);
  set_halt_until_mbus_trx();
  mbus_enumerate(0x6);
  set_halt_until_mbus_tx();
  mbus_remote_register_write(0x6, 0x3A,
                             ((1 << 19) | (1 << 13) | (1 << 12) | (1 << 11)));
  delay(200);
  pmu_adc_reset_setting();
  delay(200);
  pmu_adc_enable();
  delay(200);
}


x86 assembly (clang, -O0):
<initialization>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
mov    $0x1,%esi
call   10a0 <set_flag@plt>
mov    $0x0,%al
call   1030 <set_halt_until_mbus_trx@plt>
mov    $0x6,%edi
call   1090 <mbus_enumerate@plt>
mov    $0x0,%al
call   1040 <set_halt_until_mbus_tx@plt>
mov    $0x6,%edi
mov    $0x3a,%esi
mov    $0x83800,%edx
call   1070 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1060 <delay@plt>
mov    $0x0,%al
call   1080 <pmu_adc_reset_setting@plt>
mov    $0xc8,%edi
call   1060 <delay@plt>
mov    $0x0,%al
call   1050 <pmu_adc_enable@plt>
mov    $0xc8,%edi
call   1060 <delay@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<initialization>:
push   %rax
xor    %edi,%edi
mov    $0x1,%esi
call   10a0 <set_flag@plt>
xor    %eax,%eax
call   1030 <set_halt_until_mbus_trx@plt>
mov    $0x6,%edi
call   1090 <mbus_enumerate@plt>
xor    %eax,%eax
call   1040 <set_halt_until_mbus_tx@plt>
mov    $0x6,%edi
mov    $0x3a,%esi
mov    $0x83800,%edx
call   1070 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1060 <delay@plt>
xor    %eax,%eax
call   1080 <pmu_adc_reset_setting@plt>
mov    $0xc8,%edi
call   1060 <delay@plt>
xor    %eax,%eax
call   1050 <pmu_adc_enable@plt>
mov    $0xc8,%edi
pop    %rax
jmp    1060 <delay@plt>

LLVM IR (-O0):
define void @initialization() {
%1 = call i32 @set_flag(i32 0, i32 1)
%2 = call i32 (...) @set_halt_until_mbus_trx()
%3 = call i32 @mbus_enumerate(i32 6)
%4 = call i32 (...) @set_halt_until_mbus_tx()
%5 = call i32 @mbus_remote_register_write(i32 6, i32 58, i32 538624)
%6 = call i32 @delay(i32 200)
%7 = call i32 (...) @pmu_adc_reset_setting()
%8 = call i32 @delay(i32 200)
%9 = call i32 (...) @pmu_adc_enable()
%10 = call i32 @delay(i32 200)
ret void
}

LLVM IR (-O2):
define void @initialization() {
%1 = tail call i32 @set_flag(i32 0, i32 1)
%2 = tail call i32 (...) @set_halt_until_mbus_trx()
%3 = tail call i32 @mbus_enumerate(i32 6)
%4 = tail call i32 (...) @set_halt_until_mbus_tx()
%5 = tail call i32 @mbus_remote_register_write(i32 6, i32 58, i32 538624)
%6 = tail call i32 @delay(i32 200)
%7 = tail call i32 (...) @pmu_adc_reset_setting()
%8 = tail call i32 @delay(i32 200)
%9 = tail call i32 (...) @pmu_adc_enable()
%10 = tail call i32 @delay(i32 200)
ret void
}