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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D179(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D104(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x20(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0x20(%rbp),%xmm0
  pxor   %xmm2,%xmm2
  cvtss2sd %xmm0,%xmm2
  movq   %xmm2,%rax
  movq   %rax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D68(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x1c(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0x1c(%rbp),%xmm0
  pxor   %xmm3,%xmm3
  cvtss2sd %xmm0,%xmm3
  movq   %xmm3,%rax
  movq   %rax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D122(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x18(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0x18(%rbp),%xmm0
  pxor   %xmm4,%xmm4
  cvtss2sd %xmm0,%xmm4
  movq   %xmm4,%rax
  movq   %rax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D103(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x14(%rbp),%rax
  mov    %rax,%rsi
  lea    D17(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  movss  -0x14(%rbp),%xmm0
  pxor   %xmm5,%xmm5
  cvtss2sd %xmm0,%xmm5
  movq   %xmm5,%rax
  movq   %rax,%xmm0
  lea    D81(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  lea    D18(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    D150(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  movss  -0x20(%rbp),%xmm1
  movss  -0x1c(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x18(%rbp),%xmm0
  addss  %xmm0,%xmm1
  movss  -0x14(%rbp),%xmm0
  addss  %xmm1,%xmm0
  movss  %xmm0,-0x10(%rbp)
  movss  -0x10(%rbp),%xmm0
  movss  D141(%rip),%xmm1
  divss  %xmm1,%xmm0
  movss  %xmm0,-0xc(%rbp)
  lea    D146(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  pxor   %xmm6,%xmm6
  cvtss2sd -0xc(%rbp),%xmm6
  movq   %xmm6,%rax
  movq   %rax,%xmm0
  lea    D38(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L7
  call   <__stack_chk_fail@plt>
L7:
  leave
  ret
```

tool_calls: name: parse_data
arguments: label: D179
type: string
name: parse_data
arguments: label: D104
type: string
name: parse_data
arguments: label: D17
type: string
name: parse_data
arguments: label: D81
type: string
name: parse_data
arguments: label: D68
type: string
name: parse_data
arguments: label: D122
type: string
name: parse_data
arguments: label: D103
type: string
name: parse_data
arguments: label: D18
type: string
name: parse_data
arguments: label: D150
type: string
name: parse_data
arguments: label: D141
type: byte[4]
name: parse_data
arguments: label: D146
type: string
name: parse_data
arguments: label: D38
type: string

tool: D179: HORA DE COMPRAR UM VEICULO NOVO! 

tool: D104: Digite o valor do veiculo na concessionaria 1: 

tool: D17: %f

tool: D81: Valor recebido: %f 


tool: D68: Digite o valor do veiculo na concessionaria 2: 

tool: D122: Digite o valor do veiculo na concessionaria 3: 

tool: D103: Digite o valor do veiculo na concessionaria 4: 

tool: D18: Iniciando calculos... 

tool: D150: Calculando valor medio do veiculo... 

tool: {"D141": [0x00,0x00,0x80,0x40]}

tool: D146: Calculos finalizados com sucesso - 0x0. 

tool: D38: Valor medio do veiculo ix35: %f 


assistant: ```c
main() {
  float v1, v2, v3, v4, total1, total2;
  printf("HORA DE COMPRAR UM VEICULO NOVO! \n");
  printf("Digite o valor do veiculo na concessionaria 1: \n");
  scanf("%f", &v1);
  printf("Valor recebido: %f \n", v1);
  printf("Digite o valor do veiculo na concessionaria 2: \n");
  scanf("%f", &v2);
  printf("Valor recebido: %f \n", v2);
  printf("Digite o valor do veiculo na concessionaria 3: \n");
  scanf("%f", &v3);
  printf("Valor recebido: %f \n", v3);
  printf("Digite o valor do veiculo na concessionaria 4: \n");
  scanf("%f", &v4);
  printf("Valor recebido: %f \n", v4);
  printf("Iniciando calculos... \n");
  printf("Calculando valor medio do veiculo... \n");
  total1 = v1 + v2 + v3 + v4;
  total2 = total1 / 4;
  printf("Calculos finalizados com sucesso - 0x0. \n");
  printf("Valor medio do veiculo ix35: %f \n", total2);
}
```