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

```asm
<fp_exp10>:
  endbr64
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x8,%rsp
  mov    $0x1,%ebp
  mov    %esi,%ecx
  shl    %cl,%ebp
  movslq %ebp,%rbp
  test   %rdi,%rdi
  jne    L6
L10:
  mov    %rbp,%rax
  add    $0x8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L6:
  mov    %esi,%ebx
  mov    $0x1c,%r12d
  sub    %esi,%r12d
  mov    $0x24d76377,%r13d
  mov    %r12d,%ecx
  sar    %cl,%r13
  imul   %r13,%rdi
  mov    %esi,%ecx
  sar    %cl,%rdi
  mov    %rdi,%r13
  call   <abs@plt>
  mov    %rax,%rdx
  mov    $0x17154765,%eax
  mov    %r12d,%ecx
  sar    %cl,%rax
  imul   %rdx,%rax
  mov    %ebx,%ecx
  sar    %cl,%rax
  lea    -0x1(%rbx),%ecx
  mov    $0x1,%edx
  shl    %cl,%edx
  movslq %edx,%rdx
  lea    (%rax,%rdx,1),%r8
  mov    %rbp,%rax
  neg    %rax
  and    %rax,%r8
  mov    %r8,%rax
  neg    %rax
  test   %r13,%r13
  cmovs  %rax,%r8
  mov    $0x2,%edx
  mov    %ebx,%ecx
  shl    %cl,%edx
  movslq %edx,%rdx
  mov    $0xb17217f,%eax
  mov    %r12d,%ecx
  sar    %cl,%rax
  imul   %r8,%rax
  mov    %ebx,%ecx
  sar    %cl,%rax
  mov    %r13,%rdi
  sub    %rax,%rdi
  mov    %rdi,%r9
  imul   %rdi,%r9
  sar    %cl,%r9
  mov    %rdx,%rax
  imul   %rdi,%rax
  sar    %cl,%rax
  shl    %cl,%rax
  mov    $0x308c,%esi
  mov    %r12d,%ecx
  sar    %cl,%rsi
  imul   %r9,%rsi
  mov    %ebx,%ecx
  sar    %cl,%rsi
  mov    $0xfffffffffff49f4a,%r10
  mov    %r12d,%ecx
  sar    %cl,%r10
  add    %r10,%rsi
  imul   %r9,%rsi
  mov    %ebx,%ecx
  sar    %cl,%rsi
  mov    $0x2aaaaab,%r10d
  mov    %r12d,%ecx
  sar    %cl,%r10
  add    %r10,%rsi
  imul   %r9,%rsi
  mov    %ebx,%ecx
  sar    %cl,%rsi
  add    %rdx,%rsi
  sub    %rdi,%rsi
  cqto
  idiv   %rsi
  add    %rbp,%rax
  mov    %r8,%rdx
  sar    %cl,%rdx
  mov    %rdx,%rcx
  mov    %rbp,%rdx
  shl    %cl,%rdx
  test   %r8,%r8
  js     L17
L33:
  imul   %rax,%rdx
  mov    %ebx,%ecx
  sar    %cl,%rdx
  mov    %rdx,%rbp
  jmp    L10
L17:
  neg    %r8
  mov    %ebx,%ecx
  sar    %cl,%r8
  mov    %rbp,%rdx
  mov    %r8d,%ecx
  sar    %cl,%rdx
  jmp    L33
```

assistant: ```c
long fp_exp10(long x, unsigned int fracbits) {
  long k;
  long z;
  long R;
  long xp;
  const long fp_one = (1 << fracbits);
  const long fp_half = (1 << (fracbits - 1));
  const long fp_two = (2 << fracbits);
  const long fp_mask = (fp_one - 1);
  const long fp_ln2_inv = ((387270501L) >> (28 - fracbits));
  const long fp_ln2 = ((186065279L) >> (28 - fracbits));
  const long fp_ln10 = ((618095479L) >> (28 - fracbits));
  const long fp_exp_zero = ((44739243L) >> (28 - fracbits));
  const long fp_exp_one = ((-745654L) >> (28 - fracbits));
  const long fp_exp_two = ((12428L) >> (28 - fracbits));
  if (x == 0) {
    return fp_one;
  }
  x = (long)((((long long)(x)) * ((long long)(fp_ln10))) >> (fracbits));
  k = ((long)((((long long)(abs(x))) * ((long long)(fp_ln2_inv))) >> (fracbits)) + fp_half) & ~fp_mask;
  if (x < 0) {
    k = -k;
  }
  x -= (long)((((long long)(k)) * ((long long)(fp_ln2))) >> (fracbits));
  z = (long)((((long long)(x)) * ((long long)(x))) >> (fracbits));
  R = fp_two + (long)((((long long)(z)) * ((long long)(fp_exp_zero + (long)((((long long)(z)) * ((long long)(fp_exp_one + (long)((((long long)(z)) * ((long long)(fp_exp_two))) >> (fracbits))))) >> (fracbits))))) >> (fracbits));
  xp = fp_one + (long)((((long long)((long)((((long long)(fp_two)) * ((long long)(x))) >> (fracbits)))) << (fracbits)) / ((long long)(R - x)));
  if (k < 0) {
    k = fp_one >> (-k >> fracbits);
  } else {
    k = fp_one << (k >> fracbits);
  }
  return (long)((((long long)(k)) * ((long long)(xp))) >> (fracbits));
}
```