user: What is the c source code of the assembly code below:

```asm
<ffbnfm>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x120,%rsp
  mov    %rdi,-0xf8(%rbp)
  mov    %rsi,-0x100(%rbp)
  mov    %rdx,-0x108(%rbp)
  mov    %rcx,-0x110(%rbp)
  mov    %r8,-0x118(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  mov    -0x118(%rbp),%rax
  mov    (%rax),%eax
  test   %eax,%eax
  jle    L430
  mov    -0x118(%rbp),%rax
  mov    (%rax),%eax
  jmp    L8
L430:
  cmpq   $0x0,-0x100(%rbp)
  je     L215
  mov    -0x100(%rbp),%rax
  movl   $0x0,(%rax)
L215:
  cmpq   $0x0,-0x108(%rbp)
  je     L379
  mov    -0x108(%rbp),%rax
  movq   $0x0,(%rax)
L379:
  cmpq   $0x0,-0x110(%rbp)
  je     L550
  mov    -0x110(%rbp),%rax
  movq   $0x0,(%rax)
L550:
  mov    -0xf8(%rbp),%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  mov    %rax,-0xb8(%rbp)
  movq   $0x0,-0xc8(%rbp)
  jmp    L230
L349:
  mov    -0xf8(%rbp),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  cmp    $0x20,%al
  jne    L177
  addq   $0x1,-0xc8(%rbp)
L230:
  mov    -0xc8(%rbp),%rax
  cmp    -0xb8(%rbp),%rax
  jb     L349
  jmp    L161
L177:
  nop
L161:
  mov    -0xc8(%rbp),%rax
  cmp    -0xb8(%rbp),%rax
  jne    L457
  lea    D9(%rip),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0x118(%rbp),%rax
  movl   $0x105,(%rax)
  mov    -0x118(%rbp),%rax
  mov    (%rax),%eax
  jmp    L8
L457:
  mov    -0xf8(%rbp),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rax,%rdx
  lea    -0xb0(%rbp),%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcpy@plt>
  lea    -0xb0(%rbp),%rax
  mov    %rax,%rdi
  call   <ffupch@plt>
  lea    -0xb0(%rbp),%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  jmp    L310
L483:
  addq   $0x1,-0xc8(%rbp)
L310:
  mov    -0xc0(%rbp),%rdx
  mov    -0xc8(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L483
  cmpq   $0x0,-0xc8(%rbp)
  jne    L183
  movq   $0x1,-0xd0(%rbp)
  jmp    L163
L183:
  lea    -0xd0(%rbp),%rdx
  mov    -0xc0(%rbp),%rax
  lea    D25(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <sscanf@plt>
L163:
  mov    -0xc8(%rbp),%rax
  add    %rax,-0xc0(%rbp)
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x50,%al
  je     L221
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x51,%al
  jne    L338
L221:
  movl   $0x1,-0xe0(%rbp)
  addq   $0x1,-0xc0(%rbp)
  jmp    L135
L338:
  movl   $0x0,-0xe0(%rbp)
L135:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x55,%al
  jne    L96
  movl   $0x14,-0xe4(%rbp)
  movq   $0x2,-0xd8(%rbp)
  jmp    L233
L96:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x49,%al
  jne    L437
  movl   $0x15,-0xe4(%rbp)
  movq   $0x2,-0xd8(%rbp)
  jmp    L233
L437:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x56,%al
  jne    L460
  movl   $0x28,-0xe4(%rbp)
  movq   $0x4,-0xd8(%rbp)
  jmp    L233
L460:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x4a,%al
  jne    L520
  movl   $0x29,-0xe4(%rbp)
  movq   $0x4,-0xd8(%rbp)
  jmp    L233
L520:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x4b,%al
  jne    L565
  movl   $0x51,-0xe4(%rbp)
  movq   $0x8,-0xd8(%rbp)
  jmp    L233
L565:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x45,%al
  jne    L542
  movl   $0x2a,-0xe4(%rbp)
  movq   $0x4,-0xd8(%rbp)
  jmp    L233
L542:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x44,%al
  jne    L448
  movl   $0x52,-0xe4(%rbp)
  movq   $0x8,-0xd8(%rbp)
  jmp    L233
L448:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x41,%al
  jne    L65
  movl   $0x10,-0xe4(%rbp)
  movl   $0x0,-0xdc(%rbp)
  mov    -0xc0(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L549
  mov    -0xc0(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x28,%al
  jne    L289
  addq   $0x1,-0xc0(%rbp)
L289:
  mov    -0xc0(%rbp),%rax
  lea    0x1(%rax),%rcx
  lea    -0xd8(%rbp),%rax
  mov    %rax,%rdx
  lea    D25(%rip),%rax
  mov    %rax,%rsi
  mov    %rcx,%rdi
  call   <sscanf@plt>
  mov    %eax,-0xdc(%rbp)
L549:
  cmpl   $0x1,-0xdc(%rbp)
  jne    L355
  cmpl   $0x0,-0xe0(%rbp)
  jne    L233
  mov    -0xd8(%rbp),%rdx
  mov    -0xd0(%rbp),%rax
  cmp    %rax,%rdx
  jle    L233
L355:
  mov    -0xd0(%rbp),%rax
  mov    %rax,-0xd8(%rbp)
  jmp    L233
L65:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x4c,%al
  jne    L236
  movl   $0xe,-0xe4(%rbp)
  movq   $0x1,-0xd8(%rbp)
  jmp    L233
L236:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L476
  movl   $0x1,-0xe4(%rbp)
  movq   $0x1,-0xd8(%rbp)
  jmp    L233
L476:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x42,%al
  jne    L453
  movl   $0xb,-0xe4(%rbp)
  movq   $0x1,-0xd8(%rbp)
  jmp    L233
L453:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x53,%al
  jne    L12
  movl   $0xc,-0xe4(%rbp)
  movq   $0x1,-0xd8(%rbp)
  jmp    L233
L12:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x43,%al
  jne    L281
  movl   $0x53,-0xe4(%rbp)
  movq   $0x8,-0xd8(%rbp)
  jmp    L233
L281:
  mov    -0xc0(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x4d,%al
  jne    L23
  movl   $0xa3,-0xe4(%rbp)
  movq   $0x10,-0xd8(%rbp)
  jmp    L233
L23:
  mov    -0xf8(%rbp),%rdx
  lea    -0x60(%rbp),%rax
  mov    %rdx,%rcx
  lea    D3(%rip),%rdx
  mov    $0x51,%esi
  mov    %rax,%rdi
  call   <snprintf@plt>
  lea    -0x60(%rbp),%rax
  mov    %rax,%rdi
  call   <ffpmsg@plt>
  mov    -0x118(%rbp),%rax
  movl   $0x106,(%rax)
  mov    -0x118(%rbp),%rax
  mov    (%rax),%eax
  jmp    L8
L233:
  cmpl   $0x0,-0xe0(%rbp)
  je     L53
  negl   -0xe4(%rbp)
L53:
  cmpq   $0x0,-0x100(%rbp)
  je     L359
  mov    -0x100(%rbp),%rax
  mov    -0xe4(%rbp),%edx
  mov    %edx,(%rax)
L359:
  cmpq   $0x0,-0x108(%rbp)
  je     L67
  mov    -0xd0(%rbp),%rdx
  mov    -0x108(%rbp),%rax
  mov    %rdx,(%rax)
L67:
  cmpq   $0x0,-0x110(%rbp)
  je     L273
  mov    -0xd8(%rbp),%rdx
  mov    -0x110(%rbp),%rax
  mov    %rdx,(%rax)
L273:
  mov    -0x118(%rbp),%rax
  mov    (%rax),%eax
L8:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L199
  call   <__stack_chk_fail@plt>
L199:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D9
type_guessed: string
name: extract_symbolic_data
arguments: tag: D25
type_guessed: string
name: extract_symbolic_data
arguments: tag: D3
type_guessed: string

tool: D9: Error: binary table TFORM code is blank (ffbnfm).

tool: D25: %ld

tool: D3: Illegal binary table TFORMn datatype: '%s' 

assistant: ```c
int ffbnfm(char *tform, int *dtcode, long *trepeat, long *twidth, int *status) {
  size_t ii, nchar;
  int datacode, variable, iread;
  long width, repeat;
  char *form, temp[71], message[81];
  if (*status > 0)
    return (*status);
  if (dtcode)
    *dtcode = 0;
  if (trepeat)
    *trepeat = 0;
  if (twidth)
    *twidth = 0;
  nchar = strlen(tform);
  for (ii = 0; ii < nchar; ii++) {
    if (tform[ii] != ' ')
      break;
  }
  if (ii == nchar) {
    ffpmsg("Error: binary table TFORM code is blank (ffbnfm).");
    return (*status = 261);
  }
  strcpy(temp, &tform[ii]);
  ffupch(temp);
  form = temp;
  ii = 0;
  while (isdigit((int)form[ii]))
    ii++;
  if (ii == 0)
    repeat = 1;
  else
    sscanf(form, "%ld", &repeat);
  form = form + ii;
  if (form[0] == 'P' || form[0] == 'Q') {
    variable = 1;
    form++;
  } else
    variable = 0;
  if (form[0] == 'U') {
    datacode = 20;
    width = 2;
  } else if (form[0] == 'I') {
    datacode = 21;
    width = 2;
  } else if (form[0] == 'V') {
    datacode = 40;
    width = 4;
  } else if (form[0] == 'J') {
    datacode = 41;
    width = 4;
  } else if (form[0] == 'K') {
    datacode = 81;
    width = 8;
  } else if (form[0] == 'E') {
    datacode = 42;
    width = 4;
  } else if (form[0] == 'D') {
    datacode = 82;
    width = 8;
  } else if (form[0] == 'A') {
    datacode = 16;
    iread = 0;
    if (form[1] != 0) {
      if (form[1] == '(')
        form++;
      iread = sscanf(&form[1], "%ld", &width);
    }
    if (iread != 1 || (!variable && (width > repeat)))
      width = repeat;
  } else if (form[0] == 'L') {
    datacode = 14;
    width = 1;
  } else if (form[0] == 'X') {
    datacode = 1;
    width = 1;
  } else if (form[0] == 'B') {
    datacode = 11;
    width = 1;
  } else if (form[0] == 'S') {
    datacode = 12;
    width = 1;
  } else if (form[0] == 'C') {
    datacode = 83;
    width = 8;
  } else if (form[0] == 'M') {
    datacode = 163;
    width = 16;
  } else {
    snprintf(message, 81, "Illegal binary table TFORMn datatype: \'%s\' ", tform);
    ffpmsg(message);
    return (*status = 262);
  }
  if (variable)
    datacode = datacode * (-1);
  if (dtcode)
    *dtcode = datacode;
  if (trepeat)
    *trepeat = repeat;
  if (twidth)
    *twidth = width;
  return (*status);
}
```