user: What is the c source code of the assembly code below:

```asm
<main>:
  endbr64
  push   %r15
  lea    D51(%rip),%rdi
  lea    D64(%rip),%r15
  push   %r14
  xor    %r14d,%r14d
  push   %r13
  push   %r12
  lea    D23(%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    L43
  nopw   0x0(%rax,%rax,1)
L46:
  add    %eax,%r14d
  add    $0x1,%ebp
L23:
  mov    %r15,%rdi
  call   <puts@plt>
L43:
  mov    %r13,%rsi
  mov    %r12,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L37
  mov    0x14(%rsp),%eax
  test   %eax,%eax
  je     L37
  test   $0x1,%al
  je     L46
  add    %eax,0xc(%rsp)
  add    $0x1,%ebx
  jmp    L23
  nopl   0x0(%rax,%rax,1)
L37:
  cmp    $0x1,%ebp
  jle    L18
  mov    %ebp,%esi
  lea    D2(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L12:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    $0x1,%eax
  cvtsi2sd %ebp,%xmm1
  lea    D72(%rip),%rdi
  cvtsi2sd %r14d,%xmm0
  divsd  %xmm1,%xmm0
  call   <printf@plt>
  mov    %ebx,%esi
  cmp    $0x1,%ebx
  jle    L3
L15:
  lea    D41(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
L20:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  mov    $0x1,%eax
  cvtsi2sdl 0xc(%rsp),%xmm0
  lea    D69(%rip),%rdi
  cvtsi2sd %ebx,%xmm1
  divsd  %xmm1,%xmm0
  call   <printf@plt>
L45:
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L94
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L18:
  xor    %eax,%eax
  mov    %ebp,%esi
  lea    D24(%rip),%rdi
  call   <printf@plt>
  test   %ebp,%ebp
  jne    L12
  mov    %ebx,%esi
  cmp    $0x1,%ebx
  jg     L15
L3:
  xor    %eax,%eax
  lea    D57(%rip),%rdi
  call   <printf@plt>
  test   %ebx,%ebx
  je     L45
  jmp    L20
L94:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D51
data_type: string
name: read_data
arguments: data_label: D64
data_type: string
name: read_data
arguments: data_label: D23
data_type: string
name: read_data
arguments: data_label: D2
data_type: string
name: read_data
arguments: data_label: D72
data_type: string
name: read_data
arguments: data_label: D41
data_type: string
name: read_data
arguments: data_label: D69
data_type: string
name: read_data
arguments: data_label: D24
data_type: string
name: read_data
arguments: data_label: D57
data_type: string

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

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

tool: D23: %d

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


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


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


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


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


tool: D57: 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;
}
```