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

```asm
<Mutation_Kpoint>:
  endbr64
  push   %r15
  mov    %edx,%r15d
  mov    %r9d,%edx
  push   %r14
  push   %r13
  mov    %r8,%r13
  push   %r12
  mov    %r9d,%r12d
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    %r8,%rsi
  sub    $0x48,%rsp
  mov    0x80(%rsp),%rax
  mov    %rcx,0x18(%rsp)
  lea    0x30(%rsp),%rdi
  movsd  %xmm0,0x20(%rsp)
  movsd  (%rbx),%xmm0
  mov    0x88(%rsp),%r14
  mov    %rax,0x28(%rsp)
  movsd  %xmm1,0x8(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <self_adj_index_search@plt>
  test   %r15d,%r15d
  jle    L79
  lea    0x8(%r14),%rdx
  lea    0x10(%rbp),%rax
  cmp    %rax,%rdx
  je     L9
  lea    -0x1(%r15),%eax
  cmp    $0x2,%eax
  jbe    L9
  mov    %r15d,%eax
  shr    %eax
  lea    -0x1(%rax),%edx
  mov    $0x8,%eax
  shl    $0x4,%rdx
  add    $0x18,%rdx
  nopl   0x0(%rax,%rax,1)
L58:
  movupd 0x0(%rbp,%rax,1),%xmm2
  movups %xmm2,(%r14,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L58
  mov    %r15d,%eax
  or     $0x1,%eax
  test   $0x1,%r15b
  je     L79
  cltq
  movsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,(%r14,%rax,8)
L79:
  mov    %r15d,%esi
  mov    $0x1,%edi
  call   <integerrng@plt>
  mov    %eax,(%rsp)
  xor    %eax,%eax
  call   <normalrng@plt>
  mulsd  0x8(%rsp),%xmm0
  pxor   %xmm1,%xmm1
  mov    D1(%rip),%rsi
  cvtsi2sdl 0x30(%rsp),%xmm1
  movsd  %xmm0,0x10(%rsp)
  pxor   %xmm0,%xmm0
  cvtsi2sd %r12d,%xmm0
  addsd  D3(%rip),%xmm0
  divsd  %xmm0,%xmm1
  movq   %rsi,%xmm0
  cvttsd2si %xmm1,%edi
  call   <pow@plt>
  movslq (%rsp),%rax
  mulsd  0x10(%rsp),%xmm0
  lea    (%r14,%rax,8),%rax
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  xor    %eax,%eax
  call   <uniformrng@plt>
  cmp    $0x1,%r15d
  jle    L50
  movsd  D1(%rip),%xmm7
  comisd %xmm0,%xmm7
  ja     L109
L50:
  mov    %r15d,%esi
  mov    %r14,%rdi
  call   <cost@plt>
  lea    0x34(%rsp),%rdi
  mov    %r12d,%edx
  mov    %r13,%rsi
  movsd  %xmm0,(%rsp)
  call   <self_adj_index_search@plt>
  movsd  0x20(%rsp),%xmm5
  movsd  (%rsp),%xmm1
  movslq 0x34(%rsp),%rax
  mov    0x18(%rsp),%rcx
  divsd  %xmm5,%xmm1
  movsd  (%rcx,%rax,8),%xmm0
  xorpd  D51(%rip),%xmm0
  movslq 0x30(%rsp),%rax
  subsd  %xmm1,%xmm0
  movsd  (%rbx),%xmm1
  addsd  (%rcx,%rax,8),%xmm0
  mov    D3(%rip),%rax
  divsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  comisd D43(%rip),%xmm0
  movq   %rax,%xmm1
  jbe    L175
L182:
  mov    0x28(%rsp),%r13
  xor    %eax,%eax
  movsd  %xmm1,0x0(%r13)
  call   <uniformrng@plt>
  movsd  0x0(%r13),%xmm1
  comisd %xmm0,%xmm1
  jbe    L83
  movsd  (%rsp),%xmm7
  movsd  %xmm7,(%rbx)
  test   %r15d,%r15d
  jle    L83
  lea    0x10(%r14),%rdx
  lea    0x8(%rbp),%rax
  cmp    %rax,%rdx
  je     L96
  lea    -0x1(%r15),%eax
  cmp    $0x2,%eax
  jbe    L96
  mov    %r15d,%eax
  shr    %eax
  lea    -0x1(%rax),%edx
  mov    $0x8,%eax
  shl    $0x4,%rdx
  add    $0x18,%rdx
  nopl   0x0(%rax,%rax,1)
L123:
  movupd (%r14,%rax,1),%xmm3
  movups %xmm3,0x0(%rbp,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L123
  mov    %r15d,%eax
  or     $0x1,%eax
  and    $0x1,%r15d
  je     L83
  cltq
  movsd  (%r14,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
L83:
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L77
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L109:
  lea    -0x1(%r15),%esi
  mov    $0x1,%edi
  call   <integerrng@plt>
  mov    %eax,%edx
  xor    %eax,%eax
  cmp    %edx,(%rsp)
  setle  %al
  add    %eax,%edx
  xor    %eax,%eax
  mov    %edx,(%rsp)
  call   <normalrng@plt>
  movslq (%rsp),%rdx
  mulsd  0x8(%rsp),%xmm0
  lea    (%r14,%rdx,8),%rax
  addsd  (%rax),%xmm0
  movsd  %xmm0,(%rax)
  jmp    L50
  nopw   0x0(%rax,%rax,1)
L175:
  call   <exp@plt>
  movapd %xmm0,%xmm1
  jmp    L182
  xchg   %ax,%ax
L9:
  lea    0x1(%r15),%edx
  mov    $0x1,%eax
  nopl   0x0(%rax)
L23:
  movsd  0x0(%rbp,%rax,8),%xmm0
  movsd  %xmm0,(%r14,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L23
  jmp    L79
L96:
  lea    0x1(%r15),%edx
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L1:
  movsd  (%r14,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%rdx
  jne    L1
  jmp    L83
L77:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: label: D1
type_guessed: f64
name: unpack_data
arguments: label: D3
type_guessed: f64
name: unpack_data
arguments: label: D51
type_guessed: f32[4]
name: unpack_data
arguments: label: D43
type_guessed: f32

tool: D1: 0.5

tool: D3: 1

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

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