user: 请从给定的汇编指令推导出C源代码:

```asm
<quaddobl_operate>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x78,%rsp
  mov    %esi,%ebx
  mov    %esi,-0x7c(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <numbtrop_quaddobl_initialize@plt>
  lea    -0x70(%rbp),%rdi
  call   <numbtrop_quaddobl_size@plt>
  mov    -0x70(%rbp),%esi
  lea    D100(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x64(%rbp),%rdi
  call   <numbtrop_quaddobl_dimension@plt>
  mov    -0x64(%rbp),%esi
  lea    D43(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x0(,%rbx,4),%ecx
  mov    %ecx,-0x80(%rbp)
  movslq %ecx,%rax
  lea    -0x1(%rcx),%ecx
  mov    %rcx,-0x90(%rbp)
  shl    $0x3,%rax
  mov    %rax,-0x98(%rbp)
  and    $0xfffffffffffff000,%rax
  mov    %rax,-0x88(%rbp)
  jmp    L56
L77:
  mov    -0x98(%rbp),%rcx
  mov    %rcx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  test   %rax,%rax
  je     L37
  mov    %rcx,%rax
  and    $0xfff,%eax
  orq    $0x0,-0x8(%rsp,%rax,1)
L37:
  mov    %rsp,%r15
  lea    D38(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x6c(%rbp),%rsi
  lea    D144(%rip),%rdi
  call   <scanf@plt>
  mov    -0x6c(%rbp),%esi
  test   %esi,%esi
  jle    L81
  lea    -0x68(%rbp),%rdx
  lea    -0x60(%rbp),%r8
  mov    %r15,%rcx
  mov    -0x7c(%rbp),%edi
  call   <numbtrop_quaddobl_retrieve_tropism@plt>
  mov    -0x68(%rbp),%edx
  mov    -0x6c(%rbp),%esi
  lea    D20(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D126(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  cmpl   $0x0,-0x80(%rbp)
  jle    L59
  mov    %r15,%rbx
  mov    -0x90(%rbp),%rax
  lea    0x8(%r15,%rax,8),%r13
  mov    %r15,%r12
  lea    D129(%rip),%r14
L78:
  movsd  (%r12),%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%r12
  cmp    %r13,%r12
  jne    L78
  movsd  -0x48(%rbp),%xmm3
  movsd  -0x50(%rbp),%xmm2
  movsd  -0x58(%rbp),%xmm1
  movsd  -0x60(%rbp),%xmm0
  lea    D54(%rip),%rdi
  mov    $0x4,%eax
  call   <printf@plt>
  lea    -0x68(%rbp),%rsi
  mov    $0x1,%edi
  call   <generate_winding_numbers@plt>
  mov    %r15,%rsi
  mov    -0x80(%rbp),%edi
  call   <random_doubles@plt>
  lea    -0x60(%rbp),%rsi
  mov    $0x4,%edi
  call   <random_doubles@plt>
  mov    -0x68(%rbp),%edx
  mov    -0x6c(%rbp),%esi
  lea    D21(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D126(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D129(%rip),%r12
L3:
  movsd  (%rbx),%xmm0
  mov    %r12,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  add    $0x8,%rbx
  cmp    %r13,%rbx
  jne    L3
L48:
  movsd  -0x48(%rbp),%xmm3
  movsd  -0x50(%rbp),%xmm2
  movsd  -0x58(%rbp),%xmm1
  movsd  -0x60(%rbp),%xmm0
  lea    D54(%rip),%rdi
  mov    $0x4,%eax
  call   <printf@plt>
  lea    -0x60(%rbp),%r8
  mov    %r15,%rcx
  mov    -0x68(%rbp),%edx
  mov    -0x6c(%rbp),%esi
  mov    -0x7c(%rbp),%edi
  call   <numbtrop_store_quaddobl_tropism@plt>
  mov    -0x78(%rbp),%rsp
  cmpl   $0x0,-0x6c(%rbp)
  jle    L27
L56:
  mov    %rsp,-0x78(%rbp)
  mov    %rsp,%rax
  sub    -0x88(%rbp),%rax
L63:
  cmp    %rax,%rsp
  je     L77
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L63
L81:
  mov    -0x78(%rbp),%rsp
L27:
  mov    $0x0,%eax
  call   <numbtrop_quaddobl_clear@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L100
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L59:
  movsd  -0x48(%rbp),%xmm3
  movsd  -0x50(%rbp),%xmm2
  movsd  -0x58(%rbp),%xmm1
  movsd  -0x60(%rbp),%xmm0
  lea    D54(%rip),%rdi
  mov    $0x4,%eax
  call   <printf@plt>
  lea    -0x68(%rbp),%rsi
  mov    $0x1,%edi
  call   <generate_winding_numbers@plt>
  mov    %r15,%rsi
  mov    -0x80(%rbp),%edi
  call   <random_doubles@plt>
  lea    -0x60(%rbp),%rsi
  mov    $0x4,%edi
  call   <random_doubles@plt>
  mov    -0x68(%rbp),%edx
  mov    -0x6c(%rbp),%esi
  lea    D21(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D126(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L48
L100:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: label: D100
datatype: string
name: retrieve_data
arguments: label: D43
datatype: string
name: retrieve_data
arguments: label: D38
datatype: string
name: retrieve_data
arguments: label: D144
datatype: string
name: retrieve_data
arguments: label: D20
datatype: string
name: retrieve_data
arguments: label: D126
datatype: string
name: retrieve_data
arguments: label: D129
datatype: string
name: retrieve_data
arguments: label: D54
datatype: string
name: retrieve_data
arguments: label: D21
datatype: string

tool: D100: The number of tropisms : %d


tool: D43: The retrieved dimension : %d


tool: D38: Give an index (<= 0 to exit): 

tool: D144: %d

tool: D20: The tropism %d has winding number %d,


tool: D126: with coordinates :

tool: D129:  %.3e

tool: D54: 
and error : %.3e %.3e %.3e %.3e


tool: D21: Changing tropism %d to winding number %d,


assistant: ```c
void quaddobl_operate(int nbt, int dim, int *wind, double *dir, double *err) {
  int fail, size, k, idx, wnd, retdim;
  fail = numbtrop_quaddobl_initialize(nbt, dim, wind, dir, err);
  fail = numbtrop_quaddobl_size(&size);
  printf("The number of tropisms : %d\n", size);
  fail = numbtrop_quaddobl_dimension(&retdim);
  printf("The retrieved dimension : %d\n", retdim);
  do {
    double diridx[4 * dim];
    double erridx[4];
    printf("Give an index (<= 0 to exit): ");
    scanf("%d", &idx);
    if (idx <= 0)
      break;
    fail = numbtrop_quaddobl_retrieve_tropism(dim, idx, &wnd, diridx, erridx);
    printf("The tropism %d has winding number %d,\n", idx, wnd);
    printf("with coordinates :");
    for (k = 0; k < 4 * dim; k++)
      printf(" %.3e", diridx[k]);
    printf("\nand error : %.3e %.3e %.3e %.3e\n", erridx[0], erridx[1], erridx[2], erridx[3]);
    generate_winding_numbers(1, &wnd);
    random_doubles(4 * dim, diridx);
    random_doubles(4, erridx);
    printf("Changing tropism %d to winding number %d,\n", idx, wnd);
    printf("with coordinates :");
    for (k = 0; k < 4 * dim; k++)
      printf(" %.3e", diridx[k]);
    printf("\nand error : %.3e %.3e %.3e %.3e\n", erridx[0], erridx[1], erridx[2], erridx[3]);
    fail = numbtrop_store_quaddobl_tropism(dim, idx, wnd, diridx, erridx);
  } while (idx > 0);
  fail = numbtrop_quaddobl_clear();
}
```