user: 请将以下的汇编代码转换成C语言代码:

```asm
<umtz_cell_metric>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  add    $0xffffffffffffff80,%rsp
  mov    %rdi,-0x58(%rbp)
  mov    %rsi,-0x60(%rbp)
  mov    -0x58(%rbp),%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,-0x50(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0xc,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D62(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D63(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x48(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x4,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,-0x40(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x10,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D62(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D63(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x8,%rax
  movss  (%rax),%xmm0
  cvtss2sd %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  mov    -0x58(%rbp),%rax
  add    $0x14,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  cvtss2sd %xmm0,%xmm1
  movsd  D62(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  D63(%rip),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x28(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x40(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  -0x70(%rbp),%xmm1
  mulsd  %xmm0,%xmm1
  movsd  D8(%rip),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mulsd  -0x78(%rbp),%xmm0
  movsd  -0x70(%rbp),%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,-0x70(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x78(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mulsd  -0x78(%rbp),%xmm0
  movsd  -0x70(%rbp),%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,-0x70(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm7
  addsd  %xmm0,%xmm7
  movsd  %xmm7,-0x78(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm3
  mulsd  -0x78(%rbp),%xmm3
  movsd  %xmm3,-0x78(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  mulsd  -0x78(%rbp),%xmm0
  movapd %xmm0,%xmm4
  addsd  -0x70(%rbp),%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  call   <sqrt@plt>
  mulsd  -0x68(%rbp),%xmm0
  movsd  %xmm0,-0x20(%rbp)
  movsd  -0x40(%rbp),%xmm0
  mulsd  -0x30(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x68(%rbp),%xmm0
  divsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x18(%rbp)
  movsd  -0x30(%rbp),%xmm0
  mulsd  -0x50(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x68(%rbp),%xmm0
  divsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  movsd  -0x50(%rbp),%xmm0
  mulsd  -0x40(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x68(%rbp),%xmm0
  divsd  -0x20(%rbp),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movsd  -0x18(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  cvtsd2ss %xmm0,%xmm0
  mov    -0x60(%rbp),%rax
  movss  %xmm0,(%rax)
  movsd  -0x10(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  mov    -0x60(%rbp),%rax
  add    $0x4,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  movsd  -0x8(%rbp),%xmm0
  mulsd  %xmm0,%xmm0
  mov    -0x60(%rbp),%rax
  add    $0x8,%rax
  cvtsd2ss %xmm0,%xmm0
  movss  %xmm0,(%rax)
  movsd  -0x18(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  -0x10(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm3
  mulsd  -0x70(%rbp),%xmm3
  movsd  %xmm3,-0x70(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  -0x70(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  -0x68(%rbp),%xmm1
  movsd  %xmm1,-0x68(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x70(%rbp),%xmm0
  movsd  -0x68(%rbp),%xmm1
  divsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0xc,%rax
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  %xmm0,(%rax)
  movsd  -0x8(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm4
  mulsd  -0x70(%rbp),%xmm4
  movsd  %xmm4,-0x70(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  -0x70(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  -0x68(%rbp),%xmm1
  movsd  %xmm1,-0x68(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x70(%rbp),%xmm0
  movsd  -0x68(%rbp),%xmm1
  divsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x10,%rax
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  %xmm0,(%rax)
  movsd  -0x10(%rbp),%xmm0
  addsd  %xmm0,%xmm0
  mulsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,-0x68(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movapd %xmm0,%xmm5
  mulsd  -0x70(%rbp),%xmm5
  movsd  %xmm5,-0x70(%rbp)
  mov    -0x48(%rbp),%rax
  movq   %rax,%xmm0
  call   <cos@plt>
  movsd  -0x70(%rbp),%xmm1
  subsd  %xmm0,%xmm1
  mulsd  -0x68(%rbp),%xmm1
  movsd  %xmm1,-0x68(%rbp)
  mov    -0x38(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  movsd  %xmm0,-0x70(%rbp)
  mov    -0x28(%rbp),%rax
  movq   %rax,%xmm0
  call   <sin@plt>
  mulsd  -0x70(%rbp),%xmm0
  movsd  -0x68(%rbp),%xmm1
  divsd  %xmm0,%xmm1
  mov    -0x60(%rbp),%rax
  add    $0x14,%rax
  pxor   %xmm0,%xmm0
  cvtsd2ss %xmm1,%xmm0
  movss  %xmm0,(%rax)
  nop
  leave
  ret
```

tool_calls: name: unpack_data
arguments: label: D62
type: f64
name: unpack_data
arguments: label: D63
type: f64
name: unpack_data
arguments: label: D8
type: f64

tool: D62: 3.141592653589793

tool: D63: 180

tool: D8: 1

assistant: ```c
void umtz_cell_metric(const float *cell, float *metric) {
  double a, b, c, alph, beta, gamm, as, bs, cs, vol;
  a = cell[0];
  alph = cell[3] * (3.1415926535897932384626433832795028841972) / 180.0;
  b = cell[1];
  beta = cell[4] * (3.1415926535897932384626433832795028841972) / 180.0;
  c = cell[2];
  gamm = cell[5] * (3.1415926535897932384626433832795028841972) / 180.0;
  vol = a * b * c * sqrt(1.0 - cos(alph) * cos(alph) - cos(beta) * cos(beta) - cos(gamm) * cos(gamm) + 2.0 * cos(alph) * cos(beta) * cos(gamm));
  as = b * c * sin(alph) / vol;
  bs = c * a * sin(beta) / vol;
  cs = a * b * sin(gamm) / vol;
  metric[0] = (float)(as * as);
  metric[1] = (float)(bs * bs);
  metric[2] = (float)(cs * cs);
  metric[3] = (float)(2.0 * as * bs * (cos(beta) * cos(alph) - cos(gamm)) / (sin(alph) * sin(beta)));
  metric[4] = (float)(2.0 * cs * as * (cos(alph) * cos(gamm) - cos(beta)) / (sin(gamm) * sin(alph)));
  metric[5] = (float)(2.0 * bs * cs * (cos(gamm) * cos(beta) - cos(alph)) / (sin(beta) * sin(gamm)));
}
```