#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*/ printf(char *);
int /*<<< orphan*/ show_bbp_cr(char const *, int, char *, char *);
int /*<<< orphan*/ show_bbp_cr_signed(char const *, int, char *, char *);
void show_a_values(const char *dev) {
  printf("    CR50..CR63: 'a' value\n");
  show_bbp_cr(dev, 50, "Test Bus Read", "");
  show_bbp_cr(dev, 51, "Noise floorAntA", "");
  show_bbp_cr(dev, 52, "Noise floorAntB", "");
  show_bbp_cr(dev, 53, "AGC error / I DC Offset", "");
  show_bbp_cr(dev, 54, "Unassigned / Q DC Offset", "");
  show_bbp_cr(dev, 55, "Unassigned  Multipath Metric", "");
  show_bbp_cr(dev, 56, "Unassigned / Multipath Count", "");
  show_bbp_cr(dev, 57, "Unassigned / Packet Signal Quality", "");
  show_bbp_cr_signed(dev, 58, "TX Power Measurement", "");
  show_bbp_cr(dev, 59, "RX Mean Power / Header Signal Quality", "");
}


x86 assembly (clang, -O0):
<show_a_values>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
call   1050 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    $0x32,%esi
lea    0xec3(%rip),%rdx
lea    0xebb(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x33,%esi
lea    0xeb5(%rip),%rdx
lea    0xe9f(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x34,%esi
lea    0xea9(%rip),%rdx
lea    0xe83(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x35,%esi
lea    0xe9d(%rip),%rdx
lea    0xe67(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x36,%esi
lea    0xe99(%rip),%rdx
lea    0xe4b(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x37,%esi
lea    0xe96(%rip),%rdx
lea    0xe2f(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x38,%esi
lea    0xe97(%rip),%rdx
lea    0xe13(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x39,%esi
lea    0xe98(%rip),%rdx
lea    0xdf7(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3a,%esi
lea    0xe9f(%rip),%rdx
lea    0xddb(%rip),%rcx
call   1040 <show_bbp_cr_signed@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3b,%esi
lea    0xe98(%rip),%rdx
lea    0xdbf(%rip),%rcx
call   1030 <show_bbp_cr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_a_values>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xfb9(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb6(%rip),%rdx
lea    0xecc(%rip),%r14
mov    %rbx,%rdi
mov    $0x32,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xea6(%rip),%rdx
mov    %rbx,%rdi
mov    $0x33,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xe9f(%rip),%rdx
mov    %rbx,%rdi
mov    $0x34,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xe98(%rip),%rdx
mov    %rbx,%rdi
mov    $0x35,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xe99(%rip),%rdx
mov    %rbx,%rdi
mov    $0x36,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xe9b(%rip),%rdx
mov    %rbx,%rdi
mov    $0x37,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xea1(%rip),%rdx
mov    %rbx,%rdi
mov    $0x38,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xea7(%rip),%rdx
mov    %rbx,%rdi
mov    $0x39,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xeb3(%rip),%rdx
mov    %rbx,%rdi
mov    $0x3a,%esi
mov    %r14,%rcx
call   1050 <show_bbp_cr_signed@plt>
lea    0xeb1(%rip),%rdx
mov    %rbx,%rdi
mov    $0x3b,%esi
mov    %r14,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <show_bbp_cr@plt>

LLVM IR (-O0):
@.str = [27 x i8] c" CR50..CR63: 'a' value\0A\00"
@.str.1 = [14 x i8] c"Test Bus Read\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [16 x i8] c"Noise floorAntA\00"
@.str.4 = [16 x i8] c"Noise floorAntB\00"
@.str.5 = [24 x i8] c"AGC error / I DC Offset\00"
@.str.6 = [25 x i8] c"Unassigned / Q DC Offset\00"
@.str.7 = [29 x i8] c"Unassigned Multipath Metric\00"
@.str.8 = [29 x i8] c"Unassigned / Multipath Count\00"
@.str.9 = [35 x i8] c"Unassigned / Packet Signal Quality\00"
@.str.10 = [21 x i8] c"TX Power Measurement\00"
@.str.11 = [38 x i8] c"RX Mean Power / Header Signal Quality\00"
define void @show_a_values(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = call i32 @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str, i64 0, i64 0))
%4 = load i8*, i8** %2
%5 = call i32 @show_bbp_cr(i8* %4, i32 50, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%6 = load i8*, i8** %2
%7 = call i32 @show_bbp_cr(i8* %6, i32 51, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%8 = load i8*, i8** %2
%9 = call i32 @show_bbp_cr(i8* %8, i32 52, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%10 = load i8*, i8** %2
%11 = call i32 @show_bbp_cr(i8* %10, i32 53, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%12 = load i8*, i8** %2
%13 = call i32 @show_bbp_cr(i8* %12, i32 54, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%14 = load i8*, i8** %2
%15 = call i32 @show_bbp_cr(i8* %14, i32 55, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%16 = load i8*, i8** %2
%17 = call i32 @show_bbp_cr(i8* %16, i32 56, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%18 = load i8*, i8** %2
%19 = call i32 @show_bbp_cr(i8* %18, i32 57, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%20 = load i8*, i8** %2
%21 = call i32 @show_bbp_cr_signed(i8* %20, i32 58, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%22 = load i8*, i8** %2
%23 = call i32 @show_bbp_cr(i8* %22, i32 59, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [14 x i8] c"Test Bus Read\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [16 x i8] c"Noise floorAntA\00"
@.str.4 = [16 x i8] c"Noise floorAntB\00"
@.str.5 = [24 x i8] c"AGC error / I DC Offset\00"
@.str.6 = [25 x i8] c"Unassigned / Q DC Offset\00"
@.str.7 = [29 x i8] c"Unassigned Multipath Metric\00"
@.str.8 = [29 x i8] c"Unassigned / Multipath Count\00"
@.str.9 = [35 x i8] c"Unassigned / Packet Signal Quality\00"
@.str.10 = [21 x i8] c"TX Power Measurement\00"
@.str.11 = [38 x i8] c"RX Mean Power / Header Signal Quality\00"
@str = [26 x i8] c" CR50..CR63: 'a' value\00"
define void @show_a_values(i8* %0) {
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
%3 = tail call i32 @show_bbp_cr(i8* %0, i32 50, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @show_bbp_cr(i8* %0, i32 51, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @show_bbp_cr(i8* %0, i32 52, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @show_bbp_cr(i8* %0, i32 53, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @show_bbp_cr(i8* %0, i32 54, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @show_bbp_cr(i8* %0, i32 55, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @show_bbp_cr(i8* %0, i32 56, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @show_bbp_cr(i8* %0, i32 57, i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @show_bbp_cr_signed(i8* %0, i32 58, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @show_bbp_cr(i8* %0, i32 59, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
ret void
}