user: What would the C source look like for the assembly code provided here?

```asm
<rpmvercmp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  mov    %rdi,%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L380
L49:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L176
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L380:
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %rsp,%rcx
  add    $0x18,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L320
L372:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L372
L320:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L58
  orq    $0x0,-0x8(%rsp,%rdx,1)
L58:
  mov    %r12,%rdi
  lea    0xf(%rsp),%r15
  call   <strlen@plt>
  mov    %rsp,%rcx
  and    $0xfffffffffffffff0,%r15
  add    $0x18,%rax
  mov    %r15,%rbx
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L39
L390:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L390
L39:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L110
  orq    $0x0,-0x8(%rsp,%rax,1)
L110:
  lea    0xf(%rsp),%rdx
  mov    %r14,%rsi
  mov    %r15,%rdi
  and    $0xfffffffffffffff0,%rdx
  mov    %rdx,%r13
  mov    %rdx,-0x48(%rbp)
  call   <strcpy@plt>
  mov    %r12,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  cmpb   $0x0,(%r15)
  mov    -0x48(%rbp),%rdx
  je     L375
  movzbl 0x0(%r13),%r15d
  nopl   0x0(%rax)
L271:
  test   %r15b,%r15b
  je     L40
  movsbl (%rbx),%edi
  mov    %rbx,%r14
  test   %dil,%dil
  jne    L290
  jmp    L430
  cs nopw 0x0(%rax,%rax,1)
L20:
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
  test   %dil,%dil
  je     L96
L290:
  call   <isalnum@plt>
  test   %eax,%eax
  je     L20
L96:
  movzbl 0x0(%r13),%r15d
  mov    %rbx,%r14
  test   %r15b,%r15b
  je     L204
L430:
  mov    %r13,%r12
  jmp    L26
  nopl   0x0(%rax)
L457:
  movzbl 0x1(%r12),%r15d
  add    $0x1,%r12
  test   %r15b,%r15b
  je     L248
L26:
  movsbl %r15b,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  je     L457
L248:
  movsbl (%rbx),%edi
  call   <isdigit@plt>
  movsbl (%rbx),%edi
  test   %rax,%rax
  jne    L242
  jmp    L206
  nopl   0x0(%rax)
L315:
  call   <isdigit@plt>
  test   %rax,%rax
  je     L250
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
L242:
  test   %dil,%dil
  jne    L315
L250:
  movzbl (%r12),%r15d
  test   %r15b,%r15b
  je     L327
  mov    %r12,%r13
  jmp    L389
  nopw   0x0(%rax,%rax,1)
L94:
  movzbl 0x1(%r13),%r15d
  add    $0x1,%r13
  test   %r15b,%r15b
  je     L185
L389:
  movsbl %r15b,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L94
  movzbl 0x0(%r13),%r15d
L185:
  mov    $0x1,%esi
L115:
  movzbl (%rbx),%ecx
  movb   $0x0,0x0(%r13)
  movb   $0x0,(%rbx)
  cmp    %r14,%rbx
  je     L19
  cmp    %r12,%r13
  je     L9
  test   %esi,%esi
  jne    L520
L161:
  mov    %r12,%rsi
  mov    %r14,%rdi
  mov    %cl,-0x48(%rbp)
  call   <strcmp@plt>
  movzbl -0x48(%rbp),%ecx
  test   %eax,%eax
  jne    L304
  mov    %cl,(%rbx)
  mov    %r15b,0x0(%r13)
  test   %cl,%cl
  jne    L271
L162:
  neg    %r15b
  sbb    %eax,%eax
  jmp    L49
  nopl   (%rax)
L146:
  call   <isalpha@plt>
  test   %rax,%rax
  je     L3
  movsbl 0x1(%rbx),%edi
  add    $0x1,%rbx
L206:
  test   %dil,%dil
  jne    L146
L3:
  movzbl (%r12),%r15d
  test   %r15b,%r15b
  je     L221
  mov    %r12,%r13
  jmp    L437
  nopw   0x0(%rax,%rax,1)
L500:
  movzbl 0x1(%r13),%r15d
  add    $0x1,%r13
  test   %r15b,%r15b
  je     L439
L437:
  movsbl %r15b,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  jne    L500
  movzbl 0x0(%r13),%r15d
L439:
  xor    %esi,%esi
  jmp    L115
L346:
  add    $0x1,%r14
L520:
  cmpb   $0x30,(%r14)
  je     L346
  cmpb   $0x30,(%r12)
  jne    L234
  nopl   0x0(%rax)
L35:
  add    $0x1,%r12
  cmpb   $0x30,(%r12)
  je     L35
L234:
  mov    %r14,%rdi
  mov    %cl,-0x49(%rbp)
  call   <strlen@plt>
  mov    %r12,%rdi
  mov    %rax,-0x48(%rbp)
  call   <strlen@plt>
  cmp    %rax,-0x48(%rbp)
  jg     L40
  movzbl -0x49(%rbp),%ecx
  jge    L161
L19:
  mov    $0xffffffff,%eax
  jmp    L49
  nopl   0x0(%rax)
L204:
  mov    %r13,%r12
  jmp    L248
L304:
  mov    $0xffffffff,%eax
  jle    L49
L40:
  mov    $0x1,%eax
  jmp    L49
L221:
  xor    %esi,%esi
L57:
  mov    $0xffffffff,%eax
  cmp    %rbx,%r14
  je     L49
L9:
  mov    $0xffffffff,%eax
  test   %esi,%esi
  je     L49
  jmp    L40
L327:
  mov    $0x1,%esi
  jmp    L57
L375:
  movzbl (%rdx),%r15d
  jmp    L162
L176:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
int rpmvercmp(const char *a, const char *b) {
  char oldch1, oldch2;
  char *str1, *str2;
  char *one, *two;
  int rc;
  int isnum;
  if (!strcmp(a, b))
    return 0;
  str1 = alloca(strlen(a) + 1);
  str2 = alloca(strlen(b) + 1);
  strcpy(str1, a);
  strcpy(str2, b);
  one = str1;
  two = str2;
  while (*one && *two) {
    while (*one && !isalnum(*one))
      one++;
    while (*two && !isalnum(*two))
      two++;
    str1 = one;
    str2 = two;
    if (isdigit(*str1)) {
      while (*str1 && isdigit(*str1))
        str1++;
      while (*str2 && isdigit(*str2))
        str2++;
      isnum = 1;
    } else {
      while (*str1 && isalpha(*str1))
        str1++;
      while (*str2 && isalpha(*str2))
        str2++;
      isnum = 0;
    }
    oldch1 = *str1;
    *str1 = '\0';
    oldch2 = *str2;
    *str2 = '\0';
    if (one == str1)
      return -1;
    if (two == str2)
      return (isnum ? 1 : -1);
    if (isnum) {
      while (*one == '0')
        one++;
      while (*two == '0')
        two++;
      if (strlen(one) > strlen(two))
        return 1;
      if (strlen(two) > strlen(one))
        return -1;
    }
    rc = strcmp(one, two);
    if (rc)
      return (rc < 1 ? -1 : 1);
    *str1 = oldch1;
    one = str1;
    *str2 = oldch2;
    two = str2;
  }
  if ((!*one) && (!*two))
    return 0;
  if (!*one)
    return -1;
  else
    return 1;
}
```