#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_b_values(const char *dev) {
  printf("    CR50..CR63: 'b' value\n");
  show_bbp_cr(dev, 50, "Test Bus Read", "");
  show_bbp_cr(dev, 51, "Signal Quality Measure Based on Carrier Tracking", "");
  show_bbp_cr(dev, 52, "Received Signal Field", "");
  show_bbp_cr(dev, 53, "Received Service Field", "");
  show_bbp_cr(dev, 54, "Received Length Field, Low", "");
  show_bbp_cr(dev, 55, "Received Length Field, High", "");
  show_bbp_cr(dev, 56, "Calculated CRC on Received Header, Low", "");
  show_bbp_cr(dev, 57, "Calculated CRC on Received Header, High", "");
  show_bbp_cr_signed(dev, 58, "TX Power Measurement", "");
  show_bbp_cr(dev, 59, "RX Mean Power", "");
}


x86 assembly (clang, -O0):
<show_b_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    0xeca(%rip),%rdx
lea    0xe83(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x35,%esi
lea    0xec4(%rip),%rdx
lea    0xe67(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x36,%esi
lea    0xebf(%rip),%rdx
lea    0xe4b(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x37,%esi
lea    0xebe(%rip),%rdx
lea    0xe2f(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x38,%esi
lea    0xebe(%rip),%rdx
lea    0xe13(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x39,%esi
lea    0xec9(%rip),%rdx
lea    0xdf7(%rip),%rcx
call   1030 <show_bbp_cr@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3a,%esi
lea    0xed5(%rip),%rdx
lea    0xddb(%rip),%rcx
call   1040 <show_bbp_cr_signed@plt>
mov    -0x8(%rbp),%rdi
mov    $0x3b,%esi
lea    0xece(%rip),%rdx
lea    0xdbf(%rip),%rcx
call   1030 <show_bbp_cr@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_b_values>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xfd7(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb6(%rip),%rdx
lea    0xebc(%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    0xec0(%rip),%rdx
mov    %rbx,%rdi
mov    $0x34,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xebf(%rip),%rdx
mov    %rbx,%rdi
mov    $0x35,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xebf(%rip),%rdx
mov    %rbx,%rdi
mov    $0x36,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xec3(%rip),%rdx
mov    %rbx,%rdi
mov    $0x37,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xec8(%rip),%rdx
mov    %rbx,%rdi
mov    $0x38,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xed8(%rip),%rdx
mov    %rbx,%rdi
mov    $0x39,%esi
mov    %r14,%rcx
call   1040 <show_bbp_cr@plt>
lea    0xee9(%rip),%rdx
mov    %rbx,%rdi
mov    $0x3a,%esi
mov    %r14,%rcx
call   1050 <show_bbp_cr_signed@plt>
lea    0xee7(%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: 'b' value\0A\00"
@.str.1 = [14 x i8] c"Test Bus Read\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [49 x i8] c"Signal Quality Measure Based on Carrier Tracking\00"
@.str.4 = [22 x i8] c"Received Signal Field\00"
@.str.5 = [23 x i8] c"Received Service Field\00"
@.str.6 = [27 x i8] c"Received Length Field, Low\00"
@.str.7 = [28 x i8] c"Received Length Field, High\00"
@.str.8 = [39 x i8] c"Calculated CRC on Received Header, Low\00"
@.str.9 = [40 x i8] c"Calculated CRC on Received Header, High\00"
@.str.10 = [21 x i8] c"TX Power Measurement\00"
@.str.11 = [14 x i8] c"RX Mean Power\00"
define void @show_b_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 ([49 x i8], [49 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 ([22 x i8], [22 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 ([23 x i8], [23 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 ([27 x i8], [27 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 ([28 x i8], [28 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 ([39 x i8], [39 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 ([40 x i8], [40 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 ([14 x i8], [14 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 = [49 x i8] c"Signal Quality Measure Based on Carrier Tracking\00"
@.str.4 = [22 x i8] c"Received Signal Field\00"
@.str.5 = [23 x i8] c"Received Service Field\00"
@.str.6 = [27 x i8] c"Received Length Field, Low\00"
@.str.7 = [28 x i8] c"Received Length Field, High\00"
@.str.8 = [39 x i8] c"Calculated CRC on Received Header, Low\00"
@.str.9 = [40 x i8] c"Calculated CRC on Received Header, High\00"
@.str.10 = [21 x i8] c"TX Power Measurement\00"
@.str.11 = [14 x i8] c"RX Mean Power\00"
@str = [26 x i8] c" CR50..CR63: 'b' value\00"
define void @show_b_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 ([49 x i8], [49 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 ([22 x i8], [22 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 ([23 x i8], [23 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 ([27 x i8], [27 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 ([28 x i8], [28 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 ([39 x i8], [39 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 ([40 x i8], [40 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 ([14 x i8], [14 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
}