user: Translate the below assembly code into C programming language:

```asm
<Mutation_HitAndRun>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r13
  mov    %edx,%r12d
  mov    %rcx,%r15
  mov    %r8,%rsi
  mov    %r8,0x10(%rsp)
  movsd  %xmm0,0x18(%rsp)
  movsd  %xmm1,(%rsp)
  mov    0x70(%rsp),%r14
  mov    0x78(%rsp),%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  lea    0x20(%rsp),%rdi
  mov    %r9d,0xc(%rsp)
  mov    %r9d,%edx
  movsd  0x0(%r13),%xmm0
  call   <self_adj_index_search@plt>
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <uniformdirectionrng@plt>
  mov    $0x0,%eax
  call   <normalrng@plt>
  mulsd  (%rsp),%xmm0
  movsd  %xmm0,(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x20(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xc(%rsp),%xmm1
  addsd  D19(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  movsd  D6(%rip),%xmm0
  call   <pow@plt>
  movsd  (%rsp),%xmm1
  mulsd  %xmm0,%xmm1
  test   %r12d,%r12d
  jle    L5
  lea    0x1(%r12),%edx
  mov    $0x1,%eax
L59:
  movapd %xmm1,%xmm0
  mulsd  (%rbx,%rax,8),%xmm0
  addsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L59
L5:
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <cost@plt>
  movsd  %xmm0,(%rsp)
  lea    0x24(%rsp),%rdi
  mov    0xc(%rsp),%edx
  mov    0x10(%rsp),%rsi
  call   <self_adj_index_search@plt>
  movslq 0x24(%rsp),%rax
  movsd  (%r15,%rax,8),%xmm0
  xorpd  D39(%rip),%xmm0
  movsd  (%rsp),%xmm1
  movsd  0x18(%rsp),%xmm2
  divsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movslq 0x20(%rsp),%rax
  addsd  (%r15,%rax,8),%xmm0
  movsd  0x0(%r13),%xmm1
  divsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  movsd  D19(%rip),%xmm1
  comisd D8(%rip),%xmm0
  jbe    L78
L79:
  movsd  %xmm1,(%r14)
  mov    $0x0,%eax
  call   <uniformrng@plt>
  movsd  (%r14),%xmm1
  comisd %xmm0,%xmm1
  jbe    L74
  movsd  (%rsp),%xmm4
  movsd  %xmm4,0x0(%r13)
  test   %r12d,%r12d
  jle    L74
  lea    0x1(%r12),%edx
  mov    $0x1,%eax
L2:
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L2
L74:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L49
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L78:
  call   <exp@plt>
  movapd %xmm0,%xmm1
  jmp    L79
L49:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D19
type: f64
name: unpack_data
arguments: label: D6
type: f64
name: unpack_data
arguments: label: D39
type: f32[4]
name: unpack_data
arguments: label: D8
type: f32

tool: D19: 1

tool: D6: 0.5

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

tool: D8: 0

assistant: ```c
void Mutation_HitAndRun(double *z, double *fz, int N_dimension, double *theta, double *grid_points, int grid_size, double temp, double scl, double *accpr_pop, double *z_new) {
  int k_old;
  int k_new;
  int i;
  double fz_new;
  double rat;
  double un;
  self_adj_index_search(&k_old, *fz, grid_points, grid_size);
  uniformdirectionrng(z_new, N_dimension);
  un = normalrng() * scl * pow(k_old / (grid_size + 1.0), 0.5);
  for (i = 1; i <= N_dimension; i++)
    z_new[i] = z[i] + z_new[i] * un;
  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 / temp;
  *accpr_pop = ((rat > 0.0) ? 1.0 : exp(rat));
  un = uniformrng();
  if (*accpr_pop > un) {
    *fz = fz_new;
    for (i = 1; i <= N_dimension; i++)
      z[i] = z_new[i];
  }
}
```