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

```asm
<HDsSymidxMax>:
  endbr64
  push   %r13
  push   %r12
  mov    %r9,%r12
  push   %rbp
  mov    %rcx,%rbp
  push   %rbx
  mov    %rsi,%rbx
  mov    $0x3,%esi
  sub    $0x108,%rsp
  movsd  0x30(%rdx),%xmm5
  movsd  0x18(%rdx),%xmm2
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  mov    0x130(%rsp),%r13d
  lea    0xb0(%rsp),%rdi
  movsd  %xmm5,0x20(%rsp)
  movsd  0x20(%rdx),%xmm5
  movsd  %xmm2,0x18(%rsp)
  movsd  (%rdx),%xmm2
  movsd  %xmm5,0x28(%rsp)
  movsd  0x10(%rdx),%xmm5
  movsd  %xmm2,0x10(%rsp)
  movsd  0x8(%rdx),%xmm2
  movsd  %xmm5,0x38(%rsp)
  movupd 0x10(%rdx),%xmm5
  movsd  %xmm2,0x48(%rsp)
  movsd  0x38(%rdx),%xmm2
  movlpd (%rdx),%xmm5
  movapd %xmm5,%xmm3
  movupd 0x30(%rdx),%xmm5
  movsd  %xmm2,0x30(%rsp)
  movsd  0x28(%rdx),%xmm2
  movlpd 0x20(%rdx),%xmm5
  movsd  %xmm2,0x40(%rsp)
  movupd (%rdx),%xmm2
  movapd %xmm5,%xmm1
  movupd 0x20(%rdx),%xmm5
  movlpd 0x30(%rdx),%xmm2
  movlpd 0x10(%rdx),%xmm5
  movsd  0x40(%rdx),%xmm4
  movaps %xmm3,0xb0(%rsp)
  movaps %xmm2,0xc0(%rsp)
  movsd  %xmm4,0xa0(%rsp)
  mov    0xa0(%rsp),%rax
  movsd  %xmm4,0x8(%rsp)
  mov    %rax,0xf0(%rsp)
  movaps %xmm1,0xd0(%rsp)
  movaps %xmm5,0xe0(%rsp)
  call   <minv@plt>
  test   %r13d,%r13d
  jle    L4
  movsd  0xc8(%rsp),%xmm2
  lea    -0x1(%r13),%eax
  mov    %r12,%r9
  movsd  0xd0(%rsp),%xmm5
  movsd  0xe0(%rsp),%xmm15
  lea    0x4(%r12,%rax,4),%rdx
  movsd  0xe8(%rsp),%xmm14
  movsd  0xf0(%rsp),%xmm13
  movsd  %xmm2,0x50(%rsp)
  movsd  0xb0(%rsp),%xmm12
  movsd  0xb8(%rsp),%xmm11
  movsd  %xmm5,0x58(%rsp)
  movsd  0xc0(%rsp),%xmm10
  movsd  0xd8(%rsp),%xmm9
  nopl   0x0(%rax)
L5:
  mov    (%r9),%eax
  movapd %xmm14,%xmm6
  add    $0x4,%r9
  movapd %xmm15,%xmm1
  movsd  0x40(%rsp),%xmm4
  movsd  0x38(%rsp),%xmm3
  movapd %xmm11,%xmm7
  lea    (%rax,%rax,2),%eax
  movsd  0x58(%rsp),%xmm8
  add    %eax,%eax
  cltq
  lea    (%rbx,%rax,8),%rax
  movsd  (%rax),%xmm0
  movsd  0x8(%rax),%xmm2
  movsd  0x18(%rax),%xmm5
  mulsd  %xmm0,%xmm1
  mulsd  %xmm2,%xmm6
  mulsd  %xmm5,%xmm3
  mulsd  %xmm2,%xmm7
  mulsd  %xmm2,%xmm8
  addsd  %xmm1,%xmm6
  movsd  0x20(%rax),%xmm1
  mulsd  %xmm1,%xmm4
  addsd  %xmm13,%xmm6
  addsd  %xmm3,%xmm4
  movapd %xmm12,%xmm3
  addsd  0x8(%rsp),%xmm4
  mulsd  %xmm0,%xmm3
  addsd  %xmm7,%xmm3
  movapd %xmm5,%xmm7
  addsd  %xmm10,%xmm3
  divsd  %xmm6,%xmm3
  subsd  %xmm3,%xmm7
  movsd  0x50(%rsp),%xmm3
  mulsd  %xmm0,%xmm3
  mulsd  %xmm7,%xmm7
  addsd  %xmm8,%xmm3
  addsd  %xmm9,%xmm3
  divsd  %xmm6,%xmm3
  movapd %xmm1,%xmm6
  subsd  %xmm3,%xmm6
  movsd  0x10(%rsp),%xmm3
  mulsd  %xmm5,%xmm3
  mulsd  %xmm6,%xmm6
  mulsd  0x48(%rsp),%xmm5
  addsd  %xmm7,%xmm6
  movsd  0x18(%rsp),%xmm7
  mulsd  %xmm1,%xmm7
  mulsd  0x28(%rsp),%xmm1
  addsd  %xmm7,%xmm3
  addsd  0x20(%rsp),%xmm3
  addsd  %xmm5,%xmm1
  addsd  0x30(%rsp),%xmm1
  divsd  %xmm4,%xmm3
  divsd  %xmm4,%xmm1
  subsd  %xmm3,%xmm0
  mulsd  %xmm0,%xmm0
  subsd  %xmm1,%xmm2
  mulsd  %xmm2,%xmm2
  addsd  %xmm2,%xmm0
  maxsd  %xmm6,%xmm0
  movsd  %xmm0,0x0(%rbp)
  cmp    %r9,%rdx
  jne    L5
L4:
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L16
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L16:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void HDsSymidxMax(const double *lin, const double *mu, const double *H, double *p, int len, int *idx, int siz) {
  int i, mi;
  double Hinv[9], H1[9];
  const double *u;
  double a, b, xa, ya, d1, d2, xdiff, ydiff;
  Hinv[0] = H[0];
  Hinv[1] = H[3];
  Hinv[2] = H[6];
  Hinv[3] = H[1];
  Hinv[4] = H[4];
  Hinv[5] = H[7];
  Hinv[6] = H[2];
  Hinv[7] = H[5];
  Hinv[8] = H[8];
  for (i = 0; i < 9; i++)
    H1[i] = Hinv[i];
  minv(H1, 3);
  for (mi = 0; mi < siz; mi++) {
    i = idx[mi];
    u = mu + 6 * i;
    a = H1[6] * u[0] + H1[7] * u[1] + H1[8];
    b = Hinv[6] * u[3] + Hinv[7] * u[4] + Hinv[8];
    xa = (H1[0] * u[0] + H1[1] * u[1] + H1[2]) / a;
    ya = (H1[3] * u[0] + H1[4] * u[1] + H1[5]) / a;
    xdiff = u[3] - xa;
    ydiff = u[4] - ya;
    d1 = xdiff * xdiff + ydiff * ydiff;
    xa = (Hinv[0] * u[3] + Hinv[1] * u[4] + Hinv[2]) / b;
    ya = (Hinv[3] * u[3] + Hinv[4] * u[4] + Hinv[5]) / b;
    xdiff = u[0] - xa;
    ydiff = u[1] - ya;
    d2 = xdiff * xdiff + ydiff * ydiff;
    *p = ((d1) < (d2) ? (d2) : (d1));
  }
}
```