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

```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    D1(%rip),%rsi
  sub    $0x8,%rsp
  call   <strcasecmp@plt>
  mov    %eax,%r8d
  xor    %eax,%eax
  test   %r8d,%r8d
  je     L160
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  xchg   %ax,%ax
L160:
  mov    %rbx,%rdi
  call   <skipspace@plt>
  mov    (%rbx),%rax
  cmpb   $0x3d,(%rax)
  je     L64
  lea    D6(%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
L64:
  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     L130
  test   %r12d,%r12d
  jle    L125
  lea    -0x1(%r12),%r8d
  mov    $0x1,%edi
  mov    %rbp,%rax
  add    %rbp,%r8
  sub    %ebp,%edi
  jmp    L158
  nopl   0x0(%rax)
L111:
  mov    %dl,(%rax)
  mov    (%rbx),%rdx
  lea    0x1(%rdx),%rsi
  mov    %rsi,(%rbx)
  lea    (%rdi,%rcx,1),%esi
  cmp    %r8,%rcx
  je     L60
  movzbl 0x1(%rdx),%edx
  add    $0x1,%rax
L158:
  mov    %rax,%rcx
  test   $0xdf,%dl
  jne    L111
L68:
  movb   $0x0,(%rcx)
L143:
  movl   $0x1,0x0(%r13)
  add    $0x8,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
  nopl   0x0(%rax,%rax,1)
L130:
  movb   $0x22,0x0(%rbp)
  mov    (%rbx),%rcx
  movslq %r12d,%r8
  mov    $0x1,%eax
  lea    0x1(%rcx),%rdx
  mov    %rdx,(%rbx)
  cmp    $0x1,%r12d
  jg     L57
  jmp    L93
  cs nopw 0x0(%rax,%rax,1)
L0:
  cmp    $0x22,%dl
  je     L35
  mov    %dl,0x0(%rbp,%rax,1)
  mov    (%rbx),%rcx
  add    $0x1,%rax
  lea    0x1(%rcx),%rdx
  mov    %rdx,(%rbx)
  cmp    %rax,%r8
  je     L56
L57:
  movzbl (%rdx),%edx
  mov    %eax,%edi
  lea    0x1(%rax),%esi
  test   %dl,%dl
  jne    L0
L35:
  movslq %esi,%rsi
L52:
  mov    %dl,0x0(%rbp,%rax,1)
  movb   $0x0,0x0(%rbp,%rsi,1)
  jmp    L143
  cs nopw 0x0(%rax,%rax,1)
L60:
  movslq %esi,%rsi
  lea    0x0(%rbp,%rsi,1),%rcx
  jmp    L68
  nopl   (%rax)
L56:
  add    $0x2,%edi
  movslq %esi,%rax
  movzbl 0x1(%rcx),%edx
  movslq %edi,%rsi
  jmp    L52
L125:
  mov    %rbp,%rcx
  jmp    L68
L93:
  movzbl 0x1(%rcx),%edx
  mov    $0x2,%esi
  jmp    L52
```

tool_calls: name: read_data
arguments: data_label: D1
datatype: string
name: read_data
arguments: data_label: D6
datatype: string

tool: D1: name

tool: D6: 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;
}
```