#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_motion_img_default(void) {
  mbus_remote_register_write(
      0x8, 0x17, ((3 << 14) | (0 << 13) | (1 << 9) | (0 << 5) | (4)));
  delay(200);
  mbus_remote_register_write(
      0x8, 0x17, ((3 << 14) | (0 << 13) | (1 << 9) | (0 << 5) | (4)));
  delay(200);
  mbus_remote_register_write(
      0x8, 0x18, ((3 << 14) | (0 << 13) | (1 << 9) | (2 << 5) | (10)));
  delay(200);
  mbus_remote_register_write(0x8, 0x19,
                             ((0 << 13) | (1 << 9) | (1 << 5) | (8)));
  delay(200);
  mbus_remote_register_write(0x8, 0x1A,
                             ((0 << 13) | (8 << 9) | (4 << 5) | (16)));
  delay(200);
  mbus_remote_register_write(0x8, 0x15,
                             ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) |
                              (0 << 13) | (2 << 9) | (2 << 5) | (6)));
  delay(200);
  mbus_remote_register_write(0x8, 0x16,
                             ((0 << 19) | (0 << 18) | (0 << 17) | (3 << 14) |
                              (0 << 13) | (5 << 9) | (5 << 5) | (22)));
  delay(200);
  mbus_remote_register_write(0x8, 0x05,
                             ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) |
                              (0 << 9) | (0 << 8) | (0 << 7) | (47)));
  delay(200);
  mbus_remote_register_write(0x8, 0x05,
                             ((0 << 13) | (0 << 12) | (1 << 11) | (0 << 10) |
                              (1 << 9) | (0 << 8) | (1 << 7) | (47)));
  delay(200);
  mbus_remote_register_write(0x8, 0x36, 0x000001);
  delay(200);
}


x86 assembly (clang, -O0):
<set_pmu_motion_img_default>:
push   %rbp
mov    %rsp,%rbp
mov    $0x8,%edi
mov    $0x17,%esi
mov    $0xc204,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x17,%esi
mov    $0xc204,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x18,%esi
mov    $0xc24a,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x19,%esi
mov    $0x228,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x1a,%esi
mov    $0x1090,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x15,%esi
mov    $0xc446,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x16,%esi
mov    $0xcab6,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x5,%esi
mov    $0x82f,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x5,%esi
mov    $0xaaf,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x36,%esi
mov    $0x1,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<set_pmu_motion_img_default>:
push   %rax
mov    $0x8,%edi
mov    $0x17,%esi
mov    $0xc204,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x17,%esi
mov    $0xc204,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x18,%esi
mov    $0xc24a,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x19,%esi
mov    $0x228,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x1a,%esi
mov    $0x1090,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x15,%esi
mov    $0xc446,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x16,%esi
mov    $0xcab6,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x5,%esi
mov    $0x82f,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x5,%esi
mov    $0xaaf,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
call   1030 <delay@plt>
mov    $0x8,%edi
mov    $0x36,%esi
mov    $0x1,%edx
call   1040 <mbus_remote_register_write@plt>
mov    $0xc8,%edi
pop    %rax
jmp    1030 <delay@plt>

LLVM IR (-O0):
define void @set_pmu_motion_img_default() {
%1 = call i32 @mbus_remote_register_write(i32 8, i32 23, i32 49668)
%2 = call i32 @delay(i32 200)
%3 = call i32 @mbus_remote_register_write(i32 8, i32 23, i32 49668)
%4 = call i32 @delay(i32 200)
%5 = call i32 @mbus_remote_register_write(i32 8, i32 24, i32 49738)
%6 = call i32 @delay(i32 200)
%7 = call i32 @mbus_remote_register_write(i32 8, i32 25, i32 552)
%8 = call i32 @delay(i32 200)
%9 = call i32 @mbus_remote_register_write(i32 8, i32 26, i32 4240)
%10 = call i32 @delay(i32 200)
%11 = call i32 @mbus_remote_register_write(i32 8, i32 21, i32 50246)
%12 = call i32 @delay(i32 200)
%13 = call i32 @mbus_remote_register_write(i32 8, i32 22, i32 51894)
%14 = call i32 @delay(i32 200)
%15 = call i32 @mbus_remote_register_write(i32 8, i32 5, i32 2095)
%16 = call i32 @delay(i32 200)
%17 = call i32 @mbus_remote_register_write(i32 8, i32 5, i32 2735)
%18 = call i32 @delay(i32 200)
%19 = call i32 @mbus_remote_register_write(i32 8, i32 54, i32 1)
%20 = call i32 @delay(i32 200)
ret void
}

LLVM IR (-O2):
define void @set_pmu_motion_img_default() {
%1 = tail call i32 @mbus_remote_register_write(i32 8, i32 23, i32 49668)
%2 = tail call i32 @delay(i32 200)
%3 = tail call i32 @mbus_remote_register_write(i32 8, i32 23, i32 49668)
%4 = tail call i32 @delay(i32 200)
%5 = tail call i32 @mbus_remote_register_write(i32 8, i32 24, i32 49738)
%6 = tail call i32 @delay(i32 200)
%7 = tail call i32 @mbus_remote_register_write(i32 8, i32 25, i32 552)
%8 = tail call i32 @delay(i32 200)
%9 = tail call i32 @mbus_remote_register_write(i32 8, i32 26, i32 4240)
%10 = tail call i32 @delay(i32 200)
%11 = tail call i32 @mbus_remote_register_write(i32 8, i32 21, i32 50246)
%12 = tail call i32 @delay(i32 200)
%13 = tail call i32 @mbus_remote_register_write(i32 8, i32 22, i32 51894)
%14 = tail call i32 @delay(i32 200)
%15 = tail call i32 @mbus_remote_register_write(i32 8, i32 5, i32 2095)
%16 = tail call i32 @delay(i32 200)
%17 = tail call i32 @mbus_remote_register_write(i32 8, i32 5, i32 2735)
%18 = tail call i32 @delay(i32 200)
%19 = tail call i32 @mbus_remote_register_write(i32 8, i32 54, i32 1)
%20 = tail call i32 @delay(i32 200)
ret void
}