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    D1(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x10(%rbp),%rdx
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D12(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  lea    D58(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D31(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D44(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x18(%rbp),%eax
  cmp    $0x4,%eax
  je     L123
  cmp    $0x4,%eax
  jg     L46
  cmp    $0x3,%eax
  je     L29
  cmp    $0x3,%eax
  jg     L46
  cmp    $0x1,%eax
  je     L71
  cmp    $0x2,%eax
  je     L105
  jmp    L46
L71:
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L92
L105:
  mov    -0x14(%rbp),%eax
  mov    -0x10(%rbp),%edx
  sub    %edx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L92
L29:
  mov    -0x14(%rbp),%edx
  mov    -0x10(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0xc(%rbp)
  jmp    L92
L123:
  mov    -0x10(%rbp),%eax
  test   %eax,%eax
  jne    L128
  lea    D45(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L128:
  mov    -0x14(%rbp),%eax
  mov    -0x10(%rbp),%ecx
  cltd
  idiv   %ecx
  mov    %eax,-0xc(%rbp)
  jmp    L92
L46:
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  mov    $0x0,%edi
  call   <exit@plt>
L92:
  mov    -0xc(%rbp),%eax
  mov    %eax,%esi
  lea    D30(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L103
  call   <__stack_chk_fail@plt>
L103:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D1
type_infered: string
name: parse_data
arguments: label: D12
type_infered: string
name: parse_data
arguments: label: D58
type_infered: string
name: parse_data
arguments: label: D31
type_infered: string
name: parse_data
arguments: label: D44
type_infered: string
name: parse_data
arguments: label: D45
type_infered: string
name: parse_data
arguments: label: D35
type_infered: string
name: parse_data
arguments: label: D30
type_infered: string

tool: D1: 
Enter two values

tool: D12: %d%d

tool: D58: 
1.Addition
2.Subtraction
3.Multiplication
4.Division

tool: D31: 
Enter your Choice

tool: D44: %d

tool: D45: 
Cannot divide by zero

tool: D35: 
Invalid Input

tool: D30: 
Result of the operation is : %d


assistant: ```c
int main(void) {
  int iChoice, iVal1, iVal2, iResult;
  printf("\nEnter two values\n");
  scanf("%d%d", &iVal1, &iVal2);
  printf("\n1.Addition\n2.Subtraction\n3.Multiplication\n4.Division\n");
  printf("\nEnter your Choice\n");
  scanf("%d", &iChoice);
  switch (iChoice) {
  case 1:
    iResult = iVal1 + iVal2;
    break;
  case 2:
    iResult = iVal1 - iVal2;
    break;
  case 3:
    iResult = iVal1 * iVal2;
    break;
  case 4:
    if (iVal2 == 0) {
      printf("\nCannot divide by zero\n");
      exit(0);
    }
    iResult = iVal1 / iVal2;
    break;
  default:
    printf("\nInvalid Input\n");
    exit(0);
  }
  printf("\nResult of the operation is : %d\n", iResult);
  return 0;
}
```