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

```asm
<decode_base32hex>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  movq   $0x0,-0x10(%rbp)
  movl   $0x0,-0x18(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  jmp    L275
L411:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x40,%al
  jle    L89
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x56,%al
  jg     L89
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x37,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L367
L89:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x60,%al
  jle    L119
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x76,%al
  jg     L119
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x57,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L367
L119:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2f,%al
  jle    L483
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x39,%al
  jg     L483
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  sub    $0x30,%eax
  mov    %eax,-0x14(%rbp)
  jmp    L367
L483:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L220
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x3d,%al
  jne    L62
L220:
  addq   $0x1,-0x30(%rbp)
  jmp    L275
L62:
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L367:
  addq   $0x1,-0x30(%rbp)
  mov    -0x10(%rbp),%rax
  and    $0x7,%eax
  test   %rax,%rax
  jne    L144
  cmpq   $0x0,-0x38(%rbp)
  jne    L28
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L28:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  and    $0x7,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x3,%eax
  or     %edx,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x10(%rbp)
  jmp    L275
L144:
  mov    -0x10(%rbp),%rax
  and    $0x7,%eax
  cmp    $0x1,%rax
  jne    L128
  cmpq   $0x0,-0x38(%rbp)
  jne    L115
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L115:
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  and    $0xfffffff8,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  sar    $0x2,%eax
  and    $0x7,%eax
  or     %edx,%eax
  mov    %eax,%edx
  mov    -0x8(%rbp),%rax
  mov    %dl,(%rax)
  cmpq   $0x1,-0x38(%rbp)
  jbe    L10
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  and    $0x3f,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x6,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
L10:
  addq   $0x1,-0x10(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L275
L128:
  mov    -0x10(%rbp),%rax
  and    $0x7,%eax
  cmp    $0x2,%rax
  jne    L436
  cmpq   $0x1,-0x38(%rbp)
  ja     L246
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L246:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  and    $0xffffffc1,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %eax,%eax
  and    $0x3e,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x10(%rbp)
  jmp    L275
L436:
  mov    -0x10(%rbp),%rax
  and    $0x7,%eax
  cmp    $0x3,%rax
  jne    L178
  cmpq   $0x1,-0x38(%rbp)
  ja     L210
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L210:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  and    $0xfffffffe,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  sar    $0x4,%eax
  and    $0x1,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  mov    %dl,(%rax)
  cmpq   $0x2,-0x38(%rbp)
  jbe    L125
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  and    $0xf,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x4,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
L125:
  addq   $0x1,-0x10(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L275
L178:
  mov    -0x10(%rbp),%rax
  and    $0x7,%eax
  cmp    $0x4,%rax
  jne    L169
  cmpq   $0x2,-0x38(%rbp)
  ja     L162
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L162:
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  and    $0xfffffff0,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  sar    %eax
  and    $0xf,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x2,%rax
  mov    %dl,(%rax)
  cmpq   $0x3,-0x38(%rbp)
  jbe    L58
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  and    $0x7f,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x7,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  mov    %dl,(%rax)
L58:
  addq   $0x1,-0x10(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L275
L169:
  mov    -0x10(%rbp),%rax
  and    $0x7,%eax
  cmp    $0x5,%rax
  jne    L2
  cmpq   $0x3,-0x38(%rbp)
  ja     L447
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L447:
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  and    $0xffffff83,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x2,%eax
  and    $0x7c,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x10(%rbp)
  jmp    L275
L2:
  mov    -0x10(%rbp),%rax
  and    $0x7,%eax
  cmp    $0x6,%rax
  jne    L33
  cmpq   $0x3,-0x38(%rbp)
  ja     L426
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L426:
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  and    $0xfffffffc,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  sar    $0x3,%eax
  and    $0x3,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x3,%rax
  mov    %dl,(%rax)
  cmpq   $0x4,-0x38(%rbp)
  jbe    L333
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  and    $0x1f,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  shl    $0x5,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    %dl,(%rax)
L333:
  addq   $0x1,-0x10(%rbp)
  addl   $0x1,-0x18(%rbp)
  jmp    L275
L33:
  cmpq   $0x4,-0x38(%rbp)
  ja     L430
  mov    D44(%rip),%rax
  mov    (%rax),%edx
  mov    D113(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%eax
  jmp    L213
L430:
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%edx
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  and    $0xffffffe0,%edx
  mov    %dl,(%rax)
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  movzbl (%rax),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  and    $0x1f,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x4,%rax
  mov    %dl,(%rax)
  addq   $0x1,-0x10(%rbp)
  addq   $0x5,-0x8(%rbp)
  subq   $0x5,-0x38(%rbp)
  addl   $0x1,-0x18(%rbp)
L275:
  mov    -0x30(%rbp),%rax
  movzbl (%rax),%eax
  test   %al,%al
  jne    L411
  mov    -0x18(%rbp),%eax
L213:
  leave
  ret
```

assistant: ```c
int decode_base32hex(void *dest, char *src, size_t dstsize) {
  size_t processed = 0;
  int full_bytes = 0;
  unsigned char *dst = dest;
  while (*src) {
    int v;
    if (*src >= 'A' && *src <= 'V')
      v = *src - 'A' + 10;
    else if (*src >= 'a' && *src <= 'v')
      v = *src - 'a' + 10;
    else if (*src >= '0' && *src <= '9')
      v = *src - '0';
    else if (isspace(*src) || *src == '=') {
      src++;
      continue;
    } else {
      errno = EINVAL;
      return -1;
    }
    src++;
    if (processed % 8 == 0) {
      if (dstsize <= 0) {
        errno = EINVAL;
        return -1;
      }
      dst[0] &= 0x07;
      dst[0] |= (v << 3) & 0xF8;
      processed++;
    } else if (processed % 8 == 1) {
      if (dstsize < 1) {
        errno = EINVAL;
        return -1;
      }
      dst[0] &= 0xF8;
      dst[0] |= (v >> 2) & 0x07;
      if (dstsize >= 2) {
        dst[1] &= 0x3F;
        dst[1] |= (v << 6) & 0xC0;
      }
      processed++;
      full_bytes++;
    } else if (processed % 8 == 2) {
      if (dstsize < 2) {
        errno = EINVAL;
        return -1;
      }
      dst[1] &= 0xC1;
      dst[1] |= (v << 1) & 0x3E;
      processed++;
    } else if (processed % 8 == 3) {
      if (dstsize < 2) {
        errno = EINVAL;
        return -1;
      }
      dst[1] &= 0xFE;
      dst[1] |= (v >> 4) & 0x01;
      if (dstsize >= 3) {
        dst[2] &= 0x0F;
        dst[2] |= (v << 4) & 0xF0;
      }
      processed++;
      full_bytes++;
    } else if (processed % 8 == 4) {
      if (dstsize < 3) {
        errno = EINVAL;
        return -1;
      }
      dst[2] &= 0xF0;
      dst[2] |= (v >> 1) & 0x0F;
      if (dstsize >= 4) {
        dst[3] &= 0x7F;
        dst[3] |= (v << 7) & 0x80;
      }
      processed++;
      full_bytes++;
    } else if (processed % 8 == 5) {
      if (dstsize < 4) {
        errno = EINVAL;
        return -1;
      }
      dst[3] &= 0x83;
      dst[3] |= (v << 2) & 0x7C;
      processed++;
    } else if (processed % 8 == 6) {
      if (dstsize < 4) {
        errno = EINVAL;
        return -1;
      }
      dst[3] &= 0xFC;
      dst[3] |= (v >> 3) & 0x03;
      if (dstsize >= 5) {
        dst[4] &= 0x1F;
        dst[4] |= (v << 5) & 0xE0;
      }
      processed++;
      full_bytes++;
    } else {
      if (dstsize < 5) {
        errno = EINVAL;
        return -1;
      }
      dst[4] &= 0xE0;
      dst[4] |= v & 0x1F;
      processed++;
      dst += 5;
      dstsize -= 5;
      full_bytes++;
    }
  }
  return full_bytes;
}
```