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

```asm
<compute_gv>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x88,%rsp
  mov    %rdi,0x40(%rsp)
  mov    %rsi,%r15
  movsd  %xmm0,0x60(%rsp)
  movsd  %xmm1,0x68(%rsp)
  movsd  %xmm3,0x10(%rsp)
  mov    %rdx,%r13
  mov    %rcx,%rbx
  mov    %r8d,%r14d
  lea    0x78(%rsp),%rbp
  lea    0x70(%rsp),%r12
  mulsd  D3(%rip),%xmm2
  divsd  D106(%rip),%xmm2
  movapd %xmm2,%xmm0
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sincos@plt>
  movsd  0x70(%rsp),%xmm11
  movsd  %xmm11,0x8(%rsp)
  movsd  0x78(%rsp),%xmm10
  movsd  %xmm10,0x20(%rsp)
  movapd %xmm10,%xmm7
  xorpd  D14(%rip),%xmm7
  movsd  %xmm7,(%rsp)
  movsd  D3(%rip),%xmm0
  mulsd  0x10(%rsp),%xmm0
  divsd  D106(%rip),%xmm0
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <sincos@plt>
  movsd  0x70(%rsp),%xmm5
  movsd  0x78(%rsp),%xmm2
  pxor   %xmm1,%xmm1
  movsd  (%rsp),%xmm10
  movapd %xmm10,%xmm6
  mulsd  %xmm1,%xmm6
  movsd  0x8(%rsp),%xmm11
  movapd %xmm11,%xmm0
  addsd  %xmm1,%xmm0
  addsd  %xmm6,%xmm0
  movsd  %xmm0,(%rsp)
  movapd %xmm11,%xmm7
  mulsd  %xmm1,%xmm7
  movapd %xmm5,%xmm3
  mulsd  %xmm1,%xmm3
  movapd %xmm7,%xmm4
  addsd  %xmm3,%xmm4
  movapd %xmm10,%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm0,%xmm4
  movsd  %xmm4,0x8(%rsp)
  movapd %xmm2,%xmm0
  xorpd  D14(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm7,%xmm8
  addsd  %xmm0,%xmm8
  movapd %xmm10,%xmm4
  mulsd  %xmm5,%xmm4
  addsd  %xmm4,%xmm8
  movsd  %xmm8,0x10(%rsp)
  movapd %xmm5,%xmm4
  addsd  %xmm1,%xmm4
  subsd  %xmm0,%xmm4
  movsd  %xmm4,0x38(%rsp)
  movapd %xmm1,%xmm4
  subsd  %xmm2,%xmm4
  addsd  %xmm3,%xmm4
  movsd  %xmm4,0x18(%rsp)
  addsd  0x20(%rsp),%xmm1
  addsd  %xmm7,%xmm1
  movsd  %xmm1,0x20(%rsp)
  mulsd  %xmm11,%xmm2
  subsd  %xmm6,%xmm3
  addsd  %xmm3,%xmm2
  movsd  %xmm2,0x28(%rsp)
  mulsd  %xmm5,%xmm11
  movapd %xmm11,%xmm1
  subsd  %xmm6,%xmm0
  addsd  %xmm0,%xmm1
  movsd  %xmm1,0x30(%rsp)
  test   %r14d,%r14d
  jle    L39
  mov    %r15,%r12
  mov    0x40(%rsp),%rbp
  lea    -0x1(%r14),%eax
  lea    0x8(%r15,%rax,8),%r14
L15:
  lea    0x78(%rsp),%rdi
  lea    0x70(%rsp),%rsi
  movsd  D48(%rip),%xmm0
  mulsd  (%r12),%xmm0
  mulsd  0x60(%rsp),%xmm0
  call   <sincos@plt>
  movsd  0x70(%rsp),%xmm7
  movq   %xmm7,%r15
  movsd  0x78(%rsp),%xmm6
  movsd  %xmm6,0x58(%rsp)
  movsd  0x0(%r13),%xmm1
  movsd  0x8(%r13),%xmm2
  movapd %xmm7,%xmm0
  mulsd  %xmm1,%xmm0
  movapd %xmm6,%xmm3
  mulsd  %xmm2,%xmm3
  subsd  %xmm3,%xmm0
  mulsd  %xmm6,%xmm1
  mulsd  %xmm7,%xmm2
  addsd  %xmm2,%xmm1
  movsd  0x10(%r13),%xmm2
  movsd  (%rsp),%xmm3
  mulsd  %xmm0,%xmm3
  movsd  0x8(%rsp),%xmm4
  mulsd  %xmm1,%xmm4
  addsd  %xmm4,%xmm3
  movsd  0x10(%rsp),%xmm4
  mulsd  %xmm2,%xmm4
  addsd  %xmm4,%xmm3
  movsd  0x0(%rbp),%xmm4
  movapd %xmm4,%xmm7
  subsd  %xmm3,%xmm7
  movsd  %xmm7,0x40(%rsp)
  pxor   %xmm3,%xmm3
  mulsd  %xmm0,%xmm3
  movsd  0x38(%rsp),%xmm4
  mulsd  %xmm1,%xmm4
  addsd  %xmm4,%xmm3
  movsd  0x18(%rsp),%xmm4
  mulsd  %xmm2,%xmm4
  addsd  %xmm4,%xmm3
  movsd  0x8(%rbp),%xmm4
  movapd %xmm4,%xmm6
  subsd  %xmm3,%xmm6
  movsd  %xmm6,0x48(%rsp)
  mulsd  0x20(%rsp),%xmm0
  mulsd  0x28(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  mulsd  0x30(%rsp),%xmm2
  addsd  %xmm2,%xmm0
  movsd  0x10(%rbp),%xmm1
  movapd %xmm1,%xmm5
  subsd  %xmm0,%xmm5
  movsd  %xmm5,0x50(%rsp)
  movapd %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  movapd %xmm6,%xmm1
  mulsd  %xmm6,%xmm1
  addsd  %xmm1,%xmm0
  movapd %xmm5,%xmm1
  mulsd  %xmm5,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm7,%xmm7
  ucomisd %xmm0,%xmm7
  ja     L3
  sqrtsd %xmm0,%xmm0
L31:
  movsd  D70(%rip),%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x40(%rsp),%xmm0
  mulsd  %xmm2,%xmm0
  subsd  D70(%rip),%xmm0
  movsd  D70(%rip),%xmm1
  divsd  0x68(%rsp),%xmm1
  mulsd  %xmm1,%xmm0
  movsd  0x48(%rsp),%xmm4
  mulsd  %xmm1,%xmm4
  mulsd  %xmm2,%xmm4
  mulsd  0x50(%rsp),%xmm1
  mulsd  %xmm2,%xmm1
  movsd  (%rsp),%xmm3
  mulsd  %xmm0,%xmm3
  movapd %xmm4,%xmm2
  mulsd  D47(%rip),%xmm2
  addsd  %xmm2,%xmm3
  movsd  0x20(%rsp),%xmm2
  mulsd  %xmm1,%xmm2
  addsd  %xmm2,%xmm3
  movsd  0x8(%rsp),%xmm2
  mulsd  %xmm0,%xmm2
  movsd  0x38(%rsp),%xmm5
  mulsd  %xmm4,%xmm5
  addsd  %xmm5,%xmm2
  movsd  0x28(%rsp),%xmm5
  mulsd  %xmm1,%xmm5
  addsd  %xmm5,%xmm2
  movq   %r15,%xmm7
  movq   %r15,%xmm6
  mulsd  %xmm3,%xmm6
  movsd  0x58(%rsp),%xmm9
  movapd %xmm9,%xmm5
  mulsd  %xmm2,%xmm5
  addsd  %xmm6,%xmm5
  movsd  %xmm5,(%rbx)
  mulsd  %xmm9,%xmm3
  mulsd  %xmm7,%xmm2
  subsd  %xmm3,%xmm2
  movsd  %xmm2,0x8(%rbx)
  mulsd  0x10(%rsp),%xmm0
  mulsd  0x18(%rsp),%xmm4
  addsd  %xmm4,%xmm0
  mulsd  0x30(%rsp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0x10(%rbx)
  add    $0x8,%r12
  add    $0x18,%rbp
  add    $0x18,%rbx
  cmp    %r14,%r12
  jne    L15
L39:
  add    $0x88,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  call   <sqrt@plt>
  jmp    L31
```

tool_calls: name: read_data
arguments: data_label: D3
datatype: f64
name: read_data
arguments: data_label: D106
datatype: f64
name: read_data
arguments: data_label: D14
datatype: f32[4]
name: read_data
arguments: data_label: D48
datatype: byte[8]
name: read_data
arguments: data_label: D70
datatype: f64
name: read_data
arguments: data_label: D47
datatype: f32[2]

tool: D3: 3.141592653589793

tool: D106: 180

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

tool: {"D48": [0x39,0x9d,0x52,0xa2,0x46,0xdf,0x91,0x3f]}

tool: D70: 1

tool: {"D47": [0.0,0.0]}

assistant: ```c
void compute_gv(double xlylzl[][3], double omega[], double omegasign, double wvln, double wedge, double chi, double t[3], double gv[][3], int n) {
  double sc, cc, sw, cw, wmat[9], cmat[9], mat[9], u[3], d[3], v[3];
  double modyz, o[3], co, so, ds, k[3];
  int i;
  sw = sin(wedge * 3.14159265358979323846 / 180.0);
  cw = cos(wedge * 3.14159265358979323846 / 180.0);
  wmat[0] = cw;
  wmat[1] = 0.0;
  wmat[2] = -sw;
  wmat[3] = 0.;
  wmat[4] = 1.0;
  wmat[5] = 0.;
  wmat[6] = sw;
  wmat[7] = 0.0;
  wmat[8] = cw;
  sc = sin(chi * 3.14159265358979323846 / 180.0);
  cc = cos(chi * 3.14159265358979323846 / 180.0);
  cmat[0] = 1.;
  cmat[1] = 0.0;
  cmat[2] = 0.;
  cmat[3] = 0.;
  cmat[4] = cc;
  cmat[5] = -sc;
  cmat[6] = 0.;
  cmat[7] = sc;
  cmat[8] = cc;
  (mat)[0] = (cmat)[0] * (wmat)[0] + (cmat)[3] * (wmat)[1] + (cmat)[6] * (wmat)[2];
  (mat)[1] = (cmat)[1] * (wmat)[0] + (cmat)[4] * (wmat)[1] + (cmat)[7] * (wmat)[2];
  (mat)[2] = (cmat)[2] * (wmat)[0] + (cmat)[5] * (wmat)[1] + (cmat)[8] * (wmat)[2];
  (mat)[3] = (cmat)[0] * (wmat)[3] + (cmat)[3] * (wmat)[4] + (cmat)[6] * (wmat)[5];
  (mat)[4] = (cmat)[1] * (wmat)[3] + (cmat)[4] * (wmat)[4] + (cmat)[7] * (wmat)[5];
  (mat)[5] = (cmat)[2] * (wmat)[3] + (cmat)[5] * (wmat)[4] + (cmat)[8] * (wmat)[5];
  (mat)[6] = (cmat)[0] * (wmat)[6] + (cmat)[3] * (wmat)[7] + (cmat)[6] * (wmat)[8];
  (mat)[7] = (cmat)[1] * (wmat)[6] + (cmat)[4] * (wmat)[7] + (cmat)[7] * (wmat)[8];
  (mat)[8] = (cmat)[2] * (wmat)[6] + (cmat)[5] * (wmat)[7] + (cmat)[8] * (wmat)[8];
  ;
#pragma omp parallel for private(so, co, u, o, d, modyz, ds, v, k)
  for (i = 0; i < n; i++) {
    so = sin(3.14159265358979323846 / 180.0 * omega[i] * omegasign);
    co = cos(3.14159265358979323846 / 180.0 * omega[i] * omegasign);
    u[0] = co * t[0] - so * t[1];
    u[1] = so * t[0] + co * t[1];
    u[2] = t[2];
    (o)[0] = (mat)[0] * (u)[0] + (mat)[1] * (u)[1] + (mat)[2] * (u)[2];
    (o)[1] = (mat)[3] * (u)[0] + (mat)[4] * (u)[1] + (mat)[5] * (u)[2];
    (o)[2] = (mat)[6] * (u)[0] + (mat)[7] * (u)[1] + (mat)[8] * (u)[2];
    ;
    (d)[0] = (xlylzl[i])[0] - (o)[0];
    (d)[1] = (xlylzl[i])[1] - (o)[1];
    (d)[2] = (xlylzl[i])[2] - (o)[2];
    ;
    modyz = 1. / sqrt(d[0] * d[0] + d[1] * d[1] + d[2] * d[2]);
    ds = 1. / wvln;
    k[0] = ds * (d[0] * modyz - 1.);
    k[1] = ds * d[1] * modyz;
    k[2] = ds * d[2] * modyz;
    (v)[0] = (mat)[0] * (k)[0] + (mat)[3] * (k)[1] + (mat)[6] * (k)[2];
    (v)[1] = (mat)[1] * (k)[0] + (mat)[4] * (k)[1] + (mat)[7] * (k)[2];
    (v)[2] = (mat)[2] * (k)[0] + (mat)[5] * (k)[1] + (mat)[8] * (k)[2];
    ;
    gv[i][0] = co * v[0] + so * v[1];
    gv[i][1] = -so * v[0] + co * v[1];
    gv[i][2] = v[2];
  }
}
```