user: Converte this assembly snippet into its equivalent C code:

```asm
<ludcmp>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %rdi,%rbx
  mov    %esi,%r15d
  mov    %rdx,0x28(%rsp)
  mov    %rcx,%rbp
  mov    %rcx,0x38(%rsp)
  mov    $0x1,%edi
  call   <vector@plt>
  mov    %rax,%r14
  movl   $0x3f800000,0x0(%rbp)
  test   %r15d,%r15d
  jle    L195
  lea    0x8(%rbx),%r13
  mov    $0x1,%r12d
  mov    %rbx,(%rsp)
  jmp    L187
L165:
  movss  D18(%rip),%xmm0
  divss  0x8(%rsp),%xmm0
  movss  %xmm0,(%r14,%r12,4)
  add    $0x1,%r12
  add    $0x8,%r13
  cmp    %r12d,%r15d
  jl     L154
L187:
  mov    $0x4,%ebp
  pxor   %xmm6,%xmm6
  movss  %xmm6,0x8(%rsp)
  mov    $0x1,%ebx
L182:
  mov    0x0(%r13),%rax
  movss  (%rax,%rbp,1),%xmm0
  call   <fabs@plt>
  maxss  0x8(%rsp),%xmm0
  movss  %xmm0,0x8(%rsp)
  add    $0x1,%ebx
  add    $0x4,%rbp
  cmp    %ebx,%r15d
  jge    L182
  pxor   %xmm6,%xmm6
  ucomiss %xmm6,%xmm0
  jp     L165
  jne    L165
  lea    D1(%rip),%rdi
  call   <nrerror@plt>
  jmp    L165
L154:
  mov    (%rsp),%rbx
  lea    0x1(%r15),%eax
  shl    $0x2,%rax
  mov    %rax,0x30(%rsp)
  mov    $0x1,%r13d
  mov    $0x4,%ebp
  movl   $0x2,0x1c(%rsp)
  jmp    L24
L84:
  mov    (%rbx,%rcx,8),%rsi
  lea    (%rsi,%rbp,1),%rdi
  movss  (%rdi),%xmm1
  cmp    $0x1,%ecx
  jle    L101
  mov    $0x1,%eax
L43:
  mov    (%rbx,%rax,8),%rdx
  movss  (%rdx,%rbp,1),%xmm0
  mulss  (%rsi,%rax,4),%xmm0
  subss  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L43
L101:
  add    $0x1,%rcx
L161:
  movss  %xmm1,(%rdi)
  cmp    %r8,%rcx
  jne    L84
L139:
  mov    0x18(%rsp),%eax
  cmp    %eax,%r15d
  jl     L106
  mov    %r13,%r12
  pxor   %xmm7,%xmm7
  movss  %xmm7,(%rsp)
  lea    -0x2(%r13),%edi
  mov    %edi,0x10(%rsp)
  mov    %r13,0x20(%rsp)
  mov    %eax,%r13d
  jmp    L122
L198:
  add    $0x1,%r12
  cmp    %r12d,%r15d
  jl     L123
L122:
  mov    %r12d,0xc(%rsp)
  mov    (%rbx,%r12,8),%rsi
  lea    (%rsi,%rbp,1),%rdi
  movss  (%rdi),%xmm1
  cmp    $0x1,%r13d
  jle    L20
  mov    0x10(%rsp),%ecx
  add    $0x2,%rcx
  mov    $0x1,%eax
L287:
  mov    (%rbx,%rax,8),%rdx
  movss  (%rdx,%rbp,1),%xmm0
  mulss  (%rsi,%rax,4),%xmm0
  subss  %xmm0,%xmm1
  add    $0x1,%rax
  cmp    %rax,%rcx
  jne    L287
L20:
  movss  %xmm1,(%rdi)
  movss  (%r14,%r12,4),%xmm3
  movss  %xmm3,0x8(%rsp)
  movaps %xmm1,%xmm0
  call   <fabs@plt>
  mulss  0x8(%rsp),%xmm0
  comiss (%rsp),%xmm0
  jb     L198
  movss  %xmm0,(%rsp)
  mov    0xc(%rsp),%eax
  mov    %eax,0x14(%rsp)
  jmp    L198
L123:
  mov    0x20(%rsp),%r13
L106:
  mov    0x14(%rsp),%eax
  mov    0x18(%rsp),%edi
  cmp    %edi,%eax
  jne    L213
L21:
  mov    0x28(%rsp),%rax
  mov    0x14(%rsp),%edi
  mov    %edi,(%rax,%rbp,1)
  mov    %rbp,%rax
  add    (%rbx,%r13,8),%rax
  pxor   %xmm7,%xmm7
  ucomiss (%rax),%xmm7
  jp     L261
  jne    L261
  movl   $0x1e3ce508,(%rax)
L261:
  cmp    0x18(%rsp),%r15d
  je     L241
  mov    (%rbx,%r13,8),%rax
  movss  D18(%rip),%xmm1
  divss  (%rax,%rbp,1),%xmm1
  mov    0x1c(%rsp),%eax
  cmp    %eax,%r15d
  jl     L195
  cltq
L244:
  mov    %rbp,%rdx
  add    (%rbx,%rax,8),%rdx
  movaps %xmm1,%xmm0
  mulss  (%rdx),%xmm0
  movss  %xmm0,(%rdx)
  add    $0x1,%rax
  cmp    %eax,%r15d
  jge    L244
L115:
  addl   $0x1,0x1c(%rsp)
  add    $0x4,%rbp
  add    $0x1,%r13
L24:
  mov    %r13d,0x18(%rsp)
  cmp    $0x1,%r13d
  jle    L139
  mov    %rbp,%rdi
  add    0x8(%rbx),%rdi
  movss  (%rdi),%xmm1
  lea    -0x2(%r13),%r8d
  add    $0x2,%r8
  mov    $0x2,%ecx
  jmp    L161
L213:
  movslq %eax,%rdi
  lea    (%rbx,%rdi,8),%rsi
  mov    $0x4,%eax
  mov    0x30(%rsp),%r8
L227:
  mov    %rax,%rdx
  add    (%rsi),%rdx
  movss  (%rdx),%xmm0
  mov    (%rbx,%r13,8),%rcx
  movss  (%rcx,%rax,1),%xmm1
  movss  %xmm1,(%rdx)
  mov    (%rbx,%r13,8),%rdx
  movss  %xmm0,(%rdx,%rax,1)
  add    $0x4,%rax
  cmp    %rax,%r8
  jne    L227
  mov    0x38(%rsp),%rax
  movss  (%rax),%xmm0
  xorps  D37(%rip),%xmm0
  movss  %xmm0,(%rax)
  movss  (%r14,%rbp,1),%xmm0
  movss  %xmm0,(%r14,%rdi,4)
  jmp    L21
L241:
  cmp    0x1c(%rsp),%r15d
  jge    L115
L195:
  mov    %r15d,%edx
  mov    $0x1,%esi
  mov    %r14,%rdi
  call   <free_vector@plt>
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
```

tool_calls: name: unpack_data
arguments: label: D18
data_type: f32
name: unpack_data
arguments: label: D1
data_type: string
name: unpack_data
arguments: label: D37
data_type: byte[16]

tool: D18: 1

tool: D1: Singular matrix in routine ludcmp

tool: {"D37": [0x00,0x00,0x00,0x80,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
void ludcmp(float **a, int n, int *indx, float *d) {
  int i, imax, j, k;
  float big, dum, sum, temp;
  float *vv;
  vv = vector(1, n);
  *d = 1.0;
  for (i = 1; i <= n; i++) {
    big = 0.0;
    for (j = 1; j <= n; j++)
      if ((temp = fabs(a[i][j])) > big)
        big = temp;
    if (big == 0.0)
      nrerror("Singular matrix in routine ludcmp");
    vv[i] = 1.0 / big;
  }
  for (j = 1; j <= n; j++) {
    for (i = 1; i < j; i++) {
      sum = a[i][j];
      for (k = 1; k < i; k++)
        sum -= a[i][k] * a[k][j];
      a[i][j] = sum;
    }
    big = 0.0;
    for (i = j; i <= n; i++) {
      sum = a[i][j];
      for (k = 1; k < j; k++)
        sum -= a[i][k] * a[k][j];
      a[i][j] = sum;
      if ((dum = vv[i] * fabs(sum)) >= big) {
        big = dum;
        imax = i;
      }
    }
    if (j != imax) {
      for (k = 1; k <= n; k++) {
        dum = a[imax][k];
        a[imax][k] = a[j][k];
        a[j][k] = dum;
      }
      *d = -(*d);
      vv[imax] = vv[j];
    }
    indx[j] = imax;
    if (a[j][j] == 0.0)
      a[j][j] = 1.0e-20;
    ;
    if (j != n) {
      dum = 1.0 / (a[j][j]);
      for (i = j + 1; i <= n; i++)
        a[i][j] *= dum;
    }
  }
  free_vector(vv, 1, n);
}
```