user: 请从给定的汇编指令推导出C源代码：

```asm
<ludcmp>:
  endbr64
  push   %r15
  xor    %eax,%eax
  mov    %rcx,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    $0x1,%edi
  sub    $0x28,%rsp
  mov    %rdx,(%rsp)
  mov    %rcx,0x10(%rsp)
  call   <vector@plt>
  movsd  D53(%rip),%xmm5
  mov    %rax,%rbp
  movsd  %xmm5,(%r15)
  test   %r12d,%r12d
  jle    L0
  lea    -0x1(%r12),%eax
  movq   D25(%rip),%xmm2
  pxor   %xmm4,%xmm4
  mov    $0x1,%r15d
  mov    %rax,0x18(%rsp)
  lea    0x10(,%rax,8),%r13
  lea    D42(%rip),%r14
  nopl   0x0(%rax)
L68:
  mov    (%rbx,%r15,8),%rdx
  movapd %xmm4,%xmm1
  lea    0x8(%rdx),%rax
  add    %r13,%rdx
  nopw   0x0(%rax,%rax,1)
L80:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L80
  ucomisd %xmm4,%xmm0
  jp     L228
  je     L258
L228:
  movapd %xmm5,%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,0x0(%rbp,%r15,8)
  add    $0x1,%r15
  cmp    %r15d,%r12d
  jge    L68
  mov    0x18(%rsp),%rax
  mov    $0xffffffff,%r10d
  xor    %r9d,%r9d
  movq   D10(%rip),%xmm7
  movsd  D69(%rip),%xmm6
  mov    $0x1,%r8d
  mov    $0x1,%edi
  add    $0x2,%rax
  mov    %rax,0x8(%rsp)
  nop
L12:
  lea    0x0(,%r8,8),%rdx
  cmp    $0x1,%edi
  je     L259
  mov    0x8(%rbx),%r15
  mov    %r10d,%r14d
  mov    $0x2,%esi
  add    $0x2,%r14
  lea    (%r15,%rdx,1),%r13
  movsd  0x0(%r13),%xmm1
  movsd  %xmm1,0x0(%r13)
  cmp    %rsi,%r14
  je     L196
  nopw   0x0(%rax,%rax,1)
L195:
  mov    (%rbx,%rsi,8),%r11
  lea    (%r11,%rdx,1),%r13
  movsd  0x0(%r13),%xmm1
  cmp    $0x1,%esi
  jle    L34
  mov    %r15,%rcx
  mov    $0x1,%eax
  jmp    L103
  nopl   (%rax)
L137:
  mov    (%rbx,%rax,8),%rcx
L103:
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%r11,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L137
L34:
  add    $0x1,%rsi
  movsd  %xmm1,0x0(%r13)
  cmp    %rsi,%r14
  jne    L195
L196:
  cmp    %edi,%r12d
  jl     L73
L259:
  mov    %r10d,%r11d
  mov    %r8,%r13
  movapd %xmm4,%xmm3
  add    $0x2,%r11
  cs nopw 0x0(%rax,%rax,1)
L149:
  mov    (%rbx,%r13,8),%rsi
  mov    %r13d,%r15d
  lea    (%rsi,%rdx,1),%r14
  movsd  (%r14),%xmm1
  cmp    $0x1,%edi
  je     L44
  mov    $0x1,%eax
  nopw   0x0(%rax,%rax,1)
L54:
  mov    (%rbx,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%r11
  jne    L54
L44:
  movsd  %xmm1,(%r14)
  andpd  %xmm2,%xmm1
  mulsd  0x0(%rbp,%r13,8),%xmm1
  comisd %xmm3,%xmm1
  jb     L58
  movapd %xmm1,%xmm3
  mov    %r15d,%r9d
L58:
  add    $0x1,%r13
  cmp    %r13d,%r12d
  jge    L149
L73:
  mov    (%rbx,%r8,8),%rcx
  cmp    %edi,%r9d
  jne    L61
L181:
  add    %rdx,%rcx
  mov    (%rsp),%rax
  ucomisd (%rcx),%xmm4
  mov    %r9d,(%rax,%r8,4)
  jp     L46
  jne    L46
  movsd  %xmm6,(%rcx)
L46:
  add    $0x1,%edi
  cmp    %r8d,%r12d
  je     L37
  movapd %xmm5,%xmm1
  divsd  (%rcx),%xmm1
  cmp    %edi,%r12d
  jl     L0
  movslq %edi,%rax
  nopl   (%rax)
L250:
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %eax,%r12d
  jge    L250
L16:
  add    $0x1,%r8
  add    $0x1,%r10d
  jmp    L12
L37:
  cmp    %edi,%r12d
  jge    L16
L0:
  mov    %r12d,%edx
  mov    %rbp,%rdi
  xor    %eax,%eax
  mov    $0x1,%esi
  call   <free_vector@plt>
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L61:
  movslq %r9d,%r11
  mov    0x8(%rsp),%r13
  mov    $0x1,%eax
  mov    (%rbx,%r11,8),%rsi
  nopw   0x0(%rax,%rax,1)
L96:
  movsd  (%rsi,%rax,8),%xmm0
  movsd  (%rcx,%rax,8),%xmm1
  movsd  %xmm1,(%rsi,%rax,8)
  movsd  %xmm0,(%rcx,%rax,8)
  add    $0x1,%rax
  cmp    %rax,%r13
  jne    L96
  mov    0x10(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm7,%xmm0
  movsd  %xmm0,(%rax)
  movsd  0x0(%rbp,%r8,8),%xmm0
  movsd  %xmm0,0x0(%rbp,%r11,8)
  jmp    L181
L258:
  mov    %r14,%rdi
  xor    %eax,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <nrerror@plt>
  mov    D53(%rip),%rax
  movsd  0x8(%rsp),%xmm1
  pxor   %xmm4,%xmm4
  movq   D25(%rip),%xmm2
  movq   %rax,%xmm5
  jmp    L228
```

tool_calls: name: read_data
arguments: data_label: D53
type_guessed: f64
name: read_data
arguments: data_label: D25
type_guessed: qword
name: read_data
arguments: data_label: D42
type_guessed: string
name: read_data
arguments: data_label: D10
type_guessed: f32[2]
name: read_data
arguments: data_label: D69
type_guessed: byte[8]

tool: D53: 1

tool: D25: 9223372036854775807

tool: D42: Singular matrix in routine LUDCMP

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

tool: {"D69": [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);
}
```