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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  movl   $0x0,-0x1c(%rbp)
  mov    -0x1c(%rbp),%eax
  mov    %eax,-0x20(%rbp)
  mov    -0x20(%rbp),%eax
  mov    %eax,-0x24(%rbp)
  mov    -0x24(%rbp),%eax
  mov    %eax,-0x28(%rbp)
  lea    D13(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  jmp    L101
L32:
  mov    -0x2c(%rbp),%eax
  and    $0x1,%eax
  test   %eax,%eax
  jne    L7
  mov    -0x2c(%rbp),%eax
  add    %eax,-0x20(%rbp)
  addl   $0x1,-0x24(%rbp)
  jmp    L2
L7:
  mov    -0x2c(%rbp),%eax
  add    %eax,-0x1c(%rbp)
  addl   $0x1,-0x28(%rbp)
L2:
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
L101:
  lea    -0x2c(%rbp),%rax
  mov    %rax,%rsi
  lea    D41(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  cmp    $0x1,%eax
  jne    L52
  mov    -0x2c(%rbp),%eax
  test   %eax,%eax
  jne    L32
L52:
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x20(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x24(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  pxor   %xmm0,%xmm0
  cvtsi2sdl -0x1c(%rbp),%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x28(%rbp),%xmm1
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x10(%rbp)
  cmpl   $0x1,-0x24(%rbp)
  jg     L84
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D24(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L85
L84:
  mov    -0x24(%rbp),%eax
  mov    %eax,%esi
  lea    D11(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L85:
  cmpl   $0x0,-0x24(%rbp)
  je     L8
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  lea    D27(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L8:
  cmpl   $0x1,-0x28(%rbp)
  jg     L53
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D85(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  jmp    L92
L53:
  mov    -0x28(%rbp),%eax
  mov    %eax,%esi
  lea    D34(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
L92:
  cmpl   $0x0,-0x28(%rbp)
  je     L35
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  lea    D65(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
L35:
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L28
  call   <__stack_chk_fail@plt>
L28:
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D13
datatype: string
name: extract_symbolic_data
arguments: label: D67
datatype: string
name: extract_symbolic_data
arguments: label: D41
datatype: string
name: extract_symbolic_data
arguments: label: D24
datatype: string
name: extract_symbolic_data
arguments: label: D11
datatype: string
name: extract_symbolic_data
arguments: label: D27
datatype: string
name: extract_symbolic_data
arguments: label: D85
datatype: string
name: extract_symbolic_data
arguments: label: D34
datatype: string
name: extract_symbolic_data
arguments: label: D65
datatype: string

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

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

tool: D41: %d

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


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


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


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


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


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


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;
}
```