user: Translate the below assembly code into C programming language:

```asm
<main>:
  endbr64
  push   %r15
  lea    D116(%rip),%r15
  push   %r14
  push   %r13
  lea    D105(%rip),%r13
  push   %r12
  lea    D74(%rip),%r12
  push   %rbp
  lea    D44(%rip),%rbp
  push   %rbx
  lea    D113(%rip),%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x30(%rsp),%rax
  movl   $0x1,0x2c(%rsp)
  lea    0x2b(%rsp),%r14
  mov    %rax,0x10(%rsp)
  lea    0x34(%rsp),%rax
  mov    %rax,0x18(%rsp)
  lea    0x2c(%rsp),%rax
  mov    %rax,0x8(%rsp)
L9:
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D92(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movzbl 0x2b(%rsp),%eax
  sub    $0x2a,%eax
  cmp    $0xa,%al
  ja     L17
  movzbl %al,%eax
  movslq 0x0(%rbp,%rax,4),%rax
  add    %rbp,%rax
  notrack jmp *%rax
  nopl   0x0(%rax,%rax,1)
  mov    0x30(%rsp),%esi
  mov    0x34(%rsp),%r8d
  lea    D117(%rip),%rdi
  mov    %esi,%eax
  cltd
  idiv   %r8d
  mov    %r8d,%edx
  mov    %eax,%ecx
  xor    %eax,%eax
  call   <printf@plt>
L26:
  xor    %esi,%esi
  lea    D84(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  jmp    L9
  cs nopw 0x0(%rax,%rax,1)
  mov    0x30(%rsp),%esi
  mov    0x34(%rsp),%edx
  lea    D57(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,%ecx
  sub    %edx,%ecx
  call   <printf@plt>
  jmp    L26
  nopl   0x0(%rax)
  mov    0x34(%rsp),%edx
  mov    0x30(%rsp),%esi
  lea    D119(%rip),%rdi
  xor    %eax,%eax
  lea    (%rdx,%rsi,1),%ecx
  call   <printf@plt>
  jmp    L26
  nopl   0x0(%rax,%rax,1)
  mov    0x30(%rsp),%esi
  mov    0x34(%rsp),%edx
  lea    D111(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,%ecx
  imul   %edx,%ecx
  call   <printf@plt>
  jmp    L26
L17:
  lea    D106(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L26
```

tool_calls: name: read_data
arguments: data_label: D116
type_infered: string
name: read_data
arguments: data_label: D105
type_infered: string
name: read_data
arguments: data_label: D74
type_infered: string
name: read_data
arguments: data_label: D113
type_infered: string
name: read_data
arguments: data_label: D92
type_infered: string
name: read_data
arguments: data_label: D117
type_infered: string
name: read_data
arguments: data_label: D84
type_infered: string
name: read_data
arguments: data_label: D57
type_infered: string
name: read_data
arguments: data_label: D119
type_infered: string
name: read_data
arguments: data_label: D111
type_infered: string
name: read_data
arguments: data_label: D106
type_infered: string

tool: D116: op

tool: D105: %c

tool: D74: num1

tool: D113: %d

tool: D92: num2

tool: D117:  %d / %d = %d

tool: D84: %d


tool: D57:  %d - %d = %d

tool: D119:  %d + %d = %d

tool: D111:  %d * %d = %d

tool: D106: error

assistant: ```c
main() {
  int l = 1;
  while ("l==1") {
    char op;
    int num1, num2, num3;
    printf("op");
    scanf("%c", &op);
    printf("num1");
    scanf("%d", &num1);
    printf("num2");
    scanf("%d", &num2);
    switch (op) {
    case '1':
    case '+':
      printf(" %d + %d = %d", num1, num2, num2 + num1);
      break;
    case '2':
    case '-':
      printf(" %d - %d = %d", num1, num2, num1 - num2);
      break;
    case '3':
    case '*':
      printf(" %d * %d = %d", num1, num2, num1 * num2);
      break;
    case '4':
    case '/':
      printf(" %d / %d = %d", num1, num2, num1 / num2);
      break;
    default:
      printf("error");
      break;
    }
    printf("%d\n", num3);
    scanf("%d", &l);
  }
}
```