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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movb   $0x30,-0x11(%rbp)
  movl   $0x0,-0x10(%rbp)
  movl   $0x0,-0xc(%rbp)
  jmp    L48
L49:
  lea    D87(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D112(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D90(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D71(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D115(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x11(%rbp),%rax
  mov    %rax,%rsi
  lea    D40(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x11(%rbp),%eax
  movsbl %al,%eax
  cmp    $0x34,%eax
  je     L54
  cmp    $0x34,%eax
  jg     L48
  cmp    $0x33,%eax
  je     L120
  cmp    $0x33,%eax
  jg     L48
  cmp    $0x31,%eax
  je     L33
  cmp    $0x32,%eax
  je     L37
  jmp    L48
L33:
  lea    D110(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    D61(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D77(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <utworz@plt>
  jmp    L48
L37:
  lea    D102(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <wyswietl@plt>
  jmp    L48
L120:
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <zmianaznaku@plt>
  jmp    L48
L54:
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
L48:
  movzbl -0x11(%rbp),%eax
  cmp    $0x34,%al
  jne    L49
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L50
  call   <__stack_chk_fail@plt>
L50:
  leave
  ret
```

tool_calls: name: read_data
arguments: data_label: D87
type: string
name: read_data
arguments: data_label: D112
type: string
name: read_data
arguments: data_label: D90
type: string
name: read_data
arguments: data_label: D71
type: string
name: read_data
arguments: data_label: D115
type: string
name: read_data
arguments: data_label: D40
type: string
name: read_data
arguments: data_label: D110
type: string
name: read_data
arguments: data_label: D61
type: string
name: read_data
arguments: data_label: D77
type: string
name: read_data
arguments: data_label: D102
type: string
name: read_data
arguments: data_label: D104
type: string
name: read_data
arguments: data_label: D84
type: string

tool: D87: ----------PROSTE MENU----------


tool: D112: 1 - utworz tablice


tool: D90: 2 - wyswietl tablice


tool: D71: 3 - zmien znaki w tablicy


tool: D115: 4 - zakoncz dzialanie programu


tool: D40: %c

tool: D110: wybrano wariant pierwszy


tool: D61: podaj wymiar tablicy:


tool: D77: %i

tool: D102: wybrano wariant drugi


tool: D104: wybrano wariant trzeci


tool: D84: PAPA ! 


assistant: ```c
int main() {
  char wybor = '0';
  int w = 0, k = 0;
  while (wybor != '4') {
    printf("----------PROSTE MENU----------\n");
    printf("1 - utworz tablice\n");
    printf("2 - wyswietl tablice\n");
    printf("3 - zmien znaki w tablicy\n");
    printf("4 - zakoncz dzialanie programu\n");
    scanf("%c", &wybor);
    switch (wybor) {
    case '1':
      printf("wybrano wariant pierwszy\n");
      printf("podaj wymiar tablicy:\n");
      scanf("%i", &w);
      scanf("%i", &k);
      utworz(w, k);
      break;
    case '2':
      printf("wybrano wariant drugi\n");
      wyswietl(w, k);
      break;
    case '3':
      printf("wybrano wariant trzeci\n");
      zmianaznaku(w, k);
      break;
    case '4':
      printf("PAPA ! \n");
    }
  }
  return 0;
}
```