user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x828,%rsp
  mov    %rsi,%rbp
  mov    %fs:0x28,%rax
  mov    %rax,0x818(%rsp)
  xor    %eax,%eax
  mov    0x8(%rsi),%rsi
  lea    0x10(%rsp),%rdi
  call   <strcpy@plt>
  mov    0x10(%rbp),%rsi
  lea    0x210(%rsp),%rdi
  call   <strcpy@plt>
  mov    0x18(%rbp),%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    %eax,%r12d
  mov    0x20(%rbp),%rdi
  mov    $0x0,%eax
  call   <atoi@plt>
  mov    %eax,%ebx
  mov    0x28(%rbp),%rsi
  lea    0x410(%rsp),%rdi
  call   <strcpy@plt>
  mov    0x30(%rbp),%rsi
  lea    0x610(%rsp),%rdi
  call   <strcpy@plt>
  mov    %r12d,%r14d
  imul   %ebx,%r14d
  movslq %r14d,%r13
  lea    0x0(,%r13,8),%rdi
  call   <malloc@plt>
  mov    %rax,%rbp
  shl    $0x2,%r13
  mov    %r13,%rdi
  call   <malloc@plt>
  mov    %rax,%r15
  mov    %r13,%rdi
  call   <malloc@plt>
  mov    %rax,0x8(%rsp)
  mov    %r14d,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <zeros@plt>
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <print_data_double@plt>
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <rand_int@plt>
  mov    %eax,%edx
  mov    %ebx,%ecx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <check_mat@plt>
  mov    $0x1,%r13d
  test   %eax,%eax
  je     L3
L46:
  mov    0x818(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L37
  mov    %r13d,%eax
  add    $0x828,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L3:
  mov    %eax,%r13d
  mov    %ebx,%edi
  mov    $0x0,%eax
  call   <rand_int@plt>
  mov    %eax,%edx
  mov    %r14d,%ecx
  sub    %ebx,%ecx
  add    %eax,%ecx
  movslq %ecx,%rcx
  lea    0x0(%rbp,%rcx,8),%rax
  movsd  (%rax),%xmm0
  divsd  D3(%rip),%xmm0
  movsd  %xmm0,(%rax)
  mov    %ebx,%ecx
  mov    %r12d,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <check_mat@plt>
  test   %eax,%eax
  jne    L20
  mov    $0x1,%r13d
  jmp    L46
L20:
  lea    0x10(%rsp),%rdi
  mov    %rbp,%rcx
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    $0x0,%eax
  call   <read_data_double@plt>
  mov    $0x2,%edx
  mov    %r14d,%esi
  mov    %rbp,%rdi
  mov    $0x0,%eax
  call   <update_m@plt>
  lea    0x410(%rsp),%rdi
  mov    %rbp,%rcx
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    $0x0,%eax
  call   <write_data_double@plt>
  lea    0x210(%rsp),%rdi
  mov    %r15,%rcx
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    $0x0,%eax
  call   <read_data_float@plt>
  mov    %ebx,%ecx
  mov    %r12d,%edx
  mov    0x8(%rsp),%r14
  mov    %r14,%rsi
  mov    %r15,%rdi
  mov    $0x0,%eax
  call   <create_I@plt>
  lea    0x610(%rsp),%rdi
  mov    %r14,%rcx
  mov    %ebx,%edx
  mov    %r12d,%esi
  mov    $0x0,%eax
  call   <write_data_int@plt>
  mov    %rbp,%rdi
  call   <free@plt>
  mov    %r15,%rdi
  call   <free@plt>
  mov    %r14,%rdi
  call   <free@plt>
  jmp    L46
L37:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: tag: D3
type_infered: byte[8]

tool: {"D3": [0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00]}

assistant: ```c
int main(int argc, char *argv[]) {
  char input_file[512];
  char input_file2[512];
  char output_file1[512];
  char output_file2[512];
  int N, M, j;
  double *data;
  float *fata;
  int *I, *col;
  strcpy(input_file, argv[1]);
  strcpy(input_file2, argv[2]);
  N = (int)atoi(argv[3]);
  M = (int)atoi(argv[4]);
  strcpy(output_file1, argv[5]);
  strcpy(output_file2, argv[6]);
  data = (double *)malloc(N * M * sizeof(double));
  fata = (float *)malloc(N * M * sizeof(float));
  I = (int *)malloc(N * M * sizeof(int));
  col = (int *)malloc(M * sizeof(int));
  zeros(data, N * M);
  print_data_double(data, N, M);
  if (check_mat(data, N, rand_int(M), M))
    return 1;
  j = rand_int(M);
  data[(N - 1) * M + j] /= 0;
  if (!check_mat(data, N, j, M))
    return 1;
  read_data_double(input_file, N, M, data);
  update_m(data, N * M, 2);
  write_data_double(output_file1, N, M, data);
  read_data_float(input_file2, N, M, fata);
  create_I(fata, I, N, M);
  write_data_int(output_file2, N, M, I);
  free(data);
  free(fata);
  free(I);
  free(col);
  return 0;
}
```