user: 这段汇编代码用C语言表示是什么样的？

```asm
<getrate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %rdi,-0x18(%rbp)
  mov    -0x18(%rbp),%rax
  mov    %rax,-0x8(%rbp)
  cmpq   $0x0,-0x18(%rbp)
  setne  %al
  movzbl %al,%eax
  mov    %eax,%edi
  call   <assert@plt>
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <get2@plt>
  mov    %eax,-0xc(%rbp)
  mov    -0x8(%rbp),%rax
  add    $0x10,%rax
  mov    (%rax),%rax
  mov    %eax,%edx
  mov    $0x38,%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    -0x8(%rbp),%rax
  add    $0x18,%rax
  mov    (%rax),%rax
  mov    %eax,%esi
  mov    $0x30,%eax
  mov    %eax,%ecx
  shl    %cl,%esi
  mov    %esi,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x20,%rax
  mov    (%rax),%rax
  mov    %eax,%esi
  mov    $0x28,%eax
  mov    %eax,%ecx
  shl    %cl,%esi
  mov    %esi,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x28,%rax
  mov    (%rax),%rax
  mov    %eax,%esi
  mov    $0x20,%eax
  mov    %eax,%ecx
  shl    %cl,%esi
  mov    %esi,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x30,%rax
  mov    (%rax),%rax
  shl    $0x18,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x38,%rax
  mov    (%rax),%rax
  shl    $0x10,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x40,%rax
  mov    (%rax),%rax
  shl    $0x8,%eax
  or     %eax,%edx
  mov    -0x8(%rbp),%rax
  add    $0x48,%rax
  mov    (%rax),%rax
  or     %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0xc(%rbp),%eax
  sar    $0xf,%eax
  test   %eax,%eax
  jne    L122
  cmpl   $0x3ffe,-0xc(%rbp)
  jg     L134
L122:
  mov    $0x0,%eax
  jmp    L3
L134:
  subl   $0x3fff,-0xc(%rbp)
  cmpl   $0x5f,-0xc(%rbp)
  jle    L130
  mov    D47(%rip),%rax
  mov    (%rax),%edx
  mov    D93(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L3
L130:
  cmpl   $0x3e,-0xc(%rbp)
  jg     L49
  mov    $0x3f,%eax
  sub    -0xc(%rbp),%eax
  mov    %eax,-0xc(%rbp)
  mov    D81(%rip),%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  sar    %cl,%edx
  mov    %edx,%eax
  and    -0x10(%rbp),%eax
  test   %eax,%eax
  je     L66
  mov    D47(%rip),%rax
  mov    (%rax),%edx
  mov    D93(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L3
L66:
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  sarl   %cl,-0x10(%rbp)
  jmp    L77
L49:
  cmpl   $0x3f,-0xc(%rbp)
  jle    L77
  subl   $0x3f,-0xc(%rbp)
  mov    D81(%rip),%rax
  mov    (%rax),%edx
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  shl    %cl,%edx
  mov    %edx,%eax
  and    -0x10(%rbp),%eax
  test   %eax,%eax
  je     L20
  mov    D47(%rip),%rax
  mov    (%rax),%edx
  mov    D93(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L3
L20:
  mov    -0xc(%rbp),%eax
  mov    %eax,%ecx
  shll   %cl,-0x10(%rbp)
L77:
  mov    D104(%rip),%rax
  mov    (%rax),%eax
  cmp    %eax,-0x10(%rbp)
  jle    L78
  mov    D47(%rip),%rax
  mov    (%rax),%edx
  mov    D93(%rip),%rax
  mov    %edx,(%rax)
  mov    $0x0,%eax
  jmp    L3
L78:
  mov    -0x10(%rbp),%eax
L3:
  leave
  ret
```

assistant: ```c
uint32_t getrate(const void *b) {
  const uint8_t *ub = b;
  uint64_t v;
  uint32_t e;
  assert(b != NULL);
  e = get2(b);
  v = ((uint64_t)ub[2] << 56) | ((uint64_t)ub[3] << 48) | ((uint64_t)ub[4] << 40) | ((uint64_t)ub[5] << 32) | ((uint64_t)ub[6] << 24) | ((uint64_t)ub[7] << 16) | ((uint64_t)ub[8] << 8) | (uint64_t)ub[9];
  if (e >> 15 || e < 0x3FFF)
    return (0);
  e -= 0x3FFF;
  if (e > 63 + 32)
    do {
      errno = (ERANGE);
      return (0);
    } while (0);
  if (e < 63) {
    e = 63 - e;
    if ((UINT64_MAX >> e) & v)
      do {
        errno = (ERANGE);
        return (0);
      } while (0);
    v >>= e;
  } else if (e > 63) {
    e -= 63;
    if ((UINT64_MAX << e) & v)
      do {
        errno = (ERANGE);
        return (0);
      } while (0);
    v <<= e;
  }
  if (v > UINT32_MAX)
    do {
      errno = (ERANGE);
      return (0);
    } while (0);
  return (v);
}
```