#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*/ bits(int, int, char *, char *, char *);
void cc2400_manor(unsigned short v) {
  (void)(v);
  bits(15, 15, "VGA_RESET_N", "RW", "");
  bits(14, 14, "LOCK_STATUS", "RW", "");
  bits(13, 13, "BALUN_CTRL", "RW", "");
  bits(12, 12, "RXTX", "RW", "");
  bits(11, 11, "PRE_PD", "RW", "");
  bits(10, 10, "PA_N_PD", "RW", "");
  bits(9, 9, "PA_P_PD", "RW", "");
  bits(8, 8, "DAC_LPF_PD", "RW", "");
  bits(7, 7, "BIAS_PD", "RW", "");
  bits(6, 6, "XOSC16M_PD", "RW", "");
  bits(5, 5, "CHP_PD", "RW", "");
  bits(4, 4, "FS_PD", "RW", "");
  bits(3, 3, "ADC_PD", "RW", "");
  bits(2, 2, "VGA_PD", "RW", "");
  bits(1, 1, "RXBPF_PD", "RW", "");
  bits(0, 0, "LNAMIX_PD", "RW", "");
}


x86 assembly (clang, -O0):
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %di,%ax
mov    %ax,-0x2(%rbp)
mov    $0xf,%esi
lea    0xed5(%rip),%rdx
lea    0xeda(%rip),%rcx
lea    0xf41(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0xe,%esi
lea    0xec3(%rip),%rdx
lea    0xeb9(%rip),%rcx
lea    0xf20(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0xd,%esi
lea    0xeae(%rip),%rdx
lea    0xe98(%rip),%rcx
lea    0xeff(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0xc,%esi
lea    0xe98(%rip),%rdx
lea    0xe77(%rip),%rcx
lea    0xede(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0xb,%esi
lea    0xe7c(%rip),%rdx
lea    0xe56(%rip),%rcx
lea    0xebd(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0xa,%esi
lea    0xe62(%rip),%rdx
lea    0xe35(%rip),%rcx
lea    0xe9c(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x9,%esi
lea    0xe49(%rip),%rdx
lea    0xe14(%rip),%rcx
lea    0xe7b(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x8,%esi
lea    0xe30(%rip),%rdx
lea    0xdf3(%rip),%rcx
lea    0xe5a(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x7,%esi
lea    0xe1a(%rip),%rdx
lea    0xdd2(%rip),%rcx
lea    0xe39(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x6,%esi
lea    0xe01(%rip),%rdx
lea    0xdb1(%rip),%rcx
lea    0xe18(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x5,%esi
lea    0xdeb(%rip),%rdx
lea    0xd90(%rip),%rcx
lea    0xdf7(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x4,%esi
lea    0xdd1(%rip),%rdx
lea    0xd6f(%rip),%rcx
lea    0xdd6(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x3,%esi
lea    0xdb6(%rip),%rdx
lea    0xd4e(%rip),%rcx
lea    0xdb5(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x2,%esi
lea    0xd9c(%rip),%rdx
lea    0xd2d(%rip),%rcx
lea    0xd94(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
mov    $0x1,%esi
lea    0xd82(%rip),%rdx
lea    0xd0c(%rip),%rcx
lea    0xd73(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
xor    %esi,%esi
lea    0xd6d(%rip),%rdx
lea    0xcee(%rip),%rcx
lea    0xd55(%rip),%r8
mov    %esi,%edi
call   1030 <bits@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
push   %r14
push   %rbx
push   %rax
lea    0xee5(%rip),%rdx
lea    0xeea(%rip),%rbx
lea    0xf51(%rip),%r14
mov    $0xf,%edi
mov    $0xf,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xeca(%rip),%rdx
mov    $0xe,%edi
mov    $0xe,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xeba(%rip),%rdx
mov    $0xd,%edi
mov    $0xd,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xea9(%rip),%rdx
mov    $0xc,%edi
mov    $0xc,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe92(%rip),%rdx
mov    $0xb,%edi
mov    $0xb,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe7d(%rip),%rdx
mov    $0xa,%edi
mov    $0xa,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe69(%rip),%rdx
mov    $0x9,%edi
mov    $0x9,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe55(%rip),%rdx
mov    $0x8,%edi
mov    $0x8,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe44(%rip),%rdx
mov    $0x7,%edi
mov    $0x7,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe30(%rip),%rdx
mov    $0x6,%edi
mov    $0x6,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe1f(%rip),%rdx
mov    $0x5,%edi
mov    $0x5,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xe0a(%rip),%rdx
mov    $0x4,%edi
mov    $0x4,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xdf4(%rip),%rdx
mov    $0x3,%edi
mov    $0x3,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xddf(%rip),%rdx
mov    $0x2,%edi
mov    $0x2,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xdca(%rip),%rdx
mov    $0x1,%edi
mov    $0x1,%esi
mov    %rbx,%rcx
mov    %r14,%r8
call   1030 <bits@plt>
lea    0xdb7(%rip),%rdx
xor    %edi,%edi
xor    %esi,%esi
mov    %rbx,%rcx
mov    %r14,%r8
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <bits@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"VGA_RESET_N\00"
@.str.1 = [3 x i8] c"RW\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [12 x i8] c"LOCK_STATUS\00"
@.str.4 = [11 x i8] c"BALUN_CTRL\00"
@.str.5 = [5 x i8] c"RXTX\00"
@.str.6 = [7 x i8] c"PRE_PD\00"
@.str.7 = [8 x i8] c"PA_N_PD\00"
@.str.8 = [8 x i8] c"PA_P_PD\00"
@.str.9 = [11 x i8] c"DAC_LPF_PD\00"
@.str.10 = [8 x i8] c"BIAS_PD\00"
@.str.11 = [11 x i8] c"XOSC16M_PD\00"
@.str.12 = [7 x i8] c"CHP_PD\00"
@.str.13 = [6 x i8] c"FS_PD\00"
@.str.14 = [7 x i8] c"ADC_PD\00"
@.str.15 = [7 x i8] c"VGA_PD\00"
@.str.16 = [9 x i8] c"RXBPF_PD\00"
@.str.17 = [10 x i8] c"LNAMIX_PD\00"
define void @cc2400_manor(i16 zeroext %0) {
%2 = alloca i16
store i16 %0, i16* %2
%3 = load i16, i16* %2
%4 = call i32 @bits(i32 15, i32 15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%5 = call i32 @bits(i32 14, i32 14, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @bits(i32 13, i32 13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%7 = call i32 @bits(i32 12, i32 12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @bits(i32 11, i32 11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%9 = call i32 @bits(i32 10, i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%10 = call i32 @bits(i32 9, i32 9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 @bits(i32 8, i32 8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @bits(i32 7, i32 7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%13 = call i32 @bits(i32 6, i32 6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%14 = call i32 @bits(i32 5, i32 5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%15 = call i32 @bits(i32 4, i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @bits(i32 3, i32 3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%17 = call i32 @bits(i32 2, i32 2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%18 = call i32 @bits(i32 1, i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%19 = call i32 @bits(i32 0, i32 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, 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 = [12 x i8] c"VGA_RESET_N\00"
@.str.1 = [3 x i8] c"RW\00"
@.str.2 = [1 x i8] zeroinitializer
@.str.3 = [12 x i8] c"LOCK_STATUS\00"
@.str.4 = [11 x i8] c"BALUN_CTRL\00"
@.str.5 = [5 x i8] c"RXTX\00"
@.str.6 = [7 x i8] c"PRE_PD\00"
@.str.7 = [8 x i8] c"PA_N_PD\00"
@.str.8 = [8 x i8] c"PA_P_PD\00"
@.str.9 = [11 x i8] c"DAC_LPF_PD\00"
@.str.10 = [8 x i8] c"BIAS_PD\00"
@.str.11 = [11 x i8] c"XOSC16M_PD\00"
@.str.12 = [7 x i8] c"CHP_PD\00"
@.str.13 = [6 x i8] c"FS_PD\00"
@.str.14 = [7 x i8] c"ADC_PD\00"
@.str.15 = [7 x i8] c"VGA_PD\00"
@.str.16 = [9 x i8] c"RXBPF_PD\00"
@.str.17 = [10 x i8] c"LNAMIX_PD\00"
define void @cc2400_manor(i16 zeroext %0) {
%2 = tail call i32 @bits(i32 15, i32 15, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%3 = tail call i32 @bits(i32 14, i32 14, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 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 @bits(i32 13, i32 13, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%5 = tail call i32 @bits(i32 12, i32 12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%6 = tail call i32 @bits(i32 11, i32 11, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%7 = tail call i32 @bits(i32 10, i32 10, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%8 = tail call i32 @bits(i32 9, i32 9, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%9 = tail call i32 @bits(i32 8, i32 8, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%10 = tail call i32 @bits(i32 7, i32 7, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @bits(i32 6, i32 6, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%12 = tail call i32 @bits(i32 5, i32 5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @bits(i32 4, i32 4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%14 = tail call i32 @bits(i32 3, i32 3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%15 = tail call i32 @bits(i32 2, i32 2, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%16 = tail call i32 @bits(i32 1, i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
%17 = tail call i32 @bits(i32 0, i32 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.2, i64 0, i64 0))
ret void
}