user: Please show me the C implementation that matches the assembly code listed below:

```asm
<fpsimple_log_9j>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  mov    %r8d,%r12d
  push   %rbp
  mov    %edx,%ebp
  push   %rbx
  mov    %esi,%ebx
  sub    $0x68,%rsp
  mov    %rdi,0x38(%rsp)
  mov    0xb8(%rsp),%r15d
  mov    %ecx,0x18(%rsp)
  mov    0xa0(%rsp),%r13d
  mov    %r9d,0x1c(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  mov    %esi,%eax
  sub    %r15d,%eax
  mov    %eax,%edx
  neg    %edx
  cmovs  %eax,%edx
  mov    %ebp,%eax
  sub    %r13d,%eax
  mov    %eax,%esi
  neg    %esi
  cmovs  %eax,%esi
  mov    0xb0(%rsp),%eax
  sub    %r8d,%eax
  mov    %eax,%edi
  neg    %edi
  cmovs  %eax,%edi
  call   <max3@plt>
  mov    0xb0(%rsp),%edi
  lea    (%rbx,%r15,1),%edx
  lea    0x0(%rbp,%r13,1),%esi
  mov    %eax,%r14d
  add    %r12d,%edi
  call   <min3@plt>
  pxor   %xmm1,%xmm1
  mov    %eax,0x14(%rsp)
  cmp    %eax,%r14d
  jg     L8
  lea    0x40(%rsp),%rax
  mov    %rax,0x30(%rsp)
  lea    0x48(%rsp),%rax
  mov    %rax,0x20(%rsp)
  lea    0x50(%rsp),%rax
  mov    %rax,0x28(%rsp)
  nopl   (%rax)
L18:
  movsd  %xmm1,0x8(%rsp)
  sub    $0x8,%rsp
  mov    %r15d,%r9d
  mov    %r13d,%r8d
  push   %r14
  mov    0x28(%rsp),%ecx
  mov    %ebp,%edx
  mov    %ebx,%esi
  mov    0x40(%rsp),%rdi
  call   <fpsimple_log_6j@plt>
  mov    0x2c(%rsp),%ecx
  mov    %ebp,%r9d
  mov    %r12d,%edx
  mov    0xc0(%rsp),%r8d
  mov    0x30(%rsp),%rdi
  mov    %r13d,%esi
  mov    %r14d,(%rsp)
  call   <fpsimple_log_6j@plt>
  mov    0x38(%rsp),%rdi
  mov    %r15d,%edx
  mov    %r12d,%r9d
  mov    0xb8(%rsp),%ecx
  mov    0xc0(%rsp),%esi
  mov    %ebx,%r8d
  mov    %r14d,(%rsp)
  call   <fpsimple_log_6j@plt>
  movsd  0x50(%rsp),%xmm0
  mulsd  0x58(%rsp),%xmm0
  lea    0x1(%r14),%eax
  mulsd  0x60(%rsp),%xmm0
  pxor   %xmm2,%xmm2
  mov    $0x1,%edx
  movsd  0x18(%rsp),%xmm1
  cvtsi2sd %eax,%xmm2
  mov    %r14d,%eax
  add    $0x2,%r14d
  and    $0x1,%eax
  add    %eax,%eax
  sub    %eax,%edx
  pop    %rax
  mulsd  %xmm2,%xmm0
  pxor   %xmm2,%xmm2
  cvtsi2sd %edx,%xmm2
  pop    %rdx
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %r14d,0x14(%rsp)
  jge    L18
L8:
  mov    0x38(%rsp),%rax
  movsd  %xmm1,(%rax)
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L13
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L13:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void fpsimple_log_9j(double *result, int two_a, int two_b, int two_c, int two_d, int two_e, int two_f, int two_g, int two_h, int two_i) {
  int two_kmin = max3(abs(two_h - two_d), abs(two_b - two_f), abs(two_a - two_i));
  int two_kmax = min3(two_h + two_d, two_b + two_f, two_a + two_i);
  int two_k;
  double sum_prod = 0;
  for (two_k = two_kmin; two_k <= two_kmax; two_k += 2) {
    double f1, f2, f3;
    fpsimple_log_6j(&f1, two_a, two_b, two_c, two_f, two_i, two_k);
    fpsimple_log_6j(&f2, two_f, two_d, two_e, two_h, two_b, two_k);
    fpsimple_log_6j(&f3, two_h, two_i, two_g, two_a, two_d, two_k);
    double factor = f1 * f2 * f3;
    double prod = (two_k + 1) * factor;
    sum_prod += (1 - 2 * ((two_k)&1)) * prod;
  }
  *result = sum_prod;
}
```