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

```asm
<main>:
  endbr64
  push   %rbp
  mov    %rsp,%rbp
  sub    $0x30,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,-0x8(%rbp)
  xor    %eax,%eax
  lea    D35(%rip),%rax
  mov    %rax,%rdi
  call   <puts@plt>
  lea    -0x24(%rbp),%rax
  mov    %rax,%rsi
  lea    D51(%rip),%rax
  mov    %rax,%rdi
  call   <scanf@plt>
  mov    -0x24(%rbp),%eax
  cmp    $0x28,%eax
  jg     L12
  mov    -0x24(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  pxor   %xmm0,%xmm0
  cvtsi2sd %eax,%xmm0
  movsd  %xmm0,-0x20(%rbp)
  jmp    L46
L12:
  mov    -0x24(%rbp),%edx
  mov    %edx,%eax
  shl    $0x2,%eax
  add    %edx,%eax
  add    %eax,%eax
  pxor   %xmm1,%xmm1
  cvtsi2sd %eax,%xmm1
  mov    -0x24(%rbp),%eax
  sub    $0x28,%eax
  pxor   %xmm2,%xmm2
  cvtsi2sd %eax,%xmm2
  movsd  D23(%rip),%xmm0
  mulsd  %xmm2,%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x20(%rbp)
L46:
  movsd  D26(%rip),%xmm0
  comisd -0x20(%rbp),%xmm0
  jb     L54
  movsd  -0x20(%rbp),%xmm1
  movsd  D126(%rip),%xmm0
  mulsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L3
L54:
  movsd  D79(%rip),%xmm0
  comisd -0x20(%rbp),%xmm0
  jb     L6
  movsd  -0x20(%rbp),%xmm0
  movsd  D26(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D13(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D1(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
  jmp    L3
L6:
  movsd  -0x20(%rbp),%xmm0
  movsd  D79(%rip),%xmm2
  movapd %xmm0,%xmm1
  subsd  %xmm2,%xmm1
  movsd  D130(%rip),%xmm0
  mulsd  %xmm0,%xmm1
  movsd  D115(%rip),%xmm0
  addsd  %xmm1,%xmm0
  movsd  %xmm0,-0x18(%rbp)
L3:
  movsd  -0x20(%rbp),%xmm0
  subsd  -0x18(%rbp),%xmm0
  movsd  %xmm0,-0x10(%rbp)
  mov    -0x20(%rbp),%rax
  movq   %rax,%xmm0
  lea    D69(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x18(%rbp),%rax
  movq   %rax,%xmm0
  lea    D101(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    -0x10(%rbp),%rax
  movq   %rax,%xmm0
  lea    D25(%rip),%rax
  mov    %rax,%rdi
  mov    $0x1,%eax
  call   <printf@plt>
  mov    $0x0,%eax
  mov    -0x8(%rbp),%rdx
  sub    %fs:0x28,%rdx
  je     L21
  call   <__stack_chk_fail@plt>
L21:
  leave
  ret
```

tool_calls: name: retrieve_data
arguments: data_tag: D35
type_infered: string
name: retrieve_data
arguments: data_tag: D51
type_infered: string
name: retrieve_data
arguments: data_tag: D23
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D26
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D126
type_infered: f64
name: retrieve_data
arguments: data_tag: D79
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D13
type_infered: f64
name: retrieve_data
arguments: data_tag: D1
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D130
type_infered: f64
name: retrieve_data
arguments: data_tag: D115
type_infered: byte[8]
name: retrieve_data
arguments: data_tag: D69
type_infered: string
name: retrieve_data
arguments: data_tag: D101
type_infered: string
name: retrieve_data
arguments: data_tag: D25
type_infered: string

tool: D35: How many hours do you work in a week?

tool: D51: %d

tool: {"D23": [0x00,0x00,0x00,0x00,0x00,0x00,0x2e,0x40]}

tool: {"D26": [0x00,0x00,0x00,0x00,0x00,0xc0,0x72,0x40]}

tool: D126: 0.15

tool: {"D79": [0x00,0x00,0x00,0x00,0x00,0x20,0x7c,0x40]}

tool: D13: 0.2

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

tool: D130: 0.25

tool: {"D115": [0x00,0x00,0x00,0x00,0x00,0xc0,0x52,0x40]}

tool: D69: Your gross pay: $%.2f


tool: D101: Your taxes: $%.2f


tool: D25: Your net pay: $%.2f


assistant: ```c
int main(void) {
  int hours;
  double gross, tax, net;
  printf("How many hours do you work in a week?\n");
  scanf("%d", &hours);
  if (hours <= 40)
    gross = 10 * hours;
  else
    gross = 10 * hours + 1.5 * 10 * (hours - 40);
  if (gross <= 300)
    tax = gross * 0.15;
  else if (gross <= 450)
    tax = 300 * 0.15 + (gross - 300) * 0.20;
  else
    tax = 300 * 0.15 + (450 - 300) * 0.20 + (gross - 450) * 0.25;
  net = gross - tax;
  printf("Your gross pay: $%.2f\n", gross);
  printf("Your taxes: $%.2f\n", tax);
  printf("Your net pay: $%.2f\n", net);
  return 0;
}
```