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

```asm
<parsename>:
  endbr64
  push   %r13
  mov    %rdx,%r13
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %rsi,%rdi
  lea    D17(%rip),%rsi
  sub    $0x8,%rsp
  call   <strcasecmp@plt>
  mov    %eax,%r8d
  xor    %eax,%eax
  test   %r8d,%r8d
  je     L8
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  xchg   %ax,%ax
L8:
  mov    %rbx,%rdi
  call   <skipspace@plt>
  mov    (%rbx),%rax
  cmpb   $0x3d,(%rax)
  je     L107
  lea    D15(%rip),%rdi
  xor    %eax,%eax
  call   <event_error@plt>
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  xchg   %ax,%ax
L107:
  add    $0x1,%rax
  mov    %rbx,%rdi
  mov    %rax,(%rbx)
  xor    %eax,%eax
  call   <skipspace@plt>
  mov    (%rbx),%rax
  movzbl (%rax),%edx
  cmp    $0x22,%dl
  je     L32
  test   %r12d,%r12d
  jle    L77
  lea    -0x1(%r12),%r8d
  mov    $0x1,%edi
  mov    %rbp,%rax
  add    %rbp,%r8
  sub    %ebp,%edi
  jmp    L62
  nopl   0x0(%rax)
L132:
  mov    %dl,(%rax)
  mov    (%rbx),%rdx
  lea    0x1(%rdx),%rsi
  mov    %rsi,(%rbx)
  lea    (%rdi,%rcx,1),%esi
  cmp    %rcx,%r8
  je     L83
  movzbl 0x1(%rdx),%edx
  add    $0x1,%rax
L62:
  mov    %rax,%rcx
  test   $0xdf,%dl
  jne    L132
L118:
  movb   $0x0,(%rcx)
L91:
  movl   $0x1,0x0(%r13)
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L32:
  movb   $0x22,0x0(%rbp)
  mov    (%rbx),%rcx
  movslq %r12d,%r8
  mov    $0x1,%eax
  lea    0x1(%rcx),%rdx
  mov    %rdx,(%rbx)
  cmp    $0x1,%r12d
  jg     L140
  jmp    L82
  cs nopw 0x0(%rax,%rax,1)
L148:
  cmp    $0x22,%dl
  je     L144
  mov    %dl,0x0(%rbp,%rax,1)
  mov    (%rbx),%rcx
  add    $0x1,%rax
  lea    0x1(%rcx),%rdx
  mov    %rdx,(%rbx)
  cmp    %rax,%r8
  je     L156
L140:
  movzbl (%rdx),%edx
  mov    %eax,%edi
  lea    0x1(%rax),%esi
  test   %dl,%dl
  jne    L148
L144:
  movslq %esi,%rsi
L51:
  mov    %dl,0x0(%rbp,%rax,1)
  movb   $0x0,0x0(%rbp,%rsi,1)
  jmp    L91
  cs nopw 0x0(%rax,%rax,1)
L83:
  movslq %esi,%rsi
  lea    0x0(%rbp,%rsi,1),%rcx
  jmp    L118
  nopl   (%rax)
L156:
  add    $0x2,%edi
  movslq %esi,%rax
  movzbl 0x1(%rcx),%edx
  movslq %edi,%rsi
  jmp    L51
L77:
  mov    %rbp,%rcx
  jmp    L118
L82:
  movzbl 0x1(%rcx),%edx
  mov    $0x2,%esi
  jmp    L51
```

tool_calls: name: read_data
arguments: data_tag: D17
datatype: string
name: read_data
arguments: data_tag: D15
datatype: string

tool: D17: name

tool: D15: name must be followed by '='

assistant: ```c
int parsename(s, word, gotname, namestring, maxsize)
char **s;
char *word;
int *gotname;
char namestring[];
int maxsize;
{
  int i;
  i = 0;
  if (strcasecmp(word, "name") != 0)
    return 0;
  skipspace(s);
  if (**s != '=') {
    event_error("name must be followed by '='");
  } else {
    *s = *s + 1;
    skipspace(s);
    if (**s == '"') {
      namestring[i] = (char)**s;
      *s = *s + 1;
      i++;
      while (i < maxsize && **s != '"' && **s != '\0') {
        namestring[i] = (char)**s;
        *s = *s + 1;
        i++;
      }
      namestring[i] = (char)**s;
      i++;
      namestring[i] = '\0';
    } else {
      while (i < maxsize && **s != ' ' && **s != '\0') {
        namestring[i] = (char)**s;
        *s = *s + 1;
        i++;
      }
      namestring[i] = '\0';
    }
    *gotname = 1;
  }
  return 1;
}
```