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

```asm
<main>:
  endbr64
  push   %r15
  push   %r14
  push   %rbx
  sub    $0x20,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  lea    D72(%rip),%rdi
  call   <printf@plt>
  mov    %rsp,%rsi
  lea    D18(%rip),%rbx
  mov    %rbx,%rdi
  call   <scanf@plt>
  movsd  (%rsp),%xmm0
  call   <ucret_hesapla@plt>
  movq   %xmm0,%r14
  lea    D24(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movsd  0x8(%rsp),%xmm0
  call   <ucret_hesapla@plt>
  movq   %xmm0,%r15
  lea    D11(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbx,%rdi
  call   <scanf@plt>
  movsd  0x10(%rsp),%xmm0
  call   <ucret_hesapla@plt>
  movq   %xmm0,%rbx
  lea    D33(%rip),%rcx
  lea    D68(%rip),%rdx
  lea    D61(%rip),%rsi
  lea    D7(%rip),%rdi
  mov    $0x0,%eax
  call   <printf@plt>
  movq   %r14,%xmm1
  movsd  (%rsp),%xmm0
  lea    D115(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movq   %r15,%xmm1
  movsd  0x8(%rsp),%xmm0
  lea    D105(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movq   %rbx,%xmm1
  movsd  0x10(%rsp),%xmm0
  lea    D52(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movq   %r14,%xmm1
  movq   %r15,%xmm2
  addsd  %xmm2,%xmm1
  movq   %rbx,%xmm3
  addsd  %xmm3,%xmm1
  movsd  (%rsp),%xmm0
  addsd  0x8(%rsp),%xmm0
  addsd  0x10(%rsp),%xmm0
  cvttsd2si %xmm0,%esi
  movapd %xmm1,%xmm0
  lea    D41(%rip),%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L9
  mov    $0x0,%eax
  add    $0x20,%rsp
  pop    %rbx
  pop    %r14
  pop    %r15
  ret
L9:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: label: D72
type: string
name: read_data
arguments: label: D18
type: string
name: read_data
arguments: label: D24
type: string
name: read_data
arguments: label: D11
type: string
name: read_data
arguments: label: D33
type: string
name: read_data
arguments: label: D68
type: string
name: read_data
arguments: label: D61
type: string
name: read_data
arguments: label: D7
type: string
name: read_data
arguments: label: D115
type: string
name: read_data
arguments: label: D105
type: string
name: read_data
arguments: label: D52
type: string
name: read_data
arguments: label: D41
type: string

tool: D72: Birinci arabanin park saatini giriniz: 

tool: D18: %lf

tool: D24: Ikinci arabanin park saatini giriniz: 

tool: D11: Ucuncu arabanin park saatini giriniz: 

tool: D33: Ucret


tool: D68: Saat

tool: D61: Araba

tool: D7: %5s%10s%10s

tool: D115: 1 %13.1f %8.2f


tool: D105: 2 %13.1f %8.2f


tool: D52: 3 %13.1f %8.2f


tool: D41: Toplam %8d %8.2f

assistant: ```c
int main() {
  double birinci_araba_ucret, ikinci_araba_ucret, ucuncu_araba_ucret;
  double birinci_araba_saat, ikinci_araba_saat, ucuncu_araba_saat;
  printf("Birinci arabanin park saatini giriniz: ");
  scanf("%lf", &birinci_araba_saat);
  birinci_araba_ucret = ucret_hesapla(birinci_araba_saat);
  printf("Ikinci arabanin park saatini giriniz: ");
  scanf("%lf", &ikinci_araba_saat);
  ikinci_araba_ucret = ucret_hesapla(ikinci_araba_saat);
  printf("Ucuncu arabanin park saatini giriniz: ");
  scanf("%lf", &ucuncu_araba_saat);
  ucuncu_araba_ucret = ucret_hesapla(ucuncu_araba_saat);
  printf("%5s%10s%10s", "Araba", "Saat", "Ucret\n");
  printf("1 %13.1f %8.2f\n", birinci_araba_saat, birinci_araba_ucret);
  printf("2 %13.1f %8.2f\n", ikinci_araba_saat, ikinci_araba_ucret);
  printf("3 %13.1f %8.2f\n", ucuncu_araba_saat, ucuncu_araba_ucret);
  int toplam_saat;
  double toplam_ucret;
  toplam_saat = birinci_araba_saat + ikinci_araba_saat + ucuncu_araba_saat;
  toplam_ucret = birinci_araba_ucret + ikinci_araba_ucret + ucuncu_araba_ucret;
  printf("Toplam %8d %8.2f", toplam_saat, toplam_ucret);
  return 0;
}
```