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

```asm
<get_Delaunay_shortest_vectors>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x148,%rsp
  mov    %rdi,%rcx
  movsd  %xmm0,0x10(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x138(%rsp)
  xor    %eax,%eax
  mov    %rdi,0x18(%rsp)
  lea    0x90(%rsp),%r15
  lea    0xf0(%rsp),%rsi
  mov    %r15,%rax
  mov    %rdi,%rdx
L63:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  movsd  0x8(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  0x10(%rdx),%xmm0
  movsd  %xmm0,0x10(%rax)
  add    $0x18,%rdx
  add    $0x18,%rax
  cmp    %rsi,%rax
  jne    L63
  movsd  (%rcx),%xmm6
  movsd  0x18(%rcx),%xmm1
  movapd %xmm6,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,0xf0(%rsp)
  movsd  0x8(%rcx),%xmm5
  movsd  0x20(%rcx),%xmm4
  movapd %xmm5,%xmm0
  addsd  %xmm4,%xmm0
  movsd  %xmm0,0xf8(%rsp)
  movsd  0x10(%rcx),%xmm0
  movsd  0x28(%rcx),%xmm3
  movapd %xmm0,%xmm2
  addsd  %xmm3,%xmm2
  movsd  %xmm2,0x100(%rsp)
  movsd  0x30(%rcx),%xmm2
  addsd  %xmm2,%xmm1
  movsd  %xmm1,0x108(%rsp)
  movsd  0x38(%rcx),%xmm1
  addsd  %xmm1,%xmm4
  movsd  %xmm4,0x110(%rsp)
  movsd  0x40(%rcx),%xmm4
  addsd  %xmm4,%xmm3
  movsd  %xmm3,0x118(%rsp)
  addsd  %xmm6,%xmm2
  movsd  %xmm2,0x120(%rsp)
  addsd  %xmm5,%xmm1
  movsd  %xmm1,0x128(%rsp)
  addsd  %xmm4,%xmm0
  movsd  %xmm0,0x130(%rsp)
  movl   $0x6,0xc(%rsp)
  lea    0x90(%r15),%r13
  lea    0x20(%rsp),%r14
  jmp    L103
L25:
  cmp    %r13,%rbx
  je     L83
L119:
  mov    %rbx,%r12
  mov    %rbx,%rdi
  call   <mat_norm_squared_d3@plt>
  mov    %rax,%rbp
  add    $0x18,%rbx
  mov    %rbx,%rdi
  call   <mat_norm_squared_d3@plt>
  cmp    %rax,%rbp
  jle    L25
  mov    %r12,%rsi
  mov    %r14,%rdi
  call   <mat_copy_vector_d3@plt>
  mov    %rbx,%rsi
  mov    %r12,%rdi
  call   <mat_copy_vector_d3@plt>
  mov    %r14,%rsi
  mov    %rbx,%rdi
  call   <mat_copy_vector_d3@plt>
  jmp    L25
L83:
  subl   $0x1,0xc(%rsp)
  je     L28
L103:
  mov    %r15,%rbx
  jmp    L119
L97:
  lea    0x40(%rsp),%rdi
  call   <mat_get_determinant_d3@plt>
  mov    %eax,%edi
  call   <mat_Dabs@plt>
  comisd 0x10(%rsp),%xmm0
  ja     L50
  add    $0x1,%ebp
  add    $0x18,%rbx
  cmp    $0x7,%ebp
  je     L133
L24:
  lea    0x40(%rsp),%rax
  mov    %r15,%rdx
L102:
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  movsd  0x18(%rdx),%xmm0
  movsd  %xmm0,0x8(%rax)
  movsd  (%rdx,%rbx,1),%xmm0
  movsd  %xmm0,0x10(%rax)
  add    $0x8,%rdx
  add    $0x18,%rax
  cmp    %r12,%rax
  jne    L102
  jmp    L97
L50:
  lea    0x18(%r15),%rdx
  movslq %ebp,%rbp
  lea    0x0(%rbp,%rbp,2),%rax
  shl    $0x3,%rax
L68:
  movsd  (%r15),%xmm0
  mov    0x18(%rsp),%rcx
  movsd  %xmm0,(%rcx)
  movsd  0x18(%r15),%xmm0
  movsd  %xmm0,0x18(%rcx)
  movsd  (%r15,%rax,1),%xmm0
  movsd  %xmm0,0x30(%rcx)
  add    $0x8,%r15
  add    $0x8,%rcx
  mov    %rcx,0x18(%rsp)
  cmp    %r15,%rdx
  jne    L68
L133:
  mov    0x138(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L67
  add    $0x148,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L28:
  mov    $0x30,%ebx
  mov    $0x2,%ebp
  lea    0x88(%rsp),%r12
  jmp    L24
L67:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void get_Delaunay_shortest_vectors(double basis[4][3], const double symprec) {
  int i, j;
  double tmpmat[3][3], b[7][3], tmpvec[3];
  for (i = 0; i < 4; i++) {
    for (j = 0; j < 3; j++) {
      b[i][j] = basis[i][j];
    }
  }
  for (i = 0; i < 3; i++) {
    b[4][i] = basis[0][i] + basis[1][i];
  }
  for (i = 0; i < 3; i++) {
    b[5][i] = basis[1][i] + basis[2][i];
  }
  for (i = 0; i < 3; i++) {
    b[6][i] = basis[2][i] + basis[0][i];
  }
  for (i = 0; i < 6; i++) {
    for (j = 0; j < 6; j++) {
      if (mat_norm_squared_d3(b[j]) > mat_norm_squared_d3(b[j + 1])) {
        mat_copy_vector_d3(tmpvec, b[j]);
        mat_copy_vector_d3(b[j], b[j + 1]);
        mat_copy_vector_d3(b[j + 1], tmpvec);
      }
    }
  }
  for (i = 2; i < 7; i++) {
    for (j = 0; j < 3; j++) {
      tmpmat[j][0] = b[0][j];
      tmpmat[j][1] = b[1][j];
      tmpmat[j][2] = b[i][j];
    }
    if (mat_Dabs(mat_get_determinant_d3(tmpmat)) > symprec) {
      for (j = 0; j < 3; j++) {
        basis[0][j] = b[0][j];
        basis[1][j] = b[1][j];
        basis[2][j] = b[i][j];
      }
      break;
    }
  }
}
```