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

```asm
<strtoimax>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r13
  mov    %edx,%ebp
  mov    %rdi,%rbx
L47:
  mov    %rbx,%r15
  add    $0x1,%rbx
  movzbl -0x1(%rbx),%r14d
  movzbl %r14b,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L47
  cmp    $0x2d,%r14b
  je     L65
  mov    $0x0,%r8d
  cmp    $0x2b,%r14b
  je     L184
L129:
  test   $0xffffffef,%ebp
  jne    L93
  cmp    $0x30,%r14b
  je     L198
L93:
  test   %ebp,%ebp
  jne    L64
  cmp    $0x30,%r14b
  setne  %bpl
  movzbl %bpl,%ebp
  lea    0x8(%rbp,%rbp,1),%ebp
L216:
  test   %r8d,%r8d
  je     L38
  mov    D30(%rip),%rax
  mov    (%rax),%eax
  neg    %eax
L48:
  cltd
  idiv   %ebp
  mov    %eax,%edi
  mov    $0x0,%esi
  mov    $0x0,%eax
  mov    $0xffffffff,%r9d
  mov    $0x1,%r10d
  jmp    L237
L65:
  movzbl (%rbx),%r14d
  lea    0x2(%r15),%rbx
  mov    $0x1,%r8d
  jmp    L129
L184:
  movzbl (%rbx),%r14d
  lea    0x2(%r15),%rbx
  jmp    L129
L198:
  movzbl (%rbx),%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  jne    L289
  movzbl 0x1(%rbx),%r14d
  mov    %r14d,%eax
  and    $0xffffffdf,%eax
  sub    $0x41,%eax
  cmp    $0x5,%al
  jbe    L77
  lea    -0x30(%r14),%eax
  cmp    $0x9,%al
  jbe    L77
L289:
  mov    $0x30,%r14d
  test   %ebp,%ebp
  jne    L64
  mov    $0x30,%r14d
  mov    $0x8,%ebp
  jmp    L216
L77:
  add    $0x2,%rbx
  mov    $0x10,%ebp
  jmp    L216
L64:
  lea    -0x2(%rbp),%edx
  mov    $0x0,%eax
  cmp    $0x22,%edx
  jbe    L216
L103:
  mov    D35(%rip),%rdx
  mov    (%rdx),%ecx
  mov    D45(%rip),%rdx
  mov    %ecx,(%rdx)
  test   %r13,%r13
  je     L51
L303:
  mov    %r12,0x0(%r13)
L51:
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L38:
  mov    D58(%rip),%rax
  mov    (%rax),%eax
  jmp    L48
L84:
  mov    %r9d,%esi
L192:
  add    $0x1,%rbx
  movzbl -0x1(%rbx),%r14d
L237:
  mov    %r14d,%r11d
  lea    -0x30(%r14),%ecx
  cmp    $0x9,%cl
  jbe    L30
  sub    $0x41,%r14d
  lea    -0x37(%r11),%ecx
  cmp    $0x19,%r14b
  jbe    L30
  lea    -0x61(%r11),%ecx
  cmp    $0x19,%cl
  ja     L300
  lea    -0x57(%r11),%ecx
L30:
  movsbl %cl,%ecx
  cmp    %ebp,%ecx
  jge    L300
  test   %esi,%esi
  js     L84
  cmp    %edi,%eax
  jg     L84
  cmp    %edx,%ecx
  jle    L66
  mov    %r9d,%esi
  cmp    %edi,%eax
  je     L192
L66:
  imul   %ebp,%eax
  add    %ecx,%eax
  mov    %r10d,%esi
  jmp    L192
L300:
  test   %esi,%esi
  js     L229
  je     L103
  mov    %eax,%edx
  neg    %edx
  test   %r8d,%r8d
  cmovne %edx,%eax
  jmp    L86
L229:
  test   %r8d,%r8d
  je     L130
  mov    D30(%rip),%rax
  mov    (%rax),%eax
L115:
  mov    D24(%rip),%rdx
  mov    (%rdx),%ecx
  mov    D45(%rip),%rdx
  mov    %ecx,(%rdx)
L86:
  lea    -0x1(%rbx),%r12
  test   %r13,%r13
  jne    L303
  jmp    L51
L130:
  mov    D58(%rip),%rax
  mov    (%rax),%eax
  jmp    L115
```

assistant: ```c
intmax_t strtoimax(const char *__restrict nptr, char **__restrict endptr, int base) {
  const char *s;
  uintmax_t acc;
  char c;
  uintmax_t cutoff;
  int neg, any, cutlim;
  s = nptr;
  do {
    c = *s++;
  } while (isspace((unsigned char)c));
  if (c == '-') {
    neg = 1;
    c = *s++;
  } else {
    neg = 0;
    if (c == '+')
      c = *s++;
  }
  if ((base == 0 || base == 16) && c == '0' && (*s == 'x' || *s == 'X') && ((s[1] >= '0' && s[1] <= '9') || (s[1] >= 'A' && s[1] <= 'F') || (s[1] >= 'a' && s[1] <= 'f'))) {
    c = s[1];
    s += 2;
    base = 16;
  }
  if (base == 0)
    base = c == '0' ? 8 : 10;
  acc = any = 0;
  if (base < 2 || base > 36)
    goto noconv;
  cutoff = neg ? (uintmax_t) - (INTMAX_MIN + INTMAX_MAX) + INTMAX_MAX : INTMAX_MAX;
  cutlim = cutoff % base;
  cutoff /= base;
  for (;; c = *s++) {
    if (c >= '0' && c <= '9')
      c -= '0';
    else if (c >= 'A' && c <= 'Z')
      c -= 'A' - 10;
    else if (c >= 'a' && c <= 'z')
      c -= 'a' - 10;
    else
      break;
    if (c >= base)
      break;
    if (any < 0 || acc > cutoff || (acc == cutoff && c > cutlim))
      any = -1;
    else {
      any = 1;
      acc *= base;
      acc += c;
    }
  }
  if (any < 0) {
    acc = neg ? INTMAX_MIN : INTMAX_MAX;
    errno = ERANGE;
  } else if (!any) {
  noconv:
    errno = EINVAL;
  } else if (neg)
    acc = -acc;
  if (endptr != NULL)
    *endptr = (char *)(any ? s - 1 : nptr);
  return (acc);
}
```