user: What would the C source look like for the assembly code provided here:

```asm
<Crossover_snooker>:
  endbr64
  push   %r15
  push   %r14
  mov    %r9,%r14
  push   %r13
  push   %r12
  mov    %rsi,%r12
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %edx,%ebx
  sub    $0x78,%rsp
  mov    %r8,0x18(%rsp)
  lea    0x54(%rsp),%rdx
  lea    0x50(%rsp),%rsi
  mov    %ecx,%r8d
  movsd  %xmm0,0x20(%rsp)
  movsd  D18(%rip),%xmm0
  lea    0x60(%rsp),%rdi
  mov    %r12,%rcx
  movsd  %xmm1,0x8(%rsp)
  mov    0xb8(%rsp),%r15
  mov    0xc0(%rsp),%r13
  mov    %fs:0x28,%rax
  mov    %rax,0x68(%rsp)
  xor    %eax,%eax
  call   <CO_select_forward_1@plt>
  movslq 0x50(%rsp),%rax
  lea    0x58(%rsp),%rdi
  mov    %r14,%rsi
  mov    0xb0(%rsp),%edx
  movsd  (%r12,%rax,8),%xmm4
  movapd %xmm4,%xmm0
  movsd  %xmm4,0x10(%rsp)
  call   <self_adj_index_search@plt>
  test   %ebx,%ebx
  jle    L118
  movslq 0x54(%rsp),%rax
  lea    -0x1(%rbx),%edi
  pxor   %xmm3,%xmm3
  lea    0x2(%rdi),%rdx
  movapd %xmm3,%xmm1
  mov    0x0(%rbp,%rax,8),%rsi
  movslq 0x50(%rsp),%rax
  mov    0x0(%rbp,%rax,8),%rcx
  mov    $0x1,%eax
  nopl   0x0(%rax)
L63:
  movsd  (%rsi,%rax,8),%xmm0
  subsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,0x0(%r13,%rax,8)
  mulsd  %xmm0,%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L63
  lea    0x8(%r13),%rax
  lea    0x10(%r13,%rdi,8),%rcx
  nopl   0x0(%rax,%rax,1)
L74:
  ucomisd %xmm1,%xmm3
  ja     L62
  movapd %xmm1,%xmm2
  sqrtsd %xmm2,%xmm2
L1:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  divsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    %rax,%rcx
  jne    L74
  xor    %eax,%eax
  mov    %rdx,0x28(%rsp)
  movsd  %xmm3,0x30(%rsp)
  call   <normalrng@plt>
  mulsd  0x8(%rsp),%xmm0
  movslq 0x50(%rsp),%rax
  mov    0x28(%rsp),%rdx
  movsd  0x30(%rsp),%xmm3
  mov    0x0(%rbp,%rax,8),%rcx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L104:
  movsd  0x0(%r13,%rax,8),%xmm1
  mulsd  %xmm0,%xmm1
  addsd  (%rcx,%rax,8),%xmm1
  movsd  %xmm1,0x0(%r13,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L104
L89:
  mov    %ebx,%esi
  mov    %r13,%rdi
  movsd  %xmm3,0x28(%rsp)
  call   <cost@plt>
  mov    0xb0(%rsp),%edx
  lea    0x5c(%rsp),%rdi
  mov    %r14,%rsi
  movsd  %xmm0,0x8(%rsp)
  call   <self_adj_index_search@plt>
  movsd  0x20(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm1
  movslq 0x5c(%rsp),%rax
  mov    0x18(%rsp),%rdi
  divsd  %xmm5,%xmm1
  movsd  0x28(%rsp),%xmm3
  movsd  (%rdi,%rax,8),%xmm0
  xorpd  D20(%rip),%xmm0
  movslq 0x58(%rsp),%rax
  subsd  %xmm1,%xmm0
  movsd  0x10(%rsp),%xmm1
  addsd  (%rdi,%rax,8),%xmm0
  divsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  movsd  D5(%rip),%xmm1
  comisd %xmm3,%xmm0
  jbe    L46
L24:
  movsd  %xmm1,(%r15)
  xor    %eax,%eax
  call   <uniformrng@plt>
  movsd  (%r15),%xmm1
  comisd %xmm0,%xmm1
  jbe    L18
  movslq 0x50(%rsp),%rax
  movsd  0x8(%rsp),%xmm7
  movsd  %xmm7,(%r12,%rax,8)
  test   %ebx,%ebx
  jle    L18
  mov    0x0(%rbp,%rax,8),%rcx
  lea    0x1(%rbx),%edx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L68:
  movsd  0x0(%r13,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L68
L18:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L91
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L46:
  call   <exp@plt>
  movapd %xmm0,%xmm1
  jmp    L24
  xchg   %ax,%ax
L118:
  xor    %eax,%eax
  call   <normalrng@plt>
  pxor   %xmm3,%xmm3
  jmp    L89
L62:
  movapd %xmm1,%xmm0
  mov    %rax,0x40(%rsp)
  mov    %rcx,0x38(%rsp)
  mov    %rdx,0x30(%rsp)
  movsd  %xmm3,0x48(%rsp)
  movsd  %xmm1,0x28(%rsp)
  call   <sqrt@plt>
  movsd  0x48(%rsp),%xmm3
  mov    0x40(%rsp),%rax
  mov    0x38(%rsp),%rcx
  mov    0x30(%rsp),%rdx
  movapd %xmm0,%xmm2
  movsd  0x28(%rsp),%xmm1
  jmp    L1
L91:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: label: D18
type: f64
name: disassemble_data
arguments: label: D20
type: f32[4]
name: disassemble_data
arguments: label: D5
type: f64

tool: D18: 0.1

tool: {"D20": [0.0,-0.0,0.0,0.0]}

tool: D5: 1

assistant: ```c
void Crossover_snooker(double **x, double *fx, int N_dimension, int N_population, double *theta, double *grid_points, int grid_size, double temp, double scl, double *accpr_pop, double *z_new) {
  double temp_co;
  int n1;
  int n2;
  int i;
  int k_old;
  int k_new;
  double pr_fw;
  double fz_old;
  double fz_new;
  double sumv;
  double un;
  double rat;
  temp_co = 0.1;
  CO_select_forward_1(&pr_fw, &n1, &n2, fx, N_population, temp_co);
  fz_old = fx[n1];
  self_adj_index_search(&k_old, fz_old, grid_points, grid_size);
  sumv = 0.0;
  for (i = 1; i <= N_dimension; i++) {
    z_new[i] = x[n2][i] - x[n1][i];
    sumv += z_new[i] * z_new[i];
  }
  for (i = 1; i <= N_dimension; i++)
    z_new[i] /= sqrt(sumv);
  un = normalrng() * scl;
  for (i = 1; i <= N_dimension; i++)
    z_new[i] = x[n1][i] + un * z_new[i];
  fz_new = cost(z_new, N_dimension);
  self_adj_index_search(&k_new, fz_new, grid_points, grid_size);
  rat = -theta[k_new] - fz_new / temp + theta[k_old] + fz_old / temp;
  *accpr_pop = ((rat > 0.0) ? 1.0 : exp(rat));
  un = uniformrng();
  if (*accpr_pop > un) {
    fx[n1] = fz_new;
    for (i = 1; i <= N_dimension; i++)
      x[n1][i] = z_new[i];
  }
}
```