#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 const *);
scalar_t__ fftkey(char const *, int *);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strchr(char *, char);
size_t strlen(char const *);
int /*<<< orphan*/ strncat(char *, char const *, int);
int strncmp(char *, char *, int);
int ffmkky(const char *keyname, char *value, const char *comm, char *card,
           int *status) {
  size_t namelen, len, ii;
  char tmpname[72], *cptr;
  int tstatus = -1, nblank = 0;
  if (*status > 0)
    return (*status);
  *tmpname = '\0';
  *card = '\0';
  while (*(keyname + nblank) == ' ')
    nblank++;
  strncat(tmpname, keyname + nblank, 72 - 1);
  len = strlen(value);
  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);
    if (namelen + 12 + len > 80) {
      strcat(card, "= ");
      namelen += 11;
    } else {
      strcat(card, " = ");
      namelen += 12;
    }
  }
  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
movl   $0x0,-0xa0(%rbp)
mov    -0x30(%rbp),%rax
cmpl   $0x0,(%rax)
jle    11be <ffmkky+0x4e>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    17c1 <ffmkky+0x651>
movb   $0x0,-0x90(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movslq -0xa0(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jne    11f8 <ffmkky+0x88>
mov    -0xa0(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xa0(%rbp)
jmp    11cc <ffmkky+0x5c>
lea    -0x90(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0xa0(%rbp),%rax
add    %rax,%rsi
mov    $0x47,%edx
call   1070 <strncat@plt>
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x40(%rbp)
lea    -0x90(%rbp),%rdi
call   1040 <strlen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     12a2 <ffmkky+0x132>
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    1289 <ffmkky+0x119>
mov    -0x98(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x98(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x98(%rbp)
jmp    1255 <ffmkky+0xe5>
mov    -0x98(%rbp),%rax
lea    -0x90(%rbp),%rcx
sub    %rcx,%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
cmpq   $0x8,-0x38(%rbp)
ja     132c <ffmkky+0x1bc>
mov    -0x10(%rbp),%rdi
lea    -0x9c(%rbp),%rsi
call   1090 <fftkey@plt>
cmp    $0x0,%rax
jg     132c <ffmkky+0x1bc>
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    1307 <ffmkky+0x197>
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    12df <ffmkky+0x16f>
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    14d4 <ffmkky+0x364>
lea    -0x90(%rbp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
cmp    $0x0,%rax
je     1375 <ffmkky+0x205>
lea    0xcb2(%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    17c1 <ffmkky+0x651>
movsbl -0x90(%rbp),%eax
movsbl 0xcaf(%rip),%ecx
cmp    %ecx,%eax
jge    139a <ffmkky+0x22a>
mov    $0x1,%al
test   $0x1,%al
jne    13e0 <ffmkky+0x270>
jmp    1460 <ffmkky+0x2f0>
movsbl -0x90(%rbp),%eax
movsbl 0xc8a(%rip),%ecx
cmp    %ecx,%eax
jle    13bf <ffmkky+0x24f>
mov    $0x1,%al
test   $0x1,%al
jne    13e0 <ffmkky+0x270>
jmp    1460 <ffmkky+0x2f0>
lea    -0x90(%rbp),%rdi
lea    0xc65(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1460 <ffmkky+0x2f0>
movsbl -0x90(%rbp),%eax
movsbl 0xc4e(%rip),%ecx
cmp    %ecx,%eax
jge    1405 <ffmkky+0x295>
mov    $0x1,%al
test   $0x1,%al
jne    144b <ffmkky+0x2db>
jmp    1460 <ffmkky+0x2f0>
movsbl -0x90(%rbp),%eax
movsbl 0xc29(%rip),%ecx
cmp    %ecx,%eax
jle    142a <ffmkky+0x2ba>
mov    $0x1,%al
test   $0x1,%al
jne    144b <ffmkky+0x2db>
jmp    1460 <ffmkky+0x2f0>
lea    -0x90(%rbp),%rdi
lea    0xc04(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
je     1460 <ffmkky+0x2f0>
mov    -0x28(%rbp),%rdi
lea    0xbdc(%rip),%rsi
call   1080 <strcat@plt>
jmp    146c <ffmkky+0x2fc>
mov    -0x38(%rbp),%rax
sub    $0x9,%rax
mov    %rax,-0x38(%rbp)
mov    -0x28(%rbp),%rdi
lea    -0x90(%rbp),%rsi
call   1080 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0xc,%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    14b3 <ffmkky+0x343>
mov    -0x28(%rbp),%rdi
lea    0xbaa(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0xb,%rax
mov    %rax,-0x38(%rbp)
jmp    14cf <ffmkky+0x35f>
mov    -0x28(%rbp),%rdi
lea    0xb88(%rip),%rsi
call   1080 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0xc,%rax
mov    %rax,-0x38(%rbp)
jmp    14d4 <ffmkky+0x364>
cmpq   $0x0,-0x40(%rbp)
jbe    1778 <ffmkky+0x608>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    160f <ffmkky+0x49f>
cmpq   $0x4d,-0x38(%rbp)
jbe    152e <ffmkky+0x3be>
lea    0xb49(%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    17c1 <ffmkky+0x651>
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    156d <ffmkky+0x3fd>
mov    $0x50,%eax
mov    %rax,-0xa8(%rbp)
jmp    157c <ffmkky+0x40c>
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    159a <ffmkky+0x42a>
mov    -0x28(%rbp),%rax
movb   $0x27,0x4f(%rax)
cmpq   $0x0,-0x20(%rbp)
je     160a <ffmkky+0x49a>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1605 <ffmkky+0x495>
cmpq   $0x1e,-0x40(%rbp)
jae    1600 <ffmkky+0x490>
mov    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x1e,-0x48(%rbp)
jae    15f0 <ffmkky+0x480>
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    15c8 <ffmkky+0x458>
mov    -0x28(%rbp),%rax
movb   $0x0,0x1e(%rax)
movq   $0x1e,-0x40(%rbp)
jmp    1605 <ffmkky+0x495>
jmp    160a <ffmkky+0x49a>
jmp    171d <ffmkky+0x5ad>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    1655 <ffmkky+0x4e5>
lea    0xa22(%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    17c1 <ffmkky+0x651>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x1e,%rax
jae    1689 <ffmkky+0x519>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x1e,%eax
sub    %rcx,%rax
mov    %eax,%edx
lea    0xa02(%rip),%rsi
call   1070 <strncat@plt>
jmp    168e <ffmkky+0x51e>
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    16cd <ffmkky+0x55d>
mov    $0x50,%eax
mov    %rax,-0xb0(%rbp)
jmp    16dc <ffmkky+0x56c>
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    1707 <ffmkky+0x597>
mov    $0x1e,%eax
mov    %rax,-0xb8(%rbp)
jmp    1712 <ffmkky+0x5a2>
mov    -0x40(%rbp),%rax
mov    %rax,-0xb8(%rbp)
mov    -0xb8(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     1773 <ffmkky+0x603>
cmpq   $0x4d,-0x40(%rbp)
jae    176e <ffmkky+0x5fe>
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
jbe    176e <ffmkky+0x5fe>
mov    -0x28(%rbp),%rdi
lea    0x94a(%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    1773 <ffmkky+0x603>
jmp    17b8 <ffmkky+0x648>
cmpq   $0xa,-0x38(%rbp)
jne    17b3 <ffmkky+0x643>
mov    -0x28(%rbp),%rax
movb   $0x20,0x8(%rax)
cmpq   $0x0,-0x20(%rbp)
je     17ae <ffmkky+0x63e>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
jmp    17b3 <ffmkky+0x643>
jmp    17b8 <ffmkky+0x648>
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     14fe <ffmkky+0x37e>
mov    %r8,%r15
mov    %rcx,%r12
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
movb   $0x0,0x20(%rsp)
movb   $0x0,(%rcx)
mov    $0xffffffffffffffff,%rax
nop
cmpb   $0x20,0x1(%rbp,%rax,1)
lea    0x1(%rax),%rax
je     11c0 <ffmkky+0x40>
mov    %eax,%esi
add    %rbp,%rsi
lea    0x20(%rsp),%r14
mov    %r14,%rdi
mov    $0x47,%edx
call   1080 <strncat@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    %rax,0x10(%rsp)
mov    %r14,%rdi
call   1040 <strlen@plt>
test   %rax,%rax
mov    %rbx,0x8(%rsp)
je     1232 <ffmkky+0xb2>
lea    (%rsp,%rax,1),%rcx
add    $0x1f,%rcx
cmpb   $0x20,0x1f(%rsp,%rax,1)
jne    123a <ffmkky+0xba>
mov    %r13,%rbx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movb   $0x0,(%rcx)
lea    -0x1(%rcx),%r13
cmpb   $0x20,-0x1(%rcx)
mov    %r13,%rcx
je     1220 <ffmkky+0xa0>
jmp    1240 <ffmkky+0xc0>
mov    %r13,%rbx
xor    %r13d,%r13d
jmp    124d <ffmkky+0xcd>
mov    %r13,%rbx
mov    %rcx,%r13
sub    %r14,%r13
add    $0x1,%r13
cmp    $0x8,%r13
ja     1263 <ffmkky+0xe3>
lea    0x1c(%rsp),%rsi
mov    %rbp,%rdi
call   10a0 <fftkey@plt>
test   %rax,%rax
jle    12e6 <ffmkky+0x166>
lea    0x20(%rsp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     128d <ffmkky+0x10d>
lea    0xd82(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    0x20(%rsp),%rdi
jmp    1456 <ffmkky+0x2d6>
mov    0x20(%rsp),%al
cmp    $0x48,%al
jne    12b7 <ffmkky+0x137>
lea    0xd96(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1346 <ffmkky+0x1c6>
mov    0x20(%rsp),%al
cmp    $0x68,%al
jne    12d5 <ffmkky+0x155>
lea    0xd7a(%rip),%rsi
lea    0x20(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     1346 <ffmkky+0x1c6>
lea    0xd56(%rip),%rsi
mov    %r12,%rdi
call   1090 <strcat@plt>
jmp    134a <ffmkky+0x1ca>
lea    0x20(%rsp),%rsi
mov    %r12,%rdi
call   1090 <strcat@plt>
cmp    $0x7,%r13
ja     130f <ffmkky+0x18f>
lea    (%r12,%r13,1),%rdi
mov    $0x8,%edx
sub    %r13,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
movw   $0x203d,0x8(%r12)
20
movb   $0x0,0xa(%r12)
mov    0x10(%rsp),%rcx
test   %rcx,%rcx
mov    %rbx,%r14
je     1479 <ffmkky+0x2f9>
mov    %r14,%rbx
mov    $0xa,%r13d
mov    0x8(%rsp),%rax
cmpb   $0x27,(%rax)
je     13b7 <ffmkky+0x237>
jmp    1434 <ffmkky+0x2b4>
add    $0xfffffffffffffff7,%r13
lea    0x20(%rsp),%rsi
mov    %r12,%rdi
call   1090 <strcat@plt>
mov    0x10(%rsp),%rax
add    %r13,%rax
add    $0xc,%rax
cmp    $0x51,%rax
jb     137e <ffmkky+0x1fe>
lea    0xcd7(%rip),%rsi
mov    %r12,%rdi
call   1090 <strcat@plt>
add    $0xb,%r13
jmp    1391 <ffmkky+0x211>
add    $0xc,%r13
lea    0xcbd(%rip),%rsi
mov    %r12,%rdi
call   1090 <strcat@plt>
mov    0x10(%rsp),%rcx
test   %rcx,%rcx
je     146c <ffmkky+0x2ec>
mov    0x8(%rsp),%rax
cmpb   $0x27,(%rax)
jne    1434 <ffmkky+0x2b4>
cmp    $0x4e,%r13
jae    143d <ffmkky+0x2bd>
mov    $0x50,%edx
sub    %r13d,%edx
mov    %r12,%rdi
mov    0x8(%rsp),%rsi
call   1080 <strncat@plt>
mov    0x10(%rsp),%rax
add    %r13,%rax
mov    $0x50,%ebp
cmp    $0x50,%rax
cmovb  %rax,%rbp
jb     13e9 <ffmkky+0x269>
movb   $0x27,0x4f(%r12)
test   %rbx,%rbx
je     14fb <ffmkky+0x37b>
mov    %rbx,%r14
cmpb   $0x0,(%rbx)
je     14c9 <ffmkky+0x349>
cmp    $0x1d,%rbp
ja     14c9 <ffmkky+0x349>
cmp    $0x1d,%rax
ja     1424 <ffmkky+0x2a4>
lea    (%r12,%rax,1),%rdi
mov    $0x1e,%edx
sub    %rax,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
movb   $0x0,0x1e(%r12)
mov    $0x1e,%ebp
jmp    14c9 <ffmkky+0x349>
add    %r13,%rcx
cmp    $0x51,%rcx
jb     148b <ffmkky+0x30b>
lea    0xc06(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    %rbp,%rdi
call   1050 <ffpmsg@plt>
mov    0x8(%rsp),%rdi
call   1050 <ffpmsg@plt>
movl   $0xcf,(%r15)
mov    $0xcf,%eax
jmp    14fe <ffmkky+0x37e>
cmp    $0xa,%r13
mov    %rbx,%r14
jne    14fb <ffmkky+0x37b>
movb   $0x20,0x8(%r12)
mov    $0x46,%edx
test   %r14,%r14
jne    14f0 <ffmkky+0x370>
jmp    14fb <ffmkky+0x37b>
cmp    $0x1d,%rcx
ja     14ae <ffmkky+0x32e>
mov    $0x1e,%edx
sub    %ecx,%edx
lea    0xbe7(%rip),%rsi
mov    %r12,%rdi
call   1080 <strncat@plt>
mov    $0x1e,%ebp
jmp    14b1 <ffmkky+0x331>
mov    %rcx,%rbp
mov    $0x50,%edx
sub    %r13d,%edx
mov    %r12,%rdi
mov    0x8(%rsp),%rsi
call   1080 <strncat@plt>
mov    %rbx,%r14
test   %r14,%r14
je     14fb <ffmkky+0x37b>
cmp    $0x4c,%rbp
ja     14fb <ffmkky+0x37b>
cmpb   $0x0,(%r14)
je     14fb <ffmkky+0x37b>
lea    0xbba(%rip),%rsi
mov    %r12,%rdi
call   1090 <strcat@plt>
mov    $0x4d,%edx
sub    %ebp,%edx
mov    %r12,%rdi
mov    %r14,%rsi
call   1080 <strncat@plt>
mov    (%r15),%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 = [3 x i8] c"= \00"
@.str.4 = [4 x i8] c" = \00"
@.str.5 = [60 x i8] c"The following keyword + value is too long to fit on a card:\00"
@.str.6 = [21 x i8] c" \00"
@.str.7 = [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
%18 = 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
store i32 0, i32* %18
%19 = load i32*, i32** %11
%20 = load i32, i32* %19
%21 = icmp sgt i32 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %5
%23 = load i32*, i32** %11
%24 = load i32, i32* %23
store i32 %24, i32* %6
br label %341
25: ; preds = %5
%26 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
store i8 0, i8* %26
%27 = load i8*, i8** %10
store i8 0, i8* %27
br label %28
28: ; preds = %36, %25
%29 = load i8*, i8** %7
%30 = load i32, i32* %18
%31 = sext i32 %30 to i64
%32 = getelementptr inbounds i8, i8* %29, i64 %31
%33 = load i8, i8* %32
%34 = sext i8 %33 to i32
%35 = icmp eq i32 %34, 32
br i1 %35, label %36, label %39
36: ; preds = %28
%37 = load i32, i32* %18
%38 = add nsw i32 %37, 1
store i32 %38, i32* %18
br label %28
39: ; preds = %28
%40 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%41 = load i8*, i8** %7
%42 = load i32, i32* %18
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds i8, i8* %41, i64 %43
%45 = call i32 @strncat(i8* %40, i8* %44, i32 71)
%46 = load i8*, i8** %8
%47 = call i64 @strlen(i8* %46)
store i64 %47, i64* %13
%48 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%49 = call i64 @strlen(i8* %48)
store i64 %49, i64* %12
%50 = load i64, i64* %12
%51 = icmp ne i64 %50, 0
br i1 %51, label %52, label %73
52: ; preds = %39
%53 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%54 = load i64, i64* %12
%55 = getelementptr inbounds i8, i8* %53, i64 %54
%56 = getelementptr inbounds i8, i8* %55, i64 -1
store i8* %56, i8** %16
br label %57
57: ; preds = %62, %52
%58 = load i8*, i8** %16
%59 = load i8, i8* %58
%60 = sext i8 %59 to i32
%61 = icmp eq i32 %60, 32
br i1 %61, label %62, label %66
62: ; preds = %57
%63 = load i8*, i8** %16
store i8 0, i8* %63
%64 = load i8*, i8** %16
%65 = getelementptr inbounds i8, i8* %64, i32 -1
store i8* %65, i8** %16
br label %57
66: ; preds = %57
%67 = load i8*, i8** %16
%68 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%69 = ptrtoint i8* %67 to i64
%70 = ptrtoint i8* %68 to i64
%71 = sub i64 %69, %70
%72 = add nsw i64 %71, 1
store i64 %72, i64* %12
br label %73
73: ; preds = %66, %39
%74 = load i64, i64* %12
%75 = icmp ule i64 %74, 8
br i1 %75, label %76, label %102
76: ; preds = %73
%77 = load i8*, i8** %7
%78 = call i64 @fftkey(i8* %77, i32* %17)
%79 = icmp sle i64 %78, 0
br i1 %79, label %80, label %102
80: ; preds = %76
%81 = load i8*, i8** %10
%82 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%83 = call i32 @strcat(i8* %81, i8* %82)
%84 = load i64, i64* %12
store i64 %84, i64* %14
br label %85
85: ; preds = %92, %80
%86 = load i64, i64* %14
%87 = icmp ult i64 %86, 8
br i1 %87, label %88, label %95
88: ; preds = %85
%89 = load i8*, i8** %10
%90 = load i64, i64* %14
%91 = getelementptr inbounds i8, i8* %89, i64 %90
store i8 32, i8* %91
br label %92
92: ; preds = %88
%93 = load i64, i64* %14
%94 = add i64 %93, 1
store i64 %94, i64* %14
br label %85
95: ; preds = %85
%96 = load i8*, i8** %10
%97 = getelementptr inbounds i8, i8* %96, i64 8
store i8 61, i8* %97
%98 = load i8*, i8** %10
%99 = getelementptr inbounds i8, i8* %98, i64 9
store i8 32, i8* %99
%100 = load i8*, i8** %10
%101 = getelementptr inbounds i8, i8* %100, i64 10
store i8 0, i8* %101
store i64 10, i64* %12
br label %177
102: ; preds = %76, %73
%103 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%104 = call i64 @strchr(i8* %103, i8 signext 61)
%105 = icmp ne i64 %104, 0
br i1 %105, label %106, label %111
106: ; preds = %102
%107 = call i32 @ffpmsg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%108 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%109 = call i32 @ffpmsg(i8* %108)
%110 = load i32*, i32** %11
store i32 207, i32* %110
store i32 207, i32* %6
br label %341
111: ; preds = %102
%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 slt i32 %114, %116
br i1 %117, label %118, label %119
118: ; preds = %111
br i1 true, label %131, label %154
119: ; preds = %111
%120 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%121 = load i8, i8* %120
%122 = sext i8 %121 to i32
%123 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0)
%124 = sext i8 %123 to i32
%125 = icmp sgt i32 %122, %124
br i1 %125, label %126, label %127
126: ; preds = %119
br i1 true, label %131, label %154
127: ; preds = %119
%128 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%129 = call i32 @strncmp(i8* %128, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%130 = icmp ne i32 %129, 0
br i1 %130, label %131, label %154
131: ; preds = %127, %126, %118
%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 slt i32 %134, %136
br i1 %137, label %138, label %139
138: ; preds = %131
br i1 true, label %151, label %154
139: ; preds = %131
%140 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%141 = load i8, i8* %140
%142 = sext i8 %141 to i32
%143 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%144 = sext i8 %143 to i32
%145 = icmp sgt i32 %142, %144
br i1 %145, label %146, label %147
146: ; preds = %139
br i1 true, label %151, label %154
147: ; preds = %139
%148 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%149 = call i32 @strncmp(i8* %148, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%150 = icmp ne i32 %149, 0
br i1 %150, label %151, label %154
151: ; preds = %147, %146, %138
%152 = load i8*, i8** %10
%153 = call i32 @strcat(i8* %152, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %157
154: ; preds = %147, %146, %138, %127, %126, %118
%155 = load i64, i64* %12
%156 = sub i64 %155, 9
store i64 %156, i64* %12
br label %157
157: ; preds = %154, %151
%158 = load i8*, i8** %10
%159 = getelementptr inbounds [72 x i8], [72 x i8]* %15, i64 0, i64 0
%160 = call i32 @strcat(i8* %158, i8* %159)
%161 = load i64, i64* %12
%162 = add i64 %161, 12
%163 = load i64, i64* %13
%164 = add i64 %162, %163
%165 = icmp ugt i64 %164, 80
br i1 %165, label %166, label %171
166: ; preds = %157
%167 = load i8*, i8** %10
%168 = call i32 @strcat(i8* %167, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%169 = load i64, i64* %12
%170 = add i64 %169, 11
store i64 %170, i64* %12
br label %176
171: ; preds = %157
%172 = load i8*, i8** %10
%173 = call i32 @strcat(i8* %172, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%174 = load i64, i64* %12
%175 = add i64 %174, 12
store i64 %175, i64* %12
br label %176
176: ; preds = %171, %166
br label %177
177: ; preds = %176, %95
%178 = load i64, i64* %13
%179 = icmp ugt i64 %178, 0
br i1 %179, label %180, label %321
180: ; preds = %177
%181 = load i8*, i8** %8
%182 = getelementptr inbounds i8, i8* %181, i64 0
%183 = load i8, i8* %182
%184 = sext i8 %183 to i32
%185 = icmp eq i32 %184, 39
br i1 %185, label %186, label %249
186: ; preds = %180
%187 = load i64, i64* %12
%188 = icmp ugt i64 %187, 77
br i1 %188, label %189, label %196
189: ; preds = %186
%190 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%191 = load i8*, i8** %7
%192 = call i32 @ffpmsg(i8* %191)
%193 = load i8*, i8** %8
%194 = call i32 @ffpmsg(i8* %193)
%195 = load i32*, i32** %11
store i32 207, i32* %195
store i32 207, i32* %6
br label %341
196: ; preds = %186
%197 = load i8*, i8** %10
%198 = load i8*, i8** %8
%199 = load i64, i64* %12
%200 = sub i64 80, %199
%201 = trunc i64 %200 to i32
%202 = call i32 @strncat(i8* %197, i8* %198, i32 %201)
%203 = load i64, i64* %12
%204 = load i64, i64* %13
%205 = add i64 %203, %204
%206 = icmp ult i64 80, %205
br i1 %206, label %207, label %208
207: ; preds = %196
br label %212
208: ; preds = %196
%209 = load i64, i64* %12
%210 = load i64, i64* %13
%211 = add i64 %209, %210
br label %212
212: ; preds = %208, %207
%213 = phi i64 [ 80, %207 ], [ %211, %208 ]
store i64 %213, i64* %13
%214 = load i64, i64* %13
%215 = icmp eq i64 %214, 80
br i1 %215, label %216, label %219
216: ; preds = %212
%217 = load i8*, i8** %10
%218 = getelementptr inbounds i8, i8* %217, i64 79
store i8 39, i8* %218
br label %219
219: ; preds = %216, %212
%220 = load i8*, i8** %9
%221 = icmp ne i8* %220, null
br i1 %221, label %222, label %248
222: ; preds = %219
%223 = load i8*, i8** %9
%224 = getelementptr inbounds i8, i8* %223, i64 0
%225 = load i8, i8* %224
%226 = sext i8 %225 to i32
%227 = icmp ne i32 %226, 0
br i1 %227, label %228, label %247
228: ; preds = %222
%229 = load i64, i64* %13
%230 = icmp ult i64 %229, 30
br i1 %230, label %231, label %246
231: ; preds = %228
%232 = load i64, i64* %13
store i64 %232, i64* %14
br label %233
233: ; preds = %240, %231
%234 = load i64, i64* %14
%235 = icmp ult i64 %234, 30
br i1 %235, label %236, label %243
236: ; preds = %233
%237 = load i8*, i8** %10
%238 = load i64, i64* %14
%239 = getelementptr inbounds i8, i8* %237, i64 %238
store i8 32, i8* %239
br label %240
240: ; preds = %236
%241 = load i64, i64* %14
%242 = add i64 %241, 1
store i64 %242, i64* %14
br label %233
243: ; preds = %233
%244 = load i8*, i8** %10
%245 = getelementptr inbounds i8, i8* %244, i64 30
store i8 0, i8* %245
store i64 30, i64* %13
br label %246
246: ; preds = %243, %228
br label %247
247: ; preds = %246, %222
br label %248
248: ; preds = %247, %219
br label %300
249: ; preds = %180
%250 = load i64, i64* %12
%251 = load i64, i64* %13
%252 = add i64 %250, %251
%253 = icmp ugt i64 %252, 80
br i1 %253, label %254, label %261
254: ; preds = %249
%255 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.5, i64 0, i64 0))
%256 = load i8*, i8** %7
%257 = call i32 @ffpmsg(i8* %256)
%258 = load i8*, i8** %8
%259 = call i32 @ffpmsg(i8* %258)
%260 = load i32*, i32** %11
store i32 207, i32* %260
store i32 207, i32* %6
br label %341
261: ; preds = %249
%262 = load i64, i64* %12
%263 = load i64, i64* %13
%264 = add i64 %262, %263
%265 = icmp ult i64 %264, 30
br i1 %265, label %266, label %274
266: ; preds = %261
%267 = load i8*, i8** %10
%268 = load i64, i64* %12
%269 = load i64, i64* %13
%270 = add i64 %268, %269
%271 = sub i64 30, %270
%272 = trunc i64 %271 to i32
%273 = call i32 @strncat(i8* %267, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0), i32 %272)
br label %274
274: ; preds = %266, %261
br label %275
275: ; preds = %274
%276 = load i8*, i8** %10
%277 = load i8*, i8** %8
%278 = load i64, i64* %12
%279 = sub i64 80, %278
%280 = trunc i64 %279 to i32
%281 = call i32 @strncat(i8* %276, i8* %277, i32 %280)
%282 = load i64, i64* %12
%283 = load i64, i64* %13
%284 = add i64 %282, %283
%285 = icmp ult i64 80, %284
br i1 %285, label %286, label %287
286: ; preds = %275
br label %291
287: ; preds = %275
%288 = load i64, i64* %12
%289 = load i64, i64* %13
%290 = add i64 %288, %289
br label %291
291: ; preds = %287, %286
%292 = phi i64 [ 80, %286 ], [ %290, %287 ]
store i64 %292, i64* %13
%293 = load i64, i64* %13
%294 = icmp ugt i64 30, %293
br i1 %294, label %295, label %296
295: ; preds = %291
br label %298
296: ; preds = %291
%297 = load i64, i64* %13
br label %298
298: ; preds = %296, %295
%299 = phi i64 [ 30, %295 ], [ %297, %296 ]
store i64 %299, i64* %13
br label %300
300: ; preds = %298, %248
%301 = load i8*, i8** %9
%302 = icmp ne i8* %301, null
br i1 %302, label %303, label %320
303: ; preds = %300
%304 = load i64, i64* %13
%305 = icmp ult i64 %304, 77
br i1 %305, label %306, label %319
306: ; preds = %303
%307 = load i8*, i8** %9
%308 = call i64 @strlen(i8* %307)
%309 = icmp ugt i64 %308, 0
br i1 %309, label %310, label %319
310: ; preds = %306
%311 = load i8*, i8** %10
%312 = call i32 @strcat(i8* %311, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%313 = load i8*, i8** %10
%314 = load i8*, i8** %9
%315 = load i64, i64* %13
%316 = sub i64 77, %315
%317 = trunc i64 %316 to i32
%318 = call i32 @strncat(i8* %313, i8* %314, i32 %317)
br label %319
319: ; preds = %310, %306, %303
br label %320
320: ; preds = %319, %300
br label %338
321: ; preds = %177
%322 = load i64, i64* %12
%323 = icmp eq i64 %322, 10
br i1 %323, label %324, label %337
324: ; preds = %321
%325 = load i8*, i8** %10
%326 = getelementptr inbounds i8, i8* %325, i64 8
store i8 32, i8* %326
%327 = load i8*, i8** %9
%328 = icmp ne i8* %327, null
br i1 %328, label %329, label %336
329: ; preds = %324
%330 = load i8*, i8** %10
%331 = load i8*, i8** %9
%332 = load i64, i64* %12
%333 = sub i64 80, %332
%334 = trunc i64 %333 to i32
%335 = call i32 @strncat(i8* %330, i8* %331, i32 %334)
br label %336
336: ; preds = %329, %324
br label %337
337: ; preds = %336, %321
br label %338
338: ; preds = %337, %320
%339 = load i32*, i32** %11
%340 = load i32, i32* %339
store i32 %340, i32* %6
br label %341
341: ; preds = %338, %254, %189, %106, %22
%342 = load i32, i32* %6
ret i32 %342
}

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