user: 这段汇编代码用C语言表示是什么样的:

```asm
<strtoimax>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x8(%rbp)
L62:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L62
  cmpl   $0x2d,-0x18(%rbp)
  jne    L255
  movl   $0x1,-0x14(%rbp)
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L186
L255:
  movl   $0x0,-0x14(%rbp)
  cmpl   $0x2b,-0x18(%rbp)
  jne    L186
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x18(%rbp)
L186:
  cmpl   $0x0,-0x34(%rbp)
  je     L305
  cmpl   $0x10,-0x34(%rbp)
  jne    L198
L305:
  cmpl   $0x30,-0x18(%rbp)
  jne    L198
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L100
  mov    -0x8(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L198
L100:
  mov    -0x8(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,-0x18(%rbp)
  addq   $0x2,-0x8(%rbp)
  movl   $0x10,-0x34(%rbp)
L198:
  cmpl   $0x0,-0x34(%rbp)
  jne    L170
  cmpl   $0x30,-0x18(%rbp)
  jne    L61
  mov    $0x8,%eax
  jmp    L26
L61:
  mov    $0xa,%eax
L26:
  mov    %eax,-0x34(%rbp)
L170:
  cmpl   $0x0,-0x14(%rbp)
  je     L80
  mov    D57(%rip),%rax
  mov    (%rax),%eax
  jmp    L264
L80:
  mov    D36(%rip),%rax
  mov    (%rax),%eax
L264:
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x34(%rbp)
  mov    %edx,-0xc(%rbp)
  mov    -0x1c(%rbp),%eax
  cltd
  idivl  -0x34(%rbp)
  mov    %eax,-0x1c(%rbp)
  cmpl   $0x0,-0x14(%rbp)
  je     L139
  cmpl   $0x0,-0xc(%rbp)
  jle    L323
  mov    -0x34(%rbp),%eax
  sub    %eax,-0xc(%rbp)
  addl   $0x1,-0x1c(%rbp)
L323:
  negl   -0xc(%rbp)
L139:
  movl   $0x0,-0x20(%rbp)
  movl   $0x0,-0x10(%rbp)
L224:
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L32
  subl   $0x30,-0x18(%rbp)
  jmp    L22
L32:
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L161
  mov    -0x18(%rbp),%eax
  mov    %eax,%edi
  call   <isupper@plt>
  test   %rax,%rax
  je     L297
  mov    $0x37,%eax
  jmp    L293
L297:
  mov    $0x57,%eax
L293:
  sub    %eax,-0x18(%rbp)
L22:
  mov    -0x18(%rbp),%eax
  cmp    -0x34(%rbp),%eax
  jge    L336
  cmpl   $0x0,-0x10(%rbp)
  js     L174
  cmpl   $0x0,-0x14(%rbp)
  je     L373
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jl     L380
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jne    L241
  mov    -0x18(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jle    L241
L380:
  movl   $0xffffffff,-0x10(%rbp)
  mov    D57(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x20(%rbp)
  mov    D55(%rip),%rax
  mov    (%rax),%edx
  mov    D17(%rip),%rax
  mov    %edx,(%rax)
  jmp    L197
L241:
  movl   $0x1,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x18(%rbp),%eax
  sub    %eax,-0x20(%rbp)
  jmp    L197
L373:
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jg     L262
  mov    -0x20(%rbp),%eax
  cmp    -0x1c(%rbp),%eax
  jne    L234
  mov    -0x18(%rbp),%eax
  cmp    -0xc(%rbp),%eax
  jle    L234
L262:
  movl   $0xffffffff,-0x10(%rbp)
  mov    D36(%rip),%rax
  mov    (%rax),%eax
  mov    %eax,-0x20(%rbp)
  mov    D55(%rip),%rax
  mov    (%rax),%edx
  mov    D17(%rip),%rax
  mov    %edx,(%rax)
  jmp    L197
L234:
  movl   $0x1,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  imul   -0x34(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x18(%rbp),%eax
  add    %eax,-0x20(%rbp)
  jmp    L197
L174:
  nop
L197:
  mov    -0x8(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x8(%rbp)
  movzbl (%rax),%eax
  movzbl %al,%eax
  mov    %eax,-0x18(%rbp)
  jmp    L224
L161:
  nop
  jmp    L23
L336:
  nop
L23:
  cmpq   $0x0,-0x30(%rbp)
  je     L185
  cmpl   $0x0,-0x10(%rbp)
  je     L367
  mov    -0x8(%rbp),%rax
  sub    $0x1,%rax
  jmp    L151
L367:
  mov    -0x28(%rbp),%rax
L151:
  mov    -0x30(%rbp),%rdx
  mov    %rax,(%rdx)
L185:
  mov    -0x20(%rbp),%eax
  leave
  ret
```

assistant: ```c
intmax_t strtoimax(const char *nptr, char **endptr, int base) {
  const char *s;
  intmax_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 = neg ? INTMAX_MIN : INTMAX_MAX;
  cutlim = cutoff % base;
  cutoff /= base;
  if (neg) {
    if (cutlim > 0) {
      cutlim -= base;
      cutoff += 1;
    }
    cutlim = -cutlim;
  }
  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 (neg) {
      if (acc < cutoff || (acc == cutoff && c > cutlim)) {
        any = -1;
        acc = INTMAX_MIN;
        errno = ERANGE;
      } else {
        any = 1;
        acc *= base;
        acc -= c;
      }
    } else {
      if (acc > cutoff || (acc == cutoff && c > cutlim)) {
        any = -1;
        acc = INTMAX_MAX;
        errno = ERANGE;
      } else {
        any = 1;
        acc *= base;
        acc += c;
      }
    }
  }
  if (endptr != 0)
    *endptr = (char *)(any ? s - 1 : nptr);
  return (acc);
}
```