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

```asm
<lu_decomposition>:
  endbr64
  push   %r15
  xor    %eax,%eax
  push   %r14
  mov    %rcx,%r14
  push   %r13
  push   %r12
  push   %rbp
  mov    %esi,%ebp
  push   %rbx
  mov    %rdi,%rbx
  lea    D41(%rip),%rdi
  sub    $0x38,%rsp
  mov    %rcx,0x28(%rsp)
  movslq %esi,%rcx
  lea    D20(%rip),%rsi
  mov    %rdx,0x18(%rsp)
  shl    $0x3,%rcx
  mov    $0x186,%edx
  call   <Malloc@plt>
  movl   $0x1,(%r14)
  cltq
  mov    %rax,0x20(%rsp)
  test   %ebp,%ebp
  jle    L23
  mov    0x20(%rsp),%rax
  lea    -0x1(%rbp),%esi
  mov    %ebp,%r15d
  mov    %rbx,%rdi
  mov    %rsi,0x10(%rsp)
  movq   D52(%rip),%xmm2
  lea    0x0(,%r15,8),%rsi
  pxor   %xmm4,%xmm4
  mov    %rax,0x8(%rsp)
  lea    (%rax,%rsi,1),%r8
  mov    %rax,%rcx
  sub    %rax,%rdi
  movsd  D47(%rip),%xmm5
  nopl   0x0(%rax)
L78:
  mov    (%rdi,%rcx,1),%rax
  movapd %xmm4,%xmm1
  lea    (%rax,%rsi,1),%rdx
  nopl   0x0(%rax)
L146:
  movsd  (%rax),%xmm0
  add    $0x8,%rax
  andpd  %xmm2,%xmm0
  maxsd  %xmm1,%xmm0
  movapd %xmm0,%xmm1
  cmp    %rdx,%rax
  jne    L146
  ucomisd %xmm0,%xmm0
  jp     L8
  comisd %xmm0,%xmm4
  ja     L8
  comisd %xmm4,%xmm0
  jbe    L178
L8:
  movapd %xmm5,%xmm0
  add    $0x8,%rcx
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rcx)
  cmp    %r8,%rcx
  jne    L78
  xor    %r11d,%r11d
  xor    %r14d,%r14d
  nopl   0x0(%rax,%rax,1)
L59:
  lea    0x0(,%r11,8),%rdx
  mov    %r11d,%r13d
  test   %r11,%r11
  je     L16
  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     L16
  nopw   0x0(%rax,%rax,1)
L207:
  mov    (%rbx,%rsi,1),%rcx
  mov    %r10,%rdi
  xor    %eax,%eax
  lea    (%rcx,%rdx,1),%r9
  movsd  (%r9),%xmm1
  jmp    L55
  nopl   0x0(%rax)
L2:
  mov    (%rbx,%rax,1),%rdi
L55:
  movsd  (%rdi,%rdx,1),%xmm0
  mulsd  (%rcx,%rax,1),%xmm0
  add    $0x8,%rax
  subsd  %xmm0,%xmm1
  cmp    %rax,%rsi
  jne    L2
  add    $0x1,%r8d
  add    $0x8,%rsi
  movsd  %xmm1,(%r9)
  cmp    %r8d,%r13d
  jne    L207
L16:
  mov    0x8(%rsp),%r9
  mov    %r11,%r8
  movapd %xmm4,%xmm3
  lea    -0x1(%r11),%edi
  nopl   (%rax)
L138:
  mov    (%rbx,%r8,8),%rsi
  mov    %r8d,%r12d
  lea    (%rsi,%rdx,1),%r10
  movsd  (%r10),%xmm1
  test   %r11,%r11
  je     L165
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L4:
  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    L4
L165:
  movsd  %xmm1,(%r10)
  andpd  %xmm2,%xmm1
  mulsd  (%r9),%xmm1
  comisd %xmm3,%xmm1
  jb     L18
  movapd %xmm1,%xmm3
  mov    %r12d,%r14d
L18:
  add    $0x1,%r8
  add    $0x8,%r9
  cmp    %r8d,%ebp
  jg     L138
  mov    (%rbx,%r11,8),%rcx
  cmp    %r13d,%r14d
  jne    L11
L96:
  movsd  (%rcx,%rdx,1),%xmm0
  mov    0x18(%rsp),%rax
  ucomisd %xmm0,%xmm0
  mov    %r14d,(%rax,%r11,4)
  jp     L47
  comisd %xmm0,%xmm4
  ja     L47
  comisd %xmm4,%xmm0
  jbe    L178
L47:
  movapd %xmm5,%xmm1
  divsd  %xmm0,%xmm1
  cmp    0x10(%rsp),%r11
  je     L23
  add    $0x1,%r11
  mov    %r11,%rax
  nopl   0x0(%rax)
L31:
  mov    (%rbx,%rax,8),%rcx
  add    $0x1,%rax
  add    %rdx,%rcx
  movsd  (%rcx),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %eax,%ebp
  jg     L31
  addq   $0x8,0x8(%rsp)
  jmp    L59
L11:
  movslq %r14d,%rdi
  xor    %eax,%eax
  mov    (%rbx,%rdi,8),%rsi
  nop
L93:
  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    L93
  mov    0x28(%rsp),%rax
  negl   (%rax)
  mov    0x8(%rsp),%rax
  movsd  (%rax),%xmm0
  mov    0x20(%rsp),%rax
  movsd  %xmm0,(%rax,%rdi,8)
  jmp    L96
L23:
  mov    0x20(%rsp),%rcx
  mov    $0x1c0,%edx
  lea    D20(%rip),%rsi
  xor    %eax,%eax
  lea    D41(%rip),%rdi
  call   <Free@plt>
  add    $0x38,%rsp
  mov    $0x1,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L178:
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D41
data_type: string
name: unpack_data
arguments: data_label: D20
data_type: string
name: unpack_data
arguments: data_label: D52
data_type: qword
name: unpack_data
arguments: data_label: D47
data_type: f32[2]

tool: D41: lu_decomposition

tool: D20: /scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/statistic.c

tool: D52: 9223372036854775807

tool: {"D47": [0.0,1.875]}

assistant: ```c
int lu_decomposition(double **a, int n, int *index, int *sign) {
  int i, imax = 0, j, k;
  double big, sum, temp;
  double *v;
  v = (double *)Malloc(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/statistic.c", 390, (n * sizeof(double)));
  *sign = 1;
  for (i = 0; i < n; i++) {
    big = 0;
    for (j = 0; j < n; j++)
      if ((temp = fabs(a[i][j])) > big)
        big = temp;
    if ((((big) != (big)) || ((0.) != (0.)) ? (((big) != (big)) && ((0.) != (0.)) ? 1 : 0) : !(big < 0. || 0. < big)))
      return 0;
    v[i] = 1 / 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;
    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 ((temp = v[i] * fabs(sum)) >= big) {
        big = temp;
        imax = i;
      }
    }
    if (j != imax) {
      for (k = 0; k < n; k++) {
        temp = a[imax][k];
        a[imax][k] = a[j][k];
        a[j][k] = temp;
      }
      *sign = -*sign;
      v[imax] = v[j];
    }
    index[j] = imax;
    if ((((a[j][j]) != (a[j][j])) || ((0.) != (0.)) ? (((a[j][j]) != (a[j][j])) && ((0.) != (0.)) ? 1 : 0) : !(a[j][j] < 0. || 0. < a[j][j])))
      return 0;
    if (j != n) {
      temp = 1 / a[j][j];
      for (i = j + 1; i < n; i++)
        a[i][j] *= temp;
    }
  }
  Free(__func__, "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/AZed/cdo/refs/heads/master/src/statistic.c", 448, (v));
  return 1;
}
```