user: 下面的汇编指令对应的C源代码是什么：

```asm
<parsestr>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %edi,%r14d
  mov    %rdx,(%rsp)
  mov    %rcx,0x10(%rsp)
  mov    %r8d,0xc(%rsp)
  mov    %r9,0x18(%rsp)
  cmp    $0x1,%edi
  jle    L59
  mov    %rsi,%r13
  lea    0x8(%rsi),%rbx
  lea    -0x2(%rdi),%eax
  lea    0x10(%rsi,%rax,8),%r15
  lea    D88(%rip),%rbp
  lea    D26(%rip),%r12
L107:
  mov    %rbp,%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L14
  mov    %r12,%rsi
  mov    (%rbx),%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  je     L14
  add    $0x8,%rbx
  cmp    %r15,%rbx
  jne    L107
  mov    %r14d,%r15d
  mov    $0x1,%ebx
  jmp    L89
L14:
  mov    (%rsp),%rsi
  lea    D14(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,0xc(%rsp)
  jne    L253
L27:
  mov    $0xa,%edi
  call   <putchar@plt>
L102:
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L253:
  mov    0x18(%rsp),%rsi
  lea    D131(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L27
L20:
  mov    (%rsp),%rsi
  lea    D40(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L182
L177:
  mov    (%rsp),%rsi
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L144
L170:
  mov    (%rsp),%rsi
  lea    D122(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L272
L83:
  mov    (%rsp),%rsi
  lea    D2(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L115
L186:
  lea    0x1(%r12),%ebp
  add    $0x1,%rbx
  cmp    %r15,%rbx
  je     L115
L89:
  mov    %ebx,%r12d
  mov    %ebx,%ebp
  mov    0x0(%r13,%rbx,8),%rdi
  call   <strlen@plt>
  cmp    $0x2,%eax
  jle    L186
  mov    0x0(%r13,%rbx,8),%rdi
  cmpb   $0x2d,(%rdi)
  jne    L186
  cmpb   $0x2d,0x1(%rdi)
  jne    L186
  add    $0x2,%rdi
  mov    (%rsp),%rsi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L186
  lea    -0x1(%r14),%eax
  cmp    %ebx,%eax
  je     L20
L182:
  lea    0x8(%r13,%rbx,8),%rbx
  mov    (%rbx),%rdi
  call   <strlen@plt>
  mov    %eax,%r12d
  cmp    $0x1388,%eax
  jg     L177
L144:
  lea    0x1(%r12),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    0x10(%rsp),%rcx
  mov    %rax,(%rcx)
  test   %rax,%rax
  je     L170
L272:
  mov    0x10(%rsp),%rax
  mov    (%rax),%rdx
  lea    D128(%rip),%rsi
  mov    (%rbx),%rdi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  jne    L83
L115:
  cmp    %ebp,%r14d
  jne    L102
  cmpl   $0x0,0xc(%rsp)
  je     L52
  mov    0x18(%rsp),%rdi
  call   <strlen@plt>
  mov    %eax,%ebx
  cmp    $0x1388,%eax
  jg     L173
L299:
  lea    0x1(%rbx),%edi
  mov    $0x1,%esi
  call   <calloc@plt>
  mov    0x10(%rsp),%rdx
  mov    %rax,(%rdx)
  test   %rax,%rax
  je     L103
L201:
  mov    0x10(%rsp),%rax
  mov    (%rax),%rdx
  lea    D128(%rip),%rsi
  mov    0x18(%rsp),%rdi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  je     L102
  mov    (%rsp),%rsi
  lea    D2(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L102
L59:
  mov    $0x1,%ebp
  jmp    L115
L173:
  mov    (%rsp),%rsi
  lea    D57(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L299
L103:
  mov    (%rsp),%rsi
  lea    D122(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L201
L52:
  mov    (%rsp),%rsi
  lea    D81(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  jmp    L102
```

tool_calls: name: disassemble_data
arguments: data_label: D88
type_guessed: string
name: disassemble_data
arguments: data_label: D26
type_guessed: string
name: disassemble_data
arguments: data_label: D14
type_guessed: string
name: disassemble_data
arguments: data_label: D131
type_guessed: string
name: disassemble_data
arguments: data_label: D40
type_guessed: string
name: disassemble_data
arguments: data_label: D57
type_guessed: string
name: disassemble_data
arguments: data_label: D122
type_guessed: string
name: disassemble_data
arguments: data_label: D2
type_guessed: string
name: disassemble_data
arguments: data_label: D128
type_guessed: string
name: disassemble_data
arguments: data_label: D81
type_guessed: string

tool: D88: --help

tool: D26: -h

tool: D14: --%s <str>

tool: D131:  (DEFAULT:%s)

tool: D40: option %s value missing


tool: D57: option %s value too long


tool: D122: option %s memory error


tool: D2: option %s failed to parse value


tool: D128: %s

tool: D81: option %s is required


assistant: ```c
void parsestr(int argc, char *argv[], const char *name, char **p, unsigned hasdef, const char *defval) {
  int i, res, slen;
  for (i = 1; i < argc; i++) {
    if (strcmp(argv[i], "--help") == 0 || strcmp(argv[i], "-h") == 0) {
      printf("--%s <str>", name);
      if (hasdef)
        printf(" (DEFAULT:%s)", defval);
      printf("\n");
      return;
    }
  }
  for (i = 1; i < argc; i++) {
    if (strlen(argv[i]) < 3)
      continue;
    if (argv[i][0] != '-' || argv[i][1] != '-' || strcmp(argv[i] + 2, name) != 0)
      continue;
    if (i == argc - 1) {
      printf("option %s value missing\n", name);
      exit(1);
    }
    slen = strlen(argv[i + 1]);
    if (slen > 5000) {
      printf("option %s value too long\n", name);
      exit(1);
    }
    *p = calloc(slen + 1, sizeof(char));
    if (*p == NULL) {
      printf("option %s memory error\n", name);
      exit(1);
    }
    res = sscanf(argv[i + 1], "%s", *p);
    if (res != 1) {
      printf("option %s failed to parse value\n", name);
      exit(1);
    }
    break;
  }
  if (i == argc) {
    if (hasdef) {
      slen = strlen(defval);
      if (slen > 5000) {
        printf("option %s value too long\n", name);
        exit(1);
      }
      *p = calloc(slen + 1, sizeof(char));
      if (*p == NULL) {
        printf("option %s memory error\n", name);
        exit(1);
      }
      res = sscanf(defval, "%s", *p);
      if (res != 1) {
        printf("option %s failed to parse value\n", name);
        exit(1);
      }
    } else {
      printf("option %s is required\n", name);
      exit(1);
    }
  }
}
```