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

```asm
<strtol>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  mov    %edx,%r14d
  mov    %rdi,%rbp
L210:
  mov    %rbp,%r13
  add    $0x1,%rbp
  movzbl -0x1(%rbp),%ebx
  mov    %ebx,%edi
  call   <isspace@plt>
  mov    %rax,%r12
  test   %rax,%rax
  jne    L210
  cmp    $0x2d,%ebx
  je     L204
  movl   $0x0,(%rsp)
  cmp    $0x2b,%ebx
  je     L251
L153:
  test   $0xffffffef,%r14d
  jne    L235
  cmp    $0x30,%ebx
  je     L49
L235:
  test   %r14d,%r14d
  jne    L114
  cmp    $0x30,%ebx
  setne  %r14b
  movzbl %r14b,%r14d
  lea    0x8(%r14,%r14,1),%r14d
L114:
  cmpl   $0x0,(%rsp)
  je     L226
  mov    D5(%rip),%rax
  mov    (%rax),%rax
  movslq %r14d,%rcx
  mov    %rcx,0x8(%rsp)
  cqto
  idiv   %rcx
  mov    %edx,%ecx
  mov    %rax,%r15
  test   %edx,%edx
  jle    L199
  sub    %r14d,%ecx
  lea    0x1(%rax),%r15
L199:
  neg    %ecx
  mov    %ecx,0x4(%rsp)
  jmp    L281
L204:
  movsbl 0x0(%rbp),%ebx
  lea    0x2(%r13),%rbp
  movl   $0x1,(%rsp)
  jmp    L153
L251:
  movsbl 0x0(%rbp),%ebx
  lea    0x2(%r13),%rbp
  jmp    L153
L49:
  movzbl 0x0(%rbp),%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  jne    L142
  movsbl 0x1(%rbp),%ebx
  add    $0x2,%rbp
  mov    $0x10,%r14d
  jmp    L114
L142:
  mov    $0x30,%ebx
  jmp    L235
L226:
  mov    D57(%rip),%rax
  mov    (%rax),%rax
  movslq %r14d,%rsi
  mov    %rsi,0x8(%rsp)
  cqto
  idiv   %rsi
  mov    %edx,0x4(%rsp)
  mov    %rax,%r15
L281:
  mov    $0x0,%r13d
  jmp    L82
L268:
  mov    %ebx,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L245
  mov    %ebx,%edi
  call   <isupper@plt>
  cmp    $0x1,%rax
  sbb    %eax,%eax
  and    $0x20,%eax
  add    $0x37,%eax
  sub    %eax,%ebx
  jmp    L192
L45:
  mov    D5(%rip),%rax
  mov    (%rax),%r12
  mov    D48(%rip),%rax
  mov    (%rax),%edx
  mov    D2(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%r13d
L267:
  add    $0x1,%rbp
  movzbl -0x1(%rbp),%ebx
L82:
  mov    %ebx,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L268
  sub    $0x30,%ebx
L192:
  cmp    %ebx,%r14d
  jle    L245
  test   %r13d,%r13d
  js     L267
  cmpl   $0x0,(%rsp)
  je     L250
  cmp    %r15,%r12
  jl     L45
  jne    L248
  cmp    0x4(%rsp),%ebx
  jg     L45
L248:
  imul   0x8(%rsp),%r12
  movslq %ebx,%rbx
  sub    %rbx,%r12
  mov    (%rsp),%r13d
  jmp    L267
L250:
  cmp    %r15,%r12
  jg     L74
  jne    L55
  cmp    0x4(%rsp),%ebx
  jle    L55
L74:
  mov    D57(%rip),%rax
  mov    (%rax),%r12
  mov    D48(%rip),%rax
  mov    (%rax),%edx
  mov    D2(%rip),%rax
  mov    %edx,(%rax)
  mov    $0xffffffff,%r13d
  jmp    L267
L55:
  imul   0x8(%rsp),%r12
  movslq %ebx,%rbx
  add    %rbx,%r12
  mov    $0x1,%r13d
  jmp    L267
L245:
  mov    0x10(%rsp),%rax
  test   %rax,%rax
  je     L274
  sub    $0x1,%rbp
  test   %r13d,%r13d
  cmove  0x18(%rsp),%rbp
  mov    %rbp,(%rax)
L274:
  mov    %r12,%rax
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
long strtol(const char *nptr, char **endptr, int base) {
  const char *s;
  long 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 ? LONG_MIN : LONG_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 = LONG_MIN;
        errno = ERANGE;
      } else {
        any = 1;
        acc *= base;
        acc -= c;
      }
    } else {
      if (acc > cutoff || (acc == cutoff && c > cutlim)) {
        any = -1;
        acc = LONG_MAX;
        errno = ERANGE;
      } else {
        any = 1;
        acc *= base;
        acc += c;
      }
    }
  }
  if (endptr != 0)
    *endptr = (char *)(any ? s - 1 : nptr);
  return (acc);
}
```