user: Please show me the C implementation that matches the assembly code listed below:

```asm
<LUCroutDecompose>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %rdx,-0x38(%rbp)
  mov    %rcx,-0x40(%rbp)
  movl   $0x0,-0x14(%rbp)
  jmp    L34
L53:
  mov    -0x14(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  D3(%rip),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x14(%rbp)
L34:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L53
  movl   $0x0,-0x10(%rbp)
  jmp    L118
L47:
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L25
L93:
  mov    -0x14(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L3
L114:
  mov    -0x14(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  -0x8(%rbp),%xmm0
  subsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L3:
  mov    -0xc(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L114
  mov    -0x14(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  -0x8(%rbp),%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x14(%rbp)
L25:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L93
  mov    -0x10(%rbp),%eax
  mov    %eax,-0x14(%rbp)
  jmp    L101
L35:
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L20
L62:
  mov    -0x10(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0xc(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0xc(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  -0x8(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x8(%rbp)
  addl   $0x1,-0xc(%rbp)
L20:
  mov    -0xc(%rbp),%eax
  cmp    -0x10(%rbp),%eax
  jl     L62
  mov    -0x10(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x30(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm0
  subsd  -0x8(%rbp),%xmm0
  mov    -0x10(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x38(%rbp),%rax
  add    %rdx,%rax
  movsd  (%rax),%xmm1
  mov    -0x10(%rbp),%eax
  imul   -0x24(%rbp),%eax
  mov    %eax,%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  cltq
  lea    0x0(,%rax,8),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  divsd  %xmm1,%xmm0
  movsd  %xmm0,(%rax)
  addl   $0x1,-0x14(%rbp)
L101:
  mov    -0x14(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L35
  addl   $0x1,-0x10(%rbp)
L118:
  mov    -0x10(%rbp),%eax
  cmp    -0x24(%rbp),%eax
  jl     L47
  nop
  pop    %rbp
  ret
```

tool_calls: name: read_data
arguments: tag: D3
type: f64

tool: D3: 1

assistant: ```c
void LUCroutDecompose(int n, double *A, double *L, double *U) {
  int i, j, k;
  double soma;
  for (i = 0; i < n; i++) {
    U[i * n + i] = 1.0;
  }
  for (j = 0; j < n; j++) {
    for (i = j; i < n; i++) {
      soma = A[i * n + j];
      for (k = 0; k < j; k++) {
        soma -= L[i * n + k] * U[k * n + j];
      }
      L[i * n + j] = soma;
    }
    for (i = j; i < n; i++) {
      soma = 0.0;
      for (k = 0; k < j; k++) {
        soma += L[j * n + k] * U[k * n + i];
      }
      U[j * n + i] = (A[j * n + i] - soma) / L[j * n + j];
    }
  }
  return;
}
```