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

/* Variables and functions */
int /*<<< orphan*/ ffpmsg(char *);
scalar_t__ fftkey(char *, int *);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strchr(char *, char);
size_t strlen(char *);
int /*<<< orphan*/ strncat(char *, char *, int);
int strncmp(char *, char *, int);
int ffmkky(char *keyname, char *value, char *comm, char *card, int *status) {
  size_t namelen, len, ii;
  char tmpname[72], *cptr;
  int tstatus = -1;
  if (*status > 0)
    return (*status);
  *tmpname = '\0';
  *card = '\0';
  cptr = keyname;
  while (*cptr == ' ')
    cptr++;
  strncat(tmpname, cptr, 72 - 1);
  namelen = strlen(tmpname);
  if (namelen) {
    cptr = tmpname + namelen - 1;
    while (*cptr == ' ') {
      *cptr = '\0';
      cptr--;
    }
    namelen = cptr - tmpname + 1;
  }
  if (namelen <= 8 && (fftkey(keyname, &tstatus) <= 0)) {
    strcat(card, tmpname);
    for (ii = namelen; ii < 8; ii++)
      card[ii] = ' ';
    card[8] = '=';
    card[9] = ' ';
    card[10] = '\0';
    namelen = 10;
  } else {
    if (strchr(tmpname, '=')) {
      ffpmsg("Illegal keyword name; contains an equals sign (=)");
      ffpmsg(tmpname);
      return (*status = 207);
    }
    if (((tmpname)[0] < ("HIERARCH ")[0] ? -1
         : (tmpname)[0] > ("HIERARCH ")[0]
             ? 1
             : strncmp((tmpname), ("HIERARCH "), (9))) &&
        ((tmpname)[0] < ("hierarch ")[0] ? -1
         : (tmpname)[0] > ("hierarch ")[0]
             ? 1
             : strncmp((tmpname), ("hierarch "), (9))))
      strcat(card, "HIERARCH ");
    else
      namelen -= 9;
    strcat(card, tmpname);
    strcat(card, " = ");
    namelen += 12;
  }
  len = strlen(value);
  if (len > 0) {
    if (value[0] == '\'') {
      if (namelen > 77) {
        ffpmsg("The following keyword + value is too long to fit on a card:");
        ffpmsg(keyname);
        ffpmsg(value);
        return (*status = 207);
      }
      strncat(card, value, 80 - namelen);
      len = ((80) < (namelen + len) ? (80) : (namelen + len));
      if (len == 80) {
        card[79] = '\'';
      }
      if (comm) {
        if (comm[0] != 0) {
          if (len < 30) {
            for (ii = len; ii < 30; ii++)
              card[ii] = ' ';
            card[30] = '\0';
            len = 30;
          }
        }
      }
    } else {
      if (namelen + len > 80) {
        ffpmsg("The following keyword + value is too long to fit on a card:");
        ffpmsg(keyname);
        ffpmsg(value);
        return (*status = 207);
      } else if (namelen + len < 30) {
        strncat(card, "                    ", 30 - (namelen + len));
      }
      strncat(card, value, 80 - namelen);
      len = ((80) < (namelen + len) ? (80) : (namelen + len));
      len = ((30) > (len) ? (30) : (len));
    }
    if (comm) {
      if ((len < 77) && (strlen(comm) > 0)) {
        strcat(card, " / ");
        strncat(card, comm, 77 - len);
      }
    }
  } else {
    if (namelen == 10) {
      card[8] = ' ';
      if (comm) {
        strncat(card, comm, 80 - namelen);
      }
    }
  }
  return (*status);
}


x86 assembly (clang, -O0):
<ffmkky>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc0,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movl   $0xffffffff,-0x9c(%rbp)
ff ff ff
mov    -0x30(%rbp),%rax
cmpl   $0x0,(%rax)
jle    11b4 <ffmkky+0x44>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    177d <ffmkky+0x60d>
movb   $0x0,-0x90(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    11f7 <ffmkky+0x87>
mov    -0x98(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x98(%rbp)
jmp    11cd <ffmkky+0x5d>
lea    -0x90(%rbp),%rdi
mov    -0x98(%rbp),%rsi
mov    $0x47,%edx
call   1070 <strncat@plt>
lea    -0x90(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     128d <ffmkky+0x11d>
lea    -0x90(%rbp),%rax
add    -0x38(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x98(%rbp)
mov    -0x98(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    1274 <ffmkky+0x104>
mov    -0x98(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x98(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x98(%rbp)
jmp    1240 <ffmkky+0xd0>
mov    -0x98(%rbp),%rax
lea    -0x90(%rbp),%rcx
sub    %rcx,%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
cmpq   $0x8,-0x38(%rbp)
ja     1317 <ffmkky+0x1a7>
mov    -0x10(%rbp),%rdi
lea    -0x9c(%rbp),%rsi
call   1090 <fftkey@plt>
cmp    $0x0,%rax
jg     1317 <ffmkky+0x1a7>
mov    -0x28(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   1080 <strcat@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x8,-0x48(%rbp)
jae    12f2 <ffmkky+0x182>
mov    -0x28(%rbp),%rax
mov    -0x48(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    12ca <ffmkky+0x15a>
mov    -0x28(%rbp),%rax
movb   $0x3d,0x8(%rax)
mov    -0x28(%rbp),%rax
movb   $0x20,0x9(%rax)
mov    -0x28(%rbp),%rax
movb   $0x0,0xa(%rax)
movq   $0xa,-0x38(%rbp)
jmp    1483 <ffmkky+0x313>
lea    -0x90(%rbp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
cmp    $0x0,%rax
je     1360 <ffmkky+0x1f0>
lea    0xcc7(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    -0x90(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    177d <ffmkky+0x60d>
movsbl -0x90(%rbp),%eax
movsbl 0xcc4(%rip),%ecx
cmp    %ecx,%eax
jge    1385 <ffmkky+0x215>
mov    $0x1,%al
test   $0x1,%al
jne    13cb <ffmkky+0x25b>
jmp    144b <ffmkky+0x2db>
movsbl -0x90(%rbp),%eax
movsbl 0xc9f(%rip),%ecx
cmp    %ecx,%eax
jle    13aa <ffmkky+0x23a>
mov    $0x1,%al
test   $0x1,%al
jne    13cb <ffmkky+0x25b>
jmp    144b <ffmkky+0x2db>
lea    -0x90(%rbp),%rdi
lea    0xc7a(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     144b <ffmkky+0x2db>
movsbl -0x90(%rbp),%eax
movsbl 0xc63(%rip),%ecx
cmp    %ecx,%eax
jge    13f0 <ffmkky+0x280>
mov    $0x1,%al
test   $0x1,%al
jne    1436 <ffmkky+0x2c6>
jmp    144b <ffmkky+0x2db>
movsbl -0x90(%rbp),%eax
movsbl 0xc3e(%rip),%ecx
cmp    %ecx,%eax
jle    1415 <ffmkky+0x2a5>
mov    $0x1,%al
test   $0x1,%al
jne    1436 <ffmkky+0x2c6>
jmp    144b <ffmkky+0x2db>
lea    -0x90(%rbp),%rdi
lea    0xc19(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     144b <ffmkky+0x2db>
mov    -0x28(%rbp),%rdi
lea    0xbf1(%rip),%rsi
call   1080 <strcat@plt>
jmp    1457 <ffmkky+0x2e7>
mov    -0x38(%rbp),%rax
sub    $0x9,%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   1080 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    0xbd4(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
jbe    1734 <ffmkky+0x5c4>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    15cb <ffmkky+0x45b>
cmpq   $0x4d,-0x38(%rbp)
jbe    14ea <ffmkky+0x37a>
lea    0xb8d(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x18(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    177d <ffmkky+0x60d>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x50,%eax
cmp    %rcx,%rax
jae    1529 <ffmkky+0x3b9>
mov    $0x50,%eax
mov    %rax,-0xa8(%rbp)
jmp    1538 <ffmkky+0x3c8>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0xa8(%rbp)
mov    -0xa8(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x50,-0x40(%rbp)
jne    1556 <ffmkky+0x3e6>
mov    -0x28(%rbp),%rax
movb   $0x27,0x4f(%rax)
cmpq   $0x0,-0x20(%rbp)
je     15c6 <ffmkky+0x456>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     15c1 <ffmkky+0x451>
cmpq   $0x1e,-0x40(%rbp)
jae    15bc <ffmkky+0x44c>
mov    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x1e,-0x48(%rbp)
jae    15ac <ffmkky+0x43c>
mov    -0x28(%rbp),%rax
mov    -0x48(%rbp),%rcx
movb   $0x20,(%rax,%rcx,1)
mov    -0x48(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x48(%rbp)
jmp    1584 <ffmkky+0x414>
mov    -0x28(%rbp),%rax
movb   $0x0,0x1e(%rax)
movq   $0x1e,-0x40(%rbp)
jmp    15c1 <ffmkky+0x451>
jmp    15c6 <ffmkky+0x456>
jmp    16d9 <ffmkky+0x569>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    1611 <ffmkky+0x4a1>
lea    0xa66(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    -0x10(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x18(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    177d <ffmkky+0x60d>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x1e,%rax
jae    1645 <ffmkky+0x4d5>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x1e,%eax
sub    %rcx,%rax
mov    %eax,%edx
lea    0xa46(%rip),%rsi
call   1070 <strncat@plt>
jmp    164a <ffmkky+0x4da>
mov    -0x28(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x50,%eax
cmp    %rcx,%rax
jae    1689 <ffmkky+0x519>
mov    $0x50,%eax
mov    %rax,-0xb0(%rbp)
jmp    1698 <ffmkky+0x528>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0xb0(%rbp)
mov    -0xb0(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x1e,%eax
cmp    -0x40(%rbp),%rax
jbe    16c3 <ffmkky+0x553>
mov    $0x1e,%eax
mov    %rax,-0xb8(%rbp)
jmp    16ce <ffmkky+0x55e>
mov    -0x40(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     172f <ffmkky+0x5bf>
cmpq   $0x4d,-0x40(%rbp)
jae    172a <ffmkky+0x5ba>
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
jbe    172a <ffmkky+0x5ba>
mov    -0x28(%rbp),%rdi
lea    0x98e(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x4d,%eax
sub    -0x40(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
jmp    172f <ffmkky+0x5bf>
jmp    1774 <ffmkky+0x604>
cmpq   $0xa,-0x38(%rbp)
jne    176f <ffmkky+0x5ff>
mov    -0x28(%rbp),%rax
movb   $0x20,0x8(%rax)
cmpq   $0x0,-0x20(%rbp)
je     176a <ffmkky+0x5fa>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
jmp    176f <ffmkky+0x5ff>
jmp    1774 <ffmkky+0x604>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0xc0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffmkky>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x68,%rsp
movl   $0xffffffff,0x1c(%rsp)
ff
mov    (%r8),%eax
test   %eax,%eax
jg     14dc <ffmkky+0x35c>
mov    %r8,%rbp
mov    %rcx,%r13
mov    %rdx,%rbx
mov    %rdi,%r12
mov    %rsi,0x10(%rsp)
movb   $0x0,0x20(%rsp)
movb   $0x0,(%rcx)
lea    -0x1(%rdi),%rsi
xchg   %ax,%ax
cmpb   $0x20,0x1(%rsi)
lea    0x1(%rsi),%rsi
je     11c0 <ffmkky+0x40>
lea    0x20(%rsp),%r15
mov    %r15,%rdi
mov    $0x47,%edx
call   1080 <strncat@plt>
mov    %r15,%rdi
call   1040 <strlen@plt>
test   %rax,%rax
mov    %rbx,0x8(%rsp)
je     1212 <ffmkky+0x92>
lea    (%rsp,%rax,1),%rcx
add    $0x1f,%rcx
cmpb   $0x20,0x1f(%rsp,%rax,1)
jne    1217 <ffmkky+0x97>
nopl   (%rax)
movb   $0x0,(%rcx)
lea    -0x1(%rcx),%r14
cmpb   $0x20,-0x1(%rcx)
mov    %r14,%rcx
je     1200 <ffmkky+0x80>
jmp    121a <ffmkky+0x9a>
xor    %r14d,%r14d
jmp    1227 <ffmkky+0xa7>
mov    %rcx,%r14
sub    %r15,%r14
add    $0x1,%r14
cmp    $0x8,%r14
ja     123d <ffmkky+0xbd>
lea    0x1c(%rsp),%rsi
mov    %r12,%rdi
call   10a0 <fftkey@plt>
test   %rax,%rax
jle    12d5 <ffmkky+0x155>
lea    0x20(%rsp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     1278 <ffmkky+0xf8>
lea    0xda8(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    0x20(%rsp),%rdi
call   1050 <ffpmsg@plt>
movl   $0xcf,0x0(%rbp)
mov    $0xcf,%eax
jmp    14dc <ffmkky+0x35c>
mov    0x20(%rsp),%al
cmp    $0x48,%al
mov    %rbp,(%rsp)
jne    12a6 <ffmkky+0x126>
lea    0xda7(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1340 <ffmkky+0x1c0>
mov    0x20(%rsp),%al
cmp    $0x68,%al
jne    12c4 <ffmkky+0x144>
lea    0xd8b(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1340 <ffmkky+0x1c0>
lea    0xd67(%rip),%rsi
mov    %r13,%rdi
call   1090 <strcat@plt>
jmp    1344 <ffmkky+0x1c4>
mov    %rbp,(%rsp)
lea    0x20(%rsp),%rsi
mov    %r13,%rdi
call   1090 <strcat@plt>
cmp    $0x7,%r14
ja     1302 <ffmkky+0x182>
lea    (%r14,%r13,1),%rdi
mov    $0x8,%edx
sub    %r14,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
movw   $0x203d,0x8(%r13)
movb   $0x0,0xa(%r13)
mov    0x10(%rsp),%r15
mov    %r15,%rdi
call   1040 <strlen@plt>
test   %rax,%rax
mov    0x8(%rsp),%rbx
je     1452 <ffmkky+0x2d2>
mov    %rax,%rbp
mov    $0xa,%r14d
cmpb   $0x27,(%r15)
mov    %r15,%rbx
je     1390 <ffmkky+0x210>
jmp    140a <ffmkky+0x28a>
add    $0xfffffffffffffff7,%r14
lea    0x20(%rsp),%rsi
mov    %r13,%rdi
call   1090 <strcat@plt>
lea    0xcee(%rip),%rsi
mov    %r13,%rdi
call   1090 <strcat@plt>
add    $0xc,%r14
mov    0x10(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
test   %rax,%rax
je     1443 <ffmkky+0x2c3>
mov    %rax,%rbp
cmpb   $0x27,(%rbx)
jne    140a <ffmkky+0x28a>
cmp    $0x4e,%r14
jae    1413 <ffmkky+0x293>
mov    $0x50,%edx
sub    %r14d,%edx
mov    %r13,%rdi
mov    %rbx,%rsi
call   1080 <strncat@plt>
add    %r14,%rbp
mov    $0x50,%r14d
cmp    $0x50,%rbp
cmovb  %rbp,%r14
jb     13bb <ffmkky+0x23b>
movb   $0x27,0x4f(%r13)
mov    0x8(%rsp),%rbx
test   %rbx,%rbx
je     14d6 <ffmkky+0x356>
cmpb   $0x0,(%rbx)
je     14a4 <ffmkky+0x324>
cmp    $0x1d,%r14
ja     14a4 <ffmkky+0x324>
cmp    $0x1d,%rbp
ja     13fa <ffmkky+0x27a>
mov    %r13,%rdi
add    %rbp,%rdi
mov    $0x1e,%edx
sub    %rbp,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
movb   $0x0,0x1e(%r13)
mov    $0x1e,%r14d
jmp    14a4 <ffmkky+0x324>
add    %r14,%rbp
cmp    $0x51,%rbp
jb     1463 <ffmkky+0x2e3>
lea    0xc30(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    %r12,%rdi
call   1050 <ffpmsg@plt>
mov    %rbx,%rdi
call   1050 <ffpmsg@plt>
mov    (%rsp),%rax
movl   $0xcf,(%rax)
mov    $0xcf,%eax
jmp    14dc <ffmkky+0x35c>
cmp    $0xa,%r14
mov    0x8(%rsp),%rbx
jne    14d6 <ffmkky+0x356>
movb   $0x20,0x8(%r13)
mov    $0x46,%edx
test   %rbx,%rbx
jne    14cb <ffmkky+0x34b>
jmp    14d6 <ffmkky+0x356>
cmp    $0x1d,%rbp
ja     1489 <ffmkky+0x309>
mov    $0x1e,%edx
sub    %ebp,%edx
lea    0xc0f(%rip),%rsi
mov    %r13,%rdi
call   1080 <strncat@plt>
mov    0x10(%rsp),%rbx
mov    $0x1e,%ebp
mov    $0x50,%edx
sub    %r14d,%edx
mov    %r13,%rdi
mov    %rbx,%rsi
call   1080 <strncat@plt>
mov    %rbp,%r14
mov    0x8(%rsp),%rbx
test   %rbx,%rbx
je     14d6 <ffmkky+0x356>
cmp    $0x4c,%r14
ja     14d6 <ffmkky+0x356>
cmpb   $0x0,(%rbx)
je     14d6 <ffmkky+0x356>
lea    0xbe0(%rip),%rsi
mov    %r13,%rdi
call   1090 <strcat@plt>
mov    $0x4d,%edx
sub    %r14d,%edx
mov    %r13,%rdi
mov    %rbx,%rsi
call   1080 <strncat@plt>
mov    (%rsp),%rax
mov    (%rax),%eax
add    $0x68,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [50 x i8] c"Illegal keyword name; contains an equals sign (=)\00"
@.str.1 = [10 x i8] c"HIERARCH \00"
@.str.2 = [10 x i8] c"hierarch \00"
@.str.3 = [4 x i8] c" = \00"
@.str.4 = [60 x i8] c"The following keyword + value is too long to fit on a card:\00"
@.str.5 = [21 x i8] c" \00"
@.str.6 = [4 x i8] c" / \00"
define i32 @ffmkky(i8* %0, i8* %1, i8* %2, i8* %3, i32* %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = alloca i8*
%11 = alloca i32*
%12 = alloca i64
%13 = alloca i64
%14 = alloca i64
%15 = alloca [72 x i8]
%16 = alloca i8*
%17 = alloca i32
store i8* %0, i8** %7
store i8* %1, i8** %8
store i8* %2, i8** %9
store i8* %3, i8** %10
store i32* %4, i32** %11
store i32 -1, i32* %17
%18 = load i32*, i32** %11
%19 = load i32, i32* %18
%20 = icmp sgt i32 %19, 0
br i1 %20, label %21, label %24
21: ; preds = %5
%22 = load i32*, i32** %11
%23 = load i32, i32* %22
store i32 %23, i32* %6
br label %323
24: ; preds = %5
%25 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
store i8 0, i8* %25
%26 = load i8*, i8** %10
store i8 0, i8* %26
%27 = load i8*, i8** %7
store i8* %27, i8** %16
br label %28
28: ; preds = %33, %24
%29 = load i8*, i8** %16
%30 = load i8, i8* %29
%31 = sext i8 %30 to i32
%32 = icmp eq i32 %31, 32
br i1 %32, label %33, label %36
33: ; preds = %28
%34 = load i8*, i8** %16
%35 = getelementptr inbounds i8, i8* %34, i32 1
store i8* %35, i8** %16
br label %28
36: ; preds = %28
%37 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%38 = load i8*, i8** %16
%39 = call i32 @strncat(i8* %37, i8* %38, i32 71)
%40 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%41 = call i64 @strlen(i8* %40)
store i64 %41, i64* %12
%42 = load i64, i64* %12
%43 = icmp ne i64 %42, 0
br i1 %43, label %44, label %65
44: ; preds = %36
%45 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%46 = load i64, i64* %12
%47 = getelementptr inbounds i8, i8* %45, i64 %46
%48 = getelementptr inbounds i8, i8* %47, i64 -1
store i8* %48, i8** %16
br label %49
49: ; preds = %54, %44
%50 = load i8*, i8** %16
%51 = load i8, i8* %50
%52 = sext i8 %51 to i32
%53 = icmp eq i32 %52, 32
br i1 %53, label %54, label %58
54: ; preds = %49
%55 = load i8*, i8** %16
store i8 0, i8* %55
%56 = load i8*, i8** %16
%57 = getelementptr inbounds i8, i8* %56, i32 -1
store i8* %57, i8** %16
br label %49
58: ; preds = %49
%59 = load i8*, i8** %16
%60 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%61 = ptrtoint i8* %59 to i64
%62 = ptrtoint i8* %60 to i64
%63 = sub i64 %61, %62
%64 = add nsw i64 %63, 1
store i64 %64, i64* %12
br label %65
65: ; preds = %58, %36
%66 = load i64, i64* %12
%67 = icmp ule i64 %66, 8
br i1 %67, label %68, label %94
68: ; preds = %65
%69 = load i8*, i8** %7
%70 = call i64 @fftkey(i8* %69, i32* %17)
%71 = icmp sle i64 %70, 0
br i1 %71, label %72, label %94
72: ; preds = %68
%73 = load i8*, i8** %10
%74 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%75 = call i32 @strcat(i8* %73, i8* %74)
%76 = load i64, i64* %12
store i64 %76, i64* %14
br label %77
77: ; preds = %84, %72
%78 = load i64, i64* %14
%79 = icmp ult i64 %78, 8
br i1 %79, label %80, label %87
80: ; preds = %77
%81 = load i8*, i8** %10
%82 = load i64, i64* %14
%83 = getelementptr inbounds i8, i8* %81, i64 %82
store i8 32, i8* %83
br label %84
84: ; preds = %80
%85 = load i64, i64* %14
%86 = add i64 %85, 1
store i64 %86, i64* %14
br label %77
87: ; preds = %77
%88 = load i8*, i8** %10
%89 = getelementptr inbounds i8, i8* %88, i64 8
store i8 61, i8* %89
%90 = load i8*, i8** %10
%91 = getelementptr inbounds i8, i8* %90, i64 9
store i8 32, i8* %91
%92 = load i8*, i8** %10
%93 = getelementptr inbounds i8, i8* %92, i64 10
store i8 0, i8* %93
store i64 10, i64* %12
br label %157
94: ; preds = %68, %65
%95 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%96 = call i64 @strchr(i8* %95, i8 signext 61)
%97 = icmp ne i64 %96, 0
br i1 %97, label %98, label %103
98: ; preds = %94
%99 = call i32 @ffpmsg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%100 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%101 = call i32 @ffpmsg(i8* %100)
%102 = load i32*, i32** %11
store i32 207, i32* %102
store i32 207, i32* %6
br label %323
103: ; preds = %94
%104 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%105 = load i8, i8* %104
%106 = sext i8 %105 to i32
%107 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0)
%108 = sext i8 %107 to i32
%109 = icmp slt i32 %106, %108
br i1 %109, label %110, label %111
110: ; preds = %103
br i1 true, label %123, label %146
111: ; preds = %103
%112 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%113 = load i8, i8* %112
%114 = sext i8 %113 to i32
%115 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0)
%116 = sext i8 %115 to i32
%117 = icmp sgt i32 %114, %116
br i1 %117, label %118, label %119
118: ; preds = %111
br i1 true, label %123, label %146
119: ; preds = %111
%120 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%121 = call i32 @strncmp(i8* %120, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%122 = icmp ne i32 %121, 0
br i1 %122, label %123, label %146
123: ; preds = %119, %118, %110
%124 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%125 = load i8, i8* %124
%126 = sext i8 %125 to i32
%127 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%128 = sext i8 %127 to i32
%129 = icmp slt i32 %126, %128
br i1 %129, label %130, label %131
130: ; preds = %123
br i1 true, label %143, label %146
131: ; preds = %123
%132 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%136 = sext i8 %135 to i32
%137 = icmp sgt i32 %134, %136
br i1 %137, label %138, label %139
138: ; preds = %131
br i1 true, label %143, label %146
139: ; preds = %131
%140 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%141 = call i32 @strncmp(i8* %140, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%142 = icmp ne i32 %141, 0
br i1 %142, label %143, label %146
143: ; preds = %139, %138, %130
%144 = load i8*, i8** %10
%145 = call i32 @strcat(i8* %144, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %149
146: ; preds = %139, %138, %130, %119, %118, %110
%147 = load i64, i64* %12
%148 = sub i64 %147, 9
store i64 %148, i64* %12
br label %149
149: ; preds = %146, %143
%150 = load i8*, i8** %10
%151 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%152 = call i32 @strcat(i8* %150, i8* %151)
%153 = load i8*, i8** %10
%154 = call i32 @strcat(i8* %153, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%155 = load i64, i64* %12
%156 = add i64 %155, 12
store i64 %156, i64* %12
br label %157
157: ; preds = %149, %87
%158 = load i8*, i8** %8
%159 = call i64 @strlen(i8* %158)
store i64 %159, i64* %13
%160 = load i64, i64* %13
%161 = icmp ugt i64 %160, 0
br i1 %161, label %162, label %303
162: ; preds = %157
%163 = load i8*, i8** %8
%164 = getelementptr inbounds i8, i8* %163, i64 0
%165 = load i8, i8* %164
%166 = sext i8 %165 to i32
%167 = icmp eq i32 %166, 39
br i1 %167, label %168, label %231
168: ; preds = %162
%169 = load i64, i64* %12
%170 = icmp ugt i64 %169, 77
br i1 %170, label %171, label %178
171: ; preds = %168
%172 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%173 = load i8*, i8** %7
%174 = call i32 @ffpmsg(i8* %173)
%175 = load i8*, i8** %8
%176 = call i32 @ffpmsg(i8* %175)
%177 = load i32*, i32** %11
store i32 207, i32* %177
store i32 207, i32* %6
br label %323
178: ; preds = %168
%179 = load i8*, i8** %10
%180 = load i8*, i8** %8
%181 = load i64, i64* %12
%182 = sub i64 80, %181
%183 = trunc i64 %182 to i32
%184 = call i32 @strncat(i8* %179, i8* %180, i32 %183)
%185 = load i64, i64* %12
%186 = load i64, i64* %13
%187 = add i64 %185, %186
%188 = icmp ult i64 80, %187
br i1 %188, label %189, label %190
189: ; preds = %178
br label %194
190: ; preds = %178
%191 = load i64, i64* %12
%192 = load i64, i64* %13
%193 = add i64 %191, %192
br label %194
194: ; preds = %190, %189
%195 = phi i64 [ 80, %189 ], [ %193, %190 ]
store i64 %195, i64* %13
%196 = load i64, i64* %13
%197 = icmp eq i64 %196, 80
br i1 %197, label %198, label %201
198: ; preds = %194
%199 = load i8*, i8** %10
%200 = getelementptr inbounds i8, i8* %199, i64 79
store i8 39, i8* %200
br label %201
201: ; preds = %198, %194
%202 = load i8*, i8** %9
%203 = icmp ne i8* %202, null
br i1 %203, label %204, label %230
204: ; preds = %201
%205 = load i8*, i8** %9
%206 = getelementptr inbounds i8, i8* %205, i64 0
%207 = load i8, i8* %206
%208 = sext i8 %207 to i32
%209 = icmp ne i32 %208, 0
br i1 %209, label %210, label %229
210: ; preds = %204
%211 = load i64, i64* %13
%212 = icmp ult i64 %211, 30
br i1 %212, label %213, label %228
213: ; preds = %210
%214 = load i64, i64* %13
store i64 %214, i64* %14
br label %215
215: ; preds = %222, %213
%216 = load i64, i64* %14
%217 = icmp ult i64 %216, 30
br i1 %217, label %218, label %225
218: ; preds = %215
%219 = load i8*, i8** %10
%220 = load i64, i64* %14
%221 = getelementptr inbounds i8, i8* %219, i64 %220
store i8 32, i8* %221
br label %222
222: ; preds = %218
%223 = load i64, i64* %14
%224 = add i64 %223, 1
store i64 %224, i64* %14
br label %215
225: ; preds = %215
%226 = load i8*, i8** %10
%227 = getelementptr inbounds i8, i8* %226, i64 30
store i8 0, i8* %227
store i64 30, i64* %13
br label %228
228: ; preds = %225, %210
br label %229
229: ; preds = %228, %204
br label %230
230: ; preds = %229, %201
br label %282
231: ; preds = %162
%232 = load i64, i64* %12
%233 = load i64, i64* %13
%234 = add i64 %232, %233
%235 = icmp ugt i64 %234, 80
br i1 %235, label %236, label %243
236: ; preds = %231
%237 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%238 = load i8*, i8** %7
%239 = call i32 @ffpmsg(i8* %238)
%240 = load i8*, i8** %8
%241 = call i32 @ffpmsg(i8* %240)
%242 = load i32*, i32** %11
store i32 207, i32* %242
store i32 207, i32* %6
br label %323
243: ; preds = %231
%244 = load i64, i64* %12
%245 = load i64, i64* %13
%246 = add i64 %244, %245
%247 = icmp ult i64 %246, 30
br i1 %247, label %248, label %256
248: ; preds = %243
%249 = load i8*, i8** %10
%250 = load i64, i64* %12
%251 = load i64, i64* %13
%252 = add i64 %250, %251
%253 = sub i64 30, %252
%254 = trunc i64 %253 to i32
%255 = call i32 @strncat(i8* %249, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %254)
br label %256
256: ; preds = %248, %243
br label %257
257: ; preds = %256
%258 = load i8*, i8** %10
%259 = load i8*, i8** %8
%260 = load i64, i64* %12
%261 = sub i64 80, %260
%262 = trunc i64 %261 to i32
%263 = call i32 @strncat(i8* %258, i8* %259, i32 %262)
%264 = load i64, i64* %12
%265 = load i64, i64* %13
%266 = add i64 %264, %265
%267 = icmp ult i64 80, %266
br i1 %267, label %268, label %269
268: ; preds = %257
br label %273
269: ; preds = %257
%270 = load i64, i64* %12
%271 = load i64, i64* %13
%272 = add i64 %270, %271
br label %273
273: ; preds = %269, %268
%274 = phi i64 [ 80, %268 ], [ %272, %269 ]
store i64 %274, i64* %13
%275 = load i64, i64* %13
%276 = icmp ugt i64 30, %275
br i1 %276, label %277, label %278
277: ; preds = %273
br label %280
278: ; preds = %273
%279 = load i64, i64* %13
br label %280
280: ; preds = %278, %277
%281 = phi i64 [ 30, %277 ], [ %279, %278 ]
store i64 %281, i64* %13
br label %282
282: ; preds = %280, %230
%283 = load i8*, i8** %9
%284 = icmp ne i8* %283, null
br i1 %284, label %285, label %302
285: ; preds = %282
%286 = load i64, i64* %13
%287 = icmp ult i64 %286, 77
br i1 %287, label %288, label %301
288: ; preds = %285
%289 = load i8*, i8** %9
%290 = call i64 @strlen(i8* %289)
%291 = icmp ugt i64 %290, 0
br i1 %291, label %292, label %301
292: ; preds = %288
%293 = load i8*, i8** %10
%294 = call i32 @strcat(i8* %293, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%295 = load i8*, i8** %10
%296 = load i8*, i8** %9
%297 = load i64, i64* %13
%298 = sub i64 77, %297
%299 = trunc i64 %298 to i32
%300 = call i32 @strncat(i8* %295, i8* %296, i32 %299)
br label %301
301: ; preds = %292, %288, %285
br label %302
302: ; preds = %301, %282
br label %320
303: ; preds = %157
%304 = load i64, i64* %12
%305 = icmp eq i64 %304, 10
br i1 %305, label %306, label %319
306: ; preds = %303
%307 = load i8*, i8** %10
%308 = getelementptr inbounds i8, i8* %307, i64 8
store i8 32, i8* %308
%309 = load i8*, i8** %9
%310 = icmp ne i8* %309, null
br i1 %310, label %311, label %318
311: ; preds = %306
%312 = load i8*, i8** %10
%313 = load i8*, i8** %9
%314 = load i64, i64* %12
%315 = sub i64 80, %314
%316 = trunc i64 %315 to i32
%317 = call i32 @strncat(i8* %312, i8* %313, i32 %316)
br label %318
318: ; preds = %311, %306
br label %319
319: ; preds = %318, %303
br label %320
320: ; preds = %319, %302
%321 = load i32*, i32** %11
%322 = load i32, i32* %321
store i32 %322, i32* %6
br label %323
323: ; preds = %320, %236, %171, %98, %21
%324 = load i32, i32* %6
ret i32 %324
}

LLVM IR (-O2):
@.str = [50 x i8] c"Illegal keyword name; contains an equals sign (=)\00"
@.str.1 = [10 x i8] c"HIERARCH \00"
@.str.2 = [10 x i8] c"hierarch \00"
@.str.3 = [4 x i8] c" = \00"
@.str.4 = [60 x i8] c"The following keyword + value is too long to fit on a card:\00"
@.str.5 = [21 x i8] c" \00"
@.str.6 = [4 x i8] c" / \00"
define i32 @ffmkky(i8* %0, i8* %1, i8* %2, i8* %3, i32* nocapture %4) {
%6 = alloca [72 x i8]
%7 = alloca i32
%8 = getelementptr inbounds [72 x i8], [72 x i8]* %6, i64 0, i64 0
%9 = bitcast i32* %7 to i8*
store i32 -1, i32* %7
%10 = load i32, i32* %4
%11 = icmp sgt i32 %10, 0
br i1 %11, label %167, label %12
12: ; preds = %5
store i8 0, i8* %8
store i8 0, i8* %3
br label %13
13: ; preds = %13, %12
%14 = phi i8* [ %0, %12 ], [ %17, %13 ]
%15 = load i8, i8* %14
%16 = icmp eq i8 %15, 32
%17 = getelementptr inbounds i8, i8* %14, i64 1
br i1 %16, label %13, label %18
18: ; preds = %13
%19 = call i32 @strncat(i8* %8, i8* %14, i32 71)
%20 = call i64 @strlen(i8* %8)
%21 = icmp eq i64 %20, 0
br i1 %21, label %39, label %22
22: ; preds = %18
%23 = getelementptr inbounds [72 x i8], [72 x i8]* %6, i64 0, i64 %20
%24 = getelementptr inbounds i8, i8* %23, i64 -1
%25 = load i8, i8* %24
%26 = icmp eq i8 %25, 32
br i1 %26, label %27, label %32
27: ; preds = %22, %27
%28 = phi i8* [ %29, %27 ], [ %24, %22 ]
store i8 0, i8* %28
%29 = getelementptr inbounds i8, i8* %28, i64 -1
%30 = load i8, i8* %29
%31 = icmp eq i8 %30, 32
br i1 %31, label %27, label %32
32: ; preds = %27, %22
%33 = phi i8* [ %24, %22 ], [ %29, %27 ]
%34 = ptrtoint i8* %33 to i64
%35 = ptrtoint [72 x i8]* %6 to i64
%36 = sub i64 %34, %35
%37 = add nsw i64 %36, 1
%38 = icmp ult i64 %37, 9
br i1 %38, label %39, label %49
39: ; preds = %18, %32
%40 = phi i64 [ %37, %32 ], [ 0, %18 ]
%41 = call i64 @fftkey(i8* %0, i32* %7)
%42 = icmp slt i64 %41, 1
br i1 %42, label %43, label %49
43: ; preds = %39
%44 = call i32 @strcat(i8* %3, i8* %8)
%45 = icmp ult i64 %40, 8
br i1 %45, label %46, label %81
46: ; preds = %43
%47 = getelementptr i8, i8* %3, i64 %40
%48 = sub nuw nsw i64 8, %40
br label %81
49: ; preds = %39, %32
%50 = phi i64 [ %40, %39 ], [ %37, %32 ]
%51 = call i64 @strchr(i8* %8, i8 signext 61)
%52 = icmp eq i64 %51, 0
br i1 %52, label %56, label %53
53: ; preds = %49
%54 = call i32 @ffpmsg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%55 = call i32 @ffpmsg(i8* %8)
store i32 207, i32* %4
br label %167
56: ; preds = %49
%57 = load i8, i8* %8
%58 = icmp eq i8 %57, 72
br i1 %58, label %59, label %64
59: ; preds = %56
%60 = call i32 @strncmp(i8* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%61 = icmp eq i32 %60, 0
br i1 %61, label %72, label %62
62: ; preds = %59
%63 = load i8, i8* %8
br label %64
64: ; preds = %62, %56
%65 = phi i8 [ %63, %62 ], [ %57, %56 ]
%66 = icmp eq i8 %65, 104
br i1 %66, label %67, label %70
67: ; preds = %64
%68 = call i32 @strncmp(i8* %8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%69 = icmp eq i32 %68, 0
br i1 %69, label %72, label %70
70: ; preds = %64, %67
%71 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %74
72: ; preds = %67, %59
%73 = add i64 %50, -9
br label %74
74: ; preds = %70, %72
%75 = phi i64 [ %50, %70 ], [ %73, %72 ]
%76 = call i32 @strcat(i8* %3, i8* %8)
%77 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%78 = add i64 %75, 12
%79 = call i64 @strlen(i8* dereferenceable(1) %1)
%80 = icmp eq i64 %79, 0
br i1 %80, label %157, label %87
81: ; preds = %46, %43
%82 = getelementptr inbounds i8, i8* %3, i64 8
store i8 61, i8* %82
%83 = getelementptr inbounds i8, i8* %3, i64 9
store i8 32, i8* %83
%84 = getelementptr inbounds i8, i8* %3, i64 10
store i8 0, i8* %84
%85 = call i64 @strlen(i8* dereferenceable(1) %1)
%86 = icmp eq i64 %85, 0
br i1 %86, label %159, label %90
87: ; preds = %74
%88 = load i8, i8* %1
%89 = icmp eq i8 %88, 39
br i1 %89, label %93, label %125
90: ; preds = %81
%91 = load i8, i8* %1
%92 = icmp eq i8 %91, 39
br i1 %92, label %99, label %125
93: ; preds = %87
%94 = icmp ugt i64 %78, 77
br i1 %94, label %95, label %99
95: ; preds = %93
%96 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%97 = call i32 @ffpmsg(i8* %0)
%98 = call i32 @ffpmsg(i8* %1)
store i32 207, i32* %4
br label %167
99: ; preds = %90, %93
%100 = phi i64 [ %79, %93 ], [ %85, %90 ]
%101 = phi i64 [ %78, %93 ], [ 10, %90 ]
%102 = trunc i64 %101 to i32
%103 = sub nuw nsw i32 80, %102
%104 = call i32 @strncat(i8* %3, i8* %1, i32 %103)
%105 = add i64 %101, %100
%106 = icmp ult i64 %105, 80
%107 = select i1 %106, i64 %105, i64 80
%108 = icmp ugt i64 %105, 79
br i1 %108, label %109, label %111
109: ; preds = %99
%110 = getelementptr inbounds i8, i8* %3, i64 79
store i8 39, i8* %110
br label %111
111: ; preds = %109, %99
%112 = icmp eq i8* %2, null
br i1 %112, label %165, label %113
113: ; preds = %111
%114 = load i8, i8* %2
%115 = icmp ne i8 %114, 0
%116 = icmp ult i64 %107, 30
%117 = select i1 %115, i1 %116, i1 false
br i1 %117, label %118, label %145
118: ; preds = %113
%119 = icmp ult i64 %105, 30
br i1 %119, label %120, label %123
120: ; preds = %118
%121 = getelementptr i8, i8* %3, i64 %105
%122 = sub nuw nsw i64 30, %105
br label %123
123: ; preds = %120, %118
%124 = getelementptr inbounds i8, i8* %3, i64 30
store i8 0, i8* %124
br label %145
125: ; preds = %90, %87
%126 = phi i64 [ 10, %90 ], [ %78, %87 ]
%127 = phi i64 [ %85, %90 ], [ %79, %87 ]
%128 = add i64 %127, %126
%129 = icmp ugt i64 %128, 80
br i1 %129, label %130, label %134
130: ; preds = %125
%131 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.4, i64 0, i64 0))
%132 = call i32 @ffpmsg(i8* %0)
%133 = call i32 @ffpmsg(i8* %1)
store i32 207, i32* %4
br label %167
134: ; preds = %125
%135 = icmp ult i64 %128, 30
br i1 %135, label %136, label %140
136: ; preds = %134
%137 = trunc i64 %128 to i32
%138 = sub nuw nsw i32 30, %137
%139 = call i32 @strncat(i8* %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.5, i64 0, i64 0), i32 %138)
br label %140
140: ; preds = %134, %136
%141 = phi i64 [ %128, %134 ], [ 30, %136 ]
%142 = trunc i64 %126 to i32
%143 = sub i32 80, %142
%144 = call i32 @strncat(i8* %3, i8* %1, i32 %143)
br label %145
145: ; preds = %123, %113, %140
%146 = phi i64 [ 30, %123 ], [ %107, %113 ], [ %141, %140 ]
%147 = icmp ne i8* %2, null
%148 = icmp ult i64 %146, 77
%149 = select i1 %147, i1 %148, i1 false
br i1 %149, label %150, label %165
150: ; preds = %145
%151 = load i8, i8* %2
%152 = icmp eq i8 %151, 0
br i1 %152, label %165, label %153
153: ; preds = %150
%154 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%155 = trunc i64 %146 to i32
%156 = sub nuw nsw i32 77, %155
br label %162
157: ; preds = %74
%158 = icmp eq i64 %78, 10
br i1 %158, label %159, label %165
159: ; preds = %81, %157
%160 = getelementptr inbounds i8, i8* %3, i64 8
store i8 32, i8* %160
%161 = icmp eq i8* %2, null
br i1 %161, label %165, label %162
162: ; preds = %159, %153
%163 = phi i32 [ %156, %153 ], [ 70, %159 ]
%164 = call i32 @strncat(i8* %3, i8* %2, i32 %163)
br label %165
165: ; preds = %162, %111, %157, %159, %145, %150
%166 = load i32, i32* %4
br label %167
167: ; preds = %5, %165, %130, %95, %53
%168 = phi i32 [ 207, %95 ], [ %166, %165 ], [ 207, %130 ], [ 207, %53 ], [ %10, %5 ]
ret i32 %168
}