user: Converte this assembly snippet into its equivalent C code:

```asm
<fp_ess>:
  endbr64
  push   %r15
  xor    %r10d,%r10d
  mov    %ecx,%r15d
  push   %r14
  push   %r13
  push   %r12
  xor    %r12d,%r12d
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x18,%rsp
  mov    %edi,0x4(%rsp)
  mov    %r10d,%edi
  mov    %edx,0xc(%rsp)
  mov    %r10d,0x8(%rsp)
  call   <mpf_init@plt>
  mov    %ebp,%edi
  call   <mpf_init@plt>
  xor    %edi,%edi
  call   <mpf_init@plt>
  mov    %ebp,%edi
  call   <mpf_init@plt>
  mov    %r12d,%edi
  call   <mpf_init@plt>
  xor    %edi,%edi
  call   <mpf_init@plt>
  mov    %ebp,%edi
  call   <mpf_init@plt>
  xor    %edi,%edi
  call   <mpf_init@plt>
  mov    %r12d,%edi
  call   <mpf_init@plt>
  mov    0x8(%rsp),%edi
  mov    %r15d,%esi
  call   <fp_e_pi@plt>
  mov    0x4(%rsp),%edi
  xor    %esi,%esi
  call   <mpf_set_ui@plt>
  xor    %esi,%esi
  mov    %ebx,%edi
  call   <mpf_set_ui@plt>
  mov    %r12d,%edi
  call   <mpf_init@plt>
  mov    %ebp,%edi
  call   <mpf_init@plt>
  mov    $0x1,%esi
  mov    %ebp,%edi
  call   <mpf_set_ui@plt>
  pxor   %xmm0,%xmm0
  mov    %ebp,%esi
  mov    %r12d,%edi
  cvtsi2sd %r15,%xmm0
  mulsd  D0(%rip),%xmm0
  mov    $0x1,%r15d
  addsd  D10(%rip),%xmm0
  cvttsd2si %xmm0,%rdx
  call   <mpf_mul_2exp@plt>
  jmp    L10
  nopl   0x0(%rax)
L12:
  add    $0x1,%r15d
  cmp    $0x3b9aca00,%r15d
  je     L0
L10:
  xor    %ebp,%ebp
  mov    %r15d,%esi
  xor    %r13d,%r13d
  xor    %r12d,%r12d
  mov    %ebp,%edi
  xor    %r14d,%r14d
  call   <mpf_set_ui@plt>
  mov    0xc(%rsp),%edx
  mov    %ebp,%esi
  mov    %r13d,%edi
  call   <mpf_pow_ui@plt>
  xor    %esi,%esi
  lea    (%r15,%r15,1),%edx
  mov    %ebp,%edi
  call   <mpf_pow_ui@plt>
  mov    $0x1,%edx
  mov    %ebp,%esi
  mov    %r12d,%edi
  call   <mpf_add_ui@plt>
  xor    %r11d,%r11d
  mov    $0x1,%edx
  mov    %ebp,%esi
  mov    %r11d,%edi
  mov    %r11d,0x8(%rsp)
  call   <mpf_sub_ui@plt>
  mov    %r12d,%edx
  mov    %r13d,%esi
  mov    %ebp,%edi
  call   <mpf_mul@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    %r14d,%edi
  call   <mpf_ui_div@plt>
  mov    0x4(%rsp),%esi
  mov    %r14d,%edx
  mov    %r12d,%edi
  call   <mpf_add@plt>
  mov    0x4(%rsp),%edi
  mov    %r12d,%esi
  call   <mpf_set@plt>
  mov    0x8(%rsp),%edx
  mov    %r13d,%esi
  mov    %ebp,%edi
  call   <mpf_mul@plt>
  mov    %ebp,%edx
  mov    $0x1,%esi
  mov    %r14d,%edi
  call   <mpf_ui_div@plt>
  mov    %r14d,%edx
  mov    %ebx,%esi
  mov    %r12d,%edi
  call   <mpf_add@plt>
  mov    %r12d,%esi
  mov    %ebx,%edi
  call   <mpf_set@plt>
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <mpf_cmp@plt>
  test   %rax,%rax
  jle    L12
L0:
  xor    %ebp,%ebp
  xor    %edi,%edi
  xor    %r12d,%r12d
  call   <mpf_clear@plt>
  mov    %ebp,%edi
  call   <mpf_clear@plt>
  xor    %edi,%edi
  call   <mpf_clear@plt>
  mov    %ebp,%edi
  call   <mpf_clear@plt>
  mov    %r12d,%edi
  call   <mpf_clear@plt>
  xor    %edi,%edi
  call   <mpf_clear@plt>
  mov    %ebp,%edi
  call   <mpf_clear@plt>
  xor    %edi,%edi
  call   <mpf_clear@plt>
  mov    %r12d,%edi
  call   <mpf_clear@plt>
  mov    %ebp,%edi
  call   <mpf_clear@plt>
  add    $0x18,%rsp
  mov    %r12d,%edi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1120 <mpf_clear@plt>
```

tool_calls: name: unpack_data
arguments: data_label: D0
type_guessed: f64
name: unpack_data
arguments: data_label: D10
type_guessed: f64

tool: D0: 3.321928095

tool: D10: 1

assistant: ```c
void fp_ess(mpf_t ess_plus, mpf_t ess_minus, unsigned int k, unsigned int prec) {
  mpf_t e_pi, en, enp, epip, eppos, epneg, term, oterm, acc;
  mpf_init(e_pi);
  mpf_init(en);
  mpf_init(enp);
  mpf_init(epip);
  mpf_init(eppos);
  mpf_init(epneg);
  mpf_init(term);
  mpf_init(oterm);
  mpf_init(acc);
  fp_e_pi(e_pi, prec);
  mpf_set_ui(ess_plus, 0);
  mpf_set_ui(ess_minus, 0);
  double mex = ((double)prec) * 3.321928095;
  unsigned int imax = (unsigned int)(mex + 1.0);
  mpf_t maxterm, one;
  mpf_init(maxterm);
  mpf_init(one);
  mpf_set_ui(one, 1);
  mpf_mul_2exp(maxterm, one, imax);
  int n;
  for (n = 1; n < 1000000000; n++) {
    mpf_set_ui(en, n);
    mpf_pow_ui(enp, en, k);
    mpf_pow_ui(epip, e_pi, 2 * n);
    mpf_add_ui(eppos, epip, 1);
    mpf_sub_ui(epneg, epip, 1);
    mpf_mul(term, enp, eppos);
    mpf_ui_div(oterm, 1, term);
    mpf_add(acc, ess_plus, oterm);
    mpf_set(ess_plus, acc);
    mpf_mul(term, enp, epneg);
    mpf_ui_div(oterm, 1, term);
    mpf_add(acc, ess_minus, oterm);
    mpf_set(ess_minus, acc);
    if (mpf_cmp(term, maxterm) > 0)
      break;
  }
  mpf_clear(e_pi);
  mpf_clear(en);
  mpf_clear(enp);
  mpf_clear(epip);
  mpf_clear(eppos);
  mpf_clear(epneg);
  mpf_clear(term);
  mpf_clear(oterm);
  mpf_clear(acc);
  mpf_clear(one);
  mpf_clear(maxterm);
}
```