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

```asm
<main>:
  endbr64
  push   %r14
  lea    D0(%rip),%r14
  push   %r13
  lea    D50(%rip),%r13
  push   %r12
  push   %rbp
  xor    %ebp,%ebp
  push   %rbx
  xor    %ebx,%ebx
  add    $0xffffffffffffff80,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x78(%rsp)
  xor    %eax,%eax
  mov    %rsp,%r12
  nopl   (%rax)
L32:
  mov    %ebx,%esi
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    (%r12,%rbx,4),%rsi
  mov    %r13,%rdi
  call   <scanf@plt>
  add    (%r12,%rbx,4),%ebp
  add    $0x1,%rbx
  cmp    $0x1e,%rbx
  jne    L32
  movslq %ebp,%rbx
  lea    D11(%rip),%rdi
  xor    %eax,%eax
  imul   $0xffffffff88888889,%rbx,%rbx
  shr    $0x20,%rbx
  add    %ebp,%ebx
  sar    $0x1f,%ebp
  sar    $0x4,%ebx
  sub    %ebp,%ebx
  mov    %ebx,%esi
  call   <printf@plt>
  movd   %ebx,%xmm7
  pxor   %xmm3,%xmm3
  pshufd $0x0,%xmm7,%xmm2
  movdqa %xmm2,%xmm6
  movdqa %xmm2,%xmm4
  movdqa %xmm2,%xmm1
  pcmpgtd (%rsp),%xmm6
  pcmpgtd 0x10(%rsp),%xmm1
  movdqa %xmm2,%xmm5
  pcmpeqd (%rsp),%xmm4
  pcmpeqd 0x10(%rsp),%xmm5
  movdqa %xmm6,%xmm0
  pcmpeqd %xmm3,%xmm0
  pand   %xmm0,%xmm4
  movdqa %xmm1,%xmm0
  pcmpeqd %xmm3,%xmm0
  pand   %xmm5,%xmm0
  movdqa D4(%rip),%xmm5
  pand   %xmm5,%xmm1
  pand   %xmm5,%xmm0
  psubd  %xmm6,%xmm1
  movdqa %xmm2,%xmm6
  psubd  %xmm4,%xmm0
  pcmpgtd 0x20(%rsp),%xmm6
  movdqa %xmm2,%xmm4
  pcmpeqd 0x20(%rsp),%xmm4
  movdqa %xmm6,%xmm5
  psubd  %xmm6,%xmm1
  movdqa %xmm2,%xmm6
  pcmpeqd %xmm3,%xmm5
  pcmpgtd 0x30(%rsp),%xmm6
  pand   %xmm5,%xmm4
  movdqa %xmm6,%xmm5
  psubd  %xmm6,%xmm1
  psubd  %xmm4,%xmm0
  movdqa %xmm2,%xmm4
  movdqa %xmm2,%xmm6
  pcmpeqd %xmm3,%xmm5
  pcmpeqd 0x30(%rsp),%xmm4
  pcmpgtd 0x40(%rsp),%xmm6
  pand   %xmm5,%xmm4
  psubd  %xmm4,%xmm0
  movdqa %xmm6,%xmm5
  movdqa %xmm2,%xmm4
  pcmpeqd %xmm3,%xmm5
  pcmpeqd 0x40(%rsp),%xmm4
  psubd  %xmm6,%xmm1
  movdqa %xmm2,%xmm6
  pcmpgtd 0x50(%rsp),%xmm6
  pand   %xmm5,%xmm4
  psubd  %xmm4,%xmm0
  movdqa %xmm2,%xmm4
  movdqa %xmm6,%xmm5
  pcmpeqd 0x50(%rsp),%xmm4
  psubd  %xmm6,%xmm1
  pcmpeqd %xmm3,%xmm5
  pand   %xmm5,%xmm4
  psubd  %xmm4,%xmm0
  movdqa %xmm2,%xmm4
  pcmpgtd 0x60(%rsp),%xmm4
  pcmpeqd 0x60(%rsp),%xmm2
  pcmpeqd %xmm4,%xmm3
  psubd  %xmm4,%xmm1
  pand   %xmm2,%xmm3
  movdqa %xmm1,%xmm2
  psrldq $0x8,%xmm2
  psubd  %xmm3,%xmm0
  paddd  %xmm2,%xmm1
  movdqa %xmm1,%xmm2
  psrldq $0x4,%xmm2
  paddd  %xmm2,%xmm1
  movd   %xmm1,%edx
  movdqa %xmm0,%xmm1
  psrldq $0x8,%xmm1
  paddd  %xmm1,%xmm0
  movdqa %xmm0,%xmm1
  psrldq $0x4,%xmm1
  paddd  %xmm1,%xmm0
  movd   %xmm0,%esi
  cmp    0x70(%rsp),%ebx
  jle    L43
  add    $0x1,%edx
L58:
  cmp    0x74(%rsp),%ebx
  jle    L24
  add    $0x1,%edx
L57:
  lea    D49(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    D29(%rip),%rdi
  call   <system@plt>
  mov    0x78(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L51
  sub    $0xffffffffffffff80,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  ret
L43:
  jne    L58
  add    $0x1,%esi
  jmp    L58
L24:
  jne    L57
  add    $0x1,%esi
  jmp    L57
L51:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: unpack_data
arguments: data_tag: D0
type_guessed: string
name: unpack_data
arguments: data_tag: D50
type_guessed: string
name: unpack_data
arguments: data_tag: D11
type_guessed: string
name: unpack_data
arguments: data_tag: D4
type_guessed: byte[16]
name: unpack_data
arguments: data_tag: D49
type_guessed: string
name: unpack_data
arguments: data_tag: D29
type_guessed: string

tool: D0: Estatura [%d]= 


tool: D50: %d

tool: D11: La Estatura promedio es %d


tool: {"D4": [0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x01,0x00,0x00,0x00]}

tool: D49: Las Estaturas igual a la estatura promedio son %d 
y las estaturas menores a la promedio son %d


tool: D29: pause

assistant: ```c
int main() {
  int ESTATURA[30], i, pesototal, promedio, menor, igual;
  pesototal = 0;
  for (i = 0; i < 30; i++) {
    printf("Estatura [%d]= \n", i);
    scanf("%d", &ESTATURA[i]);
    pesototal = pesototal + ESTATURA[i];
  }
  promedio = pesototal / 30;
  printf("La Estatura promedio es %d\n", promedio);
  menor = 0;
  igual = 0;
  for (i = 0; i < 30; i++) {
    if (ESTATURA[i] < promedio) {
      menor++;
    }
    if (ESTATURA[i] == promedio) {
      igual++;
    }
  }
  printf("Las Estaturas igual a la estatura promedio son %d \ny las estaturas menores a la promedio son %d\n", igual, menor);
  system("pause");
  return 0;
}
```