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
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x20(%rbp),%eax
  cmp    $0x2,%eax
  je     L32
  cmp    $0x2,%eax
  jg     L75
  test   %eax,%eax
  je     L25
  cmp    $0x1,%eax
  je     L65
  jmp    L75
L25:
  lea    D4(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L2
L65:
  mov    $0x0,%eax
  call   <getpid@plt>
  mov    %eax,-0x1c(%rbp)
  call   <fork@plt>
  mov    %eax,-0x14(%rbp)
  cmpl   $0xffffffff,-0x14(%rbp)
  jne    L99
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0xffffffff,%eax
  jmp    L2
L99:
  cmpl   $0x0,-0x14(%rbp)
  jne    L24
  mov    $0x0,%eax
  call   <getpid@plt>
  mov    %eax,%esi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L2
L24:
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L2
L32:
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D119(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x18(%rbp),%edx
  mov    -0x1c(%rbp),%eax
  mov    %eax,%esi
  mov    $0x15f,%edi
  call   <syscall@plt>
  mov    %rax,-0x10(%rbp)
  cmpq   $0x0,-0x10(%rbp)
  je     L29
  mov    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D21(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0xffffffff,%eax
  jmp    L2
L29:
  lea    D42(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L2
L75:
  mov    $0x0,%eax
L2:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L73
  call   <__stack_chk_fail@plt>
L73:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_label: D85
data_type: string
name: retrieve_data
arguments: data_label: D119
data_type: string
name: retrieve_data
arguments: data_label: D4
data_type: string
name: retrieve_data
arguments: data_label: D11
data_type: string
name: retrieve_data
arguments: data_label: D5
data_type: string
name: retrieve_data
arguments: data_label: D58
data_type: string
name: retrieve_data
arguments: data_label: D65
data_type: string
name: retrieve_data
arguments: data_label: D44
data_type: string
name: retrieve_data
arguments: data_label: D21
data_type: string
name: retrieve_data
arguments: data_label: D42
data_type: string

tool: D85: Enter (1) to fork current process or (2) to change a specific process' hidden flag. (0) to exit. 

tool: D119: %d

tool: D4: Good bye...

tool: D11: Process couldn't fork succesfully. You have no permission to do this operation.

tool: D5: I'm the child process and my pid is %d


tool: D58: I'm the parent process and my pid is %d


tool: D65: Please enter pid of process you want to change its flag: 

tool: D44: Please enter 'hidden' flag value: 

tool: D21: Hidden flag couldn't changed succesfully, error code is %ld.


tool: D42: Hidden flag has been changed succesfully.

assistant: ```c
int main(void) {
  int choice;
  pid_t pid;
  printf("Enter (1) to fork current process or (2) to change a specific process' hidden flag. (0) to exit. ");
  scanf("%d", &choice);
  switch (choice) {
  case 0: {
    printf("Good bye...\n");
    return 0;
  } break;
  case 1: {
    pid = getpid();
    int frk = fork();
    if (frk == -1) {
      printf("Process couldn't fork succesfully. You have no permission to do this operation.\n");
      return -1;
    } else if (frk == 0) {
      printf("I'm the child process and my pid is %d\n", getpid());
      return 0;
    } else {
      printf("I'm the parent process and my pid is %d\n", pid);
      return 0;
    }
  } break;
  case 2: {
    int flag;
    printf("Please enter pid of process you want to change its flag: ");
    scanf("%d", &pid);
    printf("Please enter 'hidden' flag value: ");
    scanf("%d", &flag);
    long ret = syscall(351, pid, flag);
    if (ret != 0) {
      printf("Hidden flag couldn't changed succesfully, error code is %ld.\n", ret);
      return -1;
    } else {
      printf("Hidden flag has been changed succesfully.\n");
      return 0;
    }
  } break;
  default:
    return 0;
  }
}
```