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

```asm
<main>:
  endbr64
  push   %r15
  pxor   %xmm3,%xmm3
  lea    D26(%rip),%r15
  push   %r14
  push   %r13
  lea    D49(%rip),%r13
  push   %r12
  push   %rbp
  lea    D52(%rip),%rbp
  push   %rbx
  mov    $0x4,%ebx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  lea    0x2f(%rsp),%rax
  movl   $0x0,0x1c(%rsp)
  lea    0x30(%rsp),%r14
  movl   $0x0,0x14(%rsp)
  lea    0x34(%rsp),%r12
  mov    %rax,0x8(%rsp)
  movss  %xmm3,0x18(%rsp)
  movss  %xmm3,0x10(%rsp)
L60:
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r14,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  mov    %r13,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %r12,%rsi
  mov    %rbp,%rdi
  xor    %eax,%eax
  call   <scanf@plt>
  lea    D79(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  xor    %eax,%eax
  lea    D92(%rip),%rdi
  call   <scanf@plt>
  cmpb   $0x6d,0x2f(%rsp)
  je     L54
  movss  0x30(%rsp),%xmm0
  comiss D81(%rip),%xmm0
  jbe    L64
  movss  0x10(%rsp),%xmm2
  addl   $0x1,0x14(%rsp)
  addss  0x34(%rsp),%xmm2
  movss  %xmm2,0x10(%rsp)
L64:
  sub    $0x1,%ebx
  jne    L60
  pxor   %xmm1,%xmm1
  movss  0x18(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D10(%rip),%rdi
  cvtsi2ssl 0x1c(%rsp),%xmm1
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  pxor   %xmm1,%xmm1
  movss  0x10(%rsp),%xmm0
  cvtsi2ssl 0x14(%rsp),%xmm1
  lea    D6(%rip),%rdi
  mov    $0x1,%eax
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L34
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L54:
  movss  0x34(%rsp),%xmm0
  comiss D48(%rip),%xmm0
  jb     L64
  movss  D44(%rip),%xmm4
  comiss %xmm0,%xmm4
  jb     L64
  addss  0x18(%rsp),%xmm0
  addl   $0x1,0x1c(%rsp)
  movss  %xmm0,0x18(%rsp)
  jmp    L64
L34:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: data_tag: D26
type_guessed: string
name: parse_data
arguments: data_tag: D49
type_guessed: string
name: parse_data
arguments: data_tag: D52
type_guessed: string
name: parse_data
arguments: data_tag: D79
type_guessed: string
name: parse_data
arguments: data_tag: D92
type_guessed: string
name: parse_data
arguments: data_tag: D81
type_guessed: byte[4]
name: parse_data
arguments: data_tag: D10
type_guessed: string
name: parse_data
arguments: data_tag: D6
type_guessed: string
name: parse_data
arguments: data_tag: D48
type_guessed: byte[4]
name: parse_data
arguments: data_tag: D44
type_guessed: byte[4]

tool: D26: 
 Entre com Peso:

tool: D49: 
 Entre com salario:

tool: D52: %f

tool: D79: 
 Entre com sexo:

tool: D92:  %c

tool: {"D81": [0x00,0x00,0x48,0x42]}

tool: D10: 
 media_sal_h = %f

tool: D6: 
 soma_peso = %f

tool: {"D48": [0x00,0x00,0x7a,0x44]}

tool: {"D44": [0x00,0x80,0x3b,0x45]}

assistant: ```c
int main() {
  float peso, salario;
  char sexo;
  int i;
  float media_peso, soma_peso = 0;
  float media_sal_h, soma_sal_h = 0;
  int i_peso = 0, i_sal_h = 0;
  for (i = 1; i <= 4; i++) {
    printf("\n Entre com Peso:");
    scanf("%f", &peso);
    printf("\n Entre com salario:");
    scanf("%f", &salario);
    printf("\n Entre com sexo:");
    scanf(" %c", &sexo);
    if (sexo == 'm') {
      if ((salario >= 1000) && (salario <= 3000)) {
        soma_sal_h = soma_sal_h + salario;
        i_sal_h++;
      }
    } else {
      if (peso > 50) {
        soma_peso = soma_peso + salario;
        i_peso++;
      }
    }
  }
  printf("\n media_sal_h = %f", (float)soma_sal_h / i_sal_h);
  printf("\n soma_peso = %f", (float)soma_peso / i_peso);
  return 0;
}
```