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

```asm
<main>:
  endbr64
  push   %r15
  lea    D15(%rip),%r15
  push   %r14
  lea    D7(%rip),%r14
  push   %r13
  lea    D57(%rip),%r13
  push   %r12
  push   %rbp
  lea    D55(%rip),%rbp
  push   %rbx
  lea    D103(%rip),%rbx
  sub    $0x98,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x88(%rsp)
  xor    %eax,%eax
  lea    0x1c(%rsp),%r12
L18:
  mov    %r14,%rdi
  call   <system@plt>
  mov    %r13,%rdi
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r12,%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  cmpl   $0x4,0x1c(%rsp)
  ja     L49
  mov    0x1c(%rsp),%eax
  movslq (%rbx,%rax,4),%rax
  add    %rbx,%rax
  notrack jmp *%rax
  cs nopw 0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <print@plt>
L60:
  mov    %r15,%rdi
  call   <system@plt>
  jmp    L18
  nopl   0x0(%rax)
  lea    D45(%rip),%rdi
  call   <printf@plt>
  lea    0x20(%rsp),%r8
  lea    D92(%rip),%rdi
  xor    %eax,%eax
  mov    %r8,%rsi
  mov    %r8,0x8(%rsp)
  call   <scanf@plt>
  lea    0x18(%rsp),%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x18(%rsp),%esi
  mov    0x8(%rsp),%rdi
  call   <add@plt>
  cmp    $0x1,%eax
  je     L43
  lea    D6(%rip),%rdi
  call   <printf@plt>
  jmp    L60
  nopl   0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <init@plt>
  lea    D62(%rip),%rdi
  call   <printf@plt>
  mov    %r15,%rdi
  call   <system@plt>
  jmp    L18
  nopl   0x0(%rax,%rax,1)
  mov    0x88(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L38
  add    $0x98,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
  xor    %eax,%eax
  call   <hapus_depan@plt>
  lea    D111(%rip),%rdi
  call   <printf@plt>
  mov    %r15,%rdi
  call   <system@plt>
  jmp    L18
L49:
  lea    D34(%rip),%rdi
  call   <printf@plt>
  jmp    L18
L43:
  lea    D89(%rip),%rdi
  call   <printf@plt>
  jmp    L60
L38:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D15
data_type: string
name: disassemble_data
arguments: data_label: D7
data_type: string
name: disassemble_data
arguments: data_label: D57
data_type: string
name: disassemble_data
arguments: data_label: D55
data_type: string
name: disassemble_data
arguments: data_label: D45
data_type: string
name: disassemble_data
arguments: data_label: D92
data_type: string
name: disassemble_data
arguments: data_label: D6
data_type: string
name: disassemble_data
arguments: data_label: D62
data_type: string
name: disassemble_data
arguments: data_label: D111
data_type: string
name: disassemble_data
arguments: data_label: D34
data_type: string
name: disassemble_data
arguments: data_label: D89
data_type: string

tool: D15: pause

tool: D7: cls

tool: D57: 1.Inisiasi Linked head
2.Tambah data
3.cetak semua data
4.Hapus data
0.Exit


tool: D55: %d

tool: D45: Ketik nama yang diinput 

tool: D92: %100s

tool: D6: Data gagal diinput


tool: D62: Linked head terinisialisasi


tool: D111: Data berhasil dihapus


tool: D34: Salah pilihan,ulangi lagi


tool: D89: Data berhasil ditambahkan


assistant: ```c
int main() {
  int id;
  char data[100];
  while (1) {
    system("cls");
    printf("1.Inisiasi Linked head\n2.Tambah data\n3.cetak semua data\n4.Hapus data\n0.Exit\n");
    int pilihan;
    scanf("%d", &pilihan);
    switch (pilihan) {
    case 1:
      init();
      printf("Linked head terinisialisasi\n");
      system("pause");
      break;
    case 2:
      printf("Ketik nama yang diinput ");
      scanf("%100s", data);
      scanf("%d", &id);
      int hasil = add(data, id);
      if (hasil == 1)
        printf("Data berhasil ditambahkan\n");
      else
        printf("Data gagal diinput\n");
      system("pause");
      break;
    case 3:
      print();
      system("pause");
      break;
    case 4:
      hapus_depan();
      printf("Data berhasil dihapus\n");
      system("pause");
      break;
    case 0:
      return 0;
      break;
    default:
      printf("Salah pilihan,ulangi lagi\n");
    }
  }
}
```