#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 /*<<< orphan*/ buf;

/* Variables and functions */
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ dump_app(char *, unsigned char *, unsigned char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
scalar_t__ le2int(unsigned char *);
scalar_t__ memcmp(unsigned char *, char *, int);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, unsigned char, unsigned char, unsigned char,
                          unsigned char, unsigned char, unsigned char,
                          unsigned char, unsigned char);
int /*<<< orphan*/ read(int, unsigned char *, int);
int /*<<< orphan*/ stderr;
int main(int argc, char *argv[]) {
  int fd;
  unsigned char buf[1024 * 1024];
  unsigned char *p;
  if (argc != 2) {
    fprintf(stderr, "Usage: flashsplit flash.bin\n");
    return 1;
  }
  fd = open(argv[1], O_RDONLY);
  if (fd < 0) {
    fprintf(stderr, "Can not open %s\n", argv[1]);
    return 1;
  }
  read(fd, buf, sizeof(buf));
  close(fd);
  p = buf + 0xffe00;
  while (le2int(p) != 0) {
    if (memcmp(p, "hslfksid", 8) == 0) {
      dump_app("diskmode", p, buf);
    } else if (memcmp(p, "hslfgaid", 8) == 0) {
      dump_app("diagmode", p, buf);
    } else if (memcmp(p, "hslfogol", 8) == 0) {
      dump_app("logo", p, buf);
    } else if (memcmp(p, "hslfnacs", 8) == 0) {
      dump_app("diskscan", p, buf);
    } else if (memcmp(p, "hslfscmv", 8) == 0) {
      dump_app("vmcs", p, buf);
    } else {
      printf("Unknown image type - %c%c%c%c%c%c%c%c\n", p[3], p[2], p[1], p[0],
             p[7], p[6], p[5], p[4]);
    }
    p += 0x28;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100040,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
je     11c6 <main+0x46>
mov    0x2e2e(%rip),%rax
mov    (%rax),%edi
lea    0xe4d(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1459 <main+0x2d9>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e13(%rip),%rax
mov    (%rax),%esi
call   10a0 <open@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jge    1214 <main+0x94>
mov    0x2de8(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdx
lea    0xe1c(%rip),%rsi
mov    $0x0,%al
call   1070 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    1459 <main+0x2d9>
mov    -0x14(%rbp),%edi
lea    -0x100020(%rbp),%rsi
mov    $0x100000,%edx
call   1050 <read@plt>
mov    -0x14(%rbp),%edi
call   1040 <close@plt>
lea    -0x100020(%rbp),%rax
add    $0xffe00,%rax
mov    %rax,-0x100028(%rbp)
mov    -0x100028(%rbp),%rdi
call   1080 <le2int@plt>
cmp    $0x0,%rax
je     1452 <main+0x2d2>
mov    -0x100028(%rbp),%rdi
lea    0xdc6(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
jne    129b <main+0x11b>
mov    -0x100028(%rbp),%rsi
lea    -0x100020(%rbp),%rdx
lea    0xda6(%rip),%rdi
call   1090 <dump_app@plt>
jmp    143b <main+0x2bb>
mov    -0x100028(%rbp),%rdi
lea    0xd97(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
jne    12dc <main+0x15c>
mov    -0x100028(%rbp),%rsi
lea    -0x100020(%rbp),%rdx
lea    0xd77(%rip),%rdi
call   1090 <dump_app@plt>
jmp    1436 <main+0x2b6>
mov    -0x100028(%rbp),%rdi
lea    0xd68(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
jne    131d <main+0x19d>
mov    -0x100028(%rbp),%rsi
lea    -0x100020(%rbp),%rdx
lea    0xd48(%rip),%rdi
call   1090 <dump_app@plt>
jmp    1431 <main+0x2b1>
mov    -0x100028(%rbp),%rdi
lea    0xd35(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
jne    135e <main+0x1de>
mov    -0x100028(%rbp),%rsi
lea    -0x100020(%rbp),%rdx
lea    0xd15(%rip),%rdi
call   1090 <dump_app@plt>
jmp    142c <main+0x2ac>
mov    -0x100028(%rbp),%rdi
lea    0xd06(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
cmp    $0x0,%rax
jne    139f <main+0x21f>
mov    -0x100028(%rbp),%rsi
lea    -0x100020(%rbp),%rdx
lea    0xce6(%rip),%rdi
call   1090 <dump_app@plt>
jmp    1427 <main+0x2a7>
mov    -0x100028(%rbp),%rax
mov    0x3(%rax),%sil
mov    -0x100028(%rbp),%rax
mov    0x2(%rax),%dl
mov    -0x100028(%rbp),%rax
mov    0x1(%rax),%cl
mov    -0x100028(%rbp),%rax
mov    (%rax),%r8b
mov    -0x100028(%rbp),%rax
mov    0x7(%rax),%r9b
mov    -0x100028(%rbp),%rax
mov    0x6(%rax),%r11b
mov    -0x100028(%rbp),%rax
mov    0x5(%rax),%r10b
mov    -0x100028(%rbp),%rax
lea    0xc89(%rip),%rdi
movzbl %sil,%esi
movzbl %dl,%edx
movzbl %cl,%ecx
movzbl %r8b,%r8d
movzbl %r9b,%r9d
movzbl %r11b,%r11d
mov    %r11d,(%rsp)
movzbl %r10b,%r10d
mov    %r10d,0x8(%rsp)
movzbl 0x4(%rax),%eax
mov    %eax,0x10(%rsp)
call   1030 <printf@plt>
jmp    142c <main+0x2ac>
jmp    1431 <main+0x2b1>
jmp    1436 <main+0x2b6>
jmp    143b <main+0x2bb>
mov    -0x100028(%rbp),%rax
add    $0x28,%rax
mov    %rax,-0x100028(%rbp)
jmp    1244 <main+0xc4>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x100040,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x100008,%rsp
cmp    $0x2,%edi
jne    1342 <main+0x1c2>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
mov    0x2e40(%rip),%rax
mov    (%rax),%esi
call   10a0 <open@plt>
test   %eax,%eax
js     135b <main+0x1db>
mov    %eax,%ebp
mov    %rsp,%rsi
mov    %eax,%edi
mov    $0x100000,%edx
call   1050 <read@plt>
mov    %ebp,%edi
call   1040 <close@plt>
lea    0xffe00(%rsp),%rbx
mov    %rbx,%rdi
call   1080 <le2int@plt>
xor    %r14d,%r14d
test   %rax,%rax
je     137c <main+0x1fc>
lea    0xe3c(%rip),%r15
lea    0xe3e(%rip),%rbp
mov    %rsp,%r12
lea    0xe3d(%rip),%r13
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     12e0 <main+0x160>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     12f0 <main+0x170>
mov    %rbx,%rdi
lea    0xe06(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     12f9 <main+0x179>
mov    %rbx,%rdi
lea    0xdf7(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     1302 <main+0x182>
mov    %rbx,%rdi
lea    0xdec(%rip),%rsi
mov    $0x8,%edx
call   1060 <memcmp@plt>
test   %rax,%rax
je     130b <main+0x18b>
movzbl 0x3(%rbx),%esi
movzbl 0x2(%rbx),%edx
movzbl 0x1(%rbx),%ecx
movzbl (%rbx),%r8d
movzbl 0x7(%rbx),%r9d
movzbl 0x6(%rbx),%r10d
mov    %rbp,%r11
movzbl 0x5(%rbx),%ebp
movzbl 0x4(%rbx),%eax
sub    $0x8,%rsp
lea    0xdbb(%rip),%rdi
push   %rax
push   %rbp
mov    %r11,%rbp
push   %r10
call   1030 <printf@plt>
add    $0x20,%rsp
jmp    132b <main+0x1ab>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
jmp    1320 <main+0x1a0>
cs nopw 0x0(%rax,%rax,1)
nop
lea    0xd52(%rip),%rdi
jmp    1320 <main+0x1a0>
lea    0xd5b(%rip),%rdi
jmp    1320 <main+0x1a0>
lea    0xd60(%rip),%rdi
jmp    1320 <main+0x1a0>
lea    0xd69(%rip),%rdi
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    %rbx,%rsi
mov    %r12,%rdx
call   1090 <dump_app@plt>
add    $0x28,%rbx
mov    %rbx,%rdi
call   1080 <le2int@plt>
test   %rax,%rax
jne    1210 <main+0x90>
jmp    137c <main+0x1fc>
mov    0x2c8f(%rip),%rax
mov    (%rax),%edi
lea    0xcae(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
jmp    1376 <main+0x1f6>
mov    0x2c76(%rip),%rax
mov    (%rax),%edi
mov    0x8(%rbx),%rdx
lea    0xcae(%rip),%rsi
xor    %eax,%eax
call   1070 <fprintf@plt>
mov    $0x1,%r14d
mov    %r14d,%eax
add    $0x100008,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [29 x i8] c"Usage: flashsplit flash.bin\0A\00"
@O_RDONLY = global i32 0
@.str.1 = [17 x i8] c"Can not open %s\0A\00"
@.str.2 = [9 x i8] c"hslfksid\00"
@.str.3 = [9 x i8] c"diskmode\00"
@.str.4 = [9 x i8] c"hslfgaid\00"
@.str.5 = [9 x i8] c"diagmode\00"
@.str.6 = [9 x i8] c"hslfogol\00"
@.str.7 = [5 x i8] c"logo\00"
@.str.8 = [9 x i8] c"hslfnacs\00"
@.str.9 = [9 x i8] c"diskscan\00"
@.str.10 = [9 x i8] c"hslfscmv\00"
@.str.11 = [5 x i8] c"vmcs\00"
@.str.12 = [39 x i8] c"Unknown image type - %c%c%c%c%c%c%c%c\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [1048576 x i8]
%8 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%9 = load i32, i32* %4
%10 = icmp ne i32 %9, 2
br i1 %10, label %11, label %14
11: ; preds = %2
%12 = load i32, i32* @stderr
%13 = call i32 (i32, i8*, ...) @fprintf(i32 %12, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
store i32 1, i32* %3
br label %114
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 1
%17 = load i8*, i8** %16
%18 = load i32, i32* @O_RDONLY
%19 = call i32 @open(i8* %17, i32 %18)
store i32 %19, i32* %6
%20 = load i32, i32* %6
%21 = icmp slt i32 %20, 0
br i1 %21, label %22, label %28
22: ; preds = %14
%23 = load i32, i32* @stderr
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 1
%26 = load i8*, i8** %25
%27 = call i32 (i32, i8*, ...) @fprintf(i32 %23, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %26)
store i32 1, i32* %3
br label %114
28: ; preds = %14
%29 = load i32, i32* %6
%30 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %7, i64 0, i64 0
%31 = call i32 @read(i32 %29, i8* %30, i32 1048576)
%32 = load i32, i32* %6
%33 = call i32 @close(i32 %32)
%34 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %7, i64 0, i64 0
%35 = getelementptr inbounds i8, i8* %34, i64 1048064
store i8* %35, i8** %8
br label %36
36: ; preds = %110, %28
%37 = load i8*, i8** %8
%38 = call i64 @le2int(i8* %37)
%39 = icmp ne i64 %38, 0
br i1 %39, label %40, label %113
40: ; preds = %36
%41 = load i8*, i8** %8
%42 = call i64 @memcmp(i8* %41, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 8)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %48
44: ; preds = %40
%45 = load i8*, i8** %8
%46 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %7, i64 0, i64 0
%47 = call i32 @dump_app(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %45, i8* %46)
br label %110
48: ; preds = %40
%49 = load i8*, i8** %8
%50 = call i64 @memcmp(i8* %49, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 8)
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %56
52: ; preds = %48
%53 = load i8*, i8** %8
%54 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %7, i64 0, i64 0
%55 = call i32 @dump_app(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %53, i8* %54)
br label %109
56: ; preds = %48
%57 = load i8*, i8** %8
%58 = call i64 @memcmp(i8* %57, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 8)
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %64
60: ; preds = %56
%61 = load i8*, i8** %8
%62 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %7, i64 0, i64 0
%63 = call i32 @dump_app(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %61, i8* %62)
br label %108
64: ; preds = %56
%65 = load i8*, i8** %8
%66 = call i64 @memcmp(i8* %65, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 8)
%67 = icmp eq i64 %66, 0
br i1 %67, label %68, label %72
68: ; preds = %64
%69 = load i8*, i8** %8
%70 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %7, i64 0, i64 0
%71 = call i32 @dump_app(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %69, i8* %70)
br label %107
72: ; preds = %64
%73 = load i8*, i8** %8
%74 = call i64 @memcmp(i8* %73, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 8)
%75 = icmp eq i64 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %72
%77 = load i8*, i8** %8
%78 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %7, i64 0, i64 0
%79 = call i32 @dump_app(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* %77, i8* %78)
br label %106
80: ; preds = %72
%81 = load i8*, i8** %8
%82 = getelementptr inbounds i8, i8* %81, i64 3
%83 = load i8, i8* %82
%84 = load i8*, i8** %8
%85 = getelementptr inbounds i8, i8* %84, i64 2
%86 = load i8, i8* %85
%87 = load i8*, i8** %8
%88 = getelementptr inbounds i8, i8* %87, i64 1
%89 = load i8, i8* %88
%90 = load i8*, i8** %8
%91 = getelementptr inbounds i8, i8* %90, i64 0
%92 = load i8, i8* %91
%93 = load i8*, i8** %8
%94 = getelementptr inbounds i8, i8* %93, i64 7
%95 = load i8, i8* %94
%96 = load i8*, i8** %8
%97 = getelementptr inbounds i8, i8* %96, i64 6
%98 = load i8, i8* %97
%99 = load i8*, i8** %8
%100 = getelementptr inbounds i8, i8* %99, i64 5
%101 = load i8, i8* %100
%102 = load i8*, i8** %8
%103 = getelementptr inbounds i8, i8* %102, i64 4
%104 = load i8, i8* %103
%105 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %83, i8 zeroext %86, i8 zeroext %89, i8 zeroext %92, i8 zeroext %95, i8 zeroext %98, i8 zeroext %101, i8 zeroext %104)
br label %106
106: ; preds = %80, %76
br label %107
107: ; preds = %106, %68
br label %108
108: ; preds = %107, %60
br label %109
109: ; preds = %108, %52
br label %110
110: ; preds = %109, %44
%111 = load i8*, i8** %8
%112 = getelementptr inbounds i8, i8* %111, i64 40
store i8* %112, i8** %8
br label %36
113: ; preds = %36
store i32 0, i32* %3
br label %114
114: ; preds = %113, %22, %11
%115 = load i32, i32* %3
ret i32 %115
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [29 x i8] c"Usage: flashsplit flash.bin\0A\00"
@O_RDONLY = global i32 0
@.str.1 = [17 x i8] c"Can not open %s\0A\00"
@.str.2 = [9 x i8] c"hslfksid\00"
@.str.3 = [9 x i8] c"diskmode\00"
@.str.4 = [9 x i8] c"hslfgaid\00"
@.str.5 = [9 x i8] c"diagmode\00"
@.str.6 = [9 x i8] c"hslfogol\00"
@.str.7 = [5 x i8] c"logo\00"
@.str.8 = [9 x i8] c"hslfnacs\00"
@.str.9 = [9 x i8] c"diskscan\00"
@.str.10 = [9 x i8] c"hslfscmv\00"
@.str.11 = [5 x i8] c"vmcs\00"
@.str.12 = [39 x i8] c"Unknown image type - %c%c%c%c%c%c%c%c\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [1048576 x i8]
%4 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %3, i64 0, i64 0
%5 = icmp eq i32 %0, 2
br i1 %5, label %9, label %6
6: ; preds = %2
%7 = load i32, i32* @stderr
%8 = tail call i32 (i32, i8*, ...) @fprintf(i32 %7, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str, i64 0, i64 0))
br label %72
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = load i32, i32* @O_RDONLY
%13 = tail call i32 @open(i8* %11, i32 %12)
%14 = icmp slt i32 %13, 0
br i1 %14, label %15, label %19
15: ; preds = %9
%16 = load i32, i32* @stderr
%17 = load i8*, i8** %10
%18 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* %17)
br label %72
19: ; preds = %9
%20 = call i32 @read(i32 %13, i8* %4, i32 1048576)
%21 = tail call i32 @close(i32 %13)
%22 = getelementptr inbounds [1048576 x i8], [1048576 x i8]* %3, i64 0, i64 1048064
%23 = call i64 @le2int(i8* %22)
%24 = icmp eq i64 %23, 0
br i1 %24, label %72, label %25
25: ; preds = %19, %68
%26 = phi i8* [ %69, %68 ], [ %22, %19 ]
%27 = call i64 @memcmp(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0), i32 8)
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %25
%30 = call i32 @dump_app(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %26, i8* %4)
br label %68
31: ; preds = %25
%32 = call i64 @memcmp(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0), i32 8)
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @dump_app(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* %26, i8* %4)
br label %68
36: ; preds = %31
%37 = call i64 @memcmp(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 8)
%38 = icmp eq i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @dump_app(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* %26, i8* %4)
br label %68
41: ; preds = %36
%42 = call i64 @memcmp(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 8)
%43 = icmp eq i64 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %41
%45 = call i32 @dump_app(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* %26, i8* %4)
br label %68
46: ; preds = %41
%47 = call i64 @memcmp(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 8)
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 @dump_app(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* %26, i8* %4)
br label %68
51: ; preds = %46
%52 = getelementptr inbounds i8, i8* %26, i64 3
%53 = load i8, i8* %52
%54 = getelementptr inbounds i8, i8* %26, i64 2
%55 = load i8, i8* %54
%56 = getelementptr inbounds i8, i8* %26, i64 1
%57 = load i8, i8* %56
%58 = load i8, i8* %26
%59 = getelementptr inbounds i8, i8* %26, i64 7
%60 = load i8, i8* %59
%61 = getelementptr inbounds i8, i8* %26, i64 6
%62 = load i8, i8* %61
%63 = getelementptr inbounds i8, i8* %26, i64 5
%64 = load i8, i8* %63
%65 = getelementptr inbounds i8, i8* %26, i64 4
%66 = load i8, i8* %65
%67 = call i32 @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.12, i64 0, i64 0), i8 zeroext %53, i8 zeroext %55, i8 zeroext %57, i8 zeroext %58, i8 zeroext %60, i8 zeroext %62, i8 zeroext %64, i8 zeroext %66)
br label %68
68: ; preds = %34, %44, %51, %49, %39, %29
%69 = getelementptr inbounds i8, i8* %26, i64 40
%70 = call i64 @le2int(i8* %69)
%71 = icmp eq i64 %70, 0
br i1 %71, label %72, label %25
72: ; preds = %68, %19, %15, %6
%73 = phi i32 [ 1, %6 ], [ 1, %15 ], [ 0, %19 ], [ 0, %68 ]
ret i32 %73
}