user: 请将以下的汇编代码转换成C语言代码：

```asm
<rpmvercmp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%r12
  mov    %rsi,%r14
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <strcmp@plt>
  mov    %eax,-0x48(%rbp)
  test   %eax,%eax
  jne    L448
L252:
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L97
  mov    -0x48(%rbp),%eax
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L448:
  mov    %r12,%rdi
  call   <strlen@plt>
  add    $0x18,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffffff0,%rcx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rdx
  sub    %rax,%rdx
L332:
  cmp    %rdx,%rsp
  je     L40
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L332
L40:
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L109
  orq    $0x0,-0x8(%rsp,%rax,1)
L109:
  lea    0xf(%rsp),%r15
  and    $0xfffffffffffffff0,%r15
  mov    %r15,%rbx
  mov    %r14,%rdi
  call   <strlen@plt>
  add    $0x18,%rax
  mov    %rax,%rdx
  and    $0xfffffffffffffff0,%rdx
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L342:
  cmp    %rcx,%rsp
  je     L514
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L342
L514:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L213
  orq    $0x0,-0x8(%rsp,%rax,1)
L213:
  lea    0xf(%rsp),%rax
  and    $0xfffffffffffffff0,%rax
  mov    %rax,-0x48(%rbp)
  mov    %rax,%r13
  mov    %r12,%rsi
  mov    %r15,%rdi
  call   <strcpy@plt>
  mov    %r14,%rsi
  mov    -0x48(%rbp),%rdi
  call   <strcpy@plt>
  movzbl (%r15),%r15d
  test   %r15b,%r15b
  jne    L15
L3:
  movzbl 0x0(%r13),%eax
  neg    %al
  sbb    %eax,%eax
  mov    %eax,-0x48(%rbp)
  jmp    L252
L201:
  mov    %rbx,%r14
L104:
  movzbl 0x0(%r13),%eax
  mov    %r13,%r12
  test   %al,%al
  je     L307
L18:
  mov    %r13,%r12
L300:
  movsbl %al,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L307
  add    $0x1,%r12
  movzbl (%r12),%eax
  test   %al,%al
  jne    L300
L307:
  movsbl (%r14),%edi
  call   <isdigit@plt>
  test   %rax,%rax
  jne    L513
  movzbl (%r14),%edi
  mov    %r14,%rbx
  test   %dil,%dil
  je     L105
L154:
  movsbl %dil,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L105
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  test   %dil,%dil
  jne    L154
L105:
  movzbl (%r12),%edi
  mov    %r12,%r13
  test   %dil,%dil
  je     L383
L106:
  movsbl %dil,%edi
  call   <isalpha@plt>
  test   %rax,%rax
  je     L217
  add    $0x1,%r13
  movzbl 0x0(%r13),%edi
  test   %dil,%dil
  jne    L106
  movl   $0x0,-0x48(%rbp)
  jmp    L481
L513:
  movzbl (%r14),%edi
  mov    %r14,%rbx
  test   %dil,%dil
  je     L120
L409:
  movsbl %dil,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L120
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  test   %dil,%dil
  jne    L409
L120:
  movzbl (%r12),%edi
  mov    %r12,%r13
  test   %dil,%dil
  je     L351
L498:
  movsbl %dil,%edi
  call   <isdigit@plt>
  test   %rax,%rax
  je     L205
  add    $0x1,%r13
  movzbl 0x0(%r13),%edi
  test   %dil,%dil
  jne    L498
  movl   $0x1,-0x48(%rbp)
  jmp    L481
L351:
  movl   $0x1,-0x48(%rbp)
  jmp    L481
L205:
  movl   $0x1,-0x48(%rbp)
L481:
  movzbl (%rbx),%r15d
  movb   $0x0,(%rbx)
  movzbl 0x0(%r13),%eax
  mov    %al,-0x49(%rbp)
  movb   $0x0,0x0(%r13)
  cmp    %r14,%rbx
  je     L44
  cmp    %r12,%r13
  je     L317
  cmpl   $0x0,-0x48(%rbp)
  jne    L446
L394:
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L1
  mov    %r15b,(%rbx)
  movzbl -0x49(%rbp),%eax
  mov    %al,0x0(%r13)
  test   %r15b,%r15b
  je     L3
L15:
  movzbl 0x0(%r13),%eax
  test   %al,%al
  je     L157
  movzbl (%rbx),%edi
  mov    %rbx,%r14
  test   %dil,%dil
  je     L18
L68:
  movsbl %dil,%edi
  call   <isalnum@plt>
  test   %eax,%eax
  jne    L201
  add    $0x1,%rbx
  movzbl (%rbx),%edi
  test   %dil,%dil
  jne    L68
  mov    %rbx,%r14
  jmp    L104
L383:
  movl   $0x0,-0x48(%rbp)
  jmp    L481
L217:
  movl   $0x0,-0x48(%rbp)
  jmp    L481
L317:
  mov    -0x48(%rbp),%edx
  test   %edx,%edx
  mov    $0xffffffff,%eax
  cmovne %edx,%eax
  mov    %eax,-0x48(%rbp)
  jmp    L252
L446:
  cmpb   $0x30,(%r14)
  jne    L471
L495:
  add    $0x1,%r14
  cmpb   $0x30,(%r14)
  je     L495
L471:
  cmpb   $0x30,(%r12)
  jne    L302
L5:
  add    $0x1,%r12
  cmpb   $0x30,(%r12)
  je     L5
L302:
  mov    %r14,%rdi
  call   <strlen@plt>
  mov    %rax,-0x58(%rbp)
  mov    %r12,%rdi
  call   <strlen@plt>
  mov    -0x58(%rbp),%rcx
  cmp    %rax,%rcx
  jg     L252
  jge    L394
  movl   $0xffffffff,-0x48(%rbp)
  jmp    L252
L1:
  setg   %al
  movzbl %al,%eax
  lea    -0x1(%rax,%rax,1),%eax
  mov    %eax,-0x48(%rbp)
  jmp    L252
L44:
  movl   $0xffffffff,-0x48(%rbp)
  jmp    L252
L157:
  test   %r15b,%r15b
  setne  %al
  movzbl %al,%eax
  mov    %eax,-0x48(%rbp)
  jmp    L252
L97:
  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;
}
```