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

/* Variables and functions */
char *archdep_filename_parameter(char const *);
char *archdep_quote_parameter(char *);
int archdep_spawn(char const *, char **, char **, int /*<<< orphan*/ *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ ioutil_remove(char *);
scalar_t__ is_valid_extension(char *, size_t, size_t);
scalar_t__ is_zipcode_name(char *);
int /*<<< orphan*/ lib_free(char *);
char *lib_stralloc(char const *);
scalar_t__ strcasecmp(char const *, char const *);
size_t strlen(char const *);
char *try_uncompress_archive(const char *name, int write_mode,
                             const char *program, const char *listopts,
                             const char *extractopts, const char *extension,
                             const char *search) {
  char *tmp_name = NULL;
  size_t l = strlen(name), len, nameoffset;
  int found = 0;
  int exit_status;
  char *argv[8];
  FILE *fd;
  char tmp[1024];
  len = strlen(extension);
  if (l <= len || strcasecmp(name + l - len, extension) != 0)
    return NULL;
  argv[0] = lib_stralloc(program);
  argv[1] = lib_stralloc(listopts);
  argv[2] = archdep_filename_parameter(name);
  argv[3] = NULL;

  ;
  exit_status = archdep_spawn(program, argv, &tmp_name, NULL);
  lib_free(argv[0]);
  lib_free(argv[1]);
  lib_free(argv[2]);
  if (exit_status != 0) {

    ;
    ioutil_remove(tmp_name);
    lib_free(tmp_name);
    return NULL;
  }

  ;
  fd = fopen(tmp_name, "r");
  if (!fd) {

    ;
    ioutil_remove(tmp_name);
    lib_free(tmp_name);
    return NULL;
  };
  nameoffset = search ? -1 : 0;
  len = search ? strlen(search) : 0;
  while (!feof(fd) && !found) {
    if (fgets(tmp, 1024, fd) == NULL) {
      break;
    }
    l = strlen(tmp);
    while (l > 0) {
      tmp[--l] = 0;
      if ((nameoffset > 1024) && l >= len &&
          !strcasecmp(tmp + l - len, search) != 0) {
        nameoffset = l - 4;
      }
      if (nameoffset <= 1024 && is_valid_extension(tmp, l, nameoffset)) {

        ;
        found = 1;
        break;
      }
    }
  }
  fclose(fd);
  ioutil_remove(tmp_name);
  if (!found) {
    ;
    lib_free(tmp_name);
    return NULL;
  }
  if (write_mode) {
    ;
    lib_free(tmp_name);
    return "";
  }
  argv[0] = lib_stralloc(program);
  argv[1] = lib_stralloc(extractopts);
  argv[2] = archdep_filename_parameter(name);
  if (is_zipcode_name(tmp + nameoffset)) {
    argv[3] = lib_stralloc(tmp + nameoffset);
    argv[4] = lib_stralloc(tmp + nameoffset);
    argv[5] = lib_stralloc(tmp + nameoffset);
    argv[6] = lib_stralloc(tmp + nameoffset);
    argv[7] = NULL;
    argv[3][0] = '1';
    argv[4][0] = '2';
    argv[5][0] = '3';
    argv[6][0] = '4';
  } else {
    argv[3] = archdep_quote_parameter(tmp + nameoffset);
    argv[4] = NULL;
  }

  ;
  exit_status = archdep_spawn(program, argv, &tmp_name, NULL);
  lib_free(argv[0]);
  lib_free(argv[1]);
  lib_free(argv[2]);
  lib_free(argv[3]);
  if (is_zipcode_name(tmp + nameoffset)) {
    lib_free(argv[4]);
    lib_free(argv[5]);
    lib_free(argv[6]);
  }
  if (exit_status != 0) {

    ;
    ioutil_remove(tmp_name);
    lib_free(tmp_name);
    return NULL;
  }

  ;
  return tmp_name;
}


x86 assembly (clang, -O0):
<try_uncompress_archive>:
push   %rbp
mov    %rsp,%rbp
sub    $0x4c0,%rsp
mov    0x10(%rbp),%rax
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
mov    %r9,-0x38(%rbp)
movq   $0x0,-0x40(%rbp)
mov    -0x10(%rbp),%rdi
call   10a0 <strlen@plt>
mov    %rax,-0x48(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x38(%rbp),%rdi
call   10a0 <strlen@plt>
mov    %rax,-0x50(%rbp)
mov    -0x48(%rbp),%rax
cmp    -0x50(%rbp),%rax
jbe    1261 <try_uncompress_archive+0x81>
mov    -0x10(%rbp),%rdi
add    -0x48(%rbp),%rdi
xor    %eax,%eax
sub    -0x50(%rbp),%rax
add    %rax,%rdi
mov    -0x38(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
je     126e <try_uncompress_archive+0x8e>
movq   $0x0,-0x8(%rbp)
jmp    16cf <try_uncompress_archive+0x4ef>
mov    -0x20(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0xa0(%rbp)
mov    -0x28(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0x98(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <archdep_filename_parameter@plt>
mov    %rax,-0x90(%rbp)
movq   $0x0,-0x88(%rbp)
mov    -0x20(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
lea    -0x40(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1090 <archdep_spawn@plt>
mov    %eax,-0x60(%rbp)
mov    -0xa0(%rbp),%rdi
call   1070 <lib_free@plt>
mov    -0x98(%rbp),%rdi
call   1070 <lib_free@plt>
mov    -0x90(%rbp),%rdi
call   1070 <lib_free@plt>
cmpl   $0x0,-0x60(%rbp)
je     1311 <try_uncompress_archive+0x131>
mov    -0x40(%rbp),%rdi
call   10c0 <ioutil_remove@plt>
mov    -0x40(%rbp),%rdi
call   1070 <lib_free@plt>
movq   $0x0,-0x8(%rbp)
jmp    16cf <try_uncompress_archive+0x4ef>
mov    -0x40(%rbp),%rdi
lea    0xce4(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xa8(%rbp)
cmpq   $0x0,-0xa8(%rbp)
jne    1355 <try_uncompress_archive+0x175>
mov    -0x40(%rbp),%rdi
call   10c0 <ioutil_remove@plt>
mov    -0x40(%rbp),%rdi
call   1070 <lib_free@plt>
movq   $0x0,-0x8(%rbp)
jmp    16cf <try_uncompress_archive+0x4ef>
mov    0x10(%rbp),%rdx
xor    %eax,%eax
mov    $0xffffffff,%ecx
cmp    $0x0,%rdx
cmovne %ecx,%eax
cltq
mov    %rax,-0x58(%rbp)
cmpq   $0x0,0x10(%rbp)
je     138d <try_uncompress_archive+0x1ad>
mov    0x10(%rbp),%rdi
call   10a0 <strlen@plt>
mov    %rax,-0x4b8(%rbp)
jmp    139b <try_uncompress_archive+0x1bb>
xor    %eax,%eax
mov    %rax,-0x4b8(%rbp)
jmp    139b <try_uncompress_archive+0x1bb>
mov    -0x4b8(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0xa8(%rbp),%rdi
call   10e0 <feof@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x0,%ecx
mov    %al,-0x4b9(%rbp)
jne    13d4 <try_uncompress_archive+0x1f4>
cmpl   $0x0,-0x5c(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0x4b9(%rbp)
mov    -0x4b9(%rbp),%al
test   $0x1,%al
jne    13e7 <try_uncompress_archive+0x207>
jmp    14de <try_uncompress_archive+0x2fe>
lea    -0x4b0(%rbp),%rdi
mov    -0xa8(%rbp),%rdx
mov    $0x400,%esi
call   10d0 <fgets@plt>
cmp    $0x0,%rax
jne    140e <try_uncompress_archive+0x22e>
jmp    14de <try_uncompress_archive+0x2fe>
lea    -0x4b0(%rbp),%rdi
call   10a0 <strlen@plt>
mov    %rax,-0x48(%rbp)
cmpq   $0x0,-0x48(%rbp)
jbe    14d9 <try_uncompress_archive+0x2f9>
mov    -0x48(%rbp),%rax
mov    %rax,%rcx
add    $0xffffffffffffffff,%rcx
mov    %rcx,-0x48(%rbp)
movb   $0x0,-0x4b1(%rbp,%rax,1)
cmpq   $0x400,-0x58(%rbp)
jbe    149c <try_uncompress_archive+0x2bc>
mov    -0x48(%rbp),%rax
cmp    -0x50(%rbp),%rax
jb     149c <try_uncompress_archive+0x2bc>
lea    -0x4b0(%rbp),%rdi
add    -0x48(%rbp),%rdi
xor    %eax,%eax
sub    -0x50(%rbp),%rax
add    %rax,%rdi
mov    0x10(%rbp),%rsi
call   1030 <strcasecmp@plt>
cmp    $0x0,%rax
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%eax
cmp    $0x0,%eax
je     149c <try_uncompress_archive+0x2bc>
mov    -0x48(%rbp),%rax
sub    $0x4,%rax
mov    %rax,-0x58(%rbp)
cmpq   $0x400,-0x58(%rbp)
ja     14d4 <try_uncompress_archive+0x2f4>
lea    -0x4b0(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    -0x58(%rbp),%rdx
call   10b0 <is_valid_extension@plt>
cmp    $0x0,%rax
je     14d4 <try_uncompress_archive+0x2f4>
movl   $0x1,-0x5c(%rbp)
jmp    14d9 <try_uncompress_archive+0x2f9>
jmp    141e <try_uncompress_archive+0x23e>
jmp    13a6 <try_uncompress_archive+0x1c6>
mov    -0xa8(%rbp),%rdi
call   1080 <fclose@plt>
mov    -0x40(%rbp),%rdi
call   10c0 <ioutil_remove@plt>
cmpl   $0x0,-0x5c(%rbp)
jne    1513 <try_uncompress_archive+0x333>
mov    -0x40(%rbp),%rdi
call   1070 <lib_free@plt>
movq   $0x0,-0x8(%rbp)
jmp    16cf <try_uncompress_archive+0x4ef>
cmpl   $0x0,-0x14(%rbp)
je     1536 <try_uncompress_archive+0x356>
mov    -0x40(%rbp),%rdi
call   1070 <lib_free@plt>
lea    0xad4(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    16cf <try_uncompress_archive+0x4ef>
mov    -0x20(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0xa0(%rbp)
mov    -0x30(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0x98(%rbp)
mov    -0x10(%rbp),%rdi
call   1050 <archdep_filename_parameter@plt>
mov    %rax,-0x90(%rbp)
lea    -0x4b0(%rbp),%rdi
add    -0x58(%rbp),%rdi
call   1040 <is_zipcode_name@plt>
cmp    $0x0,%rax
je     15ff <try_uncompress_archive+0x41f>
lea    -0x4b0(%rbp),%rdi
add    -0x58(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0x88(%rbp)
lea    -0x4b0(%rbp),%rdi
add    -0x58(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0x80(%rbp)
lea    -0x4b0(%rbp),%rdi
add    -0x58(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0x78(%rbp)
lea    -0x4b0(%rbp),%rdi
add    -0x58(%rbp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,-0x70(%rbp)
movq   $0x0,-0x68(%rbp)
mov    -0x88(%rbp),%rax
movb   $0x31,(%rax)
mov    -0x80(%rbp),%rax
movb   $0x32,(%rax)
mov    -0x78(%rbp),%rax
movb   $0x33,(%rax)
mov    -0x70(%rbp),%rax
movb   $0x34,(%rax)
jmp    161e <try_uncompress_archive+0x43e>
lea    -0x4b0(%rbp),%rdi
add    -0x58(%rbp),%rdi
call   1100 <archdep_quote_parameter@plt>
mov    %rax,-0x88(%rbp)
movq   $0x0,-0x80(%rbp)
mov    -0x20(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
lea    -0x40(%rbp),%rdx
xor    %eax,%eax
mov    %eax,%ecx
call   1090 <archdep_spawn@plt>
mov    %eax,-0x60(%rbp)
mov    -0xa0(%rbp),%rdi
call   1070 <lib_free@plt>
mov    -0x98(%rbp),%rdi
call   1070 <lib_free@plt>
mov    -0x90(%rbp),%rdi
call   1070 <lib_free@plt>
mov    -0x88(%rbp),%rdi
call   1070 <lib_free@plt>
lea    -0x4b0(%rbp),%rdi
add    -0x58(%rbp),%rdi
call   1040 <is_zipcode_name@plt>
cmp    $0x0,%rax
je     169e <try_uncompress_archive+0x4be>
mov    -0x80(%rbp),%rdi
call   1070 <lib_free@plt>
mov    -0x78(%rbp),%rdi
call   1070 <lib_free@plt>
mov    -0x70(%rbp),%rdi
call   1070 <lib_free@plt>
cmpl   $0x0,-0x60(%rbp)
je     16c7 <try_uncompress_archive+0x4e7>
mov    -0x40(%rbp),%rdi
call   10c0 <ioutil_remove@plt>
mov    -0x40(%rbp),%rdi
call   1070 <lib_free@plt>
movq   $0x0,-0x8(%rbp)
jmp    16cf <try_uncompress_archive+0x4ef>
mov    -0x40(%rbp),%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x4c0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<try_uncompress_archive>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x498,%rsp
mov    %r9,%rbx
mov    %r8,0x20(%rsp)
mov    %rcx,%r15
mov    %rdx,%r14
mov    %esi,%r12d
mov    %rdi,%r13
movq   $0x0,0x10(%rsp)
call   10a0 <strlen@plt>
mov    %rax,%rbp
mov    %rbx,%rdi
call   10a0 <strlen@plt>
cmp    %rax,%rbp
jbe    1248 <try_uncompress_archive+0x68>
mov    %r15,0x18(%rsp)
mov    0x20(%rsp),%r15
mov    %r12d,0x2c(%rsp)
add    %r13,%rbp
sub    %rax,%rbp
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1030 <strcasecmp@plt>
test   %rax,%rax
je     125f <try_uncompress_archive+0x7f>
xor    %ebp,%ebp
mov    %rbp,%rax
add    $0x498,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    %r14,%r12
mov    %r14,%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,0x30(%rsp)
mov    0x18(%rsp),%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,0x38(%rsp)
mov    %r13,%rdi
call   1050 <archdep_filename_parameter@plt>
mov    %rax,0x40(%rsp)
movq   $0x0,0x48(%rsp)
lea    0x30(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %r14,%rdi
xor    %ecx,%ecx
call   1090 <archdep_spawn@plt>
mov    %eax,%ebx
mov    0x30(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x38(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x40(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x10(%rsp),%rbp
test   %ebx,%ebx
je     12ea <try_uncompress_archive+0x10a>
mov    %rbp,%rdi
call   10c0 <ioutil_remove@plt>
xor    %ebp,%ebp
mov    0x10(%rsp),%rdi
call   1070 <lib_free@plt>
jmp    124a <try_uncompress_archive+0x6a>
lea    0xd0f(%rip),%rsi
mov    %rbp,%rdi
call   10f0 <fopen@plt>
test   %rax,%rax
je     132b <try_uncompress_archive+0x14b>
mov    %rax,%r14
mov    %r13,0x78(%rsp)
mov    %r12,0x80(%rsp)
mov    0x4d0(%rsp),%rdi
xor    %ebp,%ebp
test   %rdi,%rdi
setne  %bpl
je     1332 <try_uncompress_archive+0x152>
call   10a0 <strlen@plt>
mov    %rax,%rbx
jmp    1334 <try_uncompress_archive+0x154>
mov    0x10(%rsp),%rbp
jmp    12d1 <try_uncompress_archive+0xf1>
xor    %ebx,%ebx
mov    %r15,%r13
neg    %rbp
mov    %r14,%rdi
mov    %r14,%r12
call   10e0 <feof@plt>
test   %eax,%eax
je     1386 <try_uncompress_archive+0x1a6>
mov    $0x1,%al
mov    %eax,0xc(%rsp)
mov    %r12,%rcx
mov    %rcx,%rdi
call   1080 <fclose@plt>
mov    0x10(%rsp),%rdi
call   10c0 <ioutil_remove@plt>
cmpb   $0x0,0xc(%rsp)
jne    12d9 <try_uncompress_archive+0xf9>
cmpl   $0x0,0x2c(%rsp)
je     14a4 <try_uncompress_archive+0x2c4>
lea    0xc80(%rip),%rbp
jmp    12db <try_uncompress_archive+0xfb>
lea    0x90(%rsp),%r14
mov    %r14,%r15
sub    %rbx,%r15
mov    %r12,%rcx
mov    %rbx,0x88(%rsp)
jmp    13b4 <try_uncompress_archive+0x1d4>
mov    0x20(%rsp),%r13
call   10e0 <feof@plt>
mov    %r12,%rcx
or     0x18(%rsp),%eax
jne    1352 <try_uncompress_archive+0x172>
mov    %r15,%rbx
mov    %r14,%r15
mov    %r14,%rdi
mov    $0x400,%esi
mov    %rcx,%rdx
call   10d0 <fgets@plt>
test   %rax,%rax
je     1349 <try_uncompress_archive+0x169>
mov    %r15,%r14
mov    %r15,%rdi
call   10a0 <strlen@plt>
test   %rax,%rax
je     1486 <try_uncompress_archive+0x2a6>
mov    %rax,%r13
movl   $0x0,0x18(%rsp)
mov    $0x1,%al
mov    %eax,0xc(%rsp)
add    $0xffffffffffffffff,%r13
mov    %r12,%rdi
mov    %rbx,%r15
mov    0x88(%rsp),%rbx
jmp    1419 <try_uncompress_archive+0x239>
nopl   0x0(%rax)
mov    %r12,%rdi
add    $0xffffffffffffffff,%r13
jae    13a1 <try_uncompress_archive+0x1c1>
movb   $0x0,0x90(%rsp,%r13,1)
cmp    $0x401,%rbp
jb     144d <try_uncompress_archive+0x26d>
cmp    %rbx,%r13
jb     144d <try_uncompress_archive+0x26d>
lea    (%r15,%r13,1),%rdi
mov    0x4d0(%rsp),%rsi
call   1030 <strcasecmp@plt>
mov    %r12,%rdi
test   %rax,%rax
jne    1413 <try_uncompress_archive+0x233>
lea    -0x4(%r13),%rbp
cmp    $0x400,%rbp
ja     1413 <try_uncompress_archive+0x233>
mov    %r14,%rdi
mov    %r13,%rsi
mov    %rbp,%rdx
call   10b0 <is_valid_extension@plt>
test   %rax,%rax
je     1410 <try_uncompress_archive+0x230>
movl   $0x1,0x18(%rsp)
movl   $0x0,0xc(%rsp)
mov    0x20(%rsp),%r13
mov    %r12,%rdi
jmp    13a6 <try_uncompress_archive+0x1c6>
movl   $0x0,0x18(%rsp)
mov    $0x1,%al
mov    %eax,0xc(%rsp)
mov    0x20(%rsp),%r13
mov    %r12,%rdi
mov    %rbx,%r15
jmp    13a6 <try_uncompress_archive+0x1c6>
mov    0x80(%rsp),%r14
mov    %r14,%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,0x30(%rsp)
mov    %r13,%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,0x38(%rsp)
mov    0x78(%rsp),%rdi
call   1050 <archdep_filename_parameter@plt>
mov    %rax,0x40(%rsp)
lea    (%rsp,%rbp,1),%rbx
add    $0x90,%rbx
mov    %rbx,%rdi
call   1040 <is_zipcode_name@plt>
mov    %rbx,%rdi
test   %rax,%rax
je     154c <try_uncompress_archive+0x36c>
call   1060 <lib_stralloc@plt>
mov    %rax,0x48(%rsp)
mov    %rbx,%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,0x50(%rsp)
mov    %rbx,%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,0x58(%rsp)
mov    %rbx,%rdi
call   1060 <lib_stralloc@plt>
mov    %rax,0x60(%rsp)
movq   $0x0,0x68(%rsp)
mov    0x48(%rsp),%rax
movb   $0x31,(%rax)
mov    0x50(%rsp),%rax
movb   $0x32,(%rax)
mov    0x58(%rsp),%rax
movb   $0x33,(%rax)
mov    0x60(%rsp),%rax
movb   $0x34,(%rax)
jmp    155f <try_uncompress_archive+0x37f>
call   1100 <archdep_quote_parameter@plt>
mov    %rax,0x48(%rsp)
movq   $0x0,0x50(%rsp)
lea    0x30(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %r14,%rdi
xor    %ecx,%ecx
call   1090 <archdep_spawn@plt>
mov    %eax,%r14d
mov    0x30(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x38(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x40(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x48(%rsp),%rdi
call   1070 <lib_free@plt>
mov    %rbx,%rdi
call   1040 <is_zipcode_name@plt>
test   %rax,%rax
je     15c9 <try_uncompress_archive+0x3e9>
mov    0x50(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x58(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x60(%rsp),%rdi
call   1070 <lib_free@plt>
mov    0x10(%rsp),%rbp
test   %r14d,%r14d
jne    12d1 <try_uncompress_archive+0xf1>
jmp    124a <try_uncompress_archive+0x6a>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@.str.1 = [1 x i8] zeroinitializer
define i8* @try_uncompress_archive(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4, i8* %5, i8* %6) {
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i8*
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i64
%18 = alloca i64
%19 = alloca i64
%20 = alloca i32
%21 = alloca i32
%22 = alloca [8 x i8*]
%23 = alloca i32*
%24 = alloca [1024 x i8]
store i8* %0, i8** %9
store i32 %1, i32* %10
store i8* %2, i8** %11
store i8* %3, i8** %12
store i8* %4, i8** %13
store i8* %5, i8** %14
store i8* %6, i8** %15
store i8* null, i8** %16
%25 = load i8*, i8** %9
%26 = call i64 @strlen(i8* %25)
store i64 %26, i64* %17
store i32 0, i32* %20
%27 = load i8*, i8** %14
%28 = call i64 @strlen(i8* %27)
store i64 %28, i64* %18
%29 = load i64, i64* %17
%30 = load i64, i64* %18
%31 = icmp ule i64 %29, %30
br i1 %31, label %42, label %32
32: ; preds = %7
%33 = load i8*, i8** %9
%34 = load i64, i64* %17
%35 = getelementptr inbounds i8, i8* %33, i64 %34
%36 = load i64, i64* %18
%37 = sub i64 0, %36
%38 = getelementptr inbounds i8, i8* %35, i64 %37
%39 = load i8*, i8** %14
%40 = call i64 @strcasecmp(i8* %38, i8* %39)
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %43
42: ; preds = %32, %7
store i8* null, i8** %8
br label %270
43: ; preds = %32
%44 = load i8*, i8** %11
%45 = call i8* @lib_stralloc(i8* %44)
%46 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 0
store i8* %45, i8** %46
%47 = load i8*, i8** %12
%48 = call i8* @lib_stralloc(i8* %47)
%49 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 1
store i8* %48, i8** %49
%50 = load i8*, i8** %9
%51 = call i8* @archdep_filename_parameter(i8* %50)
%52 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 2
store i8* %51, i8** %52
%53 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 3
store i8* null, i8** %53
%54 = load i8*, i8** %11
%55 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 0
%56 = call i32 @archdep_spawn(i8* %54, i8** %55, i8** %16, i32* null)
store i32 %56, i32* %21
%57 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 0
%58 = load i8*, i8** %57
%59 = call i32 @lib_free(i8* %58)
%60 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 1
%61 = load i8*, i8** %60
%62 = call i32 @lib_free(i8* %61)
%63 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 2
%64 = load i8*, i8** %63
%65 = call i32 @lib_free(i8* %64)
%66 = load i32, i32* %21
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %43
%69 = load i8*, i8** %16
%70 = call i32 @ioutil_remove(i8* %69)
%71 = load i8*, i8** %16
%72 = call i32 @lib_free(i8* %71)
store i8* null, i8** %8
br label %270
73: ; preds = %43
%74 = load i8*, i8** %16
%75 = call i32* @fopen(i8* %74, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %75, i32** %23
%76 = load i32*, i32** %23
%77 = icmp ne i32* %76, null
br i1 %77, label %83, label %78
78: ; preds = %73
%79 = load i8*, i8** %16
%80 = call i32 @ioutil_remove(i8* %79)
%81 = load i8*, i8** %16
%82 = call i32 @lib_free(i8* %81)
store i8* null, i8** %8
br label %270
83: ; preds = %73
%84 = load i8*, i8** %15
%85 = icmp ne i8* %84, null
%86 = zext i1 %85 to i64
%87 = select i1 %85, i32 -1, i32 0
%88 = sext i32 %87 to i64
store i64 %88, i64* %19
%89 = load i8*, i8** %15
%90 = icmp ne i8* %89, null
br i1 %90, label %91, label %94
91: ; preds = %83
%92 = load i8*, i8** %15
%93 = call i64 @strlen(i8* %92)
br label %95
94: ; preds = %83
br label %95
95: ; preds = %94, %91
%96 = phi i64 [ %93, %91 ], [ 0, %94 ]
store i64 %96, i64* %18
br label %97
97: ; preds = %156, %95
%98 = load i32*, i32** %23
%99 = call i32 @feof(i32* %98)
%100 = icmp ne i32 %99, 0
br i1 %100, label %105, label %101
101: ; preds = %97
%102 = load i32, i32* %20
%103 = icmp ne i32 %102, 0
%104 = xor i1 %103, true
br label %105
105: ; preds = %101, %97
%106 = phi i1 [ false, %97 ], [ %104, %101 ]
br i1 %106, label %107, label %157
107: ; preds = %105
%108 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%109 = load i32*, i32** %23
%110 = call i32* @fgets(i8* %108, i32 1024, i32* %109)
%111 = icmp eq i32* %110, null
br i1 %111, label %112, label %113
112: ; preds = %107
br label %157
113: ; preds = %107
%114 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%115 = call i64 @strlen(i8* %114)
store i64 %115, i64* %17
br label %116
116: ; preds = %155, %113
%117 = load i64, i64* %17
%118 = icmp ugt i64 %117, 0
br i1 %118, label %119, label %156
119: ; preds = %116
%120 = load i64, i64* %17
%121 = add i64 %120, -1
store i64 %121, i64* %17
%122 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 %121
store i8 0, i8* %122
%123 = load i64, i64* %19
%124 = icmp ugt i64 %123, 1024
br i1 %124, label %125, label %145
125: ; preds = %119
%126 = load i64, i64* %17
%127 = load i64, i64* %18
%128 = icmp uge i64 %126, %127
br i1 %128, label %129, label %145
129: ; preds = %125
%130 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%131 = load i64, i64* %17
%132 = getelementptr inbounds i8, i8* %130, i64 %131
%133 = load i64, i64* %18
%134 = sub i64 0, %133
%135 = getelementptr inbounds i8, i8* %132, i64 %134
%136 = load i8*, i8** %15
%137 = call i64 @strcasecmp(i8* %135, i8* %136)
%138 = icmp ne i64 %137, 0
%139 = xor i1 %138, true
%140 = zext i1 %139 to i32
%141 = icmp ne i32 %140, 0
br i1 %141, label %142, label %145
142: ; preds = %129
%143 = load i64, i64* %17
%144 = sub i64 %143, 4
store i64 %144, i64* %19
br label %145
145: ; preds = %142, %129, %125, %119
%146 = load i64, i64* %19
%147 = icmp ule i64 %146, 1024
br i1 %147, label %148, label %155
148: ; preds = %145
%149 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%150 = load i64, i64* %17
%151 = load i64, i64* %19
%152 = call i64 @is_valid_extension(i8* %149, i64 %150, i64 %151)
%153 = icmp ne i64 %152, 0
br i1 %153, label %154, label %155
154: ; preds = %148
store i32 1, i32* %20
br label %156
155: ; preds = %148, %145
br label %116
156: ; preds = %154, %116
br label %97
157: ; preds = %112, %105
%158 = load i32*, i32** %23
%159 = call i32 @fclose(i32* %158)
%160 = load i8*, i8** %16
%161 = call i32 @ioutil_remove(i8* %160)
%162 = load i32, i32* %20
%163 = icmp ne i32 %162, 0
br i1 %163, label %167, label %164
164: ; preds = %157
%165 = load i8*, i8** %16
%166 = call i32 @lib_free(i8* %165)
store i8* null, i8** %8
br label %270
167: ; preds = %157
%168 = load i32, i32* %10
%169 = icmp ne i32 %168, 0
br i1 %169, label %170, label %173
170: ; preds = %167
%171 = load i8*, i8** %16
%172 = call i32 @lib_free(i8* %171)
store i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8** %8
br label %270
173: ; preds = %167
%174 = load i8*, i8** %11
%175 = call i8* @lib_stralloc(i8* %174)
%176 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 0
store i8* %175, i8** %176
%177 = load i8*, i8** %13
%178 = call i8* @lib_stralloc(i8* %177)
%179 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 1
store i8* %178, i8** %179
%180 = load i8*, i8** %9
%181 = call i8* @archdep_filename_parameter(i8* %180)
%182 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 2
store i8* %181, i8** %182
%183 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%184 = load i64, i64* %19
%185 = getelementptr inbounds i8, i8* %183, i64 %184
%186 = call i64 @is_zipcode_name(i8* %185)
%187 = icmp ne i64 %186, 0
br i1 %187, label %188, label %222
188: ; preds = %173
%189 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%190 = load i64, i64* %19
%191 = getelementptr inbounds i8, i8* %189, i64 %190
%192 = call i8* @lib_stralloc(i8* %191)
%193 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 3
store i8* %192, i8** %193
%194 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%195 = load i64, i64* %19
%196 = getelementptr inbounds i8, i8* %194, i64 %195
%197 = call i8* @lib_stralloc(i8* %196)
%198 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 4
store i8* %197, i8** %198
%199 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%200 = load i64, i64* %19
%201 = getelementptr inbounds i8, i8* %199, i64 %200
%202 = call i8* @lib_stralloc(i8* %201)
%203 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 5
store i8* %202, i8** %203
%204 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%205 = load i64, i64* %19
%206 = getelementptr inbounds i8, i8* %204, i64 %205
%207 = call i8* @lib_stralloc(i8* %206)
%208 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 6
store i8* %207, i8** %208
%209 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 7
store i8* null, i8** %209
%210 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 3
%211 = load i8*, i8** %210
%212 = getelementptr inbounds i8, i8* %211, i64 0
store i8 49, i8* %212
%213 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 4
%214 = load i8*, i8** %213
%215 = getelementptr inbounds i8, i8* %214, i64 0
store i8 50, i8* %215
%216 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 5
%217 = load i8*, i8** %216
%218 = getelementptr inbounds i8, i8* %217, i64 0
store i8 51, i8* %218
%219 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 6
%220 = load i8*, i8** %219
%221 = getelementptr inbounds i8, i8* %220, i64 0
store i8 52, i8* %221
br label %229
222: ; preds = %173
%223 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%224 = load i64, i64* %19
%225 = getelementptr inbounds i8, i8* %223, i64 %224
%226 = call i8* @archdep_quote_parameter(i8* %225)
%227 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 3
store i8* %226, i8** %227
%228 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 4
store i8* null, i8** %228
br label %229
229: ; preds = %222, %188
%230 = load i8*, i8** %11
%231 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 0
%232 = call i32 @archdep_spawn(i8* %230, i8** %231, i8** %16, i32* null)
store i32 %232, i32* %21
%233 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 0
%234 = load i8*, i8** %233
%235 = call i32 @lib_free(i8* %234)
%236 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 1
%237 = load i8*, i8** %236
%238 = call i32 @lib_free(i8* %237)
%239 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 2
%240 = load i8*, i8** %239
%241 = call i32 @lib_free(i8* %240)
%242 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 3
%243 = load i8*, i8** %242
%244 = call i32 @lib_free(i8* %243)
%245 = getelementptr inbounds [1024 x i8], [1024 x i8]* %24, i64 0, i64 0
%246 = load i64, i64* %19
%247 = getelementptr inbounds i8, i8* %245, i64 %246
%248 = call i64 @is_zipcode_name(i8* %247)
%249 = icmp ne i64 %248, 0
br i1 %249, label %250, label %260
250: ; preds = %229
%251 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 4
%252 = load i8*, i8** %251
%253 = call i32 @lib_free(i8* %252)
%254 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 5
%255 = load i8*, i8** %254
%256 = call i32 @lib_free(i8* %255)
%257 = getelementptr inbounds [8 x i8*], [8 x i8*]* %22, i64 0, i64 6
%258 = load i8*, i8** %257
%259 = call i32 @lib_free(i8* %258)
br label %260
260: ; preds = %250, %229
%261 = load i32, i32* %21
%262 = icmp ne i32 %261, 0
br i1 %262, label %263, label %268
263: ; preds = %260
%264 = load i8*, i8** %16
%265 = call i32 @ioutil_remove(i8* %264)
%266 = load i8*, i8** %16
%267 = call i32 @lib_free(i8* %266)
store i8* null, i8** %8
br label %270
268: ; preds = %260
%269 = load i8*, i8** %16
store i8* %269, i8** %8
br label %270
270: ; preds = %268, %263, %170, %164, %78, %68, %42
%271 = load i8*, i8** %8
ret i8* %271
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@.str.1 = [1 x i8] zeroinitializer
define i8* @try_uncompress_archive(i8* %0, i32 %1, i8* %2, i8* %3, i8* %4, i8* nocapture %5, i8* %6) {
%8 = alloca i8*
%9 = alloca [8 x i8*]
%10 = alloca [1024 x i8]
%11 = bitcast i8** %8 to i8*
store i8* null, i8** %8
%12 = tail call i64 @strlen(i8* dereferenceable(1) %0)
%13 = bitcast [8 x i8*]* %9 to i8*
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 0
%15 = tail call i64 @strlen(i8* dereferenceable(1) %5)
%16 = icmp ugt i64 %12, %15
br i1 %16, label %17, label %156
17: ; preds = %7
%18 = getelementptr inbounds i8, i8* %0, i64 %12
%19 = sub i64 0, %15
%20 = getelementptr inbounds i8, i8* %18, i64 %19
%21 = tail call i64 @strcasecmp(i8* %20, i8* %5)
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %156
23: ; preds = %17
%24 = tail call i8* @lib_stralloc(i8* %2)
%25 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 0
store i8* %24, i8** %25
%26 = tail call i8* @lib_stralloc(i8* %3)
%27 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 1
store i8* %26, i8** %27
%28 = tail call i8* @archdep_filename_parameter(i8* %0)
%29 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 2
store i8* %28, i8** %29
%30 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 3
store i8* null, i8** %30
%31 = call i32 @archdep_spawn(i8* %2, i8** %25, i8** %8, i32* null)
%32 = load i8*, i8** %25
%33 = call i32 @lib_free(i8* %32)
%34 = load i8*, i8** %27
%35 = call i32 @lib_free(i8* %34)
%36 = load i8*, i8** %29
%37 = call i32 @lib_free(i8* %36)
%38 = icmp eq i32 %31, 0
%39 = load i8*, i8** %8
br i1 %38, label %40, label %149
40: ; preds = %23
%41 = call i32* @fopen(i8* %39, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%42 = icmp eq i32* %41, null
br i1 %42, label %43, label %45
43: ; preds = %40
%44 = load i8*, i8** %8
br label %149
45: ; preds = %40
%46 = icmp eq i8* %6, null
%47 = xor i1 %46, true
%48 = sext i1 %47 to i64
br i1 %46, label %51, label %49
49: ; preds = %45
%50 = call i64 @strlen(i8* %6)
br label %51
51: ; preds = %45, %49
%52 = phi i64 [ %50, %49 ], [ 0, %45 ]
%53 = call i32 @feof(i32* %41)
%54 = icmp eq i32 %53, 0
br i1 %54, label %55, label %93
55: ; preds = %51
%56 = sub i64 0, %52
br label %57
57: ; preds = %55, %86
%58 = phi i64 [ %48, %55 ], [ %87, %86 ]
%59 = call i32* @fgets(i8* %14, i32 1024, i32* %41)
%60 = icmp eq i32* %59, null
br i1 %60, label %93, label %61
61: ; preds = %57
%62 = call i64 @strlen(i8* %14)
%63 = icmp eq i64 %62, 0
br i1 %63, label %86, label %64
64: ; preds = %61, %83
%65 = phi i64 [ %84, %83 ], [ %58, %61 ]
%66 = phi i64 [ %67, %83 ], [ %62, %61 ]
%67 = add i64 %66, -1
%68 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 %67
store i8 0, i8* %68
%69 = icmp ult i64 %65, 1025
%70 = icmp ult i64 %67, %52
%71 = select i1 %69, i1 true, i1 %70
br i1 %71, label %77, label %72
72: ; preds = %64
%73 = getelementptr inbounds i8, i8* %68, i64 %56
%74 = call i64 @strcasecmp(i8* %73, i8* %6)
%75 = icmp eq i64 %74, 0
%76 = add i64 %66, -5
br i1 %75, label %77, label %83
77: ; preds = %72, %64
%78 = phi i64 [ %65, %64 ], [ %76, %72 ]
%79 = icmp ult i64 %78, 1025
br i1 %79, label %80, label %83
80: ; preds = %77
%81 = call i64 @is_valid_extension(i8* %14, i64 %67, i64 %78)
%82 = icmp eq i64 %81, 0
br i1 %82, label %83, label %86
83: ; preds = %72, %80, %77
%84 = phi i64 [ %78, %80 ], [ %78, %77 ], [ %65, %72 ]
%85 = icmp eq i64 %67, 0
br i1 %85, label %86, label %64
86: ; preds = %83, %80, %61
%87 = phi i64 [ %58, %61 ], [ %78, %80 ], [ %84, %83 ]
%88 = phi i1 [ true, %61 ], [ false, %80 ], [ true, %83 ]
%89 = phi i32 [ 0, %61 ], [ 1, %80 ], [ 0, %83 ]
%90 = call i32 @feof(i32* %41)
%91 = or i32 %90, %89
%92 = icmp eq i32 %91, 0
br i1 %92, label %57, label %93
93: ; preds = %57, %86, %51
%94 = phi i64 [ %48, %51 ], [ %58, %57 ], [ %87, %86 ]
%95 = phi i1 [ true, %51 ], [ true, %57 ], [ %88, %86 ]
%96 = call i32 @fclose(i32* %41)
%97 = load i8*, i8** %8
%98 = call i32 @ioutil_remove(i8* %97)
br i1 %95, label %152, label %99
99: ; preds = %93
%100 = icmp eq i32 %1, 0
br i1 %100, label %101, label %152
101: ; preds = %99
%102 = call i8* @lib_stralloc(i8* %2)
store i8* %102, i8** %25
%103 = call i8* @lib_stralloc(i8* %4)
store i8* %103, i8** %27
%104 = call i8* @archdep_filename_parameter(i8* %0)
store i8* %104, i8** %29
%105 = getelementptr inbounds [1024 x i8], [1024 x i8]* %10, i64 0, i64 %94
%106 = call i64 @is_zipcode_name(i8* %105)
%107 = icmp eq i64 %106, 0
br i1 %107, label %121, label %108
108: ; preds = %101
%109 = call i8* @lib_stralloc(i8* %105)
store i8* %109, i8** %30
%110 = call i8* @lib_stralloc(i8* %105)
%111 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 4
store i8* %110, i8** %111
%112 = call i8* @lib_stralloc(i8* %105)
%113 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 5
store i8* %112, i8** %113
%114 = call i8* @lib_stralloc(i8* %105)
%115 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 6
store i8* %114, i8** %115
%116 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 7
store i8* null, i8** %116
%117 = load i8*, i8** %30
store i8 49, i8* %117
%118 = load i8*, i8** %111
store i8 50, i8* %118
%119 = load i8*, i8** %113
store i8 51, i8* %119
%120 = load i8*, i8** %115
store i8 52, i8* %120
br label %124
121: ; preds = %101
%122 = call i8* @archdep_quote_parameter(i8* %105)
store i8* %122, i8** %30
%123 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 4
store i8* null, i8** %123
br label %124
124: ; preds = %121, %108
%125 = call i32 @archdep_spawn(i8* %2, i8** %25, i8** %8, i32* null)
%126 = load i8*, i8** %25
%127 = call i32 @lib_free(i8* %126)
%128 = load i8*, i8** %27
%129 = call i32 @lib_free(i8* %128)
%130 = load i8*, i8** %29
%131 = call i32 @lib_free(i8* %130)
%132 = load i8*, i8** %30
%133 = call i32 @lib_free(i8* %132)
%134 = call i64 @is_zipcode_name(i8* %105)
%135 = icmp eq i64 %134, 0
br i1 %135, label %146, label %136
136: ; preds = %124
%137 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 4
%138 = load i8*, i8** %137
%139 = call i32 @lib_free(i8* %138)
%140 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 5
%141 = load i8*, i8** %140
%142 = call i32 @lib_free(i8* %141)
%143 = getelementptr inbounds [8 x i8*], [8 x i8*]* %9, i64 0, i64 6
%144 = load i8*, i8** %143
%145 = call i32 @lib_free(i8* %144)
br label %146
146: ; preds = %136, %124
%147 = icmp eq i32 %125, 0
%148 = load i8*, i8** %8
br i1 %147, label %156, label %149
149: ; preds = %146, %23, %43
%150 = phi i8* [ %44, %43 ], [ %39, %23 ], [ %148, %146 ]
%151 = call i32 @ioutil_remove(i8* %150)
br label %152
152: ; preds = %149, %99, %93
%153 = phi i8* [ null, %93 ], [ getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), %99 ], [ null, %149 ]
%154 = load i8*, i8** %8
%155 = call i32 @lib_free(i8* %154)
br label %156
156: ; preds = %152, %146, %7, %17
%157 = phi i8* [ null, %17 ], [ null, %7 ], [ %148, %146 ], [ %153, %152 ]
ret i8* %157
}