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

```asm
<eigen_symm_2d>:
  endbr64
  push   %rbp
  mov    %rsi,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x28,%rsp
  mov    (%rdx),%rax
  movq   D29(%rip),%xmm5
  movsd  (%rax),%xmm3
  movsd  0x8(%rax),%xmm4
  mov    0x8(%rdx),%rax
  movapd %xmm3,%xmm6
  movapd %xmm4,%xmm0
  movapd %xmm3,%xmm8
  movsd  0x8(%rax),%xmm1
  mulsd  %xmm4,%xmm0
  mulsd  %xmm1,%xmm6
  movapd %xmm1,%xmm7
  unpcklpd %xmm1,%xmm8
  unpcklpd %xmm3,%xmm7
  movapd %xmm6,%xmm2
  andpd  %xmm5,%xmm2
  mulsd  D30(%rip),%xmm2
  comisd %xmm0,%xmm2
  jbe    L29
  andpd  %xmm5,%xmm3
  andpd  %xmm5,%xmm1
  mov    (%rsi),%rax
  mov    0x8(%rsi),%rdx
  comisd %xmm3,%xmm1
  ja     L7
  movsd  D10(%rip),%xmm0
  movups %xmm7,(%rdi)
  movq   $0x0,0x8(%rdx)
  movq   $0x0,(%rax)
  movsd  %xmm0,(%rdx)
  movsd  %xmm0,0x8(%rax)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax)
L7:
  movsd  D10(%rip),%xmm0
  movups %xmm8,(%rdi)
  movsd  %xmm0,0x8(%rdx)
  movsd  %xmm0,(%rax)
  movq   $0x0,(%rdx)
  movq   $0x0,0x8(%rax)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
  nopl   0x0(%rax,%rax,1)
L29:
  movapd %xmm1,%xmm2
  subsd  %xmm6,%xmm0
  addsd  %xmm3,%xmm2
  mulsd  D36(%rip),%xmm0
  movapd %xmm2,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm0,%xmm1
  ja     L10
  sqrtsd %xmm0,%xmm0
L12:
  movapd %xmm2,%xmm1
  movsd  D23(%rip),%xmm6
  subsd  %xmm0,%xmm2
  addsd  %xmm0,%xmm1
  mulsd  %xmm6,%xmm2
  mulsd  %xmm6,%xmm1
  movapd %xmm1,%xmm0
  andpd  %xmm5,%xmm0
  andpd  %xmm2,%xmm5
  comisd %xmm0,%xmm5
  ja     L18
  movq   %xmm1,%rax
  movapd %xmm2,%xmm1
  movq   %rax,%xmm2
L18:
  movsd  %xmm1,(%rbx)
  subsd  %xmm3,%xmm1
  movapd %xmm4,%xmm0
  movsd  %xmm2,0x8(%rbx)
  movsd  %xmm2,0x18(%rsp)
  movsd  %xmm3,0x8(%rsp)
  movsd  %xmm4,(%rsp)
  call   <hypot@plt>
  movsd  0x8(%rsp),%xmm3
  movsd  0x18(%rsp),%xmm2
  movsd  (%rsp),%xmm4
  movsd  %xmm0,0x10(%rsp)
  subsd  %xmm3,%xmm2
  movapd %xmm4,%xmm0
  movapd %xmm2,%xmm1
  call   <hypot@plt>
  movsd  (%rsp),%xmm4
  mov    0x0(%rbp),%rax
  movsd  0x10(%rsp),%xmm5
  movsd  0x8(%rsp),%xmm3
  movapd %xmm4,%xmm1
  divsd  %xmm5,%xmm1
  divsd  %xmm0,%xmm4
  movsd  %xmm1,(%rax)
  movsd  (%rbx),%xmm1
  subsd  %xmm3,%xmm1
  divsd  %xmm5,%xmm1
  movsd  %xmm1,0x8(%rax)
  mov    0x8(%rbp),%rax
  movsd  %xmm4,(%rax)
  movsd  0x8(%rbx),%xmm1
  subsd  %xmm3,%xmm1
  divsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rax)
  add    $0x28,%rsp
  pop    %rbx
  pop    %rbp
  ret
L10:
  movsd  %xmm4,0x10(%rsp)
  movsd  %xmm3,0x8(%rsp)
  movsd  %xmm2,(%rsp)
  call   <sqrt@plt>
  movsd  0x10(%rsp),%xmm4
  movsd  0x8(%rsp),%xmm3
  movq   D29(%rip),%xmm5
  movsd  (%rsp),%xmm2
  jmp    L12
```

tool_calls: name: read_data
arguments: tag: D29
type: qword
name: read_data
arguments: tag: D30
type: byte[8]
name: read_data
arguments: tag: D10
type: f64
name: read_data
arguments: tag: D36
type: f64
name: read_data
arguments: tag: D23
type: f32[2]

tool: D29: 9223372036854775807

tool: {"D30": [0xbc,0x89,0xd8,0x97,0xb2,0xd2,0x9c,0x3c]}

tool: D10: 1

tool: D36: 4

tool: {"D23": [0.0,1.75]}

assistant: ```c
void eigen_symm_2d(double z[], double **V, double **X) {
  double a = X[0][0];
  double b = X[0][1];
  double c = X[1][1];
  const double epsilon = 1e-16;
  if (b * b < epsilon * fabs(a * c)) {
    if (fabs(a) < fabs(c)) {
      z[0] = a;
      z[1] = c;
      V[0][0] = V[1][1] = 1.0;
      V[0][1] = V[1][0] = 0.0;
    } else {
      z[0] = c;
      z[1] = a;
      V[0][0] = V[1][1] = 0.0;
      V[0][1] = V[1][0] = 1.0;
    }
    return;
  }
  double s = sqrt((a + c) * (a + c) + 4. * (b * b - a * c));
  double z1 = (a + c + s) / 2.;
  double z2 = (a + c - s) / 2.;
  if (fabs(z1) < fabs(z2)) {
    z[0] = z1;
    z[1] = z2;
  } else {
    z[1] = z1;
    z[0] = z2;
  }
  double d0 = hypot(b, z[0] - a);
  double d1 = hypot(b, z[1] - a);
  V[0][0] = b / d0;
  V[0][1] = (z[0] - a) / d0;
  V[1][0] = b / d1;
  V[1][1] = (z[1] - a) / d1;
}
```