user: Demonstrate the C code that generates the assembly output below:

```asm
<main>:
  endbr64
  push   %r12
  lea    D19(%rip),%rdi
  push   %rbp
  lea    D22(%rip),%rbp
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%r12d
  cmp    $0x1,%r12d
  je     L56
  cmp    $0x2,%r12d
  je     L74
  test   %r12d,%r12d
  je     L99
  xor    %r12d,%r12d
L13:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x28,%rsp
  mov    %r12d,%eax
  pop    %rbp
  pop    %r12
  ret
L56:
  xor    %eax,%eax
  call   <getpid@plt>
  mov    %eax,0x10(%rsp)
  call   <fork@plt>
  mov    %eax,%r12d
  cmp    $0xffffffff,%eax
  je     L38
  test   %eax,%eax
  jne    L71
  xor    %eax,%eax
  call   <getpid@plt>
  lea    D20(%rip),%rdi
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L13
L99:
  lea    D26(%rip),%rdi
  call   <puts@plt>
  jmp    L13
L74:
  lea    D64(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D43(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%edx
  mov    $0x15f,%edi
  call   <syscall@plt>
  mov    %rax,%rsi
  test   %rax,%rax
  je     L31
  lea    D72(%rip),%rdi
  xor    %eax,%eax
  or     $0xffffffff,%r12d
  call   <printf@plt>
  jmp    L13
L31:
  lea    D97(%rip),%rdi
  xor    %r12d,%r12d
  call   <puts@plt>
  jmp    L13
L71:
  mov    0x10(%rsp),%esi
  lea    D35(%rip),%rdi
  xor    %eax,%eax
  xor    %r12d,%r12d
  call   <printf@plt>
  jmp    L13
L38:
  lea    D60(%rip),%rdi
  call   <puts@plt>
  jmp    L13
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D19
datatype: string
name: disassemble_data
arguments: data_label: D22
datatype: string
name: disassemble_data
arguments: data_label: D20
datatype: string
name: disassemble_data
arguments: data_label: D26
datatype: string
name: disassemble_data
arguments: data_label: D64
datatype: string
name: disassemble_data
arguments: data_label: D43
datatype: string
name: disassemble_data
arguments: data_label: D72
datatype: string
name: disassemble_data
arguments: data_label: D97
datatype: string
name: disassemble_data
arguments: data_label: D35
datatype: string
name: disassemble_data
arguments: data_label: D60
datatype: string

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

tool: D22: %d

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


tool: D26: Good bye...

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

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

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


tool: D97: Hidden flag has been changed succesfully.

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


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

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;
  }
}
```