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

```asm
<getPLU>:
  endbr64
  push   %r15
  mov    %esi,%r15d
  push   %r14
  push   %r13
  mov    %edx,%r13d
  push   %r12
  mov    %rcx,%r12
  push   %rbp
  mov    %r9,%rbp
  push   %rbx
  mov    %rdi,%rbx
  sub    $0x48,%rsp
  mov    0x80(%rsp),%rcx
  test   %r8,%r8
  je     L688
  mov    %esi,%eax
  imul   %esi,%eax
  test   %eax,%eax
  je     L603
  cltq
  mov    %r8,%rdi
  xor    %esi,%esi
  mov    %rcx,0x80(%rsp)
  lea    0x0(,%rax,8),%rdx
  call   <memset@plt>
  mov    0x80(%rsp),%rcx
  mov    %rax,%r8
L603:
  test   %r15d,%r15d
  jle    L688
  movsd  D13(%rip),%xmm1
  movslq %r15d,%rsi
  xor    %edx,%edx
L253:
  mov    (%r12,%rdx,4),%eax
  imul   %r15d,%eax
  add    %edx,%eax
  add    $0x1,%rdx
  cltq
  movsd  %xmm1,(%r8,%rax,8)
  cmp    %rsi,%rdx
  jne    L253
L688:
  cmp    %r13d,%r15d
  je     L635
  jle    L521
  test   %rbp,%rbp
  je     L328
  test   %r13d,%r13d
  jle    L172
  movsd  D13(%rip),%xmm1
  movsd  %xmm1,0x0(%rbp)
  cmp    $0x1,%r13d
  je     L172
  movslq %r13d,%r12
  mov    %rbp,%rsi
  mov    %r15d,0x30(%rsp)
  mov    $0x1,%r14d
  lea    0x0(,%r12,8),%rax
  mov    %r12,0x8(%rsp)
  mov    %rbx,%r15
  lea    0x8(,%r12,8),%r8
  sub    %rax,%rsi
  lea    0x8(%rbx),%rax
  mov    %r14d,%ebx
  mov    %r8,0x10(%rsp)
  mov    %rax,(%rsp)
  lea    -0x1(%r13),%eax
  mov    %r8,%r14
  mov    %rsi,0x18(%rsp)
  mov    %eax,0x20(%rsp)
  mov    %rcx,0x80(%rsp)
  movsd  %xmm1,0x28(%rsp)
  nopl   (%rax)
L322:
  mov    0x20(%rsp),%eax
  xor    %esi,%esi
  sub    %ebx,%eax
  lea    0x8(,%rax,8),%rdx
  mov    0x18(%rsp),%rax
  lea    (%r14,%rax,1),%rdi
  call   <memset@plt>
  mov    (%rsp),%rax
  lea    0x0(,%r12,8),%rdx
  mov    %r12d,%r11d
  lea    0x0(%rbp,%rdx,1),%rdi
  add    %rdx,%rax
  cmp    %rax,%rdi
  je     L516
  lea    -0x1(%rbx),%eax
  cmp    $0x2,%eax
  jbe    L516
  mov    %ebx,%esi
  add    %r15,%rdx
  xor    %eax,%eax
  shr    %esi
  shl    $0x4,%rsi
  nopw   0x0(%rax,%rax,1)
L38:
  movupd (%rdx,%rax,1),%xmm4
  movups %xmm4,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rsi,%rax
  jne    L38
  mov    %ebx,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%bl
  je     L325
  add    %r11d,%eax
  cltq
  movsd  (%r15,%rax,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%rax,8)
L325:
  movsd  0x28(%rsp),%xmm7
  add    $0x1,%ebx
  add    0x8(%rsp),%r12
  movsd  %xmm7,0x0(%rbp,%r14,1)
  add    0x10(%rsp),%r14
  cmp    %ebx,%r13d
  jne    L322
  mov    %r15,%rbx
  mov    0x80(%rsp),%rcx
  mov    0x30(%rsp),%r15d
L172:
  mov    %r13d,%eax
  sub    %r13d,%r15d
  mov    %rcx,0x80(%rsp)
  imul   %r13d,%eax
  imul   %r13d,%r15d
  cltq
  shl    $0x3,%rax
  lea    0x0(,%r15,8),%edx
  lea    (%rbx,%rax,1),%rsi
  lea    0x0(%rbp,%rax,1),%rdi
  call   <memcpy@plt>
  mov    0x80(%rsp),%rcx
L328:
  test   %rcx,%rcx
  je     L93
  test   %r13d,%r13d
  jle    L93
  lea    -0x1(%r13),%ebp
  mov    %r13d,%r12d
  xor    %edi,%edi
  xor    %r8d,%r8d
  mov    %rbp,(%rsp)
  mov    %rcx,%r14
  nop
L320:
  mov    %r8d,%eax
  cmp    %r8d,%r13d
  jle    L615
  movslq %edi,%rdx
  lea    (%rdx,%r8,1),%rsi
  shl    $0x3,%rsi
  lea    (%r14,%rsi,1),%r9
  lea    0x8(%rbx,%rsi,1),%rcx
  cmp    %rcx,%r9
  je     L624
  lea    -0x1(%r12),%ecx
  cmp    $0x2,%ecx
  jbe    L624
  mov    %r12d,%ecx
  add    %rbx,%rsi
  xor    %edx,%edx
  shr    %ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax)
L560:
  movupd (%rsi,%rdx,1),%xmm5
  movups %xmm5,(%r9,%rdx,1)
  add    $0x10,%rdx
  cmp    %rcx,%rdx
  jne    L560
  mov    %r12d,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %r12d,%edx
  je     L615
  add    %edi,%eax
  cltq
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%r14,%rax,8)
L615:
  cmp    (%rsp),%r8
  je     L93
  lea    (%rdi,%r13,1),%r15d
  lea    0x1(%r8),%rbp
  xor    %esi,%esi
  sub    $0x1,%r12d
  movslq %r15d,%rax
  lea    0x0(,%rbp,8),%rdx
  lea    (%r14,%rax,8),%rdi
  call   <memset@plt>
  mov    %rbp,%r8
  mov    %r15d,%edi
  jmp    L320
  xchg   %ax,%ax
L521:
  jge    L93
  test   %rbp,%rbp
  je     L68
  test   %r15d,%r15d
  jle    L93
  movsd  D13(%rip),%xmm1
  movsd  %xmm1,0x0(%rbp)
  cmp    $0x1,%r15d
  je     L574
  movslq %r15d,%rax
  mov    $0x1,%r8d
  xor    %r9d,%r9d
  mov    %r13d,%r14d
  lea    0x8(,%rax,8),%rdi
  mov    %rax,0x20(%rsp)
  shl    $0x3,%rax
  mov    $0x8,%r10d
  lea    0x0(%rbp,%rax,1),%r12
  mov    %rax,0x30(%rsp)
  lea    -0x1(%r15),%eax
  mov    %r15d,%r11d
  mov    %rcx,0x80(%rsp)
  mov    %r10,%r15
  mov    %eax,0x8(%rsp)
  mov    %rbp,%rax
  mov    %rdi,0x28(%rsp)
  lea    0x8(%rbp),%rdi
  mov    %r8d,%ebp
  mov    %rax,%r8
  mov    %r13d,0x18(%rsp)
  mov    %rbx,%r13
  mov    %r9d,%ebx
  movsd  %xmm1,0x38(%rsp)
  nopl   0x0(%rax,%rax,1)
L285:
  mov    0x8(%rsp),%eax
  xor    %esi,%esi
  mov    %r8,0x10(%rsp)
  mov    %r11d,(%rsp)
  sub    %ebp,%eax
  lea    0x8(,%rax,8),%rdx
  call   <memset@plt>
  mov    (%rsp),%r11d
  lea    -0x1(%rbp),%edx
  mov    0x10(%rsp),%r8
  mov    %rax,%rdi
  movslq %r14d,%rax
  add    %r11d,%ebx
  cmp    $0x2,%edx
  lea    0x8(,%rax,8),%rax
  jbe    L120
  lea    0x0(%r13,%rax,1),%rdx
  cmp    %rdx,%r12
  je     L120
  mov    %ebp,%edx
  lea    -0x8(%r13,%rax,1),%rsi
  xor    %eax,%eax
  shr    %edx
  shl    $0x4,%rdx
  nopl   0x0(%rax)
L16:
  movupd (%rsi,%rax,1),%xmm6
  movups %xmm6,(%r12,%rax,1)
  add    $0x10,%rax
  cmp    %rdx,%rax
  jne    L16
  mov    %ebp,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%bpl
  je     L605
  lea    (%r14,%rax,1),%edx
  add    %ebx,%eax
  movslq %edx,%rdx
  cltq
  movsd  0x0(%r13,%rdx,8),%xmm0
  movsd  %xmm0,(%r8,%rax,8)
L605:
  mov    0x20(%rsp),%rax
  movsd  0x38(%rsp),%xmm1
  add    $0x1,%ebp
  add    $0x8,%r15
  add    0x18(%rsp),%r14d
  add    0x30(%rsp),%r12
  movsd  %xmm1,(%rdi,%rax,8)
  add    0x28(%rsp),%rdi
  cmp    %ebp,%r11d
  jne    L285
  mov    %r13,%rbx
  mov    0x80(%rsp),%rcx
  mov    0x18(%rsp),%r13d
  mov    %r11d,%r15d
L574:
  test   %rcx,%rcx
  je     L93
L473:
  lea    -0x1(%r15),%ebp
  mov    %r13d,%r12d
  xor    %edi,%edi
  xor    %r8d,%r8d
  mov    %rbp,(%rsp)
  mov    %rcx,%r14
  nopl   0x0(%rax)
L405:
  mov    %r8d,%eax
  cmp    %r8d,%r13d
  jle    L282
  movslq %edi,%rdx
  lea    (%rdx,%r8,1),%rsi
  shl    $0x3,%rsi
  lea    (%r14,%rsi,1),%r9
  lea    0x8(%rbx,%rsi,1),%rcx
  cmp    %rcx,%r9
  je     L480
  lea    -0x1(%r12),%ecx
  cmp    $0x2,%ecx
  jbe    L480
  mov    %r12d,%ecx
  add    %rbx,%rsi
  xor    %edx,%edx
  shr    %ecx
  shl    $0x4,%rcx
  nopl   0x0(%rax)
L555:
  movupd (%rsi,%rdx,1),%xmm7
  movups %xmm7,(%r9,%rdx,1)
  add    $0x10,%rdx
  cmp    %rcx,%rdx
  jne    L555
  mov    %r12d,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %r12d,%edx
  je     L282
  add    %edi,%eax
  cltq
  movsd  (%rbx,%rax,8),%xmm0
  movsd  %xmm0,(%r14,%rax,8)
L282:
  cmp    (%rsp),%r8
  je     L93
  lea    (%rdi,%r13,1),%r15d
  lea    0x1(%r8),%rbp
  xor    %esi,%esi
  sub    $0x1,%r12d
  movslq %r15d,%rax
  lea    0x0(,%rbp,8),%rdx
  lea    (%r14,%rax,8),%rdi
  call   <memset@plt>
  mov    %rbp,%r8
  mov    %r15d,%edi
  jmp    L405
  xchg   %ax,%ax
L635:
  test   %rbp,%rbp
  je     L164
  test   %r15d,%r15d
  jle    L93
  movsd  D13(%rip),%xmm1
  movsd  %xmm1,0x0(%rbp)
  cmp    $0x1,%r15d
  je     L238
  movslq %r15d,%r13
  mov    %rbp,%rsi
  mov    %rcx,0x80(%rsp)
  mov    $0x1,%r14d
  lea    0x0(,%r13,8),%rax
  lea    0x8(,%r13,8),%r12
  mov    %r13,0x18(%rsp)
  sub    %rax,%rsi
  lea    -0x1(%r15),%eax
  mov    %r12,0x10(%rsp)
  mov    %eax,0x8(%rsp)
  lea    0x8(%rbx),%rax
  mov    %rsi,0x20(%rsp)
  mov    %rax,(%rsp)
  mov    %rbp,%rax
  mov    %r13,%rbp
  mov    %r12,%r13
  movsd  %xmm1,0x28(%rsp)
  mov    %r14d,%r12d
  mov    %rbx,%r14
  mov    %rax,%rbx
  nopw   0x0(%rax,%rax,1)
L246:
  mov    0x8(%rsp),%eax
  xor    %esi,%esi
  sub    %r12d,%eax
  lea    0x8(,%rax,8),%rdx
  mov    0x20(%rsp),%rax
  lea    (%rax,%r13,1),%rdi
  call   <memset@plt>
  mov    (%rsp),%rax
  lea    0x0(,%rbp,8),%rdx
  mov    %ebp,%r11d
  lea    (%rbx,%rdx,1),%rdi
  add    %rdx,%rax
  cmp    %rax,%rdi
  je     L319
  lea    -0x1(%r12),%eax
  cmp    $0x2,%eax
  jbe    L319
  mov    %r12d,%esi
  add    %r14,%rdx
  xor    %eax,%eax
  shr    %esi
  shl    $0x4,%rsi
  nopw   0x0(%rax,%rax,1)
L260:
  movupd (%rdx,%rax,1),%xmm3
  movups %xmm3,(%rdi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%rsi
  jne    L260
  mov    %r12d,%eax
  and    $0xfffffffe,%eax
  test   $0x1,%r12b
  je     L626
  add    %r11d,%eax
  cltq
  movsd  (%r14,%rax,8),%xmm0
  movsd  %xmm0,(%rbx,%rax,8)
L626:
  movsd  0x28(%rsp),%xmm6
  add    $0x1,%r12d
  add    0x18(%rsp),%rbp
  movsd  %xmm6,(%rbx,%r13,1)
  add    0x10(%rsp),%r13
  cmp    %r12d,%r15d
  jne    L246
  mov    0x80(%rsp),%rcx
  mov    %r14,%rbx
L238:
  test   %rcx,%rcx
  jne    L535
L93:
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L164:
  test   %rcx,%rcx
  je     L93
  test   %r15d,%r15d
  jle    L93
L535:
  movslq %r15d,%rbp
  lea    -0x1(%r15),%esi
  mov    %rbx,%r14
  mov    %rbx,%r8
  lea    0x0(,%rbp,8),%rax
  mov    %esi,0x18(%rsp)
  mov    %rcx,%r13
  xor    %r12d,%r12d
  mov    %rax,0x20(%rsp)
  add    %rcx,%rax
  lea    0x8(,%rbp,8),%r10
  xor    %ebp,%ebp
  mov    %rax,0x28(%rsp)
  mov    %rbp,%rbx
  mov    %r10,%rbp
  mov    %rsi,0x10(%rsp)
  xor    %esi,%esi
  nopl   (%rax)
L198:
  lea    0x8(%r14),%rdx
  mov    %r15d,%r11d
  mov    %esi,%eax
  sub    %esi,%r11d
  cmp    %rdx,%r13
  setne  %dil
  cmp    %esi,%r15d
  setg   %dl
  test   %dl,%dil
  je     L471
  mov    0x18(%rsp),%edx
  sub    %esi,%edx
  cmp    $0x2,%edx
  jbe    L471
  cmp    %r15d,%esi
  mov    $0x1,%edi
  cmovge %edi,%r11d
  xor    %edx,%edx
  mov    %r11d,%edi
  shr    %edi
  shl    $0x4,%rdi
  nopl   0x0(%rax,%rax,1)
L376:
  movupd (%r14,%rdx,1),%xmm2
  movups %xmm2,0x0(%r13,%rdx,1)
  add    $0x10,%rdx
  cmp    %rdi,%rdx
  jne    L376
  mov    %r11d,%edx
  and    $0xfffffffe,%edx
  add    %edx,%eax
  cmp    %edx,%r11d
  je     L687
  add    %r12d,%eax
  cltq
  movsd  (%r8,%rax,8),%xmm0
  movsd  %xmm0,(%rcx,%rax,8)
L687:
  cmp    0x10(%rsp),%rsi
  je     L93
  mov    0x28(%rsp),%rax
  lea    0x1(%rsi),%r11
  xor    %esi,%esi
  mov    %r8,0x8(%rsp)
  mov    %r11,(%rsp)
  add    %rbp,%r13
  add    %rbp,%r14
  add    %r15d,%r12d
  lea    (%rbx,%rax,1),%rdi
  lea    0x0(,%r11,8),%rdx
  mov    %rcx,0x80(%rsp)
  call   <memset@plt>
  mov    (%rsp),%rsi
  mov    0x8(%rsp),%r8
  mov    0x80(%rsp),%rcx
  add    0x20(%rsp),%rbx
  jmp    L198
  xchg   %ax,%ax
L471:
  mov    %rsi,%rax
  lea    (%r8,%rbx,1),%rdi
  lea    (%rcx,%rbx,1),%rdx
  nopl   0x0(%rax,%rax,1)
L402:
  movsd  (%rdi,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jg     L402
  jmp    L687
  nopl   0x0(%rax,%rax,1)
L624:
  shl    $0x3,%rdx
  mov    %r8,%rax
  lea    (%rbx,%rdx,1),%rcx
  add    %r14,%rdx
  xchg   %ax,%ax
L420:
  movsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L420
  jmp    L615
  nopl   0x0(%rax,%rax,1)
L319:
  movsd  (%r14,%rdx,1),%xmm0
  movsd  %xmm0,(%rbx,%rdx,1)
  add    $0x8,%rdx
  cmp    %rdx,%r13
  jne    L319
  jmp    L626
  nopl   0x0(%rax)
L516:
  movsd  (%r15,%rdx,1),%xmm0
  movsd  %xmm0,0x0(%rbp,%rdx,1)
  add    $0x8,%rdx
  cmp    %r14,%rdx
  jne    L516
  jmp    L325
L480:
  shl    $0x3,%rdx
  mov    %r8,%rax
  lea    (%rbx,%rdx,1),%rcx
  add    %r14,%rdx
  nopl   0x0(%rax,%rax,1)
L42:
  movsd  (%rcx,%rax,8),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  add    $0x1,%rax
  cmp    %eax,%r13d
  jg     L42
  jmp    L282
L120:
  lea    -0x8(%r13,%rax,1),%rdx
  xor    %eax,%eax
  nop
L272:
  movsd  (%rdx,%rax,1),%xmm0
  movsd  %xmm0,(%r12,%rax,1)
  add    $0x8,%rax
  cmp    %r15,%rax
  jne    L272
  jmp    L605
L68:
  test   %rcx,%rcx
  je     L93
  test   %r15d,%r15d
  jg     L473
  jmp    L93
```

tool_calls: name: retrieve_data
arguments: data_label: D13
data_type: f64

tool: D13: 1

assistant: ```c
void getPLU(double *A, int M, int N, int *ipiv, double *P, double *L, double *U) {
  int i, j, k;
  if (P) {
    for (i = 0; i < M * M; ++i) {
      P[i] = 0.0;
    }
    for (j = 0; j < M; ++j) {
      P[ipiv[j] * M + j] = 1.0;
    }
  }
  if (M == N) {
    if (L) {
      for (i = 0; i < M; ++i) {
        for (j = 0; j < i; ++j) {
          L[i * M + j] = A[i * M + j];
        }
        L[i * M + i] = 1.0;
        for (j = i + 1; j < M; ++j) {
          L[i * M + j] = 0.0;
        }
      }
    }
    if (U) {
      for (i = 0; i < M; ++i) {
        for (j = 0; j < i; ++j) {
          U[i * M + j] = 0.0;
        }
        for (j = i; j < M; ++j) {
          U[i * M + j] = A[i * M + j];
        }
      }
    }
  } else if (M > N) {
    if (L) {
      for (i = 0; i < N; ++i) {
        for (j = 0; j < i; ++j) {
          L[i * N + j] = A[i * N + j];
        }
        L[i * N + i] = 1.0;
        for (j = i + 1; j < N; ++j) {
          L[i * N + j] = 0.0;
        }
      }
      memcpy(L + N * N, A + N * N, sizeof(double) * (M - N) * N);
    }
    if (U) {
      for (i = 0; i < N; ++i) {
        for (j = 0; j < i; ++j) {
          U[i * N + j] = 0.0;
        }
        for (j = i; j < N; ++j) {
          U[i * N + j] = A[i * N + j];
        }
      }
    }
  } else if (M < N) {
    if (L) {
      for (i = 0; i < M; ++i) {
        for (j = 0; j < i; ++j) {
          L[i * M + j] = A[i * N + j];
        }
        L[i * M + i] = 1.0;
        for (j = i + 1; j < M; ++j) {
          L[i * M + j] = 0.0;
        }
      }
    }
    if (U) {
      for (i = 0; i < M; ++i) {
        for (j = 0; j < i; ++j) {
          U[i * N + j] = 0.0;
        }
        for (j = i; j < N; ++j) {
          U[i * N + j] = A[i * N + j];
        }
      }
    }
  }
}
```