user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<BNCMode>:
  endbr64
  sub    $0x18,%rsp
  lea    D76(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x8(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    D1(%rip),%rdi
  call   <printf@plt>
  lea    D125(%rip),%rdi
  call   <printf@plt>
  lea    D73(%rip),%rdi
  call   <printf@plt>
  lea    D95(%rip),%rdi
  call   <printf@plt>
  lea    D24(%rip),%rdi
  call   <printf@plt>
  lea    D98(%rip),%rdi
  call   <printf@plt>
  lea    D84(%rip),%rdi
  call   <printf@plt>
  lea    D83(%rip),%rdi
  call   <printf@plt>
  lea    D55(%rip),%rdi
  call   <printf@plt>
  lea    D14(%rip),%rdi
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D37(%rip),%rdi
  call   <scanf@plt>
  mov    $0x14,%edi
  call   <BNCIO@plt>
  cmpq   $0x9,(%rsp)
  ja     L40
  mov    (%rsp),%rax
  lea    D91(%rip),%rdx
  movslq (%rdx,%rax,4),%rax
  add    %rdx,%rax
  notrack jmp *%rax
  nopl   (%rax)
  xor    %eax,%eax
  call   <BNC_9@plt>
  nop
L50:
  mov    0x8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L75
  mov    $0x63,%eax
  add    $0x18,%rsp
  ret
  xchg   %ax,%ax
  xor    %eax,%eax
  call   <BNC_1@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_2@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_3@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_4@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_5@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_6@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_7@plt>
  jmp    L50
  nopl   0x0(%rax)
  xor    %eax,%eax
  call   <BNC_8@plt>
  jmp    L50
L40:
  xor    %eax,%eax
  call   <BNC_0@plt>
  jmp    L50
L75:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D76
type_infered: string
name: read_data
arguments: label: D1
type_infered: string
name: read_data
arguments: label: D125
type_infered: string
name: read_data
arguments: label: D73
type_infered: string
name: read_data
arguments: label: D95
type_infered: string
name: read_data
arguments: label: D24
type_infered: string
name: read_data
arguments: label: D98
type_infered: string
name: read_data
arguments: label: D84
type_infered: string
name: read_data
arguments: label: D83
type_infered: string
name: read_data
arguments: label: D55
type_infered: string
name: read_data
arguments: label: D14
type_infered: string
name: read_data
arguments: label: D37
type_infered: string

tool: D76: Function (0-9) ? 


tool: D1: 0 - Power measure 


tool: D125: 1 - Am 


tool: D73: 2 - FM 


tool: D95: 3 - Phase modulated 


tool: D24: 4 - Sweep 


tool: D98: 5 - FSK 


tool: D84: 6 - Burst 


tool: D83: 7 - SSb 


tool: D55: 8 - DTMF generator 


tool: D14: 9 - DTMF detection 


tool: D37: %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);
}
```