#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_remote_register_write(int, int, int);
void set_pmu_sleep_clk_init() {
  delay(10000);
  mbus_remote_register_write(
      0x6, 0x17, ((3 << 14) | (1 << 13) | (1 << 9) | (0 << 5) | (2)));
  delay(10000);
  mbus_remote_register_write(
      0x6, 0x18, ((3 << 14) | (1 << 13) | (1 << 9) | (2 << 5) | (10)));
  delay(10000);
  mbus_remote_register_write(0x6, 0x19,
                             ((1 << 13) | (1 << 9) | (0 << 5) | (1)));
  delay(10000);
  mbus_remote_register_write(0x6, 0x1A,
                             ((1 << 13) | (4 << 9) | (2 << 5) | (8)));
  delay(10000);
  mbus_remote_register_write(0x6, 0x15,
                             ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) |
                              (1 << 13) | (1 << 9) | (1 << 5) | (6)));
  delay(10000);
  mbus_remote_register_write(0x6, 0x16,
                             ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) |
                              (1 << 13) | (4 << 9) | (4 << 5) | (15)));
  delay(10000);
  mbus_remote_register_write(
      0x6, 0x05,
      ((1 << 11) | (1 << 10) | (1 << 9) | (0 << 8) | (1 << 7) | (44)));
  delay(10000);
  mbus_remote_register_write(0x6, 0x36, 0x000001);
  delay(10000);
}


x86 assembly (clang, -O0):
<set_pmu_sleep_clk_init>:
push   %rbp
mov    %rsp,%rbp
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x17,%esi
mov    $0xe202,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x18,%esi
mov    $0xe24a,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x19,%esi
mov    $0x2201,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x1a,%esi
mov    $0x2848,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x15,%esi
mov    $0xe226,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x16,%esi
mov    $0xe88f,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x5,%esi
mov    $0xeac,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x36,%esi
mov    $0x1,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_pmu_sleep_clk_init>:
push   %rax
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x17,%esi
mov    $0xe202,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x18,%esi
mov    $0xe24a,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x19,%esi
mov    $0x2201,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x1a,%esi
mov    $0x2848,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x15,%esi
mov    $0xe226,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x16,%esi
mov    $0xe88f,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x5,%esi
mov    $0xeac,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
call   1030 <delay@plt>
mov    $0x6,%edi
mov    $0x36,%esi
mov    $0x1,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0x2710,%edi
pop    %rax
jmp    1030 <delay@plt>

LLVM IR (-O0):
define void @set_pmu_sleep_clk_init() {
%1 = call i32 @delay(i32 10000)
%2 = call i32 @mbus_remote_register_write(i32 6, i32 23, i32 57858)
%3 = call i32 @delay(i32 10000)
%4 = call i32 @mbus_remote_register_write(i32 6, i32 24, i32 57930)
%5 = call i32 @delay(i32 10000)
%6 = call i32 @mbus_remote_register_write(i32 6, i32 25, i32 8705)
%7 = call i32 @delay(i32 10000)
%8 = call i32 @mbus_remote_register_write(i32 6, i32 26, i32 10312)
%9 = call i32 @delay(i32 10000)
%10 = call i32 @mbus_remote_register_write(i32 6, i32 21, i32 57894)
%11 = call i32 @delay(i32 10000)
%12 = call i32 @mbus_remote_register_write(i32 6, i32 22, i32 59535)
%13 = call i32 @delay(i32 10000)
%14 = call i32 @mbus_remote_register_write(i32 6, i32 5, i32 3756)
%15 = call i32 @delay(i32 10000)
%16 = call i32 @mbus_remote_register_write(i32 6, i32 54, i32 1)
%17 = call i32 @delay(i32 10000)
ret void
}

LLVM IR (-O2):
define void @set_pmu_sleep_clk_init() {
%1 = tail call i32 @delay(i32 10000)
%2 = tail call i32 @mbus_remote_register_write(i32 6, i32 23, i32 57858)
%3 = tail call i32 @delay(i32 10000)
%4 = tail call i32 @mbus_remote_register_write(i32 6, i32 24, i32 57930)
%5 = tail call i32 @delay(i32 10000)
%6 = tail call i32 @mbus_remote_register_write(i32 6, i32 25, i32 8705)
%7 = tail call i32 @delay(i32 10000)
%8 = tail call i32 @mbus_remote_register_write(i32 6, i32 26, i32 10312)
%9 = tail call i32 @delay(i32 10000)
%10 = tail call i32 @mbus_remote_register_write(i32 6, i32 21, i32 57894)
%11 = tail call i32 @delay(i32 10000)
%12 = tail call i32 @mbus_remote_register_write(i32 6, i32 22, i32 59535)
%13 = tail call i32 @delay(i32 10000)
%14 = tail call i32 @mbus_remote_register_write(i32 6, i32 5, i32 3756)
%15 = tail call i32 @delay(i32 10000)
%16 = tail call i32 @mbus_remote_register_write(i32 6, i32 54, i32 1)
%17 = tail call i32 @delay(i32 10000)
ret void
}