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

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x14,%esi
  mov    $0x1,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0xd8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xc8(%rsp)
  xor    %eax,%eax
  call   <vector@plt>
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x10(%rsp)
  call   <vector@plt>
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,%r15
  call   <vector@plt>
  mov    $0x14,%ecx
  mov    $0x1,%edx
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,%rbp
  call   <matrix@plt>
  mov    $0x14,%ecx
  mov    $0x1,%edx
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x20(%rsp)
  call   <matrix@plt>
  mov    $0x14,%ecx
  mov    $0x1,%edx
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x38(%rsp)
  call   <matrix@plt>
  mov    $0x14,%ecx
  mov    $0x1,%edx
  mov    $0x14,%esi
  mov    $0x1,%edi
  mov    %rax,0x18(%rsp)
  call   <matrix@plt>
  lea    D96(%rip),%rsi
  lea    D13(%rip),%rdi
  mov    %rax,0x28(%rsp)
  call   <fopen@plt>
  mov    %rax,%r13
  test   %rax,%rax
  je     L310
L409:
  mov    %r13,%rdi
  mov    0x38(%rsp),%r12
  lea    D33(%rip),%r14
  call   <feof@plt>
  test   %eax,%eax
  jne    L257
L213:
  lea    0x70(%rsp),%rax
  mov    %r13,%rdx
  mov    $0x50,%esi
  mov    %rax,%rbx
  mov    %rax,%rdi
  mov    %rax,0x8(%rsp)
  call   <fgets@plt>
  mov    %r13,%rdx
  mov    $0x50,%esi
  mov    %rbx,%rdi
  call   <fgets@plt>
  lea    0x68(%rsp),%rcx
  mov    %r13,%rdi
  xor    %eax,%eax
  lea    0x6c(%rsp),%rdx
  lea    D139(%rip),%rsi
  call   <fscanf@plt>
  mov    %rbx,%rdi
  mov    %r13,%rdx
  mov    $0x50,%esi
  call   <fgets@plt>
  mov    0x20(%rsp),%rax
  mov    0x6c(%rsp),%r9d
  mov    $0x1,%edi
  add    $0x8,%rax
  test   %r9d,%r9d
  jle    L274
  mov    %rbp,0x40(%rsp)
  mov    %rax,%rbx
  mov    %r12,0x48(%rsp)
  mov    %r15,0x30(%rsp)
  mov    %edi,%r15d
  nopl   0x0(%rax,%rax,1)
L375:
  mov    $0x4,%r12d
  mov    $0x1,%ebp
  nopl   0x0(%rax,%rax,1)
L147:
  mov    (%rbx),%rdx
  lea    D45(%rip),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%ebp
  add    %r12,%rdx
  add    $0x4,%r12
  call   <fscanf@plt>
  mov    0x6c(%rsp),%eax
  cmp    %ebp,%eax
  jge    L147
  add    $0x1,%r15d
  cmp    %r15d,%eax
  jl     L18
  add    $0x8,%rbx
  jmp    L375
L18:
  mov    0x30(%rsp),%r15
  mov    0x40(%rsp),%rbp
  mov    0x48(%rsp),%r12
L274:
  mov    0x8(%rsp),%rdi
  mov    $0x50,%esi
  mov    %r13,%rdx
  call   <fgets@plt>
  mov    0x68(%rsp),%r8d
  mov    0x6c(%rsp),%esi
  test   %r8d,%r8d
  jle    L193
  mov    $0x1,%eax
  mov    %r15,0x8(%rsp)
  mov    $0x4,%ebx
  mov    %rbp,0x30(%rsp)
  mov    %eax,%r15d
  test   %esi,%esi
  jle    L382
  nopl   0x0(%rax,%rax,1)
L69:
  mov    $0x1,%ebp
  nopl   (%rax)
L184:
  mov    (%r12,%rbp,8),%rdx
  lea    D45(%rip),%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  add    $0x1,%rbp
  add    %rbx,%rdx
  call   <fscanf@plt>
  mov    0x6c(%rsp),%esi
  cmp    %ebp,%esi
  jge    L184
  add    $0x1,%r15d
  cmp    0x68(%rsp),%r15d
  jg     L352
  add    $0x4,%rbx
  test   %esi,%esi
  jg     L69
L382:
  mov    0x8(%rsp),%r15
  mov    0x30(%rsp),%rbp
L309:
  mov    0x28(%rsp),%r8
  mov    0x10(%rsp),%rcx
  mov    %esi,%edx
  mov    0x18(%rsp),%rdi
  call   <svdcmp@plt>
  mov    0x6c(%rsp),%edx
  test   %edx,%edx
  jle    L330
  mov    0x10(%rsp),%rbx
  sub    $0x1,%edx
  pxor   %xmm0,%xmm0
  lea    0x4(%rbx),%rax
  lea    0x8(%rbx,%rdx,4),%rcx
  mov    %rax,%rdx
  nopl   0x0(%rax,%rax,1)
L96:
  movss  (%rdx),%xmm1
  add    $0x4,%rdx
  maxss  %xmm0,%xmm1
  movaps %xmm1,%xmm0
  cmp    %rdx,%rcx
  jne    L96
  pxor   %xmm0,%xmm0
  cvtss2sd %xmm1,%xmm0
  mulsd  D5(%rip),%xmm0
  cvtsd2ss %xmm0,%xmm0
  nopl   0x0(%rax,%rax,1)
L55:
  comiss (%rax),%xmm0
  jbe    L130
  movl   $0x0,(%rax)
L130:
  add    $0x4,%rax
  cmp    %rax,%rcx
  jne    L55
L330:
  mov    0x68(%rsp),%edi
  movl   $0x1,0x8(%rsp)
  mov    $0x4,%ebx
  test   %edi,%edi
  jle    L252
  mov    %r13,0x30(%rsp)
  nopw   0x0(%rax,%rax,1)
L52:
  mov    0x8(%rsp),%esi
  lea    D75(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x6c(%rsp),%ecx
  mov    $0x1,%eax
  lea    0x1(%rcx),%esi
  test   %ecx,%ecx
  jle    L120
  nopw   0x0(%rax,%rax,1)
L65:
  mov    (%r12,%rax,8),%rdx
  movss  (%rdx,%rbx,1),%xmm0
  movss  %xmm0,0x0(%rbp,%rax,4)
  add    $0x1,%rax
  cmp    %rax,%rsi
  jne    L65
L120:
  sub    $0x8,%rsp
  mov    %ecx,%r8d
  mov    %rbp,%r9
  mov    $0x1,%r13d
  push   %r15
  mov    0x20(%rsp),%rsi
  mov    0x38(%rsp),%rdx
  mov    0x28(%rsp),%rdi
  call   <svbksb@plt>
  lea    D118(%rip),%rdi
  call   <puts@plt>
  pop    %rdx
  pop    %rcx
  mov    0x6c(%rsp),%esi
  test   %esi,%esi
  jle    L406
  nopl   0x0(%rax)
L380:
  pxor   %xmm0,%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  cvtss2sd (%r15,%r13,4),%xmm0
  call   <printf@plt>
  add    $0x1,%r13
  cmp    %r13d,0x6c(%rsp)
  jge    L380
L406:
  lea    D86(%rip),%rdi
  mov    $0x1,%r13d
  call   <puts@plt>
  mov    0x6c(%rsp),%eax
  test   %eax,%eax
  jle    L354
  nopl   0x0(%rax)
L30:
  pxor   %xmm0,%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  cvtss2sd 0x0(%rbp,%r13,4),%xmm0
  call   <printf@plt>
  add    $0x1,%r13
  cmp    %r13d,0x6c(%rsp)
  jge    L30
L354:
  lea    D119(%rip),%rdi
  call   <puts@plt>
  mov    0x6c(%rsp),%eax
  test   %eax,%eax
  jle    L97
  mov    0x20(%rsp),%rdi
  sub    $0x1,%eax
  lea    0x4(%rbp),%rdx
  lea    0x8(%rbp,%rax,4),%r8
  lea    0x2(%rax),%rsi
  add    $0x8,%rdi
  nopl   0x0(%rax)
L200:
  movl   $0x0,(%rdx)
  mov    (%rdi),%rcx
  mov    $0x1,%eax
  pxor   %xmm1,%xmm1
  nopw   0x0(%rax,%rax,1)
L305:
  movss  (%rcx,%rax,4),%xmm0
  mulss  (%r15,%rax,4),%xmm0
  add    $0x1,%rax
  addss  %xmm0,%xmm1
  movss  %xmm1,(%rdx)
  cmp    %rax,%rsi
  jne    L305
  add    $0x4,%rdx
  add    $0x8,%rdi
  cmp    %rdx,%r8
  jne    L200
  mov    $0x1,%r13d
  nopw   0x0(%rax,%rax,1)
L34:
  pxor   %xmm0,%xmm0
  mov    %r14,%rdi
  mov    $0x1,%eax
  cvtss2sd 0x0(%rbp,%r13,4),%xmm0
  call   <printf@plt>
  add    $0x1,%r13
  cmp    %r13d,0x6c(%rsp)
  jge    L34
L97:
  mov    $0xa,%edi
  add    $0x4,%rbx
  call   <putchar@plt>
  addl   $0x1,0x8(%rsp)
  mov    0x8(%rsp),%eax
  cmp    %eax,0x68(%rsp)
  jge    L52
  mov    0x30(%rsp),%r13
L252:
  lea    D16(%rip),%rdi
  call   <puts@plt>
  lea    D76(%rip),%rdi
  call   <puts@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %r13,%rdi
  call   <feof@plt>
  test   %eax,%eax
  je     L213
L257:
  mov    %r13,%rdi
  call   <fclose@plt>
  mov    0x28(%rsp),%rdi
  mov    $0x14,%r8d
  mov    $0x1,%ecx
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_matrix@plt>
  mov    0x18(%rsp),%rdi
  mov    $0x14,%r8d
  mov    $0x1,%ecx
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_matrix@plt>
  mov    0x38(%rsp),%rdi
  mov    $0x14,%r8d
  mov    $0x1,%ecx
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_matrix@plt>
  mov    0x20(%rsp),%rdi
  mov    $0x14,%r8d
  mov    $0x1,%ecx
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_matrix@plt>
  mov    $0x14,%edx
  mov    $0x1,%esi
  mov    %rbp,%rdi
  call   <free_vector@plt>
  mov    $0x14,%edx
  mov    $0x1,%esi
  mov    %r15,%rdi
  call   <free_vector@plt>
  mov    0x10(%rsp),%rdi
  mov    $0x14,%edx
  mov    $0x1,%esi
  call   <free_vector@plt>
  mov    0xc8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L339
  add    $0xd8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L352:
  mov    0x8(%rsp),%r15
  mov    0x30(%rsp),%rbp
L193:
  test   %esi,%esi
  jle    L309
  mov    %esi,%eax
  mov    %rbp,0x48(%rsp)
  lea    -0x1(%rsi),%ecx
  mov    0x20(%rsp),%rbp
  shr    $0x2,%eax
  mov    %r12,0x50(%rsp)
  mov    0x18(%rsp),%r12
  lea    0x1(%rsi),%r9d
  lea    -0x1(%rax),%edi
  mov    %esi,%eax
  mov    %r15,0x40(%rsp)
  mov    $0x1,%r8d
  and    $0xfffffffc,%eax
  shl    $0x4,%rdi
  mov    %r13,0x58(%rsp)
  mov    %ecx,%r13d
  lea    0x2(%rax),%r11d
  lea    0x3(%rax),%ebx
  add    $0x14,%rdi
  mov    %eax,%r15d
  lea    0x1(%rax),%r10d
  mov    %r11d,0x8(%rsp)
  shl    $0x2,%r11
  mov    %ebx,0x30(%rsp)
  shl    $0x2,%r10
  shl    $0x2,%rbx
  nopw   0x0(%rax,%rax,1)
L24:
  mov    (%r12,%r8,8),%rcx
  mov    0x0(%rbp,%r8,8),%rdx
  mov    %rcx,%rax
  sub    %rdx,%rax
  sub    $0x4,%rax
  cmp    $0x8,%rax
  jbe    L33
  cmp    $0x2,%r13d
  jbe    L33
  mov    $0x4,%eax
  nopl   0x0(%rax)
L109:
  movups (%rdx,%rax,1),%xmm2
  movups %xmm2,(%rcx,%rax,1)
  add    $0x10,%rax
  cmp    %rdi,%rax
  jne    L109
  cmp    %r15d,%esi
  je     L244
  movss  (%rdx,%r10,1),%xmm0
  movss  %xmm0,(%rcx,%r10,1)
  cmp    0x8(%rsp),%esi
  jl     L244
  movss  (%rdx,%r11,1),%xmm0
  movss  %xmm0,(%rcx,%r11,1)
  cmp    %esi,0x30(%rsp)
  jg     L244
  movss  (%rdx,%rbx,1),%xmm0
  movss  %xmm0,(%rcx,%rbx,1)
L244:
  add    $0x1,%r8
  cmp    %r9,%r8
  jne    L24
  mov    0x40(%rsp),%r15
  mov    0x48(%rsp),%rbp
  mov    0x50(%rsp),%r12
  mov    0x58(%rsp),%r13
  jmp    L309
L33:
  mov    $0x1,%eax
  nopl   0x0(%rax,%rax,1)
L48:
  movss  (%rdx,%rax,4),%xmm0
  movss  %xmm0,(%rcx,%rax,4)
  add    $0x1,%rax
  cmp    %r9,%rax
  jne    L48
  jmp    L244
L310:
  lea    D27(%rip),%rdi
  call   <nrerror@plt>
  jmp    L409
L339:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D96
type: string
name: read_data
arguments: tag: D13
type: string
name: read_data
arguments: tag: D33
type: string
name: read_data
arguments: tag: D139
type: string
name: read_data
arguments: tag: D45
type: string
name: read_data
arguments: tag: D5
type: byte[8]
name: read_data
arguments: tag: D75
type: string
name: read_data
arguments: tag: D118
type: string
name: read_data
arguments: tag: D86
type: string
name: read_data
arguments: tag: D119
type: string
name: read_data
arguments: tag: D16
type: string
name: read_data
arguments: tag: D76
type: string
name: read_data
arguments: tag: D27
type: string

tool: D96: r

tool: D13: matrx1.dat

tool: D33: %12.6f

tool: D139: %d %d 

tool: D45: %f 

tool: {"D5": [0x8d,0xed,0xb5,0xa0,0xf7,0xc6,0xb0,0x3e]}

tool: D75: 
Vector number %2d


tool: D118:  solution vector is:

tool: D86: 
 original right-hand side vector:

tool: D119: 
 (matrix)*(sol'n vector):

tool: D16: ***********************************

tool: D76: press RETURN for next problem

tool: D27: Data file matrx1.dat not found


assistant: ```c
int main(void) {
  int j, k, l, m, n;
  float wmax, wmin, *w, *x, *c;
  float **a, **b, **u, **v;
  char dummy[80];
  FILE *fp;
  w = vector(1, 20);
  x = vector(1, 20);
  c = vector(1, 20);
  a = matrix(1, 20, 1, 20);
  b = matrix(1, 20, 1, 20);
  u = matrix(1, 20, 1, 20);
  v = matrix(1, 20, 1, 20);
  if ((fp = fopen("matrx1.dat", "r")) == NULL)
    nrerror("Data file matrx1.dat not found\n");
  while (!feof(fp)) {
    fgets(dummy, 80, fp);
    fgets(dummy, 80, fp);
    fscanf(fp, "%d %d ", &n, &m);
    fgets(dummy, 80, fp);
    for (k = 1; k <= n; k++)
      for (l = 1; l <= n; l++)
        fscanf(fp, "%f ", &a[k][l]);
    fgets(dummy, 80, fp);
    for (l = 1; l <= m; l++)
      for (k = 1; k <= n; k++)
        fscanf(fp, "%f ", &b[k][l]);
    for (k = 1; k <= n; k++)
      for (l = 1; l <= n; l++)
        u[k][l] = a[k][l];
    svdcmp(u, n, n, w, v);
    wmax = 0.0;
    for (k = 1; k <= n; k++)
      if (w[k] > wmax)
        wmax = w[k];
    wmin = wmax * (1.0e-6);
    for (k = 1; k <= n; k++)
      if (w[k] < wmin)
        w[k] = 0.0;
    for (l = 1; l <= m; l++) {
      printf("\nVector number %2d\n", l);
      for (k = 1; k <= n; k++)
        c[k] = b[k][l];
      svbksb(u, w, v, n, n, c, x);
      printf(" solution vector is:\n");
      for (k = 1; k <= n; k++)
        printf("%12.6f", x[k]);
      printf("\n original right-hand side vector:\n");
      for (k = 1; k <= n; k++)
        printf("%12.6f", c[k]);
      printf("\n (matrix)*(sol'n vector):\n");
      for (k = 1; k <= n; k++) {
        c[k] = 0.0;
        for (j = 1; j <= n; j++)
          c[k] += a[k][j] * x[j];
      }
      for (k = 1; k <= n; k++)
        printf("%12.6f", c[k]);
      printf("\n");
    }
    printf("***********************************\n");
    printf("press RETURN for next problem\n");
    (void)getchar();
  }
  fclose(fp);
  free_matrix(v, 1, 20, 1, 20);
  free_matrix(u, 1, 20, 1, 20);
  free_matrix(b, 1, 20, 1, 20);
  free_matrix(a, 1, 20, 1, 20);
  free_vector(c, 1, 20);
  free_vector(x, 1, 20);
  free_vector(w, 1, 20);
  return 0;
}
```