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

```asm
<invert_poorly>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x108,%rsp
  mov    %rdi,%r15
  mov    %rdi,0x18(%rsp)
  mov    %rsi,0x28(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0xf8(%rsp)
  xor    %eax,%eax
  mov    $0xc8,%esi
  mov    $0x0,%r12d
  mov    %r12d,%edi
  call   <mpfr_init2@plt>
  mov    $0xc8,%esi
  mov    $0x0,%ebx
  mov    %ebx,%edi
  call   <mpfr_init2@plt>
  mov    %r15,%rsi
  mov    %r12d,%edi
  call   <determinant_poorly@plt>
  lea    0x30(%rsp),%r14
  mov    $0x0,%r13d
  mov    $0x0,%r15d
L197:
  mov    $0xc8,%esi
  mov    (%r14),%edi
  call   <mpfr_init2@plt>
  cmp    $0x6,%r13d
  sete   %r12b
  mov    %r14,%rbp
  mov    $0x0,%ebx
  mov    %r15d,%eax
L138:
  test   %al,%al
  jne    L146
  test   %r12b,%r12b
  jne    L146
L188:
  add    $0x1,%ebx
  cmp    $0x7,%ebx
  je     L155
  mov    0x4(%rbp),%edi
  mov    $0xc8,%esi
  call   <mpfr_init2@plt>
  cmp    $0x6,%ebx
  sete   %al
  add    $0x4,%rbp
  test   %al,%al
  je     L138
  test   %r12b,%r12b
  je     L138
  mov    D30(%rip),%rax
  mov    (%rax),%edx
  mov    $0x1,%esi
  mov    0xf0(%rsp),%edi
  call   <mpfr_set_si@plt>
L155:
  add    $0x1,%r13d
  add    $0x1c,%r14
  cmp    $0x7,%r13d
  jne    L197
  mov    $0x0,%r15d
  lea    0x30(%rsp),%rax
  mov    %rax,0x20(%rsp)
  jmp    L148
L146:
  mov    D30(%rip),%rax
  mov    (%rax),%edx
  mov    $0x0,%esi
  mov    0x0(%rbp),%edi
  call   <mpfr_set_si@plt>
  jmp    L188
L126:
  add    $0x1,%rbx
  cmp    $0x7,%rbx
  je     L122
L14:
  mov    %ebx,%edx
  mov    %ebx,%eax
  cmp    %ebp,%ebx
  je     L126
  sub    $0x1,%edx
  cmp    %ebx,%ebp
  cmovl  %edx,%eax
  mov    0x0(%r13,%rbx,4),%esi
  cltq
  add    (%rsp),%rax
  mov    0x30(%rsp,%rax,4),%edi
  mov    D30(%rip),%rax
  mov    (%rax),%edx
  call   <mpfr_set@plt>
  jmp    L126
L122:
  add    $0x1,%r12d
  add    $0x1c,%r14
  cmp    $0x7,%r12d
  je     L142
L18:
  cmp    %r15d,%r12d
  je     L122
  setg   %dl
  movzbl %dl,%edx
  mov    %r12d,%eax
  sub    %edx,%eax
  mov    %r14,%r13
  mov    $0x0,%ebx
  cltq
  lea    0x0(,%rax,8),%rdx
  sub    %rax,%rdx
  mov    %rdx,(%rsp)
  jmp    L14
L142:
  mov    0x20(%rsp),%rsi
  mov    $0x0,%ebx
  mov    %ebx,%edi
  call   <determinant_poorly@plt>
  mov    D30(%rip),%rax
  mov    (%rax),%ecx
  mov    $0x0,%r12d
  mov    %r12d,%edx
  mov    %ebx,%esi
  mov    0x8(%rsp),%rax
  mov    (%rax),%edi
  call   <mpfr_div@plt>
  mov    0x14(%rsp),%eax
  add    %ebp,%eax
  test   $0x1,%al
  jne    L19
L206:
  add    $0x1,%ebp
  addq   $0x1c,0x8(%rsp)
  cmp    $0x7,%ebp
  je     L69
L137:
  mov    0x18(%rsp),%r14
  mov    $0x0,%r12d
  jmp    L18
L19:
  mov    0x8(%rsp),%rax
  mov    (%rax),%edi
  mov    D30(%rip),%rax
  mov    (%rax),%ecx
  mov    $0xffffffff,%edx
  mov    %edi,%esi
  call   <mpfr_mul_si@plt>
  jmp    L206
L69:
  add    $0x1,%r15
  cmp    $0x7,%r15
  je     L81
L148:
  mov    %r15d,0x14(%rsp)
  mov    0x28(%rsp),%rax
  lea    (%rax,%r15,4),%rax
  mov    %rax,0x8(%rsp)
  mov    $0x0,%ebp
  jmp    L137
L81:
  mov    0xf8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L147
  add    $0x108,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L147:
  call   <__stack_chk_fail@plt>
```

assistant: ```c
void invert_poorly(mpfr_t A[][5 + 2], mpfr_t Ainv[][5 + 2]) {
  mpfr_t Mij[5 + 2][5 + 2];
  mpfr_t det;
  mpfr_t Mijdet;
  mpfr_init2(det, 200);
  mpfr_init2(Mijdet, 200);
  determinant_poorly(det, A);
  for (int i = 0; i < 5 + 2; ++i) {
    for (int j = 0; j < 5 + 2; ++j) {
      mpfr_init2(Mij[i][j], 200);
      if (i == (5 + 1) && j == (5 + 1)) {
        mpfr_set_si(Mij[i][j], 1, MPFR_RNDN);
      } else if (i == (5 + 1) || j == (5 + 1)) {
        mpfr_set_si(Mij[i][j], 0, MPFR_RNDN);
      }
    }
  }
  for (int i = 0; i < 5 + 2; ++i) {
    for (int j = 0; j < 5 + 2; ++j) {
      for (int ii = 0; ii < 5 + 2; ii++) {
        if (ii == i) {
          continue;
        }
        int ri = ii > i ? ii - 1 : ii;
        for (int jj = 0; jj < 5 + 2; jj++) {
          if (jj == j) {
            continue;
          }
          int rj = jj > j ? jj - 1 : jj;
          mpfr_set(Mij[ri][rj], A[ii][jj], MPFR_RNDN);
        }
      }
      determinant_poorly(Mijdet, Mij);
      mpfr_div(Ainv[j][i], Mijdet, det, MPFR_RNDN);
      if ((i + j) % 2) {
        mpfr_mul_si(Ainv[j][i], Ainv[j][i], -1, MPFR_RNDN);
      }
    }
  }
}
```