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

```asm
<main>:
  endbr64
  push   %rbp
  lea    D31(%rip),%rdi
  lea    D104(%rip),%rbp
  sub    $0x40,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x38(%rsp)
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x20(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movsd  0x20(%rsp),%xmm0
  call   <ucret_hesapla@plt>
  lea    D34(%rip),%rdi
  xor    %eax,%eax
  movsd  %xmm0,0x8(%rsp)
  call   <printf@plt>
  lea    0x28(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movsd  0x28(%rsp),%xmm0
  call   <ucret_hesapla@plt>
  lea    D17(%rip),%rdi
  xor    %eax,%eax
  movsd  %xmm0,0x10(%rsp)
  call   <printf@plt>
  lea    0x30(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  movsd  0x30(%rsp),%xmm0
  call   <ucret_hesapla@plt>
  lea    D25(%rip),%rsi
  xor    %eax,%eax
  lea    D60(%rip),%rcx
  lea    D7(%rip),%rdx
  lea    D32(%rip),%rdi
  movsd  %xmm0,0x18(%rsp)
  call   <printf@plt>
  movsd  0x8(%rsp),%xmm1
  movsd  0x20(%rsp),%xmm0
  lea    D68(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movsd  0x10(%rsp),%xmm1
  movsd  0x28(%rsp),%xmm0
  lea    D98(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movsd  0x18(%rsp),%xmm1
  movsd  0x30(%rsp),%xmm0
  lea    D24(%rip),%rdi
  mov    $0x2,%eax
  call   <printf@plt>
  movsd  0x20(%rsp),%xmm1
  addsd  0x28(%rsp),%xmm1
  lea    D2(%rip),%rdi
  addsd  0x30(%rsp),%xmm1
  movsd  0x8(%rsp),%xmm0
  mov    $0x1,%eax
  addsd  0x10(%rsp),%xmm0
  addsd  0x18(%rsp),%xmm0
  cvttsd2si %xmm1,%esi
  call   <printf@plt>
  mov    0x38(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L1
  add    $0x40,%rsp
  xor    %eax,%eax
  pop    %rbp
  ret
L1:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: disassemble_data
arguments: data_label: D31
type_guessed: string
name: disassemble_data
arguments: data_label: D104
type_guessed: string
name: disassemble_data
arguments: data_label: D34
type_guessed: string
name: disassemble_data
arguments: data_label: D17
type_guessed: string
name: disassemble_data
arguments: data_label: D25
type_guessed: string
name: disassemble_data
arguments: data_label: D60
type_guessed: string
name: disassemble_data
arguments: data_label: D7
type_guessed: string
name: disassemble_data
arguments: data_label: D32
type_guessed: string
name: disassemble_data
arguments: data_label: D68
type_guessed: string
name: disassemble_data
arguments: data_label: D98
type_guessed: string
name: disassemble_data
arguments: data_label: D24
type_guessed: string
name: disassemble_data
arguments: data_label: D2
type_guessed: string

tool: D31: Birinci arabanin park saatini giriniz: 

tool: D104: %lf

tool: D34: Ikinci arabanin park saatini giriniz: 

tool: D17: Ucuncu arabanin park saatini giriniz: 

tool: D25: Araba

tool: D60: Ucret


tool: D7: Saat

tool: D32: %5s%10s%10s

tool: D68: 1 %13.1f %8.2f


tool: D98: 2 %13.1f %8.2f


tool: D24: 3 %13.1f %8.2f


tool: D2: 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;
}
```