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

```asm
<compute_ustar>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  movq   %xmm0,%rbp
  movq   %xmm1,%rbx
  movsd  %xmm2,0x10(%rsp)
  movq   %xmm3,%r12
  movapd %xmm3,%xmm0
  divsd  %xmm2,%xmm0
  call   <log@plt>
  movsd  %xmm0,0x8(%rsp)
  movq   %rbp,%xmm3
  mulsd  D36(%rip),%xmm3
  movq   %xmm3,%r14
  movapd %xmm3,%xmm6
  divsd  %xmm0,%xmm6
  movsd  %xmm6,(%rsp)
  movq   %rbx,%xmm0
  call   <fabs@plt>
  test   %eax,%eax
  jle    L25
  movq   %rbx,%xmm2
  mulsd  D36(%rip),%xmm2
  movsd  (%rsp),%xmm6
  movapd %xmm6,%xmm0
  xorpd  D127(%rip),%xmm0
  mulsd  %xmm6,%xmm0
  mulsd  %xmm6,%xmm0
  movsd  %xmm2,0x20(%rsp)
  divsd  %xmm2,%xmm0
  movq   %r12,%xmm7
  divsd  %xmm0,%xmm7
  movq   %xmm7,%rbx
  movsd  0x10(%rsp),%xmm4
  divsd  %xmm0,%xmm4
  movq   %xmm4,%r13
  comisd D37(%rip),%xmm7
  jb     L29
  movapd %xmm4,%xmm1
  movapd %xmm7,%xmm0
  call   <psi_m_stable@plt>
  movapd %xmm0,%xmm2
  movsd  (%rsp),%xmm0
  divsd  D36(%rip),%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %rbp,%xmm7
  subsd  %xmm0,%xmm7
  movq   %xmm7,%r15
  movq   %r13,%xmm1
  movq   %rbx,%xmm0
  call   <psi_m_stable@plt>
  movsd  0x8(%rsp),%xmm4
  subsd  %xmm0,%xmm4
  movq   %r14,%xmm7
  divsd  %xmm4,%xmm7
  movq   %xmm7,%r14
  xorpd  D127(%rip),%xmm7
  movapd %xmm7,%xmm0
  movq   %r14,%xmm7
  mulsd  %xmm7,%xmm0
  mulsd  %xmm7,%xmm0
  divsd  0x20(%rsp),%xmm0
  movq   %r12,%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x10(%rsp),%xmm3
  divsd  %xmm0,%xmm3
  movapd %xmm3,%xmm1
  movapd %xmm2,%xmm0
  call   <psi_m_stable@plt>
  movapd %xmm0,%xmm2
  movq   %r14,%xmm3
  divsd  D36(%rip),%xmm3
  movapd %xmm3,%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %rbp,%xmm4
  subsd  %xmm0,%xmm4
  movq   %xmm4,%rbx
  movq   %r14,%xmm4
  subsd  (%rsp),%xmm4
  movsd  %xmm4,0x18(%rsp)
  mov    %r14,(%rsp)
  jmp    L67
L33:
  mov    %r13,%rbx
L67:
  movsd  (%rsp),%xmm4
  movsd  %xmm4,0x28(%rsp)
  movq   %rbx,%xmm0
  mulsd  0x18(%rsp),%xmm0
  movq   %rbx,%xmm1
  movq   %r15,%xmm6
  subsd  %xmm6,%xmm1
  divsd  %xmm1,%xmm0
  movapd %xmm4,%xmm5
  subsd  %xmm0,%xmm5
  movapd %xmm5,%xmm0
  xorpd  D127(%rip),%xmm0
  mulsd  %xmm5,%xmm0
  movsd  %xmm5,(%rsp)
  mulsd  %xmm5,%xmm0
  divsd  0x20(%rsp),%xmm0
  movq   %r12,%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x10(%rsp),%xmm1
  divsd  %xmm0,%xmm1
  movapd %xmm2,%xmm0
  call   <psi_m_stable@plt>
  movapd %xmm0,%xmm2
  movsd  (%rsp),%xmm5
  movapd %xmm5,%xmm0
  divsd  D36(%rip),%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %rbp,%xmm3
  subsd  %xmm0,%xmm3
  movq   %xmm3,%r13
  subsd  0x28(%rsp),%xmm5
  movsd  %xmm5,0x18(%rsp)
  movapd %xmm5,%xmm0
  call   <fabs@plt>
  mov    %rbx,%r15
  test   %eax,%eax
  jg     L33
  mov    %r14,(%rsp)
L25:
  movsd  (%rsp),%xmm0
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L29:
  movapd %xmm4,%xmm1
  movapd %xmm7,%xmm0
  call   <psi_m_unstable@plt>
  movapd %xmm0,%xmm2
  movsd  (%rsp),%xmm0
  divsd  D36(%rip),%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %rbp,%xmm6
  subsd  %xmm0,%xmm6
  movq   %xmm6,%r15
  movq   %r13,%xmm1
  movq   %rbx,%xmm0
  call   <psi_m_unstable@plt>
  movapd %xmm0,%xmm1
  movsd  0x8(%rsp),%xmm0
  subsd  %xmm1,%xmm0
  movq   %r14,%xmm6
  divsd  %xmm0,%xmm6
  movapd %xmm6,%xmm0
  xorpd  D127(%rip),%xmm0
  mulsd  %xmm6,%xmm0
  movsd  %xmm6,0x28(%rsp)
  mulsd  %xmm6,%xmm0
  divsd  0x20(%rsp),%xmm0
  movq   %r12,%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x10(%rsp),%xmm3
  divsd  %xmm0,%xmm3
  movapd %xmm3,%xmm1
  movapd %xmm2,%xmm0
  call   <psi_m_unstable@plt>
  movapd %xmm0,%xmm2
  movsd  0x28(%rsp),%xmm6
  movapd %xmm6,%xmm0
  divsd  D36(%rip),%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %rbp,%xmm4
  subsd  %xmm0,%xmm4
  movq   %xmm4,%r13
  movapd %xmm6,%xmm3
  subsd  (%rsp),%xmm3
  movq   %xmm3,%rbx
  movsd  %xmm6,(%rsp)
  jmp    L2
L6:
  mov    %r14,%r13
L2:
  movsd  (%rsp),%xmm6
  movsd  %xmm6,0x18(%rsp)
  movq   %rbx,%xmm0
  movq   %r13,%xmm4
  mulsd  %xmm4,%xmm0
  movq   %r13,%xmm1
  movq   %r15,%xmm4
  subsd  %xmm4,%xmm1
  divsd  %xmm1,%xmm0
  movapd %xmm6,%xmm7
  subsd  %xmm0,%xmm7
  movapd %xmm7,%xmm0
  xorpd  D127(%rip),%xmm0
  mulsd  %xmm7,%xmm0
  movsd  %xmm7,(%rsp)
  mulsd  %xmm7,%xmm0
  divsd  0x20(%rsp),%xmm0
  movq   %r12,%xmm2
  divsd  %xmm0,%xmm2
  movsd  0x10(%rsp),%xmm1
  divsd  %xmm0,%xmm1
  movapd %xmm2,%xmm0
  call   <psi_m_unstable@plt>
  movapd %xmm0,%xmm2
  movsd  (%rsp),%xmm7
  movapd %xmm7,%xmm0
  divsd  D36(%rip),%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm2,%xmm1
  mulsd  %xmm1,%xmm0
  movq   %rbp,%xmm3
  subsd  %xmm0,%xmm3
  movq   %xmm3,%r14
  subsd  0x18(%rsp),%xmm7
  movq   %xmm7,%rbx
  movapd %xmm7,%xmm0
  call   <fabs@plt>
  mov    %r13,%r15
  test   %eax,%eax
  jg     L6
  movsd  0x28(%rsp),%xmm6
  movsd  %xmm6,(%rsp)
  jmp    L25
```

tool_calls: name: unpack_data
arguments: tag: D36
data_type: f64
name: unpack_data
arguments: tag: D127
data_type: f32[4]
name: unpack_data
arguments: tag: D37
data_type: f32

tool: D36: 0.35

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

tool: D37: 0

assistant: ```c
double compute_ustar(double windspeed, double buoyancy_flux, double z0, double zb) {
  double lmo, zeta, zeta0, psi_m, ustar;
  double ustar0, ustar1, ustar_new, f0, f1, delta_ustar;
  double logz = log(zb / z0);
  ustar0 = windspeed * 0.35 / logz;
  if (fabs(buoyancy_flux) > 1.0e-20) {
    lmo = -ustar0 * ustar0 * ustar0 / (buoyancy_flux * 0.35);
    zeta = zb / lmo;
    zeta0 = z0 / lmo;
    if (zeta >= 0.0) {
      f0 = windspeed - ustar0 / 0.35 * (logz - psi_m_stable(zeta, zeta0));
      ustar1 = windspeed * 0.35 / (logz - psi_m_stable(zeta, zeta0));
      lmo = -ustar1 * ustar1 * ustar1 / (buoyancy_flux * 0.35);
      zeta = zb / lmo;
      zeta0 = z0 / lmo;
      f1 = windspeed - ustar1 / 0.35 * (logz - psi_m_stable(zeta, zeta0));
      ustar = ustar1;
      delta_ustar = ustar1 - ustar0;
      do {
        ustar_new = ustar1 - f1 * delta_ustar / (f1 - f0);
        f0 = f1;
        ustar0 = ustar1;
        ustar1 = ustar_new;
        lmo = -ustar1 * ustar1 * ustar1 / (buoyancy_flux * 0.35);
        zeta = zb / lmo;
        zeta0 = z0 / lmo;
        f1 = windspeed - ustar1 / 0.35 * (logz - psi_m_stable(zeta, zeta0));
        delta_ustar = ustar1 - ustar0;
      } while (fabs(delta_ustar) > 1e-10);
    } else {
      f0 = windspeed - ustar0 / 0.35 * (logz - psi_m_unstable(zeta, zeta0));
      ustar1 = windspeed * 0.35 / (logz - psi_m_unstable(zeta, zeta0));
      lmo = -ustar1 * ustar1 * ustar1 / (buoyancy_flux * 0.35);
      zeta = zb / lmo;
      zeta0 = z0 / lmo;
      f1 = windspeed - ustar1 / 0.35 * (logz - psi_m_unstable(zeta, zeta0));
      ustar = ustar1;
      delta_ustar = ustar1 - ustar0;
      do {
        ustar_new = ustar1 - f1 * delta_ustar / (f1 - f0);
        f0 = f1;
        ustar0 = ustar1;
        ustar1 = ustar_new;
        lmo = -ustar1 * ustar1 * ustar1 / (buoyancy_flux * 0.35);
        zeta = zb / lmo;
        zeta0 = z0 / lmo;
        f1 = windspeed - ustar1 / 0.35 * (logz - psi_m_unstable(zeta, zeta0));
        delta_ustar = ustar1 - ustar0;
      } while (fabs(delta_ustar) > 1e-10);
    }
  } else {
    ustar = ustar0;
  }
  return ustar;
}
```