user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<strtoll>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x10(%rsp)
  mov    %rsi,0x8(%rsp)
  cmp    $0x1,%edx
  je     L230
  mov    %edx,%r13d
  mov    %rdi,%rbp
  cmp    $0x24,%edx
  ja     L230
L92:
  mov    %rbp,%r14
  add    $0x1,%rbp
  movzbl -0x1(%rbp),%ebx
  mov    %ebx,%edi
  call   <isspace@plt>
  mov    %rax,%r12
  test   %rax,%rax
  jne    L92
  cmp    $0x2d,%ebx
  je     L85
  movl   $0x0,(%rsp)
  cmp    $0x2b,%ebx
  je     L184
L336:
  test   $0xffffffef,%r13d
  jne    L276
  cmp    $0x30,%ebx
  je     L17
L276:
  test   %r13d,%r13d
  jne    L76
  cmp    $0x30,%ebx
  setne  %r13b
  movzbl %r13b,%r13d
  lea    0x8(%r13,%r13,1),%r13d
L76:
  cmpl   $0x0,(%rsp)
  je     L49
  mov    D22(%rip),%rax
  mov    (%rax),%rax
  movslq %r13d,%rcx
  mov    %rcx,0x18(%rsp)
  cqto
  idiv   %rcx
  mov    %edx,%ecx
  mov    %rax,%r15
  test   %edx,%edx
  jle    L127
  sub    %r13d,%ecx
  lea    0x1(%rax),%r15
L127:
  neg    %ecx
  mov    %ecx,0x4(%rsp)
  jmp    L200
L230:
  mov    0x8(%rsp),%rax
  test   %rax,%rax
  je     L320
  mov    0x10(%rsp),%rcx
  mov    %rcx,(%rax)
L320:
  mov    D16(%rip),%rax
  mov    (%rax),%edx
  mov    D58(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x0,%r12d
L246:
  mov    %r12,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L85:
  movsbl 0x0(%rbp),%ebx
  lea    0x2(%r14),%rbp
  movl   $0x1,(%rsp)
  jmp    L336
L184:
  movsbl 0x0(%rbp),%ebx
  lea    0x2(%r14),%rbp
  jmp    L336
L17:
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  jne    L88
  movsbl 0x1(%rbp),%ebx
  add    $0x2,%rbp
  mov    $0x10,%r13d
  jmp    L76
L88:
  mov    $0x30,%ebx
  jmp    L276
L49:
  mov    D51(%rip),%rax
  mov    (%rax),%rax
  movslq %r13d,%rcx
  mov    %rcx,0x18(%rsp)
  cqto
  idiv   %rcx
  mov    %edx,0x4(%rsp)
  mov    %rax,%r15
L200:
  mov    $0x0,%r14d
  jmp    L91
L245:
  mov    %ebx,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L254
  mov    %ebx,%edi
  call   <isupper@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0x20,%eax
  add    $0x37,%eax
  sub    %eax,%ebx
  jmp    L322
L26:
  mov    D22(%rip),%rax
  mov    (%rax),%r12
  mov    D36(%rip),%rax
  mov    (%rax),%edx
  mov    D58(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%r14d
L41:
  add    $0x1,%rbp
  movzbl -0x1(%rbp),%ebx
L91:
  mov    %ebx,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L245
  sub    $0x30,%ebx
L322:
  cmp    %ebx,%r13d
  jle    L254
  test   %r14d,%r14d
  js     L41
  cmpl   $0x0,(%rsp)
  je     L134
  cmp    %r15,%r12
  jl     L26
  jne    L25
  cmp    0x4(%rsp),%ebx
  jg     L26
L25:
  imul   0x18(%rsp),%r12
  movslq %ebx,%rbx
  sub    %rbx,%r12
  mov    (%rsp),%r14d
  jmp    L41
L134:
  cmp    %r15,%r12
  jg     L110
  jne    L99
  cmp    0x4(%rsp),%ebx
  jle    L99
L110:
  mov    D51(%rip),%rax
  mov    (%rax),%r12
  mov    D36(%rip),%rax
  mov    (%rax),%edx
  mov    D58(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%r14d
  jmp    L41
L99:
  imul   0x18(%rsp),%r12
  movslq %ebx,%rbx
  add    %rbx,%r12
  mov    $0x1,%r14d
  jmp    L41
L254:
  mov    0x8(%rsp),%rax
  test   %rax,%rax
  je     L246
  sub    $0x1,%rbp
  test   %r14d,%r14d
  cmove  0x10(%rsp),%rbp
  mov    %rbp,(%rax)
  jmp    L246
```

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);
}
```