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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  lea    D86(%rip),%r14
  push   %r13
  lea    D11(%rip),%r13
  push   %r12
  lea    D104(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D23(%rip),%rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  xchg   %ax,%ax
L88:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  nopw   0x0(%rax,%rax,1)
L106:
  xor    %eax,%eax
  call   <getchar@plt>
  mov    %eax,%r15d
  cmp    $0xa,%al
  je     L106
  cmp    $0x2b,%al
  je     L186
  cmp    $0x2d,%al
  je     L59
  cmp    $0x2a,%al
  je     L152
  cmp    $0x2f,%al
  jne    L29
  lea    D31(%rip),%rdi
  lea    0x14(%rsp),%rbp
  call   <puts@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
L162:
  mov    0x14(%rsp),%r8d
  test   %r8d,%r8d
  jne    L129
  lea    D24(%rip),%r15
  nopl   0x0(%rax)
L57:
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    0x14(%rsp),%r8d
  test   %r8d,%r8d
  je     L57
L129:
  mov    0x10(%rsp),%esi
  lea    D39(%rip),%rdi
  mov    %esi,%eax
  cltd
  idiv   %r8d
  mov    %r8d,%edx
  mov    %eax,%ecx
  xor    %eax,%eax
  call   <printf@plt>
  jmp    L88
  nopl   0x0(%rax)
L152:
  lea    D42(%rip),%rdi
  call   <puts@plt>
L2:
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    0x14(%rsp),%rbp
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
L210:
  cmp    $0x2d,%r15b
  je     L151
  cmp    $0x2a,%r15b
  je     L49
  cmp    $0x2f,%r15b
  je     L162
L97:
  cmp    $0x71,%r15b
  jne    L88
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L47
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopw   0x0(%rax,%rax,1)
L59:
  lea    D83(%rip),%rdi
  call   <puts@plt>
  jmp    L2
  nopl   0x0(%rax)
L186:
  lea    D64(%rip),%rdi
  call   <puts@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x14(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
L15:
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%edx
  lea    D77(%rip),%rdi
  xor    %eax,%eax
  lea    (%rsi,%rdx,1),%ecx
  call   <printf@plt>
  jmp    L88
  nopl   0x0(%rax,%rax,1)
L29:
  lea    -0x2b(%r15),%eax
  test   $0xfd,%al
  je     L2
  cmp    $0x2a,%r15b
  je     L178
  cmp    $0x2d,%r15b
  jne    L97
L151:
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%edx
  lea    D69(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,%ecx
  sub    %edx,%ecx
  call   <printf@plt>
  jmp    L88
  nopl   0x0(%rax,%rax,1)
L49:
  mov    0x10(%rsp),%esi
  mov    0x14(%rsp),%edx
  lea    D49(%rip),%rdi
  xor    %eax,%eax
  mov    %esi,%ecx
  imul   %edx,%ecx
  call   <printf@plt>
  jmp    L88
L178:
  mov    %r14,%rdi
  xor    %eax,%eax
  lea    0x14(%rsp),%rbp
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmp    $0x2b,%r15b
  je     L15
  jmp    L210
L47:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D86
type_infered: string
name: parse_data
arguments: data_tag: D11
type_infered: string
name: parse_data
arguments: data_tag: D104
type_infered: string
name: parse_data
arguments: data_tag: D23
type_infered: string
name: parse_data
arguments: data_tag: D31
type_infered: string
name: parse_data
arguments: data_tag: D24
type_infered: string
name: parse_data
arguments: data_tag: D39
type_infered: string
name: parse_data
arguments: data_tag: D42
type_infered: string
name: parse_data
arguments: data_tag: D83
type_infered: string
name: parse_data
arguments: data_tag: D64
type_infered: string
name: parse_data
arguments: data_tag: D77
type_infered: string
name: parse_data
arguments: data_tag: D69
type_infered: string
name: parse_data
arguments: data_tag: D49
type_infered: string

tool: D86: enter first number:

tool: D11: enter second number:

tool: D104: Add(+), Subtract(-), Multiply(*), Divide(/), or Quit(q):

tool: D23: %9d

tool: D31: 
you said you would like to divide:

tool: D24: Cannot divide by 0. Please enter new number to divide by:

tool: D39: %d
/
%d
=
%d



tool: D42: 
you said you would like to multiply:

tool: D83: 
you said you would like to subtract:

tool: D64: 
you said you would like to add:

tool: D77: %d
+
%d
=
%d



tool: D69: %d
-
%d
=
%d



tool: D49: %d
*
%d
=
%d



assistant: ```c
int main(void) {
  int numbers[3];
  char operator;
  int operation;
  do {
    operator= '\n';
    printf("Add(+), Subtract(-), Multiply(*), Divide(/), or Quit(q):");
    do {
      operator= getchar();
    } while (operator== '\n');
    if (operator== '\n')
      printf("warning: char c contains a newline\n");
    if (operator== '+')
      printf("\nyou said you would like to add:\n");
    if (operator== '-')
      printf("\nyou said you would like to subtract:\n");
    if (operator== '*')
      printf("\nyou said you would like to multiply:\n");
    if (operator== '/')
      printf("\nyou said you would like to divide:\n");
    if ((operator== '+') || (operator== '-') || (operator== '*') || (operator== '/')) {
      printf("enter first number:");
      scanf("%9d", &numbers[1]);
      printf("enter second number:");
      scanf("%9d", &numbers[2]);
    }
    if (operator== '+') {
      operation = (numbers[1] + numbers[2]);
      printf("%d\n+\n%d\n=\n%d\n\n", numbers[1], numbers[2], operation);
    } else if (operator== '-') {
      operation = (numbers[1] - numbers[2]);
      printf("%d\n-\n%d\n=\n%d\n\n", numbers[1], numbers[2], operation);
    } else if (operator== '*') {
      operation = (numbers[1] * numbers[2]);
      printf("%d\n*\n%d\n=\n%d\n\n", numbers[1], numbers[2], operation);
    } else if (operator== '/') {
      while (numbers[2] == 0) {
        printf("Cannot divide by 0. Please enter new number to divide by:");
        scanf("%9d", &numbers[2]);
      }
      operation = (numbers[1] / numbers[2]);
      printf("%d\n/\n%d\n=\n%d\n\n", numbers[1], numbers[2], operation);
    }
  } while (operator!= 'q');
  return 0;
}
```