user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<ludcmp>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x380,%rsp
  mov    %rdi,-0x368(%rbp)
  mov    %rsi,-0x370(%rbp)
  mov    %edx,-0x374(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x34c(%rbp)
  movl   $0x0,-0x358(%rbp)
  jmp    L67
L35:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x340(%rbp)
  movl   $0x0,-0x354(%rbp)
  jmp    L155
L89:
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  movq   D22(%rip),%xmm1
  andpd  %xmm1,%xmm0
  comisd -0x340(%rbp),%xmm0
  jbe    L69
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  movq   D22(%rip),%xmm1
  andpd  %xmm1,%xmm0
  movsd  %xmm0,-0x340(%rbp)
L69:
  addl   $0x1,-0x354(%rbp)
L155:
  mov    -0x354(%rbp),%eax
  cmp    -0x374(%rbp),%eax
  jl     L89
  pxor   %xmm0,%xmm0
  ucomisd -0x340(%rbp),%xmm0
  jp     L99
  pxor   %xmm0,%xmm0
  ucomisd -0x340(%rbp),%xmm0
  jne    L99
  mov    $0x0,%eax
  jmp    L224
L99:
  movsd  D36(%rip),%xmm0
  divsd  -0x340(%rbp),%xmm0
  mov    -0x358(%rbp),%eax
  cltq
  movsd  %xmm0,-0x330(%rbp,%rax,8)
  addl   $0x1,-0x358(%rbp)
L67:
  mov    -0x358(%rbp),%eax
  cmp    -0x374(%rbp),%eax
  jl     L35
  movl   $0x0,-0x354(%rbp)
  jmp    L275
L213:
  cmpl   $0x0,-0x354(%rbp)
  jle    L164
  movl   $0x0,-0x358(%rbp)
  jmp    L52
L189:
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,-0x348(%rbp)
  cmpl   $0x0,-0x358(%rbp)
  jle    L217
  movl   $0x0,-0x350(%rbp)
  jmp    L265
L230:
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x350(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm1
  mov    -0x350(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x348(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x348(%rbp)
  addl   $0x1,-0x350(%rbp)
L265:
  mov    -0x350(%rbp),%eax
  cmp    -0x358(%rbp),%eax
  jl     L230
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  -0x348(%rbp),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
L217:
  addl   $0x1,-0x358(%rbp)
L52:
  mov    -0x358(%rbp),%eax
  cmp    -0x354(%rbp),%eax
  jl     L189
L164:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x340(%rbp)
  mov    -0x354(%rbp),%eax
  mov    %eax,-0x358(%rbp)
  jmp    L193
L186:
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,-0x348(%rbp)
  cmpl   $0x0,-0x354(%rbp)
  jle    L274
  movl   $0x0,-0x350(%rbp)
  jmp    L24
L53:
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x350(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm1
  mov    -0x350(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x348(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x348(%rbp)
  addl   $0x1,-0x350(%rbp)
L24:
  mov    -0x350(%rbp),%eax
  cmp    -0x354(%rbp),%eax
  jl     L53
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  -0x348(%rbp),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
L274:
  mov    -0x358(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm1
  movsd  -0x348(%rbp),%xmm0
  movq   D22(%rip),%xmm2
  andpd  %xmm2,%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x338(%rbp)
  movsd  -0x338(%rbp),%xmm0
  comisd -0x340(%rbp),%xmm0
  jb     L267
  mov    -0x358(%rbp),%eax
  mov    %eax,-0x34c(%rbp)
  movsd  -0x338(%rbp),%xmm0
  movsd  %xmm0,-0x340(%rbp)
L267:
  addl   $0x1,-0x358(%rbp)
L193:
  mov    -0x358(%rbp),%eax
  cmp    -0x374(%rbp),%eax
  jl     L186
  mov    -0x354(%rbp),%eax
  cmp    -0x34c(%rbp),%eax
  je     L123
  movl   $0x0,-0x350(%rbp)
  jmp    L187
L5:
  mov    -0x34c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x350(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  movsd  %xmm0,-0x338(%rbp)
  mov    -0x354(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  lea    (%rdx,%rax,1),%rcx
  mov    -0x34c(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x350(%rbp),%eax
  cltq
  movsd  (%rcx,%rax,8),%xmm0
  mov    -0x350(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  mov    -0x354(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x350(%rbp),%eax
  cltq
  movsd  -0x338(%rbp),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x350(%rbp)
L187:
  mov    -0x350(%rbp),%eax
  cmp    -0x374(%rbp),%eax
  jl     L5
  mov    -0x354(%rbp),%eax
  cltq
  movsd  -0x330(%rbp,%rax,8),%xmm0
  mov    -0x34c(%rbp),%eax
  cltq
  movsd  %xmm0,-0x330(%rbp,%rax,8)
L123:
  mov    -0x354(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x370(%rbp),%rax
  add    %rax,%rdx
  mov    -0x34c(%rbp),%eax
  mov    %eax,(%rdx)
  mov    -0x354(%rbp),%eax
  cmp    -0x374(%rbp),%eax
  je     L288
  mov    -0x354(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L241
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L241
  mov    -0x354(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  D9(%rip),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
L241:
  mov    -0x354(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm1
  movsd  D36(%rip),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x338(%rbp)
  mov    -0x354(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,-0x358(%rbp)
  jmp    L297
L231:
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x354(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  mov    -0x358(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mulsd  -0x338(%rbp),%xmm0
  mov    -0x354(%rbp),%eax
  cltq
  movsd  %xmm0,(%rdx,%rax,8)
  addl   $0x1,-0x358(%rbp)
L297:
  mov    -0x358(%rbp),%eax
  cmp    -0x374(%rbp),%eax
  jl     L231
L288:
  addl   $0x1,-0x354(%rbp)
L275:
  mov    -0x354(%rbp),%eax
  cmp    -0x374(%rbp),%eax
  jl     L213
  mov    -0x374(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x374(%rbp),%eax
  cltq
  movsd  (%rdx,%rax,8),%xmm0
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jp     L328
  pxor   %xmm1,%xmm1
  ucomisd %xmm1,%xmm0
  jne    L328
  mov    -0x374(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  shl    $0x3,%rax
  mov    %rax,%rdx
  mov    -0x368(%rbp),%rax
  add    %rax,%rdx
  mov    -0x374(%rbp),%eax
  cltq
  movsd  D9(%rip),%xmm0
  movsd  %xmm0,(%rdx,%rax,8)
L328:
  mov    $0x1,%eax
L224:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L80
  call   <__stack_chk_fail@plt>
L80:
  leave
  ret
```

tool_calls: name: disassemble_data
arguments: label: D22
type: qword
name: disassemble_data
arguments: label: D36
type: f64
name: disassemble_data
arguments: label: D9
type: byte[8]

tool: D22: 9223372036854775807

tool: D36: 1

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

assistant: ```c
int ludcmp(double carray[5][5], int *indx, int n) {
  int i, j, k, imax;
  double dum, sum, aamax, vv[100];
  imax = 0;
  for (i = 0; i < n; i++) {
    aamax = 0.0;
    for (j = 0; j < n; j++) {
      if (fabs(carray[i][j]) > aamax)
        aamax = fabs(carray[i][j]);
    }
    if (aamax == 0.0)
      return 0;
    vv[i] = 1.0 / aamax;
  }
  for (j = 0; j < n; j++) {
    if (j > 0) {
      for (i = 0; i < j; i++) {
        sum = carray[i][j];
        if (i > 0) {
          for (k = 0; k < i; k++) {
            sum -= carray[i][k] * carray[k][j];
          }
          carray[i][j] = sum;
        }
      }
    }
    aamax = 0.0;
    for (i = j; i < n; i++) {
      sum = carray[i][j];
      if (j > 0) {
        for (k = 0; k < j; k++) {
          sum -= carray[i][k] * carray[k][j];
        }
        carray[i][j] = sum;
      }
      dum = vv[i] * fabs(sum);
      if (dum >= aamax) {
        imax = i;
        aamax = dum;
      }
    }
    if (j != imax) {
      for (k = 0; k < n; k++) {
        dum = carray[imax][k];
        carray[imax][k] = carray[j][k];
        carray[j][k] = dum;
      }
      vv[imax] = vv[j];
    }
    indx[j] = imax;
    if (j != n) {
      if (carray[j][j] == 0.0) {
        carray[j][j] = 1e-20;
      }
      dum = 1.0 / carray[j][j];
      for (i = j + 1; i < n; i++) {
        carray[i][j] *= dum;
      }
    }
  }
  if (carray[n][n] == 0.0) {
    carray[n][n] = 1e-20;
  }
  return 1;
}
```