user: 请将以下的汇编代码转换成C语言代码：

```asm
<qword_get>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    (%rdi),%rbx
  movzbl (%rbx),%eax
  cmp    $0x20,%al
  jne    L112
  nopl   (%rax)
L71:
  movzbl 0x1(%rbx),%eax
  add    $0x1,%rbx
  cmp    $0x20,%al
  je     L71
L112:
  cmp    $0x5c,%al
  je     L261
L90:
  movzbl (%rbx),%eax
  test   $0xdf,%al
  je     L325
  cmp    $0xa,%al
  je     L325
  sub    $0x1,%r13d
  xor    %r12d,%r12d
  test   %r13d,%r13d
  jg     L234
  jmp    L272
L76:
  movzbl (%rbx),%eax
  add    $0x1,%rbx
L62:
  mov    %al,-0x1(%rbp)
  movzbl (%rbx),%eax
  test   $0xdf,%al
  je     L307
  cmp    $0xa,%al
  je     L307
  cmp    %r12d,%r13d
  je     L272
L234:
  add    $0x1,%rbp
  add    $0x1,%r12d
  cmp    $0x5c,%al
  jne    L76
  movsbl 0x1(%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L76
  cmpb   $0x33,0x1(%rbx)
  jg     L76
  movsbl 0x2(%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L76
  cmpb   $0x37,0x2(%rbx)
  jg     L76
  movsbl 0x3(%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L76
  movzbl 0x3(%rbx),%eax
  cmp    $0x37,%al
  jg     L76
  movsbl 0x1(%rbx),%edx
  sub    $0x30,%eax
  add    $0x4,%rbx
  lea    -0x180(,%rdx,8),%ecx
  movsbl -0x2(%rbx),%edx
  sub    $0x30,%edx
  or     %ecx,%edx
  shl    $0x3,%edx
  or     %edx,%eax
  jmp    L62
  nopl   (%rax)
L223:
  movzbl (%rbx),%eax
  test   $0xdf,%al
  je     L307
  cmp    $0xa,%al
  jne    L272
  nopw   0x0(%rax,%rax,1)
L307:
  cmp    $0x20,%al
  jne    L230
  nopl   0x0(%rax)
L256:
  add    $0x1,%rbx
  cmpb   $0x20,(%rbx)
  je     L256
L230:
  mov    %rbx,(%r14)
  movb   $0x0,0x0(%rbp)
L153:
  add    $0x8,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L261:
  cmpb   $0x78,0x1(%rbx)
  jne    L90
  add    $0x2,%rbx
  xor    %r12d,%r12d
  jmp    L302
  nopl   0x0(%rax,%rax,1)
L77:
  movsbl (%rbx),%r15d
  sub    $0x30,%r15d
L30:
  movsbl 0x1(%rbx),%edi
  shl    $0x4,%r15d
  call   <isdigit@plt>
  test   %rax,%rax
  je     L245
  movsbl 0x1(%rbx),%eax
  sub    $0x30,%eax
L288:
  add    $0x1,%rbp
  or     %r15d,%eax
  add    $0x2,%rbx
  add    $0x1,%r12d
  mov    %al,-0x1(%rbp)
L302:
  movsbl (%rbx),%edi
  call   <isxdigit@plt>
  test   %rax,%rax
  je     L223
  movsbl 0x1(%rbx),%edi
  call   <isxdigit@plt>
  cmp    %r13d,%r12d
  jge    L223
  test   %rax,%rax
  je     L223
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L77
  movsbl (%rbx),%edi
  call   <toupper@plt>
  movsbl %al,%r15d
  sub    $0x37,%r15d
  jmp    L30
  cs nopw 0x0(%rax,%rax,1)
L245:
  movsbl 0x1(%rbx),%edi
  call   <toupper@plt>
  movsbl %al,%eax
  sub    $0x37,%eax
  jmp    L288
L325:
  xor    %r12d,%r12d
  jmp    L307
  nopl   0x0(%rax)
L272:
  mov    $0xffffffff,%r12d
  jmp    L153
```

assistant: ```c
int qword_get(char **bpp, char *dest, int bufsize) {
  char *bp = *bpp;
  int len = 0;
  while (*bp == ' ')
    bp++;
  if (bp[0] == '\\' && bp[1] == 'x') {
    bp += 2;
    while (isxdigit(bp[0]) && isxdigit(bp[1]) && len < bufsize) {
      int byte = isdigit(*bp) ? *bp - '0' : toupper(*bp) - 'A' + 10;
      bp++;
      byte <<= 4;
      byte |= isdigit(*bp) ? *bp - '0' : toupper(*bp) - 'A' + 10;
      *dest++ = byte;
      bp++;
      len++;
    }
  } else {
    while (*bp != ' ' && *bp != '\n' && *bp && len < bufsize - 1) {
      if (*bp == '\\' && (isdigit(bp[1]) && bp[1] <= '7') && (bp[1] <= '3') && (isdigit(bp[2]) && bp[2] <= '7') && (isdigit(bp[3]) && bp[3] <= '7')) {
        int byte = (*++bp - '0');
        bp++;
        byte = (byte << 3) | (*bp++ - '0');
        byte = (byte << 3) | (*bp++ - '0');
        *dest++ = byte;
        len++;
      } else {
        *dest++ = *bp++;
        len++;
      }
    }
  }
  if (*bp != ' ' && *bp != '\n' && *bp != '\0')
    return -1;
  while (*bp == ' ')
    bp++;
  *bpp = bp;
  *dest = '\0';
  return len;
}
```