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

```asm
<lu>:
  endbr64
  push   %r15
  pxor   %xmm2,%xmm2
  push   %r14
  push   %r13
  mov    %rdi,%r13
  push   %r12
  mov    %rdx,%r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    (%rdi),%rdi
  mov    %esi,0x4(%rsp)
  movsd  (%rdi),%xmm0
  ucomisd %xmm2,%xmm0
  jp     L23
  je     L36
L23:
  mov    (%r12),%rdx
  mov    0x4(%rsp),%esi
  xor    %eax,%eax
  movsd  %xmm0,(%rdx)
  lea    -0x1(%rsi),%r8d
  cmp    $0x1,%esi
  jle    L81
  xchg   %ax,%ax
L33:
  movsd  0x8(%rdi,%rax,8),%xmm0
  mov    0x8(%r13,%rax,8),%rsi
  mov    0x8(%r12,%rax,8),%rcx
  movsd  %xmm0,0x8(%rdx,%rax,8)
  add    $0x1,%rax
  movsd  (%rsi),%xmm0
  divsd  (%rdx),%xmm0
  movsd  %xmm0,(%rcx)
  cmp    %rax,%r8
  jne    L33
  movslq 0x4(%rsp),%rax
  mov    %rax,%rsi
  shl    $0x3,%rax
  mov    %rax,0x28(%rsp)
  sub    $0x8,%rax
  lea    0x0(%r13,%rax,1),%rbx
  mov    %rax,0x10(%rsp)
  add    %r12,%rax
  mov    %rbx,0x18(%rsp)
  mov    %rax,0x20(%rsp)
  cmp    $0x2,%esi
  jle    L4
  movl   $0x2,(%rsp)
  mov    $0x1,%ebp
  xor    %r15d,%r15d
  nop
L11:
  mov    0x0(%r13,%rbp,8),%rax
  mov    (%r12,%rbp,8),%rsi
  lea    0x0(,%rbp,8),%rbx
  movsd  (%rax,%rbp,8),%xmm1
  lea    (%rsi,%rbx,1),%rcx
  xor    %eax,%eax
  movsd  %xmm1,(%rcx)
  jmp    L156
  nopw   0x0(%rax,%rax,1)
L73:
  mov    0x8(%r12,%rax,1),%rdx
  add    $0x8,%rax
L156:
  movsd  (%rdx,%rbx,1),%xmm0
  mulsd  (%rsi,%rax,1),%xmm0
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
  cmp    %rax,%r15
  jne    L73
  ucomisd %xmm2,%xmm1
  jp     L179
  je     L76
L179:
  addl   $0x1,(%rsp)
  mov    (%rsp),%eax
  cmp    %eax,0x4(%rsp)
  jl     L163
L102:
  lea    0x1(%rbp),%rsi
  mov    (%r12,%rbp,8),%r9
  mov    0x4(%rsp),%eax
  lea    0x10(%r15),%rdi
  sub    (%rsp),%eax
  mov    0x0(%r13,%rbp,8),%r14
  mov    %rsi,0x8(%rsp)
  add    %rsi,%rax
  lea    (%r9,%rbx,1),%r11
  lea    (%r9,%rdi,1),%rcx
  lea    0x8(%r9,%rax,8),%r10
  nopw   0x0(%rax,%rax,1)
L67:
  movsd  (%r14,%rdi,1),%xmm0
  mov    0x0(%r13,%rdi,1),%rax
  mov    (%r12,%rdi,1),%rsi
  movsd  %xmm0,(%rcx)
  movsd  (%rax,%rbx,1),%xmm0
  xor    %eax,%eax
  lea    (%rsi,%rbx,1),%rdx
  movsd  %xmm0,(%rdx)
  nopw   0x0(%rax,%rax,1)
L20:
  mov    (%r12,%rax,8),%r8
  movsd  (%rcx),%xmm0
  movsd  (%r8,%rdi,1),%xmm1
  mulsd  (%r9,%rax,8),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rcx)
  movsd  (%r8,%rbx,1),%xmm1
  mulsd  (%rsi,%rax,8),%xmm1
  add    $0x1,%rax
  movsd  (%rdx),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rdx)
  cmp    %rax,%rbp
  jne    L20
  add    $0x8,%rcx
  divsd  (%r11),%xmm0
  add    $0x8,%rdi
  movsd  %xmm0,(%rdx)
  cmp    %rcx,%r10
  jne    L67
  mov    0x8(%rsp),%rbp
  mov    (%rsp),%esi
  add    $0x8,%r15
  cmp    %esi,0x4(%rsp)
  je     L96
L146:
  mov    (%r12),%rdx
  jmp    L11
L76:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  addl   $0x1,(%rsp)
  pxor   %xmm2,%xmm2
  mov    (%rsp),%eax
  cmp    %eax,0x4(%rsp)
  jge    L102
L163:
  add    $0x8,%r15
  add    $0x1,%rbp
  jmp    L146
L96:
  mov    0x20(%rsp),%rax
  mov    0x28(%rsp),%rbx
  mov    0x10(%rsp),%rdi
  mov    0x4(%rsp),%r8d
  mov    (%rax),%rsi
  mov    0x18(%rsp),%rax
  mov    (%rax),%rax
  lea    (%rsi,%rdi,1),%rcx
  movsd  -0x8(%rax,%rbx,1),%xmm1
  mov    $0x1,%eax
  movsd  %xmm1,(%rcx)
  nopl   0x0(%rax)
L103:
  mov    -0x8(%r12,%rax,8),%rdx
  movsd  (%rdx,%rdi,1),%xmm0
  mulsd  -0x8(%rsi,%rax,8),%xmm0
  add    $0x1,%rax
  subsd  %xmm0,%xmm1
  movsd  %xmm1,(%rcx)
  cmp    %eax,%r8d
  jg     L103
L183:
  add    $0x38,%rsp
  mov    %r12,%rax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L36:
  lea    D2(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    0x0(%r13),%rdi
  pxor   %xmm2,%xmm2
  movsd  (%rdi),%xmm0
  jmp    L23
L81:
  movslq 0x4(%rsp),%rax
  lea    -0x8(,%rax,8),%rax
  add    %rax,%r13
  mov    %rax,0x10(%rsp)
  add    %r12,%rax
  mov    %r13,0x18(%rsp)
  mov    %rax,0x20(%rsp)
L4:
  mov    0x18(%rsp),%rbx
  mov    0x20(%rsp),%rax
  mov    0x10(%rsp),%rsi
  cmpl   $0x2,0x4(%rsp)
  mov    (%rbx),%rcx
  mov    (%rax),%rdx
  movsd  (%rcx,%rsi,1),%xmm0
  lea    (%rdx,%rsi,1),%rax
  movsd  %xmm0,(%rax)
  jne    L183
  mov    (%r12),%rcx
  mov    0x10(%rsp),%rsi
  movsd  (%rcx,%rsi,1),%xmm1
  mulsd  (%rdx),%xmm1
  subsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  jmp    L183
```

tool_calls: name: extract_symbolic_data
arguments: label: D2
type_guessed: string

tool: D2: 
	Can't do LU


assistant: ```c
double **lu(double **a, int n, double **lum) {
  int i, j, k;
  if (a[1 - 1][1 - 1] == 0.0) {
    printf("\n\tCan't do LU\n");
    exit(1);
  }
  lum[1 - 1][1 - 1] = a[1 - 1][1 - 1];
  for (j = 2; j <= n; j++) {
    lum[1 - 1][j - 1] = a[1 - 1][j - 1];
    lum[j - 1][1 - 1] = a[j - 1][1 - 1] / lum[1 - 1][1 - 1];
  }
  for (i = 2; i <= n - 1; i++) {
    lum[i - 1][i - 1] = a[i - 1][i - 1];
    for (k = 1; k <= i - 1; k++)
      lum[i - 1][i - 1] -= lum[i - 1][k - 1] * lum[k - 1][i - 1];
    if (lum[i - 1][i - 1] == 0.0) {
      printf("\n\tCan't do LU\n");
      exit(1);
    }
    for (j = i + 1; j <= n; j++) {
      lum[i - 1][j - 1] = a[i - 1][j - 1];
      lum[j - 1][i - 1] = a[j - 1][i - 1];
      for (k = 1; k <= i - 1; k++) {
        lum[i - 1][j - 1] -= lum[i - 1][k - 1] * lum[k - 1][j - 1];
        lum[j - 1][i - 1] -= lum[j - 1][k - 1] * lum[k - 1][i - 1];
      }
      lum[j - 1][i - 1] /= lum[i - 1][i - 1];
    }
  }
  lum[n - 1][n - 1] = a[n - 1][n - 1];
  for (k = 1; k <= n - 1; k++)
    lum[n - 1][n - 1] -= lum[n - 1][k - 1] * lum[k - 1][n - 1];
  return lum;
}
```