user: Please show me the C implementation that matches the assembly code listed below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D52(%rip),%rdi
  push   %r14
  push   %r13
  push   %r12
  push   %rbp
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x28(%rsp)
  xor    %eax,%eax
  call   <puts@plt>
  cmpl   $0x5,0x1c(%rsp)
  je     L80
  lea    0x1c(%rsp),%rax
  lea    D33(%rip),%r15
  mov    %rax,0x8(%rsp)
  lea    D74(%rip),%r14
  lea    D111(%rip),%r13
  lea    D114(%rip),%r12
  lea    D117(%rip),%rbp
  lea    D145(%rip),%rbx
  jmp    L103
  nop
L83:
  cmp    $0x2,%eax
  je     L70
  cmp    $0x3,%eax
  je     L15
  cmp    $0x4,%eax
  je     L11
  lea    D20(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L105:
  xor    %eax,%eax
  call   <getchar@plt>
  cmpl   $0x5,0x1c(%rsp)
  je     L80
L103:
  mov    %r15,%rdi
  call   <puts@plt>
  mov    %r14,%rdi
  call   <puts@plt>
  mov    %r13,%rdi
  call   <puts@plt>
  mov    %r12,%rdi
  call   <puts@plt>
  mov    %rbp,%rdi
  call   <puts@plt>
  lea    D63(%rip),%rdi
  call   <puts@plt>
  mov    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  xor    %eax,%eax
  lea    D16(%rip),%rdi
  call   <printf@plt>
  cmpl   $0x5,0x1c(%rsp)
  je     L80
  lea    0x20(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  lea    D47(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x24(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x1c(%rsp),%eax
  cmp    $0x1,%eax
  jne    L83
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%edx
  lea    D121(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,%ecx
  imul   %edx,%ecx
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  cmpl   $0x5,0x1c(%rsp)
  jne    L103
  nopw   0x0(%rax,%rax,1)
L80:
  mov    0x28(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L97
  add    $0x38,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   (%rax)
L11:
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%edx
  lea    D131(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,%ecx
  sub    %edx,%ecx
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  jmp    L105
  xchg   %ax,%ax
L70:
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%r8d
  lea    D132(%rip),%rdi
  mov    %esi,%eax
  cltd
  idiv   %r8d
  mov    %r8d,%edx
  mov    %eax,%ecx
  xor    %eax,%eax
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  jmp    L105
  xchg   %ax,%ax
L15:
  mov    0x20(%rsp),%esi
  mov    0x24(%rsp),%edx
  lea    D32(%rip),%rdi
  xor    %eax,%eax
  lea    (%rsi,%rdx,1),%ecx
  call   <printf@plt>
  xor    %eax,%eax
  call   <getchar@plt>
  jmp    L105
L97:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D52
type_guessed: string
name: unpack_data
arguments: data_tag: D33
type_guessed: string
name: unpack_data
arguments: data_tag: D74
type_guessed: string
name: unpack_data
arguments: data_tag: D111
type_guessed: string
name: unpack_data
arguments: data_tag: D114
type_guessed: string
name: unpack_data
arguments: data_tag: D117
type_guessed: string
name: unpack_data
arguments: data_tag: D145
type_guessed: string
name: unpack_data
arguments: data_tag: D20
type_guessed: string
name: unpack_data
arguments: data_tag: D63
type_guessed: string
name: unpack_data
arguments: data_tag: D16
type_guessed: string
name: unpack_data
arguments: data_tag: D47
type_guessed: string
name: unpack_data
arguments: data_tag: D121
type_guessed: string
name: unpack_data
arguments: data_tag: D131
type_guessed: string
name: unpack_data
arguments: data_tag: D132
type_guessed: string
name: unpack_data
arguments: data_tag: D32
type_guessed: string

tool: D52: Hello and welcome to Sapein's Simple Calculator Program!

tool: D33: Please enter one of the below options to get started!

tool: D74: 1.Multiplication

tool: D111: 2.Division

tool: D114: 3.Addition

tool: D117: 4.Subtraction

tool: D145:  %d

tool: D20: Wrong Input

tool: D63: 5.Exit

tool: D16: 
First Number: 

tool: D47: 
Second Number:

tool: D121: %d * %d = %d

tool: D131: %d - %d = %d

tool: D132: %d / %d = %d

tool: D32: %d + %d = %d

assistant: ```c
int main() {
  int choice;
  int firstNumber;
  int secondNumber;
  printf("Hello and welcome to Sapein's Simple Calculator Program!\n");
  while (choice != 5) {
    printf("Please enter one of the below options to get started!\n");
    printf("1.Multiplication\n");
    printf("2.Division\n");
    printf("3.Addition\n");
    printf("4.Subtraction\n");
    printf("5.Exit\n");
    scanf(" %d", &choice);
    printf("\nFirst Number: ");
    if (choice == 5) {
      break;
    }
    scanf(" %d", &firstNumber);
    printf("\nSecond Number:");
    scanf(" %d", &secondNumber);
    if (choice == 1) {
      printf("%d * %d = %d", firstNumber, secondNumber, firstNumber * secondNumber);
      char wait = getchar();
    } else if (choice == 2) {
      printf("%d / %d = %d", firstNumber, secondNumber, firstNumber / secondNumber);
      char wait = getchar();
    } else if (choice == 3) {
      printf("%d + %d = %d", firstNumber, secondNumber, firstNumber + secondNumber);
      char wait = getchar();
    } else if (choice == 4) {
      printf("%d - %d = %d", firstNumber, secondNumber, firstNumber - secondNumber);
      char wait = getchar();
    } else {
      printf("Wrong Input");
    }
    char wait = getchar();
  }
  return 0;
}
```