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

```asm
<average_test>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %rbx
  sub    $0x48,%rsp
  mov    %edi,-0x44(%rbp)
  mov    %fs:0x28,%rax
  mov    %rax,-0x18(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  mov    -0x44(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x28(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r10
  mov    $0x0,%r11d
  movslq %eax,%rdx
  mov    %rdx,%r8
  mov    $0x0,%r9d
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    $0x10,%eax
  sub    $0x1,%rax
  add    %rdx,%rax
  mov    $0x10,%esi
  mov    $0x0,%edx
  div    %rsi
  imul   $0x10,%rax,%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rcx
  mov    %rsp,%rdx
  sub    %rcx,%rdx
L85:
  cmp    %rdx,%rsp
  je     L65
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L85
L65:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L30
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L30:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x20(%rbp)
  movl   $0x0,-0x40(%rbp)
  jmp    L43
L56:
  mov    -0x40(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x20(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D5(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x20(%rbp),%rax
  mov    -0x40(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  -0x38(%rbp),%xmm1
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  addl   $0x1,-0x40(%rbp)
L43:
  mov    -0x40(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L56
  pxor   %xmm1,%xmm1
  cvtsi2sdl -0x44(%rbp),%xmm1
  movsd  -0x38(%rbp),%xmm0
  divsd  %xmm1,%xmm0
  movsd  %xmm0,-0x38(%rbp)
  pxor   %xmm0,%xmm0
  movsd  %xmm0,-0x30(%rbp)
  movl   $0x0,-0x3c(%rbp)
  jmp    L40
L59:
  mov    -0x20(%rbp),%rax
  mov    -0x3c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  comisd -0x38(%rbp),%xmm0
  jbe    L74
  movsd  -0x30(%rbp),%xmm1
  movsd  D11(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x30(%rbp)
L74:
  addl   $0x1,-0x3c(%rbp)
L40:
  mov    -0x3c(%rbp),%eax
  cmp    -0x44(%rbp),%eax
  jl     L59
  pxor   %xmm2,%xmm2
  cvtsi2sdl -0x44(%rbp),%xmm2
  movsd  -0x30(%rbp),%xmm0
  movapd %xmm0,%xmm1
  divsd  %xmm2,%xmm1
  movsd  D29(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  mov    %rbx,%rsp
  movq   %xmm0,%rax
  mov    -0x18(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L18
  call   <__stack_chk_fail@plt>
L18:
  movq   %rax,%xmm0
  mov    -0x8(%rbp),%rbx
  leave
  ret
```

tool_calls: name: extract_symbolic_data
arguments: data_tag: D5
datatype: string
name: extract_symbolic_data
arguments: data_tag: D11
datatype: f32[2]
name: extract_symbolic_data
arguments: data_tag: D29
datatype: f32[2]

tool: D5: %d

tool: {"D11": [0.0,1.875]}

tool: {"D29": [0.0,3.390625]}

assistant: ```c
double average_test(int count) {
  double average = 0;
  int arr[count];
  for (int i = 0; i < count; i++) {
    scanf("%d", arr + i);
    average += arr[i];
  }
  average /= count;
  double counter = 0;
  for (int i = 0; i < count; i++) {
    if (arr[i] > average)
      counter++;
  }
  return (counter / count) * 100;
}
```