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

```asm
<ffpsvc>:
  endbr64
  mov    (%rcx),%eax
  test   %eax,%eax
  jg     L2
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %rsi,%r13
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %rdx,%rbp
  push   %rbx
  sub    $0x18,%rsp
  movb   $0x0,(%rsi)
  test   %rdx,%rdx
  je     L389
  movb   $0x0,(%rdx)
L389:
  mov    %r14,%rdi
  call   <strlen@plt>
  cmpb   $0x48,(%r14)
  mov    %rax,%rbx
  je     L315
L444:
  cmp    $0x8,%rbx
  jbe    L374
  movzbl (%r14),%eax
  cmp    $0x43,%al
  je     L192
L0:
  cmp    $0x48,%al
  je     L565
L339:
  cmp    $0x45,%al
  je     L224
L434:
  cmp    $0x20,%al
  je     L324
L12:
  cmpb   $0x3d,0x8(%r14)
  je     L5
L146:
  test   %rbp,%rbp
  jne    L317
L374:
  mov    (%r12),%eax
L598:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L2:
  ret
  nopl   0x0(%rax)
L317:
  lea    0x8(%r14),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  sub    $0x9,%ebx
  js     L374
  movslq %ebx,%rax
  jmp    L417
  cs nopw 0x0(%rax,%rax,1)
L509:
  movb   $0x0,0x0(%rbp,%rax,1)
  sub    $0x1,%rax
  test   %eax,%eax
  js     L374
L417:
  cmpb   $0x20,0x0(%rbp,%rax,1)
  je     L509
  jmp    L374
  cs nopw 0x0(%rax,%rax,1)
L5:
  lea    0x8(%r14),%rdi
  mov    $0x2,%edx
  lea    D32(%rip),%rsi
  mov    $0xa,%r15d
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L146
L136:
  lea    D51(%rip),%r8
  lea    (%r14,%r15,1),%rdi
  mov    %r8,%rsi
  call   <strspn@plt>
  lea    D51(%rip),%r8
  add    %rax,%r15
  cmp    %rbx,%r15
  je     L374
  lea    (%r14,%r15,1),%r9
  movzbl (%r9),%eax
  cmp    $0x2f,%al
  je     L480
  cmp    $0x27,%al
  je     L49
  cmp    $0x28,%al
  jne    L298
  mov    %r9,%rdi
  lea    D90(%rip),%rsi
  mov    %r9,0x8(%rsp)
  call   <strcspn@plt>
  mov    0x8(%rsp),%rdi
  mov    %rax,%rbx
  call   <strlen@plt>
  mov    0x8(%rsp),%r9
  cmp    %rbx,%rax
  je     L161
  lea    0x1(%rbx),%rdx
  mov    %r9,%rsi
  mov    %r13,%rdi
  mov    %rdx,0x8(%rsp)
  call   <strncpy@plt>
  mov    0x8(%rsp),%rdx
  movb   $0x0,0x1(%r13,%rbx,1)
  lea    D51(%rip),%r8
  add    %rdx,%r15
L189:
  test   %rbp,%rbp
  je     L374
  lea    (%r14,%r15,1),%rdi
  mov    %r8,%rsi
  call   <strspn@plt>
  add    %rax,%r15
  cmp    $0x4f,%r15
  ja     L374
  lea    (%r14,%r15,1),%rsi
  cmpb   $0x2f,(%rsi)
  je     L73
L333:
  mov    %rbp,%rdi
  call   <strcat@plt>
  mov    %rbp,%rdi
  call   <strlen@plt>
  mov    %eax,%ecx
  sub    $0x1,%ecx
  js     L374
  cltq
  movslq %ecx,%rdx
  mov    %ecx,%ecx
  lea    -0x2(%rbp,%rax,1),%rax
  add    %rbp,%rdx
  sub    %rcx,%rax
  jmp    L66
  nop
L247:
  movb   $0x0,(%rdx)
  sub    $0x1,%rdx
  cmp    %rdx,%rax
  je     L374
L66:
  cmpb   $0x20,(%rdx)
  je     L247
  jmp    L374
  nopw   0x0(%rax,%rax,1)
L315:
  mov    $0x9,%edx
  lea    D53(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L444
  lea    D82(%rip),%rsi
  mov    %r14,%rdi
  call   <strcspn@plt>
  lea    0x1(%rax),%r15
  cmp    %rax,%rbx
  jne    L136
  cmp    $0x8,%rbx
  jbe    L374
  test   %rbp,%rbp
  je     L374
  lea    0x8(%r14),%rsi
  mov    %rbp,%rdi
  call   <strcpy@plt>
  mov    %ebx,%eax
  sub    $0x9,%eax
  js     L374
  cltq
  jmp    L91
  cs nopw 0x0(%rax,%rax,1)
L442:
  movb   $0x0,0x0(%rbp,%rax,1)
  sub    $0x1,%rax
  test   %eax,%eax
  js     L374
L91:
  cmpb   $0x20,0x0(%rbp,%rax,1)
  je     L442
  jmp    L374
  nopl   (%rax)
L480:
  add    $0x1,%r15
  jmp    L189
  nopl   0x0(%rax)
L192:
  mov    $0x8,%edx
  lea    D43(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L146
  movzbl (%r14),%eax
  jmp    L0
  nopl   (%rax)
L565:
  mov    $0x8,%edx
  lea    D99(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L146
  movzbl (%r14),%eax
  jmp    L339
  nopl   (%rax)
L224:
  mov    $0x8,%edx
  lea    D125(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  je     L146
  movzbl (%r14),%eax
  jmp    L434
  nopl   (%rax)
L324:
  mov    $0x8,%edx
  lea    D140(%rip),%rsi
  mov    %r14,%rdi
  call   <strncmp@plt>
  test   %eax,%eax
  jne    L12
  jmp    L146
  nopl   0x0(%rax)
L49:
  lea    0x1(%r15),%rax
  movb   $0x27,0x0(%r13)
  cmp    %rax,%rbx
  jbe    L400
  mov    $0x1,%edx
  jmp    L116
  nopl   0x0(%rax)
L570:
  movslq %edx,%rsi
  add    $0x1,%rax
  add    $0x1,%edx
  mov    %cl,0x0(%r13,%rsi,1)
  cmp    %rax,%rbx
  jbe    L229
L116:
  movzbl (%r14,%rax,1),%ecx
  cmp    $0x27,%cl
  jne    L570
  lea    0x1(%rax),%rsi
  movslq %edx,%rdi
  lea    (%r14,%rsi,1),%rcx
  lea    0x0(%r13,%rdi,1),%r9
  cmpb   $0x27,(%rcx)
  movb   $0x27,(%r9)
  jne    L184
  movzbl (%rcx),%ecx
  add    $0x1,%edx
  mov    %rsi,%rax
  jmp    L570
L229:
  movslq %edx,%rdi
L184:
  cmp    %rax,%rbx
  je     L167
  movb   $0x0,0x1(%r13,%rdi,1)
  lea    0x1(%rax),%r15
  jmp    L189
  nopl   (%rax)
L298:
  mov    %r9,%rdi
  lea    D46(%rip),%rsi
  mov    %r9,0x8(%rsp)
  call   <strcspn@plt>
  mov    0x8(%rsp),%rsi
  mov    %r13,%rdi
  mov    %rax,%rbx
  mov    %rax,%rdx
  call   <strncpy@plt>
  add    %rbx,%r15
  movb   $0x0,0x0(%r13,%rbx,1)
  lea    D51(%rip),%r8
  jmp    L189
L73:
  lea    0x1(%r14,%r15,1),%rsi
  cmpb   $0x20,(%rsi)
  jne    L333
  lea    0x2(%r14,%r15,1),%rsi
  jmp    L333
L161:
  lea    D93(%rip),%rdi
L195:
  call   <ffpmsg@plt>
  mov    %r14,%rdi
  call   <ffpmsg@plt>
  movl   $0xcd,(%r12)
  mov    $0xcd,%eax
  jmp    L598
L167:
  movb   $0x0,0x0(%r13,%rdi,1)
  lea    D118(%rip),%rdi
  jmp    L195
L400:
  mov    $0x1,%edi
  jmp    L184
```

tool_calls: name: retrieve_data
arguments: tag: D32
type_infered: string
name: retrieve_data
arguments: tag: D51
type_infered: string
name: retrieve_data
arguments: tag: D90
type_infered: string
name: retrieve_data
arguments: tag: D53
type_infered: string
name: retrieve_data
arguments: tag: D82
type_infered: string
name: retrieve_data
arguments: tag: D43
type_infered: string
name: retrieve_data
arguments: tag: D99
type_infered: string
name: retrieve_data
arguments: tag: D125
type_infered: string
name: retrieve_data
arguments: tag: D140
type_infered: string
name: retrieve_data
arguments: tag: D46
type_infered: string
name: retrieve_data
arguments: tag: D93
type_infered: string
name: retrieve_data
arguments: tag: D118
type_infered: string

tool: D32: = 

tool: D51:  

tool: D90: )

tool: D53: HIERARCH 

tool: D82: =

tool: D43: COMMENT 

tool: D99: HISTORY 

tool: D125: END     

tool: D140:         

tool: D46:  /

tool: D93: This complex keyword value has no closing ')':

tool: D118: This keyword string value has no closing quote:

assistant: ```c
int ffpsvc(char *card, char *value, char *comm, int *status) {
  int jj;
  size_t ii, cardlen, nblank, valpos;
  if (*status > 0)
    return (*status);
  value[0] = '\0';
  if (comm)
    comm[0] = '\0';
  cardlen = strlen(card);
  if (((card)[0] < ("HIERARCH ")[0] ? -1 : (card)[0] > ("HIERARCH ")[0] ? 1 : strncmp((card), ("HIERARCH "), (9))) == 0) {
    valpos = strcspn(card, "=");
    if (valpos == cardlen) {
      if (comm != NULL) {
        if (cardlen > 8) {
          strcpy(comm, &card[8]);
          jj = cardlen - 8;
          for (jj--; jj >= 0; jj--) {
            if (comm[jj] == ' ')
              comm[jj] = '\0';
            else
              break;
          }
        }
      }
      return (*status);
    }
    valpos++;
  } else if (cardlen < 9 || ((card)[0] < ("COMMENT ")[0] ? -1 : (card)[0] > ("COMMENT ")[0] ? 1 : strncmp((card), ("COMMENT "), (8))) == 0 || ((card)[0] < ("HISTORY ")[0] ? -1 : (card)[0] > ("HISTORY ")[0] ? 1 : strncmp((card), ("HISTORY "), (8))) == 0 || ((card)[0] < ("END     ")[0] ? -1 : (card)[0] > ("END     ")[0] ? 1 : strncmp((card), ("END     "), (8))) == 0 || ((card)[0] < ("        ")[0] ? -1 : (card)[0] > ("        ")[0] ? 1 : strncmp((card), ("        "), (8))) == 0 || ((&card[8])[0] < ("= ")[0] ? -1 : (&card[8])[0] > ("= ")[0] ? 1 : strncmp((&card[8]), ("= "), (2))) != 0) {
    if (comm != NULL) {
      if (cardlen > 8) {
        strcpy(comm, &card[8]);
        jj = cardlen - 8;
        for (jj--; jj >= 0; jj--) {
          if (comm[jj] == ' ')
            comm[jj] = '\0';
          else
            break;
        }
      }
    }
    return (*status);
  } else {
    valpos = 10;
  }
  nblank = strspn(&card[valpos], " ");
  if (nblank + valpos == cardlen) {
    return (*status);
  }
  ii = valpos + nblank;
  if (card[ii] == '/') {
    ii++;
  } else if (card[ii] == '\'') {
    value[0] = card[ii];
    for (jj = 1, ii++; ii < cardlen; ii++, jj++) {
      if (card[ii] == '\'') {
        if (card[ii + 1] == '\'') {
          value[jj] = card[ii];
          ii++;
          jj++;
        } else {
          value[jj] = card[ii];
          break;
        }
      }
      value[jj] = card[ii];
    }
    if (ii == cardlen) {
      value[jj] = '\0';
      ffpmsg("This keyword string value has no closing quote:");
      ffpmsg(card);
      return (*status = 205);
    } else {
      value[jj + 1] = '\0';
      ii++;
    }
  } else if (card[ii] == '(') {
    nblank = strcspn(&card[ii], ")");
    if (nblank == strlen(&card[ii])) {
      ffpmsg("This complex keyword value has no closing ')':");
      ffpmsg(card);
      return (*status = 205);
    }
    nblank++;
    strncpy(value, &card[ii], nblank);
    value[nblank] = '\0';
    ii = ii + nblank;
  } else {
    nblank = strcspn(&card[ii], " /");
    strncpy(value, &card[ii], nblank);
    value[nblank] = '\0';
    ii = ii + nblank;
  }
  if (comm) {
    nblank = strspn(&card[ii], " ");
    ii = ii + nblank;
    if (ii < 80) {
      if (card[ii] == '/') {
        ii++;
        if (card[ii] == ' ')
          ii++;
      }
      strcat(comm, &card[ii]);
      jj = strlen(comm);
      for (jj--; jj >= 0; jj--) {
        if (comm[jj] == ' ')
          comm[jj] = '\0';
        else
          break;
      }
    }
  }
  return (*status);
}
```