#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);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ stderr;
int decode_block_dev_chars_vpd(unsigned char *buff, int len) {
  unsigned int u;
  if (len < 64) {
    fprintf(stderr,
            "Block device capabilities VPD page length too "
            "short=%d\n",
            len);
    return 97;
  }
  u = (buff[4] << 8) | buff[5];
  if (0 == u)
    printf("  Medium rotation rate is not reported\n");
  else if (1 == u)
    printf("  Non-rotating medium (e.g. solid state)\n");
  else if ((u < 0x401) || (0xffff == u))
    printf("  Reserved [0x%x]\n", u);
  else
    printf("  Nominal rotation rate: %d rpm\n", u);
  u = buff[7] & 0xf;
  printf("  Product type=%d\n", buff[6]);
  printf("  WABEREQ=%d\n", (buff[7] >> 6) & 0x3);
  printf("  WACEREQ=%d\n", (buff[7] >> 4) & 0x3);
  printf("  Nominal form factor");
  switch (u) {
  case 0:
    printf(" not reported\n");
    break;
  case 1:
    printf(": 5.25 inch\n");
    break;
  case 2:
    printf(": 3.5 inch\n");
    break;
  case 3:
    printf(": 2.5 inch\n");
    break;
  case 4:
    printf(": 1.8 inch\n");
    break;
  case 5:
    printf(": less then 1.8 inch\n");
    break;
  default:
    printf(": reserved\n");
    break;
  }
  printf("  FUAB=%d\n", buff[8] & 0x2);
  printf("  VBULS=%d\n", buff[8] & 0x1);
  return 0;
}


x86 assembly (clang, -O0):
<decode_block_dev_chars_vpd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
cmpl   $0x40,-0x14(%rbp)
jge    115d <decode_block_dev_chars_vpd+0x3d>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
mov    -0x14(%rbp),%edx
lea    0xecc(%rip),%rsi
call   1040 <fprintf@plt>
movl   $0x61,-0x4(%rbp)
jmp    134b <decode_block_dev_chars_vpd+0x22b>
mov    -0x10(%rbp),%rax
movzbl 0x4(%rax),%eax
shl    $0x8,%eax
mov    -0x10(%rbp),%rcx
movzbl 0x5(%rcx),%ecx
or     %ecx,%eax
mov    %eax,-0x18(%rbp)
xor    %eax,%eax
cmp    -0x18(%rbp),%eax
jne    1193 <decode_block_dev_chars_vpd+0x73>
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1200 <decode_block_dev_chars_vpd+0xe0>
mov    $0x1,%eax
cmp    -0x18(%rbp),%eax
jne    11b4 <decode_block_dev_chars_vpd+0x94>
lea    0xed0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11fb <decode_block_dev_chars_vpd+0xdb>
cmpl   $0x401,-0x18(%rbp)
jb     11cf <decode_block_dev_chars_vpd+0xaf>
mov    $0xffff,%eax
cmp    -0x18(%rbp),%eax
jne    11e5 <decode_block_dev_chars_vpd+0xc5>
mov    -0x18(%rbp),%esi
lea    0xec9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11f6 <decode_block_dev_chars_vpd+0xd6>
mov    -0x18(%rbp),%esi
lea    0xec6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    11fb <decode_block_dev_chars_vpd+0xdb>
jmp    1200 <decode_block_dev_chars_vpd+0xe0>
mov    -0x10(%rbp),%rax
movzbl 0x7(%rax),%eax
and    $0xf,%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rax
movzbl 0x6(%rax),%esi
lea    0xeb9(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x21(%rbp)
call   1030 <printf@plt>
mov    -0x21(%rbp),%al
mov    -0x10(%rbp),%rcx
movzbl 0x7(%rcx),%esi
shr    $0x6,%esi
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0x21(%rbp),%al
mov    -0x10(%rbp),%rcx
movzbl 0x7(%rcx),%esi
shr    $0x4,%esi
and    $0x3,%esi
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x21(%rbp),%al
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
mov    -0x18(%rbp),%eax
mov    %rax,-0x20(%rbp)
sub    $0x5,%rax
ja     1304 <decode_block_dev_chars_vpd+0x1e4>
mov    -0x20(%rbp),%rax
lea    0xd77(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xdd0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1312 <decode_block_dev_chars_vpd+0x1f2>
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1312 <decode_block_dev_chars_vpd+0x1f2>
lea    0xe69(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1312 <decode_block_dev_chars_vpd+0x1f2>
lea    0xe62(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1312 <decode_block_dev_chars_vpd+0x1f2>
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1312 <decode_block_dev_chars_vpd+0x1f2>
lea    0xe54(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1312 <decode_block_dev_chars_vpd+0x1f2>
lea    0xe57(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%esi
and    $0x2,%esi
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rax
movzbl 0x8(%rax),%esi
and    $0x1,%esi
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<decode_block_dev_chars_vpd>:
push   %rbp
push   %r14
push   %rbx
cmp    $0x3f,%esi
jg     115b <decode_block_dev_chars_vpd+0x2b>
mov    %esi,%edx
mov    0x2e9e(%rip),%rax
mov    (%rax),%edi
lea    0xeb5(%rip),%rsi
call   1050 <fprintf@plt>
mov    $0x61,%r14d
jmp    1258 <decode_block_dev_chars_vpd+0x128>
mov    %rdi,%rbx
movzwl 0x4(%rdi),%esi
shl    $0x10,%esi
bswap  %esi
cmp    $0x1,%si
je     1180 <decode_block_dev_chars_vpd+0x50>
test   %si,%si
jne    118e <decode_block_dev_chars_vpd+0x5e>
lea    0xfc5(%rip),%rdi
call   1030 <puts@plt>
jmp    11b5 <decode_block_dev_chars_vpd+0x85>
lea    0xf8e(%rip),%rdi
call   1030 <puts@plt>
jmp    11b5 <decode_block_dev_chars_vpd+0x85>
cmp    $0x401,%esi
jb     11a7 <decode_block_dev_chars_vpd+0x77>
cmp    $0xffff,%esi
je     11a7 <decode_block_dev_chars_vpd+0x77>
lea    0xea6(%rip),%rdi
jmp    11ae <decode_block_dev_chars_vpd+0x7e>
lea    0xe8a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movzbl 0x7(%rbx),%ebp
and    $0xf,%ebp
movzbl 0x6(%rbx),%esi
lea    0xea5(%rip),%rdi
xor    %r14d,%r14d
xor    %eax,%eax
call   1040 <printf@plt>
movzbl 0x7(%rbx),%esi
shr    $0x6,%esi
lea    0xea0(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movzbl 0x7(%rbx),%esi
shr    $0x4,%esi
and    $0x3,%esi
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe96(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x5,%bpl
ja     1222 <decode_block_dev_chars_vpd+0xf2>
lea    0xf4f(%rip),%rax
movslq (%rax,%rbp,4),%rdi
add    %rax,%rdi
jmp    1229 <decode_block_dev_chars_vpd+0xf9>
lea    0xee1(%rip),%rdi
call   1030 <puts@plt>
movzbl 0x8(%rbx),%esi
and    $0x2,%esi
lea    0xe75(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
movzbl 0x8(%rbx),%esi
and    $0x1,%esi
lea    0xe6b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [56 x i8] c"Block device capabilities VPD page length too short=%d\0A\00"
@.str.1 = [40 x i8] c" Medium rotation rate is not reported\0A\00"
@.str.2 = [42 x i8] c" Non-rotating medium (e.g. solid state)\0A\00"
@.str.3 = [19 x i8] c" Reserved [0x%x]\0A\00"
@.str.4 = [33 x i8] c" Nominal rotation rate: %d rpm\0A\00"
@.str.5 = [19 x i8] c" Product type=%d\0A\00"
@.str.6 = [14 x i8] c" WABEREQ=%d\0A\00"
@.str.7 = [14 x i8] c" WACEREQ=%d\0A\00"
@.str.8 = [22 x i8] c" Nominal form factor\00"
@.str.9 = [15 x i8] c" not reported\0A\00"
@.str.10 = [13 x i8] c": 5.25 inch\0A\00"
@.str.11 = [12 x i8] c": 3.5 inch\0A\00"
@.str.12 = [12 x i8] c": 2.5 inch\0A\00"
@.str.13 = [12 x i8] c": 1.8 inch\0A\00"
@.str.14 = [22 x i8] c": less then 1.8 inch\0A\00"
@.str.15 = [12 x i8] c": reserved\0A\00"
@.str.16 = [11 x i8] c" FUAB=%d\0A\00"
@.str.17 = [12 x i8] c" VBULS=%d\0A\00"
define i32 @decode_block_dev_chars_vpd(i8* %0, i32 %1) {
%3 = alloca i32
%4 = alloca i8*
%5 = alloca i32
%6 = alloca i32
store i8* %0, i8** %4
store i32 %1, i32* %5
%7 = load i32, i32* %5
%8 = icmp slt i32 %7, 64
br i1 %8, label %9, label %13
9: ; preds = %2
%10 = load i32, i32* @stderr
%11 = load i32, i32* %5
%12 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %11)
store i32 97, i32* %3
br label %101
13: ; preds = %2
%14 = load i8*, i8** %4
%15 = getelementptr inbounds i8, i8* %14, i64 4
%16 = load i8, i8* %15
%17 = zext i8 %16 to i32
%18 = shl i32 %17, 8
%19 = load i8*, i8** %4
%20 = getelementptr inbounds i8, i8* %19, i64 5
%21 = load i8, i8* %20
%22 = zext i8 %21 to i32
%23 = or i32 %18, %22
store i32 %23, i32* %6
%24 = load i32, i32* %6
%25 = icmp eq i32 0, %24
br i1 %25, label %26, label %28
26: ; preds = %13
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.1, i64 0, i64 0))
br label %47
28: ; preds = %13
%29 = load i32, i32* %6
%30 = icmp eq i32 1, %29
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0))
br label %46
33: ; preds = %28
%34 = load i32, i32* %6
%35 = icmp ult i32 %34, 1025
br i1 %35, label %39, label %36
36: ; preds = %33
%37 = load i32, i32* %6
%38 = icmp eq i32 65535, %37
br i1 %38, label %39, label %42
39: ; preds = %36, %33
%40 = load i32, i32* %6
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %40)
br label %45
42: ; preds = %36
%43 = load i32, i32* %6
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %43)
br label %45
45: ; preds = %42, %39
br label %46
46: ; preds = %45, %31
br label %47
47: ; preds = %46, %26
%48 = load i8*, i8** %4
%49 = getelementptr inbounds i8, i8* %48, i64 7
%50 = load i8, i8* %49
%51 = zext i8 %50 to i32
%52 = and i32 %51, 15
store i32 %52, i32* %6
%53 = load i8*, i8** %4
%54 = getelementptr inbounds i8, i8* %53, i64 6
%55 = load i8, i8* %54
%56 = zext i8 %55 to i32
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %56)
%58 = load i8*, i8** %4
%59 = getelementptr inbounds i8, i8* %58, i64 7
%60 = load i8, i8* %59
%61 = zext i8 %60 to i32
%62 = ashr i32 %61, 6
%63 = and i32 %62, 3
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %63)
%65 = load i8*, i8** %4
%66 = getelementptr inbounds i8, i8* %65, i64 7
%67 = load i8, i8* %66
%68 = zext i8 %67 to i32
%69 = ashr i32 %68, 4
%70 = and i32 %69, 3
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %70)
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%73 = load i32, i32* %6
switch i32 %73, label %86 [
i32 0, label %74
i32 1, label %76
i32 2, label %78
i32 3, label %80
i32 4, label %82
i32 5, label %84
]
74: ; preds = %47
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
br label %88
76: ; preds = %47
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.10, i64 0, i64 0))
br label %88
78: ; preds = %47
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.11, i64 0, i64 0))
br label %88
80: ; preds = %47
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.12, i64 0, i64 0))
br label %88
82: ; preds = %47
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.13, i64 0, i64 0))
br label %88
84: ; preds = %47
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
br label %88
86: ; preds = %47
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0))
br label %88
88: ; preds = %86, %84, %82, %80, %78, %76, %74
%89 = load i8*, i8** %4
%90 = getelementptr inbounds i8, i8* %89, i64 8
%91 = load i8, i8* %90
%92 = zext i8 %91 to i32
%93 = and i32 %92, 2
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %93)
%95 = load i8*, i8** %4
%96 = getelementptr inbounds i8, i8* %95, i64 8
%97 = load i8, i8* %96
%98 = zext i8 %97 to i32
%99 = and i32 %98, 1
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i32 %99)
store i32 0, i32* %3
br label %101
101: ; preds = %88, %9
%102 = load i32, i32* %3
ret i32 %102
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [56 x i8] c"Block device capabilities VPD page length too short=%d\0A\00"
@.str.3 = [19 x i8] c" Reserved [0x%x]\0A\00"
@.str.4 = [33 x i8] c" Nominal rotation rate: %d rpm\0A\00"
@.str.5 = [19 x i8] c" Product type=%d\0A\00"
@.str.6 = [14 x i8] c" WABEREQ=%d\0A\00"
@.str.7 = [14 x i8] c" WACEREQ=%d\0A\00"
@.str.8 = [22 x i8] c" Nominal form factor\00"
@.str.16 = [11 x i8] c" FUAB=%d\0A\00"
@.str.17 = [12 x i8] c" VBULS=%d\0A\00"
@str = [21 x i8] c": less then 1.8 inch\00"
@str.18 = [11 x i8] c": 1.8 inch\00"
@str.19 = [11 x i8] c": 2.5 inch\00"
@str.20 = [11 x i8] c": 3.5 inch\00"
@str.21 = [12 x i8] c": 5.25 inch\00"
@str.22 = [14 x i8] c" not reported\00"
@str.23 = [11 x i8] c": reserved\00"
@str.24 = [41 x i8] c" Non-rotating medium (e.g. solid state)\00"
@str.25 = [39 x i8] c" Medium rotation rate is not reported\00"
@reltable.decode_block_dev_chars_vpd = [6 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @str.22 to i64), i64 ptrtoint ([6 x i32]* @reltable.decode_block_dev_chars_vpd to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([12 x i8]* @str.21 to i64), i64 ptrtoint ([6 x i32]* @reltable.decode_block_dev_chars_vpd to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @str.20 to i64), i64 ptrtoint ([6 x i32]* @reltable.decode_block_dev_chars_vpd to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @str.19 to i64), i64 ptrtoint ([6 x i32]* @reltable.decode_block_dev_chars_vpd to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([11 x i8]* @str.18 to i64), i64 ptrtoint ([6 x i32]* @reltable.decode_block_dev_chars_vpd to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([21 x i8]* @str to i64), i64 ptrtoint ([6 x i32]* @reltable.decode_block_dev_chars_vpd to i64)) to i32)]
define i32 @decode_block_dev_chars_vpd(i8* nocapture %0, i32 %1) {
%3 = icmp slt i32 %1, 64
br i1 %3, label %4, label %7
4: ; preds = %2
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str, i64 0, i64 0), i32 %1)
br label %64
7: ; preds = %2
%8 = getelementptr inbounds i8, i8* %0, i64 4
%9 = load i8, i8* %8
%10 = zext i8 %9 to i32
%11 = shl nuw nsw i32 %10, 8
%12 = getelementptr inbounds i8, i8* %0, i64 5
%13 = load i8, i8* %12
%14 = zext i8 %13 to i32
%15 = or i32 %11, %14
%16 = trunc i32 %15 to i16
switch i16 %16, label %21 [
i16 0, label %17
i16 1, label %19
]
17: ; preds = %7
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.25, i64 0, i64 0))
br label %29
19: ; preds = %7
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @str.24, i64 0, i64 0))
br label %29
21: ; preds = %7
%22 = icmp ult i32 %15, 1025
%23 = icmp eq i32 %15, 65535
%24 = or i1 %22, %23
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.3, i64 0, i64 0), i32 %15)
br label %29
27: ; preds = %21
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i32 %15)
br label %29
29: ; preds = %19, %27, %25, %17
%30 = getelementptr inbounds i8, i8* %0, i64 7
%31 = load i8, i8* %30
%32 = and i8 %31, 15
%33 = getelementptr inbounds i8, i8* %0, i64 6
%34 = load i8, i8* %33
%35 = zext i8 %34 to i32
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), i32 %35)
%37 = load i8, i8* %30
%38 = lshr i8 %37, 6
%39 = zext i8 %38 to i32
%40 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0), i32 %39)
%41 = load i8, i8* %30
%42 = lshr i8 %41, 4
%43 = and i8 %42, 3
%44 = zext i8 %43 to i32
%45 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i32 %44)
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.8, i64 0, i64 0))
%47 = icmp ult i8 %32, 6
br i1 %47, label %48, label %52
48: ; preds = %29
%49 = zext i8 %32 to i64
%50 = shl i64 %49, 2
%51 = call i8* @llvm.load.relative.i64(i8* bitcast ([6 x i32]* @reltable.decode_block_dev_chars_vpd to i8*), i64 %50)
br label %52
52: ; preds = %29, %48
%53 = phi i8* [ %51, %48 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @str.23, i64 0, i64 0), %29 ]
%54 = tail call i32 @puts(i8* dereferenceable(1) %53)
%55 = getelementptr inbounds i8, i8* %0, i64 8
%56 = load i8, i8* %55
%57 = and i8 %56, 2
%58 = zext i8 %57 to i32
%59 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.16, i64 0, i64 0), i32 %58)
%60 = load i8, i8* %55
%61 = and i8 %60, 1
%62 = zext i8 %61 to i32
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), i32 %62)
br label %64
64: ; preds = %52, %4
%65 = phi i32 [ 97, %4 ], [ 0, %52 ]
ret i32 %65
}