#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*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void print_irlp(unsigned char *c) {
  unsigned char dtmf0;
  unsigned char dtmf1;
  unsigned char dtmf2;
  unsigned char dtmf3;
  unsigned char COS;
  unsigned char irlpkeyi;
  unsigned char irlpkey;
  unsigned char key;
  unsigned char mute;
  unsigned char ctcss;
  unsigned char fan;
  unsigned char aux4;
  unsigned char aux5;
  dtmf0 = (c[0] >> 3) & 0x01;
  dtmf1 = (c[0] >> 4) & 0x01;
  dtmf2 = (c[0] >> 5) & 0x01;
  dtmf3 = (c[0] >> 6) & 0x01;
  COS = (c[0] >> 7) & 0x01;
  irlpkeyi = c[1] & 0x01;
  irlpkey = (c[1] >> 1) & 0x01;
  key = (c[1] >> 2) & 0x01;
  mute = (c[1] >> 3) & 0x01;
  ctcss = (c[1] >> 4) & 0x01;
  fan = (c[1] >> 5) & 0x01;
  aux4 = (c[1] >> 6) & 0x01;
  aux5 = (c[1] >> 7) & 0x01;
  fprintf(stderr, "+------ From Radio ------+ ");
  fprintf(stderr, "+---------------------- To Radio --------------------+\n");
  fprintf(stderr, "+---+ DMTF  +---+ COS + ");
  fprintf(stderr,
          "+ IRLP + IRLP +  KEY + MUTE +   PL +  FAN + AUX4 + AUX5 +\n");
  fprintf(stderr, "| %u | %u | %u | %u |  %u  | ", dtmf0, dtmf1, dtmf2, dtmf3,
          COS);
  fprintf(stderr,
          "|    %u |    %u |    %u |    %u |    %u |    %u |    %u |    %u |\n",
          irlpkeyi, irlpkey, key, mute, ctcss, fan, aux4, aux5);
  fprintf(stderr, "+---+---+---+---+-----+ ");
  fprintf(stderr,
          "+------+------+------+------+------+------+------+------+\n\n");
}


x86 assembly (clang, -O0):
<print_irlp>:
push   %rbp
mov    %rsp,%rbp
push   %rbx
sub    $0x38,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
sar    $0x3,%eax
and    $0x1,%eax
mov    %al,-0x11(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
sar    $0x4,%eax
and    $0x1,%eax
mov    %al,-0x12(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
sar    $0x5,%eax
and    $0x1,%eax
mov    %al,-0x13(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
sar    $0x6,%eax
and    $0x1,%eax
mov    %al,-0x14(%rbp)
mov    -0x10(%rbp),%rax
movzbl (%rax),%eax
sar    $0x7,%eax
and    $0x1,%eax
mov    %al,-0x15(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
and    $0x1,%eax
mov    %al,-0x16(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
sar    $0x1,%eax
and    $0x1,%eax
mov    %al,-0x17(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
sar    $0x2,%eax
and    $0x1,%eax
mov    %al,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
sar    $0x3,%eax
and    $0x1,%eax
mov    %al,-0x19(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
sar    $0x4,%eax
and    $0x1,%eax
mov    %al,-0x1a(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
sar    $0x5,%eax
and    $0x1,%eax
mov    %al,-0x1b(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
sar    $0x6,%eax
and    $0x1,%eax
mov    %al,-0x1c(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x1(%rax),%eax
sar    $0x7,%eax
and    $0x1,%eax
mov    %al,-0x1d(%rbp)
mov    0x2de7(%rip),%rax
mov    (%rax),%edi
lea    0xdfe(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dd0(%rip),%rax
mov    (%rax),%edi
lea    0xe03(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2db9(%rip),%rax
mov    (%rax),%edi
lea    0xe24(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2da2(%rip),%rax
mov    (%rax),%edi
lea    0xe26(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d8b(%rip),%rax
mov    (%rax),%edi
movzbl -0x11(%rbp),%edx
movzbl -0x12(%rbp),%ecx
movzbl -0x13(%rbp),%r8d
movzbl -0x14(%rbp),%r9d
movzbl -0x15(%rbp),%eax
lea    0xe34(%rip),%rsi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d5b(%rip),%rax
mov    (%rax),%edi
movzbl -0x16(%rbp),%edx
movzbl -0x17(%rbp),%ecx
movzbl -0x18(%rbp),%r8d
movzbl -0x19(%rbp),%r9d
movzbl -0x1a(%rbp),%ebx
movzbl -0x1b(%rbp),%r11d
movzbl -0x1c(%rbp),%r10d
movzbl -0x1d(%rbp),%eax
lea    0xe14(%rip),%rsi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d0f(%rip),%rax
mov    (%rax),%edi
lea    0xe2f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2cf8(%rip),%rax
mov    (%rax),%edi
lea    0xe31(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x38,%rsp
pop    %rbx
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_irlp>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movzbl (%rdi),%r12d
mov    %r12d,%eax
shr    $0x3,%eax
and    $0x1,%eax
mov    %eax,0x1c(%rsp)
mov    %r12d,%eax
shr    $0x4,%eax
and    $0x1,%eax
mov    %eax,0x14(%rsp)
mov    %r12d,%eax
shr    $0x5,%eax
and    $0x1,%eax
mov    %eax,0xc(%rsp)
mov    %r12d,%r14d
shr    $0x6,%r14d
and    $0x1,%r14d
shr    $0x7,%r12d
movzbl 0x1(%rdi),%r13d
mov    %r13d,%eax
and    $0x1,%eax
mov    %eax,0x18(%rsp)
mov    %r13d,%eax
shr    %eax
and    $0x1,%eax
mov    %eax,0x10(%rsp)
mov    %r13d,%eax
shr    $0x2,%eax
and    $0x1,%eax
mov    %eax,0x8(%rsp)
mov    %r13d,%r15d
shr    $0x3,%r15d
and    $0x1,%r15d
mov    %r13d,%eax
shr    $0x4,%eax
and    $0x1,%eax
mov    %rax,0x20(%rsp)
mov    %r13d,%ebp
shr    $0x5,%ebp
and    $0x1,%ebp
mov    %r13d,%ebx
shr    $0x6,%ebx
and    $0x1,%ebx
shr    $0x7,%r13d
mov    0x2e2a(%rip),%rax
mov    (%rax),%edi
lea    0xe41(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2e13(%rip),%rax
mov    (%rax),%edi
lea    0xe46(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2dfc(%rip),%rax
mov    (%rax),%edi
lea    0xe67(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2de5(%rip),%rax
mov    (%rax),%edi
lea    0xe69(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    0x2dce(%rip),%rax
mov    (%rax),%edi
sub    $0x8,%rsp
lea    0xe89(%rip),%rsi
mov    0x24(%rsp),%edx
mov    0x1c(%rsp),%ecx
mov    0x14(%rsp),%r8d
mov    %r14d,%r9d
xor    %eax,%eax
push   %r12
call   1030 <fprintf@plt>
add    $0x10,%rsp
mov    0x2d9d(%rip),%rax
mov    (%rax),%edi
lea    0xe7a(%rip),%rsi
mov    0x18(%rsp),%edx
mov    0x10(%rsp),%ecx
mov    0x8(%rsp),%r8d
mov    %r15d,%r9d
xor    %eax,%eax
push   %r13
push   %rbx
push   %rbp
push   0x38(%rsp)
call   1030 <fprintf@plt>
add    $0x20,%rsp
mov    0x2d6a(%rip),%rbx
mov    (%rbx),%edi
lea    0xe8a(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe93(%rip),%rsi
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [28 x i8] c"+------ From Radio ------+ \00"
@.str.1 = [56 x i8] c"+---------------------- To Radio --------------------+\0A\00"
@.str.2 = [25 x i8] c"+---+ DMTF +---+ COS + \00"
@.str.3 = [59 x i8] c"+ IRLP + IRLP + KEY + MUTE + PL + FAN + AUX4 + AUX5 +\0A\00"
@.str.4 = [30 x i8] c"| %u | %u | %u | %u | %u | \00"
@.str.5 = [67 x i8] c"| %u | %u | %u | %u | %u | %u | %u | %u |\0A\00"
@.str.6 = [25 x i8] c"+---+---+---+---+-----+ \00"
@.str.7 = [60 x i8] c"+------+------+------+------+------+------+------+------+\0A\0A\00"
define void @print_irlp(i8* %0) {
%2 = alloca i8*
%3 = alloca i8
%4 = alloca i8
%5 = alloca i8
%6 = alloca i8
%7 = alloca i8
%8 = alloca i8
%9 = alloca i8
%10 = alloca i8
%11 = alloca i8
%12 = alloca i8
%13 = alloca i8
%14 = alloca i8
%15 = alloca i8
store i8* %0, i8** %2
%16 = load i8*, i8** %2
%17 = getelementptr inbounds i8, i8* %16, i64 0
%18 = load i8, i8* %17
%19 = zext i8 %18 to i32
%20 = ashr i32 %19, 3
%21 = and i32 %20, 1
%22 = trunc i32 %21 to i8
store i8 %22, i8* %3
%23 = load i8*, i8** %2
%24 = getelementptr inbounds i8, i8* %23, i64 0
%25 = load i8, i8* %24
%26 = zext i8 %25 to i32
%27 = ashr i32 %26, 4
%28 = and i32 %27, 1
%29 = trunc i32 %28 to i8
store i8 %29, i8* %4
%30 = load i8*, i8** %2
%31 = getelementptr inbounds i8, i8* %30, i64 0
%32 = load i8, i8* %31
%33 = zext i8 %32 to i32
%34 = ashr i32 %33, 5
%35 = and i32 %34, 1
%36 = trunc i32 %35 to i8
store i8 %36, i8* %5
%37 = load i8*, i8** %2
%38 = getelementptr inbounds i8, i8* %37, i64 0
%39 = load i8, i8* %38
%40 = zext i8 %39 to i32
%41 = ashr i32 %40, 6
%42 = and i32 %41, 1
%43 = trunc i32 %42 to i8
store i8 %43, i8* %6
%44 = load i8*, i8** %2
%45 = getelementptr inbounds i8, i8* %44, i64 0
%46 = load i8, i8* %45
%47 = zext i8 %46 to i32
%48 = ashr i32 %47, 7
%49 = and i32 %48, 1
%50 = trunc i32 %49 to i8
store i8 %50, i8* %7
%51 = load i8*, i8** %2
%52 = getelementptr inbounds i8, i8* %51, i64 1
%53 = load i8, i8* %52
%54 = zext i8 %53 to i32
%55 = and i32 %54, 1
%56 = trunc i32 %55 to i8
store i8 %56, i8* %8
%57 = load i8*, i8** %2
%58 = getelementptr inbounds i8, i8* %57, i64 1
%59 = load i8, i8* %58
%60 = zext i8 %59 to i32
%61 = ashr i32 %60, 1
%62 = and i32 %61, 1
%63 = trunc i32 %62 to i8
store i8 %63, i8* %9
%64 = load i8*, i8** %2
%65 = getelementptr inbounds i8, i8* %64, i64 1
%66 = load i8, i8* %65
%67 = zext i8 %66 to i32
%68 = ashr i32 %67, 2
%69 = and i32 %68, 1
%70 = trunc i32 %69 to i8
store i8 %70, i8* %10
%71 = load i8*, i8** %2
%72 = getelementptr inbounds i8, i8* %71, i64 1
%73 = load i8, i8* %72
%74 = zext i8 %73 to i32
%75 = ashr i32 %74, 3
%76 = and i32 %75, 1
%77 = trunc i32 %76 to i8
store i8 %77, i8* %11
%78 = load i8*, i8** %2
%79 = getelementptr inbounds i8, i8* %78, i64 1
%80 = load i8, i8* %79
%81 = zext i8 %80 to i32
%82 = ashr i32 %81, 4
%83 = and i32 %82, 1
%84 = trunc i32 %83 to i8
store i8 %84, i8* %12
%85 = load i8*, i8** %2
%86 = getelementptr inbounds i8, i8* %85, i64 1
%87 = load i8, i8* %86
%88 = zext i8 %87 to i32
%89 = ashr i32 %88, 5
%90 = and i32 %89, 1
%91 = trunc i32 %90 to i8
store i8 %91, i8* %13
%92 = load i8*, i8** %2
%93 = getelementptr inbounds i8, i8* %92, i64 1
%94 = load i8, i8* %93
%95 = zext i8 %94 to i32
%96 = ashr i32 %95, 6
%97 = and i32 %96, 1
%98 = trunc i32 %97 to i8
store i8 %98, i8* %14
%99 = load i8*, i8** %2
%100 = getelementptr inbounds i8, i8* %99, i64 1
%101 = load i8, i8* %100
%102 = zext i8 %101 to i32
%103 = ashr i32 %102, 7
%104 = and i32 %103, 1
%105 = trunc i32 %104 to i8
store i8 %105, i8* %15
%106 = load i32, i32* @stderr
%107 = call i32 (i32, i8*, ...) @fprintf(i32 %106, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%108 = load i32, i32* @stderr
%109 = call i32 (i32, i8*, ...) @fprintf(i32 %108, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%110 = load i32, i32* @stderr
%111 = call i32 (i32, i8*, ...) @fprintf(i32 %110, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%112 = load i32, i32* @stderr
%113 = call i32 (i32, i8*, ...) @fprintf(i32 %112, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%114 = load i32, i32* @stderr
%115 = load i8, i8* %3
%116 = zext i8 %115 to i32
%117 = load i8, i8* %4
%118 = zext i8 %117 to i32
%119 = load i8, i8* %5
%120 = zext i8 %119 to i32
%121 = load i8, i8* %6
%122 = zext i8 %121 to i32
%123 = load i8, i8* %7
%124 = zext i8 %123 to i32
%125 = call i32 (i32, i8*, ...) @fprintf(i32 %114, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %116, i32 %118, i32 %120, i32 %122, i32 %124)
%126 = load i32, i32* @stderr
%127 = load i8, i8* %8
%128 = zext i8 %127 to i32
%129 = load i8, i8* %9
%130 = zext i8 %129 to i32
%131 = load i8, i8* %10
%132 = zext i8 %131 to i32
%133 = load i8, i8* %11
%134 = zext i8 %133 to i32
%135 = load i8, i8* %12
%136 = zext i8 %135 to i32
%137 = load i8, i8* %13
%138 = zext i8 %137 to i32
%139 = load i8, i8* %14
%140 = zext i8 %139 to i32
%141 = load i8, i8* %15
%142 = zext i8 %141 to i32
%143 = call i32 (i32, i8*, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0), i32 %128, i32 %130, i32 %132, i32 %134, i32 %136, i32 %138, i32 %140, i32 %142)
%144 = load i32, i32* @stderr
%145 = call i32 (i32, i8*, ...) @fprintf(i32 %144, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%146 = load i32, i32* @stderr
%147 = call i32 (i32, i8*, ...) @fprintf(i32 %146, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [28 x i8] c"+------ From Radio ------+ \00"
@.str.1 = [56 x i8] c"+---------------------- To Radio --------------------+\0A\00"
@.str.2 = [25 x i8] c"+---+ DMTF +---+ COS + \00"
@.str.3 = [59 x i8] c"+ IRLP + IRLP + KEY + MUTE + PL + FAN + AUX4 + AUX5 +\0A\00"
@.str.4 = [30 x i8] c"| %u | %u | %u | %u | %u | \00"
@.str.5 = [67 x i8] c"| %u | %u | %u | %u | %u | %u | %u | %u |\0A\00"
@.str.6 = [25 x i8] c"+---+---+---+---+-----+ \00"
@.str.7 = [60 x i8] c"+------+------+------+------+------+------+------+------+\0A\0A\00"
define void @print_irlp(i8* nocapture %0) {
%2 = load i8, i8* %0
%3 = lshr i8 %2, 3
%4 = and i8 %3, 1
%5 = lshr i8 %2, 4
%6 = and i8 %5, 1
%7 = lshr i8 %2, 5
%8 = and i8 %7, 1
%9 = lshr i8 %2, 6
%10 = and i8 %9, 1
%11 = lshr i8 %2, 7
%12 = getelementptr inbounds i8, i8* %0, i64 1
%13 = load i8, i8* %12
%14 = and i8 %13, 1
%15 = lshr i8 %13, 1
%16 = and i8 %15, 1
%17 = lshr i8 %13, 2
%18 = and i8 %17, 1
%19 = lshr i8 %13, 3
%20 = and i8 %19, 1
%21 = lshr i8 %13, 4
%22 = and i8 %21, 1
%23 = lshr i8 %13, 5
%24 = and i8 %23, 1
%25 = lshr i8 %13, 6
%26 = and i8 %25, 1
%27 = lshr i8 %13, 7
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.1, i64 0, i64 0))
%32 = load i32, i32* @stderr
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %32, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0))
%34 = load i32, i32* @stderr
%35 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.3, i64 0, i64 0))
%36 = load i32, i32* @stderr
%37 = zext i8 %4 to i32
%38 = zext i8 %6 to i32
%39 = zext i8 %8 to i32
%40 = zext i8 %10 to i32
%41 = zext i8 %11 to i32
%42 = tail call i32 (i32, i8*, ...) @fprintf(i32 %36, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %37, i32 %38, i32 %39, i32 %40, i32 %41)
%43 = load i32, i32* @stderr
%44 = zext i8 %14 to i32
%45 = zext i8 %16 to i32
%46 = zext i8 %18 to i32
%47 = zext i8 %20 to i32
%48 = zext i8 %22 to i32
%49 = zext i8 %24 to i32
%50 = zext i8 %26 to i32
%51 = zext i8 %27 to i32
%52 = tail call i32 (i32, i8*, ...) @fprintf(i32 %43, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.5, i64 0, i64 0), i32 %44, i32 %45, i32 %46, i32 %47, i32 %48, i32 %49, i32 %50, i32 %51)
%53 = load i32, i32* @stderr
%54 = tail call i32 (i32, i8*, ...) @fprintf(i32 %53, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0))
%55 = load i32, i32* @stderr
%56 = tail call i32 (i32, i8*, ...) @fprintf(i32 %55, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
ret void
}