user: 请将这段汇编代码片段转换成等效的C代码：

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D114(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x15(%rbp),%rax
  mov    %rax,%rsi
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D116(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x10(%rbp),%rax
  mov    %rax,%rsi
  lea    D158(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  movzbl -0x15(%rbp),%eax
  movsbl %al,%eax
  cmp    $0x34,%eax
  je     L83
  cmp    $0x34,%eax
  jg     L9
  cmp    $0x33,%eax
  je     L3
  cmp    $0x33,%eax
  jg     L9
  cmp    $0x31,%eax
  je     L37
  cmp    $0x32,%eax
  je     L61
  jmp    L9
L37:
  lea    D74(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x10(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <set_bit@plt>
  mov    %eax,%esi
  lea    D139(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L16
L61:
  lea    D143(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D84(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0xc(%rbp),%rax
  mov    %rax,%rsi
  lea    D97(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0xc(%rbp),%edx
  mov    -0x10(%rbp),%ecx
  mov    -0x14(%rbp),%eax
  mov    %ecx,%esi
  mov    %eax,%edi
  call   <modify_bit@plt>
  mov    %eax,%esi
  lea    D106(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L16
L3:
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    -0x14(%rbp),%eax
  mov    %eax,%esi
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <isBitset@plt>
  test   %eax,%eax
  je     L76
  lea    D18(%rip),%rax
  jmp    L91
L76:
  lea    D117(%rip),%rax
L91:
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L16
L83:
  mov    -0x10(%rbp),%edx
  mov    -0x14(%rbp),%eax
  mov    %edx,%esi
  mov    %eax,%edi
  call   <clear_bit@plt>
  jmp    L88
L9:
  lea    D22(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L16:
  mov    $0x0,%eax
L88:
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L36
  call   <__stack_chk_fail@plt>
L36:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D12
datatype: string
name: extract_symbolic_data
arguments: label: D97
datatype: string
name: extract_symbolic_data
arguments: label: D114
datatype: string
name: extract_symbolic_data
arguments: label: D51
datatype: string
name: extract_symbolic_data
arguments: label: D31
datatype: string
name: extract_symbolic_data
arguments: label: D116
datatype: string
name: extract_symbolic_data
arguments: label: D158
datatype: string
name: extract_symbolic_data
arguments: label: D74
datatype: string
name: extract_symbolic_data
arguments: label: D139
datatype: string
name: extract_symbolic_data
arguments: label: D143
datatype: string
name: extract_symbolic_data
arguments: label: D84
datatype: string
name: extract_symbolic_data
arguments: label: D106
datatype: string
name: extract_symbolic_data
arguments: label: D55
datatype: string
name: extract_symbolic_data
arguments: label: D122
datatype: string
name: extract_symbolic_data
arguments: label: D18
datatype: string
name: extract_symbolic_data
arguments: label: D117
datatype: string
name: extract_symbolic_data
arguments: label: D22
datatype: string

tool: D12: Enter the Number : 

tool: D97: %d

tool: D114: 
Enter your choice :

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

tool: D31:  %c

tool: D116: 
Enter the position :

tool: D158:  %d

tool: D74: Inside 1

tool: D139: After Modification : %d 


tool: D143: Inside 2

tool: D84: 
Enter the new state :

tool: D106: After Modification : %d


tool: D55: inside 3

tool: D122: number %x 


tool: D18: SET


tool: D117: NOT SET


tool: D22: 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;
}
```