user: 请从给定的汇编指令推导出C源代码：

```asm
<ffmkky>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x78,%rsp
  mov    %rdx,(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  movl   $0xffffffff,0x1c(%rsp)
  mov    (%r8),%eax
  test   %eax,%eax
  jg     L401
  mov    %rdi,%r13
  mov    %rsi,%r14
  mov    %rcx,%rbp
  mov    %r8,%r12
  movb   $0x0,0x20(%rsp)
  movb   $0x0,(%rcx)
  cmpb   $0x20,(%rdi)
  jne    L312
  lea    0x1(%rdi),%rax
L182:
  mov    %rax,%rsi
  add    $0x1,%rax
  cmpb   $0x20,-0x1(%rax)
  je     L182
L157:
  lea    0x20(%rsp),%rbx
  mov    $0x47,%edx
  mov    %rbx,%rdi
  call   <strncat@plt>
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %rax,%r15
  mov    %rbx,%rdi
  call   <strlen@plt>
  mov    %rax,%rbx
  test   %rax,%rax
  je     L494
  lea    0x1f(%rsp,%rax,1),%rax
  cmpb   $0x20,(%rax)
  jne    L139
L464:
  movb   $0x0,(%rax)
  sub    $0x1,%rax
  cmpb   $0x20,(%rax)
  je     L464
L139:
  lea    0x70(%rsp),%rcx
  sub    %rcx,%rax
  lea    0x51(%rax),%rbx
  cmp    $0x8,%rbx
  jbe    L383
L38:
  lea    0x20(%rsp),%rdi
  mov    $0x3d,%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L316
  cmpb   $0x48,0x20(%rsp)
  je     L458
L134:
  cmpb   $0x68,0x20(%rsp)
  je     L270
L85:
  lea    D63(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
L309:
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  lea    0xc(%rbx,%r15,1),%rax
  cmp    $0x50,%rax
  jbe    L424
  lea    D58(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0xb,%rbx
L155:
  test   %r15,%r15
  je     L44
  cmpb   $0x27,(%r14)
  je     L13
L189:
  lea    (%rbx,%r15,1),%rax
  mov    %rax,0x8(%rsp)
  cmp    $0x50,%rax
  ja     L31
  cmpq   $0x1d,0x8(%rsp)
  jbe    L96
L244:
  mov    $0x50,%edx
  sub    %ebx,%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strncat@plt>
  mov    $0x50,%eax
  mov    0x8(%rsp),%rcx
  cmp    %rax,%rcx
  mov    %rcx,%r13
  cmova  %rax,%r13
  mov    $0x1e,%eax
  cmp    %rax,%r13
  cmovb  %rax,%r13
L329:
  cmp    $0x4c,%r13
  ja     L339
  cmpq   $0x0,(%rsp)
  je     L339
L140:
  mov    (%rsp),%rax
  cmpb   $0x0,(%rax)
  je     L339
  lea    D94(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    $0x4d,%edx
  sub    %r13d,%edx
  mov    (%rsp),%rsi
  mov    %rbp,%rdi
  call   <strncat@plt>
  jmp    L339
L312:
  mov    %rdi,%rsi
  jmp    L157
L383:
  lea    0x1c(%rsp),%rsi
  mov    %r13,%rdi
  call   <fftkey@plt>
  test   %rax,%rax
  jg     L38
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  cmp    $0x7,%rbx
  ja     L269
  jmp    L67
L316:
  lea    D26(%rip),%rdi
  call   <ffpmsg@plt>
  lea    0x20(%rsp),%rdi
  call   <ffpmsg@plt>
  movl   $0xcf,(%r12)
  mov    $0xcf,%eax
  jmp    L401
L458:
  lea    0x20(%rsp),%rdi
  mov    $0x9,%edx
  lea    D63(%rip),%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L379
  jmp    L134
L270:
  lea    0x20(%rsp),%rdi
  mov    $0x9,%edx
  lea    D37(%rip),%rsi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L85
L379:
  sub    $0x9,%rbx
  jmp    L309
L424:
  lea    D23(%rip),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
  add    $0xc,%rbx
  jmp    L155
L13:
  cmp    $0x4d,%rbx
  ja     L334
L493:
  mov    $0x50,%edx
  sub    %ebx,%edx
  mov    %r14,%rsi
  mov    %rbp,%rdi
  call   <strncat@plt>
  add    %r15,%rbx
  mov    $0x50,%r13d
  cmp    %r13,%rbx
  cmovbe %rbx,%r13
  cmp    $0x4f,%rbx
  jbe    L88
  movb   $0x27,0x4f(%rbp)
  cmpq   $0x0,(%rsp)
  jne    L329
  jmp    L339
L334:
  lea    D66(%rip),%rdi
  call   <ffpmsg@plt>
  mov    %r13,%rdi
  call   <ffpmsg@plt>
  mov    %r14,%rdi
  call   <ffpmsg@plt>
  movl   $0xcf,(%r12)
  mov    $0xcf,%eax
  jmp    L401
L88:
  mov    (%rsp),%rax
  test   %rax,%rax
  je     L339
  cmpb   $0x0,(%rax)
  je     L329
  cmp    $0x1d,%rbx
  ja     L329
L381:
  movb   $0x20,0x0(%rbp,%r13,1)
  add    $0x1,%r13
  cmp    $0x1d,%r13
  jbe    L381
  movb   $0x0,0x1e(%rbp)
  mov    $0x1e,%r13d
  jmp    L140
L31:
  lea    D66(%rip),%rdi
  call   <ffpmsg@plt>
  mov    %r13,%rdi
  call   <ffpmsg@plt>
  mov    %r14,%rdi
  call   <ffpmsg@plt>
  movl   $0xcf,(%r12)
  mov    $0xcf,%eax
  jmp    L401
L96:
  mov    $0x1e,%edx
  sub    %r15d,%edx
  sub    %ebx,%edx
  lea    D70(%rip),%rsi
  mov    %rbp,%rdi
  call   <strncat@plt>
  jmp    L244
L44:
  cmp    $0xa,%rbx
  je     L398
L339:
  mov    (%r12),%eax
L401:
  mov    0x68(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L94
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L480:
  mov    $0xa,%ebx
  cmpb   $0x27,(%r14)
  jne    L189
  mov    $0xa,%ebx
  jmp    L493
L494:
  lea    0x1c(%rsp),%rsi
  mov    %r13,%rdi
  call   <fftkey@plt>
  test   %rax,%rax
  jg     L38
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <strcat@plt>
L67:
  add    %rbp,%rbx
  lea    0x8(%rbp),%rax
L436:
  movb   $0x20,(%rbx)
  add    $0x1,%rbx
  cmp    %rax,%rbx
  jne    L436
L269:
  movb   $0x3d,0x8(%rbp)
  movb   $0x20,0x9(%rbp)
  movb   $0x0,0xa(%rbp)
  test   %r15,%r15
  jne    L480
L398:
  movb   $0x20,0x8(%rbp)
  mov    (%rsp),%rax
  test   %rax,%rax
  je     L339
  mov    $0x46,%edx
  mov    %rax,%rsi
  mov    %rbp,%rdi
  call   <strncat@plt>
  jmp    L339
L94:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D63
type_guessed: string
name: disassemble_data
arguments: tag: D58
type_guessed: string
name: disassemble_data
arguments: tag: D94
type_guessed: string
name: disassemble_data
arguments: tag: D26
type_guessed: string
name: disassemble_data
arguments: tag: D37
type_guessed: string
name: disassemble_data
arguments: tag: D23
type_guessed: string
name: disassemble_data
arguments: tag: D66
type_guessed: string
name: disassemble_data
arguments: tag: D70
type_guessed: string

tool: D63: HIERARCH 

tool: D58: = 

tool: D94:  / 

tool: D26: Illegal keyword name; contains an equals sign (=)

tool: D37: hierarch 

tool: D23:  = 

tool: D66: The following keyword + value is too long to fit on a card:

tool: D70:                     

assistant: ```c
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);
}
```