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

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D54(%rip),%rdi
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  lea    D104(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D107(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D95(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0xb(%rsp),%rsi
  lea    D75(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D151(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  lea    D61(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl 0xb(%rsp),%eax
  cmp    $0x33,%al
  je     L98
  jg     L82
  cmp    $0x31,%al
  je     L76
  cmp    $0x32,%al
  jne    L74
  lea    D5(%rip),%rdi
  call   <puts@plt>
  lea    D17(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  lea    D104(%rip),%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    0x14(%rsp),%edx
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%edi
  call   <modify_bit@plt>
  mov    %eax,%esi
  lea    D101(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L55
L82:
  cmp    $0x34,%al
  jne    L74
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%edi
  call   <clear_bit@plt>
  jmp    L55
L76:
  lea    D56(%rip),%rdi
  call   <puts@plt>
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%edi
  call   <set_bit@plt>
  mov    %eax,%esi
  lea    D133(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
L55:
  mov    0x18(%rsp),%rdx
  sub    %fs:0x28,%rdx
  jne    L61
  add    $0x28,%rsp
  ret
L98:
  lea    D53(%rip),%rdi
  call   <puts@plt>
  mov    0xc(%rsp),%esi
  lea    D115(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    0x10(%rsp),%esi
  mov    0xc(%rsp),%edi
  call   <isBitset@plt>
  test   %eax,%eax
  lea    D29(%rip),%rdi
  lea    D10(%rip),%rax
  cmove  %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  jmp    L55
L74:
  lea    D111(%rip),%rdi
  call   <puts@plt>
  mov    $0x0,%eax
  jmp    L55
L61:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: data_label: D54
type: string
name: extract_symbolic_data
arguments: data_label: D104
type: string
name: extract_symbolic_data
arguments: data_label: D107
type: string
name: extract_symbolic_data
arguments: data_label: D95
type: string
name: extract_symbolic_data
arguments: data_label: D75
type: string
name: extract_symbolic_data
arguments: data_label: D151
type: string
name: extract_symbolic_data
arguments: data_label: D61
type: string
name: extract_symbolic_data
arguments: data_label: D5
type: string
name: extract_symbolic_data
arguments: data_label: D17
type: string
name: extract_symbolic_data
arguments: data_label: D101
type: string
name: extract_symbolic_data
arguments: data_label: D56
type: string
name: extract_symbolic_data
arguments: data_label: D133
type: string
name: extract_symbolic_data
arguments: data_label: D53
type: string
name: extract_symbolic_data
arguments: data_label: D115
type: string
name: extract_symbolic_data
arguments: data_label: D29
type: string
name: extract_symbolic_data
arguments: data_label: D10
type: string
name: extract_symbolic_data
arguments: data_label: D111
type: string

tool: D54: Enter the Number : 

tool: D104: %d

tool: D107: 
Enter your choice :

tool: D95: 1.set bit
2.Modify a bit
3.Is bit set
4.Clear bit

tool: D75:  %c

tool: D151: 
Enter the position :

tool: D61:  %d

tool: D5: Inside 2

tool: D17: 
Enter the new state :

tool: D101: After Modification : %d


tool: D56: Inside 1

tool: D133: After Modification : %d 


tool: D53: inside 3

tool: D115: number %x 


tool: D29: SET


tool: D10: NOT SET


tool: D111: Invalid

assistant: ```c
int main() {
  int number, pos;
  char ops;
  int state;
  printf("Enter the Number : ");
  scanf("%d", &number);
  printf("\nEnter your choice :");
  printf("1.set bit\n2.Modify a bit\n3.Is bit set\n4.Clear bit");
  scanf(" %c", &ops);
  printf("\nEnter the position :");
  scanf(" %d", &pos);
  switch (ops) {
  case '1':
    printf("Inside 1\n");
    printf("After Modification : %d \n", set_bit(number, pos));
    break;
  case '2':
    printf("Inside 2\n");
    printf("\nEnter the new state :");
    scanf("%d", &state);
    printf("After Modification : %d\n", modify_bit(number, pos, state));
    break;
  case '3':
    printf("inside 3\n");
    printf("number %x \n", number);
    printf((isBitset(number, pos)) ? "SET\n" : "NOT SET\n");
    break;
  case '4':
    return clear_bit(number, pos);
    break;
  default:
    printf("Invalid\n");
  }
  return 0;
}
```