user: What is the c source code of the assembly code below?

```asm
<strtoumax>:
  endbr64
  push   %r15
  mov    %rdi,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x8(%rsp)
  nopl   0x0(%rax)
L77:
  mov    %r15,%rbx
  movzbl (%r15),%r14d
  add    $0x1,%r15
  mov    %r14d,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L77
  cmp    $0x2d,%r14d
  je     L155
  movb   $0x0,0x1f(%rsp)
  cmp    $0x2b,%r14d
  je     L208
L57:
  test   $0xffffffef,%ebp
  jne    L54
  cmp    $0x30,%r14d
  je     L5
  test   %ebp,%ebp
  jne    L54
  mov    $0xa,%ebp
L54:
  mov    D3(%rip),%rax
  xor    %ebx,%ebx
  xor    %r12d,%r12d
  mov    (%rax),%eax
  cltd
  idiv   %ebp
  mov    %edx,0x18(%rsp)
  mov    %eax,%r13d
  jmp    L222
  xchg   %ax,%ax
L193:
  cmp    %ecx,%ebp
  jle    L141
L102:
  cmp    $0xffffffff,%ebx
  je     L230
  cmp    %r13d,%r12d
  jg     L37
  jne    L132
  cmp    0x18(%rsp),%ecx
  jle    L132
L37:
  mov    D3(%rip),%rax
  mov    $0xffffffff,%ebx
  mov    (%rax),%r12d
  mov    D13(%rip),%rax
  mov    (%rax),%edx
  mov    D37(%rip),%rax
  mov    %edx,(%rax)
L230:
  movzbl (%r15),%r14d
  add    $0x1,%r15
L222:
  mov    %r14d,%edi
  call   <isdigit@plt>
  lea    -0x30(%r14),%ecx
  test   %rax,%rax
  jne    L193
  mov    %r14d,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L141
  mov    %r14d,%edi
  call   <isupper@plt>
  mov    %r14d,%ecx
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0x20,%eax
  add    $0x37,%eax
  sub    %eax,%ecx
  cmp    %ecx,%ebp
  jg     L102
L141:
  test   %ebx,%ebx
  jle    L79
  cmpb   $0x0,0x1f(%rsp)
  je     L79
  neg    %r12d
  cmpq   $0x0,0x8(%rsp)
  je     L194
L43:
  lea    -0x1(%r15),%rax
  mov    %rax,0x10(%rsp)
  mov    0x8(%rsp),%rax
  mov    0x10(%rsp),%rsi
  mov    %rsi,(%rax)
L194:
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L132:
  imul   %ebp,%r12d
  mov    $0x1,%ebx
  add    %ecx,%r12d
  jmp    L230
  nopl   0x0(%rax)
L79:
  cmpq   $0x0,0x8(%rsp)
  je     L194
  test   %ebx,%ebx
  jne    L43
  mov    0x8(%rsp),%rax
  mov    0x10(%rsp),%rsi
  mov    %rsi,(%rax)
  jmp    L194
  nopl   0x0(%rax,%rax,1)
L208:
  movsbl (%r15),%r14d
  lea    0x2(%rbx),%r15
  jmp    L57
  nopl   (%rax)
L155:
  movsbl (%r15),%r14d
  movb   $0x1,0x1f(%rsp)
  lea    0x2(%rbx),%r15
  jmp    L57
  nopw   0x0(%rax,%rax,1)
L5:
  movzbl (%r15),%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  jne    L69
  movsbl 0x1(%r15),%r14d
  mov    $0x10,%ebp
  add    $0x2,%r15
  jmp    L54
L69:
  test   %ebp,%ebp
  mov    $0x8,%eax
  cmove  %eax,%ebp
  jmp    L54
```

assistant: ```c
uintmax_t strtoumax(const char *nptr, char **endptr, int base) {
  const char *s;
  uintmax_t acc, cutoff;
  int c;
  int neg, any, cutlim;
  s = nptr;
  do {
    c = (unsigned char)*s++;
  } while (isspace(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')) {
    c = s[1];
    s += 2;
    base = 16;
  }
  if (base == 0)
    base = c == '0' ? 8 : 10;
  cutoff = UINTMAX_MAX / (uintmax_t)base;
  cutlim = UINTMAX_MAX % (uintmax_t)base;
  for (acc = 0, any = 0;; c = (unsigned char)*s++) {
    if (isdigit(c))
      c -= '0';
    else if (isalpha(c))
      c -= isupper(c) ? 'A' - 10 : 'a' - 10;
    else
      break;
    if (c >= base)
      break;
    if (any < 0)
      continue;
    if (acc > cutoff || (acc == cutoff && c > cutlim)) {
      any = -1;
      acc = UINTMAX_MAX;
      errno = ERANGE;
    } else {
      any = 1;
      acc *= (uintmax_t)base;
      acc += c;
    }
  }
  if (neg && any > 0)
    acc = -acc;
  if (endptr != 0)
    *endptr = (char *)(any ? s - 1 : nptr);
  return (acc);
}
```