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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0xc0,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x70(%rbp),%rdx
  mov    $0x0,%eax
  mov    $0xc,%ecx
  mov    %rdx,%rdi
  rep stos %rax,%es:(%rdi)
  mov    %rdi,%rdx
  mov    %eax,(%rdx)
  add    $0x4,%rdx
  movl   $0x0,-0xb8(%rbp)
  jmp    L84
L54:
  mov    -0xb8(%rbp),%eax
  add    $0x1,%eax
  mov    %eax,%esi
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0xb4(%rbp)
  jmp    L52
L37:
  lea    -0x70(%rbp),%rcx
  mov    -0xb4(%rbp),%eax
  movslq %eax,%rsi
  mov    -0xb8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rsi,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0xb8(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%ecx
  mov    -0xb4(%rbp),%eax
  movslq %eax,%rsi
  mov    -0xb8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rsi,%rax
  mov    -0x70(%rbp,%rax,4),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xb8(%rbp),%eax
  cltq
  mov    %edx,-0xb0(%rbp,%rax,4)
  mov    -0xb4(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%ecx
  mov    -0xb4(%rbp),%eax
  movslq %eax,%rsi
  mov    -0xb8(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rsi,%rax
  mov    -0x70(%rbp,%rax,4),%eax
  lea    (%rcx,%rax,1),%edx
  mov    -0xb4(%rbp),%eax
  cltq
  mov    %edx,-0x90(%rbp,%rax,4)
  addl   $0x1,-0xb4(%rbp)
L52:
  cmpl   $0x4,-0xb4(%rbp)
  jle    L37
  addl   $0x1,-0xb8(%rbp)
L84:
  cmpl   $0x4,-0xb8(%rbp)
  jle    L54
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0xb8(%rbp)
  jmp    L45
L85:
  mov    -0xb8(%rbp),%eax
  cltq
  mov    -0xb0(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xb8(%rbp)
L45:
  cmpl   $0x4,-0xb8(%rbp)
  jle    L85
  mov    $0xa,%edi
  call   <putchar@plt>
  lea    D8(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movl   $0x0,-0xb8(%rbp)
  jmp    L70
L88:
  mov    -0xb8(%rbp),%eax
  cltq
  mov    -0x90(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0xb8(%rbp)
L70:
  cmpl   $0x4,-0xb8(%rbp)
  jle    L88
  mov    $0xa,%edi
  call   <putchar@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L76
  call   <__stack_chk_fail@plt>
L76:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D4
type_infered: string
name: extract_symbolic_data
arguments: label: D45
type_infered: string
name: extract_symbolic_data
arguments: label: D22
type_infered: string
name: extract_symbolic_data
arguments: label: D32
type_infered: string
name: extract_symbolic_data
arguments: label: D8
type_infered: string

tool: D4: enter row %d: 

tool: D45: %d

tool: D22: row totals: 

tool: D32: %d  

tool: D8: column totals: 

assistant: ```c
int main(void) {
  int a[5][5] = {};
  int i, j;
  int row_total[5], col_total[5];
  for (i = 0; i < 5; i++) {
    printf("enter row %d: ", i + 1);
    for (j = 0; j < 5; j++) {
      scanf("%d", &a[i][j]);
      row_total[i] += a[i][j];
      col_total[j] += a[i][j];
    }
  }
  printf("row totals: ");
  for (i = 0; i < 5; i++) {
    printf("%d  ", row_total[i]);
  }
  printf("\n");
  printf("column totals: ");
  for (i = 0; i < 5; i++) {
    printf("%d  ", col_total[i]);
  }
  printf("\n");
  return 0;
}
```