user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  mov    $0x28,%edi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x18,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <malloc@plt>
  mov    $0x28,%edi
  mov    %rax,%rbp
  call   <malloc@plt>
  mov    %rax,%r14
L28:
  mov    $0x14,%edi
  call   <malloc@plt>
  mov    $0x14,%edi
  mov    %rax,0x0(%rbp,%rbx,1)
  call   <malloc@plt>
  mov    %rax,(%r14,%rbx,1)
  add    $0x8,%rbx
  cmp    $0x28,%rbx
  jne    L28
  mov    %rbp,%r13
  lea    0x28(%rbp),%r15
  lea    D11(%rip),%r12
L50:
  xor    %ebx,%ebx
L97:
  mov    0x0(%r13),%rsi
  mov    %r12,%rdi
  xor    %eax,%eax
  add    %rbx,%rsi
  add    $0x4,%rbx
  call   <scanf@plt>
  cmp    $0x14,%rbx
  jne    L97
  add    $0x8,%r13
  cmp    %r15,%r13
  jne    L50
  lea    0x7(%rsp),%r13
  lea    D7(%rip),%rbx
  jmp    L83
  nopw   0x0(%rax,%rax,1)
L87:
  cmpb   $0x4c,0x7(%rsp)
  je     L74
L83:
  xor    %eax,%eax
  mov    %r13,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  je     L87
  lea    0x28(%rbp),%r13
L69:
  mov    0x0(%rbp),%rax
  mov    %r12,%rdi
  mov    $0x4,%ebx
  mov    (%rax),%esi
  xor    %eax,%eax
  call   <printf@plt>
L11:
  mov    $0x20,%edi
  call   <putchar@plt>
  mov    0x0(%rbp),%rax
  mov    %r12,%rdi
  mov    (%rax,%rbx,1),%esi
  xor    %eax,%eax
  add    $0x4,%rbx
  call   <printf@plt>
  cmp    $0x14,%rbx
  jne    L11
  mov    $0xa,%edi
  add    $0x8,%rbp
  call   <putchar@plt>
  cmp    %r13,%rbp
  jne    L69
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L52
  add    $0x18,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax,%rax,1)
L74:
  mov    0x0(%rbp),%r8
  mov    0x8(%rbp),%rdi
  mov    (%r14),%rax
  mov    0x10(%rbp),%rsi
  mov    0x10(%r8),%edx
  mov    0x18(%rbp),%rcx
  mov    %edx,(%rax)
  mov    0x10(%rdi),%edx
  mov    %edx,0x4(%rax)
  mov    0x10(%rsi),%edx
  mov    %edx,0x8(%rax)
  mov    0x10(%rcx),%edx
  mov    %edx,0xc(%rax)
  mov    0x20(%rbp),%rdx
  mov    0x10(%rdx),%r9d
  mov    %r9d,0x10(%rax)
  mov    0x8(%r14),%rax
  mov    0xc(%r8),%r9d
  mov    %r9d,(%rax)
  mov    0xc(%rdi),%r9d
  mov    %r9d,0x4(%rax)
  mov    0xc(%rsi),%r9d
  mov    %r9d,0x8(%rax)
  mov    0xc(%rcx),%r9d
  mov    %r9d,0xc(%rax)
  mov    0xc(%rdx),%r9d
  mov    %r9d,0x10(%rax)
  mov    0x10(%r14),%rax
  mov    0x8(%r8),%r9d
  mov    %r9d,(%rax)
  mov    0x8(%rdi),%r9d
  mov    %r9d,0x4(%rax)
  mov    0x8(%rsi),%r9d
  mov    %r9d,0x8(%rax)
  mov    0x8(%rcx),%r9d
  mov    %r9d,0xc(%rax)
  mov    0x8(%rdx),%r9d
  mov    %r9d,0x10(%rax)
  mov    0x18(%r14),%rax
  mov    0x4(%r8),%r9d
  mov    %r9d,(%rax)
  mov    0x4(%rdi),%r9d
  mov    %r9d,0x4(%rax)
  mov    0x4(%rsi),%r9d
  mov    %r9d,0x8(%rax)
  mov    0x4(%rcx),%r9d
  mov    %r9d,0xc(%rax)
  mov    0x4(%rdx),%r9d
  mov    %r9d,0x10(%rax)
  mov    0x20(%r14),%rax
  mov    (%r8),%r8d
  mov    %r8d,(%rax)
  mov    (%rdi),%edi
  mov    %edi,0x4(%rax)
  mov    (%rsi),%esi
  mov    %esi,0x8(%rax)
  mov    (%rcx),%ecx
  mov    %ecx,0xc(%rax)
  mov    (%rdx),%edx
  mov    %edx,0x10(%rax)
  mov    %rbp,%rax
  mov    %r14,%rbp
  mov    %rax,%r14
  jmp    L83
L52:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: label: D11
type_guessed: string
name: parse_data
arguments: label: D7
type_guessed: string

tool: D11: %d

tool: D7: %c

assistant: ```c
int main() {
  int **Matrix = malloc(5 * sizeof(int *));
  int **result = malloc(5 * sizeof(int *));
  for (int x = 0; x < 5; x++) {
    Matrix[x] = malloc(5 * sizeof(int));
    result[x] = malloc(5 * sizeof(int));
  }
  for (int x = 0; x < 5; x++) {
    for (int y = 0; y < 5; y++) {
      scanf("%d", &Matrix[x][y]);
    }
  }
  char L;
  while (scanf("%c", &L) == 1) {
    if (L == 'L') {
      int i = 0;
      for (int x = 5 - 1; x >= 0; x--) {
        int j = 0;
        for (int y = 0; y < 5; y++) {
          result[i][j] = Matrix[y][x];
          ++j;
        }
        ++i;
      }
      int **temp = result;
      result = Matrix;
      Matrix = temp;
    }
  }
  for (int x = 0; x < 5; x++) {
    for (int y = 0, space = 0; y < 5; y++) {
      if (space)
        printf(" ");
      else
        space = 1;
      printf("%d", Matrix[x][y]);
    }
    printf("\n");
  }
  return 0;
}
```