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

```asm
<Crossover_snooker>:
  endbr64
  push   %r15
  push   %r14
  mov    %edx,%r14d
  push   %r13
  mov    %r9,%r13
  push   %r12
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x78,%rsp
  mov    %r8,0x20(%rsp)
  lea    0x54(%rsp),%rdx
  lea    0x50(%rsp),%rsi
  mov    %ecx,%r8d
  movsd  %xmm0,0x28(%rsp)
  movsd  D17(%rip),%xmm0
  lea    0x60(%rsp),%rdi
  mov    %rbp,%rcx
  movsd  %xmm1,0x8(%rsp)
  mov    0xb8(%rsp),%r15
  mov    0xc0(%rsp),%r12
  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    %r13,%rsi
  mov    0xb0(%rsp),%edx
  movsd  0x0(%rbp,%rax,8),%xmm6
  movapd %xmm6,%xmm0
  movsd  %xmm6,0x18(%rsp)
  call   <self_adj_index_search@plt>
  test   %r14d,%r14d
  jle    L225
  movslq 0x54(%rsp),%rax
  lea    0x8(%r12),%rdx
  lea    -0x1(%r14),%esi
  mov    (%rbx,%rax,8),%rdi
  movslq 0x50(%rsp),%rax
  mov    (%rbx,%rax,8),%rcx
  lea    0x10(%rdi),%rax
  cmp    %rax,%rdx
  lea    0x10(%rcx),%rax
  setne  %r8b
  cmp    %rax,%rdx
  setne  %al
  test   %al,%r8b
  je     L62
  cmp    $0x1,%esi
  jbe    L62
  mov    %r14d,%eax
  pxor   %xmm5,%xmm5
  shr    %eax
  movsd  %xmm5,0x10(%rsp)
  movapd %xmm5,%xmm1
  lea    -0x1(%rax),%r8d
  mov    $0x8,%eax
  shl    $0x4,%r8
  add    $0x18,%r8
  nopl   0x0(%rax)
L171:
  movupd (%rdi,%rax,1),%xmm0
  movupd (%rcx,%rax,1),%xmm3
  subpd  %xmm3,%xmm0
  movups %xmm0,(%r12,%rax,1)
  mulpd  %xmm0,%xmm0
  add    $0x10,%rax
  addsd  %xmm0,%xmm1
  unpckhpd %xmm0,%xmm0
  addsd  %xmm0,%xmm1
  cmp    %r8,%rax
  jne    L171
  mov    %r14d,%eax
  or     $0x1,%eax
  test   $0x1,%r14b
  je     L249
  cltq
  movsd  (%rdi,%rax,8),%xmm0
  subsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  mulsd  %xmm0,%xmm0
  addsd  %xmm0,%xmm1
L249:
  movsd  0x10(%rsp),%xmm7
  ucomisd %xmm1,%xmm7
  ja     L110
L275:
  mov    %r14d,%ecx
  movapd %xmm1,%xmm2
  mov    %rdx,%rax
  shr    %ecx
  unpcklpd %xmm2,%xmm2
  sub    $0x1,%ecx
  sqrtpd %xmm2,%xmm2
  shl    $0x4,%rcx
  lea    0x18(%r12,%rcx,1),%rcx
  nopw   0x0(%rax,%rax,1)
L251:
  movupd (%rax),%xmm0
  add    $0x10,%rax
  divpd  %xmm2,%xmm0
  movups %xmm0,-0x10(%rax)
  cmp    %rcx,%rax
  jne    L251
  mov    %r14d,%eax
  or     $0x1,%eax
  test   $0x1,%r14b
  je     L85
L293:
  cltq
  sqrtsd %xmm1,%xmm1
  lea    (%r12,%rax,8),%rax
  movsd  (%rax),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
L85:
  xor    %eax,%eax
  mov    %rdx,0x30(%rsp)
  call   <normalrng@plt>
  movslq 0x50(%rsp),%rax
  mov    0x30(%rsp),%rdx
  mulsd  0x8(%rsp),%xmm0
  mov    (%rbx,%rax,8),%rcx
  lea    0x10(%rcx),%rax
  cmp    %rax,%rdx
  je     L175
  cmp    $0x1,%r14d
  je     L175
  mov    %r14d,%eax
  movapd %xmm0,%xmm2
  shr    %eax
  unpcklpd %xmm2,%xmm2
  lea    -0x1(%rax),%edx
  mov    $0x8,%eax
  shl    $0x4,%rdx
  add    $0x18,%rdx
  nopl   0x0(%rax,%rax,1)
L57:
  movupd (%r12,%rax,1),%xmm1
  movupd (%rcx,%rax,1),%xmm4
  mulpd  %xmm2,%xmm1
  addpd  %xmm4,%xmm1
  movups %xmm1,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L57
  mov    %r14d,%eax
  or     $0x1,%eax
  test   $0x1,%r14b
  je     L256
  cltq
  lea    (%r12,%rax,8),%rdx
  mulsd  (%rdx),%xmm0
  addsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx)
L256:
  mov    %r14d,%esi
  mov    %r12,%rdi
  call   <cost@plt>
  mov    0xb0(%rsp),%edx
  mov    %r13,%rsi
  lea    0x5c(%rsp),%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <self_adj_index_search@plt>
  movsd  0x28(%rsp),%xmm7
  movsd  0x8(%rsp),%xmm1
  movslq 0x5c(%rsp),%rax
  mov    0x20(%rsp),%rsi
  divsd  %xmm7,%xmm1
  movsd  (%rsi,%rax,8),%xmm0
  xorpd  D12(%rip),%xmm0
  movslq 0x58(%rsp),%rax
  subsd  %xmm1,%xmm0
  movsd  0x18(%rsp),%xmm1
  addsd  (%rsi,%rax,8),%xmm0
  divsd  %xmm7,%xmm1
  addsd  %xmm1,%xmm0
  comisd 0x10(%rsp),%xmm0
  movsd  D28(%rip),%xmm1
  jbe    L163
L202:
  movsd  %xmm1,(%r15)
  xor    %eax,%eax
  call   <uniformrng@plt>
  movsd  (%r15),%xmm1
  comisd %xmm0,%xmm1
  jbe    L296
  movslq 0x50(%rsp),%rax
  movsd  0x8(%rsp),%xmm5
  movsd  %xmm5,0x0(%rbp,%rax,8)
  test   %r14d,%r14d
  jle    L296
  mov    (%rbx,%rax,8),%rdx
  lea    0x10(%r12),%rax
  lea    0x8(%rdx),%rcx
  cmp    %rax,%rcx
  je     L47
  lea    -0x1(%r14),%eax
  cmp    $0x2,%eax
  jbe    L47
  mov    %r14d,%eax
  shr    %eax
  lea    -0x1(%rax),%ecx
  mov    $0x8,%eax
  shl    $0x4,%rcx
  add    $0x18,%rcx
  nopl   (%rax)
L160:
  movupd (%r12,%rax,1),%xmm5
  movups %xmm5,(%rdx,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rcx
  jne    L160
  mov    %r14d,%eax
  or     $0x1,%eax
  and    $0x1,%r14d
  je     L296
  cltq
  movsd  (%r12,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
L296:
  mov    0x68(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L138
  add    $0x78,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L163:
  call   <exp@plt>
  movapd %xmm0,%xmm1
  jmp    L202
  xchg   %ax,%ax
L175:
  lea    0x1(%r14),%edx
  mov    $0x1,%eax
  nopl   0x0(%rax)
L237:
  movsd  (%r12,%rax,8),%xmm1
  mulsd  %xmm0,%xmm1
  addsd  (%rcx,%rax,8),%xmm1
  movsd  %xmm1,(%r12,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L237
  jmp    L256
  nopl   0x0(%rax,%rax,1)
L62:
  pxor   %xmm7,%xmm7
  lea    0x1(%r14),%r8d
  mov    $0x1,%eax
  movsd  %xmm7,0x10(%rsp)
  movapd %xmm7,%xmm1
  nop
L38:
  movsd  (%rdi,%rax,8),%xmm0
  subsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%r12,%rax,8)
  mulsd  %xmm0,%xmm0
  add    $0x1,%rax
  addsd  %xmm0,%xmm1
  cmp    %r8,%rax
  jne    L38
  movsd  0x10(%rsp),%xmm3
  ucomisd %xmm1,%xmm3
  ja     L110
  mov    $0x1,%eax
  cmp    $0x1,%r14d
  je     L293
  jmp    L275
  nopl   0x0(%rax)
L225:
  xor    %eax,%eax
  call   <normalrng@plt>
  pxor   %xmm4,%xmm4
  movsd  %xmm4,0x10(%rsp)
  jmp    L256
L47:
  lea    0x1(%r14),%ecx
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L191:
  movsd  (%r12,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L191
  jmp    L296
L138:
  call   <__stack_chk_fail@plt>
L110:
  mov    %esi,%esi
  mov    %rdx,%rax
  lea    0x10(%r12,%rsi,8),%rsi
  mov    %rsi,0x30(%rsp)
L106:
  movapd %xmm1,%xmm0
  mov    %rdx,0x48(%rsp)
  mov    %rax,0x40(%rsp)
  movsd  %xmm1,0x38(%rsp)
  call   <sqrt@plt>
  mov    0x40(%rsp),%rax
  movsd  0x38(%rsp),%xmm1
  movapd %xmm0,%xmm2
  mov    0x48(%rsp),%rdx
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  divsd  %xmm2,%xmm0
  movsd  %xmm0,-0x8(%rax)
  cmp    0x30(%rsp),%rax
  jne    L106
  jmp    L85
```

tool_calls: name: extract_symbolic_data
arguments: label: D17
type_infered: f64
name: extract_symbolic_data
arguments: label: D12
type_infered: f32[4]
name: extract_symbolic_data
arguments: label: D28
type_infered: f64

tool: D17: 0.1

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

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