user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<is_number>:
  endbr64
  push   %rbx
  mov    %rdi,%rbx
  call   <strlen@plt>
  mov    $0x1,%r10d
  test   %eax,%eax
  je     L86
  mov    %eax,%edi
  movzbl (%rbx),%eax
  sub    $0x2b,%eax
  test   $0xfd,%al
  sete   %dl
  sete   %al
  movzbl %dl,%edx
  cmp    %edx,%edi
  jle    L86
  movzbl %al,%eax
  xor    %r10d,%r10d
  xor    %r9d,%r9d
  xor    %ecx,%ecx
  jmp    L163
  nop
L30:
  lea    -0x30(%rdx),%esi
  cmp    $0x9,%sil
  seta   %r8b
  cmp    $0x2e,%dl
  setne  %sil
  test   %sil,%r8b
  jne    L180
  test   %ecx,%ecx
  jne    L180
  cmp    $0x2e,%dl
  je     L162
  add    $0x1,%r9d
  xor    %ecx,%ecx
L88:
  add    $0x1,%rax
  cmp    %eax,%edi
  jle    L92
L163:
  movzbl (%rbx,%rax,1),%edx
  mov    %eax,%r8d
  mov    %edx,%esi
  and    $0xffffffdf,%esi
  cmp    $0x45,%sil
  je     L214
  cmp    $0x20,%dl
  jne    L30
  test   %r9d,%r9d
  je     L180
  add    $0x1,%rax
  add    $0x1,%ecx
  cmp    %eax,%edi
  jg     L163
L92:
  xor    %r10d,%r10d
  test   %r9d,%r9d
  sete   %r10b
L86:
  mov    %r10d,%eax
  pop    %rbx
  ret
  nopl   0x0(%rax)
L162:
  test   %r10d,%r10d
  jne    L86
  mov    $0x1,%r10d
  jmp    L88
  nopl   (%rax)
L180:
  mov    $0x1,%r10d
  pop    %rbx
  mov    %r10d,%eax
  ret
  nopl   0x0(%rax,%rax,1)
L214:
  mov    $0x1,%r10d
  test   %r9d,%r9d
  je     L86
  lea    0x1(%rax),%eax
  cmp    %eax,%edi
  je     L86
  movslq %eax,%rdx
  add    $0x2,%r8d
  movzbl (%rbx,%rdx,1),%edx
  sub    $0x2b,%edx
  and    $0xfd,%edx
  cmove  %r8d,%eax
  cmp    %eax,%edi
  jle    L86
  movslq %eax,%rdx
  sub    $0x1,%edi
  sub    %eax,%edi
  lea    0x1(%rbx,%rdx,1),%rax
  lea    (%rbx,%rdx,1),%rsi
  add    %rdi,%rax
  xor    %edi,%edi
  jmp    L49
  xchg   %ax,%ax
L151:
  sub    $0x30,%edx
  cmp    $0x9,%dl
  ja     L180
  test   %ecx,%ecx
  jne    L180
  add    $0x1,%edi
L58:
  add    $0x1,%rsi
  cmp    %rsi,%rax
  je     L99
L49:
  movzbl (%rsi),%edx
  cmp    $0x20,%dl
  jne    L151
  test   %edi,%edi
  je     L180
  add    $0x1,%ecx
  jmp    L58
L99:
  xor    %r10d,%r10d
  jmp    L86
```

assistant: ```c
int is_number(char *str) {
  int i = 0, len, hasspace = 0, hassign = 0, digit = 0, hasdot = 0, hasexp = 0;
  len = strlen(str);
  if (!len)
    return 1;
  if ((str[0] == '+') || (str[0] == '-')) {
    hassign++;
    i++;
  }
  for (; i < len; i++) {
    if ((str[i] == 'e') || (str[i] == 'E')) {
      if ((!digit) || hasexp) {
        return 1;
      }
      hasexp++;
      hassign = 0;
      digit = 0;
      break;
    }
    if (str[i] == ' ') {
      if (!digit) {
        return 1;
      }
      hasspace++;
    } else {
      if (((str[i] < 48) || (str[i] > 57)) && str[i] != '.') {
        return 1;
      } else {
        if (hasspace) {
          return 1;
        }
        if (str[i] == '.') {
          if (hasdot)
            return 1;
          hasdot++;
        } else {
          digit++;
        }
      }
    }
  }
  if (hasexp) {
    if (++i == len) {
      return 1;
    }
    if ((str[i] == '+') || (str[i] == '-')) {
      hassign++;
      i++;
    }
    for (; i < len; i++) {
      if (str[i] == ' ') {
        if (!digit) {
          return 1;
        }
        hasspace++;
      } else {
        if ((str[i] < 48) || (str[i] > 57)) {
          return 1;
        } else {
          if (hasspace) {
            return 1;
          }
          digit++;
        }
      }
    }
  }
  if (digit)
    return 0;
  else
    return 1;
}
```