user: 请从给定的汇编指令推导出C源代码：

```asm
<rho_j_k>:
  endbr64
  pxor   %xmm0,%xmm0
  push   %r15
  pxor   %xmm7,%xmm7
  mov    %rcx,%r15
  cvtsi2sd %edx,%xmm0
  push   %r14
  mov    %r9,%r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xa8,%rsp
  ucomisd %xmm0,%xmm7
  mov    %rdi,0x80(%rsp)
  mov    %rsi,0x88(%rsp)
  mov    %edx,0x6c(%rsp)
  ja     L25
  sqrtsd %xmm0,%xmm0
L21:
  movsd  D0(%rip),%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x70(%rsp)
  test   %r8d,%r8d
  jle    L8
  lea    -0x1(%r8),%eax
  mov    0x80(%rsp),%rcx
  mov    %r14,0x58(%rsp)
  lea    0x98(%rsp),%rbp
  shl    $0x4,%rax
  mov    %r15,0x60(%rsp)
  mov    0xe0(%rsp),%r13
  lea    0x10(%r14,%rax,1),%rax
  mov    %rax,0x78(%rsp)
  mov    0x6c(%rsp),%eax
  sub    $0x1,%eax
  lea    (%rax,%rax,2),%rax
  lea    0x18(%rcx,%rax,8),%r12
  nopl   0x0(%rax,%rax,1)
L54:
  mov    0x6c(%rsp),%eax
  test   %eax,%eax
  jle    L24
  mov    0x60(%rsp),%rax
  pxor   %xmm9,%xmm9
  mov    0x88(%rsp),%r14
  lea    0x90(%rsp),%rbx
  movapd %xmm9,%xmm8
  movapd %xmm9,%xmm7
  movapd %xmm9,%xmm3
  mov    0x80(%rsp),%r15
  movsd  (%rax),%xmm4
  movsd  0x8(%rax),%xmm5
  movapd %xmm9,%xmm2
  movsd  0x10(%rax),%xmm6
  movsd  %xmm4,0x40(%rsp)
  movapd %xmm9,%xmm4
  movsd  %xmm5,0x48(%rsp)
  movapd %xmm9,%xmm5
  movsd  %xmm6,0x50(%rsp)
  movapd %xmm9,%xmm6
  nopl   0x0(%rax)
L66:
  movsd  0x40(%rsp),%xmm0
  mov    %rbx,%rsi
  mov    %rbp,%rdi
  add    $0x18,%r15
  mulsd  -0x18(%r15),%xmm0
  movsd  0x48(%rsp),%xmm1
  movsd  %xmm3,0x38(%rsp)
  add    $0x18,%r14
  mulsd  -0x10(%r15),%xmm1
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm9,0x28(%rsp)
  movsd  %xmm8,0x20(%rsp)
  movsd  %xmm7,0x18(%rsp)
  movsd  %xmm6,0x10(%rsp)
  addsd  %xmm1,%xmm0
  movsd  0x50(%rsp),%xmm1
  mulsd  -0x8(%r15),%xmm1
  movsd  %xmm5,0x8(%rsp)
  movsd  %xmm4,(%rsp)
  addsd  %xmm1,%xmm0
  call   <sincos@plt>
  movsd  -0x18(%r14),%xmm1
  movsd  (%rsp),%xmm4
  movsd  0x98(%rsp),%xmm10
  movsd  0x8(%rsp),%xmm5
  movsd  0x90(%rsp),%xmm0
  movapd %xmm1,%xmm11
  movsd  0x18(%rsp),%xmm7
  mulsd  %xmm10,%xmm1
  movsd  0x30(%rsp),%xmm2
  movsd  0x38(%rsp),%xmm3
  mulsd  %xmm0,%xmm11
  movsd  0x10(%rsp),%xmm6
  movsd  0x20(%rsp),%xmm8
  addsd  %xmm0,%xmm2
  movsd  0x28(%rsp),%xmm9
  addsd  %xmm10,%xmm3
  addsd  %xmm1,%xmm5
  movsd  -0x10(%r14),%xmm1
  addsd  %xmm11,%xmm4
  movapd %xmm1,%xmm11
  mulsd  %xmm10,%xmm1
  mulsd  %xmm0,%xmm11
  addsd  %xmm1,%xmm7
  movsd  -0x8(%r14),%xmm1
  addsd  %xmm11,%xmm6
  mulsd  %xmm1,%xmm0
  mulsd  %xmm10,%xmm1
  addsd  %xmm0,%xmm8
  addsd  %xmm1,%xmm9
  cmp    %r15,%r12
  jne    L66
L40:
  movsd  0x70(%rsp),%xmm0
  mov    0x58(%rsp),%rax
  add    $0x30,%r13
  addq   $0x18,0x60(%rsp)
  mulsd  %xmm0,%xmm2
  add    $0x10,%rax
  mulsd  %xmm0,%xmm3
  mulsd  %xmm0,%xmm4
  mulsd  %xmm0,%xmm5
  mulsd  %xmm0,%xmm6
  mulsd  %xmm0,%xmm7
  movsd  %xmm2,-0x10(%rax)
  mulsd  %xmm0,%xmm8
  movsd  %xmm3,-0x8(%rax)
  mulsd  %xmm0,%xmm9
  movsd  %xmm4,-0x30(%r13)
  movsd  %xmm5,-0x28(%r13)
  movsd  %xmm6,-0x20(%r13)
  movsd  %xmm7,-0x18(%r13)
  movsd  %xmm8,-0x10(%r13)
  movsd  %xmm9,-0x8(%r13)
  mov    %rax,0x58(%rsp)
  cmp    %rax,0x78(%rsp)
  jne    L54
L8:
  add    $0xa8,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  xchg   %ax,%ax
L24:
  pxor   %xmm9,%xmm9
  movapd %xmm9,%xmm8
  movapd %xmm9,%xmm7
  movapd %xmm9,%xmm6
  movapd %xmm9,%xmm5
  movapd %xmm9,%xmm4
  movapd %xmm9,%xmm3
  movapd %xmm9,%xmm2
  jmp    L40
L25:
  mov    %r8d,(%rsp)
  call   <sqrt@plt>
  mov    (%rsp),%r8d
  jmp    L21
```

tool_calls: name: read_data
arguments: data_tag: D0
type: f64

tool: D0: 1

assistant: ```c
void rho_j_k(const double x_vec[][3], const double v_vec[][3], int N_x, const double k_vec[][3], int N_k, double (*restrict rho_k)[2], double (*restrict j_k)[6]) {
  int x_i, k_i;
  double rho_ki_0, rho_ki_1;
  double j_ki_0, j_ki_1, j_ki_2, j_ki_3, j_ki_4, j_ki_5;
  double factor = (1.0 / sqrt((double)N_x));
  register double alpha, ca, sa;
#pragma omp parallel for shared(rho_k, j_k, x_vec, v_vec, k_vec, factor) private(k_i, x_i, alpha, ca, sa, rho_ki_0, rho_ki_1, j_ki_0, j_ki_1, j_ki_2, j_ki_3, j_ki_4, j_ki_5)
  for (k_i = 0; k_i < N_k; k_i++) {
    rho_ki_0 = 0.0;
    rho_ki_1 = 0.0;
    j_ki_0 = 0.0;
    j_ki_1 = 0.0;
    j_ki_2 = 0.0;
    j_ki_3 = 0.0;
    j_ki_4 = 0.0;
    j_ki_5 = 0.0;
    for (x_i = 0; x_i < N_x; x_i++) {
      alpha = x_vec[x_i][0] * k_vec[k_i][0] + x_vec[x_i][1] * k_vec[k_i][1] + x_vec[x_i][2] * k_vec[k_i][2];
      ca = cos(alpha);
      sa = sin(alpha);
      rho_ki_0 += ca;
      rho_ki_1 += sa;
      j_ki_0 += ca * v_vec[x_i][0];
      j_ki_1 += sa * v_vec[x_i][0];
      j_ki_2 += ca * v_vec[x_i][1];
      j_ki_3 += sa * v_vec[x_i][1];
      j_ki_4 += ca * v_vec[x_i][2];
      j_ki_5 += sa * v_vec[x_i][2];
    }
    rho_k[k_i][0] = factor * rho_ki_0;
    rho_k[k_i][1] = factor * rho_ki_1;
    j_k[k_i][0] = factor * j_ki_0;
    j_k[k_i][1] = factor * j_ki_1;
    j_k[k_i][2] = factor * j_ki_2;
    j_k[k_i][3] = factor * j_ki_3;
    j_k[k_i][4] = factor * j_ki_4;
    j_k[k_i][5] = factor * j_ki_5;
  }
}
```