user: 请显示与下面列出的汇编代码相匹配的C语言实现：

```asm
<main>:
  endbr64
  push   %r15
  lea    D25(%rip),%rdi
  lea    D86(%rip),%r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  lea    D54(%rip),%r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  xor    %ebx,%ebx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    0x14(%rsp),%r13
  call   <puts@plt>
  movl   $0x0,0xc(%rsp)
  jmp    L65
  nopw   0x0(%rax,%rax,1)
L13:
  add    %eax,%r14d
  add    $0x1,%ebp
L15:
  mov    %r15,%rdi
  call   <puts@plt>
L65:
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L32
  mov    0x14(%rsp),%eax
  test   %eax,%eax
  je     L32
  test   $0x1,%al
  je     L13
  add    %eax,0xc(%rsp)
  add    $0x1,%ebx
  jmp    L15
  nopl   0x0(%rax,%rax,1)
L32:
  cmp    $0x1,%ebp
  jle    L110
  mov    %ebp,%esi
  lea    D73(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L106:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    $0x1,%eax
  cvtsi2sd %ebp,%xmm1
  lea    D89(%rip),%rdi
  cvtsi2sd %r14d,%xmm0
  divsd  %xmm1,%xmm0
  call   <printf@plt>
  mov    %ebx,%esi
  cmp    $0x1,%ebx
  jle    L43
L28:
  lea    D13(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L105:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    $0x1,%eax
  cvtsi2sdl 0xc(%rsp),%xmm0
  lea    D60(%rip),%rdi
  cvtsi2sd %ebx,%xmm1
  divsd  %xmm1,%xmm0
  call   <printf@plt>
L11:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L14
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L110:
  xor    %eax,%eax
  mov    %ebp,%esi
  lea    D80(%rip),%rdi
  call   <printf@plt>
  test   %ebp,%ebp
  jne    L106
  mov    %ebx,%esi
  cmp    $0x1,%ebx
  jg     L28
L43:
  xor    %eax,%eax
  lea    D46(%rip),%rdi
  call   <printf@plt>
  test   %ebx,%ebx
  je     L11
  jmp    L105
L14:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: data_label: D25
type_guessed: string
name: retrieve_data
arguments: data_label: D86
type_guessed: string
name: retrieve_data
arguments: data_label: D54
type_guessed: string
name: retrieve_data
arguments: data_label: D73
type_guessed: string
name: retrieve_data
arguments: data_label: D89
type_guessed: string
name: retrieve_data
arguments: data_label: D13
type_guessed: string
name: retrieve_data
arguments: data_label: D60
type_guessed: string
name: retrieve_data
arguments: data_label: D80
type_guessed: string
name: retrieve_data
arguments: data_label: D46
type_guessed: string

tool: D25: Please enter an integer (0 to quit):

tool: D86: Please enter another integer (0 to quit):

tool: D54: %d

tool: D73: You've entered %d even integers


tool: D89: The average value of the even numbers is %f


tool: D13: You've entered %d odd integers


tool: D60: The average value of the odd numbers is %f


tool: D80: You've entered %d even integer


tool: D46: You've entered %d odd integer


assistant: ```c
int main(void) {
  int odd_num, even_num, integer, even, odd;
  odd_num = even_num = even = odd = 0;
  double even_aver, odd_aver;
  printf("Please enter an integer (0 to quit):\n");
  while (scanf("%d", &integer) == 1 && integer != 0) {
    if (integer % 2 == 0) {
      even += integer;
      even_num++;
    } else {
      odd += integer;
      odd_num++;
    }
    printf("Please enter another integer (0 to quit):\n");
  }
  even_aver = (double)even / even_num;
  odd_aver = (double)odd / odd_num;
  even_num <= 1 ? printf("You've entered %d even integer\n", even_num) : printf("You've entered %d even integers\n", even_num);
  if (even_num != 0)
    printf("The average value of the even numbers is %f\n", even_aver);
  odd_num <= 1 ? printf("You've entered %d odd integer\n", odd_num) : printf("You've entered %d odd integers\n", odd_num);
  if (odd_num != 0)
    printf("The average value of the odd numbers is %f\n", odd_aver);
  return 0;
}
```