user: What is the c source code of the assembly code below:

```asm
<calc_thermal_matrix_LU>:
  endbr64
  push   %r15
  push   %r14
  mov    %rdi,%r14
  lea    D4(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x2c(%rsp),%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <set_up_tfield@plt>
  mov    0x34(%rsp),%edx
  mov    0x30(%rsp),%esi
  mov    %r14,%rdi
  mov    0x2c(%rsp),%ebx
  xor    %eax,%eax
  imul   %edx,%esi
  imul   %esi,%ebx
  mov    %esi,0x18(%rsp)
  lea    (%rsi,%rsi,1),%r15d
  movslq %ebx,%r12
  mov    %ebx,0x1c(%rsp)
  call   <find_contained_nodes@plt>
  shl    $0x3,%r12
  mov    %r12,%rdi
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  test   %ebx,%ebx
  jle    L63
  mov    %ebx,%ebp
  xor    %esi,%esi
  lea    0x1(%r15),%r13d
  mov    %rax,%rdi
  shl    $0x3,%rbp
  mov    %rbp,%rdx
  call   <memset@plt>
  mov    %r12,%rdi
  movslq %r13d,%r12
  call   <malloc@plt>
  shl    $0x3,%r12
  mov    %rax,%rcx
  mov    %rax,0x10(%rsp)
  mov    %rax,%rbx
  add    %rax,%rbp
  mov    %r15d,%eax
  mov    %rcx,%r15
  add    $0x1,%rax
  mov    %rax,(%rsp)
  cs nopw 0x0(%rax,%rax,1)
L38:
  mov    %r12,%rdi
  call   <malloc@plt>
  mov    %rax,(%r15)
  test   %r13d,%r13d
  jle    L33
  mov    (%rsp),%rcx
  lea    (%rax,%rcx,8),%rdx
  nopl   0x0(%rax,%rax,1)
L52:
  movq   $0x0,(%rax)
  add    $0x8,%rax
  cmp    %rdx,%rax
  jne    L52
L33:
  add    $0x8,%r15
  cmp    %rbp,%r15
  jne    L38
  mov    0x1c(%rsp),%r13d
  mov    0x8(%rsp),%r15
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %r13d,%edx
  mov    %r15,%rsi
  call   <set_up_flux@plt>
  mov    0x10(%rsp),%r12
  mov    %r13d,%ecx
  mov    %r15,%rsi
  mov    0x34(%rsp),%r9d
  mov    0x18(%rsp),%r8d
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %r12,%rdx
  call   <set_up_coef_matrix@plt>
  mov    0x18(%rsp),%r8d
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %r13d,%ecx
  mov    %r15,%rdx
  mov    %r12,%rsi
  call   <LU_Decomp@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <find_comp_temp@plt>
  nopw   0x0(%rax,%rax,1)
L9:
  mov    (%rbx),%rdi
  add    $0x8,%rbx
  call   <free@plt>
  cmp    %rbp,%rbx
  jne    L9
L62:
  mov    0x10(%rsp),%rdi
  call   <free@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L60
  mov    0x8(%rsp),%rdi
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  jmp    10f0 <free@plt>
L63:
  mov    %r12,%rdi
  call   <malloc@plt>
  mov    0x1c(%rsp),%ebp
  mov    0x8(%rsp),%rbx
  mov    %r14,%rdi
  mov    %rax,%r15
  mov    %rax,0x10(%rsp)
  xor    %eax,%eax
  mov    %ebp,%edx
  mov    %rbx,%rsi
  call   <set_up_flux@plt>
  mov    0x18(%rsp),%r13d
  mov    %ebp,%ecx
  mov    %r15,%rdx
  mov    0x34(%rsp),%r9d
  mov    %rbx,%rsi
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %r13d,%r8d
  call   <set_up_coef_matrix@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  mov    %r13d,%r8d
  mov    %ebp,%ecx
  mov    %rbx,%rdx
  mov    %r15,%rsi
  call   <LU_Decomp@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <find_comp_temp@plt>
  jmp    L62
L60:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_tag: D4
type_infered: string

tool: D4: LU   

assistant: ```c
void calc_thermal_matrix_LU(design) struct Design *design;
{
  double *flux, **R;
  void set_up_tfield(), set_up_flux(), set_up_coef_matrix();
  void LU_Decomp(), find_comp_temp(), find_contained_nodes();
  int i, j, node_dim[3], tot_nodes, hbw, width;
  printf("LU   ");
  set_up_tfield(design, node_dim);
  hbw = node_dim[1] * node_dim[2];
  width = 2 * hbw + 1;
  tot_nodes = node_dim[0] * hbw;
  find_contained_nodes(design, hbw, node_dim[2]);
  flux = (double *)malloc(sizeof(double) * tot_nodes);
  for (i = 0; i < tot_nodes; i++)
    flux[i] = 0.0;
  R = (double **)malloc(sizeof(double *) * tot_nodes);
  for (i = 0; i < tot_nodes; i++) {
    R[i] = (double *)malloc(sizeof(double) * width);
    for (j = 0; j < width; ++j)
      R[i][j] = 0.0;
  }
  set_up_flux(design, flux, tot_nodes);
  set_up_coef_matrix(design, flux, R, tot_nodes, hbw, node_dim[2]);
  LU_Decomp(design, R, flux, tot_nodes, hbw);
  find_comp_temp(design);
  for (i = 0; i < tot_nodes; i++)
    free(R[i]);
  free(R);
  free(flux);
}
```