user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<Mutation_Kpoint>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%rbp
  mov    %rsi,%r13
  mov    %edx,%r12d
  mov    %rcx,%r14
  mov    %r8,%rsi
  mov    %r8,0x20(%rsp)
  mov    %r9d,%edx
  mov    %r9d,0xc(%rsp)
  movsd  %xmm0,0x28(%rsp)
  movsd  %xmm1,0x10(%rsp)
  mov    0x80(%rsp),%r15
  mov    0x88(%rsp),%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rdi
  movsd  0x0(%r13),%xmm0
  call   <self_adj_index_search@plt>
  test   %r12d,%r12d
  jle    L2
  lea    0x1(%r12),%edx
  mov    $0x1,%eax
L14:
  movsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L14
L2:
  mov    %r12d,%esi
  mov    $0x1,%edi
  call   <integerrng@plt>
  mov    %eax,(%rsp)
  mov    $0x0,%eax
  call   <normalrng@plt>
  mulsd  0x10(%rsp),%xmm0
  movsd  %xmm0,0x18(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl 0x30(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl 0xc(%rsp),%xmm1
  addsd  D1(%rip),%xmm1
  divsd  %xmm1,%xmm0
  cvttsd2si %xmm0,%edi
  movsd  D35(%rip),%xmm0
  call   <pow@plt>
  movslq (%rsp),%rax
  lea    (%rbx,%rax,8),%rax
  mulsd  0x18(%rsp),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  mov    $0x0,%eax
  call   <uniformrng@plt>
  cmp    $0x1,%r12d
  jle    L13
  movsd  D35(%rip),%xmm1
  comisd %xmm0,%xmm1
  ja     L32
L13:
  mov    %r12d,%esi
  mov    %rbx,%rdi
  call   <cost@plt>
  movsd  %xmm0,(%rsp)
  lea    0x34(%rsp),%rdi
  mov    0xc(%rsp),%edx
  mov    0x20(%rsp),%rsi
  call   <self_adj_index_search@plt>
  movslq 0x34(%rsp),%rax
  movsd  (%r14,%rax,8),%xmm0
  xorpd  D21(%rip),%xmm0
  movsd  (%rsp),%xmm1
  movsd  0x28(%rsp),%xmm3
  divsd  %xmm3,%xmm1
  subsd  %xmm1,%xmm0
  movslq 0x30(%rsp),%rax
  addsd  (%r14,%rax,8),%xmm0
  movsd  0x0(%r13),%xmm1
  divsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  movsd  D1(%rip),%xmm1
  comisd D19(%rip),%xmm0
  jbe    L59
L104:
  movsd  %xmm1,(%r15)
  mov    $0x0,%eax
  call   <uniformrng@plt>
  movsd  (%r15),%xmm1
  comisd %xmm0,%xmm1
  jbe    L84
  movsd  (%rsp),%xmm5
  movsd  %xmm5,0x0(%r13)
  test   %r12d,%r12d
  jle    L84
  lea    0x1(%r12),%edx
  mov    $0x1,%eax
L87:
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rdx,%rax
  jne    L87
L84:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L106
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L32:
  lea    -0x1(%r12),%esi
  mov    $0x1,%edi
  call   <integerrng@plt>
  mov    %eax,%ecx
  cmp    %eax,(%rsp)
  setle  %al
  movzbl %al,%eax
  add    %eax,%ecx
  mov    %ecx,(%rsp)
  mov    $0x0,%eax
  call   <normalrng@plt>
  movslq (%rsp),%rax
  lea    (%rbx,%rax,8),%rax
  mulsd  0x10(%rsp),%xmm0
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L13
L59:
  call   <exp@plt>
  movapd %xmm0,%xmm1
  jmp    L104
L106:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D1
type: f64
name: disassemble_data
arguments: tag: D35
type: f64
name: disassemble_data
arguments: tag: D21
type: f32[4]
name: disassemble_data
arguments: tag: D19
type: f32

tool: D1: 1

tool: D35: 0.5

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

tool: D19: 0

assistant: ```c
void Mutation_Kpoint(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;
  int lab_1;
  int lab_2;
  double fz_new;
  double rat;
  double un;
  self_adj_index_search(&k_old, *fz, grid_points, grid_size);
  for (i = 1; i <= N_dimension; i++)
    z_new[i] = z[i];
  lab_1 = integerrng(1, N_dimension);
  un = normalrng() * scl * pow(k_old / (grid_size + 1.0), 0.5);
  z_new[lab_1] += un;
  if ((uniformrng() < 0.5) && (N_dimension >= 2)) {
    lab_2 = integerrng(1, N_dimension - 1);
    if (lab_2 >= lab_1)
      lab_2++;
    un = normalrng() * scl;
    z_new[lab_2] += 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];
  }
}
```