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

```asm
<main>:
  endbr64
  sub    $0x28,%rsp
  lea    D48(%rip),%rdi
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  lea    D114(%rip),%rdi
  call   <puts@plt>
  lea    D144(%rip),%rdi
  call   <puts@plt>
  lea    0x14(%rsp),%rsi
  lea    D27(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    0x14(%rsp),%eax
  cmp    $0x3,%eax
  je     L84
  jg     L56
  cmp    $0x1,%eax
  je     L75
  cmp    $0x2,%eax
  jne    L81
  lea    D4(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  lea    D56(%rip),%rdi
  xor    %eax,%eax
  lea    0x10(%rsp),%rdx
  call   <scanf@plt>
  mov    0xc(%rsp),%esi
  lea    D26(%rip),%rdi
  xor    %eax,%eax
  sub    0x10(%rsp),%esi
  call   <printf@plt>
L86:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L18
  add    $0x28,%rsp
  ret
  nopl   0x0(%rax,%rax,1)
L56:
  cmp    $0x4,%eax
  jne    L81
  lea    D4(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  lea    0x10(%rsp),%rdx
  xor    %eax,%eax
  lea    D56(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%esi
  imul   0x10(%rsp),%esi
  xor    %eax,%eax
  lea    D120(%rip),%rdi
  call   <printf@plt>
  jmp    L86
L84:
  lea    D4(%rip),%rdi
  call   <puts@plt>
  lea    0x10(%rsp),%rdx
  lea    0xc(%rsp),%rsi
  xor    %eax,%eax
  lea    D56(%rip),%rdi
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  lea    D92(%rip),%rdi
  cltd
  idivl  0x10(%rsp)
  mov    %eax,%esi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L86
L81:
  lea    D107(%rip),%rdi
  call   <puts@plt>
  jmp    L86
L75:
  lea    D4(%rip),%rdi
  call   <puts@plt>
  lea    0xc(%rsp),%rsi
  lea    0x10(%rsp),%rdx
  xor    %eax,%eax
  lea    D56(%rip),%rdi
  call   <scanf@plt>
  mov    0x10(%rsp),%esi
  lea    D40(%rip),%rdi
  xor    %eax,%eax
  add    0xc(%rsp),%esi
  call   <printf@plt>
  jmp    L86
L18:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D48
datatype: string
name: extract_symbolic_data
arguments: tag: D114
datatype: string
name: extract_symbolic_data
arguments: tag: D144
datatype: string
name: extract_symbolic_data
arguments: tag: D27
datatype: string
name: extract_symbolic_data
arguments: tag: D4
datatype: string
name: extract_symbolic_data
arguments: tag: D56
datatype: string
name: extract_symbolic_data
arguments: tag: D26
datatype: string
name: extract_symbolic_data
arguments: tag: D120
datatype: string
name: extract_symbolic_data
arguments: tag: D92
datatype: string
name: extract_symbolic_data
arguments: tag: D107
datatype: string
name: extract_symbolic_data
arguments: tag: D40
datatype: string

tool: D48: 

 MENU 


tool: D114:  1.ADDITION
 2.SUBTRACTION
 3.DIVISION
 4.MULTIPLICATION

tool: D144: 

 ENTER YOUR CHOICE 


tool: D27: %d

tool: D4: 

 ENTER TWO NUMBERS 


tool: D56: %d %d

tool: D26: 

 Difference = %d

tool: D120: 

 Value after Multiplication = %d

tool: D92: 

 Quotient = %d

tool: D107: 

 ---- WRONG CHOICE ---- 


tool: D40: 

 Sum = %d

assistant: ```c
void main() {
  int i, j, k, ch;
  printf("\n\n MENU \n\n");
  printf(" 1.ADDITION\n 2.SUBTRACTION\n 3.DIVISION\n 4.MULTIPLICATION\n");
  printf("\n\n ENTER YOUR CHOICE \n\n");
  scanf("%d", &ch);
  switch (ch) {
  case 1:
    printf("\n\n ENTER TWO NUMBERS \n\n");
    scanf("%d %d", &i, &j);
    k = i + j;
    printf("\n\n Sum = %d", k);
    break;
  case 2:
    printf("\n\n ENTER TWO NUMBERS \n\n");
    scanf("%d %d", &i, &j);
    k = i - j;
    printf("\n\n Difference = %d", k);
    break;
  case 3:
    printf("\n\n ENTER TWO NUMBERS \n\n");
    scanf("%d %d", &i, &j);
    k = i / j;
    printf("\n\n Quotient = %d", k);
    break;
  case 4:
    printf("\n\n ENTER TWO NUMBERS \n\n");
    scanf("%d %d", &i, &j);
    k = i * j;
    printf("\n\n Value after Multiplication = %d", k);
    break;
  default:
    printf("\n\n ---- WRONG CHOICE ---- \n\n");
  }
}
```