user: 请将以下的汇编代码转换成C语言代码:

```asm
<fftrec>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x68,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  xor    %eax,%eax
  mov    (%rsi),%r13d
  test   %r13d,%r13d
  jg     L72
  mov    %rdi,%rbx
  mov    %rsi,%r12
  call   <strlen@plt>
  cmp    $0x8,%rax
  jbe    L72
  mov    $0x8,%ecx
L123:
  lea    (%rbx,%rcx,1),%rbp
  movzbl (%rbx,%rcx,1),%r8d
  lea    -0x20(%r8),%edx
  cmp    $0x5e,%dl
  ja     L53
  add    $0x1,%rcx
  cmp    %rcx,%rax
  jne    L123
  jmp    L72
L53:
  add    $0x1,%ecx
  mov    %rsp,%rdi
  movsbl %r8b,%r8d
  lea    D59(%rip),%rdx
  mov    $0x51,%esi
  call   <snprintf@plt>
  movzbl 0x0(%rbp),%eax
  test   %al,%al
  je     L164
  cmp    $0x1b,%al
  jg     L2
  cmp    $0x8,%al
  jle    L30
  sub    $0x9,%eax
  cmp    $0x12,%al
  ja     L30
  movzbl %al,%eax
  lea    D41(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
L164:
  mov    %rsp,%rdi
  lea    D35(%rip),%rsi
  call   <strcat@plt>
L30:
  mov    %rsp,%rbp
  mov    %rbp,%rdi
  call   <ffpmsg@plt>
  mov    $0x50,%edx
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  call   <strncpy@plt>
  movb   $0x0,0x50(%rsp)
  mov    %rbp,%rdi
  call   <ffpmsg@plt>
  movl   $0xcf,(%r12)
  mov    $0xcf,%r13d
L72:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L121
  mov    %r13d,%eax
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L2:
  cmp    $0x7f,%al
  jne    L30
  mov    %rsp,%rdi
  lea    D83(%rip),%rsi
  call   <strcat@plt>
  jmp    L30
  mov    %rsp,%rdi
  lea    D51(%rip),%rsi
  call   <strcat@plt>
  jmp    L30
  mov    %rsp,%rdi
  lea    D50(%rip),%rsi
  call   <strcat@plt>
  jmp    L30
  mov    %rsp,%rdi
  lea    D3(%rip),%rsi
  call   <strcat@plt>
  jmp    L30
  mov    %rsp,%rdi
  lea    D71(%rip),%rsi
  call   <strcat@plt>
  jmp    L30
  mov    %rsp,%rdi
  lea    D36(%rip),%rsi
  call   <strcat@plt>
  jmp    L30
  mov    %rsp,%rdi
  lea    D55(%rip),%rsi
  call   <strcat@plt>
  jmp    L30
L121:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D59
datatype: string
name: read_data
arguments: label: D35
datatype: string
name: read_data
arguments: label: D83
datatype: string
name: read_data
arguments: label: D51
datatype: string
name: read_data
arguments: label: D50
datatype: string
name: read_data
arguments: label: D3
datatype: string
name: read_data
arguments: label: D71
datatype: string
name: read_data
arguments: label: D36
datatype: string
name: read_data
arguments: label: D55
datatype: string

tool: D59: Character %d in this keyword is illegal. Hex Value = %X

tool: D35:  (NULL char.)

tool: D83:  (Delete char.)

tool: D51:  (TAB char.)

tool: D50:  (Line Feed char.)

tool: D3:  (Vertical Tab)

tool: D71:  (Form Feed char.)

tool: D36:  (Carriage Return)

tool: D55:  (Escape char.)

assistant: ```c
int fftrec(char *card, int *status) {
  size_t ii, maxchr;
  char msg[81];
  if (*status > 0)
    return (*status);
  maxchr = strlen(card);
  for (ii = 8; ii < maxchr; ii++) {
    if (card[ii] < 32 || card[ii] > 126) {
      snprintf(msg, 81, "Character %d in this keyword is illegal. Hex Value = %X", (int)(ii + 1), (int)card[ii]);
      if (card[ii] == 0)
        strcat(msg, " (NULL char.)");
      else if (card[ii] == 9)
        strcat(msg, " (TAB char.)");
      else if (card[ii] == 10)
        strcat(msg, " (Line Feed char.)");
      else if (card[ii] == 11)
        strcat(msg, " (Vertical Tab)");
      else if (card[ii] == 12)
        strcat(msg, " (Form Feed char.)");
      else if (card[ii] == 13)
        strcat(msg, " (Carriage Return)");
      else if (card[ii] == 27)
        strcat(msg, " (Escape char.)");
      else if (card[ii] == 127)
        strcat(msg, " (Delete char.)");
      ffpmsg(msg);
      strncpy(msg, card, 80);
      msg[80] = '\0';
      ffpmsg(msg);
      return (*status = 207);
    }
  }
  return (*status);
}
```