#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 time_t;
typedef int /*<<< orphan*/ header;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int EOF;
int /*<<< orphan*/ FindTypeCreater(char *, char **, char **);
int /*<<< orphan*/ *ResForkOfDataFile(char *);
int /*<<< orphan*/ SEEK_END;
int /*<<< orphan*/ SEEK_SET;
int binhex_crc(unsigned char *, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ free(char *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, int /*<<< orphan*/,
                         int /*<<< orphan*/);
unsigned long ftell(int /*<<< orphan*/ *);
int /*<<< orphan*/ fwrite(unsigned char *, int, int, int /*<<< orphan*/ *);
int getc(int /*<<< orphan*/ *);
char *malloc(int);
int /*<<< orphan*/ memcpy(unsigned char *, char *, int);
int /*<<< orphan*/ memset(unsigned char *, char, int);
int /*<<< orphan*/ putc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
char *strrchr(char *, char);
int /*<<< orphan*/ time(int *);
void Dump(char *dataname, char *resname, char *create, char *type) {
  FILE *datafile = NULL, *resfile = NULL, *outfile;
  char *outname;
  unsigned char header[128], *hpt;
  char *pt, *ept;
  time_t now;
  unsigned long dlen, rlen;
  int i, crc, ch;
  if (dataname == NULL && resname == NULL)
    return;
  if (dataname != NULL) {
    datafile = fopen(dataname, "r");
    if (datafile == NULL) {
      fprintf(stderr, "Can't open %s for reading\n", dataname);
      exit(1);
    }
    FindTypeCreater(dataname, &create, &type);
  }
  if (resname != NULL) {
    resfile = fopen(resname, "r");
    if (resfile == NULL) {
      fprintf(stderr, "Can't open %s for reading\n", resname);
      exit(1);
    }
  } else
    resfile = ResForkOfDataFile(dataname);
  if (dataname != NULL) {
    outname = malloc(strlen(dataname) + 30);
    strcpy(outname, dataname);
    strcat(outname, ".bin");
  } else {
    outname = malloc(strlen(resname) + 30);
    strcpy(outname, resname);
    strcat(outname, ".bin");
  }
  outfile = fopen(outname, "w");
  if (outfile == NULL) {
    fprintf(stderr, "Cannot open %s for writing\n", outname);
    free(outname);
    if (datafile)
      fclose(datafile);
    if (resfile)
      fclose(resfile);
  }
  memset(header, '\0', sizeof(header));
  hpt = header;
  *hpt++ = '\0';
  pt = dataname ? dataname : resname;
  ept = strrchr(pt, '/');
  if (ept != NULL)
    pt = ept + 1;
  ept = pt + strlen(pt);
  if (ept - pt > 63)
    ept = pt + 63;
  *hpt++ = ept - pt;
  while (pt < ept)
    *hpt++ = *pt++;
  while (hpt < header + 65)
    *hpt++ = '\0';
  if (type == NULL)
    type = "\0\0\0\0";
  if (create == NULL)
    create = "\0\0\0\0";
  *hpt++ = type[0];
  *hpt++ = type[1];
  *hpt++ = type[2];
  *hpt++ = type[3];
  *hpt++ = create[0];
  *hpt++ = create[1];
  *hpt++ = create[2];
  *hpt++ = create[3];
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = '\0';
  dlen = rlen = 0;
  if (datafile != NULL) {
    fseek(datafile, 0, SEEK_END);
    dlen = ftell(datafile);
    fseek(datafile, 0, SEEK_SET);
  }
  if (resfile != NULL) {
    fseek(resfile, 0, SEEK_END);
    rlen = ftell(resfile);
    fseek(resfile, 0, SEEK_SET);
  }
  *hpt++ = dlen >> 24;
  *hpt++ = dlen >> 16;
  *hpt++ = dlen >> 8;
  *hpt++ = dlen;
  *hpt++ = rlen >> 24;
  *hpt++ = rlen >> 16;
  *hpt++ = rlen >> 8;
  *hpt++ = rlen;
  time(&now);
  now += (1970 - 1904) * 365L * 24 * 60 * 60;
  for (i = 1904; i < 1970; i += 4)
    now += 24 * 60 * 60;
  *hpt++ = now >> 24;
  *hpt++ = now >> 16;
  *hpt++ = now >> 8;
  *hpt++ = now;
  *hpt++ = now >> 24;
  *hpt++ = now >> 16;
  *hpt++ = now >> 8;
  *hpt++ = now;
  *hpt++ = '\0';
  *hpt++ = '\0';
  *hpt++ = 0;
  memcpy(header + 102, "mBIN", 4);
  header[106] = 0;
  header[107] = 0;
  header[122] = 130;
  header[123] = 129;
  crc = binhex_crc(header, 124);
  header[124] = crc >> 8;
  header[125] = crc;
  fwrite(header, 1, sizeof(header), outfile);
  if (datafile) {
    while ((ch = getc(datafile)) != EOF)
      putc(ch, outfile);
    while ((dlen & 127) != 0) {
      putc('\0', outfile);
      ++dlen;
    }
    fclose(datafile);
  }
  if (resfile) {
    while ((ch = getc(resfile)) != EOF)
      putc(ch, outfile);
    while ((rlen & 127) != 0) {
      putc('\0', outfile);
      ++rlen;
    }
    fclose(resfile);
  }
}


x86 assembly (clang, -O0):
<Dump>:
push   %rbp
mov    %rsp,%rbp
sub    $0x110,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
movq   $0x0,-0x28(%rbp)
movq   $0x0,-0x30(%rbp)
cmpq   $0x0,-0x8(%rbp)
jne    1296 <Dump+0x46>
cmpq   $0x0,-0x10(%rbp)
jne    1296 <Dump+0x46>
jmp    1cdd <Dump+0xa8d>
cmpq   $0x0,-0x8(%rbp)
je     12f4 <Dump+0xa4>
mov    -0x8(%rbp),%rdi
lea    0xd54(%rip),%rsi
call   1120 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    12e3 <Dump+0x93>
mov    0x2d09(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rdx
lea    0xd2e(%rip),%rsi
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1140 <exit@plt>
mov    -0x8(%rbp),%rdi
lea    -0x18(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   10a0 <FindTypeCreater@plt>
cmpq   $0x0,-0x10(%rbp)
je     1346 <Dump+0xf6>
mov    -0x10(%rbp),%rdi
lea    0xcf6(%rip),%rsi
call   1120 <fopen@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x30(%rbp)
jne    1341 <Dump+0xf1>
mov    0x2cab(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rdx
lea    0xcd0(%rip),%rsi
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1140 <exit@plt>
jmp    1353 <Dump+0x103>
mov    -0x8(%rbp),%rdi
call   1040 <ResForkOfDataFile@plt>
mov    %rax,-0x30(%rbp)
cmpq   $0x0,-0x8(%rbp)
je     1397 <Dump+0x147>
mov    -0x8(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,%edi
add    $0x1e,%edi
call   1100 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x8(%rbp),%rsi
call   1050 <strcpy@plt>
mov    -0x40(%rbp),%rdi
lea    0xc90(%rip),%rsi
call   1130 <strcat@plt>
jmp    13cb <Dump+0x17b>
mov    -0x10(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,%edi
add    $0x1e,%edi
call   1100 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1050 <strcpy@plt>
mov    -0x40(%rbp),%rdi
lea    0xc57(%rip),%rsi
call   1130 <strcat@plt>
mov    -0x40(%rbp),%rdi
lea    0xc4c(%rip),%rsi
call   1120 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
jne    1439 <Dump+0x1e9>
mov    0x2bdf(%rip),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%rdx
lea    0xc26(%rip),%rsi
call   10c0 <fprintf@plt>
mov    -0x40(%rbp),%rdi
call   1030 <free@plt>
cmpq   $0x0,-0x28(%rbp)
je     1420 <Dump+0x1d0>
mov    -0x28(%rbp),%rdi
call   1060 <fclose@plt>
cmpq   $0x0,-0x30(%rbp)
je     1434 <Dump+0x1e4>
mov    -0x30(%rbp),%rdi
call   1060 <fclose@plt>
jmp    1439 <Dump+0x1e9>
lea    -0xc0(%rbp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1090 <memset@plt>
lea    -0xc0(%rbp),%rax
mov    %rax,-0xc8(%rbp)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
cmpq   $0x0,-0x8(%rbp)
je     148d <Dump+0x23d>
mov    -0x8(%rbp),%rax
mov    %rax,-0x108(%rbp)
jmp    1498 <Dump+0x248>
mov    -0x10(%rbp),%rax
mov    %rax,-0x108(%rbp)
mov    -0x108(%rbp),%rax
mov    %rax,-0xd0(%rbp)
mov    -0xd0(%rbp),%rdi
mov    $0x2f,%esi
call   1080 <strrchr@plt>
mov    %rax,-0xd8(%rbp)
cmpq   $0x0,-0xd8(%rbp)
je     14de <Dump+0x28e>
mov    -0xd8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xd0(%rbp)
mov    -0xd0(%rbp),%rax
mov    %rax,-0x110(%rbp)
mov    -0xd0(%rbp),%rdi
call   1070 <strlen@plt>
mov    %eax,%ecx
mov    -0x110(%rbp),%rax
movslq %ecx,%rcx
add    %rcx,%rax
mov    %rax,-0xd8(%rbp)
mov    -0xd8(%rbp),%rax
mov    -0xd0(%rbp),%rcx
sub    %rcx,%rax
cmp    $0x3f,%rax
jle    153b <Dump+0x2eb>
mov    -0xd0(%rbp),%rax
add    $0x3f,%rax
mov    %rax,-0xd8(%rbp)
mov    -0xd8(%rbp),%rax
mov    -0xd0(%rbp),%rcx
sub    %rcx,%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xd0(%rbp),%rax
cmp    -0xd8(%rbp),%rax
jae    15ac <Dump+0x35c>
mov    -0xd0(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xd0(%rbp)
mov    (%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
jmp    1565 <Dump+0x315>
jmp    15b1 <Dump+0x361>
mov    -0xc8(%rbp),%rax
lea    -0xc0(%rbp),%rcx
add    $0x41,%rcx
cmp    %rcx,%rax
jae    15e9 <Dump+0x399>
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
jmp    15b1 <Dump+0x361>
cmpq   $0x0,-0x20(%rbp)
jne    15ff <Dump+0x3af>
lea    0xa4a(%rip),%rax
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1615 <Dump+0x3c5>
lea    0xa34(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x20(%rbp),%rax
mov    (%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0x20(%rbp),%rax
mov    0x1(%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0x20(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0x20(%rbp),%rax
mov    0x3(%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
mov    (%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
mov    0x1(%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
mov    0x2(%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0x18(%rbp),%rax
mov    0x3(%rax),%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
movq   $0x0,-0xf0(%rbp)
movq   $0x0,-0xe8(%rbp)
cmpq   $0x0,-0x28(%rbp)
je     184c <Dump+0x5fc>
mov    -0x28(%rbp),%rdi
mov    0x27c9(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1110 <fseek@plt>
mov    -0x28(%rbp),%rdi
call   10d0 <ftell@plt>
mov    %rax,-0xe8(%rbp)
mov    -0x28(%rbp),%rdi
mov    0x2785(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1110 <fseek@plt>
cmpq   $0x0,-0x30(%rbp)
je     188f <Dump+0x63f>
mov    -0x30(%rbp),%rdi
mov    0x2786(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1110 <fseek@plt>
mov    -0x30(%rbp),%rdi
call   10d0 <ftell@plt>
mov    %rax,-0xf0(%rbp)
mov    -0x30(%rbp),%rdi
mov    0x2742(%rip),%rax
mov    (%rax),%edx
xor    %esi,%esi
call   1110 <fseek@plt>
mov    -0xe8(%rbp),%rax
shr    $0x18,%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xe8(%rbp),%rax
shr    $0x10,%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xe8(%rbp),%rax
shr    $0x8,%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xe8(%rbp),%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xf0(%rbp),%rax
shr    $0x18,%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xf0(%rbp),%rax
shr    $0x10,%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xf0(%rbp),%rax
shr    $0x8,%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xf0(%rbp),%rax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
lea    -0xdc(%rbp),%rdi
call   10f0 <time@plt>
movslq -0xdc(%rbp),%rax
add    $0x7c0f4700,%rax
mov    %eax,-0xdc(%rbp)
movl   $0x770,-0xf4(%rbp)
cmpl   $0x7b2,-0xf4(%rbp)
jge    1a05 <Dump+0x7b5>
mov    -0xdc(%rbp),%eax
add    $0x15180,%eax
mov    %eax,-0xdc(%rbp)
mov    -0xf4(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0xf4(%rbp)
jmp    19d0 <Dump+0x780>
mov    -0xdc(%rbp),%eax
sar    $0x18,%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xdc(%rbp),%eax
sar    $0x10,%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xdc(%rbp),%eax
sar    $0x8,%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xdc(%rbp),%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xdc(%rbp),%eax
sar    $0x18,%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xdc(%rbp),%eax
sar    $0x10,%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xdc(%rbp),%eax
sar    $0x8,%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xdc(%rbp),%eax
mov    %al,%cl
mov    -0xc8(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0xc8(%rbp)
mov    %cl,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
mov    -0xc8(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0xc8(%rbp)
movb   $0x0,(%rax)
lea    -0xc0(%rbp),%rdi
add    $0x66,%rdi
lea    0x4d7(%rip),%rsi
mov    $0x4,%edx
call   10e0 <memcpy@plt>
movb   $0x0,-0x56(%rbp)
movb   $0x0,-0x55(%rbp)
movb   $0x82,-0x46(%rbp)
movb   $0x81,-0x45(%rbp)
lea    -0xc0(%rbp),%rdi
mov    $0x7c,%esi
call   1170 <binhex_crc@plt>
mov    %eax,-0xf8(%rbp)
mov    -0xf8(%rbp),%eax
sar    $0x8,%eax
mov    %al,-0x44(%rbp)
mov    -0xf8(%rbp),%eax
mov    %al,-0x43(%rbp)
lea    -0xc0(%rbp),%rdi
mov    -0x38(%rbp),%rcx
mov    $0x1,%esi
mov    $0x80,%edx
call   1150 <fwrite@plt>
cmpq   $0x0,-0x28(%rbp)
je     1c53 <Dump+0xa03>
jmp    1bd9 <Dump+0x989>
mov    -0x28(%rbp),%rdi
call   1160 <getc@plt>
mov    %eax,-0xfc(%rbp)
mov    0x23f1(%rip),%rcx
cmp    (%rcx),%eax
je     1c0e <Dump+0x9be>
mov    -0xfc(%rbp),%eax
mov    -0x38(%rbp),%rsi
movsbl %al,%edi
call   10b0 <putc@plt>
jmp    1bd9 <Dump+0x989>
jmp    1c13 <Dump+0x9c3>
mov    -0xe8(%rbp),%rax
and    $0x7f,%rax
cmp    $0x0,%rax
je     1c4a <Dump+0x9fa>
mov    -0x38(%rbp),%rsi
xor    %edi,%edi
call   10b0 <putc@plt>
mov    -0xe8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xe8(%rbp)
jmp    1c13 <Dump+0x9c3>
mov    -0x28(%rbp),%rdi
call   1060 <fclose@plt>
cmpq   $0x0,-0x30(%rbp)
je     1cdd <Dump+0xa8d>
jmp    1c63 <Dump+0xa13>
mov    -0x30(%rbp),%rdi
call   1160 <getc@plt>
mov    %eax,-0xfc(%rbp)
mov    0x2367(%rip),%rcx
cmp    (%rcx),%eax
je     1c98 <Dump+0xa48>
mov    -0xfc(%rbp),%eax
mov    -0x38(%rbp),%rsi
movsbl %al,%edi
call   10b0 <putc@plt>
jmp    1c63 <Dump+0xa13>
jmp    1c9d <Dump+0xa4d>
mov    -0xf0(%rbp),%rax
and    $0x7f,%rax
cmp    $0x0,%rax
je     1cd4 <Dump+0xa84>
mov    -0x38(%rbp),%rsi
xor    %edi,%edi
call   10b0 <putc@plt>
mov    -0xf0(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0xf0(%rbp)
jmp    1c9d <Dump+0xa4d>
mov    -0x30(%rbp),%rdi
call   1060 <fclose@plt>
add    $0x110,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Dump>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xa8,%rsp
mov    %rdx,0x10(%rsp)
mov    %rcx,0x18(%rsp)
mov    %rdi,%rax
or     %rsi,%rax
je     1812 <Dump+0x5c2>
mov    %rsi,%r13
mov    %rdi,%rbp
test   %rdi,%rdi
je     12ef <Dump+0x9f>
lea    0xd77(%rip),%rsi
mov    %rbp,%rdi
call   1120 <fopen@plt>
test   %rax,%rax
je     1824 <Dump+0x5d4>
mov    %rax,%r15
lea    0x10(%rsp),%rsi
lea    0x18(%rsp),%rdx
mov    %rbp,%rdi
call   10a0 <FindTypeCreater@plt>
test   %r13,%r13
je     12f7 <Dump+0xa7>
lea    0xd45(%rip),%rsi
mov    %r13,%rdi
call   1120 <fopen@plt>
mov    %rax,%r14
test   %rax,%rax
je     1839 <Dump+0x5e9>
test   %rbp,%rbp
je     1307 <Dump+0xb7>
mov    %rbp,%rdi
call   1070 <strlen@plt>
lea    0x1e(%rax),%edi
call   1100 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %rbp,%rsi
jmp    1320 <Dump+0xd0>
xor    %r15d,%r15d
test   %r13,%r13
jne    12b4 <Dump+0x64>
mov    %rbp,%rdi
call   1040 <ResForkOfDataFile@plt>
mov    %rax,%r14
test   %rbp,%rbp
jne    12d4 <Dump+0x84>
mov    %r13,%rdi
call   1070 <strlen@plt>
lea    0x1e(%rax),%edi
call   1100 <malloc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r13,%rsi
call   1050 <strcpy@plt>
lea    0xcf1(%rip),%rsi
mov    %rbx,%rdi
call   1130 <strcat@plt>
lea    0xce7(%rip),%rsi
mov    %rbx,%rdi
call   1120 <fopen@plt>
mov    %rax,%r12
test   %rax,%rax
jne    1385 <Dump+0x135>
mov    0x2c7e(%rip),%rax
mov    (%rax),%edi
lea    0xcc9(%rip),%rsi
mov    %rbx,%rdx
call   10c0 <fprintf@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
test   %r15,%r15
je     1378 <Dump+0x128>
mov    %r15,%rdi
call   1060 <fclose@plt>
test   %r14,%r14
je     1385 <Dump+0x135>
mov    %r14,%rdi
call   1060 <fclose@plt>
lea    0x20(%rsp),%rdi
xor    %esi,%esi
mov    $0x80,%edx
call   1090 <memset@plt>
test   %rbp,%rbp
movb   $0x0,0x20(%rsp)
cmovne %rbp,%r13
mov    %r13,%rdi
mov    $0x2f,%esi
call   1080 <strrchr@plt>
lea    0x1(%rax),%rbx
test   %rax,%rax
cmove  %r13,%rbx
mov    %rbx,%rdi
call   1070 <strlen@plt>
cmp    $0x3f,%eax
mov    $0x3f,%ecx
cmovl  %eax,%ecx
lea    0x22(%rsp),%rbp
mov    %cl,0x21(%rsp)
test   %eax,%eax
jle    152d <Dump+0x2dd>
movslq %ecx,%rax
add    %rbx,%rax
lea    0x1(%rbx),%rdx
cmp    %rdx,%rax
mov    %rdx,%r9
cmova  %rax,%r9
sub    %rbx,%r9
cmp    $0x20,%r9
jb     1510 <Dump+0x2c0>
lea    0x22(%rsp),%rcx
cmp    %rdx,%rax
cmova  %rax,%rdx
cmp    %rdx,%rcx
lea    0x20(%rsp),%r10
jae    1429 <Dump+0x1d9>
sub    %rbx,%rdx
lea    (%rdx,%r10,1),%rcx
add    $0x2,%rcx
cmp    %rcx,%rbx
jb     1510 <Dump+0x2c0>
mov    %r9,%r8
and    $0xffffffffffffffe0,%r8
lea    -0x20(%r8),%rcx
mov    %rcx,%rdi
shr    $0x5,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x3,%esi
cmp    $0x60,%rcx
jae    144e <Dump+0x1fe>
xor    %edx,%edx
jmp    14bf <Dump+0x26f>
and    $0xfffffffffffffffc,%rdi
xor    %edx,%edx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups (%rbx,%rdx,1),%xmm0
movups 0x10(%rbx,%rdx,1),%xmm1
movups %xmm0,0x22(%rsp,%rdx,1)
movups %xmm1,0x32(%rsp,%rdx,1)
movups 0x20(%rbx,%rdx,1),%xmm0
movups 0x30(%rbx,%rdx,1),%xmm1
movups %xmm0,0x42(%rsp,%rdx,1)
movups %xmm1,0x52(%rsp,%rdx,1)
movups 0x40(%rbx,%rdx,1),%xmm0
movups 0x50(%rbx,%rdx,1),%xmm1
movups %xmm0,0x62(%rsp,%rdx,1)
movups %xmm1,0x72(%rsp,%rdx,1)
movups 0x60(%rbx,%rdx,1),%xmm0
movups 0x70(%rbx,%rdx,1),%xmm1
movups %xmm0,0x82(%rsp,%rdx,1)
movups %xmm1,0x92(%rsp,%rdx,1)
sub    $0xffffffffffffff80,%rdx
add    $0xfffffffffffffffc,%rdi
jne    1460 <Dump+0x210>
test   %rsi,%rsi
je     14fb <Dump+0x2ab>
lea    (%rdx,%r10,1),%rdi
add    $0x12,%rdi
add    %rbx,%rdx
add    $0x10,%rdx
shl    $0x5,%rsi
xor    %ecx,%ecx
nopl   0x0(%rax)
movups -0x10(%rdx,%rcx,1),%xmm0
movups (%rdx,%rcx,1),%xmm1
movups %xmm0,-0x10(%rdi,%rcx,1)
movups %xmm1,(%rdi,%rcx,1)
add    $0x20,%rcx
cmp    %rcx,%rsi
jne    14e0 <Dump+0x290>
add    %r8,%rbp
cmp    %r8,%r9
je     1523 <Dump+0x2d3>
add    %r8,%rbx
cs nopw 0x0(%rax,%rax,1)
movzbl (%rbx),%ecx
add    $0x1,%rbx
mov    %cl,0x0(%rbp)
add    $0x1,%rbp
cmp    %rax,%rbx
jb     1510 <Dump+0x2c0>
lea    0x61(%rsp),%rax
cmp    %rax,%rbp
jae    1545 <Dump+0x2f5>
lea    0x61(%rsp),%rbx
mov    %rbx,%rdx
sub    %rbp,%rdx
mov    %rbp,%rdi
xor    %esi,%esi
call   1090 <memset@plt>
mov    %rbx,%rbp
mov    0x18(%rsp),%rax
test   %rax,%rax
je     161b <Dump+0x3cb>
cmpq   $0x0,0x10(%rsp)
je     1633 <Dump+0x3e3>
mov    (%rax),%cl
mov    %cl,0x0(%rbp)
mov    0x1(%rax),%cl
mov    %cl,0x1(%rbp)
mov    0x2(%rax),%cl
mov    %cl,0x2(%rbp)
mov    0x3(%rax),%al
mov    %al,0x3(%rbp)
mov    0x10(%rsp),%rax
mov    (%rax),%cl
mov    %cl,0x4(%rbp)
mov    0x1(%rax),%cl
mov    %cl,0x5(%rbp)
mov    0x2(%rax),%cl
mov    %cl,0x6(%rbp)
mov    0x3(%rax),%al
mov    %al,0x7(%rbp)
movq   $0x0,0x8(%rbp)
movw   $0x0,0x10(%rbp)
test   %r15,%r15
je     1644 <Dump+0x3f4>
mov    0x2a38(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1110 <fseek@plt>
mov    %r15,%rdi
call   10d0 <ftell@plt>
mov    %rax,%rbx
mov    0x29fa(%rip),%rax
mov    (%rax),%edx
mov    %r15,%rdi
xor    %esi,%esi
call   1110 <fseek@plt>
test   %r14,%r14
je     164b <Dump+0x3fb>
mov    0x2a02(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1110 <fseek@plt>
mov    %r14,%rdi
call   10d0 <ftell@plt>
mov    %rbx,%r13
mov    %rax,%rbx
mov    0x29c1(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
xor    %esi,%esi
call   1110 <fseek@plt>
mov    %rbx,%rcx
mov    %r13,%rbx
jmp    164d <Dump+0x3fd>
lea    0xa23(%rip),%rax
mov    %rax,0x18(%rsp)
cmpq   $0x0,0x10(%rsp)
jne    155f <Dump+0x30f>
lea    0xa0b(%rip),%rcx
mov    %rcx,0x10(%rsp)
jmp    155f <Dump+0x30f>
xor    %ebx,%ebx
test   %r14,%r14
jne    15df <Dump+0x38f>
xor    %ecx,%ecx
mov    %rbx,%rax
shr    $0x18,%rax
mov    %al,0x12(%rbp)
mov    %rbx,%rax
shr    $0x10,%rax
mov    %al,0x13(%rbp)
mov    %bh,0x14(%rbp)
mov    %bl,0x15(%rbp)
mov    %rcx,%rax
shr    $0x18,%rax
mov    %al,0x16(%rbp)
mov    %rcx,%rax
shr    $0x10,%rax
mov    %al,0x17(%rbp)
mov    %ch,0x18(%rbp)
mov    %rcx,%r13
mov    %cl,0x19(%rbp)
lea    0xc(%rsp),%rdi
call   10f0 <time@plt>
mov    $0x7c25b080,%eax
add    0xc(%rsp),%eax
mov    %eax,0xc(%rsp)
mov    %eax,%ecx
shr    $0x18,%ecx
mov    %cl,0x1a(%rbp)
mov    %eax,%edx
shr    $0x10,%edx
mov    %dl,0x1b(%rbp)
mov    %eax,%esi
shr    $0x8,%esi
mov    %sil,0x1c(%rbp)
mov    %al,0x1d(%rbp)
mov    %cl,0x1e(%rbp)
mov    %dl,0x1f(%rbp)
mov    %sil,0x20(%rbp)
mov    %al,0x21(%rbp)
movw   $0x0,0x22(%rbp)
movb   $0x0,0x24(%rbp)
lea    0x86(%rsp),%rdi
lea    0x963(%rip),%rsi
mov    $0x4,%edx
call   10e0 <memcpy@plt>
movw   $0x0,0x8a(%rsp)
movw   $0x8182,0x9a(%rsp)
lea    0x20(%rsp),%rbp
mov    %rbp,%rdi
mov    $0x7c,%esi
call   1170 <binhex_crc@plt>
rol    $0x8,%ax
mov    %ax,0x9c(%rsp)
mov    %rbp,%rdi
mov    $0x1,%esi
mov    $0x80,%edx
mov    %r12,%rcx
call   1150 <fwrite@plt>
test   %r15,%r15
je     179f <Dump+0x54f>
mov    %r15,%rdi
call   1160 <getc@plt>
mov    0x289e(%rip),%rbp
cmp    0x0(%rbp),%eax
je     1768 <Dump+0x518>
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
mov    %r12,%rsi
call   10b0 <putc@plt>
mov    %r15,%rdi
call   1160 <getc@plt>
cmp    0x0(%rbp),%eax
jne    1750 <Dump+0x500>
test   $0x7f,%bl
je     1797 <Dump+0x547>
mov    %rbx,%rbp
add    $0x1,%rbp
mov    %rbp,%rbx
nopw   0x0(%rax,%rax,1)
xor    %edi,%edi
mov    %r12,%rsi
call   10b0 <putc@plt>
add    $0x1,%rbx
test   $0x7f,%bpl
mov    %rbx,%rbp
jne    1780 <Dump+0x530>
mov    %r15,%rdi
call   1060 <fclose@plt>
test   %r14,%r14
je     1812 <Dump+0x5c2>
mov    %r14,%rdi
call   1160 <getc@plt>
mov    0x282d(%rip),%rbx
cmp    (%rbx),%eax
je     17d7 <Dump+0x587>
nopw   0x0(%rax,%rax,1)
movsbl %al,%edi
mov    %r12,%rsi
call   10b0 <putc@plt>
mov    %r14,%rdi
call   1160 <getc@plt>
cmp    (%rbx),%eax
jne    17c0 <Dump+0x570>
mov    %r13,%rax
test   $0x7f,%al
je     180a <Dump+0x5ba>
add    $0x1,%rax
mov    %rax,%rbx
cs nopw 0x0(%rax,%rax,1)
nop
xor    %edi,%edi
mov    %r12,%rsi
mov    %rax,%rbp
call   10b0 <putc@plt>
add    $0x1,%rbx
test   $0x7f,%bpl
mov    %rbx,%rax
jne    17f0 <Dump+0x5a0>
mov    %r14,%rdi
call   1060 <fclose@plt>
add    $0xa8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x27a5(%rip),%rax
mov    (%rax),%edi
lea    0x7ce(%rip),%rsi
mov    %rbp,%rdx
jmp    184c <Dump+0x5fc>
mov    0x2790(%rip),%rax
mov    (%rax),%edi
lea    0x7b9(%rip),%rsi
mov    %r13,%rdx
call   10c0 <fprintf@plt>
mov    $0x1,%edi
call   1140 <exit@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [27 x i8] c"Can't open %s for reading\0A\00"
@.str.2 = [5 x i8] c".bin\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [28 x i8] c"Cannot open %s for writing\0A\00"
@.str.5 = [5 x i8] zeroinitializer
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.6 = [5 x i8] c"mBIN\00"
@EOF = global i32 0
define void @Dump(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i32*
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i8*
%13 = alloca [128 x i8]
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i32
%18 = alloca i64
%19 = alloca i64
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i8* %2, i8** %7
store i8* %3, i8** %8
store i32* null, i32** %9
store i32* null, i32** %10
%23 = load i8*, i8** %5
%24 = icmp eq i8* %23, null
br i1 %24, label %25, label %29
25: ; preds = %4
%26 = load i8*, i8** %6
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %29
28: ; preds = %25
br label %434
29: ; preds = %25, %4
%30 = load i8*, i8** %5
%31 = icmp ne i8* %30, null
br i1 %31, label %32, label %45
32: ; preds = %29
%33 = load i8*, i8** %5
%34 = call i32* @fopen(i8* %33, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %34, i32** %9
%35 = load i32*, i32** %9
%36 = icmp eq i32* %35, null
br i1 %36, label %37, label %42
37: ; preds = %32
%38 = load i32, i32* @stderr
%39 = load i8*, i8** %5
%40 = call i32 @fprintf(i32 %38, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %39)
%41 = call i32 @exit(i32 1)
unreachable
42: ; preds = %32
%43 = load i8*, i8** %5
%44 = call i32 @FindTypeCreater(i8* %43, i8** %7, i8** %8)
br label %45
45: ; preds = %42, %29
%46 = load i8*, i8** %6
%47 = icmp ne i8* %46, null
br i1 %47, label %48, label %59
48: ; preds = %45
%49 = load i8*, i8** %6
%50 = call i32* @fopen(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
store i32* %50, i32** %10
%51 = load i32*, i32** %10
%52 = icmp eq i32* %51, null
br i1 %52, label %53, label %58
53: ; preds = %48
%54 = load i32, i32* @stderr
%55 = load i8*, i8** %6
%56 = call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %55)
%57 = call i32 @exit(i32 1)
unreachable
58: ; preds = %48
br label %62
59: ; preds = %45
%60 = load i8*, i8** %5
%61 = call i32* @ResForkOfDataFile(i8* %60)
store i32* %61, i32** %10
br label %62
62: ; preds = %59, %58
%63 = load i8*, i8** %5
%64 = icmp ne i8* %63, null
br i1 %64, label %65, label %75
65: ; preds = %62
%66 = load i8*, i8** %5
%67 = call i32 @strlen(i8* %66)
%68 = add nsw i32 %67, 30
%69 = call i8* @malloc(i32 %68)
store i8* %69, i8** %12
%70 = load i8*, i8** %12
%71 = load i8*, i8** %5
%72 = call i32 @strcpy(i8* %70, i8* %71)
%73 = load i8*, i8** %12
%74 = call i32 @strcat(i8* %73, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %85
75: ; preds = %62
%76 = load i8*, i8** %6
%77 = call i32 @strlen(i8* %76)
%78 = add nsw i32 %77, 30
%79 = call i8* @malloc(i32 %78)
store i8* %79, i8** %12
%80 = load i8*, i8** %12
%81 = load i8*, i8** %6
%82 = call i32 @strcpy(i8* %80, i8* %81)
%83 = load i8*, i8** %12
%84 = call i32 @strcat(i8* %83, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
br label %85
85: ; preds = %75, %65
%86 = load i8*, i8** %12
%87 = call i32* @fopen(i8* %86, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %87, i32** %11
%88 = load i32*, i32** %11
%89 = icmp eq i32* %88, null
br i1 %89, label %90, label %108
90: ; preds = %85
%91 = load i32, i32* @stderr
%92 = load i8*, i8** %12
%93 = call i32 @fprintf(i32 %91, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i8* %92)
%94 = load i8*, i8** %12
%95 = call i32 @free(i8* %94)
%96 = load i32*, i32** %9
%97 = icmp ne i32* %96, null
br i1 %97, label %98, label %101
98: ; preds = %90
%99 = load i32*, i32** %9
%100 = call i32 @fclose(i32* %99)
br label %101
101: ; preds = %98, %90
%102 = load i32*, i32** %10
%103 = icmp ne i32* %102, null
br i1 %103, label %104, label %107
104: ; preds = %101
%105 = load i32*, i32** %10
%106 = call i32 @fclose(i32* %105)
br label %107
107: ; preds = %104, %101
br label %108
108: ; preds = %107, %85
%109 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
%110 = call i32 @memset(i8* %109, i8 signext 0, i32 128)
%111 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
store i8* %111, i8** %14
%112 = load i8*, i8** %14
%113 = getelementptr inbounds i8, i8* %112, i32 1
store i8* %113, i8** %14
store i8 0, i8* %112
%114 = load i8*, i8** %5
%115 = icmp ne i8* %114, null
br i1 %115, label %116, label %118
116: ; preds = %108
%117 = load i8*, i8** %5
br label %120
118: ; preds = %108
%119 = load i8*, i8** %6
br label %120
120: ; preds = %118, %116
%121 = phi i8* [ %117, %116 ], [ %119, %118 ]
store i8* %121, i8** %15
%122 = load i8*, i8** %15
%123 = call i8* @strrchr(i8* %122, i8 signext 47)
store i8* %123, i8** %16
%124 = load i8*, i8** %16
%125 = icmp ne i8* %124, null
br i1 %125, label %126, label %129
126: ; preds = %120
%127 = load i8*, i8** %16
%128 = getelementptr inbounds i8, i8* %127, i64 1
store i8* %128, i8** %15
br label %129
129: ; preds = %126, %120
%130 = load i8*, i8** %15
%131 = load i8*, i8** %15
%132 = call i32 @strlen(i8* %131)
%133 = sext i32 %132 to i64
%134 = getelementptr inbounds i8, i8* %130, i64 %133
store i8* %134, i8** %16
%135 = load i8*, i8** %16
%136 = load i8*, i8** %15
%137 = ptrtoint i8* %135 to i64
%138 = ptrtoint i8* %136 to i64
%139 = sub i64 %137, %138
%140 = icmp sgt i64 %139, 63
br i1 %140, label %141, label %144
141: ; preds = %129
%142 = load i8*, i8** %15
%143 = getelementptr inbounds i8, i8* %142, i64 63
store i8* %143, i8** %16
br label %144
144: ; preds = %141, %129
%145 = load i8*, i8** %16
%146 = load i8*, i8** %15
%147 = ptrtoint i8* %145 to i64
%148 = ptrtoint i8* %146 to i64
%149 = sub i64 %147, %148
%150 = trunc i64 %149 to i8
%151 = load i8*, i8** %14
%152 = getelementptr inbounds i8, i8* %151, i32 1
store i8* %152, i8** %14
store i8 %150, i8* %151
br label %153
153: ; preds = %157, %144
%154 = load i8*, i8** %15
%155 = load i8*, i8** %16
%156 = icmp ult i8* %154, %155
br i1 %156, label %157, label %163
157: ; preds = %153
%158 = load i8*, i8** %15
%159 = getelementptr inbounds i8, i8* %158, i32 1
store i8* %159, i8** %15
%160 = load i8, i8* %158
%161 = load i8*, i8** %14
%162 = getelementptr inbounds i8, i8* %161, i32 1
store i8* %162, i8** %14
store i8 %160, i8* %161
br label %153
163: ; preds = %153
br label %164
164: ; preds = %169, %163
%165 = load i8*, i8** %14
%166 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
%167 = getelementptr inbounds i8, i8* %166, i64 65
%168 = icmp ult i8* %165, %167
br i1 %168, label %169, label %172
169: ; preds = %164
%170 = load i8*, i8** %14
%171 = getelementptr inbounds i8, i8* %170, i32 1
store i8* %171, i8** %14
store i8 0, i8* %170
br label %164
172: ; preds = %164
%173 = load i8*, i8** %8
%174 = icmp eq i8* %173, null
br i1 %174, label %175, label %176
175: ; preds = %172
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %8
br label %176
176: ; preds = %175, %172
%177 = load i8*, i8** %7
%178 = icmp eq i8* %177, null
br i1 %178, label %179, label %180
179: ; preds = %176
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %7
br label %180
180: ; preds = %179, %176
%181 = load i8*, i8** %8
%182 = getelementptr inbounds i8, i8* %181, i64 0
%183 = load i8, i8* %182
%184 = load i8*, i8** %14
%185 = getelementptr inbounds i8, i8* %184, i32 1
store i8* %185, i8** %14
store i8 %183, i8* %184
%186 = load i8*, i8** %8
%187 = getelementptr inbounds i8, i8* %186, i64 1
%188 = load i8, i8* %187
%189 = load i8*, i8** %14
%190 = getelementptr inbounds i8, i8* %189, i32 1
store i8* %190, i8** %14
store i8 %188, i8* %189
%191 = load i8*, i8** %8
%192 = getelementptr inbounds i8, i8* %191, i64 2
%193 = load i8, i8* %192
%194 = load i8*, i8** %14
%195 = getelementptr inbounds i8, i8* %194, i32 1
store i8* %195, i8** %14
store i8 %193, i8* %194
%196 = load i8*, i8** %8
%197 = getelementptr inbounds i8, i8* %196, i64 3
%198 = load i8, i8* %197
%199 = load i8*, i8** %14
%200 = getelementptr inbounds i8, i8* %199, i32 1
store i8* %200, i8** %14
store i8 %198, i8* %199
%201 = load i8*, i8** %7
%202 = getelementptr inbounds i8, i8* %201, i64 0
%203 = load i8, i8* %202
%204 = load i8*, i8** %14
%205 = getelementptr inbounds i8, i8* %204, i32 1
store i8* %205, i8** %14
store i8 %203, i8* %204
%206 = load i8*, i8** %7
%207 = getelementptr inbounds i8, i8* %206, i64 1
%208 = load i8, i8* %207
%209 = load i8*, i8** %14
%210 = getelementptr inbounds i8, i8* %209, i32 1
store i8* %210, i8** %14
store i8 %208, i8* %209
%211 = load i8*, i8** %7
%212 = getelementptr inbounds i8, i8* %211, i64 2
%213 = load i8, i8* %212
%214 = load i8*, i8** %14
%215 = getelementptr inbounds i8, i8* %214, i32 1
store i8* %215, i8** %14
store i8 %213, i8* %214
%216 = load i8*, i8** %7
%217 = getelementptr inbounds i8, i8* %216, i64 3
%218 = load i8, i8* %217
%219 = load i8*, i8** %14
%220 = getelementptr inbounds i8, i8* %219, i32 1
store i8* %220, i8** %14
store i8 %218, i8* %219
%221 = load i8*, i8** %14
%222 = getelementptr inbounds i8, i8* %221, i32 1
store i8* %222, i8** %14
store i8 0, i8* %221
%223 = load i8*, i8** %14
%224 = getelementptr inbounds i8, i8* %223, i32 1
store i8* %224, i8** %14
store i8 0, i8* %223
%225 = load i8*, i8** %14
%226 = getelementptr inbounds i8, i8* %225, i32 1
store i8* %226, i8** %14
store i8 0, i8* %225
%227 = load i8*, i8** %14
%228 = getelementptr inbounds i8, i8* %227, i32 1
store i8* %228, i8** %14
store i8 0, i8* %227
%229 = load i8*, i8** %14
%230 = getelementptr inbounds i8, i8* %229, i32 1
store i8* %230, i8** %14
store i8 0, i8* %229
%231 = load i8*, i8** %14
%232 = getelementptr inbounds i8, i8* %231, i32 1
store i8* %232, i8** %14
store i8 0, i8* %231
%233 = load i8*, i8** %14
%234 = getelementptr inbounds i8, i8* %233, i32 1
store i8* %234, i8** %14
store i8 0, i8* %233
%235 = load i8*, i8** %14
%236 = getelementptr inbounds i8, i8* %235, i32 1
store i8* %236, i8** %14
store i8 0, i8* %235
%237 = load i8*, i8** %14
%238 = getelementptr inbounds i8, i8* %237, i32 1
store i8* %238, i8** %14
store i8 0, i8* %237
%239 = load i8*, i8** %14
%240 = getelementptr inbounds i8, i8* %239, i32 1
store i8* %240, i8** %14
store i8 0, i8* %239
store i64 0, i64* %19
store i64 0, i64* %18
%241 = load i32*, i32** %9
%242 = icmp ne i32* %241, null
br i1 %242, label %243, label %252
243: ; preds = %180
%244 = load i32*, i32** %9
%245 = load i32, i32* @SEEK_END
%246 = call i32 @fseek(i32* %244, i32 0, i32 %245)
%247 = load i32*, i32** %9
%248 = call i64 @ftell(i32* %247)
store i64 %248, i64* %18
%249 = load i32*, i32** %9
%250 = load i32, i32* @SEEK_SET
%251 = call i32 @fseek(i32* %249, i32 0, i32 %250)
br label %252
252: ; preds = %243, %180
%253 = load i32*, i32** %10
%254 = icmp ne i32* %253, null
br i1 %254, label %255, label %264
255: ; preds = %252
%256 = load i32*, i32** %10
%257 = load i32, i32* @SEEK_END
%258 = call i32 @fseek(i32* %256, i32 0, i32 %257)
%259 = load i32*, i32** %10
%260 = call i64 @ftell(i32* %259)
store i64 %260, i64* %19
%261 = load i32*, i32** %10
%262 = load i32, i32* @SEEK_SET
%263 = call i32 @fseek(i32* %261, i32 0, i32 %262)
br label %264
264: ; preds = %255, %252
%265 = load i64, i64* %18
%266 = lshr i64 %265, 24
%267 = trunc i64 %266 to i8
%268 = load i8*, i8** %14
%269 = getelementptr inbounds i8, i8* %268, i32 1
store i8* %269, i8** %14
store i8 %267, i8* %268
%270 = load i64, i64* %18
%271 = lshr i64 %270, 16
%272 = trunc i64 %271 to i8
%273 = load i8*, i8** %14
%274 = getelementptr inbounds i8, i8* %273, i32 1
store i8* %274, i8** %14
store i8 %272, i8* %273
%275 = load i64, i64* %18
%276 = lshr i64 %275, 8
%277 = trunc i64 %276 to i8
%278 = load i8*, i8** %14
%279 = getelementptr inbounds i8, i8* %278, i32 1
store i8* %279, i8** %14
store i8 %277, i8* %278
%280 = load i64, i64* %18
%281 = trunc i64 %280 to i8
%282 = load i8*, i8** %14
%283 = getelementptr inbounds i8, i8* %282, i32 1
store i8* %283, i8** %14
store i8 %281, i8* %282
%284 = load i64, i64* %19
%285 = lshr i64 %284, 24
%286 = trunc i64 %285 to i8
%287 = load i8*, i8** %14
%288 = getelementptr inbounds i8, i8* %287, i32 1
store i8* %288, i8** %14
store i8 %286, i8* %287
%289 = load i64, i64* %19
%290 = lshr i64 %289, 16
%291 = trunc i64 %290 to i8
%292 = load i8*, i8** %14
%293 = getelementptr inbounds i8, i8* %292, i32 1
store i8* %293, i8** %14
store i8 %291, i8* %292
%294 = load i64, i64* %19
%295 = lshr i64 %294, 8
%296 = trunc i64 %295 to i8
%297 = load i8*, i8** %14
%298 = getelementptr inbounds i8, i8* %297, i32 1
store i8* %298, i8** %14
store i8 %296, i8* %297
%299 = load i64, i64* %19
%300 = trunc i64 %299 to i8
%301 = load i8*, i8** %14
%302 = getelementptr inbounds i8, i8* %301, i32 1
store i8* %302, i8** %14
store i8 %300, i8* %301
%303 = call i32 @time(i32* %17)
%304 = load i32, i32* %17
%305 = sext i32 %304 to i64
%306 = add nsw i64 %305, 2081376000
%307 = trunc i64 %306 to i32
store i32 %307, i32* %17
store i32 1904, i32* %20
br label %308
308: ; preds = %314, %264
%309 = load i32, i32* %20
%310 = icmp slt i32 %309, 1970
br i1 %310, label %311, label %317
311: ; preds = %308
%312 = load i32, i32* %17
%313 = add nsw i32 %312, 86400
store i32 %313, i32* %17
br label %314
314: ; preds = %311
%315 = load i32, i32* %20
%316 = add nsw i32 %315, 4
store i32 %316, i32* %20
br label %308
317: ; preds = %308
%318 = load i32, i32* %17
%319 = ashr i32 %318, 24
%320 = trunc i32 %319 to i8
%321 = load i8*, i8** %14
%322 = getelementptr inbounds i8, i8* %321, i32 1
store i8* %322, i8** %14
store i8 %320, i8* %321
%323 = load i32, i32* %17
%324 = ashr i32 %323, 16
%325 = trunc i32 %324 to i8
%326 = load i8*, i8** %14
%327 = getelementptr inbounds i8, i8* %326, i32 1
store i8* %327, i8** %14
store i8 %325, i8* %326
%328 = load i32, i32* %17
%329 = ashr i32 %328, 8
%330 = trunc i32 %329 to i8
%331 = load i8*, i8** %14
%332 = getelementptr inbounds i8, i8* %331, i32 1
store i8* %332, i8** %14
store i8 %330, i8* %331
%333 = load i32, i32* %17
%334 = trunc i32 %333 to i8
%335 = load i8*, i8** %14
%336 = getelementptr inbounds i8, i8* %335, i32 1
store i8* %336, i8** %14
store i8 %334, i8* %335
%337 = load i32, i32* %17
%338 = ashr i32 %337, 24
%339 = trunc i32 %338 to i8
%340 = load i8*, i8** %14
%341 = getelementptr inbounds i8, i8* %340, i32 1
store i8* %341, i8** %14
store i8 %339, i8* %340
%342 = load i32, i32* %17
%343 = ashr i32 %342, 16
%344 = trunc i32 %343 to i8
%345 = load i8*, i8** %14
%346 = getelementptr inbounds i8, i8* %345, i32 1
store i8* %346, i8** %14
store i8 %344, i8* %345
%347 = load i32, i32* %17
%348 = ashr i32 %347, 8
%349 = trunc i32 %348 to i8
%350 = load i8*, i8** %14
%351 = getelementptr inbounds i8, i8* %350, i32 1
store i8* %351, i8** %14
store i8 %349, i8* %350
%352 = load i32, i32* %17
%353 = trunc i32 %352 to i8
%354 = load i8*, i8** %14
%355 = getelementptr inbounds i8, i8* %354, i32 1
store i8* %355, i8** %14
store i8 %353, i8* %354
%356 = load i8*, i8** %14
%357 = getelementptr inbounds i8, i8* %356, i32 1
store i8* %357, i8** %14
store i8 0, i8* %356
%358 = load i8*, i8** %14
%359 = getelementptr inbounds i8, i8* %358, i32 1
store i8* %359, i8** %14
store i8 0, i8* %358
%360 = load i8*, i8** %14
%361 = getelementptr inbounds i8, i8* %360, i32 1
store i8* %361, i8** %14
store i8 0, i8* %360
%362 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
%363 = getelementptr inbounds i8, i8* %362, i64 102
%364 = call i32 @memcpy(i8* %363, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%365 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 106
store i8 0, i8* %365
%366 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 107
store i8 0, i8* %366
%367 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 122
store i8 -126, i8* %367
%368 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 123
store i8 -127, i8* %368
%369 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
%370 = call i32 @binhex_crc(i8* %369, i32 124)
store i32 %370, i32* %21
%371 = load i32, i32* %21
%372 = ashr i32 %371, 8
%373 = trunc i32 %372 to i8
%374 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 124
store i8 %373, i8* %374
%375 = load i32, i32* %21
%376 = trunc i32 %375 to i8
%377 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 125
store i8 %376, i8* %377
%378 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
%379 = load i32*, i32** %11
%380 = call i32 @fwrite(i8* %378, i32 1, i32 128, i32* %379)
%381 = load i32*, i32** %9
%382 = icmp ne i32* %381, null
br i1 %382, label %383, label %407
383: ; preds = %317
br label %384
384: ; preds = %389, %383
%385 = load i32*, i32** %9
%386 = call i32 @getc(i32* %385)
store i32 %386, i32* %22
%387 = load i32, i32* @EOF
%388 = icmp ne i32 %386, %387
br i1 %388, label %389, label %394
389: ; preds = %384
%390 = load i32, i32* %22
%391 = trunc i32 %390 to i8
%392 = load i32*, i32** %11
%393 = call i32 @putc(i8 signext %391, i32* %392)
br label %384
394: ; preds = %384
br label %395
395: ; preds = %399, %394
%396 = load i64, i64* %18
%397 = and i64 %396, 127
%398 = icmp ne i64 %397, 0
br i1 %398, label %399, label %404
399: ; preds = %395
%400 = load i32*, i32** %11
%401 = call i32 @putc(i8 signext 0, i32* %400)
%402 = load i64, i64* %18
%403 = add i64 %402, 1
store i64 %403, i64* %18
br label %395
404: ; preds = %395
%405 = load i32*, i32** %9
%406 = call i32 @fclose(i32* %405)
br label %407
407: ; preds = %404, %317
%408 = load i32*, i32** %10
%409 = icmp ne i32* %408, null
br i1 %409, label %410, label %434
410: ; preds = %407
br label %411
411: ; preds = %416, %410
%412 = load i32*, i32** %10
%413 = call i32 @getc(i32* %412)
store i32 %413, i32* %22
%414 = load i32, i32* @EOF
%415 = icmp ne i32 %413, %414
br i1 %415, label %416, label %421
416: ; preds = %411
%417 = load i32, i32* %22
%418 = trunc i32 %417 to i8
%419 = load i32*, i32** %11
%420 = call i32 @putc(i8 signext %418, i32* %419)
br label %411
421: ; preds = %411
br label %422
422: ; preds = %426, %421
%423 = load i64, i64* %19
%424 = and i64 %423, 127
%425 = icmp ne i64 %424, 0
br i1 %425, label %426, label %431
426: ; preds = %422
%427 = load i32*, i32** %11
%428 = call i32 @putc(i8 signext 0, i32* %427)
%429 = load i64, i64* %19
%430 = add i64 %429, 1
store i64 %430, i64* %19
br label %422
431: ; preds = %422
%432 = load i32*, i32** %10
%433 = call i32 @fclose(i32* %432)
br label %434
434: ; preds = %28, %431, %407
ret void
}

LLVM IR (-O2):
@.str = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.1 = [27 x i8] c"Can't open %s for reading\0A\00"
@.str.2 = [5 x i8] c".bin\00"
@.str.3 = [2 x i8] c"w\00"
@.str.4 = [28 x i8] c"Cannot open %s for writing\0A\00"
@.str.5 = [5 x i8] zeroinitializer
@SEEK_END = global i32 0
@SEEK_SET = global i32 0
@.str.6 = [5 x i8] c"mBIN\00"
@EOF = global i32 0
define void @Dump(i8* %0, i8* %1, i8* %2, i8* %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [128 x i8]
%8 = ptrtoint [128 x i8]* %7 to i64
%9 = alloca i32
store i8* %2, i8** %5
store i8* %3, i8** %6
%10 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%11 = bitcast i32* %9 to i8*
%12 = icmp eq i8* %0, null
%13 = icmp eq i8* %1, null
%14 = and i1 %12, %13
br i1 %14, label %354, label %15
15: ; preds = %4
br i1 %12, label %25, label %16
16: ; preds = %15
%17 = tail call i32* @fopen(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = icmp eq i32* %17, null
br i1 %18, label %19, label %23
19: ; preds = %16
%20 = load i32, i32* @stderr
%21 = tail call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %0)
%22 = tail call i32 @exit(i32 1)
unreachable
23: ; preds = %16
%24 = call i32 @FindTypeCreater(i8* %0, i8** %5, i8** %6)
br label %25
25: ; preds = %23, %15
%26 = phi i32* [ %17, %23 ], [ null, %15 ]
br i1 %13, label %34, label %27
27: ; preds = %25
%28 = call i32* @fopen(i8* %1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%29 = icmp eq i32* %28, null
br i1 %29, label %30, label %36
30: ; preds = %27
%31 = load i32, i32* @stderr
%32 = call i32 @fprintf(i32 %31, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%33 = call i32 @exit(i32 1)
unreachable
34: ; preds = %25
%35 = call i32* @ResForkOfDataFile(i8* %0)
br label %36
36: ; preds = %27, %34
%37 = phi i32* [ %28, %27 ], [ %35, %34 ]
br i1 %12, label %43, label %38
38: ; preds = %36
%39 = call i32 @strlen(i8* %0)
%40 = add nsw i32 %39, 30
%41 = call i8* @malloc(i32 %40)
%42 = call i32 @strcpy(i8* %41, i8* %0)
br label %48
43: ; preds = %36
%44 = call i32 @strlen(i8* %1)
%45 = add nsw i32 %44, 30
%46 = call i8* @malloc(i32 %45)
%47 = call i32 @strcpy(i8* %46, i8* %1)
br label %48
48: ; preds = %43, %38
%49 = phi i8* [ %46, %43 ], [ %41, %38 ]
%50 = call i32 @strcat(i8* %49, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%51 = call i32* @fopen(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%52 = icmp eq i32* %51, null
br i1 %52, label %53, label %64
53: ; preds = %48
%54 = load i32, i32* @stderr
%55 = call i32 @fprintf(i32 %54, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i8* %49)
%56 = call i32 @free(i8* %49)
%57 = icmp eq i32* %26, null
br i1 %57, label %60, label %58
58: ; preds = %53
%59 = call i32 @fclose(i32* %26)
br label %60
60: ; preds = %58, %53
%61 = icmp eq i32* %37, null
br i1 %61, label %64, label %62
62: ; preds = %60
%63 = call i32 @fclose(i32* %37)
br label %64
64: ; preds = %60, %62, %48
%65 = call i32 @memset(i8* %10, i8 signext 0, i32 128)
%66 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 1
store i8 0, i8* %10
%67 = select i1 %12, i8* %1, i8* %0
%68 = call i8* @strrchr(i8* dereferenceable(1) %67, i8 signext 47)
%69 = icmp eq i8* %68, null
%70 = getelementptr inbounds i8, i8* %68, i64 1
%71 = select i1 %69, i8* %67, i8* %70
%72 = ptrtoint i8* %71 to i64
%73 = call i32 @strlen(i8* %71)
%74 = icmp slt i32 %73, 63
%75 = select i1 %74, i32 %73, i32 63
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds i8, i8* %71, i64 %76
%78 = trunc i32 %75 to i8
%79 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 2
store i8 %78, i8* %66
%80 = icmp sgt i32 %73, 0
br i1 %80, label %81, label %188
81: ; preds = %64
%82 = add i64 %72, %76
%83 = add i64 %72, 1
%84 = call i64 @llvm.umax.i64(i64 %82, i64 %83)
%85 = sub i64 %84, %72
%86 = icmp ult i64 %85, 32
br i1 %86, label %181, label %87
87: ; preds = %81
%88 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 2
%89 = add i64 %72, %76
%90 = add i64 %72, 1
%91 = call i64 @llvm.umax.i64(i64 %89, i64 %90)
%92 = add i64 %91, 2
%93 = sub i64 %92, %72
%94 = getelementptr [128 x i8], [128 x i8]* %7, i64 0, i64 %93
%95 = sub i64 %91, %72
%96 = getelementptr i8, i8* %71, i64 %95
%97 = icmp ult i8* %88, %96
%98 = icmp ult i8* %71, %94
%99 = and i1 %97, %98
br i1 %99, label %181, label %100
100: ; preds = %87
%101 = and i64 %85, -32
%102 = getelementptr i8, i8* %71, i64 %101
%103 = getelementptr i8, i8* %79, i64 %101
%104 = add i64 %101, -32
%105 = lshr exact i64 %104, 5
%106 = add nuw nsw i64 %105, 1
%107 = and i64 %106, 3
%108 = icmp ult i64 %104, 96
br i1 %108, label %160, label %109
109: ; preds = %100
%110 = and i64 %106, 1152921504606846972
br label %111
111: ; preds = %111, %109
%112 = phi i64 [ 0, %109 ], [ %157, %111 ]
%113 = phi i64 [ 0, %109 ], [ %158, %111 ]
%114 = getelementptr i8, i8* %71, i64 %112
%115 = getelementptr i8, i8* %79, i64 %112
%116 = bitcast i8* %114 to <16 x i8>*
%117 = load <16 x i8>, <16 x i8>* %116
%118 = getelementptr i8, i8* %114, i64 16
%119 = bitcast i8* %118 to <16 x i8>*
%120 = load <16 x i8>, <16 x i8>* %119
%121 = bitcast i8* %115 to <16 x i8>*
store <16 x i8> %117, <16 x i8>* %121
%122 = getelementptr i8, i8* %115, i64 16
%123 = bitcast i8* %122 to <16 x i8>*
store <16 x i8> %120, <16 x i8>* %123
%124 = or i64 %112, 32
%125 = getelementptr i8, i8* %71, i64 %124
%126 = getelementptr i8, i8* %79, i64 %124
%127 = bitcast i8* %125 to <16 x i8>*
%128 = load <16 x i8>, <16 x i8>* %127
%129 = getelementptr i8, i8* %125, i64 16
%130 = bitcast i8* %129 to <16 x i8>*
%131 = load <16 x i8>, <16 x i8>* %130
%132 = bitcast i8* %126 to <16 x i8>*
store <16 x i8> %128, <16 x i8>* %132
%133 = getelementptr i8, i8* %126, i64 16
%134 = bitcast i8* %133 to <16 x i8>*
store <16 x i8> %131, <16 x i8>* %134
%135 = or i64 %112, 64
%136 = getelementptr i8, i8* %71, i64 %135
%137 = getelementptr i8, i8* %79, i64 %135
%138 = bitcast i8* %136 to <16 x i8>*
%139 = load <16 x i8>, <16 x i8>* %138
%140 = getelementptr i8, i8* %136, i64 16
%141 = bitcast i8* %140 to <16 x i8>*
%142 = load <16 x i8>, <16 x i8>* %141
%143 = bitcast i8* %137 to <16 x i8>*
store <16 x i8> %139, <16 x i8>* %143
%144 = getelementptr i8, i8* %137, i64 16
%145 = bitcast i8* %144 to <16 x i8>*
store <16 x i8> %142, <16 x i8>* %145
%146 = or i64 %112, 96
%147 = getelementptr i8, i8* %71, i64 %146
%148 = getelementptr i8, i8* %79, i64 %146
%149 = bitcast i8* %147 to <16 x i8>*
%150 = load <16 x i8>, <16 x i8>* %149
%151 = getelementptr i8, i8* %147, i64 16
%152 = bitcast i8* %151 to <16 x i8>*
%153 = load <16 x i8>, <16 x i8>* %152
%154 = bitcast i8* %148 to <16 x i8>*
store <16 x i8> %150, <16 x i8>* %154
%155 = getelementptr i8, i8* %148, i64 16
%156 = bitcast i8* %155 to <16 x i8>*
store <16 x i8> %153, <16 x i8>* %156
%157 = add nuw i64 %112, 128
%158 = add i64 %113, 4
%159 = icmp eq i64 %158, %110
br i1 %159, label %160, label %111
160: ; preds = %111, %100
%161 = phi i64 [ 0, %100 ], [ %157, %111 ]
%162 = icmp eq i64 %107, 0
br i1 %162, label %179, label %163
163: ; preds = %160, %163
%164 = phi i64 [ %176, %163 ], [ %161, %160 ]
%165 = phi i64 [ %177, %163 ], [ 0, %160 ]
%166 = getelementptr i8, i8* %71, i64 %164
%167 = getelementptr i8, i8* %79, i64 %164
%168 = bitcast i8* %166 to <16 x i8>*
%169 = load <16 x i8>, <16 x i8>* %168
%170 = getelementptr i8, i8* %166, i64 16
%171 = bitcast i8* %170 to <16 x i8>*
%172 = load <16 x i8>, <16 x i8>* %171
%173 = bitcast i8* %167 to <16 x i8>*
store <16 x i8> %169, <16 x i8>* %173
%174 = getelementptr i8, i8* %167, i64 16
%175 = bitcast i8* %174 to <16 x i8>*
store <16 x i8> %172, <16 x i8>* %175
%176 = add nuw i64 %164, 32
%177 = add i64 %165, 1
%178 = icmp eq i64 %177, %107
br i1 %178, label %179, label %163
179: ; preds = %163, %160
%180 = icmp eq i64 %85, %101
br i1 %180, label %184, label %181
181: ; preds = %87, %81, %179
%182 = phi i8* [ %71, %87 ], [ %71, %81 ], [ %102, %179 ]
%183 = phi i8* [ %79, %87 ], [ %79, %81 ], [ %103, %179 ]
br label %194
184: ; preds = %194, %179
%185 = phi i8* [ %103, %179 ], [ %199, %194 ]
%186 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 65
%187 = icmp ult i8* %185, %186
br i1 %187, label %188, label %201
188: ; preds = %64, %184
%189 = phi i8* [ %185, %184 ], [ %79, %64 ]
%190 = ptrtoint i8* %189 to i64
%191 = add i64 %8, 65
%192 = sub i64 %191, %190
%193 = getelementptr i8, i8* %189, i64 %192
br label %201
194: ; preds = %181, %194
%195 = phi i8* [ %197, %194 ], [ %182, %181 ]
%196 = phi i8* [ %199, %194 ], [ %183, %181 ]
%197 = getelementptr inbounds i8, i8* %195, i64 1
%198 = load i8, i8* %195
%199 = getelementptr inbounds i8, i8* %196, i64 1
store i8 %198, i8* %196
%200 = icmp ult i8* %197, %77
br i1 %200, label %194, label %184
201: ; preds = %188, %184
%202 = phi i8* [ %185, %184 ], [ %193, %188 ]
%203 = load i8*, i8** %6
%204 = icmp eq i8* %203, null
br i1 %204, label %205, label %206
205: ; preds = %201
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %6
br label %206
206: ; preds = %205, %201
%207 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), %205 ], [ %203, %201 ]
%208 = load i8*, i8** %5
%209 = icmp eq i8* %208, null
br i1 %209, label %210, label %211
210: ; preds = %206
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0), i8** %5
br label %211
211: ; preds = %210, %206
%212 = load i8, i8* %207
%213 = getelementptr inbounds i8, i8* %202, i64 1
store i8 %212, i8* %202
%214 = getelementptr inbounds i8, i8* %207, i64 1
%215 = load i8, i8* %214
%216 = getelementptr inbounds i8, i8* %202, i64 2
store i8 %215, i8* %213
%217 = getelementptr inbounds i8, i8* %207, i64 2
%218 = load i8, i8* %217
%219 = getelementptr inbounds i8, i8* %202, i64 3
store i8 %218, i8* %216
%220 = getelementptr inbounds i8, i8* %207, i64 3
%221 = load i8, i8* %220
%222 = getelementptr inbounds i8, i8* %202, i64 4
store i8 %221, i8* %219
%223 = load i8*, i8** %5
%224 = load i8, i8* %223
%225 = getelementptr inbounds i8, i8* %202, i64 5
store i8 %224, i8* %222
%226 = getelementptr inbounds i8, i8* %223, i64 1
%227 = load i8, i8* %226
%228 = getelementptr inbounds i8, i8* %202, i64 6
store i8 %227, i8* %225
%229 = getelementptr inbounds i8, i8* %223, i64 2
%230 = load i8, i8* %229
%231 = getelementptr inbounds i8, i8* %202, i64 7
store i8 %230, i8* %228
%232 = getelementptr inbounds i8, i8* %223, i64 3
%233 = load i8, i8* %232
%234 = getelementptr inbounds i8, i8* %202, i64 8
store i8 %233, i8* %231
%235 = getelementptr inbounds i8, i8* %202, i64 18
%236 = icmp eq i32* %26, null
br i1 %236, label %243, label %237
237: ; preds = %211
%238 = load i32, i32* @SEEK_END
%239 = call i32 @fseek(i32* %26, i32 0, i32 %238)
%240 = call i64 @ftell(i32* %26)
%241 = load i32, i32* @SEEK_SET
%242 = call i32 @fseek(i32* %26, i32 0, i32 %241)
br label %243
243: ; preds = %237, %211
%244 = phi i64 [ %240, %237 ], [ 0, %211 ]
%245 = icmp eq i32* %37, null
br i1 %245, label %252, label %246
246: ; preds = %243
%247 = load i32, i32* @SEEK_END
%248 = call i32 @fseek(i32* %37, i32 0, i32 %247)
%249 = call i64 @ftell(i32* %37)
%250 = load i32, i32* @SEEK_SET
%251 = call i32 @fseek(i32* %37, i32 0, i32 %250)
br label %252
252: ; preds = %246, %243
%253 = phi i64 [ %249, %246 ], [ 0, %243 ]
%254 = lshr i64 %244, 24
%255 = trunc i64 %254 to i8
%256 = getelementptr inbounds i8, i8* %202, i64 19
store i8 %255, i8* %235
%257 = lshr i64 %244, 16
%258 = trunc i64 %257 to i8
%259 = getelementptr inbounds i8, i8* %202, i64 20
store i8 %258, i8* %256
%260 = lshr i64 %244, 8
%261 = trunc i64 %260 to i8
%262 = getelementptr inbounds i8, i8* %202, i64 21
store i8 %261, i8* %259
%263 = trunc i64 %244 to i8
%264 = getelementptr inbounds i8, i8* %202, i64 22
store i8 %263, i8* %262
%265 = lshr i64 %253, 24
%266 = trunc i64 %265 to i8
%267 = getelementptr inbounds i8, i8* %202, i64 23
store i8 %266, i8* %264
%268 = lshr i64 %253, 16
%269 = trunc i64 %268 to i8
%270 = getelementptr inbounds i8, i8* %202, i64 24
store i8 %269, i8* %267
%271 = lshr i64 %253, 8
%272 = trunc i64 %271 to i8
%273 = getelementptr inbounds i8, i8* %202, i64 25
store i8 %272, i8* %270
%274 = trunc i64 %253 to i8
store i8 %274, i8* %273
%275 = call i32 @time(i32* %9)
%276 = load i32, i32* %9
%277 = getelementptr inbounds i8, i8* %202, i64 26
%278 = add i32 %276, 2082844800
store i32 %278, i32* %9
%279 = lshr i32 %278, 24
%280 = trunc i32 %279 to i8
%281 = getelementptr inbounds i8, i8* %202, i64 27
store i8 %280, i8* %277
%282 = lshr i32 %278, 16
%283 = trunc i32 %282 to i8
%284 = getelementptr inbounds i8, i8* %202, i64 28
store i8 %283, i8* %281
%285 = lshr i32 %278, 8
%286 = trunc i32 %285 to i8
%287 = getelementptr inbounds i8, i8* %202, i64 29
store i8 %286, i8* %284
%288 = trunc i32 %278 to i8
%289 = getelementptr inbounds i8, i8* %202, i64 30
store i8 %288, i8* %287
%290 = getelementptr inbounds i8, i8* %202, i64 31
store i8 %280, i8* %289
%291 = getelementptr inbounds i8, i8* %202, i64 32
store i8 %283, i8* %290
%292 = getelementptr inbounds i8, i8* %202, i64 33
store i8 %286, i8* %291
%293 = getelementptr inbounds i8, i8* %202, i64 34
store i8 %288, i8* %292
%294 = getelementptr inbounds i8, i8* %202, i64 35
store i8 0, i8* %293
%295 = getelementptr inbounds i8, i8* %202, i64 36
store i8 0, i8* %294
store i8 0, i8* %295
%296 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 102
%297 = call i32 @memcpy(i8* %296, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 4)
%298 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 106
store i8 0, i8* %298
%299 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 107
store i8 0, i8* %299
%300 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 122
store i8 -126, i8* %300
%301 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 123
store i8 -127, i8* %301
%302 = call i32 @binhex_crc(i8* %10, i32 124)
%303 = lshr i32 %302, 8
%304 = trunc i32 %303 to i8
%305 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 124
store i8 %304, i8* %305
%306 = trunc i32 %302 to i8
%307 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 125
store i8 %306, i8* %307
%308 = call i32 @fwrite(i8* %10, i32 1, i32 128, i32* %51)
br i1 %236, label %331, label %309
309: ; preds = %252
%310 = call i32 @getc(i32* %26)
%311 = load i32, i32* @EOF
%312 = icmp eq i32 %310, %311
br i1 %312, label %313, label %316
313: ; preds = %316, %309
%314 = and i64 %244, 127
%315 = icmp eq i64 %314, 0
br i1 %315, label %329, label %323
316: ; preds = %309, %316
%317 = phi i32 [ %320, %316 ], [ %310, %309 ]
%318 = trunc i32 %317 to i8
%319 = call i32 @putc(i8 signext %318, i32* %51)
%320 = call i32 @getc(i32* %26)
%321 = load i32, i32* @EOF
%322 = icmp eq i32 %320, %321
br i1 %322, label %313, label %316
323: ; preds = %313, %323
%324 = phi i64 [ %326, %323 ], [ %244, %313 ]
%325 = call i32 @putc(i8 signext 0, i32* %51)
%326 = add i64 %324, 1
%327 = and i64 %326, 127
%328 = icmp eq i64 %327, 0
br i1 %328, label %329, label %323
329: ; preds = %323, %313
%330 = call i32 @fclose(i32* %26)
br label %331
331: ; preds = %329, %252
br i1 %245, label %354, label %332
332: ; preds = %331
%333 = call i32 @getc(i32* %37)
%334 = load i32, i32* @EOF
%335 = icmp eq i32 %333, %334
br i1 %335, label %336, label %339
336: ; preds = %339, %332
%337 = and i64 %253, 127
%338 = icmp eq i64 %337, 0
br i1 %338, label %352, label %346
339: ; preds = %332, %339
%340 = phi i32 [ %343, %339 ], [ %333, %332 ]
%341 = trunc i32 %340 to i8
%342 = call i32 @putc(i8 signext %341, i32* %51)
%343 = call i32 @getc(i32* %37)
%344 = load i32, i32* @EOF
%345 = icmp eq i32 %343, %344
br i1 %345, label %336, label %339
346: ; preds = %336, %346
%347 = phi i64 [ %349, %346 ], [ %253, %336 ]
%348 = call i32 @putc(i8 signext 0, i32* %51)
%349 = add i64 %347, 1
%350 = and i64 %349, 127
%351 = icmp eq i64 %350, 0
br i1 %351, label %352, label %346
352: ; preds = %346, %336
%353 = call i32 @fclose(i32* %37)
br label %354
354: ; preds = %331, %352, %4
ret void
}