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

```asm
<parse_key>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %rsi,-0x50(%rbp)
  mov    %rdx,-0x58(%rbp)
  lea    D8(%rip),%rax
  mov    %rax,-0x20(%rbp)
  cmpq   $0x0,-0x48(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpq   $0x0,-0x50(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  cmpq   $0x0,-0x58(%rbp)
  jne    L141
  mov    $0xffffffff,%eax
  jmp    L157
L141:
  mov    -0x50(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L179
  mov    -0x50(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L134
  mov    -0x50(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L179
L134:
  mov    -0x50(%rbp),%rax
  lea    0x2(%rax),%rdx
  mov    -0x20(%rbp),%rax
  mov    %rax,%rsi
  mov    %rdx,%rdi
  call   <strspn@plt>
  mov    %rax,%rbx
  mov    -0x50(%rbp),%rax
  add    $0x2,%rax
  mov    %rax,%rdi
  call   <strlen@plt>
  cmp    %rax,%rbx
  jne    L179
  mov    -0x58(%rbp),%rax
  lea    -0x1(%rax),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x50(%rbp),%rax
  add    $0x2,%rax
  mov    %rax,-0x30(%rbp)
  mov    -0x48(%rbp),%rax
  mov    %rax,-0x28(%rbp)
  movl   $0x0,-0x34(%rbp)
  jmp    L120
L145:
  mov    -0x30(%rbp),%rax
  sub    -0x50(%rbp),%rax
  and    $0x1,%eax
  test   %rax,%rax
  jne    L174
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toint@plt>
  shl    $0x4,%eax
  and    $0xfffffff0,%eax
  mov    %eax,%edx
  mov    -0x28(%rbp),%rax
  mov    %dl,(%rax)
  addl   $0x1,-0x34(%rbp)
  jmp    L120
L174:
  mov    -0x30(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x30(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toint@plt>
  and    $0xf,%eax
  mov    %eax,%ecx
  mov    -0x28(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x28(%rbp)
  movzbl (%rax),%edx
  or     %ecx,%edx
  mov    %dl,(%rax)
L120:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L125
  mov    -0x28(%rbp),%rax
  cmp    -0x18(%rbp),%rax
  jb     L145
L125:
  mov    -0x34(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  movb   $0x0,(%rax)
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  je     L17
  mov    $0xffffffff,%eax
  jmp    L157
L179:
  mov    -0x58(%rbp),%rdx
  mov    -0x50(%rbp),%rcx
  mov    -0x48(%rbp),%rax
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <strlcpy@plt>
  mov    %eax,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  cltq
  cmp    %rax,-0x58(%rbp)
  ja     L17
  mov    $0xffffffff,%eax
  jmp    L157
L17:
  cmpl   $0x0,-0x34(%rbp)
  js     L164
  mov    -0x34(%rbp),%eax
  cltq
  cmp    %rax,-0x58(%rbp)
  jbe    L164
  mov    $0x1,%eax
  jmp    L52
L164:
  mov    $0x0,%eax
L52:
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x34(%rbp),%eax
L157:
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D8
type: string

tool: D8: 0123456789ABCDEFabcdef

assistant: ```c
int parse_key(char *dst, const char *src, size_t dstlen) {
  const char *hexdigits = "0123456789ABCDEFabcdef";
  char *dstend;
  char *p;
  char *q;
  int n;
  assert(dst != NULL);
  assert(src != NULL);
  if (dstlen == 0) {
    return (-1);
  }
  if ((src[0] == '0') && (src[1] == 'x' || src[1] == 'X') && (strspn(src + 2, hexdigits) == strlen(src + 2))) {
    dstend = dst + dstlen - 1;
    p = (char *)src + 2;
    q = dst;
    n = 0;
    while (*p && (q < dstend)) {
      if (((p - src) & 0x01) == 0) {
        *q = (toint(*p++) << 4) & 0xf0;
        n++;
      } else {
        *q++ |= (toint(*p++)) & 0x0f;
      }
    }
    dst[n] = '\0';
    if (*p) {
      return (-1);
    }
  } else {
    n = strlcpy(dst, src, dstlen);
    if ((size_t)n >= dstlen) {
      return (-1);
    }
  }
  assert((n >= 0) && ((size_t)n < dstlen));
  return (n);
}
```