#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 */
typedef int u_char;

/* Variables and functions */
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ putchar(char);
u_char *print_irq_map(u_char *p, u_char *q) {
  int i, j;
  u_char c;
  if (q <= p)
    goto err;
  printf("\t\tIRQ modes:");
  c = ' ';
  if (*p & 0x20) {
    printf(" Level");
    c = ',';
  }
  if (*p & 0x40) {
    printf("%c Pulse", c);
    c = ',';
  }
  if (*p & 0x80)
    printf("%c Shared", c);
  putchar('\n');
  if (*p & 0x10) {
    if (q - p < 3)
      goto err;
    i = ((*((p + 1) + 1) << 8) | *(p + 1));
    printf("\t\tIRQs: ");
    if (*p & 1)
      printf(" NMI");
    if (*p & 0x2)
      printf(" IOCK");
    if (*p & 0x4)
      printf(" BERR");
    if (*p & 0x8)
      printf(" VEND");
    for (j = 0; j < 16; j++)
      if (i & (1 << j))
        printf(" %d", j);
    putchar('\n');
    p += 3;
  } else {
    printf("\t\tIRQ level = %d\n", ((*p) & 0xF));
    p++;
  }
  return p;
err:
  printf("\tWrong length for IRQ sub-tuple\n");
  return p;
}


x86 assembly (clang, -O0):
<print_irq_map>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    -0x18(%rbp),%rax
cmp    -0x10(%rbp),%rax
ja     1143 <print_irq_map+0x23>
jmp    1344 <print_irq_map+0x224>
lea    0xeb6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x20,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     117f <print_irq_map+0x5f>
lea    0xe9c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2c,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     11a9 <print_irq_map+0x89>
mov    -0x24(%rbp),%esi
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x2c,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     11ce <print_irq_map+0xae>
mov    -0x24(%rbp),%esi
lea    0xe56(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1314 <print_irq_map+0x1f4>
mov    -0x18(%rbp),%rax
mov    -0x10(%rbp),%rcx
sub    %rcx,%rax
sar    $0x2,%rax
cmp    $0x3,%rax
jge    1208 <print_irq_map+0xe8>
jmp    1344 <print_irq_map+0x224>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
or     0x4(%rcx),%eax
mov    %eax,-0x1c(%rbp)
lea    0xe04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     124a <print_irq_map+0x12a>
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     126a <print_irq_map+0x14a>
lea    0xdd2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     128a <print_irq_map+0x16a>
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     12aa <print_irq_map+0x18a>
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x10,-0x20(%rbp)
jge    12f9 <print_irq_map+0x1d9>
mov    -0x1c(%rbp),%eax
mov    -0x20(%rbp),%ecx
mov    $0x1,%edx
shl    %cl,%edx
mov    %edx,%ecx
and    %ecx,%eax
cmp    $0x0,%eax
je     12e6 <print_irq_map+0x1c6>
mov    -0x20(%rbp),%esi
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    12eb <print_irq_map+0x1cb>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    12b1 <print_irq_map+0x191>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    -0x10(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x10(%rbp)
jmp    1337 <print_irq_map+0x217>
mov    -0x10(%rbp),%rax
mov    (%rax),%esi
and    $0xf,%esi
lea    0xd27(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
jmp    135a <print_irq_map+0x23a>
lea    0xd12(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_irq_map>:
push   %rbp
push   %r14
push   %rbx
mov    %rsi,%rbx
mov    %rdi,%r14
sub    %rdi,%rbx
jbe    11d9 <print_irq_map+0xa9>
lea    0xeb6(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
mov    $0x20,%esi
test   $0x20,%al
jne    119d <print_irq_map+0x6d>
test   $0x40,%al
jne    11b7 <print_irq_map+0x87>
test   $0x80,%al
je     1173 <print_irq_map+0x43>
lea    0xeb1(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    (%r14),%esi
test   $0x10,%sil
jne    11d3 <print_irq_map+0xa3>
and    $0xf,%esi
lea    0xebb(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x4,%r14
jmp    11e5 <print_irq_map+0xb5>
lea    0xe69(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
mov    $0x2c,%esi
test   $0x40,%al
je     1161 <print_irq_map+0x31>
lea    0xe56(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
mov    $0x2c,%esi
test   $0x80,%al
jne    1165 <print_irq_map+0x35>
jmp    1173 <print_irq_map+0x43>
cmp    $0xc,%rbx
jge    11ed <print_irq_map+0xbd>
lea    0xe7d(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rax
pop    %rbx
pop    %r14
pop    %rbp
ret
mov    0x4(%r14),%ebp
mov    0x8(%r14),%ebx
lea    0xe2b(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
test   $0x1,%al
jne    131b <print_irq_map+0x1eb>
test   $0x2,%al
jne    1334 <print_irq_map+0x204>
test   $0x4,%al
jne    134d <print_irq_map+0x21d>
test   $0x8,%al
jne    1366 <print_irq_map+0x236>
test   $0x1,%bpl
jne    137e <print_irq_map+0x24e>
test   $0x2,%bpl
jne    1398 <print_irq_map+0x268>
test   $0x4,%bpl
jne    13b5 <print_irq_map+0x285>
test   $0x8,%bpl
jne    13d2 <print_irq_map+0x2a2>
test   $0x10,%bpl
jne    13ef <print_irq_map+0x2bf>
test   $0x20,%bpl
je     1271 <print_irq_map+0x141>
lea    0xde2(%rip),%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
shl    $0x8,%ebx
test   $0x40,%bpl
je     128d <print_irq_map+0x15d>
lea    0xdc6(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
or     %ebp,%ebx
test   $0x80,%bpl
jne    1411 <print_irq_map+0x2e1>
test   $0x100,%ebx
jne    1430 <print_irq_map+0x300>
test   $0x200,%ebx
jne    144f <print_irq_map+0x31f>
test   $0x400,%ebx
jne    146e <print_irq_map+0x33e>
test   $0x800,%ebx
jne    148d <print_irq_map+0x35d>
test   $0x1000,%ebx
jne    14ac <print_irq_map+0x37c>
test   $0x2000,%ebx
jne    14cb <print_irq_map+0x39b>
test   $0x4000,%ebx
jne    14ea <print_irq_map+0x3ba>
test   $0x8000,%ebx
je     1308 <print_irq_map+0x1d8>
lea    0xd4b(%rip),%rdi
mov    $0xf,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0xc,%r14
jmp    11e5 <print_irq_map+0xb5>
lea    0xd0e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
test   $0x2,%al
je     1216 <print_irq_map+0xe6>
lea    0xcfa(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
test   $0x4,%al
je     121e <print_irq_map+0xee>
lea    0xce7(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    (%r14),%eax
test   $0x8,%al
je     1226 <print_irq_map+0xf6>
lea    0xcd4(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x1,%bpl
je     1230 <print_irq_map+0x100>
lea    0xcc2(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x2,%bpl
je     123a <print_irq_map+0x10a>
lea    0xca8(%rip),%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x4,%bpl
je     1244 <print_irq_map+0x114>
lea    0xc8b(%rip),%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x8,%bpl
je     124e <print_irq_map+0x11e>
lea    0xc6e(%rip),%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x10,%bpl
je     1258 <print_irq_map+0x128>
lea    0xc51(%rip),%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x20,%bpl
jne    125e <print_irq_map+0x12e>
jmp    1271 <print_irq_map+0x141>
lea    0xc2f(%rip),%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x100,%ebx
je     12a5 <print_irq_map+0x175>
lea    0xc10(%rip),%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x200,%ebx
je     12b1 <print_irq_map+0x181>
lea    0xbf1(%rip),%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x400,%ebx
je     12bd <print_irq_map+0x18d>
lea    0xbd2(%rip),%rdi
mov    $0xa,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x800,%ebx
je     12c9 <print_irq_map+0x199>
lea    0xbb3(%rip),%rdi
mov    $0xb,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x1000,%ebx
je     12d5 <print_irq_map+0x1a5>
lea    0xb94(%rip),%rdi
mov    $0xc,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x2000,%ebx
je     12e1 <print_irq_map+0x1b1>
lea    0xb75(%rip),%rdi
mov    $0xd,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x4000,%ebx
je     12ed <print_irq_map+0x1bd>
lea    0xb56(%rip),%rdi
mov    $0xe,%esi
xor    %eax,%eax
call   1050 <printf@plt>
test   $0x8000,%ebx
jne    12f5 <print_irq_map+0x1c5>
jmp    1308 <print_irq_map+0x1d8>

LLVM IR (-O0):
@.str = [13 x i8] c"\09\09IRQ modes:\00"
@.str.1 = [7 x i8] c" Level\00"
@.str.2 = [9 x i8] c"%c Pulse\00"
@.str.3 = [10 x i8] c"%c Shared\00"
@.str.4 = [9 x i8] c"\09\09IRQs: \00"
@.str.5 = [5 x i8] c" NMI\00"
@.str.6 = [6 x i8] c" IOCK\00"
@.str.7 = [6 x i8] c" BERR\00"
@.str.8 = [6 x i8] c" VEND\00"
@.str.9 = [4 x i8] c" %d\00"
@.str.10 = [18 x i8] c"\09\09IRQ level = %d\0A\00"
@.str.11 = [33 x i8] c"\09Wrong length for IRQ sub-tuple\0A\00"
define i32* @print_irq_map(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32* %0, i32** %4
store i32* %1, i32** %5
%9 = load i32*, i32** %5
%10 = load i32*, i32** %4
%11 = icmp ule i32* %9, %10
br i1 %11, label %12, label %13
12: ; preds = %2
br label %120
13: ; preds = %2
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
store i32 32, i32* %8
%15 = load i32*, i32** %4
%16 = load i32, i32* %15
%17 = and i32 %16, 32
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %13
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
store i32 44, i32* %8
br label %21
21: ; preds = %19, %13
%22 = load i32*, i32** %4
%23 = load i32, i32* %22
%24 = and i32 %23, 64
%25 = icmp ne i32 %24, 0
br i1 %25, label %26, label %29
26: ; preds = %21
%27 = load i32, i32* %8
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %27)
store i32 44, i32* %8
br label %29
29: ; preds = %26, %21
%30 = load i32*, i32** %4
%31 = load i32, i32* %30
%32 = and i32 %31, 128
%33 = icmp ne i32 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %29
%35 = load i32, i32* %8
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %35)
br label %37
37: ; preds = %34, %29
%38 = call i32 @putchar(i8 signext 10)
%39 = load i32*, i32** %4
%40 = load i32, i32* %39
%41 = and i32 %40, 16
%42 = icmp ne i32 %41, 0
br i1 %42, label %43, label %111
43: ; preds = %37
%44 = load i32*, i32** %5
%45 = load i32*, i32** %4
%46 = ptrtoint i32* %44 to i64
%47 = ptrtoint i32* %45 to i64
%48 = sub i64 %46, %47
%49 = sdiv exact i64 %48, 4
%50 = icmp slt i64 %49, 3
br i1 %50, label %51, label %52
51: ; preds = %43
br label %120
52: ; preds = %43
%53 = load i32*, i32** %4
%54 = getelementptr inbounds i32, i32* %53, i64 1
%55 = getelementptr inbounds i32, i32* %54, i64 1
%56 = load i32, i32* %55
%57 = shl i32 %56, 8
%58 = load i32*, i32** %4
%59 = getelementptr inbounds i32, i32* %58, i64 1
%60 = load i32, i32* %59
%61 = or i32 %57, %60
store i32 %61, i32* %6
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%63 = load i32*, i32** %4
%64 = load i32, i32* %63
%65 = and i32 %64, 1
%66 = icmp ne i32 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %52
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
br label %69
69: ; preds = %67, %52
%70 = load i32*, i32** %4
%71 = load i32, i32* %70
%72 = and i32 %71, 2
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %69
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
br label %76
76: ; preds = %74, %69
%77 = load i32*, i32** %4
%78 = load i32, i32* %77
%79 = and i32 %78, 4
%80 = icmp ne i32 %79, 0
br i1 %80, label %81, label %83
81: ; preds = %76
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %83
83: ; preds = %81, %76
%84 = load i32*, i32** %4
%85 = load i32, i32* %84
%86 = and i32 %85, 8
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %90
88: ; preds = %83
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %90
90: ; preds = %88, %83
store i32 0, i32* %7
br label %91
91: ; preds = %104, %90
%92 = load i32, i32* %7
%93 = icmp slt i32 %92, 16
br i1 %93, label %94, label %107
94: ; preds = %91
%95 = load i32, i32* %6
%96 = load i32, i32* %7
%97 = shl i32 1, %96
%98 = and i32 %95, %97
%99 = icmp ne i32 %98, 0
br i1 %99, label %100, label %103
100: ; preds = %94
%101 = load i32, i32* %7
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 %101)
br label %103
103: ; preds = %100, %94
br label %104
104: ; preds = %103
%105 = load i32, i32* %7
%106 = add nsw i32 %105, 1
store i32 %106, i32* %7
br label %91
107: ; preds = %91
%108 = call i32 @putchar(i8 signext 10)
%109 = load i32*, i32** %4
%110 = getelementptr inbounds i32, i32* %109, i64 3
store i32* %110, i32** %4
br label %118
111: ; preds = %37
%112 = load i32*, i32** %4
%113 = load i32, i32* %112
%114 = and i32 %113, 15
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %114)
%116 = load i32*, i32** %4
%117 = getelementptr inbounds i32, i32* %116, i32 1
store i32* %117, i32** %4
br label %118
118: ; preds = %111, %107
%119 = load i32*, i32** %4
store i32* %119, i32** %3
br label %123
120: ; preds = %51, %12
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.11, i64 0, i64 0))
%122 = load i32*, i32** %4
store i32* %122, i32** %3
br label %123
123: ; preds = %120, %118
%124 = load i32*, i32** %3
ret i32* %124
}

LLVM IR (-O2):
@.str = [13 x i8] c"\09\09IRQ modes:\00"
@.str.1 = [7 x i8] c" Level\00"
@.str.2 = [9 x i8] c"%c Pulse\00"
@.str.3 = [10 x i8] c"%c Shared\00"
@.str.4 = [9 x i8] c"\09\09IRQs: \00"
@.str.5 = [5 x i8] c" NMI\00"
@.str.6 = [6 x i8] c" IOCK\00"
@.str.7 = [6 x i8] c" BERR\00"
@.str.8 = [6 x i8] c" VEND\00"
@.str.9 = [4 x i8] c" %d\00"
@.str.10 = [18 x i8] c"\09\09IRQ level = %d\0A\00"
@str = [32 x i8] c"\09Wrong length for IRQ sub-tuple\00"
define i32* @print_irq_map(i32* %0, i32* %1) {
%3 = icmp ugt i32* %1, %0
br i1 %3, label %4, label %158
4: ; preds = %2
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* %0
%7 = and i32 %6, 32
%8 = icmp eq i32 %7, 0
br i1 %8, label %12, label %9
9: ; preds = %4
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
%11 = load i32, i32* %0
br label %12
12: ; preds = %9, %4
%13 = phi i32 [ %11, %9 ], [ %6, %4 ]
%14 = phi i32 [ 44, %9 ], [ 32, %4 ]
%15 = and i32 %13, 64
%16 = icmp eq i32 %15, 0
br i1 %16, label %20, label %17
17: ; preds = %12
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 %14)
%19 = load i32, i32* %0
br label %20
20: ; preds = %17, %12
%21 = phi i32 [ %19, %17 ], [ %13, %12 ]
%22 = phi i32 [ 44, %17 ], [ %14, %12 ]
%23 = and i32 %21, 128
%24 = icmp eq i32 %23, 0
br i1 %24, label %27, label %25
25: ; preds = %20
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i32 %22)
br label %27
27: ; preds = %25, %20
%28 = tail call i32 @putchar(i8 signext 10)
%29 = load i32, i32* %0
%30 = and i32 %29, 16
%31 = icmp eq i32 %30, 0
br i1 %31, label %154, label %32
32: ; preds = %27
%33 = ptrtoint i32* %1 to i64
%34 = ptrtoint i32* %0 to i64
%35 = sub i64 %33, %34
%36 = icmp slt i64 %35, 12
br i1 %36, label %158, label %37
37: ; preds = %32
%38 = getelementptr inbounds i32, i32* %0, i64 1
%39 = getelementptr inbounds i32, i32* %0, i64 2
%40 = load i32, i32* %39
%41 = shl i32 %40, 8
%42 = load i32, i32* %38
%43 = or i32 %41, %42
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
%45 = load i32, i32* %0
%46 = and i32 %45, 1
%47 = icmp eq i32 %46, 0
br i1 %47, label %51, label %48
48: ; preds = %37
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%50 = load i32, i32* %0
br label %51
51: ; preds = %48, %37
%52 = phi i32 [ %50, %48 ], [ %45, %37 ]
%53 = and i32 %52, 2
%54 = icmp eq i32 %53, 0
br i1 %54, label %58, label %55
55: ; preds = %51
%56 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%57 = load i32, i32* %0
br label %58
58: ; preds = %55, %51
%59 = phi i32 [ %57, %55 ], [ %52, %51 ]
%60 = and i32 %59, 4
%61 = icmp eq i32 %60, 0
br i1 %61, label %65, label %62
62: ; preds = %58
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
%64 = load i32, i32* %0
br label %65
65: ; preds = %62, %58
%66 = phi i32 [ %64, %62 ], [ %59, %58 ]
%67 = and i32 %66, 8
%68 = icmp eq i32 %67, 0
br i1 %68, label %71, label %69
69: ; preds = %65
%70 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
br label %71
71: ; preds = %69, %65
%72 = and i32 %42, 1
%73 = icmp eq i32 %72, 0
br i1 %73, label %76, label %74
74: ; preds = %71
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 0)
br label %76
76: ; preds = %71, %74
%77 = and i32 %42, 2
%78 = icmp eq i32 %77, 0
br i1 %78, label %81, label %79
79: ; preds = %76
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 1)
br label %81
81: ; preds = %79, %76
%82 = and i32 %42, 4
%83 = icmp eq i32 %82, 0
br i1 %83, label %86, label %84
84: ; preds = %81
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 2)
br label %86
86: ; preds = %84, %81
%87 = and i32 %42, 8
%88 = icmp eq i32 %87, 0
br i1 %88, label %91, label %89
89: ; preds = %86
%90 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 3)
br label %91
91: ; preds = %89, %86
%92 = and i32 %42, 16
%93 = icmp eq i32 %92, 0
br i1 %93, label %96, label %94
94: ; preds = %91
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 4)
br label %96
96: ; preds = %94, %91
%97 = and i32 %42, 32
%98 = icmp eq i32 %97, 0
br i1 %98, label %101, label %99
99: ; preds = %96
%100 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 5)
br label %101
101: ; preds = %99, %96
%102 = and i32 %42, 64
%103 = icmp eq i32 %102, 0
br i1 %103, label %106, label %104
104: ; preds = %101
%105 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 6)
br label %106
106: ; preds = %104, %101
%107 = and i32 %42, 128
%108 = icmp eq i32 %107, 0
br i1 %108, label %111, label %109
109: ; preds = %106
%110 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 7)
br label %111
111: ; preds = %109, %106
%112 = and i32 %43, 256
%113 = icmp eq i32 %112, 0
br i1 %113, label %116, label %114
114: ; preds = %111
%115 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 8)
br label %116
116: ; preds = %114, %111
%117 = and i32 %43, 512
%118 = icmp eq i32 %117, 0
br i1 %118, label %121, label %119
119: ; preds = %116
%120 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 9)
br label %121
121: ; preds = %119, %116
%122 = and i32 %43, 1024
%123 = icmp eq i32 %122, 0
br i1 %123, label %126, label %124
124: ; preds = %121
%125 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 10)
br label %126
126: ; preds = %124, %121
%127 = and i32 %43, 2048
%128 = icmp eq i32 %127, 0
br i1 %128, label %131, label %129
129: ; preds = %126
%130 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 11)
br label %131
131: ; preds = %129, %126
%132 = and i32 %43, 4096
%133 = icmp eq i32 %132, 0
br i1 %133, label %136, label %134
134: ; preds = %131
%135 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 12)
br label %136
136: ; preds = %134, %131
%137 = and i32 %43, 8192
%138 = icmp eq i32 %137, 0
br i1 %138, label %141, label %139
139: ; preds = %136
%140 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 13)
br label %141
141: ; preds = %139, %136
%142 = and i32 %43, 16384
%143 = icmp eq i32 %142, 0
br i1 %143, label %146, label %144
144: ; preds = %141
%145 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 14)
br label %146
146: ; preds = %144, %141
%147 = and i32 %43, 32768
%148 = icmp eq i32 %147, 0
br i1 %148, label %151, label %149
149: ; preds = %146
%150 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i32 15)
br label %151
151: ; preds = %149, %146
%152 = tail call i32 @putchar(i8 signext 10)
%153 = getelementptr inbounds i32, i32* %0, i64 3
br label %160
154: ; preds = %27
%155 = and i32 %29, 15
%156 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.10, i64 0, i64 0), i32 %155)
%157 = getelementptr inbounds i32, i32* %0, i64 1
br label %160
158: ; preds = %32, %2
%159 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
br label %160
160: ; preds = %151, %154, %158
%161 = phi i32* [ %0, %158 ], [ %153, %151 ], [ %157, %154 ]
ret i32* %161
}