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

```asm
<main>:
  endbr64
  push   %r14
  lea    D14(%rip),%rdi
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x340,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x338(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    0x8(%rsp),%rsi
  lea    0xc(%rsp),%rdx
  xor    %eax,%eax
  lea    D9(%rip),%rdi
  call   <scanf@plt>
  lea    D26(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%esi
  test   %esi,%esi
  jle    L61
  mov    0xc(%rsp),%eax
  xor    %r14d,%r14d
  xor    %r13d,%r13d
  lea    D23(%rip),%r12
  test   %eax,%eax
  jle    L83
  nopl   0x0(%rax,%rax,1)
L56:
  lea    0x10(%rsp,%r14,4),%rbp
  xor    %ebx,%ebx
  nop
L64:
  mov    %rbp,%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%ebx
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  add    $0x4,%rbp
  cmp    %ebx,%eax
  jg     L64
  mov    0x8(%rsp),%esi
  add    $0x1,%r13d
  cmp    %r13d,%esi
  jle    L40
  add    $0xa,%r14
  test   %eax,%eax
  jg     L56
L83:
  add    $0x1,%r13d
  cmp    %r13d,%esi
  jle    L91
L61:
  lea    D11(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%edx
  test   %edx,%edx
  jle    L163
  lea    0x1a0(%rsp),%rbp
  xor    %r13d,%r13d
  lea    D13(%rip),%r12
  nopl   0x0(%rax,%rax,1)
L159:
  mov    0x8(%rsp),%eax
  xor    %ebx,%ebx
  test   %eax,%eax
  jle    L110
  nopw   0x0(%rax,%rax,1)
L76:
  mov    0x0(%rbp,%rbx,4),%esi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    $0x1,%rbx
  call   <printf@plt>
  cmp    %ebx,0x8(%rsp)
  jg     L76
L110:
  mov    $0xa,%edi
  add    $0x1,%r13d
  add    $0x28,%rbp
  call   <putchar@plt>
  cmp    %r13d,0xc(%rsp)
  jg     L159
L163:
  mov    0x338(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L52
  add    $0x340,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L40:
  test   %esi,%esi
  jle    L61
L91:
  test   %eax,%eax
  jle    L61
  sub    $0x1,%esi
  lea    0x10(%rsp),%rcx
  lea    0x1a0(%rsp),%rdx
  lea    0x1a4(%rsp,%rsi,4),%rdi
  nopw   0x0(%rax,%rax,1)
L138:
  mov    (%rcx),%esi
  mov    %esi,(%rdx)
  cmp    $0x1,%eax
  je     L206
  mov    0x4(%rcx),%esi
  mov    %esi,0x28(%rdx)
  cmp    $0x2,%eax
  je     L206
  mov    0x8(%rcx),%esi
  mov    %esi,0x50(%rdx)
  cmp    $0x3,%eax
  je     L206
  mov    0xc(%rcx),%esi
  mov    %esi,0x78(%rdx)
  cmp    $0x4,%eax
  je     L206
  mov    0x10(%rcx),%esi
  mov    %esi,0xa0(%rdx)
  cmp    $0x5,%eax
  je     L206
  mov    0x14(%rcx),%esi
  mov    %esi,0xc8(%rdx)
  cmp    $0x6,%eax
  je     L206
  mov    0x18(%rcx),%esi
  mov    %esi,0xf0(%rdx)
  cmp    $0x7,%eax
  je     L206
  mov    0x1c(%rcx),%esi
  mov    %esi,0x118(%rdx)
  cmp    $0x8,%eax
  je     L206
  mov    0x20(%rcx),%esi
  mov    %esi,0x140(%rdx)
  cmp    $0x9,%eax
  je     L206
  mov    0x24(%rcx),%esi
  mov    %esi,0x168(%rdx)
L206:
  add    $0x4,%rdx
  add    $0x28,%rcx
  cmp    %rdi,%rdx
  jne    L138
  jmp    L61
L52:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D14
type_infered: string
name: parse_data
arguments: data_tag: D9
type_infered: string
name: parse_data
arguments: data_tag: D26
type_infered: string
name: parse_data
arguments: data_tag: D23
type_infered: string
name: parse_data
arguments: data_tag: D11
type_infered: string
name: parse_data
arguments: data_tag: D13
type_infered: string

tool: D14: Vyvedi broi redove i koloni na matircata 

tool: D9: %d%d

tool: D26: Vyvedete elementite na matricata

tool: D23: %d

tool: D11: Transponiranata matrica :-

tool: D13: %d	

assistant: ```c
int main() {
  int m, n, c, d, matrix[10][10], transpose[10][10];
  printf("Vyvedi broi redove i koloni na matircata \n");
  scanf("%d%d", &m, &n);
  printf("Vyvedete elementite na matricata\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("Transponiranata matrica :-\n");
  for (c = 0; c < n; c++) {
    for (d = 0; d < m; d++)
      printf("%d\t", transpose[c][d]);
    printf("\n");
  }
  return 0;
}
```