user: What is the c source code of the assembly code below?

```asm
<numbtrop_quaddobl_retrieve_tropism>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x58,%rsp
  mov    %edi,-0x54(%rbp)
  mov    %esi,-0x58(%rbp)
  mov    %rdx,-0x60(%rbp)
  mov    %rcx,-0x68(%rbp)
  mov    %r8,-0x70(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x28(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  mov    -0x54(%rbp),%eax
  add    $0x1,%eax
  shl    $0x2,%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x40(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L23:
  cmp    %rdx,%rsp
  je     L58
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L23
L58:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L48
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L48:
  mov    %rsp,%rax
  add    $0x7,%rax
  shr    $0x3,%rax
  shl    $0x3,%rax
  mov    %rax,-0x38(%rbp)
  mov    -0x54(%rbp),%eax
  mov    %eax,-0x30(%rbp)
  mov    -0x58(%rbp),%eax
  mov    %eax,-0x2c(%rbp)
  mov    -0x38(%rbp),%rcx
  mov    -0x60(%rbp),%rdx
  lea    -0x30(%rbp),%rax
  mov    $0x0,%r8d
  mov    %rax,%rsi
  mov    $0x2d5,%edi
  call   <_ada_use_c2phc4c@plt>
  mov    %eax,-0x44(%rbp)
  movl   $0x0,-0x48(%rbp)
  jmp    L35
L33:
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x38(%rbp),%rax
  mov    -0x48(%rbp),%edx
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movsd  %xmm0,(%rcx)
  addl   $0x1,-0x48(%rbp)
L35:
  mov    -0x54(%rbp),%eax
  shl    $0x2,%eax
  cmp    %eax,-0x48(%rbp)
  jl     L33
  mov    -0x54(%rbp),%eax
  lea    0x0(,%rax,4),%edx
  mov    -0x38(%rbp),%rax
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  mov    -0x70(%rbp),%rax
  movsd  %xmm0,(%rax)
  mov    -0x54(%rbp),%eax
  shl    $0x2,%eax
  lea    0x1(%rax),%edx
  mov    -0x70(%rbp),%rax
  lea    0x8(%rax),%rcx
  mov    -0x38(%rbp),%rax
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movsd  %xmm0,(%rcx)
  mov    -0x54(%rbp),%eax
  shl    $0x2,%eax
  lea    0x2(%rax),%edx
  mov    -0x70(%rbp),%rax
  lea    0x10(%rax),%rcx
  mov    -0x38(%rbp),%rax
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movsd  %xmm0,(%rcx)
  mov    -0x54(%rbp),%eax
  shl    $0x2,%eax
  lea    0x3(%rax),%edx
  mov    -0x70(%rbp),%rax
  lea    0x18(%rax),%rcx
  mov    -0x38(%rbp),%rax
  movslq %edx,%rdx
  movsd  (%rax,%rdx,8),%xmm0
  movsd  %xmm0,(%rcx)
  mov    -0x44(%rbp),%eax
  mov    %rbx,%rsp
  mov    -0x28(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L10
  call   <__stack_chk_fail@plt>
L10:
  lea    -0x18(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %rbp
  ret
```

assistant: ```c
int numbtrop_quaddobl_retrieve_tropism(int dim, int idx, int *wnd, double *dir, double *err) {
  int fail, k;
  int nd[2];
  double cff[4 * (dim + 1)];
  nd[0] = dim;
  nd[1] = idx;
  fail = _ada_use_c2phc4c(725, nd, wnd, cff, 0);
  for (k = 0; k < 4 * dim; k++)
    dir[k] = cff[k];
  err[0] = cff[4 * dim];
  err[1] = cff[4 * dim + 1];
  err[2] = cff[4 * dim + 2];
  err[3] = cff[4 * dim + 3];
  return fail;
}
```