#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 u_long;
typedef unsigned char u_char;
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int C_IN;
int /*<<< orphan*/ PUTLONG(int, unsigned char *);
int /*<<< orphan*/ PUTSHORT(int, unsigned char *);
int dn_comp(char const *, unsigned char *, int, unsigned char **,
            unsigned char **);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fputc(unsigned char, int /*<<< orphan*/ *);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int time(int /*<<< orphan*/ *);
int main() {
  FILE *f;
  u_char buf[1000];
  u_char *p;
  char *temp, *temp1;
  u_char *comp_dn, *comp_dn2;
  char exp_dn[200], exp_dn2[200];
  u_char **dnptrs, **lastdnptr, **dnptrs2;
  int i, len = 0, comp_size;
  u_long now;
  dnptrs = (unsigned char **)malloc(2 * sizeof(unsigned char *));
  dnptrs2 = (unsigned char **)malloc(2 * sizeof(unsigned char *));
  comp_dn = (unsigned char *)malloc(200 * sizeof(unsigned char));
  comp_dn2 = (unsigned char *)malloc(200 * sizeof(unsigned char));
  temp1 = (char *)malloc(400 * sizeof(char));
  temp = temp1;
  p = buf;
  strcpy(temp, "HEADER JUNK:");
  len += strlen(temp);
  while (*temp != '\0')
    *p++ = *temp++;
  strcpy(exp_dn, "lcs.mit.edu");
  *dnptrs++ = (u_char *)exp_dn;
  *dnptrs-- = NULL;
  lastdnptr = NULL;
  printf("Calling dn_comp..\n");
  comp_size = dn_comp((const char *)exp_dn, comp_dn, 200, dnptrs, lastdnptr);
  printf("uncomp_size = %d\n", strlen(exp_dn));
  printf("comp_size = %d\n", comp_size);
  printf("exp_dn = %s, comp_dn = %s\n", exp_dn, (char *)comp_dn);
  for (i = 0; i < comp_size; i++)
    *p++ = *comp_dn++;
  len += comp_size;
  PUTSHORT(24, p);
  p += 2;
  PUTSHORT(C_IN, p);
  p += 2;
  PUTLONG(255, p);
  p += 4;
  PUTSHORT(30, p);
  p += 2;
  len += 10;
  PUTSHORT(15, p);
  p += 2;
  PUTSHORT(256 * 2, p);
  p += 2;
  PUTLONG(255, p);
  p += 4;
  now = time(NULL);
  printf("Signing at = %d\n", now);
  PUTLONG(now + 20000, p);
  p += 4;
  PUTLONG(now, p);
  p += 4;
  PUTSHORT(100, p);
  p += 2;
  len += 18;
  strcpy(exp_dn2, "sls.lcs.mit.edu");
  *dnptrs2++ = (u_char *)exp_dn2;
  *dnptrs2-- = NULL;
  lastdnptr = NULL;
  printf("Calling dn_comp..\n");
  comp_size = dn_comp((const char *)exp_dn2, comp_dn2, 200, dnptrs2, lastdnptr);
  printf("uncomp_size = %d\n", strlen(exp_dn2));
  printf("comp_size = %d\n", comp_size);
  printf("exp_dn2 = %s, comp_dn2 = %s\n", exp_dn2, (char *)comp_dn2);
  len += comp_size;
  for (i = 0; i < comp_size; i++)
    *p++ = *comp_dn2++;
  for (i = 0; i < 11; i++) {
    PUTLONG(123, p);
    p += 4;
    len += 4;
  }
  f = fopen("SIGFILE", "w");
  p = buf;
  printf("len = %d\n", len);
  for (i = 0; i < len; i++, p++)
    fputc(*p, f);
  fclose(f);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x5f0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x5e0(%rbp)
mov    $0x10,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x5c8(%rbp)
mov    $0x10,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x5d8(%rbp)
mov    $0xc8,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x420(%rbp)
mov    $0xc8,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x428(%rbp)
mov    $0x190,%edi
call   10b0 <malloc@plt>
mov    %rax,-0x418(%rbp)
mov    -0x418(%rbp),%rax
mov    %rax,-0x410(%rbp)
lea    -0x400(%rbp),%rax
mov    %rax,-0x408(%rbp)
mov    -0x410(%rbp),%rdi
lea    0xdb5(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x410(%rbp),%rdi
call   1050 <strlen@plt>
add    -0x5e0(%rbp),%eax
mov    %eax,-0x5e0(%rbp)
mov    -0x410(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     12ae <main+0xfe>
mov    -0x410(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x410(%rbp)
mov    (%rax),%cl
mov    -0x408(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x408(%rbp)
mov    %cl,(%rax)
jmp    1268 <main+0xb8>
lea    -0x4f0(%rbp),%rdi
lea    0xda6(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x4f0(%rbp),%rcx
mov    -0x5c8(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x5c8(%rbp)
mov    %rcx,(%rax)
mov    -0x5c8(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x5c8(%rbp)
movq   $0x0,(%rax)
movq   $0x0,-0x5d0(%rbp)
lea    0xcff(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x4f0(%rbp),%rdi
mov    -0x420(%rbp),%rsi
mov    -0x5c8(%rbp),%rcx
mov    -0x5d0(%rbp),%r8
mov    $0xc8,%edx
call   1090 <dn_comp@plt>
mov    %eax,-0x5e4(%rbp)
lea    -0x4f0(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x5e4(%rbp),%esi
lea    0xcb8(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x4f0(%rbp),%rsi
mov    -0x420(%rbp),%rdx
lea    0xcac(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x5dc(%rbp)
mov    -0x5dc(%rbp),%eax
cmp    -0x5e4(%rbp),%eax
jge    13eb <main+0x23b>
mov    -0x420(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x420(%rbp)
mov    (%rax),%cl
mov    -0x408(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x408(%rbp)
mov    %cl,(%rax)
mov    -0x5dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5dc(%rbp)
jmp    1397 <main+0x1e7>
mov    -0x5e4(%rbp),%eax
add    -0x5e0(%rbp),%eax
mov    %eax,-0x5e0(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0x18,%edi
call   10d0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    0x2bc1(%rip),%rax
mov    (%rax),%edi
mov    -0x408(%rbp),%rsi
call   10d0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0xff,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0x1e,%edi
call   10d0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x5e0(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x5e0(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0xf,%edi
call   10d0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0x200,%edi
call   10d0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0xff,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   10a0 <time@plt>
mov    %eax,-0x5e8(%rbp)
mov    -0x5e8(%rbp),%esi
lea    0xb2c(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x5e8(%rbp),%edi
add    $0x4e20,%edi
mov    -0x408(%rbp),%rsi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x5e8(%rbp),%edi
mov    -0x408(%rbp),%rsi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x408(%rbp),%rsi
mov    $0x64,%edi
call   10d0 <PUTSHORT@plt>
mov    -0x408(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x408(%rbp)
mov    -0x5e0(%rbp),%eax
add    $0x12,%eax
mov    %eax,-0x5e0(%rbp)
lea    -0x5c0(%rbp),%rdi
lea    0xaa8(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x5c0(%rbp),%rcx
mov    -0x5d8(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x5d8(%rbp)
mov    %rcx,(%rax)
mov    -0x5d8(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x5d8(%rbp)
movq   $0x0,(%rax)
movq   $0x0,-0x5d0(%rbp)
lea    0xa05(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x5c0(%rbp),%rdi
mov    -0x428(%rbp),%rsi
mov    -0x5d8(%rbp),%rcx
mov    -0x5d0(%rbp),%r8
mov    $0xc8,%edx
call   1090 <dn_comp@plt>
mov    %eax,-0x5e4(%rbp)
lea    -0x5c0(%rbp),%rdi
call   1050 <strlen@plt>
mov    %eax,%esi
lea    0x9d0(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x5e4(%rbp),%esi
lea    0x9be(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
lea    -0x5c0(%rbp),%rsi
mov    -0x428(%rbp),%rdx
lea    0x9ee(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
mov    -0x5e4(%rbp),%eax
add    -0x5e0(%rbp),%eax
mov    %eax,-0x5e0(%rbp)
movl   $0x0,-0x5dc(%rbp)
mov    -0x5dc(%rbp),%eax
cmp    -0x5e4(%rbp),%eax
jge    16f7 <main+0x547>
mov    -0x428(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x428(%rbp)
mov    (%rax),%cl
mov    -0x408(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x408(%rbp)
mov    %cl,(%rax)
mov    -0x5dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5dc(%rbp)
jmp    16a3 <main+0x4f3>
movl   $0x0,-0x5dc(%rbp)
cmpl   $0xb,-0x5dc(%rbp)
jge    1754 <main+0x5a4>
mov    -0x408(%rbp),%rsi
mov    $0x7b,%edi
call   1060 <PUTLONG@plt>
mov    -0x408(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x408(%rbp)
mov    -0x5e0(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x5e0(%rbp)
mov    -0x5dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5dc(%rbp)
jmp    1701 <main+0x551>
lea    0x930(%rip),%rdi
lea    0x931(%rip),%rsi
call   10c0 <fopen@plt>
mov    %rax,-0x10(%rbp)
lea    -0x400(%rbp),%rax
mov    %rax,-0x408(%rbp)
mov    -0x5e0(%rbp),%esi
lea    0x90f(%rip),%rdi
mov    $0x0,%al
call   1070 <printf@plt>
movl   $0x0,-0x5dc(%rbp)
mov    -0x5dc(%rbp),%eax
cmp    -0x5e0(%rbp),%eax
jge    17e4 <main+0x634>
mov    -0x408(%rbp),%rax
mov    (%rax),%al
mov    -0x10(%rbp),%rsi
movzbl %al,%edi
call   1080 <fputc@plt>
mov    -0x5dc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5dc(%rbp)
mov    -0x408(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x408(%rbp)
jmp    1797 <main+0x5e7>
mov    -0x10(%rbp),%rdi
call   1040 <fclose@plt>
xor    %eax,%eax
add    $0x5f0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x5a8,%rsp
mov    $0x10,%edi
call   10c0 <malloc@plt>
mov    %rax,%r15
mov    $0x10,%edi
call   10c0 <malloc@plt>
mov    %rax,%r14
mov    $0xc8,%edi
call   10c0 <malloc@plt>
mov    %rax,%rbx
mov    $0xc8,%edi
call   10c0 <malloc@plt>
mov    %rax,%r13
mov    $0x190,%edi
call   10c0 <malloc@plt>
mov    %rax,%rbp
lea    0xde7(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcpy@plt>
mov    %rbp,%rdi
call   1060 <strlen@plt>
mov    %rax,0x8(%rsp)
mov    0x0(%rbp),%al
test   %al,%al
mov    %r14,0x10(%rsp)
lea    0x1c0(%rsp),%r12
je     1264 <main+0xa4>
add    $0x1,%rbp
cs nopw 0x0(%rax,%rax,1)
mov    %al,(%r12)
add    $0x1,%r12
movzbl 0x0(%rbp),%eax
add    $0x1,%rbp
test   %al,%al
jne    1250 <main+0x90>
lea    0xde4(%rip),%rsi
lea    0xf0(%rsp),%r14
mov    %r14,%rdi
call   1030 <strcpy@plt>
mov    %r14,(%r15)
movq   $0x0,0x8(%r15)
lea    0xdff(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0xc8,%edx
mov    %r15,%rcx
xor    %r8d,%r8d
call   10a0 <dn_comp@plt>
mov    %eax,%r15d
mov    %r14,%rdi
call   1060 <strlen@plt>
lea    0xd53(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xd45(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xd44(%rip),%rdi
mov    %r14,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1080 <printf@plt>
test   %r15d,%r15d
mov    %r15,0x18(%rsp)
jle    134c <main+0x18c>
lea    -0x1(%r15),%eax
mov    %r12,%rbp
cmp    $0x1f,%eax
jb     1408 <main+0x248>
lea    (%rbx,%rax,1),%rcx
add    $0x1,%rcx
cmp    %rcx,%r12
jae    1323 <main+0x163>
lea    (%r12,%rax,1),%rcx
add    $0x1,%rcx
mov    %r12,%rbp
cmp    %rbx,%rcx
ja     1408 <main+0x248>
lea    0x1(%rax),%r8
mov    %r8,%rcx
and    $0xffffffffffffffe0,%rcx
lea    -0x20(%rcx),%rdx
mov    %rdx,%rdi
shr    $0x5,%rdi
add    $0x1,%rdi
mov    %edi,%esi
and    $0x3,%esi
cmp    $0x60,%rdx
jae    1354 <main+0x194>
xor    %ebp,%ebp
jmp    13c0 <main+0x200>
mov    %r12,%rbp
jmp    1425 <main+0x265>
and    $0xfffffffffffffffc,%rdi
xor    %ebp,%ebp
nopw   0x0(%rax,%rax,1)
movups (%rbx,%rbp,1),%xmm0
movups 0x10(%rbx,%rbp,1),%xmm1
movups %xmm0,(%r12,%rbp,1)
movups %xmm1,0x10(%r12,%rbp,1)
movups 0x20(%rbx,%rbp,1),%xmm0
movups 0x30(%rbx,%rbp,1),%xmm1
movups %xmm0,0x20(%r12,%rbp,1)
movups %xmm1,0x30(%r12,%rbp,1)
movups 0x40(%rbx,%rbp,1),%xmm0
movups 0x50(%rbx,%rbp,1),%xmm1
movups %xmm0,0x40(%r12,%rbp,1)
movups %xmm1,0x50(%r12,%rbp,1)
movups 0x60(%rbx,%rbp,1),%xmm0
movups 0x70(%rbx,%rbp,1),%xmm1
movups %xmm0,0x60(%r12,%rbp,1)
movups %xmm1,0x70(%r12,%rbp,1)
sub    $0xffffffffffffff80,%rbp
add    $0xfffffffffffffffc,%rdi
jne    1360 <main+0x1a0>
test   %rsi,%rsi
je     13fc <main+0x23c>
lea    (%rbx,%rbp,1),%rdi
add    $0x10,%rdi
add    %r12,%rbp
add    $0x10,%rbp
shl    $0x5,%rsi
xor    %edx,%edx
nopw   0x0(%rax,%rax,1)
movups -0x10(%rdi,%rdx,1),%xmm0
movups (%rdi,%rdx,1),%xmm1
movups %xmm0,-0x10(%rbp,%rdx,1)
movups %xmm1,0x0(%rbp,%rdx,1)
add    $0x20,%rdx
cmp    %rdx,%rsi
jne    13e0 <main+0x220>
lea    (%r12,%rcx,1),%rbp
cmp    %rcx,%r8
je     1425 <main+0x265>
add    %rcx,%rbx
add    %rax,%r12
mov    %rbp,%rax
xchg   %ax,%ax
movzbl (%rbx),%ecx
add    $0x1,%rbx
lea    0x1(%rax),%rbp
mov    %cl,(%rax)
cmp    %r12,%rax
mov    %rbp,%rax
jne    1410 <main+0x250>
mov    $0x18,%edi
mov    %rbp,%rsi
call   10e0 <PUTSHORT@plt>
lea    0x2(%rbp),%rsi
mov    0x2bab(%rip),%rax
mov    (%rax),%edi
call   10e0 <PUTSHORT@plt>
lea    0x4(%rbp),%rsi
mov    $0xff,%edi
call   1070 <PUTLONG@plt>
lea    0x8(%rbp),%rsi
mov    $0x1e,%edi
call   10e0 <PUTSHORT@plt>
lea    0xa(%rbp),%rsi
mov    $0xf,%edi
call   10e0 <PUTSHORT@plt>
lea    0xc(%rbp),%rsi
mov    $0x200,%edi
call   10e0 <PUTSHORT@plt>
lea    0xe(%rbp),%rsi
mov    $0xff,%edi
call   1070 <PUTLONG@plt>
lea    0x12(%rbp),%r14
xor    %edi,%edi
call   10b0 <time@plt>
mov    %eax,%ebx
lea    0xb9c(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0x4e20(%rbx),%edi
mov    %r14,%rsi
call   1070 <PUTLONG@plt>
lea    0x16(%rbp),%rsi
mov    %ebx,%edi
call   1070 <PUTLONG@plt>
lea    0x1a(%rbp),%rsi
mov    $0x64,%edi
call   10e0 <PUTSHORT@plt>
lea    0x1c(%rbp),%rbx
lea    0xb72(%rip),%rsi
lea    0x20(%rsp),%r14
mov    %r14,%rdi
call   1030 <strcpy@plt>
mov    0x10(%rsp),%r15
mov    %r14,(%r15)
movq   $0x0,0x8(%r15)
lea    0xb8f(%rip),%rdi
call   1040 <puts@plt>
mov    %r14,%rdi
mov    %r13,%rsi
mov    $0xc8,%edx
mov    %r15,%rcx
xor    %r8d,%r8d
call   10a0 <dn_comp@plt>
mov    %eax,%r12d
mov    %r14,%rdi
call   1060 <strlen@plt>
lea    0xae3(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xad5(%rip),%rdi
mov    %r12d,%esi
xor    %eax,%eax
call   1080 <printf@plt>
lea    0xb10(%rip),%rdi
mov    %r14,%rsi
mov    %r13,%rdx
xor    %eax,%eax
call   1080 <printf@plt>
test   %r12d,%r12d
jle    163c <main+0x47c>
lea    -0x1(%r12),%eax
cmp    $0x1f,%eax
jb     158d <main+0x3cd>
lea    (%rax,%r13,1),%rcx
add    $0x1,%rcx
cmp    %rcx,%rbx
jae    1775 <main+0x5b5>
lea    (%rax,%rbp,1),%rcx
add    $0x1d,%rcx
cmp    %r13,%rcx
jbe    1775 <main+0x5b5>
mov    0x8(%rsp),%r15
xor    %r8d,%r8d
mov    %r12d,%ecx
sub    %r8d,%ecx
mov    %r8d,%esi
not    %esi
add    %r12d,%esi
and    $0x7,%ecx
je     15ca <main+0x40a>
neg    %ecx
xor    %edx,%edx
nopl   0x0(%rax)
movzbl 0x0(%r13),%eax
add    $0x1,%r13
mov    %al,(%rbx)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rdx
cmp    %edx,%ecx
jne    15b0 <main+0x3f0>
sub    %edx,%r8d
cmp    $0x7,%esi
jb     1641 <main+0x481>
mov    %r12d,%eax
sub    %r8d,%eax
xor    %ecx,%ecx
nopw   0x0(%rax,%rax,1)
movzbl 0x0(%r13,%rcx,1),%edx
mov    %dl,(%rbx,%rcx,1)
movzbl 0x1(%r13,%rcx,1),%edx
mov    %dl,0x1(%rbx,%rcx,1)
movzbl 0x2(%r13,%rcx,1),%edx
mov    %dl,0x2(%rbx,%rcx,1)
movzbl 0x3(%r13,%rcx,1),%edx
mov    %dl,0x3(%rbx,%rcx,1)
movzbl 0x4(%r13,%rcx,1),%edx
mov    %dl,0x4(%rbx,%rcx,1)
movzbl 0x5(%r13,%rcx,1),%edx
mov    %dl,0x5(%rbx,%rcx,1)
movzbl 0x6(%r13,%rcx,1),%edx
mov    %dl,0x6(%rbx,%rcx,1)
movzbl 0x7(%r13,%rcx,1),%edx
mov    %dl,0x7(%rbx,%rcx,1)
add    $0x8,%rcx
cmp    %ecx,%eax
jne    15e0 <main+0x420>
add    %rcx,%rbx
jmp    1641 <main+0x481>
mov    0x8(%rsp),%r15
mov    0x18(%rsp),%rbp
add    %r12d,%ebp
lea    (%r15,%rbp,1),%r14d
add    $0x44,%r14d
mov    $0x7b,%edi
mov    %rbx,%rsi
call   1070 <PUTLONG@plt>
lea    0x4(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0x8(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0xc(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0x10(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0x14(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0x18(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0x1c(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0x20(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
lea    0x24(%rbx),%rsi
mov    $0x7b,%edi
call   1070 <PUTLONG@plt>
add    $0x28,%rbx
mov    $0x7b,%edi
mov    %rbx,%rsi
call   1070 <PUTLONG@plt>
add    %ebp,%r15d
add    $0x48,%r15d
lea    0x97d(%rip),%rdi
lea    0x97e(%rip),%rsi
call   10d0 <fopen@plt>
mov    %rax,%r12
lea    0x971(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1080 <printf@plt>
cmp    $0xfffffffc,%r14d
jle    1759 <main+0x599>
cmp    $0x2,%r15d
mov    $0x1,%ebp
cmovge %r15d,%ebp
add    $0xffffffff,%ebp
add    $0x1,%rbp
xor    %ebx,%ebx
nopw   0x0(%rax,%rax,1)
movzbl 0x1c0(%rsp,%rbx,1),%edi
mov    %r12,%rsi
call   1090 <fputc@plt>
add    $0x1,%rbx
cmp    %rbx,%rbp
jne    1740 <main+0x580>
mov    %r12,%rdi
call   1050 <fclose@plt>
xor    %eax,%eax
add    $0x5a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0x1,%rax
mov    %rax,%r8
and    $0xffffffffffffffe0,%r8
lea    -0x20(%r8),%rsi
mov    %rsi,%rdx
shr    $0x5,%rdx
add    $0x1,%rdx
mov    %edx,%ecx
and    $0x3,%ecx
cmp    $0x60,%rsi
jae    179e <main+0x5de>
xor    %esi,%esi
jmp    1815 <main+0x655>
and    $0xfffffffffffffffc,%rdx
xor    %esi,%esi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups 0x0(%r13,%rsi,1),%xmm0
movups 0x10(%r13,%rsi,1),%xmm1
movups %xmm0,0x1c(%rbp,%rsi,1)
movups %xmm1,0x2c(%rbp,%rsi,1)
movups 0x20(%r13,%rsi,1),%xmm0
movups 0x30(%r13,%rsi,1),%xmm1
movups %xmm0,0x3c(%rbp,%rsi,1)
movups %xmm1,0x4c(%rbp,%rsi,1)
movups 0x40(%r13,%rsi,1),%xmm0
movups 0x50(%r13,%rsi,1),%xmm1
movups %xmm0,0x5c(%rbp,%rsi,1)
movups %xmm1,0x6c(%rbp,%rsi,1)
movups 0x60(%r13,%rsi,1),%xmm0
movups 0x70(%r13,%rsi,1),%xmm1
movups %xmm0,0x7c(%rbp,%rsi,1)
movups %xmm1,0x8c(%rbp,%rsi,1)
sub    $0xffffffffffffff80,%rsi
add    $0xfffffffffffffffc,%rdx
jne    17b0 <main+0x5f0>
test   %rcx,%rcx
je     184b <main+0x68b>
lea    (%rsi,%r13,1),%rdx
add    $0x10,%rdx
add    %rbp,%rsi
add    $0x2c,%rsi
shl    $0x5,%rcx
xor    %edi,%edi
nop
movups -0x10(%rdx,%rdi,1),%xmm0
movups (%rdx,%rdi,1),%xmm1
movups %xmm0,-0x10(%rsi,%rdi,1)
movups %xmm1,(%rsi,%rdi,1)
add    $0x20,%rdi
cmp    %rdi,%rcx
jne    1830 <main+0x670>
add    %r8,%rbx
cmp    %r8,%rax
mov    0x8(%rsp),%r15
je     1641 <main+0x481>
add    %r8,%r13
jmp    1595 <main+0x3d5>

LLVM IR (-O0):
@.str = [13 x i8] c"HEADER JUNK:\00"
@.str.1 = [12 x i8] c"lcs.mit.edu\00"
@.str.2 = [19 x i8] c"Calling dn_comp..\0A\00"
@.str.3 = [18 x i8] c"uncomp_size = %d\0A\00"
@.str.4 = [16 x i8] c"comp_size = %d\0A\00"
@.str.5 = [27 x i8] c"exp_dn = %s, comp_dn = %s\0A\00"
@C_IN = global i32 0
@.str.6 = [17 x i8] c"Signing at = %d\0A\00"
@.str.7 = [16 x i8] c"sls.lcs.mit.edu\00"
@.str.8 = [29 x i8] c"exp_dn2 = %s, comp_dn2 = %s\0A\00"
@.str.9 = [8 x i8] c"SIGFILE\00"
@.str.10 = [2 x i8] c"w\00"
@.str.11 = [10 x i8] c"len = %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca [1000 x i8]
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca [200 x i8]
%10 = alloca [200 x i8]
%11 = alloca i8**
%12 = alloca i8**
%13 = alloca i8**
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %15
%18 = call i64 @malloc(i32 16)
%19 = inttoptr i64 %18 to i8**
store i8** %19, i8*** %11
%20 = call i64 @malloc(i32 16)
%21 = inttoptr i64 %20 to i8**
store i8** %21, i8*** %13
%22 = call i64 @malloc(i32 200)
%23 = inttoptr i64 %22 to i8*
store i8* %23, i8** %7
%24 = call i64 @malloc(i32 200)
%25 = inttoptr i64 %24 to i8*
store i8* %25, i8** %8
%26 = call i64 @malloc(i32 400)
%27 = inttoptr i64 %26 to i8*
store i8* %27, i8** %6
%28 = load i8*, i8** %6
store i8* %28, i8** %5
%29 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
store i8* %29, i8** %4
%30 = load i8*, i8** %5
%31 = call i32 @strcpy(i8* %30, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%32 = load i8*, i8** %5
%33 = call i32 @strlen(i8* %32)
%34 = load i32, i32* %15
%35 = add nsw i32 %34, %33
store i32 %35, i32* %15
br label %36
36: ; preds = %41, %0
%37 = load i8*, i8** %5
%38 = load i8, i8* %37
%39 = sext i8 %38 to i32
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %47
41: ; preds = %36
%42 = load i8*, i8** %5
%43 = getelementptr inbounds i8, i8* %42, i32 1
store i8* %43, i8** %5
%44 = load i8, i8* %42
%45 = load i8*, i8** %4
%46 = getelementptr inbounds i8, i8* %45, i32 1
store i8* %46, i8** %4
store i8 %44, i8* %45
br label %36
47: ; preds = %36
%48 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%49 = call i32 @strcpy(i8* %48, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%50 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%51 = load i8**, i8*** %11
%52 = getelementptr inbounds i8*, i8** %51, i32 1
store i8** %52, i8*** %11
store i8* %50, i8** %51
%53 = load i8**, i8*** %11
%54 = getelementptr inbounds i8*, i8** %53, i32 -1
store i8** %54, i8*** %11
store i8* null, i8** %53
store i8** null, i8*** %12
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%56 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%57 = load i8*, i8** %7
%58 = load i8**, i8*** %11
%59 = load i8**, i8*** %12
%60 = call i32 @dn_comp(i8* %56, i8* %57, i32 200, i8** %58, i8** %59)
store i32 %60, i32* %16
%61 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%62 = call i32 @strlen(i8* %61)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %62)
%64 = load i32, i32* %16
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %64)
%66 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%67 = load i8*, i8** %7
%68 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i8* %66, i8* %67)
store i32 0, i32* %14
br label %69
69: ; preds = %79, %47
%70 = load i32, i32* %14
%71 = load i32, i32* %16
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %82
73: ; preds = %69
%74 = load i8*, i8** %7
%75 = getelementptr inbounds i8, i8* %74, i32 1
store i8* %75, i8** %7
%76 = load i8, i8* %74
%77 = load i8*, i8** %4
%78 = getelementptr inbounds i8, i8* %77, i32 1
store i8* %78, i8** %4
store i8 %76, i8* %77
br label %79
79: ; preds = %73
%80 = load i32, i32* %14
%81 = add nsw i32 %80, 1
store i32 %81, i32* %14
br label %69
82: ; preds = %69
%83 = load i32, i32* %16
%84 = load i32, i32* %15
%85 = add nsw i32 %84, %83
store i32 %85, i32* %15
%86 = load i8*, i8** %4
%87 = call i32 @PUTSHORT(i32 24, i8* %86)
%88 = load i8*, i8** %4
%89 = getelementptr inbounds i8, i8* %88, i64 2
store i8* %89, i8** %4
%90 = load i32, i32* @C_IN
%91 = load i8*, i8** %4
%92 = call i32 @PUTSHORT(i32 %90, i8* %91)
%93 = load i8*, i8** %4
%94 = getelementptr inbounds i8, i8* %93, i64 2
store i8* %94, i8** %4
%95 = load i8*, i8** %4
%96 = call i32 @PUTLONG(i32 255, i8* %95)
%97 = load i8*, i8** %4
%98 = getelementptr inbounds i8, i8* %97, i64 4
store i8* %98, i8** %4
%99 = load i8*, i8** %4
%100 = call i32 @PUTSHORT(i32 30, i8* %99)
%101 = load i8*, i8** %4
%102 = getelementptr inbounds i8, i8* %101, i64 2
store i8* %102, i8** %4
%103 = load i32, i32* %15
%104 = add nsw i32 %103, 10
store i32 %104, i32* %15
%105 = load i8*, i8** %4
%106 = call i32 @PUTSHORT(i32 15, i8* %105)
%107 = load i8*, i8** %4
%108 = getelementptr inbounds i8, i8* %107, i64 2
store i8* %108, i8** %4
%109 = load i8*, i8** %4
%110 = call i32 @PUTSHORT(i32 512, i8* %109)
%111 = load i8*, i8** %4
%112 = getelementptr inbounds i8, i8* %111, i64 2
store i8* %112, i8** %4
%113 = load i8*, i8** %4
%114 = call i32 @PUTLONG(i32 255, i8* %113)
%115 = load i8*, i8** %4
%116 = getelementptr inbounds i8, i8* %115, i64 4
store i8* %116, i8** %4
%117 = call i32 @time(i32* null)
store i32 %117, i32* %17
%118 = load i32, i32* %17
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.6, i64 0, i64 0), i32 %118)
%120 = load i32, i32* %17
%121 = add nsw i32 %120, 20000
%122 = load i8*, i8** %4
%123 = call i32 @PUTLONG(i32 %121, i8* %122)
%124 = load i8*, i8** %4
%125 = getelementptr inbounds i8, i8* %124, i64 4
store i8* %125, i8** %4
%126 = load i32, i32* %17
%127 = load i8*, i8** %4
%128 = call i32 @PUTLONG(i32 %126, i8* %127)
%129 = load i8*, i8** %4
%130 = getelementptr inbounds i8, i8* %129, i64 4
store i8* %130, i8** %4
%131 = load i8*, i8** %4
%132 = call i32 @PUTSHORT(i32 100, i8* %131)
%133 = load i8*, i8** %4
%134 = getelementptr inbounds i8, i8* %133, i64 2
store i8* %134, i8** %4
%135 = load i32, i32* %15
%136 = add nsw i32 %135, 18
store i32 %136, i32* %15
%137 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%138 = call i32 @strcpy(i8* %137, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%139 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%140 = load i8**, i8*** %13
%141 = getelementptr inbounds i8*, i8** %140, i32 1
store i8** %141, i8*** %13
store i8* %139, i8** %140
%142 = load i8**, i8*** %13
%143 = getelementptr inbounds i8*, i8** %142, i32 -1
store i8** %143, i8*** %13
store i8* null, i8** %142
store i8** null, i8*** %12
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.2, i64 0, i64 0))
%145 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%146 = load i8*, i8** %8
%147 = load i8**, i8*** %13
%148 = load i8**, i8*** %12
%149 = call i32 @dn_comp(i8* %145, i8* %146, i32 200, i8** %147, i8** %148)
store i32 %149, i32* %16
%150 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%151 = call i32 @strlen(i8* %150)
%152 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 %151)
%153 = load i32, i32* %16
%154 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.4, i64 0, i64 0), i32 %153)
%155 = getelementptr inbounds [200 x i8], [200 x i8]* %10, i64 0, i64 0
%156 = load i8*, i8** %8
%157 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.8, i64 0, i64 0), i8* %155, i8* %156)
%158 = load i32, i32* %16
%159 = load i32, i32* %15
%160 = add nsw i32 %159, %158
store i32 %160, i32* %15
store i32 0, i32* %14
br label %161
161: ; preds = %171, %82
%162 = load i32, i32* %14
%163 = load i32, i32* %16
%164 = icmp slt i32 %162, %163
br i1 %164, label %165, label %174
165: ; preds = %161
%166 = load i8*, i8** %8
%167 = getelementptr inbounds i8, i8* %166, i32 1
store i8* %167, i8** %8
%168 = load i8, i8* %166
%169 = load i8*, i8** %4
%170 = getelementptr inbounds i8, i8* %169, i32 1
store i8* %170, i8** %4
store i8 %168, i8* %169
br label %171
171: ; preds = %165
%172 = load i32, i32* %14
%173 = add nsw i32 %172, 1
store i32 %173, i32* %14
br label %161
174: ; preds = %161
store i32 0, i32* %14
br label %175
175: ; preds = %185, %174
%176 = load i32, i32* %14
%177 = icmp slt i32 %176, 11
br i1 %177, label %178, label %188
178: ; preds = %175
%179 = load i8*, i8** %4
%180 = call i32 @PUTLONG(i32 123, i8* %179)
%181 = load i8*, i8** %4
%182 = getelementptr inbounds i8, i8* %181, i64 4
store i8* %182, i8** %4
%183 = load i32, i32* %15
%184 = add nsw i32 %183, 4
store i32 %184, i32* %15
br label %185
185: ; preds = %178
%186 = load i32, i32* %14
%187 = add nsw i32 %186, 1
store i32 %187, i32* %14
br label %175
188: ; preds = %175
%189 = call i32* @fopen(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
store i32* %189, i32** %2
%190 = getelementptr inbounds [1000 x i8], [1000 x i8]* %3, i64 0, i64 0
store i8* %190, i8** %4
%191 = load i32, i32* %15
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0), i32 %191)
store i32 0, i32* %14
br label %193
193: ; preds = %202, %188
%194 = load i32, i32* %14
%195 = load i32, i32* %15
%196 = icmp slt i32 %194, %195
br i1 %196, label %197, label %207
197: ; preds = %193
%198 = load i8*, i8** %4
%199 = load i8, i8* %198
%200 = load i32*, i32** %2
%201 = call i32 @fputc(i8 zeroext %199, i32* %200)
br label %202
202: ; preds = %197
%203 = load i32, i32* %14
%204 = add nsw i32 %203, 1
store i32 %204, i32* %14
%205 = load i8*, i8** %4
%206 = getelementptr inbounds i8, i8* %205, i32 1
store i8* %206, i8** %4
br label %193
207: ; preds = %193
%208 = load i32*, i32** %2
%209 = call i32 @fclose(i32* %208)
ret i32 0
}

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