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

```asm
<ludcmp>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  mov    %rcx,%r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x1,%edi
  sub    $0x38,%rsp
  mov    %rdx,0x8(%rsp)
  mov    %rcx,0x10(%rsp)
  call   <vector@plt>
  movsd  D23(%rip),%xmm5
  mov    %rax,%rbp
  movsd  %xmm5,(%r14)
  test   %r12d,%r12d
  jle    L224
  lea    -0x1(%r12),%eax
  movq   D1(%rip),%xmm2
  pxor   %xmm4,%xmm4
  mov    $0x1,%r15d
  mov    %eax,0x18(%rsp)
  lea    0x10(,%rax,8),%r13
  lea    D61(%rip),%r14
  mov    %rax,0x28(%rsp)
  nopl   0x0(%rax)
L232:
  mov    (%rbx,%r15,8),%rdx
  movapd %xmm4,%xmm1
  lea    0x8(%rdx),%rax
  add    %r13,%rdx
  nop
L229:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L229
  ucomisd %xmm4,%xmm0
  jp     L296
  je     L144
L296:
  movapd %xmm5,%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp,%r15,8)
  add    $0x1,%r15
  cmp    %r15d,%r12d
  jge    L232
L142:
  mov    %r12d,%eax
  mov    %r12d,%r15d
  movl   $0xffffffff,(%rsp)
  xor    %r14d,%r14d
  shr    %eax
  or     $0x1,%r15d
  movq   D20(%rip),%xmm7
  movsd  D21(%rip),%xmm6
  sub    $0x1,%eax
  shl    $0x3,%r15
  mov    $0x1,%r11d
  mov    $0x1,%r10d
  shl    $0x4,%rax
  add    $0x18,%rax
  mov    %rax,0x20(%rsp)
  mov    %r12d,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0x1c(%rsp)
  mov    0x28(%rsp),%rax
  add    $0x2,%rax
  mov    %rax,0x28(%rsp)
  nopl   0x0(%rax,%rax,1)
L76:
  lea    0x0(,%r11,8),%rdx
  cmp    $0x1,%r10d
  je     L217
  movslq %r10d,%r9
  mov    $0x2,%esi
  cmp    $0x2,%r10d
  je     L250
  nopl   0x0(%rax)
L41:
  mov    (%rbx,%rsi,8),%rcx
  mov    $0x1,%eax
  lea    (%rcx,%rdx,1),%rdi
  movsd  (%rdi),%xmm1
  nopl   0x0(%rax)
L156:
  mov    (%rbx,%rax,8),%r8
  movsd  (%r8,%rdx,1),%xmm0
  mulsd  (%rcx,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L156
  add    $0x1,%rsi
  movsd  %xmm1,(%rdi)
  cmp    %rsi,%r9
  jne    L41
L250:
  cmp    %r10d,%r12d
  jl     L69
L217:
  mov    (%rsp),%edi
  mov    %r11,%r8
  movapd %xmm4,%xmm3
  add    $0x2,%rdi
  nopl   0x0(%rax)
L79:
  mov    (%rbx,%r8,8),%rsi
  mov    %r8d,%r13d
  lea    (%rsi,%rdx,1),%r9
  movsd  (%r9),%xmm1
  cmp    $0x1,%r10d
  je     L33
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L173:
  mov    (%rbx,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%rdi
  jne    L173
L33:
  movsd  %xmm1,(%r9)
  andpd  %xmm2,%xmm1
  mulsd  0x0(%rbp,%r8,8),%xmm1
  comisd %xmm3,%xmm1
  jb     L42
  movapd %xmm1,%xmm3
  mov    %r13d,%r14d
L42:
  add    $0x1,%r8
  cmp    %r8d,%r12d
  jge    L79
L69:
  mov    (%rbx,%r11,8),%rcx
  cmp    %r10d,%r14d
  jne    L48
L167:
  add    %rdx,%rcx
  mov    0x8(%rsp),%rax
  movsd  (%rcx),%xmm0
  mov    %r14d,(%rax,%r11,4)
  ucomisd %xmm4,%xmm0
  jp     L216
  jne    L216
  movsd  %xmm6,(%rcx)
  movapd %xmm6,%xmm0
L216:
  add    $0x1,%r10d
  cmp    %r11d,%r12d
  je     L55
  movapd %xmm5,%xmm1
  divsd  %xmm0,%xmm1
  cmp    %r10d,%r12d
  jl     L224
  movslq %r10d,%rax
  nop
L146:
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %eax,%r12d
  jge    L146
L106:
  addl   $0x1,(%rsp)
  add    $0x1,%r11
  jmp    L76
L55:
  cmp    %r10d,%r12d
  jge    L106
L224:
  mov    %r12d,%edx
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    $0x1,%esi
  call   <free_vector@plt>
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L48:
  movslq %r14d,%r9
  lea    0x18(%rcx),%rsi
  lea    0x8(%rcx),%r8
  mov    (%rbx,%r9,8),%rax
  lea    0x8(%rax),%rdi
  cmp    %rsi,%rdi
  lea    0x18(%rax),%rdi
  setae  %sil
  cmp    %rdi,%r8
  setae  %dil
  or     %sil,%dil
  je     L49
  cmpl   $0x1,0x18(%rsp)
  jbe    L49
  mov    0x20(%rsp),%rdi
  mov    $0x8,%esi
  nopl   0x0(%rax)
L235:
  movupd (%rax,%rsi,1),%xmm0
  movupd (%rcx,%rsi,1),%xmm3
  movups %xmm3,(%rax,%rsi,1)
  movups %xmm0,(%rcx,%rsi,1)
  add    $0x10,%rsi
  cmp    %rdi,%rsi
  jne    L235
  cmp    0x1c(%rsp),%r12d
  je     L201
  add    %r15,%rax
  lea    (%rcx,%r15,1),%rsi
  movsd  (%rax),%xmm0
  movsd  (%rsi),%xmm1
  movsd  %xmm1,(%rax)
  movsd  %xmm0,(%rsi)
L201:
  mov    0x10(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm7,%xmm0
  movsd  %xmm0,(%rax)
  movsd  0x0(%rbp,%r11,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%r9,8)
  jmp    L167
L144:
  xor    %eax,%eax
  mov    %r14,%rdi
  movsd  %xmm0,(%rsp)
  call   <nrerror@plt>
  mov    D23(%rip),%rax
  movsd  (%rsp),%xmm1
  pxor   %xmm4,%xmm4
  movq   D1(%rip),%xmm2
  movq   %rax,%xmm0
  movq   %rax,%xmm5
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp,%r15,8)
  add    $0x1,%r15
  cmp    %r15d,%r12d
  jge    L232
  jmp    L142
L49:
  mov    0x28(%rsp),%rdi
  mov    $0x1,%esi
L233:
  movsd  (%rax,%rsi,8),%xmm0
  movsd  (%rcx,%rsi,8),%xmm1
  movsd  %xmm1,(%rax,%rsi,8)
  movsd  %xmm0,(%rcx,%rsi,8)
  add    $0x1,%rsi
  cmp    %rsi,%rdi
  jne    L233
  jmp    L201
```

tool_calls: name: parse_data
arguments: data_label: D23
datatype: f64
name: parse_data
arguments: data_label: D1
datatype: qword
name: parse_data
arguments: data_label: D61
datatype: string
name: parse_data
arguments: data_label: D20
datatype: f32[2]
name: parse_data
arguments: data_label: D21
datatype: byte[8]

tool: D23: 1

tool: D1: 9223372036854775807

tool: D61: Singular matrix in routine LUDCMP

tool: {"D20": [0.0,-0.0]}

tool: {"D21": [0x23,0x42,0x92,0x0c,0xa1,0x9c,0xc7,0x3b]}

assistant: ```c
int ludcmp(a, n, indx, d)
int n, *indx;
double **a, *d;
{
  int i, imax, j, k;
  double big, dum, sum, temp;
  double *vv, *vector();
  void free_vector();
  imax = 0;
  vv = vector(1, n);
  (*d) = 1.0;
  for (i = 1; i <= n; i++) {
    big = 0.0;
    for (j = 1; j <= n; j++)
      if ((temp = fabs(a[i][j])) > big)
        big = temp;
    if (!big)
      nrerror("Singular matrix in routine LUDCMP");
    vv[i] = 1.0 / big;
  }
  for (j = 1; j <= n; j++) {
    for (i = 1; i < j; i++) {
      sum = a[i][j];
      for (k = 1; k < i; k++)
        sum -= a[i][k] * a[k][j];
      a[i][j] = sum;
    }
    big = 0.0;
    for (i = j; i <= n; i++) {
      sum = a[i][j];
      for (k = 1; k < j; k++)
        sum -= a[i][k] * a[k][j];
      a[i][j] = sum;
      if ((dum = vv[i] * fabs(sum)) >= big) {
        big = dum;
        imax = i;
      }
    }
    if (j != imax) {
      for (k = 1; k <= n; k++) {
        dum = a[imax][k];
        a[imax][k] = a[j][k];
        a[j][k] = dum;
      }
      (*d) = -(*d);
      vv[imax] = vv[j];
    }
    indx[j] = imax;
    if (!a[j][j]) {
      a[j][j] = 1.0e-20;
    }
    if (j != n) {
      dum = 1.0 / (a[j][j]);
      for (i = j + 1; i <= n; i++)
        a[i][j] *= dum;
    }
  }
  free_vector(vv, 1, n);
  return (0);
}
```