user: Demonstrate the C code that generates the assembly output below:

```asm
<determinant_poorly>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    $0x5,%ebx
  sub    $0x68,%rsp
  mov    D0(%rip),%r12
  mov    %edi,0x14(%rsp)
  lea    0x30(%rsp),%r13
  mov    %rsi,0x18(%rsp)
  mov    (%r12),%edx
  xor    %esi,%esi
  mov    %fs:0x28,%rax
  mov    %rax,0x58(%rsp)
  movabs $0x100000000,%rax
  movl   $0x6,0x48(%rsp)
  mov    %rax,0x30(%rsp)
  movabs $0x300000002,%rax
  mov    %rax,0x38(%rsp)
  movabs $0x500000004,%rax
  mov    %rax,0x40(%rsp)
  call   <mpfr_set_si@plt>
  mov    $0xc8,%esi
  xor    %edi,%edi
  call   <mpfr_init2@plt>
  lea    0x34(%rsp),%rax
  movl   $0x0,0x10(%rsp)
  mov    %rax,0x20(%rsp)
  lea    0x4c(%rsp),%rax
  movl   $0x6,0x4(%rsp)
  movl   $0x1,0x8(%rsp)
  mov    %rax,0x28(%rsp)
  nopw   0x0(%rax,%rax,1)
L90:
  mov    (%r12),%edx
  mov    0x8(%rsp),%esi
  xor    %edi,%edi
  mov    %r13,%rbp
  call   <mpfr_set_si@plt>
  mov    0x18(%rsp),%r14
  mov    %ebx,0xc(%rsp)
  mov    0x20(%rsp),%r15
  movslq 0x10(%rsp),%rax
  mov    %r14,%rbx
  mov    0x28(%rsp),%r14
  jmp    L83
  nopw   0x0(%rax,%rax,1)
L88:
  movslq (%r15),%rax
  add    $0x4,%r15
L83:
  mov    (%rbx,%rax,4),%edx
  xor    %edi,%edi
  mov    (%r12),%ecx
  add    $0x1c,%rbx
  mov    %edi,%esi
  call   <mpfr_mul@plt>
  cmp    %r14,%r15
  jne    L88
  mov    0x14(%rsp),%esi
  mov    (%r12),%ecx
  xor    %edx,%edx
  mov    0xc(%rsp),%ebx
  mov    %esi,%edi
  call   <mpfr_add@plt>
  mov    0x4(%rsp),%esi
  mov    $0x6,%edi
  mov    %ebx,%eax
  mov    %r13,%rdx
  lea    -0x1(%rdi),%ecx
  cmp    %eax,%esi
  jg     L109
L28:
  sub    $0x4,%rdx
  test   %ecx,%ecx
  je     L61
  mov    %eax,%esi
  mov    0x14(%rdx),%eax
  mov    %ecx,%edi
  lea    -0x1(%rdi),%ecx
  cmp    %eax,%esi
  jle    L28
L109:
  cmp    %eax,0x4(%rsp)
  jg     L91
  mov    %r13,%rdx
  mov    $0x6,%r8d
  jmp    L69
  nopl   0x0(%rax)
L46:
  mov    0x14(%rdx),%ebx
  mov    %esi,%r8d
L69:
  lea    -0x1(%r8),%esi
  sub    $0x4,%rdx
  cmp    %eax,%ebx
  jle    L46
  cmp    %r8d,%edi
  je     L47
L99:
  movslq %ecx,%rcx
  movslq %esi,%rsi
  negl   0x8(%rsp)
  mov    %ebx,0x30(%rsp,%rcx,4)
  mov    %eax,0x30(%rsp,%rsi,4)
  mov    0x30(%rsp),%eax
  mov    %eax,0x10(%rsp)
  mov    0x48(%rsp),%eax
  mov    %eax,0x4(%rsp)
L47:
  cmp    $0x6,%edi
  je     L111
  movslq %edi,%rax
  lea    0x6(%rdi),%ecx
  mov    0x8(%rsp),%edx
  mov    0x4(%rsp),%edi
L92:
  mov    0x0(%r13,%rax,4),%esi
  neg    %edx
  sub    $0x4,%rbp
  mov    %esi,0x1c(%rbp)
  mov    %ecx,%esi
  mov    %edi,0x0(%r13,%rax,4)
  add    $0x1,%rax
  sub    %eax,%esi
  cmp    %eax,%esi
  jle    L82
  mov    0x18(%rbp),%edi
  jmp    L92
L82:
  mov    0x48(%rsp),%eax
  mov    %edx,0x8(%rsp)
  mov    %eax,0x4(%rsp)
L111:
  mov    0x44(%rsp),%ebx
  jmp    L90
  nopl   (%rax)
L61:
  mov    0x58(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L125
  add    $0x68,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L91:
  mov    0x4(%rsp),%ebx
  mov    $0x6,%esi
  jmp    L99
L125:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void determinant_poorly(mpfr_t det, mpfr_t A[][5 + 2]) {
  int sgn = 1;
  int sigma[5 + 2];
  mpfr_t prod;
  for (int j = 0; j < (5 + 2); ++j) {
    sigma[j] = j;
  }
  mpfr_set_si(det, 0, MPFR_RNDN);
  mpfr_init2(prod, 200);
  while (1) {
    mpfr_set_si(prod, sgn, MPFR_RNDN);
    for (int j = 0; j < (5 + 2); ++j) {
      mpfr_mul(prod, prod, A[j][sigma[j]], MPFR_RNDN);
    }
    mpfr_add(det, det, prod, MPFR_RNDN);
    int k = 5 + 1;
    int j = 5 + 1;
    int t;
    while (k > 0 && sigma[k - 1] >= sigma[k]) {
      k--;
    }
    if (!k) {
      break;
    }
    while (sigma[j] <= sigma[k - 1]) {
      j--;
    }
    if (k - 1 != j) {
      t = sigma[k - 1];
      sigma[k - 1] = sigma[j];
      sigma[j] = t;
      sgn *= -1;
    }
    for (int l = 5 + 1; l > k; --l, ++k) {
      t = sigma[l];
      sigma[l] = sigma[k];
      sigma[k] = t;
      sgn *= -1;
    }
  }
}
```