#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 uint8_t;
typedef int uint64_t;
typedef int uint32_t;
typedef int int32_t;

/* Variables and functions */
int /*<<< orphan*/ close_master_conn(int);
int /*<<< orphan*/ free(int *);
int get32bit(int const **);
int get64bit(int const **);
int *malloc(int);
char *mfsstrerr(int const);
int open_master_conn(char const *, int *, int /*<<< orphan*/ *,
                     int /*<<< orphan*/ *, int /*<<< orphan*/,
                     int /*<<< orphan*/);
int /*<<< orphan*/ print_number(char *, char *, int, int /*<<< orphan*/, int,
                                int);
int /*<<< orphan*/ print_number_only(int, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ put32bit(int **, int);
int tcptoread(int, int *, int, int);
int tcptowrite(int, int *, int, int);
int dir_info(uint8_t dirinfomode, const char *fname) {
  uint8_t reqbuff[16], *wptr, *buff;
  const uint8_t *rptr;
  uint32_t cmd, leng, inode;
  uint32_t inodes, dirs, files, chunks;
  uint64_t length, size, realsize;
  int fd;
  fd = open_master_conn(fname, &inode, NULL, NULL, 0, 0);
  if (fd < 0) {
    return -1;
  }
  wptr = reqbuff;
  put32bit(&wptr, (0 + 462));
  put32bit(&wptr, 8);
  put32bit(&wptr, 0);
  put32bit(&wptr, inode);
  if (tcptowrite(fd, reqbuff, 16, 10000) != 16) {
    printf("%s: master query: send error\n", fname);
    close_master_conn(1);
    return -1;
  }
  if (tcptoread(fd, reqbuff, 8, 10000) != 8) {
    printf("%s: master query: receive error\n", fname);
    close_master_conn(1);
    return -1;
  }
  rptr = reqbuff;
  cmd = get32bit(&rptr);
  leng = get32bit(&rptr);
  if (cmd != (0 + 463)) {
    printf("%s: master query: wrong answer (type)\n", fname);
    close_master_conn(1);
    return -1;
  }
  buff = malloc(leng);
  if (tcptoread(fd, buff, leng, 10000) != (int32_t)leng) {
    printf("%s: master query: receive error\n", fname);
    free(buff);
    close_master_conn(1);
    return -1;
  }
  rptr = buff;
  cmd = get32bit(&rptr);
  if (cmd != 0) {
    printf("%s: master query: wrong answer (queryid)\n", fname);
    free(buff);
    close_master_conn(1);
    return -1;
  }
  leng -= 4;
  if (leng == 1) {
    printf("%s: %s\n", fname, mfsstrerr(*rptr));
    free(buff);
    close_master_conn(1);
    return -1;
  } else if (leng != 56 && leng != 40) {
    printf("%s: master query: wrong answer (leng)\n", fname);
    free(buff);
    close_master_conn(1);
    return -1;
  }
  close_master_conn(0);
  inodes = get32bit(&rptr);
  dirs = get32bit(&rptr);
  files = get32bit(&rptr);
  if (leng == 56) {
    rptr += 8;
  }
  chunks = get32bit(&rptr);
  if (leng == 56) {
    rptr += 8;
  }
  length = get64bit(&rptr);
  size = get64bit(&rptr);
  realsize = get64bit(&rptr);
  free(buff);
  if (dirinfomode == 0) {
    printf("%s:\n", fname);
    print_number(" inodes:       ", "\n", inodes, 0, 0, 1);
    print_number("  directories: ", "\n", dirs, 0, 0, 1);
    print_number("  files:       ", "\n", files, 0, 0, 1);
    print_number(" chunks:       ", "\n", chunks, 0, 0, 1);
    print_number(" length:       ", "\n", length, 0, 1, 1);
    print_number(" size:         ", "\n", size, 0, 1, 1);
    print_number(" realsize:     ", "\n", realsize, 0, 1, 1);
  } else {
    if (dirinfomode & 0x01) {
      print_number_only(inodes, 0);
      printf("\t");
    }
    if (dirinfomode & 0x02) {
      print_number_only(dirs, 0);
      printf("\t");
    }
    if (dirinfomode & 0x04) {
      print_number_only(files, 0);
      printf("\t");
    }
    if (dirinfomode & 0x08) {
      print_number_only(chunks, 0);
      printf("\t");
    }
    if (dirinfomode & 0x10) {
      print_number_only(length, 1);
      printf("\t");
    }
    if (dirinfomode & 0x20) {
      print_number_only(size, 1);
      printf("\t");
    }
    if (dirinfomode & 0x40) {
      print_number_only(realsize, 1);
      printf("\t");
    }
    printf("%s\n", fname);
  }
  return 0;
}


x86 assembly (clang, -O0):
<dir_info>:
push   %rbp
mov    %rsp,%rbp
sub    $0xa0,%rsp
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x74(%rbp),%rsi
xor    %eax,%eax
mov    %eax,%ecx
xor    %r9d,%r9d
mov    %rcx,%rdx
mov    %r9d,%r8d
call   10f0 <open_master_conn@plt>
mov    %eax,-0x94(%rbp)
cmpl   $0x0,-0x94(%rbp)
jge    121b <dir_info+0x4b>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
lea    -0x50(%rbp),%rax
mov    %rax,-0x58(%rbp)
lea    -0x58(%rbp),%rdi
mov    $0x1ce,%esi
call   10c0 <put32bit@plt>
lea    -0x58(%rbp),%rdi
mov    $0x8,%esi
call   10c0 <put32bit@plt>
lea    -0x58(%rbp),%rdi
xor    %esi,%esi
call   10c0 <put32bit@plt>
mov    -0x74(%rbp),%esi
lea    -0x58(%rbp),%rdi
call   10c0 <put32bit@plt>
mov    -0x94(%rbp),%edi
lea    -0x50(%rbp),%rsi
mov    $0x10,%edx
mov    $0x2710,%ecx
call   10e0 <tcptowrite@plt>
cmp    $0x10,%eax
je     12a0 <dir_info+0xd0>
mov    -0x10(%rbp),%rsi
lea    0xd7d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <close_master_conn@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
mov    -0x94(%rbp),%edi
lea    -0x50(%rbp),%rsi
mov    $0x8,%edx
mov    $0x2710,%ecx
call   1080 <tcptoread@plt>
cmp    $0x8,%eax
je     12ea <dir_info+0x11a>
mov    -0x10(%rbp),%rsi
lea    0xd51(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <close_master_conn@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
lea    -0x50(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0x68(%rbp),%rdi
call   1050 <get32bit@plt>
mov    %eax,-0x6c(%rbp)
lea    -0x68(%rbp),%rdi
call   1050 <get32bit@plt>
mov    %eax,-0x70(%rbp)
cmpl   $0x1cf,-0x6c(%rbp)
je     133f <dir_info+0x16f>
mov    -0x10(%rbp),%rsi
lea    0xd1d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    $0x1,%edi
call   1060 <close_master_conn@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
mov    -0x70(%rbp),%edi
call   10a0 <malloc@plt>
mov    %rax,-0x60(%rbp)
mov    -0x94(%rbp),%edi
mov    -0x60(%rbp),%rsi
mov    -0x70(%rbp),%edx
mov    $0x2710,%ecx
call   1080 <tcptoread@plt>
cmp    -0x70(%rbp),%eax
je     139c <dir_info+0x1cc>
mov    -0x10(%rbp),%rsi
lea    0xca8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   1060 <close_master_conn@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
mov    -0x60(%rbp),%rax
mov    %rax,-0x68(%rbp)
lea    -0x68(%rbp),%rdi
call   1050 <get32bit@plt>
mov    %eax,-0x6c(%rbp)
cmpl   $0x0,-0x6c(%rbp)
je     13eb <dir_info+0x21b>
mov    -0x10(%rbp),%rsi
lea    0xca1(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   1060 <close_master_conn@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
mov    -0x70(%rbp),%eax
sub    $0x4,%eax
mov    %eax,-0x70(%rbp)
cmpl   $0x1,-0x70(%rbp)
jne    144b <dir_info+0x27b>
mov    -0x10(%rbp),%rax
mov    %rax,-0xa0(%rbp)
mov    -0x68(%rbp),%rax
mov    (%rax),%edi
call   1040 <mfsstrerr@plt>
mov    -0xa0(%rbp),%rsi
mov    %rax,%rdx
lea    0xc6b(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   1060 <close_master_conn@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
cmpl   $0x38,-0x70(%rbp)
je     1490 <dir_info+0x2c0>
cmpl   $0x28,-0x70(%rbp)
je     1490 <dir_info+0x2c0>
mov    -0x10(%rbp),%rsi
lea    0xc2e(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
mov    $0x1,%edi
call   1060 <close_master_conn@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1788 <dir_info+0x5b8>
jmp    1495 <dir_info+0x2c5>
xor    %edi,%edi
call   1060 <close_master_conn@plt>
lea    -0x68(%rbp),%rdi
call   1050 <get32bit@plt>
mov    %eax,-0x78(%rbp)
lea    -0x68(%rbp),%rdi
call   1050 <get32bit@plt>
mov    %eax,-0x7c(%rbp)
lea    -0x68(%rbp),%rdi
call   1050 <get32bit@plt>
mov    %eax,-0x80(%rbp)
cmpl   $0x38,-0x70(%rbp)
jne    14d6 <dir_info+0x306>
mov    -0x68(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x68(%rbp)
lea    -0x68(%rbp),%rdi
call   1050 <get32bit@plt>
mov    %eax,-0x84(%rbp)
cmpl   $0x38,-0x70(%rbp)
jne    14fb <dir_info+0x32b>
mov    -0x68(%rbp),%rax
add    $0x20,%rax
mov    %rax,-0x68(%rbp)
lea    -0x68(%rbp),%rdi
call   1090 <get64bit@plt>
mov    %eax,-0x88(%rbp)
lea    -0x68(%rbp),%rdi
call   1090 <get64bit@plt>
mov    %eax,-0x8c(%rbp)
lea    -0x68(%rbp),%rdi
call   1090 <get64bit@plt>
mov    %eax,-0x90(%rbp)
mov    -0x60(%rbp),%rdi
call   1030 <free@plt>
cmpl   $0x0,-0x8(%rbp)
jne    1649 <dir_info+0x479>
mov    -0x10(%rbp),%rsi
lea    0xb79(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x78(%rbp),%edx
lea    0xb6d(%rip),%rdi
lea    0xb30(%rip),%rsi
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%ecx
call   10b0 <print_number@plt>
mov    -0x7c(%rbp),%edx
lea    0xb5b(%rip),%rdi
lea    0xb0e(%rip),%rsi
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%ecx
call   10b0 <print_number@plt>
mov    -0x80(%rbp),%edx
lea    0xb49(%rip),%rdi
lea    0xaec(%rip),%rsi
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%ecx
call   10b0 <print_number@plt>
mov    -0x84(%rbp),%edx
lea    0xb34(%rip),%rdi
lea    0xac7(%rip),%rsi
xor    %r8d,%r8d
mov    $0x1,%r9d
mov    %r8d,%ecx
call   10b0 <print_number@plt>
mov    -0x88(%rbp),%edx
lea    0xb1f(%rip),%rdi
lea    0xaa2(%rip),%rsi
xor    %ecx,%ecx
mov    $0x1,%r9d
mov    %r9d,%r8d
call   10b0 <print_number@plt>
mov    -0x8c(%rbp),%edx
lea    0xb0b(%rip),%rdi
lea    0xa7e(%rip),%rsi
xor    %ecx,%ecx
mov    $0x1,%r9d
mov    %r9d,%r8d
call   10b0 <print_number@plt>
mov    -0x90(%rbp),%edx
lea    0xaf7(%rip),%rdi
lea    0xa5a(%rip),%rsi
xor    %ecx,%ecx
mov    $0x1,%r9d
mov    %r9d,%r8d
call   10b0 <print_number@plt>
jmp    1781 <dir_info+0x5b1>
mov    -0x8(%rbp),%eax
and    $0x1,%eax
cmp    $0x0,%eax
je     1670 <dir_info+0x4a0>
mov    -0x78(%rbp),%edi
xor    %esi,%esi
call   10d0 <print_number_only@plt>
lea    0xacb(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0x2,%eax
cmp    $0x0,%eax
je     1697 <dir_info+0x4c7>
mov    -0x7c(%rbp),%edi
xor    %esi,%esi
call   10d0 <print_number_only@plt>
lea    0xaa4(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0x4,%eax
cmp    $0x0,%eax
je     16be <dir_info+0x4ee>
mov    -0x80(%rbp),%edi
xor    %esi,%esi
call   10d0 <print_number_only@plt>
lea    0xa7d(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0x8,%eax
cmp    $0x0,%eax
je     16e8 <dir_info+0x518>
mov    -0x84(%rbp),%edi
xor    %esi,%esi
call   10d0 <print_number_only@plt>
lea    0xa53(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0x10,%eax
cmp    $0x0,%eax
je     1715 <dir_info+0x545>
mov    -0x88(%rbp),%edi
mov    $0x1,%esi
call   10d0 <print_number_only@plt>
lea    0xa26(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0x20,%eax
cmp    $0x0,%eax
je     1742 <dir_info+0x572>
mov    -0x8c(%rbp),%edi
mov    $0x1,%esi
call   10d0 <print_number_only@plt>
lea    0x9f9(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x8(%rbp),%eax
and    $0x40,%eax
cmp    $0x0,%eax
je     176f <dir_info+0x59f>
mov    -0x90(%rbp),%edi
mov    $0x1,%esi
call   10d0 <print_number_only@plt>
lea    0x9cc(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0x91a(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xa0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dir_info>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x78,%rsp
mov    %rsi,%r13
mov    %edi,%r14d
lea    0x24(%rsp),%rsi
mov    %r13,%rdi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
call   1110 <open_master_conn@plt>
mov    $0xffffffff,%r12d
test   %eax,%eax
js     133d <dir_info+0x14d>
mov    %eax,%ebp
lea    0x30(%rsp),%r15
mov    %r15,0x28(%rsp)
lea    0x28(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x1ce,%esi
call   10e0 <put32bit@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
call   10e0 <put32bit@plt>
mov    %rbx,%rdi
xor    %esi,%esi
call   10e0 <put32bit@plt>
mov    0x24(%rsp),%esi
mov    %rbx,%rdi
call   10e0 <put32bit@plt>
mov    %ebp,%edi
mov    %r15,%rsi
mov    $0x10,%edx
mov    $0x2710,%ecx
call   1100 <tcptowrite@plt>
cmp    $0x10,%eax
jne    1310 <dir_info+0x120>
lea    0x30(%rsp),%rbx
mov    %ebp,%edi
mov    %rbx,%rsi
mov    $0x8,%edx
mov    $0x2710,%ecx
call   10a0 <tcptoread@plt>
cmp    $0x8,%eax
jne    1319 <dir_info+0x129>
mov    %r14d,0x14(%rsp)
mov    %rbx,0x8(%rsp)
lea    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <get32bit@plt>
mov    %eax,%r14d
mov    %rbx,%rdi
call   1070 <get32bit@plt>
cmp    $0x1cf,%r14d
jne    1322 <dir_info+0x132>
mov    %eax,%r15d
mov    %eax,%edi
call   10c0 <malloc@plt>
mov    %rax,%rbx
mov    %ebp,%edi
mov    %rax,%rsi
mov    %r15d,%edx
mov    $0x2710,%ecx
call   10a0 <tcptoread@plt>
cmp    %r15d,%eax
jne    134f <dir_info+0x15f>
mov    %rbx,0x8(%rsp)
lea    0x8(%rsp),%rdi
call   1070 <get32bit@plt>
test   %eax,%eax
je     136a <dir_info+0x17a>
lea    0xd58(%rip),%rdi
jmp    1356 <dir_info+0x166>
lea    0xce9(%rip),%rdi
jmp    1329 <dir_info+0x139>
lea    0xcfe(%rip),%rdi
jmp    1329 <dir_info+0x139>
lea    0xd16(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    $0x1,%edi
call   1080 <close_master_conn@plt>
mov    %r12d,%eax
add    $0x78,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xcc8(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
jmp    1333 <dir_info+0x143>
add    $0xfffffffc,%r15d
cmp    $0x1,%r15d
jne    1396 <dir_info+0x1a6>
mov    0x8(%rsp),%rax
mov    (%rax),%edi
call   1060 <mfsstrerr@plt>
lea    0xd09(%rip),%rdi
mov    %r13,%rsi
mov    %rax,%rdx
xor    %eax,%eax
call   1090 <printf@plt>
jmp    1360 <dir_info+0x170>
mov    %r15d,%eax
and    $0xffffffef,%eax
cmp    $0x28,%eax
jne    13f4 <dir_info+0x204>
xor    %edi,%edi
call   1080 <close_master_conn@plt>
lea    0x8(%rsp),%r12
mov    %r12,%rdi
call   1070 <get32bit@plt>
mov    %eax,%r14d
mov    %r12,%rdi
call   1070 <get32bit@plt>
mov    %eax,%ebp
mov    %r12,%rdi
call   1070 <get32bit@plt>
cmp    $0x38,%r15d
mov    %eax,0x20(%rsp)
mov    %ebp,0x1c(%rsp)
jne    1400 <dir_info+0x210>
addq   $0x20,0x8(%rsp)
lea    0x8(%rsp),%rdi
call   1070 <get32bit@plt>
mov    %eax,0x18(%rsp)
addq   $0x20,0x8(%rsp)
jmp    140e <dir_info+0x21e>
lea    0xc9d(%rip),%rdi
jmp    1356 <dir_info+0x166>
lea    0x8(%rsp),%rdi
call   1070 <get32bit@plt>
mov    %eax,0x18(%rsp)
lea    0x8(%rsp),%rbp
mov    %rbp,%rdi
call   10b0 <get64bit@plt>
mov    %eax,%r12d
mov    %rbp,%rdi
call   10b0 <get64bit@plt>
mov    %eax,%r15d
mov    %rbp,%rdi
call   10b0 <get64bit@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1030 <free@plt>
mov    0x14(%rsp),%eax
test   %eax,%eax
je     14b7 <dir_info+0x2c7>
test   $0x1,%al
je     145b <dir_info+0x26b>
mov    %r14d,%edi
xor    %esi,%esi
call   10f0 <print_number_only@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
mov    0x14(%rsp),%ebx
test   $0x2,%bl
jne    15b5 <dir_info+0x3c5>
test   $0x4,%bl
jne    15d3 <dir_info+0x3e3>
test   $0x8,%bl
jne    15f1 <dir_info+0x401>
test   $0x10,%bl
jne    160f <dir_info+0x41f>
test   $0x20,%bl
jne    162f <dir_info+0x43f>
test   $0x40,%bl
je     14a7 <dir_info+0x2b7>
mov    %ebp,%edi
mov    $0x1,%esi
call   10f0 <print_number_only@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
mov    %r13,%rdi
call   1050 <puts@plt>
xor    %r12d,%r12d
jmp    133d <dir_info+0x14d>
lea    0xc01(%rip),%rdi
mov    %ebp,0x14(%rsp)
mov    %r12d,%ebp
xor    %r12d,%r12d
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xbeb(%rip),%rdi
lea    0xbae(%rip),%rbx
mov    %rbx,%rsi
mov    %r14d,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   10d0 <print_number@plt>
lea    0xbd7(%rip),%rdi
mov    %rbx,%rsi
mov    0x1c(%rsp),%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   10d0 <print_number@plt>
lea    0xbc9(%rip),%rdi
mov    %rbx,%rsi
mov    0x20(%rsp),%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   10d0 <print_number@plt>
lea    0xbbb(%rip),%rdi
mov    %rbx,%rsi
mov    0x18(%rsp),%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x1,%r9d
call   10d0 <print_number@plt>
lea    0xbad(%rip),%rdi
mov    %rbx,%rsi
mov    %ebp,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
call   10d0 <print_number@plt>
lea    0xb9e(%rip),%rdi
mov    %rbx,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
call   10d0 <print_number@plt>
lea    0xb8e(%rip),%rdi
mov    %rbx,%rsi
mov    0x14(%rsp),%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
mov    $0x1,%r9d
call   10d0 <print_number@plt>
jmp    133d <dir_info+0x14d>
mov    0x1c(%rsp),%edi
xor    %esi,%esi
call   10f0 <print_number_only@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
test   $0x4,%bl
je     1471 <dir_info+0x281>
mov    0x20(%rsp),%edi
xor    %esi,%esi
call   10f0 <print_number_only@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
test   $0x8,%bl
je     147a <dir_info+0x28a>
mov    0x18(%rsp),%edi
xor    %esi,%esi
call   10f0 <print_number_only@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
test   $0x10,%bl
je     1483 <dir_info+0x293>
mov    %r12d,%edi
mov    $0x1,%esi
call   10f0 <print_number_only@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
test   $0x20,%bl
je     148c <dir_info+0x29c>
mov    %r15d,%edi
mov    $0x1,%esi
call   10f0 <print_number_only@plt>
mov    $0x9,%edi
call   1040 <putchar@plt>
test   $0x40,%bl
jne    1491 <dir_info+0x2a1>
jmp    14a7 <dir_info+0x2b7>

LLVM IR (-O0):
@.str = [30 x i8] c"%s: master query: send error\0A\00"
@.str.1 = [33 x i8] c"%s: master query: receive error\0A\00"
@.str.2 = [39 x i8] c"%s: master query: wrong answer (type)\0A\00"
@.str.3 = [42 x i8] c"%s: master query: wrong answer (queryid)\0A\00"
@.str.4 = [8 x i8] c"%s: %s\0A\00"
@.str.5 = [39 x i8] c"%s: master query: wrong answer (leng)\0A\00"
@.str.6 = [5 x i8] c"%s:\0A\00"
@.str.7 = [16 x i8] c" inodes: \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [16 x i8] c" directories: \00"
@.str.10 = [16 x i8] c" files: \00"
@.str.11 = [16 x i8] c" chunks: \00"
@.str.12 = [16 x i8] c" length: \00"
@.str.13 = [16 x i8] c" size: \00"
@.str.14 = [16 x i8] c" realsize: \00"
@.str.15 = [2 x i8] c"\09\00"
@.str.16 = [4 x i8] c"%s\0A\00"
define i32 @dir_info(i32 %0, i8* %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8*
%6 = alloca [16 x i32]
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32 %0, i32* %4
store i8* %1, i8** %5
%21 = load i8*, i8** %5
%22 = call i32 @open_master_conn(i8* %21, i32* %12, i32* null, i32* null, i32 0, i32 0)
store i32 %22, i32* %20
%23 = load i32, i32* %20
%24 = icmp slt i32 %23, 0
br i1 %24, label %25, label %26
25: ; preds = %2
store i32 -1, i32* %3
br label %215
26: ; preds = %2
%27 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
store i32* %27, i32** %7
%28 = call i32 @put32bit(i32** %7, i32 462)
%29 = call i32 @put32bit(i32** %7, i32 8)
%30 = call i32 @put32bit(i32** %7, i32 0)
%31 = load i32, i32* %12
%32 = call i32 @put32bit(i32** %7, i32 %31)
%33 = load i32, i32* %20
%34 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%35 = call i32 @tcptowrite(i32 %33, i32* %34, i32 16, i32 10000)
%36 = icmp ne i32 %35, 16
br i1 %36, label %37, label %41
37: ; preds = %26
%38 = load i8*, i8** %5
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %38)
%40 = call i32 @close_master_conn(i32 1)
store i32 -1, i32* %3
br label %215
41: ; preds = %26
%42 = load i32, i32* %20
%43 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
%44 = call i32 @tcptoread(i32 %42, i32* %43, i32 8, i32 10000)
%45 = icmp ne i32 %44, 8
br i1 %45, label %46, label %50
46: ; preds = %41
%47 = load i8*, i8** %5
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %47)
%49 = call i32 @close_master_conn(i32 1)
store i32 -1, i32* %3
br label %215
50: ; preds = %41
%51 = getelementptr inbounds [16 x i32], [16 x i32]* %6, i64 0, i64 0
store i32* %51, i32** %9
%52 = call i32 @get32bit(i32** %9)
store i32 %52, i32* %10
%53 = call i32 @get32bit(i32** %9)
store i32 %53, i32* %11
%54 = load i32, i32* %10
%55 = icmp ne i32 %54, 463
br i1 %55, label %56, label %60
56: ; preds = %50
%57 = load i8*, i8** %5
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* %57)
%59 = call i32 @close_master_conn(i32 1)
store i32 -1, i32* %3
br label %215
60: ; preds = %50
%61 = load i32, i32* %11
%62 = call i32* @malloc(i32 %61)
store i32* %62, i32** %8
%63 = load i32, i32* %20
%64 = load i32*, i32** %8
%65 = load i32, i32* %11
%66 = call i32 @tcptoread(i32 %63, i32* %64, i32 %65, i32 10000)
%67 = load i32, i32* %11
%68 = icmp ne i32 %66, %67
br i1 %68, label %69, label %75
69: ; preds = %60
%70 = load i8*, i8** %5
%71 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %70)
%72 = load i32*, i32** %8
%73 = call i32 @free(i32* %72)
%74 = call i32 @close_master_conn(i32 1)
store i32 -1, i32* %3
br label %215
75: ; preds = %60
%76 = load i32*, i32** %8
store i32* %76, i32** %9
%77 = call i32 @get32bit(i32** %9)
store i32 %77, i32* %10
%78 = load i32, i32* %10
%79 = icmp ne i32 %78, 0
br i1 %79, label %80, label %86
80: ; preds = %75
%81 = load i8*, i8** %5
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8* %81)
%83 = load i32*, i32** %8
%84 = call i32 @free(i32* %83)
%85 = call i32 @close_master_conn(i32 1)
store i32 -1, i32* %3
br label %215
86: ; preds = %75
%87 = load i32, i32* %11
%88 = sub nsw i32 %87, 4
store i32 %88, i32* %11
%89 = load i32, i32* %11
%90 = icmp eq i32 %89, 1
br i1 %90, label %91, label %100
91: ; preds = %86
%92 = load i8*, i8** %5
%93 = load i32*, i32** %9
%94 = load i32, i32* %93
%95 = call i8* @mfsstrerr(i32 %94)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %92, i8* %95)
%97 = load i32*, i32** %8
%98 = call i32 @free(i32* %97)
%99 = call i32 @close_master_conn(i32 1)
store i32 -1, i32* %3
br label %215
100: ; preds = %86
%101 = load i32, i32* %11
%102 = icmp ne i32 %101, 56
br i1 %102, label %103, label %112
103: ; preds = %100
%104 = load i32, i32* %11
%105 = icmp ne i32 %104, 40
br i1 %105, label %106, label %112
106: ; preds = %103
%107 = load i8*, i8** %5
%108 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i8* %107)
%109 = load i32*, i32** %8
%110 = call i32 @free(i32* %109)
%111 = call i32 @close_master_conn(i32 1)
store i32 -1, i32* %3
br label %215
112: ; preds = %103, %100
br label %113
113: ; preds = %112
%114 = call i32 @close_master_conn(i32 0)
%115 = call i32 @get32bit(i32** %9)
store i32 %115, i32* %13
%116 = call i32 @get32bit(i32** %9)
store i32 %116, i32* %14
%117 = call i32 @get32bit(i32** %9)
store i32 %117, i32* %15
%118 = load i32, i32* %11
%119 = icmp eq i32 %118, 56
br i1 %119, label %120, label %123
120: ; preds = %113
%121 = load i32*, i32** %9
%122 = getelementptr inbounds i32, i32* %121, i64 8
store i32* %122, i32** %9
br label %123
123: ; preds = %120, %113
%124 = call i32 @get32bit(i32** %9)
store i32 %124, i32* %16
%125 = load i32, i32* %11
%126 = icmp eq i32 %125, 56
br i1 %126, label %127, label %130
127: ; preds = %123
%128 = load i32*, i32** %9
%129 = getelementptr inbounds i32, i32* %128, i64 8
store i32* %129, i32** %9
br label %130
130: ; preds = %127, %123
%131 = call i32 @get64bit(i32** %9)
store i32 %131, i32* %17
%132 = call i32 @get64bit(i32** %9)
store i32 %132, i32* %18
%133 = call i32 @get64bit(i32** %9)
store i32 %133, i32* %19
%134 = load i32*, i32** %8
%135 = call i32 @free(i32* %134)
%136 = load i32, i32* %4
%137 = icmp eq i32 %136, 0
br i1 %137, label %138, label %155
138: ; preds = %130
%139 = load i8*, i8** %5
%140 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %139)
%141 = load i32, i32* %13
%142 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %141, i32 0, i32 0, i32 1)
%143 = load i32, i32* %14
%144 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %143, i32 0, i32 0, i32 1)
%145 = load i32, i32* %15
%146 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %145, i32 0, i32 0, i32 1)
%147 = load i32, i32* %16
%148 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %147, i32 0, i32 0, i32 1)
%149 = load i32, i32* %17
%150 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %149, i32 0, i32 1, i32 1)
%151 = load i32, i32* %18
%152 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %151, i32 0, i32 1, i32 1)
%153 = load i32, i32* %19
%154 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %153, i32 0, i32 1, i32 1)
br label %214
155: ; preds = %130
%156 = load i32, i32* %4
%157 = and i32 %156, 1
%158 = icmp ne i32 %157, 0
br i1 %158, label %159, label %163
159: ; preds = %155
%160 = load i32, i32* %13
%161 = call i32 @print_number_only(i32 %160, i32 0)
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %163
163: ; preds = %159, %155
%164 = load i32, i32* %4
%165 = and i32 %164, 2
%166 = icmp ne i32 %165, 0
br i1 %166, label %167, label %171
167: ; preds = %163
%168 = load i32, i32* %14
%169 = call i32 @print_number_only(i32 %168, i32 0)
%170 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %171
171: ; preds = %167, %163
%172 = load i32, i32* %4
%173 = and i32 %172, 4
%174 = icmp ne i32 %173, 0
br i1 %174, label %175, label %179
175: ; preds = %171
%176 = load i32, i32* %15
%177 = call i32 @print_number_only(i32 %176, i32 0)
%178 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %179
179: ; preds = %175, %171
%180 = load i32, i32* %4
%181 = and i32 %180, 8
%182 = icmp ne i32 %181, 0
br i1 %182, label %183, label %187
183: ; preds = %179
%184 = load i32, i32* %16
%185 = call i32 @print_number_only(i32 %184, i32 0)
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %187
187: ; preds = %183, %179
%188 = load i32, i32* %4
%189 = and i32 %188, 16
%190 = icmp ne i32 %189, 0
br i1 %190, label %191, label %195
191: ; preds = %187
%192 = load i32, i32* %17
%193 = call i32 @print_number_only(i32 %192, i32 1)
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %195
195: ; preds = %191, %187
%196 = load i32, i32* %4
%197 = and i32 %196, 32
%198 = icmp ne i32 %197, 0
br i1 %198, label %199, label %203
199: ; preds = %195
%200 = load i32, i32* %18
%201 = call i32 @print_number_only(i32 %200, i32 1)
%202 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %203
203: ; preds = %199, %195
%204 = load i32, i32* %4
%205 = and i32 %204, 64
%206 = icmp ne i32 %205, 0
br i1 %206, label %207, label %211
207: ; preds = %203
%208 = load i32, i32* %19
%209 = call i32 @print_number_only(i32 %208, i32 1)
%210 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %211
211: ; preds = %207, %203
%212 = load i8*, i8** %5
%213 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0), i8* %212)
br label %214
214: ; preds = %211, %138
store i32 0, i32* %3
br label %215
215: ; preds = %214, %106, %91, %80, %69, %56, %46, %37, %25
%216 = load i32, i32* %3
ret i32 %216
}

LLVM IR (-O2):
@.str = [30 x i8] c"%s: master query: send error\0A\00"
@.str.1 = [33 x i8] c"%s: master query: receive error\0A\00"
@.str.2 = [39 x i8] c"%s: master query: wrong answer (type)\0A\00"
@.str.3 = [42 x i8] c"%s: master query: wrong answer (queryid)\0A\00"
@.str.4 = [8 x i8] c"%s: %s\0A\00"
@.str.5 = [39 x i8] c"%s: master query: wrong answer (leng)\0A\00"
@.str.6 = [5 x i8] c"%s:\0A\00"
@.str.7 = [16 x i8] c" inodes: \00"
@.str.8 = [2 x i8] c"\0A\00"
@.str.9 = [16 x i8] c" directories: \00"
@.str.10 = [16 x i8] c" files: \00"
@.str.11 = [16 x i8] c" chunks: \00"
@.str.12 = [16 x i8] c" length: \00"
@.str.13 = [16 x i8] c" size: \00"
@.str.14 = [16 x i8] c" realsize: \00"
define i32 @dir_info(i32 %0, i8* %1) {
%3 = alloca [16 x i32]
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32
%7 = bitcast [16 x i32]* %3 to i8*
%8 = bitcast i32** %4 to i8*
%9 = bitcast i32** %5 to i8*
%10 = bitcast i32* %6 to i8*
%11 = call i32 @open_master_conn(i8* %1, i32* %6, i32* null, i32* null, i32 0, i32 0)
%12 = icmp slt i32 %11, 0
br i1 %12, label %144, label %13
13: ; preds = %2
%14 = getelementptr inbounds [16 x i32], [16 x i32]* %3, i64 0, i64 0
store i32* %14, i32** %4
%15 = call i32 @put32bit(i32** %4, i32 462)
%16 = call i32 @put32bit(i32** %4, i32 8)
%17 = call i32 @put32bit(i32** %4, i32 0)
%18 = load i32, i32* %6
%19 = call i32 @put32bit(i32** %4, i32 %18)
%20 = call i32 @tcptowrite(i32 %11, i32* %14, i32 16, i32 10000)
%21 = icmp eq i32 %20, 16
br i1 %21, label %25, label %22
22: ; preds = %13
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str, i64 0, i64 0), i8* %1)
%24 = call i32 @close_master_conn(i32 1)
br label %144
25: ; preds = %13
%26 = call i32 @tcptoread(i32 %11, i32* %14, i32 8, i32 10000)
%27 = icmp eq i32 %26, 8
br i1 %27, label %31, label %28
28: ; preds = %25
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%30 = call i32 @close_master_conn(i32 1)
br label %144
31: ; preds = %25
store i32* %14, i32** %5
%32 = call i32 @get32bit(i32** %5)
%33 = call i32 @get32bit(i32** %5)
%34 = icmp eq i32 %32, 463
br i1 %34, label %38, label %35
35: ; preds = %31
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.2, i64 0, i64 0), i8* %1)
%37 = call i32 @close_master_conn(i32 1)
br label %144
38: ; preds = %31
%39 = call i32* @malloc(i32 %33)
%40 = call i32 @tcptoread(i32 %11, i32* %39, i32 %33, i32 10000)
%41 = icmp eq i32 %40, %33
br i1 %41, label %46, label %42
42: ; preds = %38
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%44 = call i32 @free(i32* %39)
%45 = call i32 @close_master_conn(i32 1)
br label %144
46: ; preds = %38
store i32* %39, i32** %5
%47 = call i32 @get32bit(i32** %5)
%48 = icmp eq i32 %47, 0
br i1 %48, label %53, label %49
49: ; preds = %46
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i8* %1)
%51 = call i32 @free(i32* %39)
%52 = call i32 @close_master_conn(i32 1)
br label %144
53: ; preds = %46
%54 = add nsw i32 %33, -4
%55 = icmp eq i32 %54, 1
br i1 %55, label %56, label %63
56: ; preds = %53
%57 = load i32*, i32** %5
%58 = load i32, i32* %57
%59 = call i8* @mfsstrerr(i32 %58)
%60 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8* %1, i8* %59)
%61 = call i32 @free(i32* %39)
%62 = call i32 @close_master_conn(i32 1)
br label %144
63: ; preds = %53
%64 = and i32 %54, -17
%65 = icmp eq i32 %64, 40
br i1 %65, label %70, label %66
66: ; preds = %63
%67 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.5, i64 0, i64 0), i8* %1)
%68 = call i32 @free(i32* %39)
%69 = call i32 @close_master_conn(i32 1)
br label %144
70: ; preds = %63
%71 = call i32 @close_master_conn(i32 0)
%72 = call i32 @get32bit(i32** %5)
%73 = call i32 @get32bit(i32** %5)
%74 = call i32 @get32bit(i32** %5)
%75 = icmp eq i32 %54, 56
br i1 %75, label %78, label %76
76: ; preds = %70
%77 = call i32 @get32bit(i32** %5)
br label %84
78: ; preds = %70
%79 = load i32*, i32** %5
%80 = getelementptr inbounds i32, i32* %79, i64 8
store i32* %80, i32** %5
%81 = call i32 @get32bit(i32** %5)
%82 = load i32*, i32** %5
%83 = getelementptr inbounds i32, i32* %82, i64 8
store i32* %83, i32** %5
br label %84
84: ; preds = %76, %78
%85 = phi i32 [ %81, %78 ], [ %77, %76 ]
%86 = call i32 @get64bit(i32** %5)
%87 = call i32 @get64bit(i32** %5)
%88 = call i32 @get64bit(i32** %5)
%89 = call i32 @free(i32* %39)
%90 = icmp eq i32 %0, 0
br i1 %90, label %91, label %100
91: ; preds = %84
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* %1)
%93 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %72, i32 0, i32 0, i32 1)
%94 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %73, i32 0, i32 0, i32 1)
%95 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %74, i32 0, i32 0, i32 1)
%96 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %85, i32 0, i32 0, i32 1)
%97 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %86, i32 0, i32 1, i32 1)
%98 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %87, i32 0, i32 1, i32 1)
%99 = call i32 @print_number(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0), i32 %88, i32 0, i32 1, i32 1)
br label %144
100: ; preds = %84
%101 = and i32 %0, 1
%102 = icmp eq i32 %101, 0
br i1 %102, label %106, label %103
103: ; preds = %100
%104 = call i32 @print_number_only(i32 %72, i32 0)
%105 = call i32 @putchar(i32 9)
br label %106
106: ; preds = %103, %100
%107 = and i32 %0, 2
%108 = icmp eq i32 %107, 0
br i1 %108, label %112, label %109
109: ; preds = %106
%110 = call i32 @print_number_only(i32 %73, i32 0)
%111 = call i32 @putchar(i32 9)
br label %112
112: ; preds = %109, %106
%113 = and i32 %0, 4
%114 = icmp eq i32 %113, 0
br i1 %114, label %118, label %115
115: ; preds = %112
%116 = call i32 @print_number_only(i32 %74, i32 0)
%117 = call i32 @putchar(i32 9)
br label %118
118: ; preds = %115, %112
%119 = and i32 %0, 8
%120 = icmp eq i32 %119, 0
br i1 %120, label %124, label %121
121: ; preds = %118
%122 = call i32 @print_number_only(i32 %85, i32 0)
%123 = call i32 @putchar(i32 9)
br label %124
124: ; preds = %121, %118
%125 = and i32 %0, 16
%126 = icmp eq i32 %125, 0
br i1 %126, label %130, label %127
127: ; preds = %124
%128 = call i32 @print_number_only(i32 %86, i32 1)
%129 = call i32 @putchar(i32 9)
br label %130
130: ; preds = %127, %124
%131 = and i32 %0, 32
%132 = icmp eq i32 %131, 0
br i1 %132, label %136, label %133
133: ; preds = %130
%134 = call i32 @print_number_only(i32 %87, i32 1)
%135 = call i32 @putchar(i32 9)
br label %136
136: ; preds = %133, %130
%137 = and i32 %0, 64
%138 = icmp eq i32 %137, 0
br i1 %138, label %142, label %139
139: ; preds = %136
%140 = call i32 @print_number_only(i32 %88, i32 1)
%141 = call i32 @putchar(i32 9)
br label %142
142: ; preds = %139, %136
%143 = call i32 @puts(i8* dereferenceable(1) %1)
br label %144
144: ; preds = %91, %142, %2, %66, %56, %49, %42, %35, %28, %22
%145 = phi i32 [ -1, %22 ], [ -1, %28 ], [ -1, %35 ], [ -1, %42 ], [ -1, %49 ], [ -1, %56 ], [ -1, %66 ], [ -1, %2 ], [ 0, %142 ], [ 0, %91 ]
ret i32 %145
}