user: Demonstrate the C code that generates the assembly output below:

```asm
<Crossover_snooker>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xb0,%rsp
  mov    %rdi,-0x68(%rbp)
  mov    %rsi,-0x70(%rbp)
  mov    %edx,-0x74(%rbp)
  mov    %ecx,-0x78(%rbp)
  mov    %r8,-0x80(%rbp)
  mov    %r9,-0x88(%rbp)
  movsd  %xmm0,-0x90(%rbp)
  movsd  %xmm1,-0x98(%rbp)
  mov    0x18(%rbp),%rax
  mov    %rax,-0xa0(%rbp)
  mov    0x20(%rbp),%rax
  mov    %rax,-0xa8(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movsd  D26(%rip),%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x30(%rbp),%rdi
  mov    -0x78(%rbp),%r8d
  mov    -0x70(%rbp),%rcx
  lea    -0x50(%rbp),%rdx
  lea    -0x54(%rbp),%rsi
  lea    -0x40(%rbp),%rax
  movq   %rdi,%xmm0
  mov    %rax,%rdi
  call   <CO_select_forward_1@plt>
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x28(%rbp)
  mov    -0x88(%rbp),%rsi
  mov    -0x28(%rbp),%rcx
  lea    -0x4c(%rbp),%rax
  mov    0x10(%rbp),%edx
  movq   %rcx,%xmm0
  mov    %rax,%rdi
  call   <self_adj_index_search@plt>
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  movl   $0x1,-0x44(%rbp)
  jmp    L27
L4:
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x44(%rbp)
L27:
  mov    -0x44(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jle    L4
  movl   $0x1,-0x44(%rbp)
  jmp    L85
L105:
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  movapd %xmm0,%xmm1
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x44(%rbp)
L85:
  mov    -0x44(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jle    L105
  mov    $0x0,%eax
  call   <normalrng@plt>
  movsd  -0x98(%rbp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movl   $0x1,-0x44(%rbp)
  jmp    L93
L42:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x68(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  -0x20(%rbp),%xmm0
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rdx,%rax
  addsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x44(%rbp)
L93:
  mov    -0x44(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jle    L42
  mov    -0x74(%rbp),%edx
  mov    -0xa8(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <cost@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x18(%rbp)
  mov    -0x88(%rbp),%rsi
  mov    -0x18(%rbp),%rcx
  lea    -0x48(%rbp),%rax
  mov    0x10(%rbp),%edx
  movq   %rcx,%xmm0
  mov    %rax,%rdi
  call   <self_adj_index_search@plt>
  mov    -0x48(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movq   D8(%rip),%xmm1
  xorpd  %xmm1,%xmm0
  movsd  -0x18(%rbp),%xmm1
  movapd %xmm1,%xmm2
  divsd  -0x90(%rbp),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x80(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  addsd  %xmm0,%xmm1
  movsd  -0x28(%rbp),%xmm0
  divsd  -0x90(%rbp),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x10(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  comisd %xmm1,%xmm0
  jbe    L49
  mov    D27(%rip),%rax
  jmp    L1
L49:
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  call   <exp@plt>
  movq   %xmm0,%rax
L1:
  mov    -0xa0(%rbp),%rdx
  mov    %rax,(%rdx)
  mov    $0x0,%eax
  call   <uniformrng@plt>
  movq   %xmm0,%rax
  mov    %rax,-0x20(%rbp)
  mov    -0xa0(%rbp),%rax
  movsd  (%rax),%xmm0
  comisd -0x20(%rbp),%xmm0
  ja     L94
  jmp    L40
L94:
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  movl   $0x1,-0x44(%rbp)
  jmp    L22
L68:
  mov    -0x44(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0xa8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x54(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x68(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x44(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x44(%rbp)
L22:
  mov    -0x44(%rbp),%eax
  cmp    -0x74(%rbp),%eax
  jle    L68
L40:
  nop
  mov    -0x8(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D26
datatype: f64
name: unpack_data
arguments: label: D8
datatype: f32[2]
name: unpack_data
arguments: label: D27
datatype: f64

tool: D26: 0.1

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

tool: D27: 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];
  }
}
```