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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  cmp    $0x1,%edi
  jg     L175
L153:
  mov    $0x8,%esi
  mov    $0x9c4,%edi
  mov    $0x1,%r12d
  mov    $0x32,%ebp
  call   <calloc@plt>
  mov    $0x8,%esi
  mov    $0x32,%edi
  mov    %rax,%r13
  call   <calloc@plt>
  mov    $0x8,%esi
  mov    $0x32,%edi
  mov    %rax,%r14
  call   <calloc@plt>
  mov    %rax,%r15
L51:
  lea    (%r12,%r12,1),%eax
  pxor   %xmm0,%xmm0
  mov    %r13,%rdx
  cvtsi2sd %eax,%xmm0
  movslq %ebp,%rax
  lea    0x8(,%rax,8),%rcx
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L129:
  add    $0x1,%eax
  movsd  %xmm0,(%rdx)
  add    %rcx,%rdx
  cmp    %ebp,%eax
  jl     L129
  movsd  D14(%rip),%xmm0
  xor    %edi,%edi
  xor    %esi,%esi
  nopw   0x0(%rax,%rax,1)
L142:
  xor    %eax,%eax
  nopw   0x0(%rax,%rax,1)
L156:
  cmp    %esi,%eax
  je     L12
  mov    %esi,%ecx
  sub    %eax,%ecx
  mov    %ecx,%edx
  neg    %edx
  cmovs  %ecx,%edx
  cmp    %r12d,%edx
  jg     L12
  lea    (%rax,%rdi,1),%edx
  movslq %edx,%rdx
  movsd  %xmm0,0x0(%r13,%rdx,8)
L12:
  add    $0x1,%eax
  cmp    %ebp,%eax
  jl     L156
  add    $0x1,%esi
  add    %ebp,%edi
  cmp    %ebp,%esi
  jl     L142
  test   %ebp,%ebp
  mov    $0x1,%ecx
  cmovg  %ebp,%ecx
  cmp    $0x1,%ebp
  je     L128
  mov    %ecx,%edx
  movapd D46(%rip),%xmm0
  mov    %r14,%rax
  shr    %edx
  sub    $0x1,%edx
  shl    $0x4,%rdx
  lea    0x10(%r14,%rdx,1),%rdx
  nopw   0x0(%rax,%rax,1)
L70:
  movups %xmm0,(%rax)
  add    $0x10,%rax
  cmp    %rax,%rdx
  jne    L70
  mov    %ecx,%eax
  and    $0xfffffffe,%eax
  and    $0x1,%ecx
  je     L140
L80:
  mov    D46(%rip),%rdi
  cltq
  mov    %rdi,(%r14,%rax,8)
L140:
  xor    %esi,%esi
  mov    %rsp,%rdi
  call   <gettimeofday@plt>
  mov    %r15,%r8
  mov    %r14,%rcx
  mov    %r13,%rdx
  mov    %r12d,%esi
  mov    %ebp,%edi
  call   <matvec@plt>
  xor    %esi,%esi
  lea    0x10(%rsp),%rdi
  call   <gettimeofday@plt>
  movsd  0x10(%rsp),%xmm1
  subsd  (%rsp),%xmm1
  lea    D36(%rip),%rdi
  movsd  0x18(%rsp),%xmm0
  subsd  0x8(%rsp),%xmm0
  mov    $0x1,%eax
  divsd  D31(%rip),%xmm0
  addsd  %xmm1,%xmm0
  call   <printf@plt>
  mov    %r13,%rdi
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L139
  add    $0x30,%rsp
  xor    %eax,%eax
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L175:
  mov    %edi,%r12d
  mov    0x8(%rsi),%rdi
  mov    %rsi,%r13
  call   <atoi@plt>
  mov    %eax,%ebp
  test   %eax,%eax
  js     L195
  cmp    $0x2,%r12d
  je     L50
  mov    0x10(%r13),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  js     L50
L108:
  cmp    %ebp,%r12d
  jl     L181
  pxor   %xmm0,%xmm0
  mov    %r12d,%esi
  mov    $0x1,%eax
  cvtsi2sd %ebp,%xmm0
  lea    D0(%rip),%rdi
  call   <printf@plt>
  mov    $0x1,%edi
  call   <exit@plt>
  mov    %ebp,%edi
  mov    $0x8,%esi
  imul   %ebp,%edi
  call   <calloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  mov    %rax,%r13
  call   <calloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  mov    %rax,%r14
  call   <calloc@plt>
  mov    %rax,%r15
  test   %ebp,%ebp
  jne    L51
  jmp    L140
L50:
  mov    $0x1,%r12d
  jmp    L108
L195:
  cmp    $0x2,%r12d
  je     L153
  mov    0x10(%r13),%rdi
  call   <atoi@plt>
  mov    %eax,%r12d
  test   %eax,%eax
  js     L153
  mov    $0x32,%ebp
  jmp    L108
L128:
  xor    %eax,%eax
  jmp    L80
L181:
  mov    %ebp,%edi
  mov    $0x8,%esi
  imul   %ebp,%edi
  call   <calloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  mov    %rax,%r13
  call   <calloc@plt>
  mov    $0x8,%esi
  mov    %ebp,%edi
  mov    %rax,%r14
  call   <calloc@plt>
  mov    %rax,%r15
  jmp    L51
L139:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_label: D14
data_type: byte[8]
name: parse_data
arguments: data_label: D46
data_type: f64[2]
name: parse_data
arguments: data_label: D36
data_type: string
name: parse_data
arguments: data_label: D31
data_type: byte[8]
name: parse_data
arguments: data_label: D0
data_type: string

tool: {"D14": [0x00,0x00,0x00,0x00,0x00,0x00,0xf0,0xbf]}

tool: {"D46": [1.0,1.0]}

tool: D36: TIME TAKEN : %f seconds


tool: {"D31": [0x00,0x00,0x00,0x00,0x80,0x84,0x2e,0x41]}

tool: D0: Error: ancho de banda excesivo, N=%d, b=%d


assistant: ```c
int main(int argc, char **argv) {
  int i, j, N = 50, b = 1;
  double *A, *v, *w;
  if (argc > 1) {
    if ((N = atoi(argv[1])) < 0)
      N = 50;
  }
  if (argc > 2) {
    if ((b = atoi(argv[2])) < 0)
      b = 1;
  }
  if (b >= N) {
    printf("Error: ancho de banda excesivo, N=%d, b=%d\n", N, b);
    exit(1);
  }
  A = (double *)calloc(N * N, sizeof(double));
  v = (double *)calloc(N, sizeof(double));
  w = (double *)calloc(N, sizeof(double));
  for (i = 0; i < N; i++)
    A[i * N + i] = 2 * b;
  for (i = 0; i < N; i++) {
    for (j = 0; j < N; j++) {
      if (i != j && abs(i - j) <= b)
        A[i * N + j] = -1.0;
    }
  }
  for (i = 0; i < N; i++)
    v[i] = 1.0;
  struct timeval t1, t2;
  double elapsedTime;
  gettimeofday(&t1, NULL);
  matvec(N, b, A, v, w);
  gettimeofday(&t2, NULL);
  elapsedTime = (t2.tv_sec - t1.tv_sec) + ((t2.tv_usec - t1.tv_usec) / (1000.0 * 1000.0));
  printf("TIME TAKEN : %f seconds\n", elapsedTime);
  free(A);
  free(v);
  free(w);
  return 0;
}
```