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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  push   %r15
  push   %r14
  push   %r13
  push   %r12
  push   %rbx
  sub    $0x38,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x38(%rbp)
  xor    %eax,%eax
  mov    %rsp,%rax
  mov    %rax,%rbx
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x58(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x54(%rbp)
  pxor   %xmm0,%xmm0
  movss  %xmm0,-0x50(%rbp)
  lea    -0x5c(%rbp),%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x5c(%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
L43:
  cmp    %rdx,%rsp
  je     L44
  sub    $0x1000,%rsp
  orq    $0x0,0xff8(%rsp)
  jmp    L43
L44:
  mov    %rax,%rdx
  and    $0xfff,%edx
  sub    %rdx,%rsp
  mov    %rax,%rdx
  and    $0xfff,%edx
  test   %rdx,%rdx
  je     L70
  and    $0xfff,%eax
  sub    $0x8,%rax
  add    %rsp,%rax
  orq    $0x0,(%rax)
L70:
  mov    %rsp,%rax
  add    $0x3,%rax
  shr    $0x2,%rax
  shl    $0x2,%rax
  mov    %rax,-0x40(%rbp)
  movl   $0x0,-0x4c(%rbp)
  jmp    L8
L24:
  mov    -0x4c(%rbp),%eax
  cltq
  lea    0x0(,%rax,4),%rdx
  mov    -0x40(%rbp),%rax
  add    %rdx,%rax
  mov    %rax,%rsi
  lea    D55(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x40(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  jle    L5
  movss  -0x58(%rbp),%xmm1
  movss  D7(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x58(%rbp)
L5:
  mov    -0x40(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  jns    L42
  movss  -0x54(%rbp),%xmm1
  movss  D7(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x54(%rbp)
L42:
  mov    -0x40(%rbp),%rax
  mov    -0x4c(%rbp),%edx
  movslq %edx,%rdx
  mov    (%rax,%rdx,4),%eax
  test   %eax,%eax
  jne    L9
  movss  -0x50(%rbp),%xmm1
  movss  D7(%rip),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x50(%rbp)
L9:
  addl   $0x1,-0x4c(%rbp)
L8:
  mov    -0x5c(%rbp),%eax
  cmp    %eax,-0x4c(%rbp)
  jl     L24
  mov    -0x5c(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x50(%rbp),%xmm0
  movaps %xmm0,%xmm2
  divss  %xmm1,%xmm2
  mov    -0x5c(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x54(%rbp),%xmm0
  movaps %xmm0,%xmm3
  divss  %xmm1,%xmm3
  mov    -0x5c(%rbp),%eax
  pxor   %xmm1,%xmm1
  cvtsi2ss %eax,%xmm1
  movss  -0x58(%rbp),%xmm0
  divss  %xmm1,%xmm0
  movd   %xmm0,%eax
  movaps %xmm3,%xmm1
  movd   %eax,%xmm0
  lea    D26(%rip),%rax
  mov    %rax,%rdi
  call   <printf@plt>
  mov    $0x0,%eax
  mov    %rbx,%rsp
  mov    -0x38(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L14
  call   <__stack_chk_fail@plt>
L14:
  lea    -0x28(%rbp),%rsp
  pop    %rbx
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  pop    %rbp
  ret
```

tool_calls: name: extract_symbolic_data
arguments: label: D55
type_guessed: string
name: extract_symbolic_data
arguments: label: D7
type_guessed: byte[4]
name: extract_symbolic_data
arguments: label: D26
type_guessed: string

tool: D55: %d

tool: {"D7": [0x00,0x00,0x80,0x3f]}

tool: D26: %.6f
%.6f
%.6f


assistant: ```c
int main() {
  int n;
  float pos = 0, neg = 0, zero = 0;
  scanf("%d", &n);
  int arr[n];
  for (int arr_i = 0; arr_i < n; arr_i++) {
    scanf("%d", &arr[arr_i]);
    if (arr[arr_i] > 0)
      pos++;
    if (arr[arr_i] < 0)
      neg++;
    if (arr[arr_i] == 0)
      zero++;
  }
  printf("%.6f\n%.6f\n%.6f\n", pos / n, neg / n, zero / n);
  return 0;
}
```