user: 请将这段汇编代码片段转换成等效的C代码:

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    -0x64(%rbp),%rax
  mov    %rax,%rsi
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  mov    -0x64(%rbp),%eax
  movslq %eax,%rdx
  sub    $0x1,%rdx
  mov    %rdx,-0x48(%rbp)
  movslq %eax,%rdx
  mov    %rdx,%r14
  mov    $0x0,%r15d
  movslq %eax,%rdx
  mov    %rdx,%r12
  mov    $0x0,%r13d
  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
L54:
  cmp    %rdx,%rsp
  je     L36
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L54
L36:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L62
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L62:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x5c(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x54(%rbp)
  movl   $0x0,-0x50(%rbp)
  jmp    L27
L23:
  mov    -0x50(%rbp),%eax
  mov    %eax,%esi
  lea    D67(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    -0x50(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D49(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <scanf@plt>
  cmpl   $0x0,-0x50(%rbp)
  jne    L18
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,-0x58(%rbp)
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,-0x54(%rbp)
L18:
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  comiss -0x58(%rbp),%xmm0
  jbe    L63
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,-0x58(%rbp)
L63:
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm1
  movss  -0x54(%rbp),%xmm0
  comiss %xmm1,%xmm0
  jbe    L79
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  %xmm0,-0x54(%rbp)
L79:
  mov    -0x40(%rbp),%rax
  mov    -0x50(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  movss  -0x5c(%rbp),%xmm1
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x5c(%rbp)
  addl   $0x1,-0x50(%rbp)
L27:
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x50(%rbp)
  jl     L23
  mov    -0x64(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x5c(%rbp),%xmm0
  divss  %xmm1,%xmm0
  movss  %xmm0,-0x5c(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L74
L22:
  mov    -0x40(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  movss  (%rax,%rdx,4),%xmm0
  comiss -0x5c(%rbp),%xmm0
  jb     L3
  addl   $0x1,-0x60(%rbp)
L3:
  addl   $0x1,-0x4c(%rbp)
L74:
  mov    -0x64(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L22
  pxor   %xmm0,%xmm0
  cvtss2sd -0x54(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd -0x58(%rbp),%xmm2
  movq   %xmm2,%rax
  movapd %xmm0,%xmm1
  movq   %rax,%xmm0
  lea    D32(%rip),%rax
  mov    %rax,%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  pxor   %xmm3,%xmm3
  cvtss2sd -0x5c(%rbp),%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  lea    D3(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x60(%rbp),%eax
  mov    %eax,%esi
  lea    D10(%rip),%rax
  mov    %rax,%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  mov    %rbx,%rsp
  nop
  mov    -0x38(%rbp),%rax
  sub    %fs:0x28,%rax
  je     L114
  call   <__stack_chk_fail@plt>
L114:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: unpack_data
arguments: data_label: D18
type_guessed: string
name: unpack_data
arguments: data_label: D38
type_guessed: string
name: unpack_data
arguments: data_label: D67
type_guessed: string
name: unpack_data
arguments: data_label: D49
type_guessed: string
name: unpack_data
arguments: data_label: D32
type_guessed: string
name: unpack_data
arguments: data_label: D3
type_guessed: string
name: unpack_data
arguments: data_label: D10
type_guessed: string

tool: D18: Informe quantas posicoes deseja digitar: 

tool: D38: %d

tool: D67: Informe a posicao %d: 

tool: D49: %f

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


tool: D3: Media: %.2f


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