user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<ludcmp>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  mov    %esi,%edi
  sub    $0x38,%rsp
  mov    %rdx,0x8(%rsp)
  mov    %rcx,0x10(%rsp)
  call   <dvector@plt>
  movsd  D60(%rip),%xmm5
  mov    %rax,%r12
  movsd  %xmm5,(%r15)
  test   %ebp,%ebp
  jle    L244
  lea    -0x1(%rbp),%eax
  mov    %ebp,%r15d
  pxor   %xmm4,%xmm4
  xor    %r14d,%r14d
  mov    %eax,0x20(%rsp)
  movq   D67(%rip),%xmm2
  lea    D30(%rip),%r13
  mov    %r15,0x28(%rsp)
  nopl   0x0(%rax,%rax,1)
L192:
  mov    (%rbx,%r14,8),%rax
  movapd %xmm4,%xmm1
  lea    (%rax,%r15,8),%rdx
  nopl   0x0(%rax)
L176:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L176
  ucomisd %xmm4,%xmm0
  jp     L41
  je     L78
L41:
  movapd %xmm5,%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12,%r14,8)
  add    $0x1,%r14
  cmp    %r14,%r15
  jne    L192
L174:
  mov    %ebp,%eax
  movl   $0xffffffff,(%rsp)
  xor    %r13d,%r13d
  xor    %r10d,%r10d
  shr    %eax
  movq   D29(%rip),%xmm7
  movsd  D26(%rip),%xmm6
  xor    %r14d,%r14d
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x18(%rsp)
  mov    %ebp,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0x24(%rsp)
  mov    %eax,%r15d
  shl    $0x3,%r15
L188:
  lea    0x0(,%r13,8),%rdx
  test   %r10d,%r10d
  je     L195
  mov    $0x8,%esi
  mov    $0x1,%r8d
  cmp    $0x1,%r10d
  je     L195
  xchg   %ax,%ax
L247:
  mov    (%rbx,%rsi,1),%rcx
  xor    %eax,%eax
  lea    (%rcx,%rdx,1),%rdi
  movsd  (%rdi),%xmm1
  xchg   %ax,%ax
L81:
  mov    (%rbx,%rax,1),%r9
  movsd  (%r9,%rdx,1),%xmm0
  mulsd  (%rcx,%rax,1),%xmm0
  add    $0x8,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L81
  add    $0x1,%r8d
  movsd  %xmm1,(%rdi)
  add    $0x8,%rsi
  cmp    %r10d,%r8d
  jne    L247
L195:
  mov    (%rsp),%edi
  mov    %r13,%r8
  movapd %xmm4,%xmm3
  nopw   0x0(%rax,%rax,1)
L120:
  mov    (%rbx,%r8,8),%rsi
  mov    %r8d,%r11d
  lea    (%rsi,%rdx,1),%r9
  movsd  (%r9),%xmm1
  test   %r10d,%r10d
  je     L260
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L130:
  mov    (%rbx,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  mov    %rax,%rcx
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %rdi,%rcx
  jne    L130
L260:
  movsd  %xmm1,(%r9)
  andpd  %xmm2,%xmm1
  mulsd  (%r12,%r8,8),%xmm1
  comisd %xmm3,%xmm1
  jb     L163
  movapd %xmm1,%xmm3
  mov    %r11d,%r14d
L163:
  add    $0x1,%r8
  cmp    %r8d,%ebp
  jg     L120
  mov    (%rbx,%r13,8),%rsi
  cmp    %r10d,%r14d
  jne    L158
L178:
  add    %rdx,%rsi
  mov    0x8(%rsp),%rax
  movsd  (%rsi),%xmm0
  mov    %r14d,(%rax,%r13,4)
  ucomisd %xmm4,%xmm0
  jp     L55
  jne    L55
  movsd  %xmm6,(%rsi)
  movapd %xmm6,%xmm0
L55:
  add    $0x1,%r10d
  cmp    %r13d,0x20(%rsp)
  je     L154
  movapd %xmm5,%xmm1
  divsd  %xmm0,%xmm1
  cmp    %r10d,%ebp
  jle    L244
  add    $0x1,%r13
  mov    %r13,%rax
  nop
L115:
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %eax,%ebp
  jg     L115
  addl   $0x1,(%rsp)
  jmp    L188
L154:
  cmp    %r10d,%ebp
  jle    L244
  addl   $0x1,(%rsp)
  add    $0x1,%r13
  jmp    L188
L158:
  movslq %r14d,%rdi
  mov    (%rbx,%rdi,8),%rcx
  lea    0xf(%rcx),%rax
  sub    %rsi,%rax
  cmp    $0x1e,%rax
  mov    $0x0,%eax
  jbe    L72
  cmpl   $0x1,0x20(%rsp)
  jbe    L72
  mov    0x18(%rsp),%r8
  nopw   0x0(%rax,%rax,1)
L1:
  movupd (%rcx,%rax,1),%xmm0
  movupd (%rsi,%rax,1),%xmm3
  movups %xmm3,(%rcx,%rax,1)
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r8
  jne    L1
  cmp    0x24(%rsp),%ebp
  je     L251
  add    %r15,%rcx
  lea    (%rsi,%r15,1),%rax
  movsd  (%rcx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rax)
L251:
  mov    0x10(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm7,%xmm0
  movsd  %xmm0,(%rax)
  movsd  (%r12,%r13,8),%xmm0
  movsd  %xmm0,(%r12,%rdi,8)
  jmp    L178
L78:
  mov    %r13,%rdi
  movsd  %xmm0,(%rsp)
  call   <error@plt>
  mov    D60(%rip),%rax
  movsd  (%rsp),%xmm1
  pxor   %xmm4,%xmm4
  movq   D67(%rip),%xmm2
  movq   %rax,%xmm0
  movq   %rax,%xmm5
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%r12,%r14,8)
  add    $0x1,%r14
  cmp    %r14,%r15
  jne    L192
  jmp    L174
L244:
  add    $0x38,%rsp
  mov    %r12,%rdi
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1070 <free@plt>
L72:
  mov    0x28(%rsp),%r8
L257:
  movsd  (%rcx,%rax,8),%xmm0
  movsd  (%rsi,%rax,8),%xmm1
  movsd  %xmm1,(%rcx,%rax,8)
  movsd  %xmm0,(%rsi,%rax,8)
  add    $0x1,%rax
  cmp    %r8,%rax
  jne    L257
  jmp    L251
```

tool_calls: name: parse_data
arguments: data_label: D60
datatype: f64
name: parse_data
arguments: data_label: D67
datatype: qword
name: parse_data
arguments: data_label: D30
datatype: string
name: parse_data
arguments: data_label: D29
datatype: f32[2]
name: parse_data
arguments: data_label: D26
datatype: byte[8]

tool: D60: 1

tool: D67: 9223372036854775807

tool: D30: Singular matrix in routine ludcmp

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

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

assistant: ```c
void ludcmp(double **a, int n, int *indx, double *d) {
  int i, imax, j, k;
  double big, dum, sum, temp;
  double *vv;
  imax = 0;
  vv = dvector(n);
  *d = 1.0;
  for (i = 0; i < n; i++) {
    big = 0.0;
    for (j = 0; j < n; j++)
      if ((temp = fabs(a[i][j])) > big)
        big = temp;
    if (big == 0.0)
      error("Singular matrix in routine ludcmp");
    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 = 0.0;
    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 = -(*d);
      vv[imax] = vv[j];
    }
    indx[j] = imax;
    if (a[j][j] == 0.0)
      a[j][j] = 1.0e-20;
    if (j != n - 1) {
      dum = 1.0 / (a[j][j]);
      for (i = j + 1; i < n; i++)
        a[i][j] *= dum;
    }
  }
  free(vv);
}
```