Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
//#include<math.h>
int ifcl(int p0[2],int p1[2],int p2[2],int p3[2]){
  long long x0=p1[0]-p0[0],x1=p2[0]-p0[0],x2=p3[0]-p0[0],x3=x2-x1,x4=x0-x1,x5=-x1;
  long long y0=p1[1]-p0[1],y1=p2[1]-p0[1],y2=p3[1]-p0[1],y3=y2-y1,y4=y0-y1,y5=-y1;
  long long x7=p3[0]-p1[0],y7=p3[1]-p1[1]/*,y3=y2-y1,y4=y0-y1,y5=-y1*/;
  
  long long c1=(x0*y1-y0*x1)*(x0*y2-y0*x2),c2=(x3*y4-y3*x4)*(x3*y5-y3*x5);
  long long d1=x1*(x4)+y1*(y4),d2=x2*x7+y2*y7,d3=x1*x2+y1*y2,d4=(x4)*x7+(y4)*y7;
  if(c1==0&&c2==0)return (d1<0&&d2>0&&d3>0&&d4<0)?0:1;
  return (c1<=0&&c2<=0)?1:0;
}
int main(){
  int p[4][2],n,i;
  scanf("%d",&n);
  while(n--){
    for(i=0;i<8;i++)scanf(" %d",&p[i/2][i%2]);
    printf("%d\n",ifcl(p[0],p[1],p[2],p[3]));
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ifcl
	.type	ifcl, @function
ifcl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$72, %rsp
	movq	%rdi, -168(%rbp)
	movq	%rsi, -176(%rbp)
	movq	%rdx, -184(%rbp)
	movq	%rcx, -192(%rbp)
	movq	-176(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -160(%rbp)
	movq	-184(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -152(%rbp)
	movq	-192(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -144(%rbp)
	movq	-144(%rbp), %rax
	subq	-152(%rbp), %rax
	movq	%rax, -136(%rbp)
	movq	-160(%rbp), %rax
	subq	-152(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	-152(%rbp), %rax
	negq	%rax
	movq	%rax, -120(%rbp)
	movq	-176(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -112(%rbp)
	movq	-184(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -104(%rbp)
	movq	-192(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -96(%rbp)
	movq	-96(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-112(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	-104(%rbp), %rax
	negq	%rax
	movq	%rax, -72(%rbp)
	movq	-192(%rbp), %rax
	movl	(%rax), %edx
	movq	-176(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -64(%rbp)
	movq	-192(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-176(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -56(%rbp)
	movq	-160(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	imulq	-152(%rbp), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-160(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	imulq	-144(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	imulq	%rcx, %rax
	movq	%rax, -48(%rbp)
	movq	-136(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-136(%rbp), %rax
	imulq	-72(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	imulq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	imulq	%rcx, %rax
	movq	%rax, -40(%rbp)
	movq	-152(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-144(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-152(%rbp), %rax
	imulq	-144(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-128(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-80(%rbp), %rax
	imulq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -48(%rbp)
	jne	.L2
	cmpq	$0, -40(%rbp)
	jne	.L2
	cmpq	$0, -32(%rbp)
	jns	.L3
	cmpq	$0, -24(%rbp)
	jle	.L3
	cmpq	$0, -16(%rbp)
	jle	.L3
	cmpq	$0, -8(%rbp)
	js	.L4
.L3:
	movl	$1, %eax
	jmp	.L6
.L4:
	movl	$0, %eax
	jmp	.L6
.L2:
	cmpq	$0, -48(%rbp)
	jg	.L7
	cmpq	$0, -40(%rbp)
	jg	.L7
	movl	$1, %eax
	jmp	.L6
.L7:
	movl	$0, %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ifcl, .-ifcl
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L10
.L13:
	movl	$0, -52(%rbp)
	jmp	.L11
.L12:
	movl	-52(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %esi
	movl	-52(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	leaq	-48(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L11:
	cmpl	$7, -52(%rbp)
	jle	.L12
	leaq	-48(%rbp), %rax
	leaq	24(%rax), %rcx
	leaq	-48(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-48(%rbp), %rax
	leaq	8(%rax), %rsi
	leaq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	ifcl
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	-56(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -56(%rbp)
	testl	%eax, %eax
	jne	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	ifcl
	.type	ifcl, @function
ifcl:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r10
	movq	%rcx, %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	movl	(%rsi), %r14d
	movl	4(%rbx), %ebx
	movl	4(%r8), %r15d
	movl	(%rcx), %r12d
	movl	4(%rsi), %r13d
	movl	%r14d, %eax
	movl	4(%r10), %ecx
	subl	(%rdi), %eax
	movl	%r15d, %r8d
	movl	%r15d, -4(%rsp)
	cltq
	movl	%r13d, %esi
	subl	%ebx, %r8d
	movl	(%rdx), %edx
	subl	%ebx, %ecx
	subl	%ebx, %esi
	movq	%rax, %rbx
	subl	(%rdi), %edx
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movl	%r12d, %r9d
	subl	(%rdi), %r9d
	imulq	%rcx, %rbx
	movslq	%esi, %rsi
	movslq	%r9d, %r9
	movslq	%r8d, %r8
	movq	%rax, %r11
	movq	%rsi, %r15
	movq	%r9, %rdi
	movq	%r8, %r10
	imulq	%r8, %rax
	subq	%rdx, %rdi
	subq	%rcx, %r10
	subq	%rdx, %r11
	movq	%rbx, %rbp
	movq	%rdx, %rbx
	subq	%rcx, %r15
	imulq	%rsi, %rbx
	imulq	%r9, %rsi
	subq	%rbx, %rbp
	movq	%rcx, %rbx
	subq	%rsi, %rax
	imulq	%rdi, %rbx
	movq	%rdx, %rsi
	imulq	%r10, %rsi
	imulq	%r15, %rdi
	imulq	%r11, %r10
	imulq	%rbp, %rax
	subq	%rbx, %rsi
	subq	%r10, %rdi
	imulq	%rdi, %rsi
	movq	%rax, %rdi
	orq	%rsi, %rdi
	je	.L7
	testq	%rax, %rax
	setle	%dl
	xorl	%eax, %eax
	testq	%rsi, %rsi
	setle	%al
	andl	%edx, %eax
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movq	%rdx, %rdi
	movq	%rcx, %rax
	movl	-4(%rsp), %ebp
	subl	%r14d, %r12d
	imulq	%r15, %rax
	movslq	%r12d, %r12
	movq	%r9, %rsi
	imulq	%r11, %rdi
	subl	%r13d, %ebp
	movslq	%ebp, %rbp
	imulq	%r12, %rsi
	addq	%rax, %rdi
	movq	%r8, %rax
	imulq	%rbp, %rax
	addq	%rax, %rsi
	movl	$1, %eax
	testq	%rsi, %rsi
	jle	.L1
	movq	%r15, %rax
	imulq	%r12, %r11
	popq	%rbx
	.cfi_def_cfa_offset 48
	imulq	%rbp, %rax
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	imulq	%r9, %rdx
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	imulq	%r8, %rcx
	popq	%r15
	.cfi_def_cfa_offset 8
	addq	%rax, %r11
	xorl	%eax, %eax
	andq	%rdi, %r11
	notq	%r11
	addq	%rcx, %rdx
	shrq	$63, %r11
	testq	%rdx, %rdx
	setle	%al
	orl	%r11d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	ifcl, .-ifcl
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L9
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	leaq	40(%rsp), %r15
	leaq	32(%rsp), %r14
	leaq	24(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%r12d, %eax
	movl	%r12d, %ecx
	movq	%rbp, %rdi
	addl	$1, %r12d
	sarl	%eax
	andl	$1, %ecx
	cltq
	leaq	(%rcx,%rax,2), %rax
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpl	$8, %r12d
	jne	.L10
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	ifcl
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L11
.L9:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.p2align 4
	.globl	ifcl
	.type	ifcl, @function
ifcl:
.LFB23:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movq	%rdx, %r10
	movq	%rcx, %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdi, %rbx
	movl	(%rsi), %r14d
	movl	4(%rbx), %ebx
	movl	4(%r8), %r15d
	movl	(%rcx), %r12d
	movl	4(%rsi), %r13d
	movl	%r14d, %eax
	movl	4(%r10), %ecx
	subl	(%rdi), %eax
	movl	%r15d, %r8d
	movl	%r15d, -4(%rsp)
	cltq
	movl	%r13d, %esi
	subl	%ebx, %r8d
	movl	(%rdx), %edx
	subl	%ebx, %ecx
	subl	%ebx, %esi
	movq	%rax, %rbx
	subl	(%rdi), %edx
	movslq	%ecx, %rcx
	movslq	%edx, %rdx
	movl	%r12d, %r9d
	subl	(%rdi), %r9d
	imulq	%rcx, %rbx
	movslq	%esi, %rsi
	movslq	%r9d, %r9
	movslq	%r8d, %r8
	movq	%rax, %r11
	movq	%rsi, %r15
	movq	%r9, %rdi
	movq	%r8, %r10
	imulq	%r8, %rax
	subq	%rdx, %rdi
	subq	%rcx, %r10
	subq	%rdx, %r11
	movq	%rbx, %rbp
	movq	%rdx, %rbx
	subq	%rcx, %r15
	imulq	%rsi, %rbx
	imulq	%r9, %rsi
	subq	%rbx, %rbp
	movq	%rcx, %rbx
	subq	%rsi, %rax
	imulq	%rdi, %rbx
	movq	%rdx, %rsi
	imulq	%r10, %rsi
	imulq	%r15, %rdi
	imulq	%r11, %r10
	imulq	%rbp, %rax
	subq	%rbx, %rsi
	subq	%r10, %rdi
	imulq	%rdi, %rsi
	movq	%rax, %rdi
	orq	%rsi, %rdi
	je	.L7
	testq	%rax, %rax
	setle	%dl
	xorl	%eax, %eax
	testq	%rsi, %rsi
	setle	%al
	andl	%edx, %eax
.L1:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movq	%rdx, %rdi
	movq	%rcx, %rax
	movl	-4(%rsp), %ebp
	subl	%r14d, %r12d
	imulq	%r15, %rax
	movslq	%r12d, %r12
	movq	%r9, %rsi
	imulq	%r11, %rdi
	subl	%r13d, %ebp
	movslq	%ebp, %rbp
	imulq	%r12, %rsi
	addq	%rax, %rdi
	movq	%r8, %rax
	imulq	%rbp, %rax
	addq	%rax, %rsi
	movl	$1, %eax
	testq	%rsi, %rsi
	jle	.L1
	movq	%r15, %rax
	imulq	%r12, %r11
	popq	%rbx
	.cfi_def_cfa_offset 48
	imulq	%rbp, %rax
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	imulq	%r9, %rdx
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	imulq	%r8, %rcx
	popq	%r15
	.cfi_def_cfa_offset 8
	addq	%rax, %r11
	xorl	%eax, %eax
	andq	%rdi, %r11
	notq	%r11
	addq	%rcx, %rdx
	shrq	$63, %r11
	testq	%rdx, %rdx
	setle	%al
	orl	%r11d, %eax
	ret
	.cfi_endproc
.LFE23:
	.size	ifcl, .-ifcl
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB24:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$72, %rsp
	.cfi_def_cfa_offset 128
	movq	%fs:40, %rax
	movq	%rax, 56(%rsp)
	xorl	%eax, %eax
	leaq	12(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	je	.L9
	leaq	16(%rsp), %rbx
	leaq	.LC1(%rip), %rbp
	leaq	40(%rsp), %r15
	leaq	32(%rsp), %r14
	leaq	24(%rsp), %r13
	.p2align 4,,10
	.p2align 3
.L11:
	xorl	%r12d, %r12d
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%r12d, %eax
	movl	%r12d, %ecx
	movq	%rbp, %rdi
	addl	$1, %r12d
	sarl	%eax
	andl	$1, %ecx
	cltq
	leaq	(%rcx,%rax,2), %rax
	leaq	(%rbx,%rax,4), %rsi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	cmpl	$8, %r12d
	jne	.L10
	movq	%r15, %rcx
	movq	%r14, %rdx
	movq	%r13, %rsi
	movq	%rbx, %rdi
	call	ifcl
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	movl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	movl	12(%rsp), %eax
	leal	-1(%rax), %edx
	movl	%edx, 12(%rsp)
	testl	%eax, %eax
	jne	.L11
.L9:
	movq	56(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L19
	addq	$72, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 48
	popq	%rbp
	.cfi_def_cfa_offset 40
	popq	%r12
	.cfi_def_cfa_offset 32
	popq	%r13
	.cfi_def_cfa_offset 24
	popq	%r14
	.cfi_def_cfa_offset 16
	popq	%r15
	.cfi_def_cfa_offset 8
	ret
.L19:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE24:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

#include<stdio.h>
//#include<math.h>
int ifcl(int p0[2],int p1[2],int p2[2],int p3[2]){
  long long x0=p1[0]-p0[0],x1=p2[0]-p0[0],x2=p3[0]-p0[0],x3=x2-x1,x4=x0-x1,x5=-x1;
  long long y0=p1[1]-p0[1],y1=p2[1]-p0[1],y2=p3[1]-p0[1],y3=y2-y1,y4=y0-y1,y5=-y1;
  long long x7=p3[0]-p1[0],y7=p3[1]-p1[1]/*,y3=y2-y1,y4=y0-y1,y5=-y1*/;
  
  long long c1=(x0*y1-y0*x1)*(x0*y2-y0*x2),c2=(x3*y4-y3*x4)*(x3*y5-y3*x5);
  long long d1=x1*(x4)+y1*(y4),d2=x2*x7+y2*y7,d3=x1*x2+y1*y2,d4=(x4)*x7+(y4)*y7;
  if(c1==0&&c2==0)return (d1<0&&d2>0&&d3>0&&d4<0)?0:1;
  return (c1<=0&&c2<=0)?1:0;
}
int main(){
  int p[4][2],n,i;
  scanf("%d",&n);
  while(n--){
    for(i=0;i<8;i++)scanf(" %d",&p[i/2][i%2]);
    printf("%d\n",ifcl(p[0],p[1],p[2],p[3]));
  }
  return 0;
}
3
0 0 3 0 1 1 2 -1
0 0 3 0 3 1 3 -1
0 0 6 0 3 -2 5 0
 3
0 0 3 0 1 1 2 -1
0 0 0 0 3 1 3 -1
0 0 6 0 1 -2 5 0
 3
-1 0 3 0 1 1 4 -1
1 0 0 0 3 1 3 -1
0 0 6 1 1 -2 5 0
 3
-1 0 3 0 1 1 4 0
1 0 0 0 3 1 3 -1
0 -1 6 1 1 -2 5 0
 3
-1 0 0 -1 2 1 4 -2
1 0 0 0 4 1 6 -1
0 -1 12 1 0 -2 5 0
 3
1 0 3 0 1 1 0 -1
0 0 3 0 3 1 3 -1
0 0 6 0 2 -4 5 0
 3
0 -1 3 0 1 1 2 -1
0 0 4 0 3 1 3 -1
1 -1 1 0 3 -4 5 0
 3
-1 -1 4 0 2 1 4 1
2 1 0 0 0 0 3 0
0 2 6 2 1 -2 5 0
 3
0 0 3 0 1 1 2 -1
0 0 3 0 3 1 3 -1
0 0 6 0 1 -2 5 0
 3
-1 0 3 0 1 1 2 -1
0 0 0 0 3 1 3 -1
0 0 6 0 1 -2 5 0

1
1
1
 1
0
1
 1
0
0
 0
0
0
 0
0
1
 0
1
1
 1
1
0
 0
1
0
 1
1
1
 1
0
1

Given the following C code and unoptimized assembly code, your task is to generate highly optimized x86-64 assembly code.
C Code:

```c
#include<stdio.h>
//#include<math.h>
int ifcl(int p0[2],int p1[2],int p2[2],int p3[2]){
  long long x0=p1[0]-p0[0],x1=p2[0]-p0[0],x2=p3[0]-p0[0],x3=x2-x1,x4=x0-x1,x5=-x1;
  long long y0=p1[1]-p0[1],y1=p2[1]-p0[1],y2=p3[1]-p0[1],y3=y2-y1,y4=y0-y1,y5=-y1;
  long long x7=p3[0]-p1[0],y7=p3[1]-p1[1]/*,y3=y2-y1,y4=y0-y1,y5=-y1*/;
  
  long long c1=(x0*y1-y0*x1)*(x0*y2-y0*x2),c2=(x3*y4-y3*x4)*(x3*y5-y3*x5);
  long long d1=x1*(x4)+y1*(y4),d2=x2*x7+y2*y7,d3=x1*x2+y1*y2,d4=(x4)*x7+(y4)*y7;
  if(c1==0&&c2==0)return (d1<0&&d2>0&&d3>0&&d4<0)?0:1;
  return (c1<=0&&c2<=0)?1:0;
}
int main(){
  int p[4][2],n,i;
  scanf("%d",&n);
  while(n--){
    for(i=0;i<8;i++)scanf(" %d",&p[i/2][i%2]);
    printf("%d\n",ifcl(p[0],p[1],p[2],p[3]));
  }
  return 0;
}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	ifcl
	.type	ifcl, @function
ifcl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$72, %rsp
	movq	%rdi, -168(%rbp)
	movq	%rsi, -176(%rbp)
	movq	%rdx, -184(%rbp)
	movq	%rcx, -192(%rbp)
	movq	-176(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -160(%rbp)
	movq	-184(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -152(%rbp)
	movq	-192(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -144(%rbp)
	movq	-144(%rbp), %rax
	subq	-152(%rbp), %rax
	movq	%rax, -136(%rbp)
	movq	-160(%rbp), %rax
	subq	-152(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	-152(%rbp), %rax
	negq	%rax
	movq	%rax, -120(%rbp)
	movq	-176(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -112(%rbp)
	movq	-184(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -104(%rbp)
	movq	-192(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -96(%rbp)
	movq	-96(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-112(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	-104(%rbp), %rax
	negq	%rax
	movq	%rax, -72(%rbp)
	movq	-192(%rbp), %rax
	movl	(%rax), %edx
	movq	-176(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -64(%rbp)
	movq	-192(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-176(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -56(%rbp)
	movq	-160(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	imulq	-152(%rbp), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-160(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	imulq	-144(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	imulq	%rcx, %rax
	movq	%rax, -48(%rbp)
	movq	-136(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-136(%rbp), %rax
	imulq	-72(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	imulq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	imulq	%rcx, %rax
	movq	%rax, -40(%rbp)
	movq	-152(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-144(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-152(%rbp), %rax
	imulq	-144(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-128(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-80(%rbp), %rax
	imulq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -48(%rbp)
	jne	.L2
	cmpq	$0, -40(%rbp)
	jne	.L2
	cmpq	$0, -32(%rbp)
	jns	.L3
	cmpq	$0, -24(%rbp)
	jle	.L3
	cmpq	$0, -16(%rbp)
	jle	.L3
	cmpq	$0, -8(%rbp)
	js	.L4
.L3:
	movl	$1, %eax
	jmp	.L6
.L4:
	movl	$0, %eax
	jmp	.L6
.L2:
	cmpq	$0, -48(%rbp)
	jg	.L7
	cmpq	$0, -40(%rbp)
	jg	.L7
	movl	$1, %eax
	jmp	.L6
.L7:
	movl	$0, %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ifcl, .-ifcl
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L10
.L13:
	movl	$0, -52(%rbp)
	jmp	.L11
.L12:
	movl	-52(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %esi
	movl	-52(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	leaq	-48(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L11:
	cmpl	$7, -52(%rbp)
	jle	.L12
	leaq	-48(%rbp), %rax
	leaq	24(%rax), %rcx
	leaq	-48(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-48(%rbp), %rax
	leaq	8(%rax), %rsi
	leaq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	ifcl
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	-56(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -56(%rbp)
	testl	%eax, %eax
	jne	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	ifcl
	.type	ifcl, @function
ifcl:
.LFB0:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$72, %rsp
	movq	%rdi, -168(%rbp)
	movq	%rsi, -176(%rbp)
	movq	%rdx, -184(%rbp)
	movq	%rcx, -192(%rbp)
	movq	-176(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -160(%rbp)
	movq	-184(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -152(%rbp)
	movq	-192(%rbp), %rax
	movl	(%rax), %edx
	movq	-168(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -144(%rbp)
	movq	-144(%rbp), %rax
	subq	-152(%rbp), %rax
	movq	%rax, -136(%rbp)
	movq	-160(%rbp), %rax
	subq	-152(%rbp), %rax
	movq	%rax, -128(%rbp)
	movq	-152(%rbp), %rax
	negq	%rax
	movq	%rax, -120(%rbp)
	movq	-176(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -112(%rbp)
	movq	-184(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -104(%rbp)
	movq	-192(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-168(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -96(%rbp)
	movq	-96(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -88(%rbp)
	movq	-112(%rbp), %rax
	subq	-104(%rbp), %rax
	movq	%rax, -80(%rbp)
	movq	-104(%rbp), %rax
	negq	%rax
	movq	%rax, -72(%rbp)
	movq	-192(%rbp), %rax
	movl	(%rax), %edx
	movq	-176(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	cltq
	movq	%rax, -64(%rbp)
	movq	-192(%rbp), %rax
	addq	$4, %rax
	movl	(%rax), %eax
	movq	-176(%rbp), %rdx
	addq	$4, %rdx
	movl	(%rdx), %edx
	subl	%edx, %eax
	cltq
	movq	%rax, -56(%rbp)
	movq	-160(%rbp), %rax
	imulq	-104(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	imulq	-152(%rbp), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-160(%rbp), %rax
	imulq	-96(%rbp), %rax
	movq	%rax, %rdx
	movq	-112(%rbp), %rax
	imulq	-144(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	imulq	%rcx, %rax
	movq	%rax, -48(%rbp)
	movq	-136(%rbp), %rax
	imulq	-80(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rdx, %rcx
	subq	%rax, %rcx
	movq	-136(%rbp), %rax
	imulq	-72(%rbp), %rax
	movq	%rax, %rdx
	movq	-88(%rbp), %rax
	imulq	-120(%rbp), %rax
	movq	%rax, %rsi
	movq	%rdx, %rax
	subq	%rsi, %rax
	imulq	%rcx, %rax
	movq	%rax, -40(%rbp)
	movq	-152(%rbp), %rax
	imulq	-128(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-80(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -32(%rbp)
	movq	-144(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-96(%rbp), %rax
	imulq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -24(%rbp)
	movq	-152(%rbp), %rax
	imulq	-144(%rbp), %rax
	movq	%rax, %rdx
	movq	-104(%rbp), %rax
	imulq	-96(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -16(%rbp)
	movq	-128(%rbp), %rax
	imulq	-64(%rbp), %rax
	movq	%rax, %rdx
	movq	-80(%rbp), %rax
	imulq	-56(%rbp), %rax
	addq	%rdx, %rax
	movq	%rax, -8(%rbp)
	cmpq	$0, -48(%rbp)
	jne	.L2
	cmpq	$0, -40(%rbp)
	jne	.L2
	cmpq	$0, -32(%rbp)
	jns	.L3
	cmpq	$0, -24(%rbp)
	jle	.L3
	cmpq	$0, -16(%rbp)
	jle	.L3
	cmpq	$0, -8(%rbp)
	js	.L4
.L3:
	movl	$1, %eax
	jmp	.L6
.L4:
	movl	$0, %eax
	jmp	.L6
.L2:
	cmpq	$0, -48(%rbp)
	jg	.L7
	cmpq	$0, -40(%rbp)
	jg	.L7
	movl	$1, %eax
	jmp	.L6
.L7:
	movl	$0, %eax
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	ifcl, .-ifcl
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	" %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB1:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$64, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	jmp	.L10
.L13:
	movl	$0, -52(%rbp)
	jmp	.L11
.L12:
	movl	-52(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %esi
	movl	-52(%rbp), %eax
	cltd
	shrl	$31, %edx
	addl	%edx, %eax
	andl	$1, %eax
	subl	%edx, %eax
	leaq	-48(%rbp), %rdx
	movslq	%eax, %rcx
	movslq	%esi, %rax
	addq	%rax, %rax
	addq	%rcx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -52(%rbp)
.L11:
	cmpl	$7, -52(%rbp)
	jle	.L12
	leaq	-48(%rbp), %rax
	leaq	24(%rax), %rcx
	leaq	-48(%rbp), %rax
	leaq	16(%rax), %rdx
	leaq	-48(%rbp), %rax
	leaq	8(%rax), %rsi
	leaq	-48(%rbp), %rax
	movq	%rax, %rdi
	call	ifcl
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L10:
	movl	-56(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -56(%rbp)
	testl	%eax, %eax
	jne	.L13
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
