user: Translate the below assembly code into C programming language:

```asm
<ex2>:
  endbr64
  push   %r15
  pxor   %xmm1,%xmm1
  lea    D1(%rip),%r15
  push   %r14
  lea    D38(%rip),%r14
  push   %r13
  lea    D40(%rip),%r13
  push   %r12
  lea    D94(%rip),%r12
  push   %rbp
  push   %rbx
  lea    D13(%rip),%rbx
  sub    $0x48,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  movabs $0x3f7333333f666666,%rax
  lea    0x24(%rsp),%rbp
  movss  %xmm1,0x1c(%rsp)
  movss  %xmm1,0x18(%rsp)
  movss  %xmm1,0x14(%rsp)
  movss  %xmm1,0x10(%rsp)
  mov    %rax,0x30(%rsp)
  nopl   0x0(%rax,%rax,1)
L10:
  mov    %r12,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  cmpl   $0x1869f,0x24(%rsp)
  je     L33
  mov    %r15,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x2c(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  mov    %r14,%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x28(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  pxor   %xmm2,%xmm2
  mov    0x24(%rsp),%esi
  mov    %r13,%rdi
  cvtsi2sdl 0x28(%rsp),%xmm2
  mulsd  D84(%rip),%xmm2
  movslq 0x2c(%rsp),%rax
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  movss  0x30(%rsp,%rax,4),%xmm3
  mov    $0x2,%eax
  cvtsd2ss %xmm2,%xmm2
  mulss  %xmm2,%xmm3
  movss  %xmm2,0x8(%rsp)
  cvtss2sd %xmm2,%xmm0
  movss  %xmm3,0xc(%rsp)
  cvtss2sd %xmm3,%xmm1
  call   <printf@plt>
  mov    0x2c(%rsp),%eax
  movss  0x8(%rsp),%xmm2
  test   %eax,%eax
  jne    L3
  movss  0x10(%rsp),%xmm4
  movss  0xc(%rsp),%xmm3
  addss  D24(%rip),%xmm4
  addss  0x1c(%rsp),%xmm3
  movss  %xmm4,0x10(%rsp)
  movss  %xmm3,0x1c(%rsp)
  jmp    L10
  nopl   0x0(%rax)
L3:
  movss  0x14(%rsp),%xmm5
  addss  0x18(%rsp),%xmm2
  addss  D24(%rip),%xmm5
  movss  %xmm2,0x18(%rsp)
  movss  %xmm5,0x14(%rsp)
  jmp    L10
  nopl   (%rax)
L33:
  lea    D50(%rip),%rdi
  mov    $0x1,%eax
  movss  0x18(%rsp),%xmm0
  divss  0x14(%rsp),%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  lea    D55(%rip),%rdi
  mov    $0x1,%eax
  movss  0x1c(%rsp),%xmm0
  divss  0x10(%rsp),%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L20
  add    $0x48,%rsp
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  pop    %r14
  pop    %r15
  ret
L20:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: parse_data
arguments: tag: D1
type: string
name: parse_data
arguments: tag: D38
type: string
name: parse_data
arguments: tag: D40
type: string
name: parse_data
arguments: tag: D94
type: string
name: parse_data
arguments: tag: D13
type: string
name: parse_data
arguments: tag: D84
type: f64
name: parse_data
arguments: tag: D24
type: byte[4]
name: parse_data
arguments: tag: D50
type: string
name: parse_data
arguments: tag: D55
type: string

tool: D1: Informe o sexo (0 = M, 1 = F): 

tool: D38: Informe a quantidade de horas-aula mensal: 

tool: D40: Codigo: %d
	Salario Bruto: %.2f
	Salario Liquido: %.2f


tool: D94: Informe o codigo do professor(a): 

tool: D13: %d

tool: D84: 38.5

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

tool: D50: Media de salario bruto de professores do sexo feminino: %.2f


tool: D55: Media de salario liquido de professores do sexo masculino: %.2f


assistant: ```c
void ex2() {
  int codigo, haula, sexo;
  float desconto[2] = {0.9, 0.95}, salariob, salariol, m = 0, f = 0, mbruto = 0, mliq = 0;
  while (1) {
    printf("Informe o codigo do professor(a): ");
    scanf("%d", &codigo);
    if (codigo == 99999)
      break;
    printf("Informe o sexo (0 = M, 1 = F): ");
    scanf("%d", &sexo);
    printf("Informe a quantidade de horas-aula mensal: ");
    scanf("%d", &haula);
    salariob = haula * 38.5;
    salariol = salariob * desconto[sexo];
    printf("Codigo: %d\n\tSalario Bruto: %.2f\n\tSalario Liquido: %.2f\n", codigo, salariob, salariol);
    if (!sexo) {
      mliq += salariol;
      m++;
    } else {
      mbruto += salariob;
      f++;
    }
  }
  printf("Media de salario bruto de professores do sexo feminino: %.2f\n", mbruto / f);
  printf("Media de salario liquido de professores do sexo masculino: %.2f\n", mliq / m);
}
```