#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 _getReg(int);
int /*<<< orphan*/ printf(char *, int);
void adxlStat() {
  printf("0x00 DEVID       0x%02X\n", _getReg(0x00));
  printf("0x1D THRESH_TAP  0x%02X\n", _getReg(0x1D));
  printf("0x1E OFSX        0x%02X\n", _getReg(0x1E));
  printf("0x1F OFSY        0x%02X\n", _getReg(0x1F));
  printf("0x20 OFSZ        0x%02X\n", _getReg(0x20));
  printf("0x21 DUR         0x%02X\n", _getReg(0x21));
  printf("0x22 Latent      0x%02X\n", _getReg(0x22));
  printf("0x23 Window      0x%02X\n", _getReg(0x23));
  printf("0x2A TAP_AXES    0x%02X\n", _getReg(0x2A));
  printf("0x2D POWER_CTL   0x%02X\n", _getReg(0x2D));
  printf("0x2E INT_ENABLE  0x%02X\n", _getReg(0x2E));
  printf("0x2F INT_MAP     0x%02X\n", _getReg(0x2F));
  printf("0x30 INT_SOURCE  0x%02X\n", _getReg(0x30));
  printf("0x31 DATA_FORMAT 0x%02X\n", _getReg(0x31));
  printf("0x38 FIFO_CTL    0x%02X\n", _getReg(0x38));
  printf("0x39 FIFO_STATUS 0x%02X\n", _getReg(0x39));
}


x86 assembly (clang, -O0):
<adxlStat>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xecc(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1d,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xecd(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1e,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
mov    $0x1f,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
mov    $0x20,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed0(%rip),%rdi
call   1030 <printf@plt>
mov    $0x21,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed1(%rip),%rdi
call   1030 <printf@plt>
mov    $0x22,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed2(%rip),%rdi
call   1030 <printf@plt>
mov    $0x23,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed3(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2a,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2d,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed5(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2e,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed6(%rip),%rdi
call   1030 <printf@plt>
mov    $0x2f,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
mov    $0x30,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    $0x31,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xed9(%rip),%rdi
call   1030 <printf@plt>
mov    $0x38,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
mov    $0x39,%edi
call   1040 <_getReg@plt>
mov    %eax,%esi
lea    0xedb(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<adxlStat>:
push   %rax
xor    %edi,%edi
call   1040 <_getReg@plt>
lea    0xed1(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x1d,%edi
call   1040 <_getReg@plt>
lea    0xed2(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x1e,%edi
call   1040 <_getReg@plt>
lea    0xed3(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x1f,%edi
call   1040 <_getReg@plt>
lea    0xed4(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x20,%edi
call   1040 <_getReg@plt>
lea    0xed5(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x21,%edi
call   1040 <_getReg@plt>
lea    0xed6(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x22,%edi
call   1040 <_getReg@plt>
lea    0xed7(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x23,%edi
call   1040 <_getReg@plt>
lea    0xed8(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x2a,%edi
call   1040 <_getReg@plt>
lea    0xed9(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x2d,%edi
call   1040 <_getReg@plt>
lea    0xeda(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x2e,%edi
call   1040 <_getReg@plt>
lea    0xedb(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x2f,%edi
call   1040 <_getReg@plt>
lea    0xedc(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x30,%edi
call   1040 <_getReg@plt>
lea    0xedd(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x31,%edi
call   1040 <_getReg@plt>
lea    0xede(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x38,%edi
call   1040 <_getReg@plt>
lea    0xedf(%rip),%rdi
mov    %eax,%esi
call   1030 <printf@plt>
mov    $0x39,%edi
call   1040 <_getReg@plt>
lea    0xee0(%rip),%rdi
mov    %eax,%esi
pop    %rax
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"0x00 DEVID 0x%02X\0A\00"
@.str.1 = [25 x i8] c"0x1D THRESH_TAP 0x%02X\0A\00"
@.str.2 = [25 x i8] c"0x1E OFSX 0x%02X\0A\00"
@.str.3 = [25 x i8] c"0x1F OFSY 0x%02X\0A\00"
@.str.4 = [25 x i8] c"0x20 OFSZ 0x%02X\0A\00"
@.str.5 = [25 x i8] c"0x21 DUR 0x%02X\0A\00"
@.str.6 = [25 x i8] c"0x22 Latent 0x%02X\0A\00"
@.str.7 = [25 x i8] c"0x23 Window 0x%02X\0A\00"
@.str.8 = [25 x i8] c"0x2A TAP_AXES 0x%02X\0A\00"
@.str.9 = [25 x i8] c"0x2D POWER_CTL 0x%02X\0A\00"
@.str.10 = [25 x i8] c"0x2E INT_ENABLE 0x%02X\0A\00"
@.str.11 = [25 x i8] c"0x2F INT_MAP 0x%02X\0A\00"
@.str.12 = [25 x i8] c"0x30 INT_SOURCE 0x%02X\0A\00"
@.str.13 = [25 x i8] c"0x31 DATA_FORMAT 0x%02X\0A\00"
@.str.14 = [25 x i8] c"0x38 FIFO_CTL 0x%02X\0A\00"
@.str.15 = [25 x i8] c"0x39 FIFO_STATUS 0x%02X\0A\00"
define void @adxlStat() {
%1 = call i32 @_getReg(i32 0)
%2 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = call i32 @_getReg(i32 29)
%4 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = call i32 @_getReg(i32 30)
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = call i32 @_getReg(i32 31)
%8 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = call i32 @_getReg(i32 32)
%10 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = call i32 @_getReg(i32 33)
%12 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = call i32 @_getReg(i32 34)
%14 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = call i32 @_getReg(i32 35)
%16 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = call i32 @_getReg(i32 42)
%18 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = call i32 @_getReg(i32 45)
%20 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = call i32 @_getReg(i32 46)
%22 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = call i32 @_getReg(i32 47)
%24 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = call i32 @_getReg(i32 48)
%26 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = call i32 @_getReg(i32 49)
%28 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = call i32 @_getReg(i32 56)
%30 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = call i32 @_getReg(i32 57)
%32 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i32 %31)
ret void
}

LLVM IR (-O2):
@.str = [25 x i8] c"0x00 DEVID 0x%02X\0A\00"
@.str.1 = [25 x i8] c"0x1D THRESH_TAP 0x%02X\0A\00"
@.str.2 = [25 x i8] c"0x1E OFSX 0x%02X\0A\00"
@.str.3 = [25 x i8] c"0x1F OFSY 0x%02X\0A\00"
@.str.4 = [25 x i8] c"0x20 OFSZ 0x%02X\0A\00"
@.str.5 = [25 x i8] c"0x21 DUR 0x%02X\0A\00"
@.str.6 = [25 x i8] c"0x22 Latent 0x%02X\0A\00"
@.str.7 = [25 x i8] c"0x23 Window 0x%02X\0A\00"
@.str.8 = [25 x i8] c"0x2A TAP_AXES 0x%02X\0A\00"
@.str.9 = [25 x i8] c"0x2D POWER_CTL 0x%02X\0A\00"
@.str.10 = [25 x i8] c"0x2E INT_ENABLE 0x%02X\0A\00"
@.str.11 = [25 x i8] c"0x2F INT_MAP 0x%02X\0A\00"
@.str.12 = [25 x i8] c"0x30 INT_SOURCE 0x%02X\0A\00"
@.str.13 = [25 x i8] c"0x31 DATA_FORMAT 0x%02X\0A\00"
@.str.14 = [25 x i8] c"0x38 FIFO_CTL 0x%02X\0A\00"
@.str.15 = [25 x i8] c"0x39 FIFO_STATUS 0x%02X\0A\00"
define void @adxlStat() {
%1 = tail call i32 @_getReg(i32 0)
%2 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = tail call i32 @_getReg(i32 29)
%4 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0), i32 %3)
%5 = tail call i32 @_getReg(i32 30)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i32 %5)
%7 = tail call i32 @_getReg(i32 31)
%8 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.3, i64 0, i64 0), i32 %7)
%9 = tail call i32 @_getReg(i32 32)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.4, i64 0, i64 0), i32 %9)
%11 = tail call i32 @_getReg(i32 33)
%12 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0), i32 %11)
%13 = tail call i32 @_getReg(i32 34)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i32 %13)
%15 = tail call i32 @_getReg(i32 35)
%16 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0), i32 %15)
%17 = tail call i32 @_getReg(i32 42)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.8, i64 0, i64 0), i32 %17)
%19 = tail call i32 @_getReg(i32 45)
%20 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.9, i64 0, i64 0), i32 %19)
%21 = tail call i32 @_getReg(i32 46)
%22 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.10, i64 0, i64 0), i32 %21)
%23 = tail call i32 @_getReg(i32 47)
%24 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), i32 %23)
%25 = tail call i32 @_getReg(i32 48)
%26 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), i32 %25)
%27 = tail call i32 @_getReg(i32 49)
%28 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), i32 %27)
%29 = tail call i32 @_getReg(i32 56)
%30 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.14, i64 0, i64 0), i32 %29)
%31 = tail call i32 @_getReg(i32 57)
%32 = tail call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.15, i64 0, i64 0), i32 %31)
ret void
}