user: Translate the below assembly code into C programming language:

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

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));
}
```