user: Translate the below assembly code into C programming language:

```asm
<strtoxl>:
  endbr64
  push   %r15
  push   %r14
  lea    0x1(%rdi),%r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %ecx,%ebx
  sub    $0x28,%rsp
  movsbl (%rdi),%r15d
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x10(%rsp)
  jmp    L443
  nopw   0x0(%rax,%rax,1)
L230:
  movsbl (%r14),%r15d
  add    $0x1,%r14
L443:
  movsbl %r15b,%edi
  call   <isspace@plt>
  test   %rax,%rax
  jne    L230
  cmp    $0x2d,%r15b
  je     L51
  cmp    $0x2b,%r15b
  je     L103
L397:
  cmp    $0x1,%ebp
  je     L72
  cmp    $0x24,%ebp
  ja     L72
  test   %ebp,%ebp
  jne    L159
  cmp    $0x30,%r15b
  je     L461
  movq   $0xa,0x8(%rsp)
  mov    $0xa,%ebp
  mov    $0x19999999,%r13d
  jmp    L166
L72:
  mov    0x10(%rsp),%rax
  xor    %r12d,%r12d
  test   %rax,%rax
  je     L373
  mov    0x18(%rsp),%rsi
  mov    %rsi,(%rax)
L373:
  add    $0x28,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L103:
  movsbl (%r14),%r15d
  add    $0x1,%r14
  jmp    L397
  nopw   0x0(%rax,%rax,1)
L51:
  movsbl (%r14),%r15d
  or     $0x2,%ebx
  add    $0x1,%r14
  jmp    L397
  nopl   (%rax)
L159:
  cmp    $0x10,%ebp
  je     L297
  movslq %ebp,%rsi
  mov    $0xffffffff,%eax
  xor    %edx,%edx
  div    %rsi
  mov    %rsi,0x8(%rsp)
  mov    %rax,%r13
L166:
  xor    %r12d,%r12d
  jmp    L409
  nopl   0x0(%rax,%rax,1)
L1:
  je     L235
L216:
  or     $0xc,%ebx
L264:
  movsbl (%r14),%r15d
  add    $0x1,%r14
L409:
  mov    %r15d,%edi
  call   <isdigit@plt>
  lea    -0x30(%r15),%ecx
  test   %rax,%rax
  je     L114
  cmp    %ebp,%ecx
  jae    L240
L211:
  cmp    %r12,%r13
  jbe    L1
  imul   0x8(%rsp),%r12
  or     $0x8,%ebx
  add    %rcx,%r12
  jmp    L264
L461:
  movzbl (%r14),%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  jne    L427
L466:
  movsbl 0x1(%r14),%r15d
  mov    $0x10,%ebp
  add    $0x2,%r14
  movq   $0x10,0x8(%rsp)
  mov    $0xfffffff,%r13d
  jmp    L166
L297:
  cmp    $0x30,%r15b
  je     L90
L361:
  movq   $0x10,0x8(%rsp)
  mov    $0xfffffff,%r13d
  jmp    L166
  nopl   0x0(%rax)
L114:
  mov    %r15d,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L240
  mov    %r15d,%edi
  call   <toupper@plt>
  movsbl %al,%ecx
  sub    $0x37,%ecx
  cmp    %ebp,%ecx
  jb     L211
L240:
  mov    %ebx,%eax
  lea    -0x1(%r14),%rsi
  and    $0x2,%eax
  test   $0x8,%bl
  jne    L272
  xor    %r12d,%r12d
  cmpq   $0x0,0x10(%rsp)
  je     L107
L378:
  mov    0x10(%rsp),%rdx
  mov    0x18(%rsp),%rsi
  mov    %rsi,(%rdx)
L107:
  test   %eax,%eax
  je     L373
L71:
  neg    %r12
  jmp    L373
  nopl   0x0(%rax)
L235:
  mov    $0xffffffff,%eax
  xor    %edx,%edx
  divq   0x8(%rsp)
  cmp    %rdx,%rcx
  ja     L216
  imul   0x8(%rsp),%r12
  or     $0x8,%ebx
  add    %rcx,%r12
  jmp    L264
  xchg   %ax,%ax
L272:
  mov    %ebx,%edx
  and    $0x1,%edx
  and    $0x4,%ebx
  jne    L200
  test   %edx,%edx
  jne    L421
  test   %eax,%eax
  je     L47
  mov    $0xffffffff80000000,%rdx
  cmp    %rdx,%r12
  cmovb  %rdx,%r12
L61:
  cmpq   $0x0,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  jne    L378
  jmp    L71
  nopl   0x0(%rax,%rax,1)
L200:
  mov    $0xffffffff,%r12d
  test   %edx,%edx
  je     L318
L421:
  cmpq   $0x0,0x10(%rsp)
  je     L107
  mov    %rsi,0x18(%rsp)
  jmp    L378
L318:
  mov    $0x7fffffff,%r12d
  test   %eax,%eax
  jne    L30
L54:
  cmpq   $0x0,0x10(%rsp)
  mov    %rsi,0x18(%rsp)
  jne    L378
  jmp    L373
L427:
  movq   $0x8,0x8(%rsp)
  mov    $0x8,%ebp
  mov    $0x1fffffff,%r13d
  jmp    L166
L47:
  mov    $0x7fffffff,%edx
  cmp    %rdx,%r12
  cmova  %rdx,%r12
  jmp    L54
L30:
  mov    $0xffffffff80000000,%r12
  jmp    L61
L90:
  movzbl (%r14),%eax
  and    $0xffffffdf,%eax
  cmp    $0x58,%al
  jne    L361
  jmp    L466
```

assistant: ```c
unsigned long strtoxl(const char *nptr, char **endptr, int ibase, int flags) {
  const unsigned char *p;
  char c;
  unsigned long number;
  unsigned digval;
  unsigned long maxval;
  p = (const unsigned char *)nptr;
  number = 0;
  c = *p++;
  while (isspace(c))
    c = *p++;
  if (c == '-') {
    flags |= 2;
    c = *p++;
  } else if (c == '+') {
    c = *p++;
  }
  if (ibase < 0 || ibase == 1 || ibase > 36) {
    if (endptr)
      *endptr = (char *)nptr;
    return 0L;
  } else if (ibase == 0) {
    if (c != '0') {
      ibase = 10;
    } else if (*p == 'x' || *p == 'X') {
      ibase = 16;
    } else {
      ibase = 8;
    }
  }
  if (ibase == 16) {
    if (c == '0' && (*p == 'x' || *p == 'X')) {
      ++p;
      c = *p++;
    }
  }
  maxval = (2147483647L * 2UL + 1UL) / ibase;
  for (;;) {
    if (isdigit(c)) {
      digval = c - '0';
    } else if (isalpha(c)) {
      digval = toupper(c) - 'A' + 10;
    } else {
      break;
    }
    if (digval >= (unsigned)ibase)
      break;
    flags |= 8;
    if (number < maxval || (number == maxval && (unsigned long)digval <= (2147483647L * 2UL + 1UL) % ibase)) {
      number = number * ibase + digval;
    } else {
      flags |= 4;
    }
    c = *p++;
  }
  --p;
  if (!(flags & 8)) {
    if (endptr)
      p = (const unsigned char *)nptr;
    number = 0;
  } else if ((flags & 4) || (!(flags & 1) && (((flags & 2) && (number < (-2147483647L - 1L))) || (!(flags & 2) && (number > 2147483647L))))) {
    if (flags & 1) {
      number = (2147483647L * 2UL + 1UL);
    } else if (flags & 2) {
      number = (-2147483647L - 1L);
    } else {
      number = 2147483647L;
    }
  }
  if (endptr)
    *endptr = (char *)p;
  if (flags & 2)
    number = (unsigned long)(-(long)number);
  return number;
}
```