user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<xyz2llh>:
  endbr64
  push   %rbp
  mov    %rdi,%rbp
  push   %rbx
  mov    %rsi,%rbx
  sub    $0x48,%rsp
  call   <normVect@plt>
  movsd  D108(%rip),%xmm7
  comisd %xmm0,%xmm7
  ja     L48
  movsd  0x0(%rbp),%xmm12
  movsd  0x8(%rbp),%xmm11
  pxor   %xmm5,%xmm5
  movsd  0x10(%rbp),%xmm8
  movsd  D113(%rip),%xmm6
  movapd %xmm12,%xmm1
  movapd %xmm11,%xmm2
  movsd  D27(%rip),%xmm13
  movsd  D130(%rip),%xmm10
  mulsd  %xmm12,%xmm1
  movapd %xmm8,%xmm3
  movq   D81(%rip),%xmm9
  mulsd  %xmm11,%xmm2
  mulsd  %xmm6,%xmm3
  addsd  %xmm2,%xmm1
  jmp    L71
  nopl   0x0(%rax,%rax,1)
L8:
  movapd %xmm0,%xmm3
L71:
  movapd %xmm3,%xmm4
  addsd  %xmm8,%xmm4
  movapd %xmm4,%xmm0
  mulsd  %xmm4,%xmm0
  addsd  %xmm1,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L75
  movapd %xmm0,%xmm2
  sqrtsd %xmm2,%xmm2
L58:
  movapd %xmm4,%xmm15
  movapd %xmm13,%xmm0
  divsd  %xmm2,%xmm15
  movapd %xmm15,%xmm14
  mulsd  %xmm6,%xmm14
  mulsd  %xmm15,%xmm14
  subsd  %xmm14,%xmm0
  ucomisd %xmm0,%xmm5
  ja     L38
  sqrtsd %xmm0,%xmm0
  movapd %xmm10,%xmm14
  divsd  %xmm0,%xmm14
  movapd %xmm14,%xmm0
  mulsd  %xmm6,%xmm0
  mulsd  %xmm15,%xmm0
  subsd  %xmm0,%xmm3
  andpd  %xmm9,%xmm3
  comisd %xmm3,%xmm7
  jbe    L8
L19:
  ucomisd %xmm1,%xmm5
  ja     L85
  sqrtsd %xmm1,%xmm1
L21:
  movapd %xmm4,%xmm0
  movsd  %xmm14,0x18(%rsp)
  movsd  %xmm2,0x10(%rsp)
  movsd  %xmm11,0x8(%rsp)
  movsd  %xmm12,(%rsp)
  call   <atan2@plt>
  movsd  (%rsp),%xmm12
  movsd  0x8(%rsp),%xmm11
  movsd  %xmm0,(%rbx)
  movapd %xmm12,%xmm1
  movapd %xmm11,%xmm0
  call   <atan2@plt>
  movsd  0x10(%rsp),%xmm2
  movsd  0x18(%rsp),%xmm14
  movapd %xmm0,%xmm1
  subsd  %xmm14,%xmm2
  unpcklpd %xmm2,%xmm1
  movups %xmm1,0x8(%rbx)
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   (%rax)
L48:
  movapd D62(%rip),%xmm1
  movq   $0x0,(%rbx)
  movups %xmm1,0x8(%rbx)
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  ret
L38:
  movsd  %xmm15,0x38(%rsp)
  movsd  %xmm2,0x30(%rsp)
  movsd  %xmm4,0x28(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm8,0x18(%rsp)
  movsd  %xmm11,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  movsd  %xmm3,(%rsp)
  call   <sqrt@plt>
  mov    D130(%rip),%rax
  pxor   %xmm5,%xmm5
  movsd  0x38(%rsp),%xmm15
  movsd  (%rsp),%xmm3
  movsd  0x8(%rsp),%xmm12
  movq   %rax,%xmm14
  movq   %rax,%xmm10
  mov    D113(%rip),%rax
  movq   D81(%rip),%xmm9
  divsd  %xmm0,%xmm14
  movsd  0x10(%rsp),%xmm11
  movsd  0x18(%rsp),%xmm8
  movq   %rax,%xmm6
  mov    D108(%rip),%rax
  movsd  0x20(%rsp),%xmm1
  movsd  0x28(%rsp),%xmm4
  movsd  0x30(%rsp),%xmm2
  movq   %rax,%xmm7
  mov    D27(%rip),%rax
  movq   %rax,%xmm13
  movapd %xmm14,%xmm0
  mulsd  %xmm6,%xmm0
  mulsd  %xmm15,%xmm0
  subsd  %xmm0,%xmm3
  andpd  %xmm9,%xmm3
  comisd %xmm3,%xmm7
  jbe    L8
  jmp    L19
L75:
  movsd  %xmm4,0x28(%rsp)
  movsd  %xmm1,0x20(%rsp)
  movsd  %xmm8,0x18(%rsp)
  movsd  %xmm11,0x10(%rsp)
  movsd  %xmm12,0x8(%rsp)
  movsd  %xmm3,(%rsp)
  call   <sqrt@plt>
  mov    D130(%rip),%rax
  pxor   %xmm5,%xmm5
  movq   D81(%rip),%xmm9
  movsd  0x28(%rsp),%xmm4
  movsd  0x20(%rsp),%xmm1
  movapd %xmm0,%xmm2
  movq   %rax,%xmm10
  mov    D27(%rip),%rax
  movsd  0x18(%rsp),%xmm8
  movsd  0x10(%rsp),%xmm11
  movsd  0x8(%rsp),%xmm12
  movq   %rax,%xmm13
  mov    D113(%rip),%rax
  movsd  (%rsp),%xmm3
  movq   %rax,%xmm6
  mov    D108(%rip),%rax
  movq   %rax,%xmm7
  jmp    L58
L85:
  movapd %xmm1,%xmm0
  movsd  %xmm14,0x20(%rsp)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm11,0x8(%rsp)
  movsd  %xmm12,(%rsp)
  call   <sqrt@plt>
  movsd  0x20(%rsp),%xmm14
  movsd  0x18(%rsp),%xmm2
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm11
  movapd %xmm0,%xmm1
  movsd  (%rsp),%xmm12
  jmp    L21
```

tool_calls: name: parse_data
arguments: tag: D108
type_infered: byte[8]
name: parse_data
arguments: tag: D113
type_infered: byte[8]
name: parse_data
arguments: tag: D27
type_infered: f64
name: parse_data
arguments: tag: D130
type_infered: f64
name: parse_data
arguments: tag: D81
type_infered: qword
name: parse_data
arguments: tag: D62
type_infered: f64[2]

tool: {"D108": [0xfc,0xa9,0xf1,0xd2,0x4d,0x62,0x50,0x3f]}

tool: {"D113": [0x1a,0x85,0xfe,0xf1,0x90,0x6b,0x7b,0x3f]}

tool: D27: 1

tool: D130: 6378137

tool: D81: 9223372036854775807

tool: {"D62": [0.0,-6378137.0]}

assistant: ```c
void xyz2llh(const double *xyz, double *llh) {
  double a, eps, e, e2;
  double x, y, z;
  double rho2, dz, zdz, nh, slat, n, dz_new;
  a = 6378137.0;
  e = 0.0818191908426;
  eps = 1.0e-3;
  e2 = e * e;
  if (normVect(xyz) < eps) {
    llh[0] = 0.0;
    llh[1] = 0.0;
    llh[2] = -a;
    return;
  }
  x = xyz[0];
  y = xyz[1];
  z = xyz[2];
  rho2 = x * x + y * y;
  dz = e2 * z;
  while (1) {
    zdz = z + dz;
    nh = sqrt(rho2 + zdz * zdz);
    slat = zdz / nh;
    n = a / sqrt(1.0 - e2 * slat * slat);
    dz_new = n * e2 * slat;
    if (fabs(dz - dz_new) < eps)
      break;
    dz = dz_new;
  }
  llh[0] = atan2(zdz, sqrt(rho2));
  llh[1] = atan2(y, x);
  llh[2] = nh - n;
  return;
}
```