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

```asm
<strtoll>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,0x28(%rsp)
  mov    %rsi,0x18(%rsp)
  cmp    $0x1,%edx
  je     L161
  mov    %edx,%ebx
  mov    %rdi,%r15
  cmp    $0x24,%edx
  ja     L161
  nopl   0x0(%rax,%rax,1)
L181:
  mov    %r15,%rbp
  movzbl (%r15),%r13d
  add    $0x1,%r15
  mov    %r13d,%edi
  call   <isspace@plt>
  mov    %rax,%r12
  test   %rax,%rax
  jne    L181
  cmp    $0x2d,%r13d
  je     L146
  xor    %r14d,%r14d
  cmp    $0x2b,%r13d
  je     L54
L277:
  test   $0xffffffef,%ebx
  jne    L27
  cmp    $0x30,%r13d
  je     L329
  test   %ebx,%ebx
  jne    L27
  movq   $0xa,0x20(%rsp)
  mov    $0xa,%ebx
  jmp    L285
  nopl   0x0(%rax,%rax,1)
L161:
  mov    0x18(%rsp),%rax
  test   %rax,%rax
  je     L104
  mov    0x28(%rsp),%rsi
  mov    %rsi,(%rax)
L104:
  mov    D70(%rip),%rax
  xor    %r12d,%r12d
  mov    (%rax),%edx
  mov    D24(%rip),%rax
  mov    %edx,(%rax)
L148:
  add    $0x38,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L27:
  movslq %ebx,%rax
  mov    %rax,0x20(%rsp)
L285:
  test   %r14d,%r14d
  je     L47
  mov    D68(%rip),%rax
  mov    (%rax),%rax
  cqto
  idivq  0x20(%rsp)
  mov    %rax,0x8(%rsp)
  mov    %edx,%edi
  test   %rdx,%rdx
  jle    L361
  addq   $0x1,0x8(%rsp)
  sub    %ebx,%edi
L361:
  neg    %edi
  mov    %edi,0x14(%rsp)
L174:
  xor    %ebp,%ebp
  jmp    L157
L60:
  cmp    0x8(%rsp),%r12
  jl     L354
  jne    L124
  cmp    0x14(%rsp),%ecx
  jle    L124
L354:
  mov    D68(%rip),%rax
L119:
  mov    (%rax),%r12
  mov    D5(%rip),%rax
  mov    $0xffffffff,%ebp
  mov    (%rax),%edx
  mov    D24(%rip),%rax
  mov    %edx,(%rax)
L232:
  movzbl (%r15),%r13d
  add    $0x1,%r15
L157:
  mov    %r13d,%edi
  call   <isdigit@plt>
  lea    -0x30(%r13),%ecx
  test   %rax,%rax
  je     L16
  cmp    %ecx,%ebx
  jle    L10
L281:
  cmp    $0xffffffff,%ebp
  je     L232
  test   %r14d,%r14d
  jne    L60
  cmp    0x8(%rsp),%r12
  jg     L342
  jne    L306
  cmp    0x14(%rsp),%ecx
  jle    L306
L342:
  mov    D7(%rip),%rax
  jmp    L119
  nopw   0x0(%rax,%rax,1)
L16:
  mov    %r13d,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L10
  mov    %r13d,%edi
  call   <isupper@plt>
  mov    %r13d,%ecx
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0x20,%eax
  add    $0x37,%eax
  sub    %eax,%ecx
  cmp    %ecx,%ebx
  jg     L281
L10:
  mov    0x18(%rsp),%rax
  test   %rax,%rax
  je     L148
  lea    -0x1(%r15),%rsi
  test   %ebp,%ebp
  cmove  0x28(%rsp),%rsi
  mov    %rsi,(%rax)
  jmp    L148
  nopl   0x0(%rax)
L306:
  imul   0x20(%rsp),%r12
  movslq %ecx,%rcx
  mov    $0x1,%ebp
  add    %rcx,%r12
  jmp    L232
  cs nopw 0x0(%rax,%rax,1)
L124:
  imul   0x20(%rsp),%r12
  movslq %ecx,%rcx
  mov    %r14d,%ebp
  sub    %rcx,%r12
  jmp    L232
  nopl   0x0(%rax)
L47:
  mov    D7(%rip),%rax
  mov    (%rax),%rax
  cqto
  idivq  0x20(%rsp)
  mov    %edx,0x14(%rsp)
  mov    %rax,0x8(%rsp)
  jmp    L174
  nopw   0x0(%rax,%rax,1)
L54:
  movsbl (%r15),%r13d
  lea    0x2(%rbp),%r15
  jmp    L277
  nopl   (%rax)
L329:
  movzbl (%r15),%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  je     L40
  test   %ebx,%ebx
  jne    L27
  movq   $0x8,0x20(%rsp)
  mov    $0x8,%ebx
  jmp    L285
  cs nopw 0x0(%rax,%rax,1)
L146:
  movsbl (%r15),%r13d
  mov    $0x1,%r14d
  lea    0x2(%rbp),%r15
  jmp    L277
L40:
  movsbl 0x1(%r15),%r13d
  mov    $0x10,%ebx
  add    $0x2,%r15
  movq   $0x10,0x20(%rsp)
  jmp    L285
```

assistant: ```c
long long strtoll(const char *nptr, char **endptr, int base) {
  const char *s;
  long long acc, cutoff;
  int c;
  int neg, any, cutlim;
  if (base < 0 || base == 1 || base > 36) {
    if (endptr != 0)
      *endptr = (char *)nptr;
    errno = EINVAL;
    return 0;
  }
  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 ? LLONG_MIN : LLONG_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 = LLONG_MIN;
        errno = ERANGE;
      } else {
        any = 1;
        acc *= base;
        acc -= c;
      }
    } else {
      if (acc > cutoff || (acc == cutoff && c > cutlim)) {
        any = -1;
        acc = LLONG_MAX;
        errno = ERANGE;
      } else {
        any = 1;
        acc *= base;
        acc += c;
      }
    }
  }
  if (endptr != 0)
    *endptr = (char *)(any ? s - 1 : nptr);
  return (acc);
}
```