user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D23(%rip),%r15
  push   %r14
  lea    D70(%rip),%r14
  push   %r13
  lea    D17(%rip),%r13
  push   %r12
  lea    D33(%rip),%r12
  push   %rbp
  lea    D34(%rip),%rbp
  push   %rbx
  lea    D10(%rip),%rbx
  sub    $0x58,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x48(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%rax
  movl   $0xffffffff,0x1c(%rsp)
  mov    %rax,(%rsp)
  lea    0x20(%rsp),%rax
  mov    %rax,0x8(%rsp)
  nopw   0x0(%rax,%rax,1)
L6:
  mov    %r15,%rdi
  call   <printf@plt>
  mov    %r14,%rdi
  call   <printf@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  mov    %r12,%rdi
  call   <printf@plt>
  mov    %rbp,%rdi
  call   <printf@plt>
  lea    D50(%rip),%rdi
  call   <printf@plt>
  mov    (%rsp),%rsi
  lea    D81(%rip),%rdi
  call   <scanf@plt>
  cmpl   $0x5,0x1c(%rsp)
  ja     L16
  mov    0x1c(%rsp),%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  nopl   (%rax)
  mov    0x8(%rsp),%rdx
  mov    $0x3,%esi
  mov    $0x3,%edi
  call   <get2DArrayFromFile@plt>
  nopl   0x0(%rax)
L20:
  mov    0x1c(%rsp),%eax
  test   %eax,%eax
  jne    L6
  mov    0x48(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x58,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
  mov    0x8(%rsp),%rdx
  mov    $0x3,%esi
  mov    $0x3,%edi
  call   <save2DArrayToFile@plt>
  jmp    L20
  xchg   %ax,%ax
  mov    0x8(%rsp),%rdx
  mov    $0x3,%esi
  mov    $0x3,%edi
  call   <get2DRandomArray@plt>
  jmp    L20
  cs nopw 0x0(%rax,%rax,1)
  mov    0x8(%rsp),%rdx
  mov    $0x3,%esi
  mov    $0x3,%edi
  call   <get2DArrayFromConsole@plt>
  jmp    L20
  cs nopw 0x0(%rax,%rax,1)
  lea    D32(%rip),%rdi
  call   <printf@plt>
  jmp    L20
  nopl   0x0(%rax)
  mov    0x8(%rsp),%rdx
  mov    $0x3,%esi
  mov    $0x3,%edi
  call   <print2DArray@plt>
  jmp    L20
L16:
  lea    D15(%rip),%rdi
  call   <printf@plt>
  jmp    L20
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: tag: D23
type_infered: string
name: disassemble_data
arguments: tag: D70
type_infered: string
name: disassemble_data
arguments: tag: D17
type_infered: string
name: disassemble_data
arguments: tag: D33
type_infered: string
name: disassemble_data
arguments: tag: D34
type_infered: string
name: disassemble_data
arguments: tag: D50
type_infered: string
name: disassemble_data
arguments: tag: D81
type_infered: string
name: disassemble_data
arguments: tag: D32
type_infered: string
name: disassemble_data
arguments: tag: D15
type_infered: string

tool: D23: 1. Get array from console


tool: D70: 2. Fill array randomly


tool: D17: 3. Save array to file


tool: D33: 4. Get array from file


tool: D34: 5. Print array


tool: D50: 0. Exit
: 

tool: D81: %d

tool: D32: The end.


tool: D15: Wrong number, try again


assistant: ```c
int main() {
  int a[3][3];
  int choice = -1;
  while (choice != 0) {
    printf("1. Get array from console\n");
    printf("2. Fill array randomly\n");
    printf("3. Save array to file\n");
    printf("4. Get array from file\n");
    printf("5. Print array\n");
    printf("0. Exit\n: ");
    scanf("%d", &choice);
    switch (choice) {
    case 1:
      get2DArrayFromConsole(3, 3, a);
      break;
    case 2:
      get2DRandomArray(3, 3, a);
      break;
    case 3:
      save2DArrayToFile(3, 3, a);
      break;
    case 4:
      get2DArrayFromFile(3, 3, a);
      break;
    case 5:
      print2DArray(3, 3, a);
      break;
    case 0:
      printf("The end.\n");
      break;
    default:
      printf("Wrong number, try again\n");
    }
  }
  return 0;
}
```