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

```asm
<ludcmp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %rdi,%rbx
  mov    %esi,%ebp
  mov    %rdx,0x10(%rsp)
  mov    %rcx,%r14
  mov    %rcx,0x28(%rsp)
  movslq %esi,%rdi
  shl    $0x3,%rdi
  lea    D65(%rip),%rdx
  lea    D77(%rip),%rsi
  mov    $0x0,%eax
  call   <mem_alloc@plt>
  movslq %eax,%rdi
  mov    %rdi,0x20(%rsp)
  mov    D76(%rip),%rdi
  mov    %rdi,(%r14)
  test   %ebp,%ebp
  jle    L284
  cltq
  mov    %rax,0x8(%rsp)
  mov    %ebp,%esi
  shl    $0x3,%rsi
  lea    (%rsi,%rax,1),%r8
  mov    %rax,%rcx
  mov    %rbx,%rdi
  sub    %rax,%rdi
  movq   D73(%rip),%xmm2
  movsd  D88(%rip),%xmm5
  movapd %xmm5,%xmm4
  movsd  D76(%rip),%xmm3
  jmp    L231
L4:
  ucomisd %xmm5,%xmm0
  jp     L1
  ucomisd %xmm4,%xmm0
  je     L123
L1:
  movapd %xmm3,%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  add    $0x8,%rcx
  cmp    %r8,%rcx
  je     L164
L231:
  mov    (%rdi,%rcx,1),%rax
  lea    (%rsi,%rax,1),%rdx
  movsd  D88(%rip),%xmm1
L10:
  movsd  (%rax),%xmm0
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L10
  jmp    L4
L123:
  lea    D103(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
L164:
  mov    %ebp,%eax
  lea    0x0(,%rax,8),%r15
  mov    $0x0,%edx
  mov    $0x1,%r14d
  mov    $0x0,%r11d
  movsd  D88(%rip),%xmm6
  movq   D73(%rip),%xmm3
  movq   D41(%rip),%xmm9
  movapd %xmm3,%xmm5
  movapd %xmm6,%xmm4
  movapd %xmm6,%xmm7
  lea    -0x1(%rbp),%eax
  mov    %eax,0x1c(%rsp)
  movsd  D76(%rip),%xmm8
  jmp    L116
L94:
  mov    (%rbx,%rsi,1),%rdi
  lea    (%rdi,%rdx,1),%r9
  movsd  (%r9),%xmm1
  test   %r8d,%r8d
  jle    L113
  mov    $0x0,%eax
L152:
  mov    (%rbx,%rax,1),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rdi,%rax,1),%xmm0
  subsd  %xmm0,%xmm1
  add    $0x8,%rax
  cmp    %rsi,%rax
  jne    L152
L113:
  add    $0x8,%rsi
L82:
  movsd  %xmm1,(%r9)
  add    $0x1,%r8d
  cmp    %r11d,%r8d
  jne    L94
L159:
  mov    %r11d,%r13d
  cmp    %r11d,%ebp
  jle    L136
  mov    0x8(%rsp),%rax
  lea    (%rdx,%rax,1),%r9
  mov    %r11,%r8
  movapd %xmm6,%xmm2
  lea    -0x1(%r11),%edi
  jmp    L239
L215:
  add    $0x1,%r8
  add    $0x8,%r9
  cmp    %r8d,%ebp
  jle    L136
L239:
  mov    %r8d,%r12d
  mov    (%rbx,%r8,8),%rsi
  lea    (%rsi,%rdx,1),%r10
  movsd  (%r10),%xmm1
  test   %r13d,%r13d
  jle    L155
  mov    $0x0,%eax
L59:
  mov    (%rbx,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  subsd  %xmm0,%xmm1
  mov    %rax,%rcx
  add    $0x1,%rax
  cmp    %rdi,%rcx
  jne    L59
L155:
  movsd  %xmm1,(%r10)
  andpd  %xmm3,%xmm1
  mulsd  (%r9),%xmm1
  comisd %xmm2,%xmm1
  jb     L215
  movapd %xmm1,%xmm2
  mov    %r12d,0x4(%rsp)
  jmp    L215
L136:
  mov    0x4(%rsp),%eax
  cmp    %r13d,%eax
  jne    L247
L202:
  mov    0x10(%rsp),%rax
  mov    0x4(%rsp),%edi
  mov    %edi,(%rax,%r11,4)
  mov    %rdx,%rax
  add    (%rbx,%rdx,1),%rax
  movsd  (%rax),%xmm0
  andpd  %xmm5,%xmm0
  comisd %xmm0,%xmm4
  jbe    L280
  movsd  %xmm7,(%rax)
L280:
  mov    0x18(%rsp),%edi
  cmp    %edi,0x1c(%rsp)
  jg     L60
  cmp    %r14d,%ebp
  jle    L284
L269:
  add    $0x1,%r11
  add    $0x1,%r14d
  add    $0x8,%rdx
L116:
  lea    -0x1(%r14),%eax
  mov    %eax,0x18(%rsp)
  test   %eax,%eax
  jle    L159
  mov    %rdx,%r9
  add    (%rbx),%r9
  movsd  (%r9),%xmm1
  mov    $0x8,%esi
  mov    $0x0,%r8d
  jmp    L82
L247:
  movslq %eax,%r8
  lea    (%rbx,%r8,8),%rdi
  mov    $0x0,%eax
L268:
  mov    %rax,%rcx
  add    (%rdi),%rcx
  movsd  (%rcx),%xmm0
  mov    (%rbx,%rdx,1),%rsi
  movsd  (%rsi,%rax,1),%xmm1
  movsd  %xmm1,(%rcx)
  mov    (%rbx,%rdx,1),%rcx
  movsd  %xmm0,(%rcx,%rax,1)
  add    $0x8,%rax
  cmp    %rax,%r15
  jne    L268
  mov    0x28(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm9,%xmm0
  movsd  %xmm0,(%rax)
  mov    0x8(%rsp),%rax
  movsd  (%rdx,%rax,1),%xmm0
  mov    0x20(%rsp),%rax
  movsd  %xmm0,(%rax,%r8,8)
  jmp    L202
L60:
  mov    (%rbx,%rdx,1),%rax
  movapd %xmm8,%xmm1
  divsd  (%rax,%rdx,1),%xmm1
  cmp    %r14d,%ebp
  jle    L284
  movslq %r14d,%rax
L42:
  mov    %rdx,%rcx
  add    (%rbx,%rax,8),%rcx
  movapd %xmm1,%xmm0
  mulsd  (%rcx),%xmm0
  movsd  %xmm0,(%rcx)
  add    $0x1,%rax
  cmp    %eax,%ebp
  jg     L42
  jmp    L269
L284:
  mov    0x20(%rsp),%rdi
  call   <free@plt>
  add    $0x38,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D65
type_infered: string
name: extract_symbolic_data
arguments: data_label: D77
type_infered: string
name: extract_symbolic_data
arguments: data_label: D76
type_infered: f64
name: extract_symbolic_data
arguments: data_label: D73
type_infered: qword
name: extract_symbolic_data
arguments: data_label: D88
type_infered: byte[8]
name: extract_symbolic_data
arguments: data_label: D103
type_infered: string
name: extract_symbolic_data
arguments: data_label: D41
type_infered: byte[8]

tool: D65: vv[]

tool: D77: ludcmp(): 

tool: D76: 1

tool: D73: 9223372036854775807

tool: {"D88": [0xbb,0xbd,0xd7,0xd9,0xdf,0x7c,0xdb,0x3d]}

tool: D103: 

Singular matrix in routine ludcmp()

tool: {"D41": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x80]}

assistant: ```c
void ludcmp(double **a, int n, int *indx, double *d) {
  char *func = {"ludcmp(): "};
  int i, imax, j, k;
  double big, dum, sum, temp, *vv;
  vv = (double *)mem_alloc((n) * sizeof(double), func, "vv[]");
  *d = 1.0;
  for (i = 0; i < n; i++) {
    big = 1.0E-10;
    for (j = 0; j < n; j++) {
      if ((temp = fabs(a[i][j])) > big)
        big = temp;
    }
    if (big == 1.0E-10) {
      printf("\n\nSingular matrix in routine ludcmp()\n");
      exit(1);
    }
    vv[i] = 1.0 / big;
  }
  for (j = 0; j < n; j++) {
    for (i = 0; i < j; i++) {
      sum = a[i][j];
      for (k = 0; k < i; k++)
        sum -= a[i][k] * a[k][j];
      a[i][j] = sum;
    }
    big = 1.0E-10;
    for (i = j; i < n; i++) {
      sum = a[i][j];
      for (k = 0; 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 = 0; k < n; k++) {
        dum = a[imax][k];
        a[imax][k] = a[j][k];
        a[j][k] = dum;
      }
      (*d) *= -1;
      vv[imax] = vv[j];
    }
    indx[j] = imax;
    if (fabs(a[j][j]) < 1.0E-10)
      a[j][j] = 1.0E-10;
    if (j < (n - 1)) {
      dum = 1.0 / a[j][j];
      for (i = j + 1; i < n; i++)
        a[i][j] *= dum;
    }
  }
  free(vv);
}
```