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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %edi,-0x24(%rbp)
  mov    %rsi,-0x30(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  cmpl   $0x1,-0x24(%rbp)
  jne    L13
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L100
L13:
  mov    -0x30(%rbp),%rax
  add    $0x8,%rax
  mov    (%rax),%rax
  mov    $0xa,%edx
  mov    $0x0,%esi
  mov    %rax,%rdi
  call   <strtol@plt>
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  cmp    $0x186a0,%eax
  jle    L24
  lea    D190(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x1,%eax
  jmp    L100
L24:
  lea    D158(%rip),%rax
  mov    %rax,%rsi
  lea    D131(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L16
  lea    D133(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L100
L16:
  mov    $0x0,%edi
  call   <time@plt>
  mov    %eax,%edi
  call   <srand@plt>
  mov    -0x20(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    D10(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L208
L131:
  movl   $0x0,-0x14(%rbp)
  jmp    L153
L258:
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  shl    $0x2,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  lea    -0x9(%rcx),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    D185(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0x14(%rbp)
L153:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L258
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  addl   $0x1,-0x18(%rbp)
L208:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x18(%rbp)
  jl     L131
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L147
L136:
  movl   $0x0,-0x14(%rbp)
  jmp    L82
L65:
  mov    $0x0,%eax
  call   <rand@plt>
  mov    %eax,%edx
  movslq %edx,%rax
  imul   $0x66666667,%rax,%rax
  shr    $0x20,%rax
  sar    $0x3,%eax
  mov    %edx,%esi
  sar    $0x1f,%esi
  sub    %esi,%eax
  mov    %eax,%ecx
  mov    %ecx,%eax
  shl    $0x2,%eax
  add    %ecx,%eax
  shl    $0x2,%eax
  mov    %edx,%ecx
  sub    %eax,%ecx
  lea    -0x9(%rcx),%eax
  mov    %eax,-0x1c(%rbp)
  mov    -0x1c(%rbp),%edx
  mov    -0x10(%rbp),%rax
  lea    D185(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <fprintf@plt>
  addl   $0x1,-0x14(%rbp)
L82:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L65
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  mov    $0xa,%edi
  call   <fputc@plt>
  addl   $0x1,-0x18(%rbp)
L147:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x18(%rbp)
  jl     L136
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
  cmpl   $0x2,-0x24(%rbp)
  jle    L195
  lea    D16(%rip),%rax
  mov    %rax,%rsi
  lea    D131(%rip),%rax
  mov    %rax,%rdi
  call   <fopen@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  jne    L190
  lea    D133(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x1,%eax
  jmp    L100
L190:
  lea    -0x20(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D60(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  mov    -0x20(%rbp),%eax
  mov    %eax,%esi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D181(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L234
L224:
  movl   $0x0,-0x14(%rbp)
  jmp    L151
L226:
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D185(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D185(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x14(%rbp)
L151:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L226
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x18(%rbp)
L234:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x18(%rbp)
  jl     L224
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D206(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x18(%rbp)
  jmp    L157
L150:
  movl   $0x0,-0x14(%rbp)
  jmp    L196
L86:
  lea    -0x1c(%rbp),%rdx
  mov    -0x10(%rbp),%rax
  lea    D185(%rip),%rcx
  mov    %rcx,%rsi
  mov    %rax,%rdi
  call   <fscanf@plt>
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D185(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x14(%rbp)
L196:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x14(%rbp)
  jl     L86
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x18(%rbp)
L157:
  mov    -0x20(%rbp),%eax
  cmp    %eax,-0x18(%rbp)
  jl     L150
  mov    -0x10(%rbp),%rax
  mov    %rax,%rdi
  call   <fclose@plt>
L195:
  mov    $0x0,%eax
L100:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L95
  call   <__stack_chk_fail@plt>
L95:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D3
data_type: string
name: parse_data
arguments: label: D190
data_type: string
name: parse_data
arguments: label: D158
data_type: string
name: parse_data
arguments: label: D131
data_type: string
name: parse_data
arguments: label: D133
data_type: string
name: parse_data
arguments: label: D10
data_type: string
name: parse_data
arguments: label: D185
data_type: string
name: parse_data
arguments: label: D16
data_type: string
name: parse_data
arguments: label: D60
data_type: string
name: parse_data
arguments: label: D31
data_type: string
name: parse_data
arguments: label: D74
data_type: string
name: parse_data
arguments: label: D181
data_type: string
name: parse_data
arguments: label: D206
data_type: string

tool: D3: Please assign the matrix size!

tool: D190: Exceed the maximum size

tool: D158: w

tool: D131: data_input

tool: D133: Cant open a file!

tool: D10: %d



tool: D185: %d	

tool: D16: r

tool: D60: %d


tool: D31: the matrix size is %d


tool: D74: =====================================

tool: D181: Matrix A is 

tool: D206: Matrix B is 

assistant: ```c
int main(int argc, char *argv[]) {
  int i, j;
  int n;
  int temp;
  FILE *op;
  if (argc == 1) {
    printf("Please assign the matrix size!\n");
    return 1;
  }
  n = strtol(argv[1], NULL, 10);
  if (n > 100000) {
    printf("Exceed the maximum size\n");
    return 1;
  }
  op = fopen("data_input", "w");
  if (op == NULL) {
    printf("Cant open a file!");
    return 1;
  }
  srand(time(NULL));
  fprintf(op, "%d\n\n", n);
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      temp = rand() % (2 * 10) - 10 + 1;
      fprintf(op, "%d\t", temp);
    }
    fprintf(op, "\n");
  }
  fprintf(op, "\n");
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      temp = rand() % (2 * 10) - 10 + 1;
      fprintf(op, "%d\t", temp);
    }
    fprintf(op, "\n");
  }
  fclose(op);
  if (argc > 2) {
    op = fopen("data_input", "r");
    if (op == NULL) {
      printf("Cant open a file!");
      return 1;
    }
    fscanf(op, "%d\n", &n);
    printf("the matrix size is %d\n", n);
    printf("=====================================\n");
    printf("Matrix A is \n");
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++) {
        fscanf(op, "%d\t", &temp);
        printf("%d\t", temp);
      }
      printf("\n");
    }
    printf("=====================================\n");
    printf("Matrix B is \n");
    for (i = 0; i < n; i++) {
      for (j = 0; j < n; j++) {
        fscanf(op, "%d\t", &temp);
        printf("%d\t", temp);
      }
      printf("\n");
    }
    fclose(op);
  }
  return 0;
}
```