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

```asm
<LUDecomp>:
  endbr64
  push   %r15
  mov    %rcx,%r15
  push   %r14
  push   %r13
  push   %r12
  mov    %esi,%r12d
  mov    $0x8,%esi
  push   %rbp
  push   %rbx
  mov    %rdi,%rbx
  mov    %r12d,%edi
  sub    $0x48,%rsp
  mov    %rdx,0x18(%rsp)
  mov    %rcx,0x20(%rsp)
  call   <Array1D@plt>
  movsd  D20(%rip),%xmm5
  mov    %rax,0x8(%rsp)
  movsd  %xmm5,(%r15)
  test   %r12d,%r12d
  jle    L147
  lea    -0x1(%r12),%eax
  mov    %rbx,%rdi
  movq   D6(%rip),%xmm2
  pxor   %xmm4,%xmm4
  mov    %eax,0x30(%rsp)
  mov    %r12d,%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   0x0(%rax)
L79:
  mov    (%rdi,%rcx,1),%rax
  movapd %xmm4,%xmm1
  lea    (%rax,%rsi,1),%rdx
  nopl   0x0(%rax)
L204:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmp    %rax,%rdx
  jne    L204
  ucomisd %xmm4,%xmm0
  jp     L23
  je     L20
L23:
  movapd %xmm5,%xmm0
  add    $0x8,%rcx
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rcx)
  cmp    %r8,%rcx
  jne    L79
  mov    %r12d,%eax
  movq   D34(%rip),%xmm7
  xor    %r14d,%r14d
  xor    %r11d,%r11d
  shr    %eax
  movsd  D26(%rip),%xmm6
  sub    $0x1,%eax
  add    $0x1,%rax
  shl    $0x4,%rax
  mov    %rax,0x28(%rsp)
  mov    %r12d,%eax
  and    $0xfffffffe,%eax
  mov    %eax,0x34(%rsp)
  lea    0x0(,%rax,8),%r15
L266:
  lea    0x0(,%r14,8),%rdx
  test   %r11d,%r11d
  je     L171
  mov    $0x8,%esi
  mov    $0x1,%r8d
  cmp    $0x1,%r11d
  je     L171
  xchg   %ax,%ax
L154:
  mov    (%rbx,%rsi,1),%rdi
  xor    %eax,%eax
  lea    (%rdi,%rdx,1),%r9
  movsd  (%r9),%xmm1
  nop
L170:
  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    L170
  add    $0x1,%r8d
  movsd  %xmm1,(%r9)
  add    $0x8,%rsi
  cmp    %r11d,%r8d
  jne    L154
L171:
  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)
L252:
  mov    (%rbx,%r8,8),%rsi
  mov    %r8d,%r13d
  lea    (%rsi,%rdx,1),%r10
  movsd  (%r10),%xmm1
  test   %r11d,%r11d
  je     L243
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L268:
  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    L268
L243:
  movsd  %xmm1,(%r10)
  andpd  %xmm2,%xmm1
  mulsd  (%r9),%xmm1
  comisd %xmm3,%xmm1
  jb     L141
  movapd %xmm1,%xmm3
  mov    %r13d,%ebp
L141:
  add    $0x1,%r8
  add    $0x8,%r9
  cmp    %r8d,%r12d
  jg     L252
  mov    (%rbx,%r14,8),%rsi
  cmp    %r11d,%ebp
  jne    L136
L73:
  add    %rdx,%rsi
  mov    0x18(%rsp),%rax
  movsd  (%rsi),%xmm0
  mov    %ebp,(%rax,%r14,4)
  ucomisd %xmm4,%xmm0
  jp     L46
  jne    L46
  movsd  %xmm6,(%rsi)
  movapd %xmm6,%xmm0
L46:
  add    $0x1,%r11d
  cmp    %r14d,0x30(%rsp)
  je     L39
  movapd %xmm5,%xmm1
  divsd  %xmm0,%xmm1
  cmp    %r11d,%r12d
  jle    L147
  add    $0x1,%r14
  mov    %r14,%rax
  nop
L15:
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %eax,%r12d
  jg     L15
  jmp    L266
L147:
  mov    0x8(%rsp),%rdi
  call   <FreeArray1D@plt>
  add    $0x48,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L39:
  cmp    %r11d,%r12d
  jle    L147
  add    $0x1,%r14
  jmp    L266
L136:
  movslq %ebp,%rdi
  mov    (%rbx,%rdi,8),%rcx
  lea    0xf(%rcx),%rax
  sub    %rsi,%rax
  cmp    $0x1e,%rax
  mov    $0x0,%eax
  jbe    L109
  cmpl   $0x1,0x30(%rsp)
  jbe    L109
  mov    0x28(%rsp),%r8
  nopw   0x0(%rax,%rax,1)
L277:
  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    L277
  cmp    %r12d,0x34(%rsp)
  je     L221
  add    %r15,%rcx
  lea    (%rsi,%r15,1),%rax
  movsd  (%rcx),%xmm0
  movsd  (%rax),%xmm1
  movsd  %xmm1,(%rcx)
  movsd  %xmm0,(%rax)
L221:
  mov    0x20(%rsp),%rax
  movsd  (%rax),%xmm0
  xorpd  %xmm7,%xmm0
  movsd  %xmm0,(%rax)
  mov    0x10(%rsp),%rax
  movsd  (%rax),%xmm0
  mov    0x8(%rsp),%rax
  movsd  %xmm0,(%rax,%rdi,8)
  jmp    L73
L20:
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L109:
  mov    0x38(%rsp),%r8
L41:
  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    L41
  jmp    L221
```

tool_calls: name: read_data
arguments: tag: D20
datatype: f64
name: read_data
arguments: tag: D6
datatype: qword
name: read_data
arguments: tag: D34
datatype: f32[2]
name: read_data
arguments: tag: D26
datatype: byte[8]

tool: D20: 1

tool: D6: 9223372036854775807

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

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

assistant: ```c
int LUDecomp(double **a, int n, int *indx, double *d) {
  int i, imax, j, k;
  double big, dum, sum, temp;
  double *vv;
  vv = (double *)Array1D(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) {
      return (0);
    }
    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;
    }
  }
  FreeArray1D(vv);
  return (1);
}
```