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

```asm
<det5x5>:
  endbr64
  push   %rbp
  push   %rbx
  sub    $0x2a8,%rsp
  mov    %rdi,%rbx
  mov    %fs:0x28,%rax
  mov    %rax,0x298(%rsp)
  xor    %eax,%eax
  movsd  0x30(%rdi),%xmm14
  movsd  %xmm14,0x10(%rsp)
  movsd  0x38(%rdi),%xmm13
  movsd  %xmm13,0x18(%rsp)
  movsd  0x40(%rdi),%xmm12
  movsd  %xmm12,0x20(%rsp)
  mov    0x48(%rdi),%rsi
  mov    %rsi,0x28(%rsp)
  movsd  0x58(%rdi),%xmm10
  movsd  %xmm10,0x30(%rsp)
  movsd  0x60(%rdi),%xmm9
  movsd  %xmm9,0x38(%rsp)
  movsd  0x68(%rdi),%xmm8
  movsd  %xmm8,0x40(%rsp)
  mov    0x70(%rdi),%rcx
  mov    %rcx,0x48(%rsp)
  movsd  0x80(%rdi),%xmm6
  movsd  %xmm6,0x50(%rsp)
  movsd  0x88(%rdi),%xmm5
  movsd  %xmm5,0x58(%rsp)
  movsd  0x90(%rdi),%xmm4
  movsd  %xmm4,0x60(%rsp)
  mov    0x98(%rdi),%rdx
  mov    %rdx,0x68(%rsp)
  movsd  0xa8(%rdi),%xmm2
  movsd  %xmm2,0x70(%rsp)
  movsd  0xb0(%rdi),%xmm1
  movsd  %xmm1,0x78(%rsp)
  movsd  0xb8(%rdi),%xmm0
  movsd  %xmm0,0x80(%rsp)
  mov    0xc0(%rdi),%rax
  mov    %rax,0x88(%rsp)
  movsd  0x28(%rdi),%xmm15
  movsd  %xmm15,0x90(%rsp)
  movsd  %xmm13,0x98(%rsp)
  movsd  %xmm12,0xa0(%rsp)
  mov    %rsi,0xa8(%rsp)
  movsd  0x50(%rdi),%xmm11
  movsd  %xmm11,0xb0(%rsp)
  movsd  %xmm9,0xb8(%rsp)
  movsd  %xmm8,0xc0(%rsp)
  mov    %rcx,0xc8(%rsp)
  movsd  0x78(%rdi),%xmm7
  movsd  %xmm7,0xd0(%rsp)
  movsd  %xmm5,0xd8(%rsp)
  movsd  %xmm4,0xe0(%rsp)
  mov    %rdx,0xe8(%rsp)
  movsd  0xa0(%rdi),%xmm3
  movsd  %xmm3,0xf0(%rsp)
  movsd  %xmm1,0xf8(%rsp)
  movsd  %xmm0,0x100(%rsp)
  mov    %rax,0x108(%rsp)
  movsd  %xmm15,0x110(%rsp)
  movsd  %xmm14,0x118(%rsp)
  movsd  %xmm12,0x120(%rsp)
  mov    %rsi,0x128(%rsp)
  movsd  %xmm11,0x130(%rsp)
  movsd  %xmm10,0x138(%rsp)
  movsd  %xmm8,0x140(%rsp)
  mov    %rcx,0x148(%rsp)
  movsd  %xmm7,0x150(%rsp)
  movsd  %xmm6,0x158(%rsp)
  movsd  %xmm4,0x160(%rsp)
  mov    %rdx,0x168(%rsp)
  movsd  %xmm3,0x170(%rsp)
  movsd  %xmm2,0x178(%rsp)
  movsd  %xmm0,0x180(%rsp)
  mov    %rax,0x188(%rsp)
  movsd  %xmm15,0x190(%rsp)
  movsd  %xmm14,0x198(%rsp)
  movsd  %xmm13,0x1a0(%rsp)
  mov    %rsi,0x1a8(%rsp)
  movsd  %xmm11,0x1b0(%rsp)
  movsd  %xmm10,0x1b8(%rsp)
  movsd  %xmm9,0x1c0(%rsp)
  mov    %rcx,0x1c8(%rsp)
  movsd  %xmm7,0x1d0(%rsp)
  movsd  %xmm6,0x1d8(%rsp)
  movsd  %xmm5,0x1e0(%rsp)
  mov    %rdx,0x1e8(%rsp)
  movsd  %xmm3,0x1f0(%rsp)
  movsd  %xmm2,0x1f8(%rsp)
  movsd  %xmm1,0x200(%rsp)
  mov    %rax,0x208(%rsp)
  movsd  %xmm15,0x210(%rsp)
  movsd  %xmm14,0x218(%rsp)
  movsd  %xmm13,0x220(%rsp)
  movsd  %xmm12,0x228(%rsp)
  movsd  %xmm11,0x230(%rsp)
  movsd  %xmm10,0x238(%rsp)
  movsd  %xmm9,0x240(%rsp)
  movsd  %xmm8,0x248(%rsp)
  movsd  %xmm7,0x250(%rsp)
  movsd  %xmm6,0x258(%rsp)
  movsd  %xmm5,0x260(%rsp)
  movsd  %xmm4,0x268(%rsp)
  movsd  %xmm3,0x270(%rsp)
  movsd  %xmm2,0x278(%rsp)
  movsd  %xmm1,0x280(%rsp)
  movsd  %xmm0,0x288(%rsp)
  mov    (%rdi),%rbp
  lea    0x10(%rsp),%rdi
  mov    $0x0,%eax
  call   <det4x4@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movq   %rbp,%xmm1
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
  mov    0x8(%rbx),%rbp
  lea    0x90(%rsp),%rdi
  mov    $0x0,%eax
  call   <det4x4@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movq   %rbp,%xmm3
  mulsd  %xmm3,%xmm0
  movsd  0x8(%rsp),%xmm1
  subsd  %xmm0,%xmm1
  movsd  %xmm1,0x8(%rsp)
  mov    0x10(%rbx),%rbp
  lea    0x110(%rsp),%rdi
  mov    $0x0,%eax
  call   <det4x4@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movq   %rbp,%xmm4
  mulsd  %xmm4,%xmm0
  addsd  0x8(%rsp),%xmm0
  movsd  %xmm0,0x8(%rsp)
  mov    0x18(%rbx),%rbp
  lea    0x190(%rsp),%rdi
  mov    $0x0,%eax
  call   <det4x4@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movq   %rbp,%xmm5
  mulsd  %xmm5,%xmm0
  movsd  0x8(%rsp),%xmm2
  subsd  %xmm0,%xmm2
  movsd  %xmm2,0x8(%rsp)
  mov    0x20(%rbx),%rbx
  lea    0x210(%rsp),%rdi
  mov    $0x0,%eax
  call   <det4x4@plt>
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movq   %rbx,%xmm6
  mulsd  %xmm6,%xmm0
  addsd  0x8(%rsp),%xmm0
  mov    0x298(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L5
  add    $0x2a8,%rsp
  pop    %rbx
  pop    %rbp
  ret
L5:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
double det5x5(double M[5 * 5]) {
  double minor11[4 * 4] = {M[6], M[7], M[8], M[9], M[11], M[12], M[13], M[14], M[16], M[17], M[18], M[19], M[21], M[22], M[23], M[24]};
  double minor12[4 * 4] = {M[5], M[7], M[8], M[9], M[10], M[12], M[13], M[14], M[15], M[17], M[18], M[19], M[20], M[22], M[23], M[24]};
  double minor13[4 * 4] = {M[5], M[6], M[8], M[9], M[10], M[11], M[13], M[14], M[15], M[16], M[18], M[19], M[20], M[21], M[23], M[24]};
  double minor14[4 * 4] = {M[5], M[6], M[7], M[9], M[10], M[11], M[12], M[14], M[15], M[16], M[17], M[19], M[20], M[21], M[22], M[24]};
  double minor15[4 * 4] = {M[5], M[6], M[7], M[8], M[10], M[11], M[12], M[13], M[15], M[16], M[17], M[18], M[20], M[21], M[22], M[23]};
  return M[0] * (det4x4(minor11)) - M[1] * (det4x4(minor12)) + M[2] * (det4x4(minor13)) - M[3] * (det4x4(minor14)) + M[4] * (det4x4(minor15));
}
```