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

```asm
<ludcmp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x50,%rsp
  mov    %rdi,-0x38(%rbp)
  mov    %esi,-0x3c(%rbp)
  mov    %rdx,-0x48(%rbp)
  mov    %rcx,-0x50(%rbp)
  mov    -0x3c(%rbp),%eax
  mov    %eax,%esi
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,-0x8(%rbp)
  mov    -0x50(%rbp),%rax
  movss  D24(%rip),%xmm0
  movss  %xmm0,(%rax)
  movl   $0x1,-0x28(%rbp)
  jmp    L24
L153:
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  movl   $0x1,-0x20(%rbp)
  jmp    L194
L162:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mov    (%rax),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  movd   %xmm0,%eax
  mov    %eax,-0xc(%rbp)
  movss  -0xc(%rbp),%xmm0
  comiss -0x18(%rbp),%xmm0
  jbe    L8
  movss  -0xc(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
L8:
  addl   $0x1,-0x20(%rbp)
L194:
  mov    -0x20(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L162
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jp     L234
  pxor   %xmm0,%xmm0
  ucomiss -0x18(%rbp),%xmm0
  jne    L234
  lea    D33(%rip),%rax
  mov    %rax,%rdi
  call   <nrerror@plt>
L234:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movss  D24(%rip),%xmm0
  divss  -0x18(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x28(%rbp)
L24:
  mov    -0x28(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L153
  movl   $0x1,-0x20(%rbp)
  jmp    L149
L90:
  movl   $0x1,-0x28(%rbp)
  jmp    L75
L116:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movl   $0x1,-0x1c(%rbp)
  jmp    L235
L80:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  addl   $0x1,-0x1c(%rbp)
L235:
  mov    -0x1c(%rbp),%eax
  cmp    -0x28(%rbp),%eax
  jl     L80
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x28(%rbp)
L75:
  mov    -0x28(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L116
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  jmp    L52
L142:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x14(%rbp)
  movl   $0x1,-0x1c(%rbp)
  jmp    L15
L171:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  mov    -0x1c(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mulss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  subss  %xmm1,%xmm0
  movss  %xmm0,-0x14(%rbp)
  addl   $0x1,-0x1c(%rbp)
L15:
  mov    -0x1c(%rbp),%eax
  cmp    -0x20(%rbp),%eax
  jl     L171
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  -0x14(%rbp),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rdx,%rax
  movss  (%rax),%xmm2
  movss  %xmm2,-0x40(%rbp)
  mov    -0x14(%rbp),%eax
  movd   %eax,%xmm0
  call   <fabs@plt>
  mulss  -0x40(%rbp),%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x10(%rbp),%xmm0
  comiss -0x18(%rbp),%xmm0
  jb     L68
  movss  -0x10(%rbp),%xmm0
  movss  %xmm0,-0x18(%rbp)
  mov    -0x28(%rbp),%eax
  mov    %eax,-0x24(%rbp)
L68:
  addl   $0x1,-0x28(%rbp)
L52:
  mov    -0x28(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L142
  mov    -0x20(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  je     L133
  movl   $0x1,-0x1c(%rbp)
  jmp    L94
L19:
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rax,%rdx
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rcx
  mov    -0x38(%rbp),%rax
  add    %rcx,%rax
  mov    (%rax),%rcx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x1c(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  -0x10(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x1c(%rbp)
L94:
  mov    -0x1c(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L19
  mov    -0x50(%rbp),%rax
  movss  (%rax),%xmm0
  movss  D7(%rip),%xmm1
  xorps  %xmm1,%xmm0
  mov    -0x50(%rbp),%rax
  movss  %xmm0,(%rax)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x8(%rbp),%rax
  add    %rax,%rdx
  mov    -0x24(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rcx
  mov    -0x8(%rbp),%rax
  add    %rcx,%rax
  movss  (%rdx),%xmm0
  movss  %xmm0,(%rax)
L133:
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x48(%rbp),%rax
  add    %rax,%rdx
  mov    -0x24(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jp     L207
  pxor   %xmm1,%xmm1
  ucomiss %xmm1,%xmm0
  jne    L207
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  D46(%rip),%xmm0
  movss  %xmm0,(%rax)
L207:
  mov    -0x20(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  je     L31
  mov    -0x20(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm1
  movss  D24(%rip),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  mov    -0x20(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x28(%rbp)
  jmp    L33
L130:
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  movss  (%rax),%xmm0
  mov    -0x28(%rbp),%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  mov    (%rax),%rdx
  mov    -0x20(%rbp),%eax
  cltq
  shl    $0x2,%rax
  add    %rdx,%rax
  mulss  -0x10(%rbp),%xmm0
  movss  %xmm0,(%rax)
  addl   $0x1,-0x28(%rbp)
L33:
  mov    -0x28(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L130
L31:
  addl   $0x1,-0x20(%rbp)
L149:
  mov    -0x20(%rbp),%eax
  cmp    -0x3c(%rbp),%eax
  jle    L90
  mov    -0x3c(%rbp),%edx
  mov    -0x8(%rbp),%rax
  mov    $0x1,%esi
  mov    %rax,%rdi
  call   <free_vector@plt>
  nop
  leave
  ret
```

tool_calls: name: read_data
arguments: tag: D24
data_type: f32
name: read_data
arguments: tag: D33
data_type: string
name: read_data
arguments: tag: D7
data_type: byte[4]
name: read_data
arguments: tag: D46
data_type: byte[4]

tool: D24: 1

tool: D33: Singular matrix in routine ludcmp

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

tool: {"D46": [0x08,0xe5,0x3c,0x1e]}

assistant: ```c
void ludcmp(float **a, int n, int *indx, float *d) {
  int i, imax, j, k;
  float big, dum, sum, temp;
  float *vv;
  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 == 0.0)
      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] == 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_vector(vv, 1, n);
}
```