#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 *, int *);
int /*<<< orphan*/ strcat(char *, char *);
scalar_t__ strchr(char *, char);
int strlen(char const *);
int /*<<< orphan*/ strncat(char *, char const *, int);
int strncmp(char *, char *, int);
char *strtok(char *, char *);
int ffmkky(const char *keyname, char *value, const char *comm, char *card,
           int *status) {
  size_t namelen, len, ii;
  char tmpname[75], tmpname2[75], *cptr;
  char *saveptr;
  int tstatus = -1, nblank = 0, ntoken = 0, maxlen = 0, specialchar = 0;
  if (*status > 0)
    return (*status);
  *tmpname = '\0';
  *tmpname2 = '\0';
  *card = '\0';
  while (*(keyname + nblank) == ' ')
    nblank++;
  strncat(tmpname, keyname + nblank, 75 - 1);
  len = strlen(value);
  namelen = strlen(tmpname);
  if (namelen) {
    cptr = tmpname + namelen - 1;
    while (*cptr == ' ') {
      *cptr = '\0';
      cptr--;
    }
    namelen = cptr - tmpname + 1;
  }
  if (strchr(tmpname, '=')) {
    ffpmsg("Illegal keyword name; contains an equals sign (=)");
    ffpmsg(tmpname);
    return (*status = 207);
  }
  if (namelen <= 8 && fftkey(tmpname, &tstatus) <= 0) {
    strcat(card, tmpname);
    for (ii = namelen; ii < 8; ii++)
      card[ii] = ' ';
    card[8] = '=';
    card[9] = ' ';
    card[10] = '\0';
    namelen = 10;
  } else if ((((tmpname)[0] < ("HIERARCH ")[0] ? -1
               : (tmpname)[0] > ("HIERARCH ")[0]
                   ? 1
                   : strncmp((tmpname), ("HIERARCH "), (9))) == 0) ||
             (((tmpname)[0] < ("hierarch ")[0] ? -1
               : (tmpname)[0] > ("hierarch ")[0]
                   ? 1
                   : strncmp((tmpname), ("hierarch "), (9))) == 0)) {
    strcat(card, tmpname);
    if (namelen + 3 + len > 80) {
      strcat(card, "= ");
      namelen += 2;
    } else {
      strcat(card, " = ");
      namelen += 3;
    }
  } else {
    strncat(tmpname2, tmpname, 75 - 1);
    cptr = strtok(tmpname2, " ");
    while (cptr) {
      if (strlen(cptr) > maxlen)
        maxlen = strlen(cptr);
      tstatus = -1;
      if (fftkey(cptr, &tstatus) > 0)
        specialchar = 1;
      cptr = strtok(NULL, " ");
      ntoken++;
    }
    tstatus = -1;
    if (ntoken > 0) {
      strcat(card, "HIERARCH ");
      strcat(card, tmpname);
      namelen += 9;
      if (namelen + 3 + len > 80) {
        strcat(card, "= ");
        namelen += 2;
      } else {
        strcat(card, " = ");
        namelen += 3;
      }
    } else if ((fftkey(tmpname, &tstatus) <= 0)) {
      strncat(card, tmpname, 75 - 1);
      strcat(card, "= ");
      namelen += 2;
    } else {
      ffpmsg("Illegal keyword name:");
      ffpmsg(tmpname);
      return (*status = 207);
    }
  }
  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);
      }
    }
  }
  if (ntoken == 1 || specialchar == 1) {
    ffpmsg("Warning: the following keyword does not conform to the HIERARCH "
           "convention");
    ffpmsg(card);
  }
  return (*status);
}


x86 assembly (clang, -O0):
<ffmkky>:
push   %rbp
mov    %rsp,%rbp
sub    $0x140,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %rdx,-0x20(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8,-0x30(%rbp)
movl   $0xffffffff,-0x104(%rbp)
ff ff ff
movl   $0x0,-0x108(%rbp)
movl   $0x0,-0x10c(%rbp)
movl   $0x0,-0x110(%rbp)
movl   $0x0,-0x114(%rbp)
mov    -0x30(%rbp),%rax
cmpl   $0x0,(%rax)
jle    11ec <ffmkky+0x6c>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    1a2f <ffmkky+0x8af>
movb   $0x0,-0xa0(%rbp)
movb   $0x0,-0xf0(%rbp)
mov    -0x28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x10(%rbp),%rax
movslq -0x108(%rbp),%rcx
movsbl (%rax,%rcx,1),%eax
cmp    $0x20,%eax
jne    122d <ffmkky+0xad>
mov    -0x108(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x108(%rbp)
jmp    1201 <ffmkky+0x81>
lea    -0xa0(%rbp),%rdi
mov    -0x10(%rbp),%rsi
movslq -0x108(%rbp),%rax
add    %rax,%rsi
mov    $0x4a,%edx
call   1070 <strncat@plt>
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
cltq
mov    %rax,-0x40(%rbp)
lea    -0xa0(%rbp),%rdi
call   1040 <strlen@plt>
cltq
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     12db <ffmkky+0x15b>
lea    -0xa0(%rbp),%rax
add    -0x38(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0xf8(%rbp)
mov    -0xf8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x20,%eax
jne    12c2 <ffmkky+0x142>
mov    -0xf8(%rbp),%rax
movb   $0x0,(%rax)
mov    -0xf8(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0xf8(%rbp)
jmp    128e <ffmkky+0x10e>
mov    -0xf8(%rbp),%rax
lea    -0xa0(%rbp),%rcx
sub    %rcx,%rax
add    $0x1,%rax
mov    %rax,-0x38(%rbp)
lea    -0xa0(%rbp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
cmp    $0x0,%rax
je     1324 <ffmkky+0x1a4>
lea    0xd03(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    -0xa0(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    1a2f <ffmkky+0x8af>
cmpq   $0x8,-0x38(%rbp)
ja     13b1 <ffmkky+0x231>
lea    -0xa0(%rbp),%rdi
lea    -0x104(%rbp),%rsi
call   10a0 <fftkey@plt>
cmp    $0x0,%rax
jg     13b1 <ffmkky+0x231>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x8,-0x48(%rbp)
jae    138c <ffmkky+0x20c>
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    1364 <ffmkky+0x1e4>
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    1714 <ffmkky+0x594>
movsbl -0xa0(%rbp),%eax
movsbl 0xc73(%rip),%ecx
cmp    %ecx,%eax
jge    13d7 <ffmkky+0x257>
mov    $0xffffffff,%eax
mov    %eax,-0x118(%rbp)
jmp    1427 <ffmkky+0x2a7>
movsbl -0xa0(%rbp),%eax
movsbl 0xc4d(%rip),%ecx
cmp    %ecx,%eax
jle    13fd <ffmkky+0x27d>
mov    $0x1,%eax
mov    %eax,-0x11c(%rbp)
jmp    141b <ffmkky+0x29b>
lea    -0xa0(%rbp),%rdi
lea    0xc27(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
mov    %eax,-0x11c(%rbp)
mov    -0x11c(%rbp),%eax
mov    %eax,-0x118(%rbp)
mov    -0x118(%rbp),%eax
cmp    $0x0,%eax
je     14bb <ffmkky+0x33b>
movsbl -0xa0(%rbp),%eax
movsbl 0xbf8(%rip),%ecx
cmp    %ecx,%eax
jge    145c <ffmkky+0x2dc>
mov    $0xffffffff,%eax
mov    %eax,-0x120(%rbp)
jmp    14ac <ffmkky+0x32c>
movsbl -0xa0(%rbp),%eax
movsbl 0xbd2(%rip),%ecx
cmp    %ecx,%eax
jle    1482 <ffmkky+0x302>
mov    $0x1,%eax
mov    %eax,-0x124(%rbp)
jmp    14a0 <ffmkky+0x320>
lea    -0xa0(%rbp),%rdi
lea    0xbac(%rip),%rsi
mov    $0x9,%edx
call   1030 <strncmp@plt>
mov    %eax,-0x124(%rbp)
mov    -0x124(%rbp),%eax
mov    %eax,-0x120(%rbp)
mov    -0x120(%rbp),%eax
cmp    $0x0,%eax
jne    1523 <ffmkky+0x3a3>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x3,%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    1502 <ffmkky+0x382>
mov    -0x28(%rbp),%rdi
lea    0xb5b(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x38(%rbp)
jmp    151e <ffmkky+0x39e>
mov    -0x28(%rbp),%rdi
lea    0xb39(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x38(%rbp)
jmp    170f <ffmkky+0x58f>
lea    -0xf0(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x4a,%edx
call   1070 <strncat@plt>
lea    -0xf0(%rbp),%rdi
lea    0xb66(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0xf8(%rbp)
cmpq   $0x0,-0xf8(%rbp)
je     15e9 <ffmkky+0x469>
mov    -0xf8(%rbp),%rdi
call   1040 <strlen@plt>
cmp    -0x110(%rbp),%eax
jle    158d <ffmkky+0x40d>
mov    -0xf8(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,-0x110(%rbp)
movl   $0xffffffff,-0x104(%rbp)
ff ff ff
mov    -0xf8(%rbp),%rdi
lea    -0x104(%rbp),%rsi
call   10a0 <fftkey@plt>
cmp    $0x0,%rax
jle    15be <ffmkky+0x43e>
movl   $0x1,-0x114(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xae6(%rip),%rsi
call   1080 <strtok@plt>
mov    %rax,-0xf8(%rbp)
mov    -0x10c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10c(%rbp)
jmp    1555 <ffmkky+0x3d5>
movl   $0xffffffff,-0x104(%rbp)
ff ff ff
cmpl   $0x0,-0x10c(%rbp)
jle    1684 <ffmkky+0x504>
mov    -0x28(%rbp),%rdi
lea    0xa27(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x9,%rax
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
add    $0x3,%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    1663 <ffmkky+0x4e3>
mov    -0x28(%rbp),%rdi
lea    0x9fa(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x38(%rbp)
jmp    167f <ffmkky+0x4ff>
mov    -0x28(%rbp),%rdi
lea    0x9d8(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x3,%rax
mov    %rax,-0x38(%rbp)
jmp    170a <ffmkky+0x58a>
lea    -0xa0(%rbp),%rdi
lea    -0x104(%rbp),%rsi
call   10a0 <fftkey@plt>
cmp    $0x0,%rax
jg     16d7 <ffmkky+0x557>
mov    -0x28(%rbp),%rdi
lea    -0xa0(%rbp),%rsi
mov    $0x4a,%edx
call   1070 <strncat@plt>
mov    -0x28(%rbp),%rdi
lea    0x986(%rip),%rsi
call   1090 <strcat@plt>
mov    -0x38(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x38(%rbp)
jmp    1705 <ffmkky+0x585>
lea    0x96c(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    -0xa0(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
movl   $0xcf,(%rax)
movl   $0xcf,-0x4(%rbp)
jmp    1a2f <ffmkky+0x8af>
jmp    170a <ffmkky+0x58a>
jmp    170f <ffmkky+0x58f>
jmp    1714 <ffmkky+0x594>
cmpq   $0x0,-0x40(%rbp)
jbe    19b7 <ffmkky+0x837>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x27,%eax
jne    184f <ffmkky+0x6cf>
cmpq   $0x4d,-0x38(%rbp)
jbe    176e <ffmkky+0x5ee>
lea    0x91f(%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    1a2f <ffmkky+0x8af>
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    17ad <ffmkky+0x62d>
mov    $0x50,%eax
mov    %rax,-0x130(%rbp)
jmp    17bc <ffmkky+0x63c>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x130(%rbp)
mov    -0x130(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x50,-0x40(%rbp)
jne    17da <ffmkky+0x65a>
mov    -0x28(%rbp),%rax
movb   $0x27,0x4f(%rax)
cmpq   $0x0,-0x20(%rbp)
je     184a <ffmkky+0x6ca>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
je     1845 <ffmkky+0x6c5>
cmpq   $0x1e,-0x40(%rbp)
jae    1840 <ffmkky+0x6c0>
mov    -0x40(%rbp),%rax
mov    %rax,-0x48(%rbp)
cmpq   $0x1e,-0x48(%rbp)
jae    1830 <ffmkky+0x6b0>
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    1808 <ffmkky+0x688>
mov    -0x28(%rbp),%rax
movb   $0x0,0x1e(%rax)
movq   $0x1e,-0x40(%rbp)
jmp    1845 <ffmkky+0x6c5>
jmp    184a <ffmkky+0x6ca>
jmp    195d <ffmkky+0x7dd>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x50,%rax
jbe    1895 <ffmkky+0x715>
lea    0x7f8(%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    1a2f <ffmkky+0x8af>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
cmp    $0x1e,%rax
jae    18c9 <ffmkky+0x749>
mov    -0x28(%rbp),%rdi
mov    -0x38(%rbp),%rcx
add    -0x40(%rbp),%rcx
mov    $0x1e,%eax
sub    %rcx,%rax
mov    %eax,%edx
lea    0x7d8(%rip),%rsi
call   1070 <strncat@plt>
jmp    18ce <ffmkky+0x74e>
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    190d <ffmkky+0x78d>
mov    $0x50,%eax
mov    %rax,-0x138(%rbp)
jmp    191c <ffmkky+0x79c>
mov    -0x38(%rbp),%rax
add    -0x40(%rbp),%rax
mov    %rax,-0x138(%rbp)
mov    -0x138(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    $0x1e,%eax
cmp    -0x40(%rbp),%rax
jbe    1947 <ffmkky+0x7c7>
mov    $0x1e,%eax
mov    %rax,-0x140(%rbp)
jmp    1952 <ffmkky+0x7d2>
mov    -0x40(%rbp),%rax
mov    %rax,-0x140(%rbp)
mov    -0x140(%rbp),%rax
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     19b2 <ffmkky+0x832>
cmpq   $0x4d,-0x40(%rbp)
jae    19ad <ffmkky+0x82d>
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%eax
jle    19ad <ffmkky+0x82d>
mov    -0x28(%rbp),%rdi
lea    0x721(%rip),%rsi
call   1090 <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    19b2 <ffmkky+0x832>
jmp    19f7 <ffmkky+0x877>
cmpq   $0xa,-0x38(%rbp)
jne    19f2 <ffmkky+0x872>
mov    -0x28(%rbp),%rax
movb   $0x20,0x8(%rax)
cmpq   $0x0,-0x20(%rbp)
je     19ed <ffmkky+0x86d>
mov    -0x28(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0x50,%eax
sub    -0x38(%rbp),%rax
mov    %eax,%edx
call   1070 <strncat@plt>
jmp    19f2 <ffmkky+0x872>
jmp    19f7 <ffmkky+0x877>
cmpl   $0x1,-0x10c(%rbp)
je     1a11 <ffmkky+0x891>
cmpl   $0x1,-0x114(%rbp)
jne    1a26 <ffmkky+0x8a6>
lea    0x69d(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    -0x28(%rbp),%rdi
call   1050 <ffpmsg@plt>
mov    -0x30(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x140,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ffmkky>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xd8,%rsp
movl   $0xffffffff,0x4(%rsp)
ff
mov    (%r8),%eax
test   %eax,%eax
jg     16ed <ffmkky+0x55d>
mov    %rdx,%r15
mov    %rsi,%rbp
mov    %rdi,%rbx
mov    %r8,0x18(%rsp)
movb   $0x0,0x30(%rsp)
movb   $0x0,0x80(%rsp)
mov    %rcx,%r12
movb   $0x0,(%rcx)
mov    $0xffffffffffffffff,%rax
nopl   0x0(%rax)
cmpb   $0x20,0x1(%rbx,%rax,1)
lea    0x1(%rax),%rax
je     11e0 <ffmkky+0x50>
mov    %eax,%esi
add    %rbx,%rsi
lea    0x30(%rsp),%r14
mov    %r14,%rdi
mov    $0x4a,%edx
call   1080 <strncat@plt>
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    %eax,(%rsp)
cltq
mov    %rax,0x20(%rsp)
mov    %r14,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
mov    %rbp,0x10(%rsp)
je     1252 <ffmkky+0xc2>
movslq %eax,%rcx
lea    (%rsp,%rcx,1),%rax
add    $0x2f,%rax
cmpb   $0x20,0x2f(%rsp,%rcx,1)
jne    126e <ffmkky+0xde>
nopw   0x0(%rax,%rax,1)
movb   $0x0,(%rax)
lea    -0x1(%rax),%r13
cmpb   $0x20,-0x1(%rax)
mov    %r13,%rax
je     1240 <ffmkky+0xb0>
jmp    1271 <ffmkky+0xe1>
lea    0x30(%rsp),%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
jne    1283 <ffmkky+0xf3>
xor    %r13d,%r13d
mov    %r12,%r14
jmp    12be <ffmkky+0x12e>
mov    %rax,%r13
mov    %r14,%rdi
mov    $0x3d,%esi
call   1060 <strchr@plt>
test   %rax,%rax
je     12ae <ffmkky+0x11e>
lea    0xd76(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    0x30(%rsp),%rdi
call   1050 <ffpmsg@plt>
mov    0x18(%rsp),%rax
movl   $0xcf,(%rax)
mov    $0xcf,%eax
jmp    16ed <ffmkky+0x55d>
sub    %r14,%r13
add    $0x1,%r13
cmp    $0x8,%r13
mov    %r12,%r14
ja     12d6 <ffmkky+0x146>
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   10b0 <fftkey@plt>
test   %rax,%rax
jle    1420 <ffmkky+0x290>
mov    0x30(%rsp),%al
cmp    $0x48,%al
mov    0x18(%rsp),%r12
jne    1305 <ffmkky+0x175>
lea    0xd48(%rip),%rsi
lea    0x30(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     148a <ffmkky+0x2fa>
mov    0x30(%rsp),%al
cmp    $0x68,%al
jne    1327 <ffmkky+0x197>
lea    0xd2c(%rip),%rsi
lea    0x30(%rsp),%rdi
mov    $0x9,%edx
call   1030 <strncmp@plt>
test   %eax,%eax
je     148a <ffmkky+0x2fa>
mov    %r14,0x28(%rsp)
lea    0x80(%rsp),%rbp
lea    0x30(%rsp),%rsi
mov    %rbp,%rdi
mov    $0x4a,%edx
call   1080 <strncat@plt>
lea    0xd62(%rip),%rsi
mov    %rbp,%rdi
call   1090 <strtok@plt>
test   %rax,%rax
je     14ca <ffmkky+0x33a>
mov    %rax,%r14
mov    %r15,0x8(%rsp)
xor    %r15d,%r15d
xor    %r12d,%r12d
xor    %ebp,%ebp
jmp    13aa <ffmkky+0x21a>
movl   $0xffffffff,0x4(%rsp)
ff
mov    %r14,%rdi
lea    0x4(%rsp),%rsi
call   10b0 <fftkey@plt>
test   %rax,%rax
mov    $0x1,%eax
cmovg  %eax,%r15d
xor    %edi,%edi
lea    0xd15(%rip),%rsi
call   1090 <strtok@plt>
mov    %rax,%r14
add    $0x1,%ebp
test   %rax,%rax
je     13c4 <ffmkky+0x234>
mov    %r14,%rdi
call   1040 <strlen@plt>
cmp    %r12d,%eax
jle    1370 <ffmkky+0x1e0>
mov    %r14,%rdi
call   1040 <strlen@plt>
mov    %eax,%r12d
jmp    1370 <ffmkky+0x1e0>
movl   $0xffffffff,0x4(%rsp)
ff
lea    0xc5f(%rip),%rsi
mov    0x28(%rsp),%r14
mov    %r14,%rdi
call   10a0 <strcat@plt>
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    0x20(%rsp),%rax
add    %r13,%rax
add    $0xc,%rax
cmp    $0x51,%rax
jb     14fc <ffmkky+0x36c>
lea    0xc3d(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
add    $0xb,%r13
mov    0x18(%rsp),%r12
jmp    1554 <ffmkky+0x3c4>
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
cmp    $0x7,%r13
ja     1449 <ffmkky+0x2b9>
lea    (%r14,%r13,1),%rdi
mov    $0x8,%edx
sub    %r13,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
mov    %r15,0x8(%rsp)
movw   $0x203d,0x8(%r14)
movb   $0x0,0xa(%r14)
cmpl   $0x0,(%rsp)
mov    0x18(%rsp),%r12
je     1516 <ffmkky+0x386>
mov    $0xa,%r13d
xor    %r15d,%r15d
mov    0x10(%rsp),%rax
cmpb   $0x27,(%rax)
mov    $0x0,%ebp
je     1577 <ffmkky+0x3e7>
jmp    15f4 <ffmkky+0x464>
mov    %r15,0x8(%rsp)
lea    0x30(%rsp),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    0x20(%rsp),%rax
add    %r13,%rax
add    $0x3,%rax
cmp    $0x51,%rax
jae    153c <ffmkky+0x3ac>
add    $0x3,%r13
lea    0xb89(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
jmp    154f <ffmkky+0x3bf>
movl   $0xffffffff,0x4(%rsp)
ff
lea    0x30(%rsp),%rdi
lea    0x4(%rsp),%rsi
call   10b0 <fftkey@plt>
test   %rax,%rax
jle    1520 <ffmkky+0x390>
lea    0xb5d(%rip),%rdi
call   1050 <ffpmsg@plt>
lea    0x30(%rsp),%rdi
jmp    161b <ffmkky+0x48b>
add    $0xc,%r13
lea    0xb3f(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    0x18(%rsp),%r12
jmp    1554 <ffmkky+0x3c4>
xor    %ebp,%ebp
xor    %r15d,%r15d
jmp    163c <ffmkky+0x4ac>
mov    %r15,0x8(%rsp)
lea    0x30(%rsp),%rsi
mov    0x28(%rsp),%r14
mov    %r14,%rdi
mov    $0x4a,%edx
call   1080 <strncat@plt>
lea    0xb04(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
add    $0x2,%r13
xor    %ebp,%ebp
xor    %r15d,%r15d
mov    (%rsp),%eax
test   %eax,%eax
je     1632 <ffmkky+0x4a2>
mov    0x10(%rsp),%rax
cmpb   $0x27,(%rax)
jne    15f4 <ffmkky+0x464>
cmp    $0x4e,%r13
jae    1602 <ffmkky+0x472>
mov    $0x50,%edx
sub    %r13d,%edx
mov    %r14,%rdi
mov    0x10(%rsp),%rsi
call   1080 <strncat@plt>
mov    0x20(%rsp),%rcx
add    %r13,%rcx
mov    $0x50,%ebx
cmp    $0x50,%rcx
cmovb  %rcx,%rbx
jb     15a8 <ffmkky+0x418>
movb   $0x27,0x4f(%r14)
mov    0x8(%rsp),%rax
test   %rax,%rax
je     16ca <ffmkky+0x53a>
cmpb   $0x0,(%rax)
je     168b <ffmkky+0x4fb>
cmp    $0x1d,%rbx
ja     168b <ffmkky+0x4fb>
cmp    $0x1d,%rcx
ja     15e5 <ffmkky+0x455>
lea    (%r14,%rcx,1),%rdi
mov    $0x1e,%edx
sub    %rcx,%rdx
mov    $0x20,%esi
call   1070 <memset@plt>
movb   $0x0,0x1e(%r14)
mov    $0x1e,%ebx
jmp    168b <ffmkky+0x4fb>
mov    0x20(%rsp),%rax
add    %r13,%rax
cmp    $0x51,%rax
jb     1650 <ffmkky+0x4c0>
lea    0xa57(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    %rbx,%rdi
call   1050 <ffpmsg@plt>
mov    0x10(%rsp),%rdi
call   1050 <ffpmsg@plt>
movl   $0xcf,(%r12)
mov    $0xcf,%eax
jmp    16ed <ffmkky+0x55d>
cmp    $0xa,%r13
jne    16ca <ffmkky+0x53a>
movb   $0x20,0x8(%r14)
mov    $0x46,%edx
cmpq   $0x0,0x8(%rsp)
jne    16bd <ffmkky+0x52d>
jmp    16ca <ffmkky+0x53a>
cmp    $0x1d,%rax
ja     1673 <ffmkky+0x4e3>
mov    $0x1e,%edx
sub    %eax,%edx
lea    0xa38(%rip),%rsi
mov    %r14,%rdi
call   1080 <strncat@plt>
mov    $0x1e,%ebx
jmp    1676 <ffmkky+0x4e6>
mov    %rax,%rbx
mov    $0x50,%edx
sub    %r13d,%edx
mov    %r14,%rdi
mov    0x10(%rsp),%rsi
call   1080 <strncat@plt>
cmpq   $0x0,0x8(%rsp)
je     16ca <ffmkky+0x53a>
cmp    $0x4c,%rbx
ja     16ca <ffmkky+0x53a>
mov    0x8(%rsp),%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    16ca <ffmkky+0x53a>
lea    0xa03(%rip),%rsi
mov    %r14,%rdi
call   10a0 <strcat@plt>
mov    $0x4d,%edx
sub    %ebx,%edx
mov    %r14,%rdi
mov    0x8(%rsp),%rsi
call   1080 <strncat@plt>
cmp    $0x1,%ebp
je     16d5 <ffmkky+0x545>
cmp    $0x1,%r15d
jne    16e9 <ffmkky+0x559>
lea    0x9d9(%rip),%rdi
call   1050 <ffpmsg@plt>
mov    %r14,%rdi
call   1050 <ffpmsg@plt>
mov    (%r12),%eax
add    $0xd8,%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 = [2 x i8] c" \00"
@.str.6 = [22 x i8] c"Illegal keyword name:\00"
@.str.7 = [60 x i8] c"The following keyword + value is too long to fit on a card:\00"
@.str.8 = [21 x i8] c" \00"
@.str.9 = [4 x i8] c" / \00"
@.str.10 = [75 x i8] c"Warning: the following keyword does not conform to the HIERARCH convention\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 [75 x i8]
%16 = alloca [75 x i8]
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = 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* %19
store i32 0, i32* %20
store i32 0, i32* %21
store i32 0, i32* %22
store i32 0, i32* %23
%24 = load i32*, i32** %11
%25 = load i32, i32* %24
%26 = icmp sgt i32 %25, 0
br i1 %26, label %27, label %30
27: ; preds = %5
%28 = load i32*, i32** %11
%29 = load i32, i32* %28
store i32 %29, i32* %6
br label %434
30: ; preds = %5
%31 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
store i8 0, i8* %31
%32 = getelementptr inbounds [75 x i8], [75 x i8]* %16, i64 0, i64 0
store i8 0, i8* %32
%33 = load i8*, i8** %10
store i8 0, i8* %33
br label %34
34: ; preds = %42, %30
%35 = load i8*, i8** %7
%36 = load i32, i32* %20
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds i8, i8* %35, i64 %37
%39 = load i8, i8* %38
%40 = sext i8 %39 to i32
%41 = icmp eq i32 %40, 32
br i1 %41, label %42, label %45
42: ; preds = %34
%43 = load i32, i32* %20
%44 = add nsw i32 %43, 1
store i32 %44, i32* %20
br label %34
45: ; preds = %34
%46 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%47 = load i8*, i8** %7
%48 = load i32, i32* %20
%49 = sext i32 %48 to i64
%50 = getelementptr inbounds i8, i8* %47, i64 %49
%51 = call i32 @strncat(i8* %46, i8* %50, i32 74)
%52 = load i8*, i8** %8
%53 = call i32 @strlen(i8* %52)
%54 = sext i32 %53 to i64
store i64 %54, i64* %13
%55 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%56 = call i32 @strlen(i8* %55)
%57 = sext i32 %56 to i64
store i64 %57, i64* %12
%58 = load i64, i64* %12
%59 = icmp ne i64 %58, 0
br i1 %59, label %60, label %81
60: ; preds = %45
%61 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%62 = load i64, i64* %12
%63 = getelementptr inbounds i8, i8* %61, i64 %62
%64 = getelementptr inbounds i8, i8* %63, i64 -1
store i8* %64, i8** %17
br label %65
65: ; preds = %70, %60
%66 = load i8*, i8** %17
%67 = load i8, i8* %66
%68 = sext i8 %67 to i32
%69 = icmp eq i32 %68, 32
br i1 %69, label %70, label %74
70: ; preds = %65
%71 = load i8*, i8** %17
store i8 0, i8* %71
%72 = load i8*, i8** %17
%73 = getelementptr inbounds i8, i8* %72, i32 -1
store i8* %73, i8** %17
br label %65
74: ; preds = %65
%75 = load i8*, i8** %17
%76 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%77 = ptrtoint i8* %75 to i64
%78 = ptrtoint i8* %76 to i64
%79 = sub i64 %77, %78
%80 = add nsw i64 %79, 1
store i64 %80, i64* %12
br label %81
81: ; preds = %74, %45
%82 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%83 = call i64 @strchr(i8* %82, i8 signext 61)
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %90
85: ; preds = %81
%86 = call i32 @ffpmsg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%87 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%88 = call i32 @ffpmsg(i8* %87)
%89 = load i32*, i32** %11
store i32 207, i32* %89
store i32 207, i32* %6
br label %434
90: ; preds = %81
%91 = load i64, i64* %12
%92 = icmp ule i64 %91, 8
br i1 %92, label %93, label %119
93: ; preds = %90
%94 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%95 = call i64 @fftkey(i8* %94, i32* %19)
%96 = icmp sle i64 %95, 0
br i1 %96, label %97, label %119
97: ; preds = %93
%98 = load i8*, i8** %10
%99 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%100 = call i32 @strcat(i8* %98, i8* %99)
%101 = load i64, i64* %12
store i64 %101, i64* %14
br label %102
102: ; preds = %109, %97
%103 = load i64, i64* %14
%104 = icmp ult i64 %103, 8
br i1 %104, label %105, label %112
105: ; preds = %102
%106 = load i8*, i8** %10
%107 = load i64, i64* %14
%108 = getelementptr inbounds i8, i8* %106, i64 %107
store i8 32, i8* %108
br label %109
109: ; preds = %105
%110 = load i64, i64* %14
%111 = add i64 %110, 1
store i64 %111, i64* %14
br label %102
112: ; preds = %102
%113 = load i8*, i8** %10
%114 = getelementptr inbounds i8, i8* %113, i64 8
store i8 61, i8* %114
%115 = load i8*, i8** %10
%116 = getelementptr inbounds i8, i8* %115, i64 9
store i8 32, i8* %116
%117 = load i8*, i8** %10
%118 = getelementptr inbounds i8, i8* %117, i64 10
store i8 0, i8* %118
store i64 10, i64* %12
br label %260
119: ; preds = %93, %90
%120 = getelementptr inbounds [75 x i8], [75 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 slt i32 %122, %124
br i1 %125, label %126, label %127
126: ; preds = %119
br label %140
127: ; preds = %119
%128 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%129 = load i8, i8* %128
%130 = sext i8 %129 to i32
%131 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0)
%132 = sext i8 %131 to i32
%133 = icmp sgt i32 %130, %132
br i1 %133, label %134, label %135
134: ; preds = %127
br label %138
135: ; preds = %127
%136 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%137 = call i32 @strncmp(i8* %136, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
br label %138
138: ; preds = %135, %134
%139 = phi i32 [ 1, %134 ], [ %137, %135 ]
br label %140
140: ; preds = %138, %126
%141 = phi i32 [ -1, %126 ], [ %139, %138 ]
%142 = icmp eq i32 %141, 0
br i1 %142, label %167, label %143
143: ; preds = %140
%144 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%145 = load i8, i8* %144
%146 = sext i8 %145 to i32
%147 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%148 = sext i8 %147 to i32
%149 = icmp slt i32 %146, %148
br i1 %149, label %150, label %151
150: ; preds = %143
br label %164
151: ; preds = %143
%152 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%153 = load i8, i8* %152
%154 = sext i8 %153 to i32
%155 = load i8, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0)
%156 = sext i8 %155 to i32
%157 = icmp sgt i32 %154, %156
br i1 %157, label %158, label %159
158: ; preds = %151
br label %162
159: ; preds = %151
%160 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%161 = call i32 @strncmp(i8* %160, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
br label %162
162: ; preds = %159, %158
%163 = phi i32 [ 1, %158 ], [ %161, %159 ]
br label %164
164: ; preds = %162, %150
%165 = phi i32 [ -1, %150 ], [ %163, %162 ]
%166 = icmp eq i32 %165, 0
br i1 %166, label %167, label %187
167: ; preds = %164, %140
%168 = load i8*, i8** %10
%169 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%170 = call i32 @strcat(i8* %168, i8* %169)
%171 = load i64, i64* %12
%172 = add i64 %171, 3
%173 = load i64, i64* %13
%174 = add i64 %172, %173
%175 = icmp ugt i64 %174, 80
br i1 %175, label %176, label %181
176: ; preds = %167
%177 = load i8*, i8** %10
%178 = call i32 @strcat(i8* %177, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%179 = load i64, i64* %12
%180 = add i64 %179, 2
store i64 %180, i64* %12
br label %186
181: ; preds = %167
%182 = load i8*, i8** %10
%183 = call i32 @strcat(i8* %182, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%184 = load i64, i64* %12
%185 = add i64 %184, 3
store i64 %185, i64* %12
br label %186
186: ; preds = %181, %176
br label %259
187: ; preds = %164
%188 = getelementptr inbounds [75 x i8], [75 x i8]* %16, i64 0, i64 0
%189 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%190 = call i32 @strncat(i8* %188, i8* %189, i32 74)
%191 = getelementptr inbounds [75 x i8], [75 x i8]* %16, i64 0, i64 0
%192 = call i8* @strtok(i8* %191, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %192, i8** %17
br label %193
193: ; preds = %209, %187
%194 = load i8*, i8** %17
%195 = icmp ne i8* %194, null
br i1 %195, label %196, label %213
196: ; preds = %193
%197 = load i8*, i8** %17
%198 = call i32 @strlen(i8* %197)
%199 = load i32, i32* %22
%200 = icmp sgt i32 %198, %199
br i1 %200, label %201, label %204
201: ; preds = %196
%202 = load i8*, i8** %17
%203 = call i32 @strlen(i8* %202)
store i32 %203, i32* %22
br label %204
204: ; preds = %201, %196
store i32 -1, i32* %19
%205 = load i8*, i8** %17
%206 = call i64 @fftkey(i8* %205, i32* %19)
%207 = icmp sgt i64 %206, 0
br i1 %207, label %208, label %209
208: ; preds = %204
store i32 1, i32* %23
br label %209
209: ; preds = %208, %204
%210 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
store i8* %210, i8** %17
%211 = load i32, i32* %21
%212 = add nsw i32 %211, 1
store i32 %212, i32* %21
br label %193
213: ; preds = %193
store i32 -1, i32* %19
%214 = load i32, i32* %21
%215 = icmp sgt i32 %214, 0
br i1 %215, label %216, label %240
216: ; preds = %213
%217 = load i8*, i8** %10
%218 = call i32 @strcat(i8* %217, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%219 = load i8*, i8** %10
%220 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%221 = call i32 @strcat(i8* %219, i8* %220)
%222 = load i64, i64* %12
%223 = add i64 %222, 9
store i64 %223, i64* %12
%224 = load i64, i64* %12
%225 = add i64 %224, 3
%226 = load i64, i64* %13
%227 = add i64 %225, %226
%228 = icmp ugt i64 %227, 80
br i1 %228, label %229, label %234
229: ; preds = %216
%230 = load i8*, i8** %10
%231 = call i32 @strcat(i8* %230, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%232 = load i64, i64* %12
%233 = add i64 %232, 2
store i64 %233, i64* %12
br label %239
234: ; preds = %216
%235 = load i8*, i8** %10
%236 = call i32 @strcat(i8* %235, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
%237 = load i64, i64* %12
%238 = add i64 %237, 3
store i64 %238, i64* %12
br label %239
239: ; preds = %234, %229
br label %258
240: ; preds = %213
%241 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%242 = call i64 @fftkey(i8* %241, i32* %19)
%243 = icmp sle i64 %242, 0
br i1 %243, label %244, label %252
244: ; preds = %240
%245 = load i8*, i8** %10
%246 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%247 = call i32 @strncat(i8* %245, i8* %246, i32 74)
%248 = load i8*, i8** %10
%249 = call i32 @strcat(i8* %248, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%250 = load i64, i64* %12
%251 = add i64 %250, 2
store i64 %251, i64* %12
br label %257
252: ; preds = %240
%253 = call i32 @ffpmsg(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%254 = getelementptr inbounds [75 x i8], [75 x i8]* %15, i64 0, i64 0
%255 = call i32 @ffpmsg(i8* %254)
%256 = load i32*, i32** %11
store i32 207, i32* %256
store i32 207, i32* %6
br label %434
257: ; preds = %244
br label %258
258: ; preds = %257, %239
br label %259
259: ; preds = %258, %186
br label %260
260: ; preds = %259, %112
%261 = load i64, i64* %13
%262 = icmp ugt i64 %261, 0
br i1 %262, label %263, label %404
263: ; preds = %260
%264 = load i8*, i8** %8
%265 = getelementptr inbounds i8, i8* %264, i64 0
%266 = load i8, i8* %265
%267 = sext i8 %266 to i32
%268 = icmp eq i32 %267, 39
br i1 %268, label %269, label %332
269: ; preds = %263
%270 = load i64, i64* %12
%271 = icmp ugt i64 %270, 77
br i1 %271, label %272, label %279
272: ; preds = %269
%273 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%274 = load i8*, i8** %7
%275 = call i32 @ffpmsg(i8* %274)
%276 = load i8*, i8** %8
%277 = call i32 @ffpmsg(i8* %276)
%278 = load i32*, i32** %11
store i32 207, i32* %278
store i32 207, i32* %6
br label %434
279: ; preds = %269
%280 = load i8*, i8** %10
%281 = load i8*, i8** %8
%282 = load i64, i64* %12
%283 = sub i64 80, %282
%284 = trunc i64 %283 to i32
%285 = call i32 @strncat(i8* %280, i8* %281, i32 %284)
%286 = load i64, i64* %12
%287 = load i64, i64* %13
%288 = add i64 %286, %287
%289 = icmp ult i64 80, %288
br i1 %289, label %290, label %291
290: ; preds = %279
br label %295
291: ; preds = %279
%292 = load i64, i64* %12
%293 = load i64, i64* %13
%294 = add i64 %292, %293
br label %295
295: ; preds = %291, %290
%296 = phi i64 [ 80, %290 ], [ %294, %291 ]
store i64 %296, i64* %13
%297 = load i64, i64* %13
%298 = icmp eq i64 %297, 80
br i1 %298, label %299, label %302
299: ; preds = %295
%300 = load i8*, i8** %10
%301 = getelementptr inbounds i8, i8* %300, i64 79
store i8 39, i8* %301
br label %302
302: ; preds = %299, %295
%303 = load i8*, i8** %9
%304 = icmp ne i8* %303, null
br i1 %304, label %305, label %331
305: ; preds = %302
%306 = load i8*, i8** %9
%307 = getelementptr inbounds i8, i8* %306, i64 0
%308 = load i8, i8* %307
%309 = sext i8 %308 to i32
%310 = icmp ne i32 %309, 0
br i1 %310, label %311, label %330
311: ; preds = %305
%312 = load i64, i64* %13
%313 = icmp ult i64 %312, 30
br i1 %313, label %314, label %329
314: ; preds = %311
%315 = load i64, i64* %13
store i64 %315, i64* %14
br label %316
316: ; preds = %323, %314
%317 = load i64, i64* %14
%318 = icmp ult i64 %317, 30
br i1 %318, label %319, label %326
319: ; preds = %316
%320 = load i8*, i8** %10
%321 = load i64, i64* %14
%322 = getelementptr inbounds i8, i8* %320, i64 %321
store i8 32, i8* %322
br label %323
323: ; preds = %319
%324 = load i64, i64* %14
%325 = add i64 %324, 1
store i64 %325, i64* %14
br label %316
326: ; preds = %316
%327 = load i8*, i8** %10
%328 = getelementptr inbounds i8, i8* %327, i64 30
store i8 0, i8* %328
store i64 30, i64* %13
br label %329
329: ; preds = %326, %311
br label %330
330: ; preds = %329, %305
br label %331
331: ; preds = %330, %302
br label %383
332: ; preds = %263
%333 = load i64, i64* %12
%334 = load i64, i64* %13
%335 = add i64 %333, %334
%336 = icmp ugt i64 %335, 80
br i1 %336, label %337, label %344
337: ; preds = %332
%338 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%339 = load i8*, i8** %7
%340 = call i32 @ffpmsg(i8* %339)
%341 = load i8*, i8** %8
%342 = call i32 @ffpmsg(i8* %341)
%343 = load i32*, i32** %11
store i32 207, i32* %343
store i32 207, i32* %6
br label %434
344: ; preds = %332
%345 = load i64, i64* %12
%346 = load i64, i64* %13
%347 = add i64 %345, %346
%348 = icmp ult i64 %347, 30
br i1 %348, label %349, label %357
349: ; preds = %344
%350 = load i8*, i8** %10
%351 = load i64, i64* %12
%352 = load i64, i64* %13
%353 = add i64 %351, %352
%354 = sub i64 30, %353
%355 = trunc i64 %354 to i32
%356 = call i32 @strncat(i8* %350, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %355)
br label %357
357: ; preds = %349, %344
br label %358
358: ; preds = %357
%359 = load i8*, i8** %10
%360 = load i8*, i8** %8
%361 = load i64, i64* %12
%362 = sub i64 80, %361
%363 = trunc i64 %362 to i32
%364 = call i32 @strncat(i8* %359, i8* %360, i32 %363)
%365 = load i64, i64* %12
%366 = load i64, i64* %13
%367 = add i64 %365, %366
%368 = icmp ult i64 80, %367
br i1 %368, label %369, label %370
369: ; preds = %358
br label %374
370: ; preds = %358
%371 = load i64, i64* %12
%372 = load i64, i64* %13
%373 = add i64 %371, %372
br label %374
374: ; preds = %370, %369
%375 = phi i64 [ 80, %369 ], [ %373, %370 ]
store i64 %375, i64* %13
%376 = load i64, i64* %13
%377 = icmp ugt i64 30, %376
br i1 %377, label %378, label %379
378: ; preds = %374
br label %381
379: ; preds = %374
%380 = load i64, i64* %13
br label %381
381: ; preds = %379, %378
%382 = phi i64 [ 30, %378 ], [ %380, %379 ]
store i64 %382, i64* %13
br label %383
383: ; preds = %381, %331
%384 = load i8*, i8** %9
%385 = icmp ne i8* %384, null
br i1 %385, label %386, label %403
386: ; preds = %383
%387 = load i64, i64* %13
%388 = icmp ult i64 %387, 77
br i1 %388, label %389, label %402
389: ; preds = %386
%390 = load i8*, i8** %9
%391 = call i32 @strlen(i8* %390)
%392 = icmp sgt i32 %391, 0
br i1 %392, label %393, label %402
393: ; preds = %389
%394 = load i8*, i8** %10
%395 = call i32 @strcat(i8* %394, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%396 = load i8*, i8** %10
%397 = load i8*, i8** %9
%398 = load i64, i64* %13
%399 = sub i64 77, %398
%400 = trunc i64 %399 to i32
%401 = call i32 @strncat(i8* %396, i8* %397, i32 %400)
br label %402
402: ; preds = %393, %389, %386
br label %403
403: ; preds = %402, %383
br label %421
404: ; preds = %260
%405 = load i64, i64* %12
%406 = icmp eq i64 %405, 10
br i1 %406, label %407, label %420
407: ; preds = %404
%408 = load i8*, i8** %10
%409 = getelementptr inbounds i8, i8* %408, i64 8
store i8 32, i8* %409
%410 = load i8*, i8** %9
%411 = icmp ne i8* %410, null
br i1 %411, label %412, label %419
412: ; preds = %407
%413 = load i8*, i8** %10
%414 = load i8*, i8** %9
%415 = load i64, i64* %12
%416 = sub i64 80, %415
%417 = trunc i64 %416 to i32
%418 = call i32 @strncat(i8* %413, i8* %414, i32 %417)
br label %419
419: ; preds = %412, %407
br label %420
420: ; preds = %419, %404
br label %421
421: ; preds = %420, %403
%422 = load i32, i32* %21
%423 = icmp eq i32 %422, 1
br i1 %423, label %427, label %424
424: ; preds = %421
%425 = load i32, i32* %23
%426 = icmp eq i32 %425, 1
br i1 %426, label %427, label %431
427: ; preds = %424, %421
%428 = call i32 @ffpmsg(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.10, i64 0, i64 0))
%429 = load i8*, i8** %10
%430 = call i32 @ffpmsg(i8* %429)
br label %431
431: ; preds = %427, %424
%432 = load i32*, i32** %11
%433 = load i32, i32* %432
store i32 %433, i32* %6
br label %434
434: ; preds = %431, %337, %272, %252, %85, %27
%435 = load i32, i32* %6
ret i32 %435
}

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 = [2 x i8] c" \00"
@.str.6 = [22 x i8] c"Illegal keyword name:\00"
@.str.7 = [60 x i8] c"The following keyword + value is too long to fit on a card:\00"
@.str.8 = [21 x i8] c" \00"
@.str.9 = [4 x i8] c" / \00"
@.str.10 = [75 x i8] c"Warning: the following keyword does not conform to the HIERARCH convention\00"
define i32 @ffmkky(i8* %0, i8* %1, i8* %2, i8* %3, i32* nocapture %4) {
%6 = alloca [75 x i8]
%7 = alloca [75 x i8]
%8 = alloca i32
%9 = getelementptr inbounds [75 x i8], [75 x i8]* %6, i64 0, i64 0
%10 = getelementptr inbounds [75 x i8], [75 x i8]* %7, i64 0, i64 0
%11 = bitcast i32* %8 to i8*
store i32 -1, i32* %8
%12 = load i32, i32* %4
%13 = icmp sgt i32 %12, 0
br i1 %13, label %240, label %14
14: ; preds = %5
store i8 0, i8* %9
store i8 0, i8* %10
store i8 0, i8* %3
br label %15
15: ; preds = %15, %14
%16 = phi i64 [ %20, %15 ], [ 0, %14 ]
%17 = getelementptr inbounds i8, i8* %0, i64 %16
%18 = load i8, i8* %17
%19 = icmp eq i8 %18, 32
%20 = add nuw i64 %16, 1
br i1 %19, label %15, label %21
21: ; preds = %15
%22 = and i64 %16, 4294967295
%23 = getelementptr inbounds i8, i8* %0, i64 %22
%24 = call i32 @strncat(i8* %9, i8* %23, i32 74)
%25 = call i32 @strlen(i8* %1)
%26 = sext i32 %25 to i64
%27 = call i32 @strlen(i8* %9)
%28 = icmp eq i32 %27, 0
br i1 %28, label %48, label %29
29: ; preds = %21
%30 = sext i32 %27 to i64
%31 = getelementptr inbounds [75 x i8], [75 x i8]* %6, i64 0, i64 %30
%32 = getelementptr inbounds i8, i8* %31, i64 -1
%33 = load i8, i8* %32
%34 = icmp eq i8 %33, 32
br i1 %34, label %35, label %40
35: ; preds = %29, %35
%36 = phi i8* [ %37, %35 ], [ %32, %29 ]
store i8 0, i8* %36
%37 = getelementptr inbounds i8, i8* %36, i64 -1
%38 = load i8, i8* %37
%39 = icmp eq i8 %38, 32
br i1 %39, label %35, label %40
40: ; preds = %35, %29
%41 = phi i8* [ %32, %29 ], [ %37, %35 ]
%42 = ptrtoint i8* %41 to i64
%43 = ptrtoint [75 x i8]* %6 to i64
%44 = sub i64 %42, %43
%45 = add nsw i64 %44, 1
%46 = call i64 @strchr(i8* %9, i8 signext 61)
%47 = icmp eq i64 %46, 0
br i1 %47, label %54, label %51
48: ; preds = %21
%49 = call i64 @strchr(i8* %9, i8 signext 61)
%50 = icmp eq i64 %49, 0
br i1 %50, label %56, label %51
51: ; preds = %48, %40
%52 = call i32 @ffpmsg(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0))
%53 = call i32 @ffpmsg(i8* %9)
store i32 207, i32* %4
br label %240
54: ; preds = %40
%55 = icmp ult i64 %45, 9
br i1 %55, label %56, label %66
56: ; preds = %48, %54
%57 = phi i64 [ %45, %54 ], [ 0, %48 ]
%58 = call i64 @fftkey(i8* %9, i32* %8)
%59 = icmp slt i64 %58, 1
br i1 %59, label %60, label %66
60: ; preds = %56
%61 = call i32 @strcat(i8* %3, i8* %9)
%62 = icmp ult i64 %57, 8
br i1 %62, label %63, label %138
63: ; preds = %60
%64 = getelementptr i8, i8* %3, i64 %57
%65 = sub nuw nsw i64 8, %57
br label %138
66: ; preds = %56, %54
%67 = phi i64 [ %57, %56 ], [ %45, %54 ]
%68 = load i8, i8* %9
%69 = icmp eq i8 %68, 72
br i1 %69, label %70, label %75
70: ; preds = %66
%71 = call i32 @strncmp(i8* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i32 9)
%72 = icmp eq i32 %71, 0
br i1 %72, label %81, label %73
73: ; preds = %70
%74 = load i8, i8* %9
br label %75
75: ; preds = %66, %73
%76 = phi i8 [ %74, %73 ], [ %68, %66 ]
%77 = icmp eq i8 %76, 104
br i1 %77, label %78, label %91
78: ; preds = %75
%79 = call i32 @strncmp(i8* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i32 9)
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %91
81: ; preds = %78, %70
%82 = call i32 @strcat(i8* %3, i8* %9)
%83 = add i64 %67, 3
%84 = add i64 %83, %26
%85 = icmp ugt i64 %84, 80
br i1 %85, label %86, label %89
86: ; preds = %81
%87 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%88 = add i64 %67, 2
br label %133
89: ; preds = %81
%90 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %133
91: ; preds = %75, %78
%92 = call i32 @strncat(i8* %10, i8* %9, i32 74)
%93 = call i8* @strtok(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%94 = icmp eq i8* %93, null
br i1 %94, label %123, label %95
95: ; preds = %91, %104
%96 = phi i32 [ %108, %104 ], [ 0, %91 ]
%97 = phi i32 [ %105, %104 ], [ 0, %91 ]
%98 = phi i32 [ %110, %104 ], [ 0, %91 ]
%99 = phi i8* [ %109, %104 ], [ %93, %91 ]
%100 = call i32 @strlen(i8* %99)
%101 = icmp sgt i32 %100, %97
br i1 %101, label %102, label %104
102: ; preds = %95
%103 = call i32 @strlen(i8* %99)
br label %104
104: ; preds = %102, %95
%105 = phi i32 [ %103, %102 ], [ %97, %95 ]
store i32 -1, i32* %8
%106 = call i64 @fftkey(i8* %99, i32* %8)
%107 = icmp sgt i64 %106, 0
%108 = select i1 %107, i32 1, i32 %96
%109 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%110 = add nuw nsw i32 %98, 1
%111 = icmp eq i8* %109, null
br i1 %111, label %112, label %95
112: ; preds = %104
store i32 -1, i32* %8
%113 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%114 = call i32 @strcat(i8* %3, i8* %9)
%115 = add i64 %67, 12
%116 = add i64 %115, %26
%117 = icmp ugt i64 %116, 80
br i1 %117, label %118, label %121
118: ; preds = %112
%119 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%120 = add i64 %67, 11
br label %133
121: ; preds = %112
%122 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0))
br label %133
123: ; preds = %91
store i32 -1, i32* %8
%124 = call i64 @fftkey(i8* %9, i32* %8)
%125 = icmp slt i64 %124, 1
br i1 %125, label %126, label %130
126: ; preds = %123
%127 = call i32 @strncat(i8* %3, i8* %9, i32 74)
%128 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%129 = add i64 %67, 2
br label %133
130: ; preds = %123
%131 = call i32 @ffpmsg(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0))
%132 = call i32 @ffpmsg(i8* %9)
store i32 207, i32* %4
br label %240
133: ; preds = %89, %86, %118, %121, %126
%134 = phi i64 [ %88, %86 ], [ %83, %89 ], [ %120, %118 ], [ %115, %121 ], [ %129, %126 ]
%135 = phi i32 [ 0, %86 ], [ 0, %89 ], [ %110, %118 ], [ %110, %121 ], [ 0, %126 ]
%136 = phi i32 [ 0, %86 ], [ 0, %89 ], [ %108, %118 ], [ %108, %121 ], [ 0, %126 ]
%137 = icmp eq i32 %25, 0
br i1 %137, label %217, label %143
138: ; preds = %63, %60
%139 = getelementptr inbounds i8, i8* %3, i64 8
store i8 61, i8* %139
%140 = getelementptr inbounds i8, i8* %3, i64 9
store i8 32, i8* %140
%141 = getelementptr inbounds i8, i8* %3, i64 10
store i8 0, i8* %141
%142 = icmp eq i32 %25, 0
br i1 %142, label %219, label %146
143: ; preds = %133
%144 = load i8, i8* %1
%145 = icmp eq i8 %144, 39
br i1 %145, label %149, label %182
146: ; preds = %138
%147 = load i8, i8* %1
%148 = icmp eq i8 %147, 39
br i1 %148, label %155, label %182
149: ; preds = %143
%150 = icmp ugt i64 %134, 77
br i1 %150, label %151, label %155
151: ; preds = %149
%152 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%153 = call i32 @ffpmsg(i8* %0)
%154 = call i32 @ffpmsg(i8* %1)
store i32 207, i32* %4
br label %240
155: ; preds = %146, %149
%156 = phi i32 [ %136, %149 ], [ 0, %146 ]
%157 = phi i32 [ %135, %149 ], [ 0, %146 ]
%158 = phi i64 [ %134, %149 ], [ 10, %146 ]
%159 = trunc i64 %158 to i32
%160 = sub nuw nsw i32 80, %159
%161 = call i32 @strncat(i8* %3, i8* %1, i32 %160)
%162 = add i64 %158, %26
%163 = icmp ult i64 %162, 80
%164 = select i1 %163, i64 %162, i64 80
%165 = icmp ugt i64 %162, 79
br i1 %165, label %166, label %168
166: ; preds = %155
%167 = getelementptr inbounds i8, i8* %3, i64 79
store i8 39, i8* %167
br label %168
168: ; preds = %166, %155
%169 = icmp eq i8* %2, null
br i1 %169, label %229, label %170
170: ; preds = %168
%171 = load i8, i8* %2
%172 = icmp ne i8 %171, 0
%173 = icmp ult i64 %164, 30
%174 = select i1 %172, i1 %173, i1 false
br i1 %174, label %175, label %203
175: ; preds = %170
%176 = icmp ult i64 %162, 30
br i1 %176, label %177, label %180
177: ; preds = %175
%178 = getelementptr i8, i8* %3, i64 %162
%179 = sub nuw nsw i64 30, %162
br label %180
180: ; preds = %177, %175
%181 = getelementptr inbounds i8, i8* %3, i64 30
store i8 0, i8* %181
br label %203
182: ; preds = %146, %143
%183 = phi i64 [ 10, %146 ], [ %134, %143 ]
%184 = phi i32 [ 0, %146 ], [ %135, %143 ]
%185 = phi i32 [ 0, %146 ], [ %136, %143 ]
%186 = add i64 %183, %26
%187 = icmp ugt i64 %186, 80
br i1 %187, label %188, label %192
188: ; preds = %182
%189 = call i32 @ffpmsg(i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.7, i64 0, i64 0))
%190 = call i32 @ffpmsg(i8* %0)
%191 = call i32 @ffpmsg(i8* %1)
store i32 207, i32* %4
br label %240
192: ; preds = %182
%193 = icmp ult i64 %186, 30
br i1 %193, label %194, label %198
194: ; preds = %192
%195 = trunc i64 %186 to i32
%196 = sub nuw nsw i32 30, %195
%197 = call i32 @strncat(i8* %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 %196)
br label %198
198: ; preds = %192, %194
%199 = phi i64 [ %186, %192 ], [ 30, %194 ]
%200 = trunc i64 %183 to i32
%201 = sub i32 80, %200
%202 = call i32 @strncat(i8* %3, i8* %1, i32 %201)
br label %203
203: ; preds = %180, %170, %198
%204 = phi i32 [ %157, %180 ], [ %157, %170 ], [ %184, %198 ]
%205 = phi i32 [ %156, %180 ], [ %156, %170 ], [ %185, %198 ]
%206 = phi i64 [ 30, %180 ], [ %164, %170 ], [ %199, %198 ]
%207 = icmp ne i8* %2, null
%208 = icmp ult i64 %206, 77
%209 = select i1 %207, i1 %208, i1 false
br i1 %209, label %210, label %229
210: ; preds = %203
%211 = call i32 @strlen(i8* %2)
%212 = icmp sgt i32 %211, 0
br i1 %212, label %213, label %229
213: ; preds = %210
%214 = call i32 @strcat(i8* %3, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0))
%215 = trunc i64 %206 to i32
%216 = sub nuw nsw i32 77, %215
br label %224
217: ; preds = %133
%218 = icmp eq i64 %134, 10
br i1 %218, label %219, label %229
219: ; preds = %138, %217
%220 = phi i32 [ %135, %217 ], [ 0, %138 ]
%221 = phi i32 [ %136, %217 ], [ 0, %138 ]
%222 = getelementptr inbounds i8, i8* %3, i64 8
store i8 32, i8* %222
%223 = icmp eq i8* %2, null
br i1 %223, label %229, label %224
224: ; preds = %219, %213
%225 = phi i32 [ %216, %213 ], [ 70, %219 ]
%226 = phi i32 [ %205, %213 ], [ %221, %219 ]
%227 = phi i32 [ %204, %213 ], [ %220, %219 ]
%228 = call i32 @strncat(i8* %3, i8* %2, i32 %225)
br label %229
229: ; preds = %224, %168, %217, %219, %203, %210
%230 = phi i32 [ %136, %217 ], [ %221, %219 ], [ %205, %203 ], [ %205, %210 ], [ %156, %168 ], [ %226, %224 ]
%231 = phi i32 [ %135, %217 ], [ %220, %219 ], [ %204, %203 ], [ %204, %210 ], [ %157, %168 ], [ %227, %224 ]
%232 = icmp eq i32 %231, 1
%233 = icmp eq i32 %230, 1
%234 = select i1 %232, i1 true, i1 %233
br i1 %234, label %235, label %238
235: ; preds = %229
%236 = call i32 @ffpmsg(i8* getelementptr inbounds ([75 x i8], [75 x i8]* @.str.10, i64 0, i64 0))
%237 = call i32 @ffpmsg(i8* %3)
br label %238
238: ; preds = %229, %235
%239 = load i32, i32* %4
br label %240
240: ; preds = %5, %238, %188, %151, %130, %51
%241 = phi i32 [ 207, %51 ], [ 207, %151 ], [ %239, %238 ], [ 207, %188 ], [ 207, %130 ], [ %12, %5 ]
ret i32 %241
}