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

```asm
<strtol>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  mov    -0x34(%rbp),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x28(%rbp),%rax
  mov    %rax,-0x10(%rbp)
  jmp    L79
L256:
  addq   $0x1,-0x10(%rbp)
L79:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L256
  movb   $0x0,-0x1e(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2d,%al
  jne    L151
  movb   $0x1,-0x1e(%rbp)
  addq   $0x1,-0x10(%rbp)
  jmp    L273
L151:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x2b,%al
  jne    L273
  addq   $0x1,-0x10(%rbp)
L273:
  cmpl   $0x0,-0x34(%rbp)
  jne    L128
  movl   $0xa,-0x1c(%rbp)
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L128
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L207
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L298
L207:
  movl   $0x10,-0x1c(%rbp)
  jmp    L128
L298:
  movl   $0x8,-0x1c(%rbp)
L128:
  cmpl   $0x10,-0x34(%rbp)
  jne    L35
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x30,%al
  jne    L35
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x78,%al
  je     L285
  mov    -0x10(%rbp),%rax
  add    $0x1,%rax
  movzbl (%rax),%eax
  cmp    $0x58,%al
  jne    L35
L285:
  addq   $0x2,-0x10(%rbp)
L35:
  movq   $0x0,-0x18(%rbp)
L180:
  mov    -0x10(%rbp),%rax
  lea    0x1(%rax),%rdx
  mov    %rdx,-0x10(%rbp)
  movzbl (%rax),%eax
  movsbl %al,%eax
  mov    %eax,%edi
  call   <toupper@plt>
  mov    %al,-0x1d(%rbp)
  cmpb   $0x40,-0x1d(%rbp)
  jle    L170
  movzbl -0x1d(%rbp),%eax
  sub    $0x37,%eax
  mov    %al,-0x1d(%rbp)
  jmp    L263
L170:
  movzbl -0x1d(%rbp),%eax
  sub    $0x30,%eax
  mov    %al,-0x1d(%rbp)
L263:
  cmpb   $0x0,-0x1d(%rbp)
  js     L56
  mov    -0x1c(%rbp),%eax
  cmp    %al,-0x1d(%rbp)
  jge    L56
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  mov    -0x1c(%rbp),%eax
  cltq
  mov    -0x18(%rbp),%rdx
  imul   %rdx,%rax
  mov    %rax,-0x18(%rbp)
  movsbq -0x1d(%rbp),%rax
  add    %rax,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  cmp    -0x8(%rbp),%rax
  jge    L180
  cmpb   $0x0,-0x1e(%rbp)
  je     L160
  mov    D9(%rip),%rax
  mov    (%rax),%rax
  jmp    L200
L160:
  mov    D36(%rip),%rax
  mov    (%rax),%rax
L200:
  mov    %rax,-0x18(%rbp)
  mov    D14(%rip),%rax
  mov    (%rax),%edx
  mov    D12(%rip),%rax
  mov    %edx,(%rax)
L56:
  cmpq   $0x0,-0x30(%rbp)
  je     L108
  subq   $0x1,-0x10(%rbp)
  cmpl   $0x0,-0x34(%rbp)
  jne    L91
  jmp    L58
L242:
  addq   $0x1,-0x10(%rbp)
L58:
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x68,%al
  je     L242
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x75,%al
  je     L242
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x6c,%al
  je     L242
  mov    -0x10(%rbp),%rax
  movzbl (%rax),%eax
  cmp    $0x4c,%al
  je     L242
L91:
  mov    -0x30(%rbp),%rax
  mov    -0x10(%rbp),%rdx
  mov    %rdx,(%rax)
L108:
  cmpb   $0x0,-0x1e(%rbp)
  je     L54
  mov    -0x18(%rbp),%rax
  neg    %rax
  jmp    L260
L54:
  mov    -0x18(%rbp),%rax
L260:
  leave
  ret
```

assistant: ```c
long strtol(const char *__restrict nptr, char **__restrict endptr, int base) {
  long sum, psum;
  char sign;
  int radix = base;
  char *cp = (char *)nptr;
  char digit;
  while (isspace(*cp))
    ++cp;
  sign = 0;
  if (*cp == (char)'-') {
    sign = 1;
    ++cp;
  } else if (*cp == (char)'+')
    ++cp;
  if (base == 0) {
    radix = 10;
    if (*cp == (char)'0') {
      if (cp[1] == (char)'x' || cp[1] == (char)'X') {
        radix = 16;
      } else {
        radix = 8;
      }
    }
  }
  if (base == 16 && *cp == (char)'0' && (cp[1] == (char)'x' || cp[1] == (char)'X'))
    cp += 2;
  sum = 0;
  for (;;) {
    digit = toupper(*(cp++));
    if (digit >= (char)'A')
      digit = (digit - (char)'A') + (char)10;
    else
      digit -= (char)'0';
    if (digit < (char)0 || digit >= (char)radix)
      break;
    psum = sum;
    sum *= radix;
    sum += digit;
    if (sum < psum) {
      sum = sign ? LONG_MIN : LONG_MAX;
      errno = ERANGE;
      break;
    }
  }
  if (endptr) {
    --cp;
    if (base == 0) {
      while (*cp == (char)'h' || *cp == (char)'u' || *cp == (char)'l' || *cp == (char)'L')
        ++cp;
    }
    *endptr = (char *)cp;
  }
  return (sign ? -sum : sum);
}
```