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

```asm
<rpmvercmp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  mov    %rdi,%r15
  push   %r14
  mov    %rsi,%r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <strcmp@plt>
  test   %eax,%eax
  jne    L371
L177:
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  jne    L438
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
  nopl   (%rax)
L371:
  mov    %r15,%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     L178
L336:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L336
L178:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L271
  orq    $0x0,-0x8(%rsp,%rdx,1)
L271:
  mov    %r14,%rdi
  lea    0xf(%rsp),%rbx
  call   <strlen@plt>
  mov    %rsp,%rcx
  and    $0xfffffffffffffff0,%rbx
  add    $0x18,%rax
  mov    %rbx,%r12
  mov    %rax,%rdx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rcx
  and    $0xfffffffffffffff0,%rdx
  cmp    %rcx,%rsp
  je     L5
L457:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rcx,%rsp
  jne    L457
L5:
  and    $0xfff,%edx
  sub    %rdx,%rsp
  test   %rdx,%rdx
  je     L484
  orq    $0x0,-0x8(%rsp,%rdx,1)
L484:
  lea    0xf(%rsp),%rcx
  mov    %r15,%rsi
  mov    %rbx,%rdi
  and    $0xfffffffffffffff0,%rcx
  mov    %rcx,%r13
  mov    %rcx,-0x48(%rbp)
  call   <strcpy@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <strcpy@plt>
  movzbl (%rbx),%edx
  mov    -0x48(%rbp),%rcx
  test   %dl,%dl
  je     L300
  movzbl 0x0(%r13),%ebx
  nopl   0x0(%rax,%rax,1)
L337:
  test   %bl,%bl
  jne    L208
  jmp    L22
  nopl   0x0(%rax)
L127:
  movzbl 0x1(%r12),%edx
  add    $0x1,%r12
  test   %dl,%dl
  je     L97
L208:
  movsbl %dl,%edi
  call   <xisalnum@plt>
  test   %eax,%eax
  je     L127
L97:
  movsbl 0x0(%r13),%edi
  test   %dil,%dil
  jne    L118
  jmp    L146
  cs nopw 0x0(%rax,%rax,1)
L261:
  movsbl 0x1(%r13),%edi
  add    $0x1,%r13
  test   %dil,%dil
  je     L146
L118:
  call   <xisalnum@plt>
  test   %eax,%eax
  je     L261
L146:
  movsbl (%r12),%edi
  mov    %r12,%r14
  call   <xisdigit@plt>
  movsbl (%r12),%edi
  test   %rax,%rax
  jne    L345
  jmp    L344
  nopl   0x0(%rax,%rax,1)
L279:
  call   <xisdigit@plt>
  test   %rax,%rax
  je     L489
  movsbl 0x1(%r14),%edi
  add    $0x1,%r14
L345:
  test   %dil,%dil
  jne    L279
L489:
  movzbl 0x0(%r13),%ebx
  test   %bl,%bl
  je     L248
  mov    %r13,%r15
  jmp    L115
  nopw   0x0(%rax,%rax,1)
L458:
  movzbl 0x1(%r15),%ebx
  add    $0x1,%r15
  test   %bl,%bl
  je     L103
L115:
  movsbl %bl,%edi
  call   <xisdigit@plt>
  test   %rax,%rax
  jne    L458
  movzbl (%r15),%ebx
L103:
  movzbl (%r14),%edx
  movb   $0x0,(%r15)
  movb   $0x0,(%r14)
  cmp    %r13,%r15
  je     L248
  cmp    %r12,%r14
  je     L248
  cmpb   $0x30,(%r12)
  mov    %r12,%r8
  jne    L263
  xchg   %ax,%ax
L275:
  add    $0x1,%r8
  cmpb   $0x30,(%r8)
  je     L275
L263:
  cmpb   $0x30,0x0(%r13)
  mov    %r13,%rsi
  jne    L470
  nopl   0x0(%rax)
L360:
  add    $0x1,%rsi
  cmpb   $0x30,(%rsi)
  je     L360
L470:
  mov    %r8,%rdi
  mov    %rsi,-0x48(%rbp)
  mov    %dl,-0x51(%rbp)
  mov    %r8,-0x50(%rbp)
  call   <strlen@plt>
  mov    -0x48(%rbp),%rdi
  mov    %rax,%r12
  call   <strlen@plt>
  mov    -0x48(%rbp),%rsi
  mov    -0x50(%rbp),%r8
  cmp    %rax,%r12
  movzbl -0x51(%rbp),%edx
  jg     L22
  jl     L248
  mov    %r15,%r13
  mov    %r14,%r12
  jmp    L467
  nopl   0x0(%rax,%rax,1)
L232:
  call   <xisalpha@plt>
  test   %rax,%rax
  je     L259
  movsbl 0x1(%r14),%edi
  add    $0x1,%r14
L344:
  test   %dil,%dil
  jne    L232
L259:
  movzbl 0x0(%r13),%ebx
  test   %bl,%bl
  je     L248
  mov    %r13,%r15
  jmp    L452
  xchg   %ax,%ax
L9:
  movzbl 0x1(%r15),%ebx
  add    $0x1,%r15
  test   %bl,%bl
  je     L74
L452:
  movsbl %bl,%edi
  call   <xisalpha@plt>
  test   %rax,%rax
  jne    L9
  movzbl (%r15),%ebx
L74:
  movzbl (%r14),%edx
  movb   $0x0,(%r15)
  movb   $0x0,(%r14)
  cmp    %r12,%r14
  je     L248
  cmp    %r13,%r15
  je     L248
  mov    %r13,%rsi
  mov    %r12,%r8
  mov    %r15,%r13
  mov    %r14,%r12
L467:
  mov    %r8,%rdi
  mov    %dl,-0x48(%rbp)
  call   <strcmp@plt>
  test   %eax,%eax
  js     L248
  jne    L22
  movzbl -0x48(%rbp),%edx
  mov    %bl,0x0(%r13)
  mov    %dl,(%r12)
  test   %dl,%dl
  jne    L337
L190:
  neg    %bl
  sbb    %eax,%eax
  jmp    L177
L248:
  mov    $0xffffffff,%eax
  jmp    L177
L22:
  mov    $0x1,%eax
  jmp    L177
L300:
  movzbl (%rcx),%ebx
  jmp    L190
L438:
  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 && !xisalnum(*one))
      one++;
    while (*two && !xisalnum(*two))
      two++;
    str1 = one;
    str2 = two;
    if (xisdigit(*str1)) {
      while (*str1 && xisdigit(*str1))
        str1++;
      while (*str2 && xisdigit(*str2))
        str2++;
      isnum = 1;
    } else {
      while (*str1 && xisalpha(*str1))
        str1++;
      while (*str2 && xisalpha(*str2))
        str2++;
      isnum = 0;
    }
    oldch1 = *str1;
    *str1 = '\0';
    oldch2 = *str2;
    *str2 = '\0';
    if (one == str1)
      return -1;
    if (two == str2)
      return -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 < 0)
      return -1;
    else if (rc > 0)
      return 1;
    *str1 = oldch1;
    one = str1;
    *str2 = oldch2;
    two = str2;
  }
  if ((!*one) && (!*two))
    return 0;
  if (!*one)
    return -1;
  else
    return 1;
}
```