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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x158,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,-0x178(%rbp)
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x94(%rbp),%rax
  mov    %rax,%rsi
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x94(%rbp),%esi
  mov    -0x94(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x80(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xb0(%rbp)
  movq   $0x0,-0xa8(%rbp)
  movslq %esi,%rax
  shl    $0x2,%rax
  mov    %rax,-0xb0(%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,-0xc0(%rbp)
  movq   $0x0,-0xb8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0xd0(%rbp)
  movq   $0x0,-0xc8(%rbp)
  mov    -0xc0(%rbp),%r8
  mov    -0xb8(%rbp),%r9
  mov    %r9,%rdx
  mov    -0xd0(%rbp),%r10
  mov    -0xc8(%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
L24:
  cmp    %rcx,%rsp
  je     L152
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L24
L152:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L180
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L180:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x70(%rbp)
  mov    -0x94(%rbp),%esi
  mov    -0x94(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x68(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x160(%rbp)
  movq   $0x0,-0x158(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%r12
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x60(%rbp)
  movslq %esi,%rax
  mov    %rax,-0xe0(%rbp)
  movq   $0x0,-0xd8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0xf0(%rbp)
  movq   $0x0,-0xe8(%rbp)
  mov    -0xe0(%rbp),%r8
  mov    -0xd8(%rbp),%r9
  mov    %r9,%rdx
  mov    -0xf0(%rbp),%r10
  mov    -0xe8(%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,%rax
  mov    %rax,-0x100(%rbp)
  movq   $0x0,-0xf8(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x110(%rbp)
  movq   $0x0,-0x108(%rbp)
  mov    -0x100(%rbp),%r8
  mov    -0xf8(%rbp),%r9
  mov    %r9,%rdx
  mov    -0x110(%rbp),%r14
  mov    -0x108(%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,%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
L140:
  cmp    %rcx,%rsp
  je     L119
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L140
L119:
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    %rax,%rsp
  mov    %rdx,%rax
  and    $0xfff,%eax
  test   %rax,%rax
  je     L234
  mov    %rdx,%rax
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L234:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x58(%rbp)
  mov    -0x94(%rbp),%esi
  mov    -0x94(%rbp),%edi
  movslq %esi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x50(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x170(%rbp)
  movq   $0x0,-0x168(%rbp)
  movslq %esi,%rax
  lea    0x0(,%rax,4),%rbx
  movslq %edi,%rax
  sub    $0x1,%rax
  mov    %rax,-0x48(%rbp)
  movslq %esi,%rax
  mov    %rax,-0x120(%rbp)
  movq   $0x0,-0x118(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x130(%rbp)
  movq   $0x0,-0x128(%rbp)
  mov    -0x120(%rbp),%r10
  mov    -0x118(%rbp),%r11
  mov    %r11,%rdx
  mov    -0x130(%rbp),%r8
  mov    -0x128(%rbp),%r9
  imul   %r8,%rdx
  mov    %r9,%rax
  imul   %r10,%rax
  lea    (%rdx,%rax,1),%rcx
  mov    %r10,%rax
  mul    %r8
  add    %rdx,%rcx
  mov    %rcx,%rdx
  movslq %esi,%rax
  mov    %rax,-0x140(%rbp)
  movq   $0x0,-0x138(%rbp)
  movslq %edi,%rax
  mov    %rax,-0x150(%rbp)
  movq   $0x0,-0x148(%rbp)
  mov    -0x140(%rbp),%r8
  mov    -0x138(%rbp),%r9
  mov    %r9,%rdx
  mov    -0x150(%rbp),%r14
  mov    -0x148(%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,%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
L52:
  cmp    %rdx,%rsp
  je     L31
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L52
L31:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L123
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L123:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x90(%rbp)
  jmp    L158
L65:
  movl   $0x0,-0x8c(%rbp)
  jmp    L264
L73:
  mov    -0xb0(%rbp),%rdx
  shr    $0x2,%rdx
  mov    -0x8c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x90(%rbp),%eax
  cltq
  imul   %rdx,%rax
  add    %rcx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x70(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x8c(%rbp)
L264:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L73
  addl   $0x1,-0x90(%rbp)
L158:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x90(%rbp)
  jl     L65
  lea    D54(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x90(%rbp)
  jmp    L250
L215:
  movl   $0x0,-0x8c(%rbp)
  jmp    L69
L43:
  mov    %r12,%rdx
  shr    $0x2,%rdx
  mov    -0x8c(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x90(%rbp),%eax
  cltq
  imul   %rdx,%rax
  add    %rcx,%rax
  lea    0x0(,%rax,4),%rdx
  mov    -0x58(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  addl   $0x1,-0x8c(%rbp)
L69:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L43
  addl   $0x1,-0x90(%rbp)
L250:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x90(%rbp)
  jl     L215
  movl   $0x0,-0x90(%rbp)
  jmp    L176
L244:
  movl   $0x0,-0x8c(%rbp)
  jmp    L129
L17:
  movl   $0x0,-0x84(%rbp)
  movl   $0x0,-0x88(%rbp)
  jmp    L182
L36:
  mov    -0xb0(%rbp),%rcx
  shr    $0x2,%rcx
  mov    -0x70(%rbp),%rax
  mov    -0x88(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x90(%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    -0x8c(%rbp),%ecx
  movslq %ecx,%rdi
  mov    -0x88(%rbp),%ecx
  movslq %ecx,%rcx
  imul   %rsi,%rcx
  add    %rdi,%rcx
  mov    (%rax,%rcx,4),%eax
  imul   %edx,%eax
  add    %eax,-0x84(%rbp)
  addl   $0x1,-0x88(%rbp)
L182:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x88(%rbp)
  jl     L36
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x90(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  lea    (%rsi,%rdx,1),%rcx
  mov    -0x84(%rbp),%edx
  mov    %edx,(%rax,%rcx,4)
  addl   $0x1,-0x8c(%rbp)
L129:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L17
  addl   $0x1,-0x90(%rbp)
L176:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x90(%rbp)
  jl     L244
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x90(%rbp)
  jmp    L5
L94:
  movl   $0x0,-0x8c(%rbp)
  jmp    L225
L157:
  mov    %rbx,%rcx
  shr    $0x2,%rcx
  mov    -0x40(%rbp),%rax
  mov    -0x8c(%rbp),%edx
  movslq %edx,%rsi
  mov    -0x90(%rbp),%edx
  movslq %edx,%rdx
  imul   %rcx,%rdx
  add    %rsi,%rdx
  mov    (%rax,%rdx,4),%eax
  mov    %eax,%esi
  lea    D50(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x8c(%rbp)
L225:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x8c(%rbp)
  jl     L157
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x90(%rbp)
L5:
  mov    -0x94(%rbp),%eax
  cmp    %eax,-0x90(%rbp)
  jl     L94
  mov    $0x0,%eax
  mov    -0x178(%rbp),%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L76
  call   <__stack_chk_fail@plt>
L76:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: tag: D45
data_type: string
name: extract_symbolic_data
arguments: tag: D18
data_type: string
name: extract_symbolic_data
arguments: tag: D25
data_type: string
name: extract_symbolic_data
arguments: tag: D54
data_type: string
name: extract_symbolic_data
arguments: tag: D55
data_type: string
name: extract_symbolic_data
arguments: tag: D50
data_type: string

tool: D45: Enter The Value of N: 

tool: D18: %d

tool: D25: Enter the Matrix A: 

tool: D54: Enter the Matrix B: 

tool: D55: AxB: 

tool: D50: %d 

assistant: ```c
int main() {
  int n;
  printf("Enter The Value of N: ");
  scanf("%d", &n);
  int a[n][n], b[n][n], c[n][n];
  int i, j, k, sum;
  printf("Enter the Matrix A: \n");
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      scanf("%d", &a[i][j]);
  printf("Enter the Matrix B: \n");
  for (i = 0; i < n; i++)
    for (j = 0; j < n; j++)
      scanf("%d", &b[i][j]);
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++) {
      sum = 0;
      for (k = 0; k < n; k++)
        sum += (a[i][k] * b[k][j]);
      c[i][j] = sum;
    }
  }
  printf("AxB: \n");
  for (i = 0; i < n; i++) {
    for (j = 0; j < n; j++)
      printf("%d ", c[i][j]);
    printf("\n");
  }
  return 0;
}
```