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

```asm
<BNCMode>:
  endbr64
  sub    $0x18,%rsp
  lea    D102(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D95(%rip),%rdi
  call   <printf@plt>
  lea    D3(%rip),%rdi
  call   <printf@plt>
  lea    D2(%rip),%rdi
  call   <printf@plt>
  lea    D31(%rip),%rdi
  call   <printf@plt>
  lea    D26(%rip),%rdi
  call   <printf@plt>
  lea    D119(%rip),%rdi
  call   <printf@plt>
  lea    D0(%rip),%rdi
  call   <printf@plt>
  lea    D64(%rip),%rdi
  call   <printf@plt>
  lea    D43(%rip),%rdi
  call   <printf@plt>
  lea    D45(%rip),%rdi
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D98(%rip),%rdi
  call   <scanf@plt>
  mov    $0x14,%edi
  call   <BNCIO@plt>
  cmpq   $0x9,(%rsp)
  ja     L95
  mov    (%rsp),%rax
  lea    D39(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   (%rax)
  xor    %eax,%eax
  call   <BNC_9@plt>
  nop
L69:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  mov    $0x63,%eax
  add    $0x18,%rsp
  ret
  xchg   %ax,%ax
  xor    %eax,%eax
  call   <BNC_1@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_2@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_3@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_4@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_5@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_6@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_7@plt>
  jmp    L69
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_8@plt>
  jmp    L69
L95:
  xor    %eax,%eax
  call   <BNC_0@plt>
  jmp    L69
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D102
datatype: string
name: extract_symbolic_data
arguments: data_tag: D95
datatype: string
name: extract_symbolic_data
arguments: data_tag: D3
datatype: string
name: extract_symbolic_data
arguments: data_tag: D2
datatype: string
name: extract_symbolic_data
arguments: data_tag: D31
datatype: string
name: extract_symbolic_data
arguments: data_tag: D26
datatype: string
name: extract_symbolic_data
arguments: data_tag: D119
datatype: string
name: extract_symbolic_data
arguments: data_tag: D0
datatype: string
name: extract_symbolic_data
arguments: data_tag: D64
datatype: string
name: extract_symbolic_data
arguments: data_tag: D43
datatype: string
name: extract_symbolic_data
arguments: data_tag: D45
datatype: string
name: extract_symbolic_data
arguments: data_tag: D98
datatype: string

tool: D102: Function (0-9) ? 


tool: D95: 0 - Power measure 


tool: D3: 1 - Am 


tool: D2: 2 - FM 


tool: D31: 3 - Phase modulated 


tool: D26: 4 - Sweep 


tool: D119: 5 - FSK 


tool: D0: 6 - Burst 


tool: D64: 7 - SSb 


tool: D43: 8 - DTMF generator 


tool: D45: 9 - DTMF detection 


tool: D98: %i

assistant: ```c
long int BNCMode() {
  long int ii, stat = 99;
  printf("Function (0-9) ? \n");
  printf("0 - Power measure \n");
  printf("1 - Am \n");
  printf("2 - FM \n");
  printf("3 - Phase modulated \n");
  printf("4 - Sweep \n");
  printf("5 - FSK \n");
  printf("6 - Burst \n");
  printf("7 - SSb \n");
  printf("8 - DTMF generator \n");
  printf("9 - DTMF detection \n");
  scanf("%i", &ii);
  BNCIO(20);
  switch (ii) {
  case 0:
    BNC_0();
    break;
  case 1:
    BNC_1();
    break;
  case 2:
    BNC_2();
    break;
  case 3:
    BNC_3();
    break;
  case 4:
    BNC_4();
    break;
  case 5:
    BNC_5();
    break;
  case 6:
    BNC_6();
    break;
  case 7:
    BNC_7();
    break;
  case 8:
    BNC_8();
    break;
  case 9:
    BNC_9();
    break;
  default:
    BNC_0();
    break;
  }
  return (stat);
}
```