user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<parseArgs>:
  endbr64
  push   %r15
  mov    $0x1,%edx
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x428,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x418(%rsp)
  xor    %eax,%eax
  jmp    L17
  nopl   (%rax)
L145:
  mov    0x0(%rbp),%ecx
  lea    0x1(%rax),%rdi
  lea    0x1(%rcx),%edx
L17:
  mov    %edx,0x0(%rbp)
  mov    $0x26,%esi
  call   <strchr@plt>
  test   %rax,%rax
  jne    L145
  mov    0x0(%rbp),%edi
  shl    $0x3,%edi
  call   <malloc@plt>
  mov    %rax,%r13
  movzbl (%rbx),%eax
  test   %al,%al
  je     L101
  lea    0x10(%rsp),%r14
  xor    %r12d,%r12d
  mov    %r14,%rbp
  jmp    L179
  nopw   0x0(%rax,%rax,1)
L132:
  cmp    $0x25,%al
  je     L76
  mov    %al,0x0(%rbp)
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbp
  mov    %r15,%rbx
L169:
  test   %al,%al
  je     L174
L179:
  lea    0x1(%rbx),%r15
  cmp    $0x26,%al
  je     L59
  cmp    $0x2b,%al
  jne    L132
  movzbl 0x1(%rbx),%eax
  movb   $0x20,0x0(%rbp)
  mov    %r15,%rbx
  add    $0x1,%rbp
  test   %al,%al
  jne    L179
L174:
  movslq %r12d,%r12
  lea    0x0(%r13,%r12,8),%rbx
L82:
  movb   $0x0,0x0(%rbp)
  mov    %r14,%rdi
  call   <strdup@plt>
  mov    %rax,(%rbx)
  mov    0x418(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L100
  add    $0x428,%rsp
  mov    %r13,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L59:
  movb   $0x0,0x0(%rbp)
  mov    %r14,%rdi
  mov    %r14,%rbp
  call   <strdup@plt>
  mov    %rax,%r9
  movslq %r12d,%rax
  add    $0x1,%r12d
  mov    %r9,0x0(%r13,%rax,8)
  movzbl 0x1(%rbx),%eax
  mov    %r15,%rbx
  jmp    L169
  nopw   0x0(%rax,%rax,1)
L76:
  lea    0x8(%rsp),%rdx
  lea    D16(%rip),%rsi
  mov    %r15,%rdi
  call   <sscanf@plt>
  mov    0x8(%rsp),%edx
  cmp    $0x1,%eax
  movzbl 0x3(%rbx),%eax
  je     L110
L121:
  mov    %dl,0x0(%rbp)
  add    $0x3,%rbx
  add    $0x1,%rbp
  jmp    L169
  nopl   0x0(%rax)
L110:
  cmp    $0xd,%edx
  jne    L121
  cmp    $0x25,%al
  jne    L121
  lea    0xc(%rsp),%rdx
  lea    0x4(%rbx),%rdi
  lea    D16(%rip),%rsi
  call   <sscanf@plt>
  cmp    $0x1,%eax
  je     L90
L142:
  mov    0x8(%rsp),%edx
  movzbl 0x3(%rbx),%eax
  jmp    L121
  nopl   (%rax)
L101:
  lea    0x10(%rsp),%r14
  mov    %r13,%rbx
  mov    %r14,%rbp
  jmp    L82
L90:
  cmpl   $0xa,0xc(%rsp)
  jne    L142
  movzbl 0x6(%rbx),%eax
  movb   $0xa,0x0(%rbp)
  add    $0x6,%rbx
  jmp    L169
L100:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D16
datatype: string

tool: D16: %2x

assistant: ```c
char **parseArgs(char *in, int *narg) {
  int i;
  char **parsed;
  char buf[1024];
  char *ptr, *ptr0 = in;
  *narg = 1;
  while ((ptr = strchr(ptr0, '&'))) {
    (*narg)++;
    ptr0 = ptr + 1;
  }
  parsed = (char **)malloc((*narg) * sizeof(char *));
  ptr = buf;
  i = 0;
  while (*in) {
    switch (*in) {
      int val, val1;
    case '%':
      in++;
      if ((sscanf(in, "%2x", &val) == 1) && (val == 0xD) && (*(in + 2) == '%') && (sscanf(in + 3, "%2x", &val1) == 1) && (val1 == 0xA)) {
        *ptr = '\n';
        in += 5;
        break;
      }
      *ptr = val;
      in += 2;
      ptr++;
      break;
    case '+':
      *ptr = ' ';
      in++;
      ptr++;
      break;
    case '&':
      *ptr = '\0';
      parsed[i] = strdup(buf);
      ptr = buf;
      i++;
      in++;
      break;
    default:
      *ptr = *in;
      ptr++;
      in++;
      break;
    }
  }
  *ptr = '\0';
  parsed[i] = strdup(buf);
  return parsed;
}
```