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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %r13
  lea    D2(%rip),%r13
  push   %r12
  mov    %r13,%rdi
  push   %rbp
  push   %rbx
  sub    $0xfc8,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0xfb8(%rsp)
  xor    %eax,%eax
  lea    0xc(%rsp),%rsi
  lea    0x8(%rsp),%r14
  call   <scanf@plt>
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  je     L26
  nopl   0x0(%rax)
L58:
  mov    %r14,%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  cmp    $0xffffffff,%eax
  je     L26
  mov    0x8(%rsp),%ecx
  test   %ecx,%ecx
  jle    L103
  xor    %ebx,%ebx
  xor    %r15d,%r15d
  lea    0x10(%rsp),%r12
  nopw   0x0(%rax,%rax,1)
L67:
  lea    (%r12,%rbx,4),%rsi
  mov    %r13,%rdi
  mov    %r12,%rbp
  call   <scanf@plt>
  mov    0x8(%rsp),%ecx
  add    (%r12,%rbx,4),%r15d
  add    $0x1,%rbx
  cmp    %ebx,%ecx
  jg     L67
  mov    %r15d,%eax
  pxor   %xmm4,%xmm4
  cltd
  idiv   %ecx
  cvtsi2ss %eax,%xmm4
  test   %ecx,%ecx
  jle    L103
  lea    -0x1(%rcx),%eax
  cmp    $0x2,%eax
  jbe    L55
  mov    %ecx,%eax
  movaps %xmm4,%xmm3
  pxor   %xmm0,%xmm0
  shr    $0x2,%eax
  shufps $0x0,%xmm3,%xmm3
  sub    $0x1,%eax
  shl    $0x4,%rax
  lea    0x20(%rsp,%rax,1),%rax
  nopl   (%rax)
L33:
  movaps %xmm3,%xmm1
  cvtdq2ps 0x0(%rbp),%xmm2
  add    $0x10,%rbp
  cmpltps %xmm2,%xmm1
  psubd  %xmm1,%xmm0
  cmp    %rbp,%rax
  jne    L33
  movdqa %xmm0,%xmm1
  mov    %ecx,%edx
  psrldq $0x8,%xmm1
  and    $0xfffffffc,%edx
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%eax
  test   $0x3,%cl
  je     L25
L76:
  movslq %edx,%rsi
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x10(%rsp,%rsi,4),%xmm0
  xor    %esi,%esi
  comiss %xmm4,%xmm0
  seta   %sil
  add    %esi,%eax
  lea    0x1(%rdx),%esi
  cmp    %esi,%ecx
  jle    L25
  movslq %esi,%rsi
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x10(%rsp,%rsi,4),%xmm0
  xor    %esi,%esi
  comiss %xmm4,%xmm0
  seta   %sil
  add    $0x2,%edx
  add    %esi,%eax
  cmp    %edx,%ecx
  jle    L25
  movslq %edx,%rdx
  pxor   %xmm0,%xmm0
  cvtsi2ssl 0x10(%rsp,%rdx,4),%xmm0
  xor    %edx,%edx
  comiss %xmm4,%xmm0
  seta   %dl
  add    %edx,%eax
L25:
  pxor   %xmm0,%xmm0
  cvtsi2ss %eax,%xmm0
  mulss  D23(%rip),%xmm0
L1:
  pxor   %xmm1,%xmm1
  lea    D18(%rip),%rdi
  cvtsi2ss %ecx,%xmm1
  divss  %xmm1,%xmm0
  call   <printf@plt>
  mov    0xc(%rsp),%eax
  lea    -0x1(%rax),%edx
  mov    %edx,0xc(%rsp)
  test   %eax,%eax
  jne    L58
L26:
  mov    0xfb8(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L28
  add    $0xfc8,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nop
L103:
  pxor   %xmm0,%xmm0
  jmp    L1
L55:
  xor    %eax,%eax
  xor    %edx,%edx
  jmp    L76
L28:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: retrieve_data
arguments: tag: D2
data_type: string
name: retrieve_data
arguments: tag: D23
data_type: byte[4]
name: retrieve_data
arguments: tag: D18
data_type: string

tool: D2: %d

tool: {"D23": [0x00,0x00,0xc8,0x42]}

tool: D18: %.3f%%


assistant: ```c
int main() {
  int n, m, i, sum, g[1000], c;
  float avg;
  scanf("%d", &m);
  while (m--) {
    if (scanf("%d", &n) == -1)
      break;
    sum = c = 0;
    for (i = 0; i < n; i++) {
      scanf("%d", &g[i]);
      sum += g[i];
    }
    avg = sum / n;
    for (i = 0; i < n; i++)
      if (g[i] > avg)
        c++;
    printf("%.3f%%\n", ((float)c) * 100 / n);
  }
  return 0;
}
```