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

```asm
<main>:
  endbr64
  push   %r15
  pxor   %xmm3,%xmm3
  lea    D30(%rip),%r15
  push   %r14
  push   %r13
  lea    D40(%rip),%r13
  push   %r12
  push   %rbp
  lea    D49(%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)
L52:
  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    D88(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    0x8(%rsp),%rsi
  xor    %eax,%eax
  lea    D89(%rip),%rdi
  call   <scanf@plt>
  cmpb   $0x6d,0x2f(%rsp)
  je     L51
  movss  0x30(%rsp),%xmm0
  comiss D53(%rip),%xmm0
  jbe    L12
  movss  0x10(%rsp),%xmm2
  addl   $0x1,0x14(%rsp)
  addss  0x34(%rsp),%xmm2
  movss  %xmm2,0x10(%rsp)
L12:
  sub    $0x1,%ebx
  jne    L52
  pxor   %xmm1,%xmm1
  movss  0x18(%rsp),%xmm0
  mov    $0x1,%eax
  lea    D5(%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    D83(%rip),%rdi
  mov    $0x1,%eax
  divss  %xmm1,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L40
  add    $0x48,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
  nopl   0x0(%rax)
L51:
  movss  0x34(%rsp),%xmm0
  comiss D42(%rip),%xmm0
  jb     L12
  movss  D24(%rip),%xmm4
  comiss %xmm0,%xmm4
  jb     L12
  addss  0x18(%rsp),%xmm0
  addl   $0x1,0x1c(%rsp)
  movss  %xmm0,0x18(%rsp)
  jmp    L12
L40:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: extract_symbolic_data
arguments: tag: D30
datatype: string
name: extract_symbolic_data
arguments: tag: D40
datatype: string
name: extract_symbolic_data
arguments: tag: D49
datatype: string
name: extract_symbolic_data
arguments: tag: D88
datatype: string
name: extract_symbolic_data
arguments: tag: D89
datatype: string
name: extract_symbolic_data
arguments: tag: D53
datatype: byte[4]
name: extract_symbolic_data
arguments: tag: D5
datatype: string
name: extract_symbolic_data
arguments: tag: D83
datatype: string
name: extract_symbolic_data
arguments: tag: D42
datatype: byte[4]
name: extract_symbolic_data
arguments: tag: D24
datatype: byte[4]

tool: D30: 
 Entre com Peso:

tool: D40: 
 Entre com salario:

tool: D49: %f

tool: D88: 
 Entre com sexo:

tool: D89:  %c

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

tool: D5: 
 media_sal_h = %f

tool: D83: 
 soma_peso = %f

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

tool: {"D24": [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;
}
```