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

```asm
<Determinant>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x58,%rsp
  mov    %rdi,-0x48(%rbp)
  mov    %esi,-0x4c(%rbp)
  movl   $0x0,-0x24(%rbp)
  movl   $0x0,-0x38(%rbp)
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x30(%rbp)
  movl   $0x0,-0x2c(%rbp)
  movl   $0x1,-0x28(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  mov    -0x4c(%rbp),%eax
  sub    $0x1,%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,-0x18(%rbp)
  movl   $0x0,-0x38(%rbp)
  jmp    L114
L29:
  mov    -0x24(%rbp),%eax
  cltq
  shl    $0x3,%rax
  mov    -0x38(%rbp),%edx
  movslq %edx,%rdx
  lea    0x0(,%rdx,8),%rcx
  mov    -0x18(%rbp),%rdx
  lea    (%rcx,%rdx,1),%rbx
  mov    %rax,%rdi
  call   <malloc@plt>
  mov    %rax,(%rbx)
  addl   $0x1,-0x38(%rbp)
L114:
  mov    -0x38(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L29
  cmpl   $0x2,-0x4c(%rbp)
  jne    L90
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  movsd  (%rax),%xmm1
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rax
  add    $0x8,%rax
  movsd  (%rax),%xmm2
  mov    -0x48(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  movsd  (%rax),%xmm1
  mulsd  %xmm2,%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  jmp    L140
L90:
  movl   $0x0,-0x38(%rbp)
  jmp    L75
L136:
  movl   $0x0,-0x30(%rbp)
  jmp    L8
L82:
  movl   $0x0,-0x34(%rbp)
  movl   $0x0,-0x2c(%rbp)
  jmp    L146
L138:
  mov    -0x2c(%rbp),%eax
  cmp    -0x38(%rbp),%eax
  jne    L20
  addl   $0x1,-0x34(%rbp)
L20:
  mov    -0x30(%rbp),%eax
  cltq
  add    $0x1,%rax
  lea    0x0(,%rax,8),%rdx
  mov    -0x48(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x34(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rax,%rdx
  mov    -0x30(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x18(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x2c(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rcx,%rax
  movsd  (%rdx),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x34(%rbp)
  addl   $0x1,-0x2c(%rbp)
L146:
  mov    -0x2c(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L138
  addl   $0x1,-0x30(%rbp)
L8:
  mov    -0x30(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L82
  mov    -0x38(%rbp),%eax
  cltd
  shr    $0x1f,%edx
  add    %edx,%eax
  and    $0x1,%eax
  sub    %edx,%eax
  cmp    $0x1,%eax
  jne    L42
  movl   $0xffffffff,-0x28(%rbp)
  jmp    L111
L42:
  movl   $0x1,-0x28(%rbp)
L111:
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x28(%rbp),%xmm1
  mov    -0x48(%rbp),%rax
  mov    (%rax),%rdx
  mov    -0x38(%rbp),%eax
  cltq
  shl    $0x3,%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  %xmm1,-0x58(%rbp)
  mov    -0x24(%rbp),%edx
  mov    -0x18(%rbp),%rax
  mov    %edx,%esi
  mov    %rax,%rdi
  call   <Determinant>
  mulsd  -0x58(%rbp),%xmm0
  movsd  -0x20(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  addl   $0x1,-0x38(%rbp)
L75:
  mov    -0x38(%rbp),%eax
  cmp    -0x4c(%rbp),%eax
  jl     L136
L140:
  movl   $0x0,-0x38(%rbp)
  jmp    L137
L145:
  mov    -0x38(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x18(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rax
  mov    %rax,%rdi
  call   <free@plt>
  addl   $0x1,-0x38(%rbp)
L137:
  mov    -0x38(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L145
  mov    -0x18(%rbp),%rax
  mov    %rax,%rdi
  call   <free@plt>
  movsd  -0x20(%rbp),%xmm0
  movq   %xmm0,%rax
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

assistant: ```c
double Determinant(double **matrixA, int userN) {
  int userM = 0;
  int counter = 0;
  int determinantACheck = 0;
  int determinantARow = 0;
  int determinantAColumn = 0;
  int sign = 1;
  double determinantResult = 0;
  double **matrixDeterminantA;
  userM = userN - 1;
  matrixDeterminantA = (double **)malloc(sizeof(double *) * userM);
  for (counter = 0; counter < userM; counter++) {
    matrixDeterminantA[counter] = (double *)malloc(sizeof(double) * userM);
  }
  if (userN == 2) {
    determinantResult = (matrixA[0][0] * matrixA[1][1]) - (matrixA[0][1] * matrixA[1][0]);
  } else {
    for (counter = 0; counter < userN; counter++) {
      for (determinantARow = 0; determinantARow < userM; determinantARow++) {
        determinantACheck = 0;
        for (determinantAColumn = 0; determinantAColumn < userM; determinantAColumn++) {
          if (determinantAColumn == counter) {
            determinantACheck++;
          }
          matrixDeterminantA[determinantARow][determinantAColumn] = matrixA[determinantARow + 1][determinantACheck];
          determinantACheck++;
        }
      }
      if (counter % 2 == 1) {
        sign = -1;
      } else {
        sign = 1;
      }
      determinantResult += sign * matrixA[0][counter] * Determinant(matrixDeterminantA, userM);
    }
  }
  for (counter = 0; counter < userM; counter++) {
    free(matrixDeterminantA[counter]);
  }
  free(matrixDeterminantA);
  return determinantResult;
}
```