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

```asm
<main>:
  endbr64
  push   %r13
  lea    D86(%rip),%rdi
  push   %r12
  push   %rbp
  lea    D142(%rip),%rbp
  push   %rbx
  sub    $0x28,%rsp
  mov    %fs:0x28,%rax
  mov    %rax,0x18(%rsp)
  xor    %eax,%eax
  movl   $0x0,0x8(%rsp)
  movl   $0x0,0xc(%rsp)
  movl   $0x0,0x10(%rsp)
  movl   $0x0,0x14(%rsp)
  call   <printf@plt>
  lea    0x8(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D125(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0xc(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D19(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  lea    0x10(%rsp),%rsi
  mov    %rbp,%rdi
  call   <scanf@plt>
  lea    D140(%rip),%rdi
  xor    %eax,%eax
  call   <printf@plt>
  mov    %rbp,%rdi
  lea    0x14(%rsp),%rsi
  call   <scanf@plt>
  mov    0x8(%rsp),%esi
  pxor   %xmm1,%xmm1
  movsd  D66(%rip),%xmm5
  lea    D182(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  movapd %xmm5,%xmm0
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm5,%xmm1
  call   <printf@plt>
  mov    0xc(%rsp),%esi
  pxor   %xmm1,%xmm1
  movsd  D103(%rip),%xmm4
  lea    D69(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  movapd %xmm4,%xmm0
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm4,%xmm1
  call   <printf@plt>
  mov    0x10(%rsp),%esi
  pxor   %xmm1,%xmm1
  movsd  D161(%rip),%xmm3
  lea    D14(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  movapd %xmm3,%xmm0
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm3,%xmm1
  call   <printf@plt>
  mov    0x14(%rsp),%esi
  pxor   %xmm1,%xmm1
  movsd  D96(%rip),%xmm2
  lea    D133(%rip),%rdi
  mov    $0x2,%eax
  cvtsi2ss %esi,%xmm1
  movapd %xmm2,%xmm0
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm2,%xmm1
  call   <printf@plt>
  mov    0x8(%rsp),%r13d
  mov    0x10(%rsp),%ebx
  xor    %eax,%eax
  mov    0xc(%rsp),%r12d
  mov    0x14(%rsp),%ebp
  lea    D37(%rip),%rdi
  lea    0x0(%r13,%r12,1),%esi
  add    %ebx,%esi
  add    %ebp,%esi
  call   <printf@plt>
  mov    D66(%rip),%rax
  pxor   %xmm0,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %r13d,%xmm0
  lea    D0(%rip),%rdi
  cvtsi2ss %r12d,%xmm1
  movq   %rax,%xmm5
  mov    D103(%rip),%rax
  movq   %rax,%xmm4
  mov    D161(%rip),%rax
  cvtss2sd %xmm0,%xmm0
  mulsd  %xmm5,%xmm0
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm4,%xmm1
  movq   %rax,%xmm3
  mov    D96(%rip),%rax
  movq   %rax,%xmm2
  mov    $0x1,%eax
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %ebx,%xmm1
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm3,%xmm1
  addsd  %xmm1,%xmm0
  pxor   %xmm1,%xmm1
  cvtsi2ss %ebp,%xmm1
  cvtss2sd %xmm1,%xmm1
  mulsd  %xmm2,%xmm1
  addsd  %xmm1,%xmm0
  cvtsd2ss %xmm0,%xmm0
  cvtss2sd %xmm0,%xmm0
  call   <printf@plt>
  mov    0x18(%rsp),%rax
  sub    %fs:0x28,%rax
  jne    L4
  add    $0x28,%rsp
  xor    %eax,%eax
  pop    %rbx
  pop    %rbp
  pop    %r12
  pop    %r13
  ret
L4:
  call   <__stack_chk_fail@plt>
```

tool_calls: name: read_data
arguments: data_label: D86
datatype: string
name: read_data
arguments: data_label: D142
datatype: string
name: read_data
arguments: data_label: D125
datatype: string
name: read_data
arguments: data_label: D19
datatype: string
name: read_data
arguments: data_label: D140
datatype: string
name: read_data
arguments: data_label: D66
datatype: f64
name: read_data
arguments: data_label: D182
datatype: string
name: read_data
arguments: data_label: D103
datatype: f64
name: read_data
arguments: data_label: D69
datatype: string
name: read_data
arguments: data_label: D161
datatype: f64
name: read_data
arguments: data_label: D14
datatype: string
name: read_data
arguments: data_label: D96
datatype: f64
name: read_data
arguments: data_label: D133
datatype: string
name: read_data
arguments: data_label: D37
datatype: string
name: read_data
arguments: data_label: D0
datatype: string

tool: D86: 
Enter Number of Box Tickets Sold: 

tool: D142: %d

tool: D125: Enter Number of Sideline Tickets Sold: 

tool: D19: Enter Number of Premium Tickets Sold: 

tool: D140: Enter Number of General Admission Tickets Sold: 

tool: D66: 250

tool: D182: 

%d Box tickets at $%1.0f each were sold for a total of: 		$%15.2f

tool: D103: 100

tool: D69: 
%d Sideline tickets at $%1.0f each were sold for a total of: 		$%15.2f

tool: D161: 50

tool: D14: 
%d Premium tickets at $%1.0f each were sold for a total of: 		$%15.2f

tool: D96: 25

tool: D133: 
%d General Admission tickets at $%1.0f each were sold for a total of: 	$%15.2f

tool: D37: 

Total number of tickets sold:		%d

tool: D0: 
Total Sale Amount:			$%1.2f



assistant: ```c
int main(void) {
  int QtyBox = 0;
  int QtySideline = 0;
  int QtyPremium = 0;
  int QtyGenAdmission = 0;
  int TotalTix = 0;
  float GrossSales = 0;
  printf("\nEnter Number of Box Tickets Sold: ");
  scanf("%d", &QtyBox);
  printf("Enter Number of Sideline Tickets Sold: ");
  scanf("%d", &QtySideline);
  printf("Enter Number of Premium Tickets Sold: ");
  scanf("%d", &QtyPremium);
  printf("Enter Number of General Admission Tickets Sold: ");
  scanf("%d", &QtyGenAdmission);
  printf("\n\n%d Box tickets at $%1.0f each were sold for a total of: \t\t$%15.2f", QtyBox, 250.00, ((float)QtyBox * 250.00));
  printf("\n%d Sideline tickets at $%1.0f each were sold for a total of: \t\t$%15.2f", QtySideline, 100.00, ((float)QtySideline * 100.00));
  printf("\n%d Premium tickets at $%1.0f each were sold for a total of: \t\t$%15.2f", QtyPremium, 50.00, ((float)QtyPremium * 50.00));
  printf("\n%d General Admission tickets at $%1.0f each were sold for a total of: \t$%15.2f", QtyGenAdmission, 25.00, ((float)QtyGenAdmission * 25.00));
  TotalTix = QtyBox + QtySideline + QtyPremium + QtyGenAdmission;
  GrossSales = ((float)QtyBox * 250.00) + ((float)QtySideline * 100.00) + ((float)QtyPremium * 50.00) + ((float)QtyGenAdmission * 25.00);
  printf("\n\nTotal number of tickets sold:\t\t%d", TotalTix);
  printf("\nTotal Sale Amount:\t\t\t$%1.2f\n\n", GrossSales);
  return 0;
}
```