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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    -0x14(%rbp),%rcx
  lea    -0xb(%rbp),%rdx
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  lea    -0xb(%rbp),%rax
  lea    D129(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L58
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  add    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L31
L58:
  lea    -0xb(%rbp),%rax
  lea    D88(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L76
  mov    -0x18(%rbp),%eax
  mov    -0x14(%rbp),%edx
  sub    %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L31
L76:
  lea    -0xb(%rbp),%rax
  lea    D109(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L29
  mov    -0x18(%rbp),%edx
  mov    -0x14(%rbp),%eax
  imul   %edx,%eax
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L31
L29:
  mov    -0x14(%rbp),%eax
  test   %eax,%eax
  je     L75
  lea    -0xb(%rbp),%rax
  lea    D118(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L100
  mov    -0x18(%rbp),%eax
  mov    -0x14(%rbp),%ecx
  cltd
  idiv   %ecx
  mov    %eax,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L31
L100:
  lea    -0xb(%rbp),%rax
  lea    D90(%rip),%rdx
  mov    %rdx,%rsi
  mov    %rax,%rdi
  call   <strcmp@plt>
  test   %rax,%rax
  jne    L54
  mov    -0x18(%rbp),%eax
  mov    -0x14(%rbp),%ecx
  cltd
  idiv   %ecx
  mov    %edx,-0x10(%rbp)
  mov    -0x10(%rbp),%eax
  mov    %eax,%esi
  lea    D2(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L31
L54:
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L31
L75:
  lea    D82(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L31:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L20
  call   <__stack_chk_fail@plt>
L20:
  leave
  ret
```

tool_calls: name: parse_data
arguments: data_tag: D67
type_guessed: string
name: parse_data
arguments: data_tag: D129
type_guessed: string
name: parse_data
arguments: data_tag: D2
type_guessed: string
name: parse_data
arguments: data_tag: D88
type_guessed: string
name: parse_data
arguments: data_tag: D109
type_guessed: string
name: parse_data
arguments: data_tag: D118
type_guessed: string
name: parse_data
arguments: data_tag: D90
type_guessed: string
name: parse_data
arguments: data_tag: D82
type_guessed: string

tool: D67: %d %s %d

tool: D129: add

tool: D2: %d


tool: D88: sub

tool: D109: mul

tool: D118: div

tool: D90: mod

tool: D82: error

assistant: ```c
int main() {
  int a, b, c;
  char ch[3];
  scanf("%d %s %d", &a, ch, &b);
  if (strcmp(ch, "add") == 0) {
    c = a + b;
    printf("%d\n", c);
  } else {
    if (strcmp(ch, "sub") == 0) {
      c = a - b;
      printf("%d\n", c);
    } else {
      if (strcmp(ch, "mul") == 0) {
        c = a * b;
        printf("%d\n", c);
      } else {
        if (b != 0)
          if (strcmp(ch, "div") == 0) {
            c = a / b;
            printf("%d\n", c);
          } else {
            if (strcmp(ch, "mod") == 0) {
              c = a % b;
              printf("%d\n", c);
            } else
              printf("error\n");
          }
        else
          printf("error\n");
      }
    }
  }
  return 0;
}
```