#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*/ time_t;
struct ar_hdr {
  int /*<<< orphan*/ ar_name;
  int /*<<< orphan*/ ar_date;
  int /*<<< orphan*/ ar_gid;
  int /*<<< orphan*/ ar_uid;
  int /*<<< orphan*/ ar_mode;
  int /*<<< orphan*/ ar_size;
};

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int /*<<< orphan*/ O_RDONLY;
int /*<<< orphan*/ SEEK_CUR;
int /*<<< orphan*/ _exit(int /*<<< orphan*/);
int /*<<< orphan*/ check_archive(int);
int /*<<< orphan*/ ctime(int /*<<< orphan*/ *);
int /*<<< orphan*/ lseek(int, long, int /*<<< orphan*/);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, char *, ...);
int read(int, int /*<<< orphan*/, int);
int /*<<< orphan*/ sscanf(int /*<<< orphan*/, char *, ...);
int printTable(int argc, char *argv[], int verbose) {
  int archiveFd, i;
  struct ar_hdr ar;
  char name[17];
  long size;
  name[16] = '\0';
  archiveFd = open(argv[2], O_RDONLY);
  if (archiveFd == -1) {
    perror(argv[2]);
    _exit(EXIT_FAILURE);
  }
  check_archive(archiveFd);
  while ((read(archiveFd, ar.ar_name, (int)sizeof(struct ar_hdr))) ==
         (int)sizeof(struct ar_hdr)) {
    sscanf(ar.ar_name, "%s", (char *)&name);
    sscanf(ar.ar_size, "%ld", &size);
    if (verbose == !1) {
      printf("%-16.16s\n", name);
    } else {
      int uid, gid;
      char mode[10];
      mode[9] = '\0';
      int modenum;
      long long timey;
      sscanf(ar.ar_mode, "%o", &modenum);
      sscanf(ar.ar_uid, "%d", &uid);
      sscanf(ar.ar_gid, "%d", &gid);
      sscanf(ar.ar_date, "%lld", &timey);
      for (i = 9; i > 0; i--) {
        if ((modenum & 1) == 1) {
          if (i % 3 == 0)
            mode[i - 1] = 'x';
          else if (i % 3 == 1)
            mode[i - 1] = 'r';
          else
            mode[i - 1] = 'w';
        } else {
          mode[i - 1] = '-';
        }
        modenum = modenum >> 1;
      }
      printf("%-16.16s %-9.9s %d/%d 	%ld %s", name, mode, uid, gid, size,
             ctime((time_t *)&timey));
    }
    lseek(archiveFd, size, SEEK_CUR);
  }
  read(archiveFd, ar.ar_name, (int)sizeof(struct ar_hdr));
  return 0;
}


x86 assembly (clang, -O0):
<printTable>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
movb   $0x0,-0x40(%rbp)
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    0x2e28(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    11e7 <printTable+0x57>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   10a0 <perror@plt>
mov    0x2df0(%rip),%rax
mov    (%rax),%edi
call   1030 <_exit@plt>
mov    -0x18(%rbp),%edi
call   10b0 <check_archive@plt>
mov    -0x18(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    $0x18,%edx
call   1070 <read@plt>
cmp    $0x18,%eax
jne    13d5 <printTable+0x245>
mov    -0x38(%rbp),%edi
lea    -0x50(%rbp),%rdx
lea    0xe1e(%rip),%rsi
mov    $0x0,%al
call   1080 <sscanf@plt>
mov    -0x24(%rbp),%edi
lea    0xdd9(%rip),%rsi
lea    -0x58(%rbp),%rdx
mov    $0x0,%al
call   1080 <sscanf@plt>
cmpl   $0x0,-0x14(%rbp)
jne    1253 <printTable+0xc3>
lea    -0x50(%rbp),%rsi
lea    0xdbd(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13bb <printTable+0x22b>
movb   $0x0,-0x61(%rbp)
mov    -0x28(%rbp),%edi
lea    0xdad(%rip),%rsi
lea    -0x70(%rbp),%rdx
mov    $0x0,%al
call   1080 <sscanf@plt>
mov    -0x2c(%rbp),%edi
lea    0xd9b(%rip),%rsi
lea    -0x5c(%rbp),%rdx
mov    $0x0,%al
call   1080 <sscanf@plt>
mov    -0x30(%rbp),%edi
lea    0xd86(%rip),%rsi
lea    -0x60(%rbp),%rdx
mov    $0x0,%al
call   1080 <sscanf@plt>
mov    -0x34(%rbp),%edi
lea    0xd74(%rip),%rsi
lea    -0x78(%rbp),%rdx
mov    $0x0,%al
call   1080 <sscanf@plt>
movl   $0x9,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
jle    1352 <printTable+0x1c2>
mov    -0x70(%rbp),%eax
and    $0x1,%eax
cmp    $0x1,%eax
jne    132e <printTable+0x19e>
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    12f1 <printTable+0x161>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x78,-0x6a(%rbp,%rax,1)
jmp    1329 <printTable+0x199>
mov    -0x1c(%rbp),%eax
mov    $0x3,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    1317 <printTable+0x187>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x72,-0x6a(%rbp,%rax,1)
jmp    1324 <printTable+0x194>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x77,-0x6a(%rbp,%rax,1)
jmp    1329 <printTable+0x199>
jmp    133b <printTable+0x1ab>
mov    -0x1c(%rbp),%eax
sub    $0x1,%eax
cltq
movb   $0x2d,-0x6a(%rbp,%rax,1)
mov    -0x70(%rbp),%eax
sar    $0x1,%eax
mov    %eax,-0x70(%rbp)
mov    -0x1c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x1c(%rbp)
jmp    12b2 <printTable+0x122>
lea    -0x50(%rbp),%rax
mov    %rax,-0x98(%rbp)
lea    -0x6a(%rbp),%rax
mov    %rax,-0x90(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x88(%rbp)
mov    -0x60(%rbp),%eax
mov    %eax,-0x84(%rbp)
mov    -0x58(%rbp),%rax
mov    %rax,-0x80(%rbp)
lea    -0x78(%rbp),%rdi
call   1040 <ctime@plt>
mov    -0x98(%rbp),%rsi
mov    -0x90(%rbp),%rdx
mov    -0x88(%rbp),%ecx
mov    -0x84(%rbp),%r8d
mov    -0x80(%rbp),%r9
lea    0xc68(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x18(%rbp),%edi
mov    -0x58(%rbp),%rsi
mov    0x2c1f(%rip),%rax
mov    (%rax),%edx
call   1060 <lseek@plt>
jmp    11ef <printTable+0x5f>
mov    -0x18(%rbp),%edi
mov    -0x38(%rbp),%esi
mov    $0x18,%edx
call   1070 <read@plt>
xor    %eax,%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printTable>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x58,%rsp
mov    %edx,0x24(%rsp)
mov    %rsi,%rbx
movb   $0x0,0x50(%rsp)
mov    0x10(%rsi),%rdi
mov    0x2e2b(%rip),%rax
mov    (%rax),%esi
call   1090 <open@plt>
cmp    $0xffffffff,%eax
je     13d4 <printTable+0x244>
mov    %eax,%r15d
mov    %eax,%edi
call   10b0 <check_archive@plt>
mov    %r15d,%edi
mov    $0x18,%edx
call   1070 <read@plt>
cmp    $0x18,%eax
jne    13b6 <printTable+0x226>
lea    0x40(%rsp),%rbp
lea    0x38(%rsp),%rbx
jmp    123d <printTable+0xad>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
lea    0xdfd(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x30(%rsp),%rsi
mov    0x2dcb(%rip),%rax
mov    (%rax),%edx
mov    %r15d,%edi
call   1060 <lseek@plt>
mov    %r15d,%edi
mov    $0x18,%edx
call   1070 <read@plt>
cmp    $0x18,%eax
jne    13b6 <printTable+0x226>
lea    0xdf0(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
lea    0xdab(%rip),%rsi
lea    0x30(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
cmpl   $0x0,0x24(%rsp)
je     1200 <printTable+0x70>
mov    %rbp,%r14
movb   $0x0,0x1f(%rsp)
lea    0xd97(%rip),%rsi
lea    0x20(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    %rbx,%rbp
lea    0xd84(%rip),%rbx
mov    %rbx,%rsi
lea    0x2c(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    %rbx,%rsi
mov    %rbp,%rbx
lea    0x28(%rsp),%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
lea    0xd5f(%rip),%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <sscanf@plt>
mov    0x20(%rsp),%eax
test   $0x1,%al
jne    12d0 <printTable+0x140>
movb   $0x2d,0x1e(%rsp)
jmp    12d5 <printTable+0x145>
xchg   %ax,%ax
movb   $0x78,0x1e(%rsp)
test   $0x2,%al
mov    %r14,%rbp
jne    1320 <printTable+0x190>
movb   $0x2d,0x1d(%rsp)
test   $0x4,%al
je     1329 <printTable+0x199>
movb   $0x72,0x1c(%rsp)
test   $0x8,%al
je     1332 <printTable+0x1a2>
movb   $0x78,0x1b(%rsp)
test   $0x10,%al
je     133b <printTable+0x1ab>
movb   $0x77,0x1a(%rsp)
test   $0x20,%al
je     1344 <printTable+0x1b4>
movb   $0x72,0x19(%rsp)
test   $0x40,%al
je     134d <printTable+0x1bd>
movb   $0x78,0x18(%rsp)
test   $0x80,%al
je     1356 <printTable+0x1c6>
movb   $0x77,0x17(%rsp)
jmp    135b <printTable+0x1cb>
nopl   0x0(%rax)
movb   $0x77,0x1d(%rsp)
test   $0x4,%al
jne    12e5 <printTable+0x155>
movb   $0x2d,0x1c(%rsp)
test   $0x8,%al
jne    12ee <printTable+0x15e>
movb   $0x2d,0x1b(%rsp)
test   $0x10,%al
jne    12f7 <printTable+0x167>
movb   $0x2d,0x1a(%rsp)
test   $0x20,%al
jne    1300 <printTable+0x170>
movb   $0x2d,0x19(%rsp)
test   $0x40,%al
jne    1309 <printTable+0x179>
movb   $0x2d,0x18(%rsp)
test   $0x80,%al
jne    1312 <printTable+0x182>
movb   $0x2d,0x17(%rsp)
test   $0x100,%eax
mov    $0x72,%ecx
mov    $0x2d,%edx
cmove  %edx,%ecx
mov    %cl,0x16(%rsp)
sar    $0x9,%eax
mov    %eax,0x20(%rsp)
mov    0x2c(%rsp),%r13d
mov    0x28(%rsp),%r14d
mov    0x30(%rsp),%r12
mov    %rbx,%rdi
call   1040 <ctime@plt>
mov    %eax,(%rsp)
lea    0xc80(%rip),%rdi
mov    %rbp,%rsi
lea    0x16(%rsp),%rdx
mov    %r13d,%ecx
mov    %r14d,%r8d
mov    %r12,%r9
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1211 <printTable+0x81>
mov    %r15d,%edi
mov    $0x18,%edx
call   1070 <read@plt>
xor    %eax,%eax
add    $0x58,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x10(%rbx),%rdi
call   10a0 <perror@plt>
mov    0x2bec(%rip),%rax
mov    (%rax),%edi
call   1030 <_exit@plt>

LLVM IR (-O0):
%struct.ar_hdr = type { i32, i32, i32, i32, i32, i32 }
@O_RDONLY = global i32 0
@EXIT_FAILURE = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"%ld\00"
@.str.2 = [10 x i8] c"%-16.16s\0A\00"
@.str.3 = [3 x i8] c"%o\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [5 x i8] c"%lld\00"
@.str.6 = [30 x i8] c"%-16.16s %-9.9s %d/%d \09%ld %s\00"
@SEEK_CUR = global i32 0
define i32 @printTable(i32 %0, i8** %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca %struct.ar_hdr
%10 = alloca [17 x i8]
%11 = alloca i64
%12 = alloca i32
%13 = alloca i32
%14 = alloca [10 x i8]
%15 = alloca i32
%16 = alloca i64
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 %2, i32* %6
%17 = getelementptr inbounds [17 x i8], [17 x i8]* %10, i64 0, i64 16
store i8 0, i8* %17
%18 = load i8**, i8*** %5
%19 = getelementptr inbounds i8*, i8** %18, i64 2
%20 = load i8*, i8** %19
%21 = load i32, i32* @O_RDONLY
%22 = call i32 @open(i8* %20, i32 %21)
store i32 %22, i32* %7
%23 = load i32, i32* %7
%24 = icmp eq i32 %23, -1
br i1 %24, label %25, label %32
25: ; preds = %3
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 2
%28 = load i8*, i8** %27
%29 = call i32 @perror(i8* %28)
%30 = load i32, i32* @EXIT_FAILURE
%31 = call i32 @_exit(i32 %30)
unreachable
32: ; preds = %3
%33 = load i32, i32* %7
%34 = call i32 @check_archive(i32 %33)
br label %35
35: ; preds = %120, %32
%36 = load i32, i32* %7
%37 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 0
%38 = load i32, i32* %37
%39 = call i32 @read(i32 %36, i32 %38, i32 24)
%40 = icmp eq i32 %39, 24
br i1 %40, label %41, label %125
41: ; preds = %35
%42 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 0
%43 = load i32, i32* %42
%44 = bitcast [17 x i8]* %10 to i8*
%45 = call i32 (i32, i8*, ...) @sscanf(i32 %43, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %44)
%46 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 5
%47 = load i32, i32* %46
%48 = call i32 (i32, i8*, ...) @sscanf(i32 %47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i64* %11)
%49 = load i32, i32* %6
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %54
51: ; preds = %41
%52 = getelementptr inbounds [17 x i8], [17 x i8]* %10, i64 0, i64 0
%53 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %52)
br label %120
54: ; preds = %41
%55 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 9
store i8 0, i8* %55
%56 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 4
%57 = load i32, i32* %56
%58 = call i32 (i32, i8*, ...) @sscanf(i32 %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %15)
%59 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 3
%60 = load i32, i32* %59
%61 = call i32 (i32, i8*, ...) @sscanf(i32 %60, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %12)
%62 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 2
%63 = load i32, i32* %62
%64 = call i32 (i32, i8*, ...) @sscanf(i32 %63, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %13)
%65 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 1
%66 = load i32, i32* %65
%67 = call i32 (i32, i8*, ...) @sscanf(i32 %66, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64* %16)
store i32 9, i32* %8
br label %68
68: ; preds = %108, %54
%69 = load i32, i32* %8
%70 = icmp sgt i32 %69, 0
br i1 %70, label %71, label %111
71: ; preds = %68
%72 = load i32, i32* %15
%73 = and i32 %72, 1
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %100
75: ; preds = %71
%76 = load i32, i32* %8
%77 = srem i32 %76, 3
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %84
79: ; preds = %75
%80 = load i32, i32* %8
%81 = sub nsw i32 %80, 1
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 %82
store i8 120, i8* %83
br label %99
84: ; preds = %75
%85 = load i32, i32* %8
%86 = srem i32 %85, 3
%87 = icmp eq i32 %86, 1
br i1 %87, label %88, label %93
88: ; preds = %84
%89 = load i32, i32* %8
%90 = sub nsw i32 %89, 1
%91 = sext i32 %90 to i64
%92 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 %91
store i8 114, i8* %92
br label %98
93: ; preds = %84
%94 = load i32, i32* %8
%95 = sub nsw i32 %94, 1
%96 = sext i32 %95 to i64
%97 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 %96
store i8 119, i8* %97
br label %98
98: ; preds = %93, %88
br label %99
99: ; preds = %98, %79
br label %105
100: ; preds = %71
%101 = load i32, i32* %8
%102 = sub nsw i32 %101, 1
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 %103
store i8 45, i8* %104
br label %105
105: ; preds = %100, %99
%106 = load i32, i32* %15
%107 = ashr i32 %106, 1
store i32 %107, i32* %15
br label %108
108: ; preds = %105
%109 = load i32, i32* %8
%110 = add nsw i32 %109, -1
store i32 %110, i32* %8
br label %68
111: ; preds = %68
%112 = getelementptr inbounds [17 x i8], [17 x i8]* %10, i64 0, i64 0
%113 = getelementptr inbounds [10 x i8], [10 x i8]* %14, i64 0, i64 0
%114 = load i32, i32* %12
%115 = load i32, i32* %13
%116 = load i64, i64* %11
%117 = bitcast i64* %16 to i32*
%118 = call i32 @ctime(i32* %117)
%119 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %112, i8* %113, i32 %114, i32 %115, i64 %116, i32 %118)
br label %120
120: ; preds = %111, %51
%121 = load i32, i32* %7
%122 = load i64, i64* %11
%123 = load i32, i32* @SEEK_CUR
%124 = call i32 @lseek(i32 %121, i64 %122, i32 %123)
br label %35
125: ; preds = %35
%126 = load i32, i32* %7
%127 = getelementptr inbounds %struct.ar_hdr, %struct.ar_hdr* %9, i32 0, i32 0
%128 = load i32, i32* %127
%129 = call i32 @read(i32 %126, i32 %128, i32 24)
ret i32 0
}

LLVM IR (-O2):
@O_RDONLY = global i32 0
@EXIT_FAILURE = global i32 0
@.str = [3 x i8] c"%s\00"
@.str.1 = [4 x i8] c"%ld\00"
@.str.2 = [10 x i8] c"%-16.16s\0A\00"
@.str.3 = [3 x i8] c"%o\00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [5 x i8] c"%lld\00"
@.str.6 = [30 x i8] c"%-16.16s %-9.9s %d/%d \09%ld %s\00"
@SEEK_CUR = global i32 0
define i32 @printTable(i32 %0, i8** nocapture %1, i32 %2) {
%4 = alloca [17 x i8]
%5 = alloca i64
%6 = alloca i32
%7 = alloca i32
%8 = alloca [10 x i8]
%9 = alloca i32
%10 = alloca i64
%11 = getelementptr inbounds [17 x i8], [17 x i8]* %4, i64 0, i64 0
%12 = bitcast i64* %5 to i8*
%13 = getelementptr inbounds [17 x i8], [17 x i8]* %4, i64 0, i64 16
store i8 0, i8* %13
%14 = getelementptr inbounds i8*, i8** %1, i64 2
%15 = load i8*, i8** %14
%16 = load i32, i32* @O_RDONLY
%17 = tail call i32 @open(i8* %15, i32 %16)
%18 = icmp eq i32 %17, -1
br i1 %18, label %19, label %24
19: ; preds = %3
%20 = load i8*, i8** %14
%21 = tail call i32 @perror(i8* %20)
%22 = load i32, i32* @EXIT_FAILURE
%23 = tail call i32 @_exit(i32 %22)
unreachable
24: ; preds = %3
%25 = tail call i32 @check_archive(i32 %17)
%26 = call i32 @read(i32 %17, i32 undef, i32 24)
%27 = icmp eq i32 %26, 24
br i1 %27, label %28, label %119
28: ; preds = %24
%29 = icmp eq i32 %2, 0
%30 = bitcast i32* %6 to i8*
%31 = bitcast i32* %7 to i8*
%32 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 0
%33 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 9
%34 = bitcast i32* %9 to i8*
%35 = bitcast i64* %10 to i8*
%36 = bitcast i64* %10 to i32*
%37 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 8
%38 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 8
%39 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 7
%40 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 7
%41 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 6
%42 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 6
%43 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 5
%44 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 5
%45 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 4
%46 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 4
%47 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 3
%48 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 3
%49 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 2
%50 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 2
%51 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 1
%52 = getelementptr inbounds [10 x i8], [10 x i8]* %8, i64 0, i64 1
br label %53
53: ; preds = %28, %113
%54 = call i32 (i32, i8*, ...) @sscanf(i32 undef, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %11)
%55 = call i32 (i32, i8*, ...) @sscanf(i32 undef, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i64* %5)
br i1 %29, label %56, label %58
56: ; preds = %53
%57 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8* %11)
br label %113
58: ; preds = %53
store i8 0, i8* %33
%59 = call i32 (i32, i8*, ...) @sscanf(i32 undef, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i32* %9)
%60 = call i32 (i32, i8*, ...) @sscanf(i32 undef, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %6)
%61 = call i32 (i32, i8*, ...) @sscanf(i32 undef, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32* %7)
%62 = call i32 (i32, i8*, ...) @sscanf(i32 undef, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i64* %10)
%63 = load i32, i32* %9
%64 = and i32 %63, 1
%65 = icmp eq i32 %64, 0
br i1 %65, label %67, label %66
66: ; preds = %58
store i8 120, i8* %37
br label %68
67: ; preds = %58
store i8 45, i8* %38
br label %68
68: ; preds = %66, %67
%69 = and i32 %63, 2
%70 = icmp eq i32 %69, 0
br i1 %70, label %72, label %71
71: ; preds = %68
store i8 119, i8* %39
br label %73
72: ; preds = %68
store i8 45, i8* %40
br label %73
73: ; preds = %72, %71
%74 = and i32 %63, 4
%75 = icmp eq i32 %74, 0
br i1 %75, label %77, label %76
76: ; preds = %73
store i8 114, i8* %41
br label %78
77: ; preds = %73
store i8 45, i8* %42
br label %78
78: ; preds = %77, %76
%79 = and i32 %63, 8
%80 = icmp eq i32 %79, 0
br i1 %80, label %82, label %81
81: ; preds = %78
store i8 120, i8* %43
br label %83
82: ; preds = %78
store i8 45, i8* %44
br label %83
83: ; preds = %82, %81
%84 = and i32 %63, 16
%85 = icmp eq i32 %84, 0
br i1 %85, label %87, label %86
86: ; preds = %83
store i8 119, i8* %45
br label %88
87: ; preds = %83
store i8 45, i8* %46
br label %88
88: ; preds = %87, %86
%89 = and i32 %63, 32
%90 = icmp eq i32 %89, 0
br i1 %90, label %92, label %91
91: ; preds = %88
store i8 114, i8* %47
br label %93
92: ; preds = %88
store i8 45, i8* %48
br label %93
93: ; preds = %92, %91
%94 = and i32 %63, 64
%95 = icmp eq i32 %94, 0
br i1 %95, label %97, label %96
96: ; preds = %93
store i8 120, i8* %49
br label %98
97: ; preds = %93
store i8 45, i8* %50
br label %98
98: ; preds = %97, %96
%99 = and i32 %63, 128
%100 = icmp eq i32 %99, 0
br i1 %100, label %102, label %101
101: ; preds = %98
store i8 119, i8* %51
br label %103
102: ; preds = %98
store i8 45, i8* %52
br label %103
103: ; preds = %102, %101
%104 = and i32 %63, 256
%105 = icmp eq i32 %104, 0
%106 = select i1 %105, i8 45, i8 114
store i8 %106, i8* %32
%107 = ashr i32 %63, 9
store i32 %107, i32* %9
%108 = load i32, i32* %6
%109 = load i32, i32* %7
%110 = load i64, i64* %5
%111 = call i32 @ctime(i32* %36)
%112 = call i32 (i8*, i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* %11, i8* %32, i32 %108, i32 %109, i64 %110, i32 %111)
br label %113
113: ; preds = %103, %56
%114 = load i64, i64* %5
%115 = load i32, i32* @SEEK_CUR
%116 = call i32 @lseek(i32 %17, i64 %114, i32 %115)
%117 = call i32 @read(i32 %17, i32 undef, i32 24)
%118 = icmp eq i32 %117, 24
br i1 %118, label %53, label %119
119: ; preds = %113, %24
%120 = call i32 @read(i32 %17, i32 undef, i32 24)
ret i32 0
}