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

```asm
<ludcmp>:
  endbr64
  push   %r15
  mov    %rdx,%r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  mov    $0x8,%esi
  push   %rbx
  mov    %rdi,%rbx
  mov    %ebp,%edi
  sub    $0x38,%rsp
  mov    %rdx,0x18(%rsp)
  call   <mCalloc@plt>
  movsd  D14(%rip),%xmm5
  mov    %rax,(%rsp)
  movsd  %xmm5,(%r15)
  test   %ebp,%ebp
  jle    L145
  lea    -0x1(%rbp),%eax
  movq   D74(%rip),%xmm2
  mov    %ebp,0x2c(%rsp)
  pxor   %xmm4,%xmm4
  mov    %rax,0x10(%rsp)
  mov    %ebp,%eax
  lea    D65(%rip),%r12
  mov    %rbx,%rbp
  lea    0x0(,%rax,8),%r14
  mov    %rax,0x20(%rsp)
  mov    (%rsp),%rax
  lea    (%r14,%rax,1),%r15
  mov    %rax,%r13
  mov    %rax,%rbx
  nopl   0x0(%rax,%rax,1)
L207:
  mov    %rbp,%rax
  movapd %xmm4,%xmm1
  sub    %rbx,%rax
  mov    (%rax,%r13,1),%rax
  lea    (%rax,%r14,1),%rdx
  nopw   0x0(%rax,%rax,1)
L126:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L126
  ucomisd %xmm4,%xmm0
  jp     L214
  je     L172
L214:
  movapd %xmm5,%xmm0
  add    $0x8,%r13
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%r13)
  cmp    %r15,%r13
  jne    L207
  mov    %rbp,%rbx
  movsd  D34(%rip),%xmm7
  xor    %edx,%edx
  xor    %r11d,%r11d
  mov    0x2c(%rsp),%ebp
  movsd  D66(%rip),%xmm6
  xor    %r14d,%r14d
  movq   D2(%rip),%xmm8
  mov    0x20(%rsp),%r15
  nopl   0x0(%rax)
L8:
  mov    %r11d,%r13d
  test   %r11,%r11
  je     L97
  mov    (%rbx),%r10
  xor    %r8d,%r8d
  mov    $0x8,%esi
  add    $0x1,%r8d
  lea    (%r10,%rdx,1),%r9
  movsd  (%r9),%xmm1
  movsd  %xmm1,(%r9)
  cmp    %r8d,%r13d
  je     L97
  nopw   0x0(%rax,%rax,1)
L85:
  mov    (%rbx,%rsi,1),%rcx
  mov    %r10,%rdi
  xor    %eax,%eax
  lea    (%rcx,%rdx,1),%r9
  movsd  (%r9),%xmm1
  jmp    L115
  nopl   0x0(%rax)
L118:
  mov    (%rbx,%rax,1),%rdi
L115:
  movsd  (%rdi,%rdx,1),%xmm0
  mulsd  (%rcx,%rax,1),%xmm0
  add    $0x8,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L118
  add    $0x1,%r8d
  add    $0x8,%rsi
  movsd  %xmm1,(%r9)
  cmp    %r8d,%r13d
  jne    L85
L97:
  mov    (%rsp),%rax
  mov    %r11,%r8
  movapd %xmm4,%xmm3
  lea    -0x1(%r11),%edi
  add    %rdx,%rax
  mov    %rax,0x8(%rsp)
  mov    %rax,%r9
  nop
L134:
  mov    (%rbx,%r8,8),%rsi
  mov    %r8d,%r12d
  lea    (%rsi,%rdx,1),%r10
  movsd  (%r10),%xmm1
  test   %r11,%r11
  je     L159
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L20:
  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    %rcx,%rdi
  jne    L20
L159:
  movsd  %xmm1,(%r10)
  andpd  %xmm2,%xmm1
  mulsd  (%r9),%xmm1
  comisd %xmm3,%xmm1
  jb     L185
  movapd %xmm1,%xmm3
  mov    %r12d,%r14d
L185:
  add    $0x1,%r8
  add    $0x8,%r9
  cmp    %r8d,%ebp
  jg     L134
  mov    (%rbx,%rdx,1),%rcx
  cmp    %r13d,%r14d
  jne    L156
L157:
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  ucomisd %xmm4,%xmm0
  jp     L220
  je     L202
L220:
  movapd %xmm5,%xmm1
  divsd  %xmm0,%xmm1
  cmp    %r11,0x10(%rsp)
  je     L145
L60:
  add    $0x1,%r11
  mov    %r11,%rax
  nopl   0x0(%rax)
L211:
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %eax,%ebp
  jg     L211
  add    $0x8,%rdx
  jmp    L8
L202:
  movsd  %xmm7,(%rcx)
  movapd %xmm6,%xmm1
  cmp    %r11,0x10(%rsp)
  jne    L60
L145:
  mov    (%rsp),%rdi
  call   <free@plt>
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L156:
  movslq %r14d,%rdi
  xor    %eax,%eax
  mov    (%rbx,%rdi,8),%rsi
  xchg   %ax,%ax
L165:
  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,%r15
  jne    L165
  mov    0x18(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm8,%xmm0
  movsd  %xmm0,(%rax)
  mov    0x8(%rsp),%rax
  movsd  (%rax),%xmm0
  mov    (%rsp),%rax
  movsd  %xmm0,(%rax,%rdi,8)
  jmp    L157
L172:
  mov    %r12,%rdi
  movsd  %xmm0,0x8(%rsp)
  call   <Exit@plt>
  mov    D14(%rip),%rax
  movsd  0x8(%rsp),%xmm1
  pxor   %xmm4,%xmm4
  movq   D74(%rip),%xmm2
  movq   %rax,%xmm5
  jmp    L214
```

tool_calls: name: disassemble_data
arguments: data_tag: D14
data_type: f64
name: disassemble_data
arguments: data_tag: D74
data_type: qword
name: disassemble_data
arguments: data_tag: D65
data_type: string
name: disassemble_data
arguments: data_tag: D34
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D66
data_type: byte[8]
name: disassemble_data
arguments: data_tag: D2
data_type: f32[2]

tool: D14: 1

tool: D74: 9223372036854775807

tool: D65: Singular matrix in routine LUDCMP.

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

tool: {"D66": [0x40,0x8c,0xb5,0x78,0x1d,0xaf,0x15,0x44]}

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

assistant: ```c
int ludcmp(double **a, int n, double *d) {
  int i, imax, j, k;
  double big, dum, sum, temp;
  double *vv;
  imax = 0;
  vv = (double *)mCalloc(n, sizeof(double));
  *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)
      Exit((char *)"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];
    }
    if (a[j][j] == 0.0)
      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(vv);
  return (0);
}
```