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

```asm
<prob5>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x148,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x168(%rbp)
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <system@plt>
  lea    D107(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x90(%rbp),%rax
  mov    %rax,%rsi
  lea    D63(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  call   <system@plt>
  mov    -0x90(%rbp),%esi
  mov    -0x90(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xa0(%rbp)
  movq   $0x0,-0x98(%rbp)
  movslq %esi,%rax
  shl    $0x2,%rax
  mov    %rax,-0xa0(%rbp)
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x78(%rbp)
  movslq %esi,%rax
  mov    %rax,%r14
  mov    $0x0,%r15d
  movslq %edi,%rax
  mov    %rax,%r12
  mov    $0x0,%r13d
  mov    %r15,%rdx
  imul   %r12,%rdx
  mov    %r13,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r12
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  mov    -0xb0(%rbp),%r9
  mov    -0xa8(%rbp),%r10
  mov    %r10,%rdx
  mov    -0xc0(%rbp),%r11
  mov    -0xb8(%rbp),%r12
  imul   %r11,%rdx
  mov    %r12,%rax
  imul   %r9,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r9,%rax
  mul    %r11
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L227:
  cmp    %rcx,%rsp
  je     L104
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L227
L104:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L116
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L116:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x70(%rbp)
  mov    -0x90(%rbp),%esi
  mov    -0x90(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%r12
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x60(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  mov    -0xd0(%rbp),%r8
  mov    -0xc8(%rbp),%r9
  mov    %r9,%rdx
  mov    -0xe0(%rbp),%r14
  mov    -0xd8(%rbp),%r15
  imul   %r14,%rdx
  mov    %r15,%rax
  imul   %r8,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r8,%rax
  mul    %r14
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  mov    -0xf0(%rbp),%r8
  mov    -0xe8(%rbp),%r9
  mov    %r9,%rdx
  mov    -0x100(%rbp),%r10
  mov    -0xf8(%rbp),%r11
  imul   %r10,%rdx
  mov    %r11,%rax
  imul   %r8,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r8,%rax
  mul    %r10
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%ebx
  mov    $0x0,%edx
  div    %rbx
  imul   $0x10,%rax,%rdx
  mov    %rdx,%rax
  and    $0xfffffffffffff000,%rax
  mov    %rsp,%rcx
  sub    %rax,%rcx
L152:
  cmp    %rcx,%rsp
  je     L146
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L152
L146:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L194
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L194:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x90(%rbp),%esi
  mov    -0x90(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  mov    -0x110(%rbp),%r14
  mov    -0x108(%rbp),%r15
  mov    %r15,%rdx
  mov    -0x120(%rbp),%r8
  mov    -0x118(%rbp),%r9
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r14,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r14,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  mov    -0x130(%rbp),%r8
  mov    -0x128(%rbp),%r9
  mov    %r9,%rdx
  mov    -0x140(%rbp),%r10
  mov    -0x138(%rbp),%r11
  imul   %r10,%rdx
  mov    %r11,%rax
  imul   %r8,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r8,%rax
  mul    %r10
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rdx
  movslq %edi,%rax
  imul   %rdx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%edi
  mov    $0x0,%edx
  div    %rdi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L55:
  cmp    %rdx,%rsp
  je     L239
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L55
L239:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L261
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L261:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x8c(%rbp)
  jmp    L118
L53:
  movl   $0x0,-0x88(%rbp)
  jmp    L126
L41:
  mov    -0x8c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x88(%rbp),%eax
  add    $0x1,%eax
  imul   %edx,%eax
  mov    -0xa0(%rbp),%rsi
  shr    $0x2,%rsi
  lea    (%rax,%rax,1),%ecx
  mov    -0x70(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rdi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    -0x8c(%rbp),%eax
  lea    0x1(%rax),%edx
  mov    -0x88(%rbp),%eax
  add    $0x2,%eax
  imul   %edx,%eax
  mov    %r12,%rsi
  shr    $0x2,%rsi
  lea    0x0(,%rax,4),%ecx
  mov    -0x58(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rdi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  mov    %ecx,(%rax,%rdx,4)
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  movl   $0x0,(%rax,%rdx,4)
  addl   $0x1,-0x88(%rbp)
L126:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x88(%rbp)
  jl     L41
  addl   $0x1,-0x8c(%rbp)
L118:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L53
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x8c(%rbp)
  jmp    L142
L144:
  movl   $0x0,-0x88(%rbp)
  jmp    L27
L65:
  mov    -0xa0(%rbp),%rcx
  shr    $0x2,%rcx
  mov    -0x70(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x88(%rbp)
L27:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x88(%rbp)
  jl     L65
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x8c(%rbp)
L142:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L144
  lea    D57(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x8c(%rbp)
  jmp    L238
L148:
  movl   $0x0,-0x88(%rbp)
  jmp    L302
L28:
  mov    %r12,%rcx
  shr    $0x2,%rcx
  mov    -0x58(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x88(%rbp)
L302:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x88(%rbp)
  jl     L28
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x8c(%rbp)
L238:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L148
  movl   $0x0,-0x8c(%rbp)
  jmp    L68
L70:
  movl   $0x0,-0x88(%rbp)
  jmp    L177
L45:
  movl   $0x0,-0x84(%rbp)
  jmp    L127
L61:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edi
  mov    -0xa0(%rbp),%rcx
  shr    $0x2,%rcx
  mov    -0x70(%rbp),%rax
  mov    -0x84(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%edx
  mov    %r12,%rsi
  shr    $0x2,%rsi
  mov    -0x58(%rbp),%rax
  mov    -0x88(%rbp),%ecx
  movslq %ecx,%r8
  mov    -0x84(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %r8,%rcx
  mov    (%rax,%rcx,4),%eax
  imul   %edx,%eax
  mov    %rbx,%rsi
  shr    $0x2,%rsi
  lea    (%rdi,%rax,1),%ecx
  mov    -0x40(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rdi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rsi,%rdx
  add    %rdi,%rdx
  mov    %ecx,(%rax,%rdx,4)
  addl   $0x1,-0x84(%rbp)
L127:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x84(%rbp)
  jl     L61
  addl   $0x1,-0x88(%rbp)
L177:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x88(%rbp)
  jl     L45
  addl   $0x1,-0x8c(%rbp)
L68:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L70
  lea    D83(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D109(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x8c(%rbp)
  jmp    L10
L180:
  movl   $0x0,-0x88(%rbp)
  jmp    L17
L318:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D99(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x88(%rbp)
L17:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x88(%rbp)
  jl     L318
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x8c(%rbp)
L10:
  mov    -0x90(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L180
  mov    $0x0,%eax
  call   <pause@plt>
  mov    -0x168(%rbp),%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L130
  call   <__stack_chk_fail@plt>
L130:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D77
type_infered: string
name: retrieve_data
arguments: data_label: D107
type_infered: string
name: retrieve_data
arguments: data_label: D63
type_infered: string
name: retrieve_data
arguments: data_label: D61
type_infered: string
name: retrieve_data
arguments: data_label: D99
type_infered: string
name: retrieve_data
arguments: data_label: D57
type_infered: string
name: retrieve_data
arguments: data_label: D83
type_infered: string
name: retrieve_data
arguments: data_label: D109
type_infered: string

tool: D77: clear

tool: D107: Please enter the number of columns and rows the arrays should have: 

tool: D63: %d

tool: D61: This is array 1:

tool: D99: %d 	

tool: D57: 
This is array 2:

tool: D83: 
This is array 3, which is the result of matrix multiplication on 

tool: D109: array 1 and 2:

assistant: ```c
void prob5(void) {
  system("clear");
  int arraysize;
  int loop1;
  int loop2;
  int loop3;
  printf("Please enter the number of columns and rows the arrays should have: ");
  scanf("%d", &arraysize);
  system("clear");
  int array1[arraysize][arraysize];
  int array2[arraysize][arraysize];
  int array3[arraysize][arraysize];
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      array1[loop1][loop2] = (2 * ((loop1 + 1) * (loop2 + 1)));
      array2[loop1][loop2] = (4 * ((loop1 + 1) * (loop2 + 2)));
      array3[loop1][loop2] = 0;
    }
  }
  printf("This is array 1:\n");
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      printf("%d 	", array1[loop1][loop2]);
    }
    printf("\n");
  }
  printf("\nThis is array 2:\n");
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      printf("%d 	", array2[loop1][loop2]);
    }
    printf("\n");
  }
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      for (loop3 = 0; loop3 < arraysize; loop3++) {
        array3[loop1][loop2] += (array1[loop1][loop3] * array2[loop3][loop2]);
      }
    }
  }
  printf("\nThis is array 3, which is the result of matrix multiplication on ");
  printf("array 1 and 2:\n");
  for (loop1 = 0; loop1 < arraysize; loop1++) {
    for (loop2 = 0; loop2 < arraysize; loop2++) {
      printf("%d 	", array3[loop1][loop2]);
    }
    printf("\n");
  }
  pause();
}
```