user: Demonstrate the C code that generates the assembly output below:

```asm
<alphanum_compare>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x18,%rsp
  mov    %rdi,%r13
  mov    %rsi,%rbx
  movzbl (%rdi),%edi
  mov    %r13,%rbp
  test   %dil,%dil
  je     L38
L236:
  movsbl %dil,%edi
  call   <tolower@plt>
  mov    %eax,%r12d
  movsbl (%rbx),%edi
  call   <tolower@plt>
  cmp    %eax,%r12d
  jne    L38
  add    $0x1,%rbp
  add    $0x1,%rbx
  movzbl 0x0(%rbp),%edi
  test   %dil,%dil
  jne    L236
L38:
  movsbl 0x0(%rbp),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L43
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L43
  cmp    %rbp,%r13
  jae    L119
  mov    %rbx,%r14
  mov    %rbp,%r12
  cmpb   $0x30,(%rbx)
  jne    L95
  lea    -0x1(%rbp),%r12
  lea    -0x1(%rbx),%r14
  cmp    %r12,%r13
  jae    L14
L95:
  sub    %r12,%r13
  add    %r14,%r13
L35:
  cmpb   $0x30,(%r12)
  jne    L14
  sub    $0x1,%r12
  sub    $0x1,%r14
  cmp    %r13,%r14
  jne    L35
  mov    %r13,%r14
  jmp    L14
L119:
  mov    %rbp,%r12
  mov    %rbx,%r14
L14:
  movsbl (%r12),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L1
  add    $0x1,%r12
  add    $0x1,%r14
L1:
  mov    $0x0,%r15d
  mov    $0x0,%r13d
  jmp    L54
L237:
  lea    0x0(%r13,%r13,4),%edx
  movsbl (%r12,%r15,1),%eax
  lea    -0x30(%rax,%rdx,2),%r13d
  add    $0x1,%r15
L54:
  mov    %r15d,0x8(%rsp)
  movsbl (%r12,%r15,1),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L237
  mov    $0x0,%r12d
  mov    $0x0,%r15d
  jmp    L79
L101:
  lea    (%r15,%r15,4),%edx
  movsbl (%r14,%r12,1),%eax
  lea    -0x30(%rax,%rdx,2),%r15d
  add    $0x1,%r12
L79:
  mov    %r12d,0xc(%rsp)
  movsbl (%r14,%r12,1),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L101
  cmpl   $0x8,0x8(%rsp)
  jg     L193
  cmpl   $0x8,0xc(%rsp)
  jg     L193
  test   %r15d,%r15d
  setne  %dl
  cmp    %r15d,%r13d
  setne  %al
  test   %al,%dl
  je     L42
  test   %r13d,%r13d
  je     L42
  mov    %r13d,%eax
  sub    %r15d,%eax
  jmp    L94
L193:
  mov    0x8(%rsp),%ecx
  mov    %ecx,%eax
  mov    0xc(%rsp),%esi
  sub    %esi,%eax
  cmp    %esi,%ecx
  jne    L94
  movsbl 0x0(%rbp),%eax
  movsbl (%rbx),%edx
  sub    %edx,%eax
  jmp    L94
L42:
  movsbl 0x0(%rbp),%eax
  movsbl (%rbx),%edx
  sub    %edx,%eax
  jmp    L94
L43:
  movsbl 0x0(%rbp),%edi
  call   <tolower@plt>
  mov    %eax,%r13d
  movsbl (%rbx),%edi
  call   <tolower@plt>
  mov    %eax,%edx
  mov    %r13d,%eax
  sub    %edx,%eax
L94:
  add    $0x18,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

assistant: ```c
int alphanum_compare(const char *t1, const char *s2) {
  int n1, n2, cnt1, cnt2;
  const char *u1, *u2;
  const char *s1 = t1;
  while (*s1 && tolower(*s1) == tolower(*s2)) {
    s1++;
    s2++;
  }
  if (isdigit(*s1) && isdigit(*s2)) {
    u1 = s1;
    u2 = s2;
    n1 = n2 = 0;
    cnt1 = cnt2 = 0;
    if (s1 > t1 && *s2 == '0') {
      s1--;
      s2--;
    }
    while (s1 > t1 && *s1 == '0') {
      s1--;
      s2--;
    }
    if (!isdigit(*s1)) {
      s1++;
      s2++;
    }
    while (isdigit(*s1)) {
      cnt1++;
      n1 = (n1 * 10) + (*s1++ - '0');
    }
    while (isdigit(*s2)) {
      cnt2++;
      n2 = (n2 * 10) + (*s2++ - '0');
    }
    if (cnt1 > 8 || cnt2 > 8) {
      if (cnt1 == cnt2)
        return (*u1 - *u2);
      return (cnt1 - cnt2);
    }
    if (n1 && n2 && n1 != n2)
      return (n1 - n2);
    return (*u1 - *u2);
  }
  return (tolower(*s1) - tolower(*s2));
}
```