#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;

/* 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 **);
scalar_t__ malloc(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int strlen(char *);
int time(int /*<<< orphan*/ *);
int createSig(u_char *buf) {
  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;
  if (0)
    printf("Calling dn_comp..\n");
  comp_size = dn_comp((const char *)exp_dn, comp_dn, 200, dnptrs, lastdnptr);
  if (0)
    printf("uncomp_size = %d\n", strlen(exp_dn));
  if (0)
    printf("comp_size = %d\n", comp_size);
  if (0)
    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);
  if (0)
    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;
  if (0)
    printf("Calling dn_comp..\n");
  comp_size = dn_comp((const char *)exp_dn2, comp_dn2, 200, dnptrs2, lastdnptr);
  if (0)
    printf("uncomp_size = %d\n", strlen(exp_dn2));
  if (0)
    printf("comp_size = %d\n", comp_size);
  if (0)
    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;
  }
  return (p - buf);
}


x86 assembly (clang, -O0):
<createSig>:
push   %rbp
mov    %rsp,%rbp
sub    $0x200,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x1f0(%rbp)
mov    $0x10,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1d8(%rbp)
mov    $0x10,%edi
call   1080 <malloc@plt>
mov    %rax,-0x1e8(%rbp)
mov    $0xc8,%edi
call   1080 <malloc@plt>
mov    %rax,-0x28(%rbp)
mov    $0xc8,%edi
call   1080 <malloc@plt>
mov    %rax,-0x30(%rbp)
mov    $0x190,%edi
call   1080 <malloc@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    %rax,-0x10(%rbp)
mov    -0x18(%rbp),%rdi
lea    0xe10(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
add    -0x1f0(%rbp),%eax
mov    %eax,-0x1f0(%rbp)
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1241 <createSig+0xd1>
mov    -0x18(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x18(%rbp)
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
jmp    120a <createSig+0x9a>
lea    -0x100(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x100(%rbp),%rcx
mov    -0x1d8(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x1d8(%rbp)
mov    %rcx,(%rax)
mov    -0x1d8(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x1d8(%rbp)
movq   $0x0,(%rax)
movq   $0x0,-0x1e0(%rbp)
lea    -0x100(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x1d8(%rbp),%rcx
mov    -0x1e0(%rbp),%r8
mov    $0xc8,%edx
call   1060 <dn_comp@plt>
mov    %eax,-0x1f4(%rbp)
movl   $0x0,-0x1ec(%rbp)
mov    -0x1ec(%rbp),%eax
cmp    -0x1f4(%rbp),%eax
jge    1315 <createSig+0x1a5>
mov    -0x28(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x28(%rbp)
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x1ec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ec(%rbp)
jmp    12cd <createSig+0x15d>
mov    -0x1f4(%rbp),%eax
add    -0x1f0(%rbp),%eax
mov    %eax,-0x1f0(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x18,%edi
call   1090 <PUTSHORT@plt>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    0x2ca0(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rsi
call   1090 <PUTSHORT@plt>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0xff,%edi
call   1050 <PUTLONG@plt>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x1e,%edi
call   1090 <PUTSHORT@plt>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1f0(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x1f0(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0xf,%edi
call   1090 <PUTSHORT@plt>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x200,%edi
call   1090 <PUTSHORT@plt>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0xff,%edi
call   1050 <PUTLONG@plt>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
xor    %eax,%eax
mov    %eax,%edi
call   1070 <time@plt>
mov    %eax,-0x1f8(%rbp)
mov    -0x1f8(%rbp),%edi
add    $0x4e20,%edi
mov    -0x10(%rbp),%rsi
call   1050 <PUTLONG@plt>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1f8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1050 <PUTLONG@plt>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rsi
mov    $0x64,%edi
call   1090 <PUTSHORT@plt>
mov    -0x10(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1f0(%rbp),%eax
add    $0x12,%eax
mov    %eax,-0x1f0(%rbp)
lea    -0x1d0(%rbp),%rdi
lea    0xb9b(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x1d0(%rbp),%rcx
mov    -0x1e8(%rbp),%rax
mov    %rax,%rdx
add    $0x8,%rdx
mov    %rdx,-0x1e8(%rbp)
mov    %rcx,(%rax)
mov    -0x1e8(%rbp),%rax
mov    %rax,%rcx
add    $0xfffffffffffffff8,%rcx
mov    %rcx,-0x1e8(%rbp)
movq   $0x0,(%rax)
movq   $0x0,-0x1e0(%rbp)
lea    -0x1d0(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x1e8(%rbp),%rcx
mov    -0x1e0(%rbp),%r8
mov    $0xc8,%edx
call   1060 <dn_comp@plt>
mov    %eax,-0x1f4(%rbp)
mov    -0x1f4(%rbp),%eax
add    -0x1f0(%rbp),%eax
mov    %eax,-0x1f0(%rbp)
movl   $0x0,-0x1ec(%rbp)
mov    -0x1ec(%rbp),%eax
cmp    -0x1f4(%rbp),%eax
jge    154a <createSig+0x3da>
mov    -0x30(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x30(%rbp)
mov    (%rax),%cl
mov    -0x10(%rbp),%rax
mov    %rax,%rdx
add    $0x1,%rdx
mov    %rdx,-0x10(%rbp)
mov    %cl,(%rax)
mov    -0x1ec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ec(%rbp)
jmp    1502 <createSig+0x392>
movl   $0x0,-0x1ec(%rbp)
cmpl   $0xb,-0x1ec(%rbp)
jge    159e <createSig+0x42e>
mov    -0x10(%rbp),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
mov    -0x10(%rbp),%rax
add    $0x4,%rax
mov    %rax,-0x10(%rbp)
mov    -0x1f0(%rbp),%eax
add    $0x4,%eax
mov    %eax,-0x1f0(%rbp)
mov    -0x1ec(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1ec(%rbp)
jmp    1554 <createSig+0x3e4>
mov    -0x10(%rbp),%rax
mov    -0x8(%rbp),%rcx
sub    %rcx,%rax
add    $0x200,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createSig>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x1a8,%rsp
mov    %rdi,%rbp
mov    $0x10,%edi
call   1080 <malloc@plt>
mov    %rax,%r12
mov    $0x10,%edi
call   1080 <malloc@plt>
mov    %rax,0x8(%rsp)
mov    $0xc8,%edi
call   1080 <malloc@plt>
mov    %rax,%r13
mov    $0xc8,%edi
call   1080 <malloc@plt>
mov    %rax,%r15
mov    $0x190,%edi
call   1080 <malloc@plt>
mov    %rax,%r14
lea    0xe32(%rip),%rsi
mov    %rax,%rdi
call   1030 <strcpy@plt>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    (%r14),%al
mov    %rbp,%rbx
test   %al,%al
je     1202 <createSig+0x92>
add    $0x1,%r14
mov    %rbp,%rbx
nop
mov    %al,(%rbx)
add    $0x1,%rbx
movzbl (%r14),%eax
add    $0x1,%r14
test   %al,%al
jne    11f0 <createSig+0x80>
mov    %rbp,(%rsp)
lea    0xe04(%rip),%rsi
lea    0xe0(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
mov    %rbp,(%r12)
movq   $0x0,0x8(%r12)
xor    %r14d,%r14d
mov    %rbp,%rdi
mov    %r13,%rsi
mov    $0xc8,%edx
mov    %r12,%rcx
xor    %r8d,%r8d
call   1060 <dn_comp@plt>
test   %eax,%eax
jle    13fa <createSig+0x28a>
lea    -0x1(%rax),%ecx
cmp    $0x1f,%ecx
jb     135a <createSig+0x1ea>
lea    (%rcx,%r13,1),%rdx
add    $0x1,%rdx
cmp    %rdx,%rbx
jae    1275 <createSig+0x105>
lea    (%rbx,%rcx,1),%rdx
add    $0x1,%rdx
cmp    %r13,%rdx
ja     135a <createSig+0x1ea>
add    $0x1,%rcx
mov    %rcx,%r14
and    $0xffffffffffffffe0,%r14
lea    -0x20(%r14),%rdi
mov    %rdi,%rsi
shr    $0x5,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0x60,%rdi
jae    129e <createSig+0x12e>
xor    %edi,%edi
jmp    1311 <createSig+0x1a1>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movups 0x0(%r13,%rdi,1),%xmm0
movups 0x10(%r13,%rdi,1),%xmm1
movups %xmm0,(%rbx,%rdi,1)
movups %xmm1,0x10(%rbx,%rdi,1)
movups 0x20(%r13,%rdi,1),%xmm0
movups 0x30(%r13,%rdi,1),%xmm1
movups %xmm0,0x20(%rbx,%rdi,1)
movups %xmm1,0x30(%rbx,%rdi,1)
movups 0x40(%r13,%rdi,1),%xmm0
movups 0x50(%r13,%rdi,1),%xmm1
movups %xmm0,0x40(%rbx,%rdi,1)
movups %xmm1,0x50(%rbx,%rdi,1)
movups 0x60(%r13,%rdi,1),%xmm0
movups 0x70(%r13,%rdi,1),%xmm1
movups %xmm0,0x60(%rbx,%rdi,1)
movups %xmm1,0x70(%rbx,%rdi,1)
sub    $0xffffffffffffff80,%rdi
add    $0xfffffffffffffffc,%rsi
jne    12b0 <createSig+0x140>
test   %rdx,%rdx
je     134b <createSig+0x1db>
lea    (%rdi,%r13,1),%rsi
add    $0x10,%rsi
add    %rbx,%rdi
add    $0x10,%rdi
shl    $0x5,%rdx
xor    %ebp,%ebp
nopl   0x0(%rax,%rax,1)
movups -0x10(%rsi,%rbp,1),%xmm0
movups (%rsi,%rbp,1),%xmm1
movups %xmm0,-0x10(%rdi,%rbp,1)
movups %xmm1,(%rdi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rdx
jne    1330 <createSig+0x1c0>
add    %r14,%rbx
cmp    %r14,%rcx
je     13fa <createSig+0x28a>
add    %r14,%r13
mov    %eax,%edx
sub    %r14d,%edx
mov    %r14d,%edi
not    %edi
add    %eax,%edi
and    $0x7,%edx
je     138a <createSig+0x21a>
neg    %edx
xor    %esi,%esi
nop
movzbl 0x0(%r13),%ecx
add    $0x1,%r13
mov    %cl,(%rbx)
add    $0x1,%rbx
add    $0xffffffffffffffff,%rsi
cmp    %esi,%edx
jne    1370 <createSig+0x200>
sub    %esi,%r14d
cmp    $0x7,%edi
jb     13fa <createSig+0x28a>
sub    %r14d,%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
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    13a0 <createSig+0x230>
add    %rcx,%rbx
mov    $0x18,%edi
mov    %rbx,%rsi
call   1090 <PUTSHORT@plt>
lea    0x2(%rbx),%rsi
mov    0x2bd6(%rip),%rax
mov    (%rax),%edi
call   1090 <PUTSHORT@plt>
lea    0x4(%rbx),%rsi
mov    $0xff,%edi
call   1050 <PUTLONG@plt>
lea    0x8(%rbx),%rsi
mov    $0x1e,%edi
call   1090 <PUTSHORT@plt>
lea    0xa(%rbx),%rsi
mov    $0xf,%edi
call   1090 <PUTSHORT@plt>
lea    0xc(%rbx),%rsi
mov    $0x200,%edi
call   1090 <PUTSHORT@plt>
lea    0xe(%rbx),%rsi
mov    $0xff,%edi
call   1050 <PUTLONG@plt>
lea    0x12(%rbx),%r14
xor    %r12d,%r12d
xor    %edi,%edi
call   1070 <time@plt>
mov    %eax,%ebp
lea    0x4e20(%rbp),%edi
mov    %r14,%rsi
call   1050 <PUTLONG@plt>
lea    0x16(%rbx),%rsi
mov    %ebp,%edi
call   1050 <PUTLONG@plt>
lea    0x1a(%rbx),%rsi
mov    $0x64,%edi
call   1090 <PUTSHORT@plt>
lea    0x1c(%rbx),%r13
lea    0xb6c(%rip),%rsi
lea    0x10(%rsp),%rbp
mov    %rbp,%rdi
call   1030 <strcpy@plt>
mov    0x8(%rsp),%rcx
mov    %rbp,(%rcx)
movq   $0x0,0x8(%rcx)
mov    %rbp,%rdi
mov    %r15,%rsi
mov    $0xc8,%edx
xor    %r8d,%r8d
call   1060 <dn_comp@plt>
test   %eax,%eax
jle    15b4 <createSig+0x444>
lea    -0x1(%rax),%ecx
cmp    $0x1f,%ecx
jb     1503 <createSig+0x393>
lea    (%rcx,%r15,1),%rdx
add    $0x1,%rdx
cmp    %rdx,%r13
jae    166d <createSig+0x4fd>
lea    (%rcx,%rbx,1),%rdx
add    $0x1d,%rdx
cmp    %r15,%rdx
jbe    166d <createSig+0x4fd>
mov    (%rsp),%rbp
mov    %eax,%edx
sub    %r12d,%edx
mov    %r12d,%ecx
not    %ecx
add    %eax,%ecx
and    $0x7,%edx
je     153b <createSig+0x3cb>
neg    %edx
xor    %esi,%esi
nopl   0x0(%rax)
movzbl (%r15),%ebx
add    $0x1,%r15
mov    %bl,0x0(%r13)
add    $0x1,%r13
add    $0xffffffffffffffff,%rsi
cmp    %esi,%edx
jne    1520 <createSig+0x3b0>
sub    %esi,%r12d
cmp    $0x7,%ecx
jb     15b8 <createSig+0x448>
sub    %r12d,%eax
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
nop
movzbl (%r15,%rcx,1),%edx
mov    %dl,0x0(%r13,%rcx,1)
movzbl 0x1(%r15,%rcx,1),%edx
mov    %dl,0x1(%r13,%rcx,1)
movzbl 0x2(%r15,%rcx,1),%edx
mov    %dl,0x2(%r13,%rcx,1)
movzbl 0x3(%r15,%rcx,1),%edx
mov    %dl,0x3(%r13,%rcx,1)
movzbl 0x4(%r15,%rcx,1),%edx
mov    %dl,0x4(%r13,%rcx,1)
movzbl 0x5(%r15,%rcx,1),%edx
mov    %dl,0x5(%r13,%rcx,1)
movzbl 0x6(%r15,%rcx,1),%edx
mov    %dl,0x6(%r13,%rcx,1)
movzbl 0x7(%r15,%rcx,1),%edx
mov    %dl,0x7(%r13,%rcx,1)
add    $0x8,%rcx
cmp    %ecx,%eax
jne    1550 <createSig+0x3e0>
add    %rcx,%r13
jmp    15b8 <createSig+0x448>
mov    (%rsp),%rbp
mov    $0x7b,%edi
mov    %r13,%rsi
call   1050 <PUTLONG@plt>
lea    0x4(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x8(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0xc(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x10(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x14(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x18(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x1c(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x20(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x24(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
lea    0x28(%r13),%rsi
mov    $0x7b,%edi
call   1050 <PUTLONG@plt>
sub    %ebp,%r13d
add    $0x2c,%r13d
mov    %r13d,%eax
add    $0x1a8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
add    $0x1,%rcx
mov    %rcx,%r12
and    $0xffffffffffffffe0,%r12
lea    -0x20(%r12),%rdi
mov    %rdi,%rsi
shr    $0x5,%rsi
add    $0x1,%rsi
mov    %esi,%edx
and    $0x3,%edx
cmp    $0x60,%rdi
jae    1697 <createSig+0x527>
xor    %edi,%edi
jmp    1704 <createSig+0x594>
and    $0xfffffffffffffffc,%rsi
xor    %edi,%edi
nopl   (%rax)
movups (%r15,%rdi,1),%xmm0
movups 0x10(%r15,%rdi,1),%xmm1
movups %xmm0,0x1c(%rbx,%rdi,1)
movups %xmm1,0x2c(%rbx,%rdi,1)
movups 0x20(%r15,%rdi,1),%xmm0
movups 0x30(%r15,%rdi,1),%xmm1
movups %xmm0,0x3c(%rbx,%rdi,1)
movups %xmm1,0x4c(%rbx,%rdi,1)
movups 0x40(%r15,%rdi,1),%xmm0
movups 0x50(%r15,%rdi,1),%xmm1
movups %xmm0,0x5c(%rbx,%rdi,1)
movups %xmm1,0x6c(%rbx,%rdi,1)
movups 0x60(%r15,%rdi,1),%xmm0
movups 0x70(%r15,%rdi,1),%xmm1
movups %xmm0,0x7c(%rbx,%rdi,1)
movups %xmm1,0x8c(%rbx,%rdi,1)
sub    $0xffffffffffffff80,%rdi
add    $0xfffffffffffffffc,%rsi
jne    16a0 <createSig+0x530>
test   %rdx,%rdx
je     173b <createSig+0x5cb>
lea    (%rdi,%r15,1),%rsi
add    $0x10,%rsi
add    %rbx,%rdi
add    $0x2c,%rdi
shl    $0x5,%rdx
xor    %ebp,%ebp
xchg   %ax,%ax
movups -0x10(%rsi,%rbp,1),%xmm0
movups (%rsi,%rbp,1),%xmm1
movups %xmm0,-0x10(%rdi,%rbp,1)
movups %xmm1,(%rdi,%rbp,1)
add    $0x20,%rbp
cmp    %rbp,%rdx
jne    1720 <createSig+0x5b0>
add    %r12,%r13
cmp    %r12,%rcx
mov    (%rsp),%rbp
je     15b8 <createSig+0x448>
add    %r12,%r15
jmp    1507 <createSig+0x397>

LLVM IR (-O0):
@.str = [13 x i8] c"HEADER JUNK:\00"
@.str.1 = [12 x i8] c"lcs.mit.edu\00"
@C_IN = global i32 0
@.str.2 = [16 x i8] c"sls.lcs.mit.edu\00"
define i32 @createSig(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca [200 x i8]
%9 = alloca [200 x i8]
%10 = alloca i8**
%11 = alloca i8**
%12 = alloca i8**
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i8* %0, i8** %2
store i32 0, i32* %14
%17 = call i64 @malloc(i32 16)
%18 = inttoptr i64 %17 to i8**
store i8** %18, i8*** %10
%19 = call i64 @malloc(i32 16)
%20 = inttoptr i64 %19 to i8**
store i8** %20, i8*** %12
%21 = call i64 @malloc(i32 200)
%22 = inttoptr i64 %21 to i8*
store i8* %22, i8** %6
%23 = call i64 @malloc(i32 200)
%24 = inttoptr i64 %23 to i8*
store i8* %24, i8** %7
%25 = call i64 @malloc(i32 400)
%26 = inttoptr i64 %25 to i8*
store i8* %26, i8** %5
%27 = load i8*, i8** %5
store i8* %27, i8** %4
%28 = load i8*, i8** %2
store i8* %28, i8** %3
%29 = load i8*, i8** %4
%30 = call i32 @strcpy(i8* %29, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0))
%31 = load i8*, i8** %4
%32 = call i32 @strlen(i8* %31)
%33 = load i32, i32* %14
%34 = add nsw i32 %33, %32
store i32 %34, i32* %14
br label %35
35: ; preds = %40, %1
%36 = load i8*, i8** %4
%37 = load i8, i8* %36
%38 = sext i8 %37 to i32
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %46
40: ; preds = %35
%41 = load i8*, i8** %4
%42 = getelementptr inbounds i8, i8* %41, i32 1
store i8* %42, i8** %4
%43 = load i8, i8* %41
%44 = load i8*, i8** %3
%45 = getelementptr inbounds i8, i8* %44, i32 1
store i8* %45, i8** %3
store i8 %43, i8* %44
br label %35
46: ; preds = %35
%47 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%48 = call i32 @strcpy(i8* %47, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%49 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%50 = load i8**, i8*** %10
%51 = getelementptr inbounds i8*, i8** %50, i32 1
store i8** %51, i8*** %10
store i8* %49, i8** %50
%52 = load i8**, i8*** %10
%53 = getelementptr inbounds i8*, i8** %52, i32 -1
store i8** %53, i8*** %10
store i8* null, i8** %52
store i8** null, i8*** %11
%54 = getelementptr inbounds [200 x i8], [200 x i8]* %8, i64 0, i64 0
%55 = load i8*, i8** %6
%56 = load i8**, i8*** %10
%57 = load i8**, i8*** %11
%58 = call i32 @dn_comp(i8* %54, i8* %55, i32 200, i8** %56, i8** %57)
store i32 %58, i32* %15
store i32 0, i32* %13
br label %59
59: ; preds = %69, %46
%60 = load i32, i32* %13
%61 = load i32, i32* %15
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %72
63: ; preds = %59
%64 = load i8*, i8** %6
%65 = getelementptr inbounds i8, i8* %64, i32 1
store i8* %65, i8** %6
%66 = load i8, i8* %64
%67 = load i8*, i8** %3
%68 = getelementptr inbounds i8, i8* %67, i32 1
store i8* %68, i8** %3
store i8 %66, i8* %67
br label %69
69: ; preds = %63
%70 = load i32, i32* %13
%71 = add nsw i32 %70, 1
store i32 %71, i32* %13
br label %59
72: ; preds = %59
%73 = load i32, i32* %15
%74 = load i32, i32* %14
%75 = add nsw i32 %74, %73
store i32 %75, i32* %14
%76 = load i8*, i8** %3
%77 = call i32 @PUTSHORT(i32 24, i8* %76)
%78 = load i8*, i8** %3
%79 = getelementptr inbounds i8, i8* %78, i64 2
store i8* %79, i8** %3
%80 = load i32, i32* @C_IN
%81 = load i8*, i8** %3
%82 = call i32 @PUTSHORT(i32 %80, i8* %81)
%83 = load i8*, i8** %3
%84 = getelementptr inbounds i8, i8* %83, i64 2
store i8* %84, i8** %3
%85 = load i8*, i8** %3
%86 = call i32 @PUTLONG(i32 255, i8* %85)
%87 = load i8*, i8** %3
%88 = getelementptr inbounds i8, i8* %87, i64 4
store i8* %88, i8** %3
%89 = load i8*, i8** %3
%90 = call i32 @PUTSHORT(i32 30, i8* %89)
%91 = load i8*, i8** %3
%92 = getelementptr inbounds i8, i8* %91, i64 2
store i8* %92, i8** %3
%93 = load i32, i32* %14
%94 = add nsw i32 %93, 10
store i32 %94, i32* %14
%95 = load i8*, i8** %3
%96 = call i32 @PUTSHORT(i32 15, i8* %95)
%97 = load i8*, i8** %3
%98 = getelementptr inbounds i8, i8* %97, i64 2
store i8* %98, i8** %3
%99 = load i8*, i8** %3
%100 = call i32 @PUTSHORT(i32 512, i8* %99)
%101 = load i8*, i8** %3
%102 = getelementptr inbounds i8, i8* %101, i64 2
store i8* %102, i8** %3
%103 = load i8*, i8** %3
%104 = call i32 @PUTLONG(i32 255, i8* %103)
%105 = load i8*, i8** %3
%106 = getelementptr inbounds i8, i8* %105, i64 4
store i8* %106, i8** %3
%107 = call i32 @time(i32* null)
store i32 %107, i32* %16
%108 = load i32, i32* %16
%109 = add nsw i32 %108, 20000
%110 = load i8*, i8** %3
%111 = call i32 @PUTLONG(i32 %109, i8* %110)
%112 = load i8*, i8** %3
%113 = getelementptr inbounds i8, i8* %112, i64 4
store i8* %113, i8** %3
%114 = load i32, i32* %16
%115 = load i8*, i8** %3
%116 = call i32 @PUTLONG(i32 %114, i8* %115)
%117 = load i8*, i8** %3
%118 = getelementptr inbounds i8, i8* %117, i64 4
store i8* %118, i8** %3
%119 = load i8*, i8** %3
%120 = call i32 @PUTSHORT(i32 100, i8* %119)
%121 = load i8*, i8** %3
%122 = getelementptr inbounds i8, i8* %121, i64 2
store i8* %122, i8** %3
%123 = load i32, i32* %14
%124 = add nsw i32 %123, 18
store i32 %124, i32* %14
%125 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%126 = call i32 @strcpy(i8* %125, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
%127 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%128 = load i8**, i8*** %12
%129 = getelementptr inbounds i8*, i8** %128, i32 1
store i8** %129, i8*** %12
store i8* %127, i8** %128
%130 = load i8**, i8*** %12
%131 = getelementptr inbounds i8*, i8** %130, i32 -1
store i8** %131, i8*** %12
store i8* null, i8** %130
store i8** null, i8*** %11
%132 = getelementptr inbounds [200 x i8], [200 x i8]* %9, i64 0, i64 0
%133 = load i8*, i8** %7
%134 = load i8**, i8*** %12
%135 = load i8**, i8*** %11
%136 = call i32 @dn_comp(i8* %132, i8* %133, i32 200, i8** %134, i8** %135)
store i32 %136, i32* %15
%137 = load i32, i32* %15
%138 = load i32, i32* %14
%139 = add nsw i32 %138, %137
store i32 %139, i32* %14
store i32 0, i32* %13
br label %140
140: ; preds = %150, %72
%141 = load i32, i32* %13
%142 = load i32, i32* %15
%143 = icmp slt i32 %141, %142
br i1 %143, label %144, label %153
144: ; preds = %140
%145 = load i8*, i8** %7
%146 = getelementptr inbounds i8, i8* %145, i32 1
store i8* %146, i8** %7
%147 = load i8, i8* %145
%148 = load i8*, i8** %3
%149 = getelementptr inbounds i8, i8* %148, i32 1
store i8* %149, i8** %3
store i8 %147, i8* %148
br label %150
150: ; preds = %144
%151 = load i32, i32* %13
%152 = add nsw i32 %151, 1
store i32 %152, i32* %13
br label %140
153: ; preds = %140
store i32 0, i32* %13
br label %154
154: ; preds = %164, %153
%155 = load i32, i32* %13
%156 = icmp slt i32 %155, 11
br i1 %156, label %157, label %167
157: ; preds = %154
%158 = load i8*, i8** %3
%159 = call i32 @PUTLONG(i32 123, i8* %158)
%160 = load i8*, i8** %3
%161 = getelementptr inbounds i8, i8* %160, i64 4
store i8* %161, i8** %3
%162 = load i32, i32* %14
%163 = add nsw i32 %162, 4
store i32 %163, i32* %14
br label %164
164: ; preds = %157
%165 = load i32, i32* %13
%166 = add nsw i32 %165, 1
store i32 %166, i32* %13
br label %154
167: ; preds = %154
%168 = load i8*, i8** %3
%169 = load i8*, i8** %2
%170 = ptrtoint i8* %168 to i64
%171 = ptrtoint i8* %169 to i64
%172 = sub i64 %170, %171
%173 = trunc i64 %172 to i32
ret i32 %173
}

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