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

```asm
<ludcmp>:
  endbr64
  push   %r15
  xor    %eax,%eax
  mov    %rcx,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  movslq %esi,%rdi
  lea    D25(%rip),%rsi
  mov    %rdi,%rbp
  shl    $0x3,%rdi
  sub    $0x48,%rsp
  mov    %rdx,0x18(%rsp)
  lea    D56(%rip),%rdx
  mov    %rcx,0x20(%rsp)
  call   <mem_alloc@plt>
  movsd  D57(%rip),%xmm5
  cltq
  mov    %rax,0x8(%rsp)
  movsd  %xmm5,(%r15)
  test   %ebp,%ebp
  jle    L159
  lea    -0x1(%rbp),%eax
  mov    %rbx,%rdi
  movq   D32(%rip),%xmm2
  movsd  D53(%rip),%xmm4
  mov    %eax,0x30(%rsp)
  mov    %ebp,%eax
  lea    0x0(,%rax,8),%rsi
  mov    %rax,0x38(%rsp)
  mov    0x8(%rsp),%rax
  lea    (%rax,%rsi,1),%r8
  mov    %rax,%rcx
  sub    %rax,%rdi
  nopl   (%rax)
L165:
  mov    (%rdi,%rcx,1),%rax
  movapd %xmm4,%xmm1
  lea    (%rax,%rsi,1),%rdx
  nopl   0x0(%rax)
L96:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L96
  ucomisd %xmm4,%xmm0
  jp     L10
  je     L149
L10:
  movapd %xmm5,%xmm0
  add    $0x8,%rcx
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rcx)
  cmp    %r8,%rcx
  jne    L165
  mov    %ebp,%eax
  movq   D55(%rip),%xmm6
  xor    %r14d,%r14d
  xor    %r11d,%r11d
  shr    %eax
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x28(%rsp)
  mov    %ebp,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0x34(%rsp)
  lea    0x0(,%rax,8),%r15
  cs nopw 0x0(%rax,%rax,1)
L238:
  lea    0x0(,%r14,8),%rdx
  test   %r11d,%r11d
  je     L221
  mov    $0x8,%esi
  mov    $0x1,%r8d
  cmp    $0x1,%r11d
  je     L221
  xchg   %ax,%ax
L187:
  mov    (%rbx,%rsi,1),%rdi
  xor    %eax,%eax
  lea    (%rdi,%rdx,1),%r9
  movsd  (%r9),%xmm1
  nop
L70:
  mov    (%rbx,%rax,1),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rdi,%rax,1),%xmm0
  add    $0x8,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L70
  add    $0x1,%r8d
  movsd  %xmm1,(%r9)
  add    $0x8,%rsi
  cmp    %r11d,%r8d
  jne    L187
L221:
  mov    0x8(%rsp),%rax
  mov    %r14,%r8
  movapd %xmm4,%xmm3
  movslq %r11d,%rdi
  add    %rdx,%rax
  mov    %rax,0x10(%rsp)
  mov    %rax,%r9
  nopw   0x0(%rax,%rax,1)
L78:
  mov    (%rbx,%r8,8),%rsi
  mov    %r8d,%r13d
  lea    (%rsi,%rdx,1),%r10
  movsd  (%r10),%xmm1
  test   %r11d,%r11d
  je     L118
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L127:
  mov    (%rbx,%rax,8),%rcx
  movsd  (%rcx,%rdx,1),%xmm0
  mulsd  (%rsi,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  cmp    %rdi,%rax
  jne    L127
L118:
  movsd  %xmm1,(%r10)
  andpd  %xmm2,%xmm1
  mulsd  (%r9),%xmm1
  comisd %xmm3,%xmm1
  jb     L229
  movapd %xmm1,%xmm3
  mov    %r13d,%r12d
L229:
  add    $0x1,%r8
  add    $0x8,%r9
  cmp    %r8d,%ebp
  jg     L78
  mov    (%rbx,%r14,8),%rsi
  cmp    %r11d,%r12d
  jne    L55
L185:
  add    %rdx,%rsi
  mov    0x18(%rsp),%rax
  movsd  (%rsi),%xmm0
  mov    %r12d,(%rax,%r14,4)
  movapd %xmm0,%xmm1
  andpd  %xmm2,%xmm1
  comisd %xmm1,%xmm4
  jbe    L222
  movsd  %xmm4,(%rsi)
  movapd %xmm4,%xmm0
L222:
  add    $0x1,%r11d
  cmp    %r14d,0x30(%rsp)
  jg     L125
  cmp    %r11d,%ebp
  jle    L159
  add    $0x1,%r14
  jmp    L238
L55:
  movslq %r12d,%rdi
  mov    (%rbx,%rdi,8),%rcx
  lea    0xf(%rcx),%rax
  sub    %rsi,%rax
  cmp    $0x1e,%rax
  mov    $0x0,%eax
  jbe    L179
  cmpl   $0x1,0x30(%rsp)
  jbe    L179
  mov    0x28(%rsp),%r8
L255:
  movupd (%rcx,%rax,1),%xmm0
  movupd (%rsi,%rax,1),%xmm7
  movups %xmm7,(%rcx,%rax,1)
  movups %xmm0,(%rsi,%rax,1)
  add    $0x10,%rax
  cmp    %rax,%r8
  jne    L255
  cmp    0x34(%rsp),%ebp
  je     L231
  add    %r15,%rcx
  lea    (%rsi,%r15,1),%rax
  movsd  (%rcx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rax)
L231:
  mov    0x20(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm6,%xmm0
  movsd  %xmm0,(%rax)
  mov    0x10(%rsp),%rax
  movsd  (%rax),%xmm0
  mov    0x8(%rsp),%rax
  movsd  %xmm0,(%rax,%rdi,8)
  jmp    L185
L125:
  movapd %xmm5,%xmm1
  divsd  %xmm0,%xmm1
  cmp    %r11d,%ebp
  jle    L159
  add    $0x1,%r14
  mov    %r14,%rax
  nopl   (%rax)
L60:
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %eax,%ebp
  jg     L60
  jmp    L238
L159:
  mov    0x8(%rsp),%rdi
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    1080 <free@plt>
L179:
  mov    0x38(%rsp),%r8
L90:
  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    L90
  jmp    L231
L149:
  lea    D10(%rip),%rdi
  call   <puts@plt>
  mov    $0x1,%edi
  call   <exit@plt>
```

tool_calls: name: read_data
arguments: label: D25
type_infered: string
name: read_data
arguments: label: D56
type_infered: string
name: read_data
arguments: label: D57
type_infered: f64
name: read_data
arguments: label: D32
type_infered: qword
name: read_data
arguments: label: D53
type_infered: byte[8]
name: read_data
arguments: label: D55
type_infered: byte[8]
name: read_data
arguments: label: D10
type_infered: string

tool: D25: ludcmp(): 

tool: D56: vv[]

tool: D57: 1

tool: D32: 9223372036854775807

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

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

tool: D10: 

Singular matrix in routine ludcmp()

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);
}
```