user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<strnatcmp0>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x40,%rsp
  mov    %rdi,-0x28(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %edx,-0x34(%rbp)
  cmpq   $0x0,-0x28(%rbp)
  je     L56
  cmpq   $0x0,-0x30(%rbp)
  je     L56
  mov    $0x1,%eax
  jmp    L239
L56:
  mov    $0x0,%eax
L239:
  mov    %eax,%edi
  call   <assert@plt>
  movl   $0x0,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  mov    %eax,-0x10(%rbp)
L194:
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x12(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
  jmp    L203
L49:
  addl   $0x1,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x28(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x12(%rbp)
L203:
  movsbl -0x12(%rbp),%eax
  mov    %eax,%edi
  call   <nat_isspace@plt>
  test   %rax,%rax
  jne    L49
  jmp    L208
L240:
  addl   $0x1,-0xc(%rbp)
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movzbl (%rax),%eax
  mov    %al,-0x11(%rbp)
L208:
  movsbl -0x11(%rbp),%eax
  mov    %eax,%edi
  call   <nat_isspace@plt>
  test   %rax,%rax
  jne    L240
  movsbl -0x12(%rbp),%eax
  mov    %eax,%edi
  call   <nat_isdigit@plt>
  test   %rax,%rax
  je     L102
  movsbl -0x11(%rbp),%eax
  mov    %eax,%edi
  call   <nat_isdigit@plt>
  test   %rax,%rax
  je     L102
  cmpb   $0x30,-0x12(%rbp)
  je     L95
  cmpb   $0x30,-0x11(%rbp)
  jne    L153
L95:
  mov    $0x1,%eax
  jmp    L54
L153:
  mov    $0x0,%eax
L54:
  mov    %eax,-0x8(%rbp)
  cmpl   $0x0,-0x8(%rbp)
  je     L58
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <compare_left@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L102
  mov    -0x4(%rbp),%eax
  jmp    L233
L58:
  mov    -0xc(%rbp),%eax
  movslq %eax,%rdx
  mov    -0x30(%rbp),%rax
  add    %rax,%rdx
  mov    -0x10(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x28(%rbp),%rax
  add    %rcx,%rax
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <compare_right@plt>
  mov    %eax,-0x4(%rbp)
  cmpl   $0x0,-0x4(%rbp)
  je     L102
  mov    -0x4(%rbp),%eax
  jmp    L233
L102:
  cmpb   $0x0,-0x12(%rbp)
  jne    L242
  cmpb   $0x0,-0x11(%rbp)
  jne    L242
  mov    $0x0,%eax
  jmp    L233
L242:
  cmpl   $0x0,-0x34(%rbp)
  je     L87
  movsbl -0x12(%rbp),%eax
  mov    %eax,%edi
  call   <nat_toupper@plt>
  mov    %al,-0x12(%rbp)
  movsbl -0x11(%rbp),%eax
  mov    %eax,%edi
  call   <nat_toupper@plt>
  mov    %al,-0x11(%rbp)
L87:
  movzbl -0x12(%rbp),%eax
  cmp    -0x11(%rbp),%al
  jge    L212
  mov    $0xffffffff,%eax
  jmp    L233
L212:
  movzbl -0x12(%rbp),%eax
  cmp    -0x11(%rbp),%al
  jle    L244
  mov    $0x1,%eax
  jmp    L233
L244:
  addl   $0x1,-0x10(%rbp)
  addl   $0x1,-0xc(%rbp)
  jmp    L194
L233:
  leave
  ret
```

assistant: ```c
int strnatcmp0(char const *a, char const *b, int fold_case) {
  int ai, bi;
  char ca, cb;
  int fractional, result;
  assert(a && b);
  ai = bi = 0;
  while (1) {
    ca = a[ai];
    cb = b[bi];
    while (nat_isspace(ca))
      ca = a[++ai];
    while (nat_isspace(cb))
      cb = b[++bi];
    if (nat_isdigit(ca) && nat_isdigit(cb)) {
      fractional = (ca == '0' || cb == '0');
      if (fractional) {
        if ((result = compare_left(a + ai, b + bi)) != 0)
          return result;
      } else {
        if ((result = compare_right(a + ai, b + bi)) != 0)
          return result;
      }
    }
    if (!ca && !cb) {
      return 0;
    }
    if (fold_case) {
      ca = nat_toupper(ca);
      cb = nat_toupper(cb);
    }
    if (ca < cb)
      return -1;
    else if (ca > cb)
      return +1;
    ++ai;
    ++bi;
  }
}
```