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

```asm
<ludcmp>:
  endbr64
  push   %r15
  mov    %rdi,%r10
  pxor   %xmm3,%xmm3
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x378,%rsp
  mov    %rsi,0x18(%rsp)
  mov    %fs:0x28,%rax
  mov    %rax,0x368(%rsp)
  xor    %eax,%eax
  test   %edx,%edx
  jle    L595
  lea    -0x1(%rdx),%eax
  lea    0x40(%rsp),%r11
  mov    %rdi,%rbx
  mov    %r10,%rcx
  mov    %eax,0x20(%rsp)
  mov    %r11,%rsi
  lea    0x48(%rsp,%rax,8),%rdi
  pxor   %xmm3,%xmm3
  movq   D47(%rip),%xmm1
  movsd  D30(%rip),%xmm4
  nopw   0x0(%rax,%rax,1)
L581:
  movsd  (%rcx),%xmm0
  andpd  %xmm1,%xmm0
  comisd %xmm3,%xmm0
  jbe    L635
  cmp    $0x1,%edx
  je     L105
L375:
  movsd  0x8(%rcx),%xmm2
  andpd  %xmm1,%xmm2
  maxsd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  cmp    $0x2,%edx
  je     L420
  movsd  0x10(%rcx),%xmm2
  andpd  %xmm1,%xmm2
  maxsd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  cmp    $0x3,%edx
  je     L420
  movsd  0x18(%rcx),%xmm2
  andpd  %xmm1,%xmm2
  maxsd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  cmp    $0x4,%edx
  je     L420
  movsd  0x20(%rcx),%xmm2
  andpd  %xmm1,%xmm2
  maxsd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  cmp    $0x5,%edx
  je     L420
  movsd  0x28(%rcx),%xmm2
  mov    $0x6,%eax
  andpd  %xmm1,%xmm2
  maxsd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  cmp    $0x6,%edx
  je     L420
L629:
  movsd  (%rcx,%rax,8),%xmm2
  add    $0x1,%rax
  andpd  %xmm1,%xmm2
  maxsd  %xmm0,%xmm2
  movapd %xmm2,%xmm0
  cmp    %eax,%edx
  jg     L629
  nopw   0x0(%rax,%rax,1)
L420:
  ucomisd %xmm3,%xmm0
  jp     L105
  je     L575
L105:
  movapd %xmm4,%xmm2
  add    $0x8,%rsi
  add    $0x28,%rcx
  divsd  %xmm0,%xmm2
  movsd  %xmm2,-0x8(%rsi)
  cmp    %rdi,%rsi
  jne    L581
  mov    %edx,%edi
  lea    0x28(%r10),%rax
  mov    %edx,%ecx
  xor    %r13d,%r13d
  and    $0xfffffffe,%edi
  mov    %rax,0x30(%rsp)
  shr    %ecx
  xor    %r14d,%r14d
  movslq %edi,%r15
  mov    %rax,(%rsp)
  mov    0x20(%rsp),%eax
  mov    %edi,0x3c(%rsp)
  movsd  D36(%rip),%xmm5
  mov    %r15,%rdi
  mov    %r13d,%r15d
  movq   $0x0,0x10(%rsp)
  mov    %rdi,%r13
  mov    %ecx,0x24(%rsp)
  mov    %r10,%rcx
  mov    %eax,0xc(%rsp)
  xor    %eax,%eax
  nopl   0x0(%rax,%rax,1)
L269:
  lea    0x1(%r14),%edi
  mov    %eax,%r8d
  xor    %esi,%esi
  mov    %edi,0x8(%rsp)
  test   %rax,%rax
  jne    L642
L319:
  lea    (%rsi,%rsi,4),%rdi
  movapd %xmm3,%xmm6
  lea    (%r10,%rdi,8),%rdi
  jmp    L87
  nopl   0x0(%rax)
L677:
  andpd  %xmm1,%xmm0
  mulsd  (%r11,%rsi,8),%xmm0
  comisd %xmm6,%xmm0
  jb     L221
  movapd %xmm0,%xmm6
  mov    %r9d,%r15d
L221:
  add    $0x1,%rsi
  add    $0x28,%rdi
  cmp    %esi,%edx
  jle    L325
L87:
  movsd  (%rdi,%rax,8),%xmm0
  mov    %esi,%r9d
  test   %rax,%rax
  je     L677
  movsd  (%rdi),%xmm2
  mulsd  (%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x1,%r8d
  je     L44
  movsd  0x8(%rdi),%xmm2
  mulsd  0x28(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x2,%r8d
  je     L44
  movsd  0x10(%rdi),%xmm2
  mulsd  0x50(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x3,%r8d
  je     L44
  movsd  0x18(%rdi),%xmm2
  mulsd  0x78(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x4,%r8d
  je     L44
  movsd  0x20(%rdi),%xmm2
  mulsd  0xa0(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x5,%r8d
  je     L44
  movsd  0x28(%rdi),%xmm2
  mulsd  0xc8(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x6,%r8d
  je     L44
  mov    %rcx,%r12
  mov    $0x6,%ebp
L660:
  movsd  (%rdi,%rbp,8),%xmm2
  add    $0x1,%rbp
  add    $0x28,%r12
  mulsd  0xc8(%r12),%xmm2
  subsd  %xmm2,%xmm0
  cmp    %ebp,%r8d
  jg     L660
  nopl   0x0(%rax,%rax,1)
L44:
  movsd  %xmm0,(%rdi,%rax,8)
  jmp    L677
  nopw   0x0(%rax,%rax,1)
L635:
  cmp    $0x1,%edx
  je     L575
  movapd %xmm3,%xmm0
  jmp    L375
L595:
  movslq %edx,%rdx
  lea    (%rdx,%rdx,4),%rax
  lea    (%r10,%rax,8),%rax
  ucomisd (%rax,%rdx,8),%xmm3
  jp     L390
  jne    L390
  mov    D36(%rip),%rbx
  mov    %rbx,(%rax,%rdx,8)
  mov    $0x1,%eax
L371:
  mov    0x368(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L430
  add    $0x378,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L390:
  mov    $0x1,%eax
  jmp    L371
  cs nopw 0x0(%rax,%rax,1)
L325:
  cmp    %r8d,%r15d
  jne    L573
L98:
  mov    0x18(%rsp),%rdi
  mov    %r15d,(%rdi,%rax,4)
  mov    (%rsp),%rdi
  movsd  -0x28(%rdi),%xmm0
  ucomisd %xmm3,%xmm0
  jp     L189
  je     L576
L189:
  movapd %xmm4,%xmm2
  divsd  %xmm0,%xmm2
L528:
  cmp    0x8(%rsp),%edx
  je     L595
  mov    %edx,%esi
  sub    %eax,%esi
  cmp    $0x2,%esi
  je     L83
  mov    0xc(%rsp),%esi
  mov    (%rsp),%r8
  movapd %xmm2,%xmm6
  unpcklpd %xmm6,%xmm6
  shr    %esi
  sub    $0x1,%esi
  lea    (%rsi,%rsi,4),%rsi
  shl    $0x4,%rsi
  lea    0x50(%r8,%rsi,1),%rdi
  mov    %r8,%rsi
  nopl   0x0(%rax,%rax,1)
L697:
  movupd 0x20(%rsi),%xmm0
  add    $0x50,%rsi
  movlpd -0x50(%rsi),%xmm0
  mulpd  %xmm6,%xmm0
  movlpd %xmm0,-0x50(%rsi)
  movhpd %xmm0,-0x28(%rsi)
  cmp    %rsi,%rdi
  jne    L697
  mov    0xc(%rsp),%r8d
  mov    0x8(%rsp),%esi
  mov    %r8d,%edi
  and    $0xfffffffe,%edi
  add    %edi,%esi
  cmp    %r8d,%edi
  je     L70
L81:
  movslq %esi,%rsi
  lea    (%rsi,%rsi,4),%rsi
  lea    (%r10,%rsi,8),%rsi
  mulsd  (%rsi,%r14,8),%xmm2
  movsd  %xmm2,(%rsi,%r14,8)
L70:
  subl   $0x1,0xc(%rsp)
  movslq 0x8(%rsp),%r14
  add    $0x1,%rax
  add    $0x28,%rbx
  addq   $0x30,(%rsp)
  add    $0x8,%rcx
  addq   $0x28,0x10(%rsp)
  jmp    L269
  nopl   0x0(%rax)
L576:
  movsd  %xmm5,-0x28(%rdi)
  mov    D8(%rip),%rdi
  movq   %rdi,%xmm2
  jmp    L528
  xchg   %ax,%ax
L573:
  mov    0x10(%rsp),%rbp
  movslq %r15d,%r8
  lea    (%r8,%r8,4),%rdi
  shl    $0x3,%rdi
  lea    0x10(%rbp),%r9
  cmp    %r9,%rdi
  lea    (%r10,%rdi,1),%rsi
  setge  %r9b
  add    $0x10,%rdi
  cmp    %rbp,%rdi
  setle  %dil
  or     %r9b,%dil
  je     L182
  cmpl   $0x1,0x20(%rsp)
  jbe    L182
  movupd (%rsi),%xmm0
  movupd (%rbx),%xmm7
  mov    0x24(%rsp),%edi
  movups %xmm7,(%rsi)
  movups %xmm0,(%rbx)
  cmp    $0x1,%edi
  jbe    L605
  movupd 0x10(%rsi),%xmm0
  movupd 0x10(%rbx),%xmm7
  movups %xmm7,0x10(%rsi)
  movups %xmm0,0x10(%rbx)
  cmp    $0x2,%edi
  je     L605
  movupd 0x20(%rsi),%xmm0
  movupd 0x20(%rbx),%xmm7
  movups %xmm7,0x20(%rsi)
  movups %xmm0,0x20(%rbx)
  cmp    $0x3,%edi
  je     L605
  mov    $0x30,%edi
  mov    $0x3,%r9d
L606:
  movupd (%rsi,%rdi,1),%xmm0
  movupd (%rbx,%rdi,1),%xmm7
  add    $0x1,%r9d
  movups %xmm7,(%rsi,%rdi,1)
  movups %xmm0,(%rbx,%rdi,1)
  add    $0x10,%rdi
  cmp    %r9d,0x24(%rsp)
  jne    L606
L605:
  cmp    %edx,0x3c(%rsp)
  je     L5
  movsd  (%rsi,%r13,8),%xmm0
  movsd  (%rbx,%r13,8),%xmm2
  movsd  %xmm2,(%rsi,%r13,8)
  movsd  %xmm0,(%rbx,%r13,8)
L5:
  movsd  (%r11,%rax,8),%xmm0
  movsd  %xmm0,0x40(%rsp,%r8,8)
  jmp    L98
  nop
L642:
  cmp    $0x1,%eax
  je     L360
  mov    %r15d,0x38(%rsp)
  mov    0x30(%rsp),%rsi
  lea    -0x2(%rax),%r12d
  xor    %edi,%edi
  mov    %rbx,0x28(%rsp)
  xchg   %ax,%ax
L192:
  movsd  (%rsi),%xmm2
  mulsd  (%rcx),%xmm2
  mov    %edi,%r9d
  movsd  (%rsi,%rax,8),%xmm0
  subsd  %xmm2,%xmm0
  test   %rdi,%rdi
  je     L472
  movsd  0x8(%rsi),%xmm2
  mulsd  0x28(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x1,%edi
  je     L472
  movsd  0x10(%rsi),%xmm2
  mulsd  0x50(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x2,%edi
  je     L472
  movsd  0x18(%rsi),%xmm2
  mulsd  0x78(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x3,%edi
  je     L472
  movsd  0x20(%rsi),%xmm2
  mulsd  0xa0(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x4,%edi
  je     L472
  movsd  0x28(%rsi),%xmm2
  mulsd  0xc8(%rcx),%xmm2
  subsd  %xmm2,%xmm0
  cmp    $0x5,%edi
  je     L472
  mov    %rcx,%rbp
  mov    $0x6,%ebx
L3:
  movsd  (%rsi,%rbx,8),%xmm2
  add    $0x1,%rbx
  add    $0x28,%rbp
  mulsd  0xc8(%rbp),%xmm2
  lea    -0x1(%rbx),%r15d
  subsd  %xmm2,%xmm0
  cmp    %r9d,%r15d
  jl     L3
L472:
  movsd  %xmm0,(%rsi,%rax,8)
  lea    0x1(%rdi),%r9
  add    $0x28,%rsi
  cmp    %r12,%rdi
  je     L176
  mov    %r9,%rdi
  jmp    L192
  nopw   0x0(%rax,%rax,1)
L176:
  mov    0x38(%rsp),%r15d
  mov    0x28(%rsp),%rbx
L360:
  cmp    %r8d,%edx
  jle    L325
  movslq %r14d,%rsi
  jmp    L319
L575:
  xor    %eax,%eax
  jmp    L371
L83:
  mov    0x8(%rsp),%esi
  jmp    L81
L182:
  movsd  (%rsi),%xmm0
  movsd  (%rbx),%xmm2
  movsd  %xmm2,(%rsi)
  movsd  %xmm0,(%rbx)
  cmp    $0x1,%edx
  je     L5
  movsd  0x8(%rsi),%xmm0
  movsd  0x8(%rbx),%xmm2
  movsd  %xmm2,0x8(%rsi)
  movsd  %xmm0,0x8(%rbx)
  cmp    $0x2,%edx
  je     L5
  movsd  0x10(%rsi),%xmm0
  movsd  0x10(%rbx),%xmm2
  movsd  %xmm2,0x10(%rsi)
  movsd  %xmm0,0x10(%rbx)
  cmp    $0x3,%edx
  je     L5
  movsd  0x18(%rsi),%xmm0
  movsd  0x18(%rbx),%xmm2
  movsd  %xmm2,0x18(%rsi)
  movsd  %xmm0,0x18(%rbx)
  cmp    $0x4,%edx
  je     L5
  movsd  0x20(%rsi),%xmm0
  movsd  0x20(%rbx),%xmm2
  movsd  %xmm2,0x20(%rsi)
  movsd  %xmm0,0x20(%rbx)
  cmp    $0x5,%edx
  je     L5
  movsd  0x28(%rsi),%xmm0
  movsd  0x28(%rbx),%xmm2
  movsd  %xmm2,0x28(%rsi)
  movsd  %xmm0,0x28(%rbx)
  cmp    $0x6,%edx
  je     L5
  mov    $0x6,%edi
L440:
  movsd  (%rsi,%rdi,8),%xmm0
  movsd  (%rbx,%rdi,8),%xmm2
  movsd  %xmm2,(%rsi,%rdi,8)
  movsd  %xmm0,(%rbx,%rdi,8)
  add    $0x1,%rdi
  cmp    %edi,%edx
  jg     L440
  jmp    L5
L430:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D47
type_guessed: qword
name: unpack_data
arguments: data_tag: D30
type_guessed: f64
name: unpack_data
arguments: data_tag: D36
type_guessed: byte[8]
name: unpack_data
arguments: data_tag: D8
type_guessed: byte[8]

tool: D47: 9223372036854775807

tool: D30: 1

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

tool: {"D8": [0x40,0x8c,0xb5,0x78,0x1d,0xaf,0x15,0x44]}

assistant: ```c
int ludcmp(double carray[5][5], int *indx, int n) {
  int i, j, k, imax;
  double dum, sum, aamax, vv[100];
  imax = 0;
  for (i = 0; i < n; i++) {
    aamax = 0.0;
    for (j = 0; j < n; j++) {
      if (fabs(carray[i][j]) > aamax)
        aamax = fabs(carray[i][j]);
    }
    if (aamax == 0.0)
      return 0;
    vv[i] = 1.0 / aamax;
  }
  for (j = 0; j < n; j++) {
    if (j > 0) {
      for (i = 0; i < j; i++) {
        sum = carray[i][j];
        if (i > 0) {
          for (k = 0; k < i; k++) {
            sum -= carray[i][k] * carray[k][j];
          }
          carray[i][j] = sum;
        }
      }
    }
    aamax = 0.0;
    for (i = j; i < n; i++) {
      sum = carray[i][j];
      if (j > 0) {
        for (k = 0; k < j; k++) {
          sum -= carray[i][k] * carray[k][j];
        }
        carray[i][j] = sum;
      }
      dum = vv[i] * fabs(sum);
      if (dum >= aamax) {
        imax = i;
        aamax = dum;
      }
    }
    if (j != imax) {
      for (k = 0; k < n; k++) {
        dum = carray[imax][k];
        carray[imax][k] = carray[j][k];
        carray[j][k] = dum;
      }
      vv[imax] = vv[j];
    }
    indx[j] = imax;
    if (j != n) {
      if (carray[j][j] == 0.0) {
        carray[j][j] = 1e-20;
      }
      dum = 1.0 / carray[j][j];
      for (i = j + 1; i < n; i++) {
        carray[i][j] *= dum;
      }
    }
  }
  if (carray[n][n] == 0.0) {
    carray[n][n] = 1e-20;
  }
  return 1;
}
```