user: Converte this assembly snippet into its equivalent C code:

```asm
<main>:
  endbr64
  push   %rbp
  lea    D68(%rip),%rdi
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    -0x3c(%rbp),%rsi
  lea    D58(%rip),%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  movslq -0x3c(%rbp),%rax
  mov    %rsp,%rsi
  mov    %rax,%rdx
  lea    0xf(,%rax,4),%rax
  mov    %rax,%rcx
  and    $0xfffffffffffff000,%rax
  sub    %rax,%rsi
  and    $0xfffffffffffffff0,%rcx
  cmp    %rsi,%rsp
  je     L53
L104:
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  cmp    %rsi,%rsp
  jne    L104
L53:
  and    $0xfff,%ecx
  sub    %rcx,%rsp
  test   %rcx,%rcx
  jne    L21
L57:
  mov    %rsp,%r12
  test   %edx,%edx
  jle    L90
  pxor   %xmm1,%xmm1
  xor    %ebx,%ebx
  lea    D35(%rip),%r15
  movss  %xmm1,-0x4c(%rbp)
  movaps %xmm1,%xmm0
  jmp    L71
  nopw   0x0(%rax,%rax,1)
L87:
  movss  (%r12),%xmm1
  movaps %xmm1,%xmm2
  movss  %xmm1,-0x4c(%rbp)
L115:
  movaps %xmm2,%xmm4
  mov    -0x3c(%rbp),%eax
  add    $0x1,%rbx
  addss  %xmm2,%xmm0
  minss  %xmm1,%xmm4
  movaps %xmm4,%xmm1
  cmp    %ebx,%eax
  jle    L23
L71:
  mov    %ebx,%esi
  mov    %r15,%rdi
  xor    %eax,%eax
  movss  %xmm0,-0x48(%rbp)
  movss  %xmm1,-0x44(%rbp)
  mov    %r12,%r14
  call   <printf@plt>
  xor    %eax,%eax
  lea    (%r12,%rbx,4),%rsi
  lea    D46(%rip),%rdi
  call   <scanf@plt>
  test   %rbx,%rbx
  movss  -0x44(%rbp),%xmm1
  movss  -0x48(%rbp),%xmm0
  je     L87
  movss  (%r12,%rbx,4),%xmm2
  movaps %xmm2,%xmm5
  maxss  -0x4c(%rbp),%xmm5
  movss  %xmm5,-0x4c(%rbp)
  jmp    L115
  xchg   %ax,%ax
L23:
  pxor   %xmm3,%xmm3
  movaps %xmm0,%xmm2
  cvtsi2ss %eax,%xmm3
  divss  %xmm3,%xmm2
  test   %eax,%eax
  jle    L56
  lea    (%r12,%rax,4),%rax
  nopw   0x0(%rax,%rax,1)
L64:
  movss  (%r14),%xmm0
  comiss %xmm2,%xmm0
  sbb    $0xffffffff,%r13d
  add    $0x4,%r14
  cmp    %rax,%r14
  jne    L64
L56:
  lea    D37(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x2,%eax
  movss  %xmm2,-0x44(%rbp)
  cvtss2sd -0x4c(%rbp),%xmm0
  cvtss2sd %xmm1,%xmm1
  call   <printf@plt>
  movss  -0x44(%rbp),%xmm2
  lea    D60(%rip),%rdi
  pxor   %xmm0,%xmm0
  mov    $0x1,%eax
  cvtss2sd %xmm2,%xmm0
  call   <printf@plt>
  xor    %eax,%eax
  mov    %r13d,%esi
  lea    D40(%rip),%rdi
  call   <printf@plt>
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  jne    L75
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
L21:
  orq    $0x0,-0x8(%rsp,%rcx,1)
  jmp    L57
L90:
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %edx,%xmm0
  movaps %xmm1,%xmm2
  movss  %xmm1,-0x4c(%rbp)
  divss  %xmm0,%xmm2
  jmp    L56
L75:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D68
data_type: string
name: read_data
arguments: data_label: D58
data_type: string
name: read_data
arguments: data_label: D35
data_type: string
name: read_data
arguments: data_label: D46
data_type: string
name: read_data
arguments: data_label: D37
data_type: string
name: read_data
arguments: data_label: D60
data_type: string
name: read_data
arguments: data_label: D40
data_type: string

tool: D68: Informe quantas posicoes deseja digitar: 

tool: D58: %d

tool: D35: Informe a posicao %d: 

tool: D46: %f

tool: D37: Maior: %.2f
Menor: %.2f


tool: D60: Media: %.2f


tool: D40: Numeros maiores ou iguais a media: %d


assistant: ```c
void main() {
  int n, vzsMaior;
  printf("Informe quantas posicoes deseja digitar: ");
  scanf("%d", &n);
  float array[n], media = 0, maior = 0, menor = 0;
  for (int i = 0; i < n; i++) {
    printf("Informe a posicao %d: ", i);
    scanf("%f", &array[i]);
    if (i == 0) {
      maior = array[i];
      menor = array[i];
    }
    if (maior < array[i]) {
      maior = array[i];
    }
    if (menor > array[i]) {
      menor = array[i];
    }
    media += array[i];
  }
  media /= n;
  for (int i = 0; i < n; i++) {
    if (array[i] >= media) {
      vzsMaior++;
    }
  }
  printf("Maior: %.2f\nMenor: %.2f\n", maior, menor);
  printf("Media: %.2f\n", media);
  printf("Numeros maiores ou iguais a media: %d\n", vzsMaior);
}
```