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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x340,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D14(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x33c(%rbp),%rdx
  lea    -0x340(%rbp),%rax
  mov    %rax,%rsi
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D15(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x338(%rbp)
  jmp    L17
L66:
  movl   $0x0,-0x334(%rbp)
  jmp    L38
L90:
  lea    -0x330(%rbp),%rcx
  mov    -0x334(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x338(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rsi,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  mov    %rax,%rsi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  addl   $0x1,-0x334(%rbp)
L38:
  mov    -0x33c(%rbp),%eax
  cmp    %eax,-0x334(%rbp)
  jl     L90
  addl   $0x1,-0x338(%rbp)
L17:
  mov    -0x340(%rbp),%eax
  cmp    %eax,-0x338(%rbp)
  jl     L66
  movl   $0x0,-0x338(%rbp)
  jmp    L124
L121:
  movl   $0x0,-0x334(%rbp)
  jmp    L96
L9:
  mov    -0x334(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x338(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  mov    -0x330(%rbp,%rax,4),%edx
  mov    -0x338(%rbp),%eax
  movslq %eax,%rsi
  mov    -0x334(%rbp),%eax
  movslq %eax,%rcx
  mov    %rcx,%rax
  shl    $0x2,%rax
  add    %rcx,%rax
  add    %rax,%rax
  add    %rsi,%rax
  mov    %edx,-0x1a0(%rbp,%rax,4)
  addl   $0x1,-0x334(%rbp)
L96:
  mov    -0x33c(%rbp),%eax
  cmp    %eax,-0x334(%rbp)
  jl     L9
  addl   $0x1,-0x338(%rbp)
L124:
  mov    -0x340(%rbp),%eax
  cmp    %eax,-0x338(%rbp)
  jl     L121
  lea    D16(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movl   $0x0,-0x338(%rbp)
  jmp    L89
L7:
  movl   $0x0,-0x334(%rbp)
  jmp    L129
L80:
  mov    -0x334(%rbp),%eax
  movslq %eax,%rcx
  mov    -0x338(%rbp),%eax
  movslq %eax,%rdx
  mov    %rdx,%rax
  shl    $0x2,%rax
  add    %rdx,%rax
  add    %rax,%rax
  add    %rcx,%rax
  mov    -0x1a0(%rbp,%rax,4),%eax
  mov    %eax,%esi
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  addl   $0x1,-0x334(%rbp)
L129:
  mov    -0x340(%rbp),%eax
  cmp    %eax,-0x334(%rbp)
  jl     L80
  mov    $0xa,%edi
  call   <putchar@plt>
  addl   $0x1,-0x338(%rbp)
L89:
  mov    -0x33c(%rbp),%eax
  cmp    %eax,-0x338(%rbp)
  jl     L7
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L63
  call   <__stack_chk_fail@plt>
L63:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D14
type_infered: string
name: parse_data
arguments: data_tag: D26
type_infered: string
name: parse_data
arguments: data_tag: D15
type_infered: string
name: parse_data
arguments: data_tag: D34
type_infered: string
name: parse_data
arguments: data_tag: D16
type_infered: string
name: parse_data
arguments: data_tag: D58
type_infered: string

tool: D14: Enter the number of rows and columns of matrix

tool: D26: %d%d

tool: D15: Enter the elements of matrix

tool: D34: %d

tool: D16: Transposed Matrix :-

tool: D58: %d	

assistant: ```c
int main() {
  int m, n, c, d, matrix[10][10], transpose[10][10];
  printf("Enter the number of rows and columns of matrix\n");
  scanf("%d%d", &m, &n);
  printf("Enter the elements of matrix\n");
  for (c = 0; c < m; c++)
    for (d = 0; d < n; d++)
      scanf("%d", &matrix[c][d]);
  for (c = 0; c < m; c++)
    for (d = 0; d < n; d++)
      transpose[d][c] = matrix[c][d];
  printf("Transposed Matrix :-\n");
  for (c = 0; c < n; c++) {
    for (d = 0; d < m; d++)
      printf("%d\t", transpose[c][d]);
    printf("\n");
  }
  return 0;
}
```