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

```c
// AOJ CGL_4_A Convex Hull
// 2018.5.3 bal4u

#include <stdio.h>
#include <stdlib.h>

typedef struct { int x, y; } PP;

PP vsub(PP p1, PP p2) { PP r; r.x = p1.x - p2.x, r.y = p1.y - p2.y; return r; }
long long cross(PP a, PP b) { return (long long)a.x * b.y - (long long)a.y * b.x; }

#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in()
{
	int n = 0, c = gc();
	if (c == '-') {	c = gc();
		do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
		return -n;
	}
	do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}

void out(int n)
{
	int i;
	char ob[20];

	if (!n) { pc('0'); return; }
	if (n < 0) pc('-'), n = -n;
	i = 0; while (n) ob[i++] = n%10 + '0', n/=10;
	while (i--) pc(ob[i]); 
}

int cmp(PP *a, PP *b)
{
	if (a->y - b->y) return a->y - b->y;
	return a->x - b->x;
}

int convex_hull(int n, PP *ps, PP *po)
{
	int i, k, j = 0;

	qsort(ps, n, sizeof(PP), cmp);
	for (i = 0; i < n; i++) {
		while (j > 1 && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) < 0) j--;
		po[j++] = ps[i];
	}
	k = j;
	for (i = n - 2; i >= 0; i--) {
		while (j > k && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) < 0) j--;
		po[j++] = ps[i];
	}
	return j-1;
}

PP p[100005], poly[100005];

int main()
{
	int n, k, i;

	n = in();
	for (i = 0; i < n; i++) p[i].x = in(), p[i].y = in();
	k = convex_hull(n, p, poly);
	out(k), pc('\n');
	for (i = 0; i < k; i++) {
		out(poly[i].x), pc(' '), out(poly[i].y), pc('\n');
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	vsub, .-vsub
	.globl	cross
	.type	cross, @function
cross:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	subq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cross, .-cross
	.globl	in
	.type	in, @function
in:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$45, -4(%rbp)
	jne	.L6
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L7:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L7
	movl	-8(%rbp), %eax
	negl	%eax
	jmp	.L8
.L6:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L6
	movl	-8(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	in, .-in
	.globl	out
	.type	out, @function
out:
.LFB9:
	.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
	movl	%edi, -52(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -52(%rbp)
	jne	.L10
	movl	$48, %edi
	call	putchar_unlocked@PLT
	jmp	.L9
.L10:
	cmpl	$0, -52(%rbp)
	jns	.L12
	movl	$45, %edi
	call	putchar_unlocked@PLT
	negl	-52(%rbp)
.L12:
	movl	$0, -36(%rbp)
	jmp	.L13
.L14:
	movl	-52(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -32(%rbp,%rax)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
.L13:
	cmpl	$0, -52(%rbp)
	jne	.L14
	jmp	.L15
.L16:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-32(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
.L15:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L16
.L9:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	out, .-out
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L19
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	jmp	.L20
.L19:
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp, .-cmp
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	$0, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -28(%rbp)
	jmp	.L22
.L25:
	subl	$1, -24(%rbp)
.L23:
	cmpl	$1, -24(%rbp)
	jle	.L24
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	testq	%rax, %rax
	js	.L25
.L24:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	addl	$1, -28(%rbp)
.L22:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L23
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	jmp	.L27
.L30:
	subl	$1, -24(%rbp)
.L28:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L29
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	testq	%rax, %rax
	js	.L30
.L29:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	subl	$1, -28(%rbp)
.L27:
	cmpl	$0, -28(%rbp)
	jns	.L28
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	convex_hull, .-convex_hull
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 800040
p:
	.zero	800040
	.globl	poly
	.align 32
	.type	poly, @object
	.size	poly, 800040
poly:
	.zero	800040
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L34
.L35:
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L34:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L35
	movl	-8(%rbp), %eax
	leaq	poly(%rip), %rdx
	leaq	p(%rip), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convex_hull
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	out
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movl	$0, -12(%rbp)
	jmp	.L36
.L37:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	poly(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	out
	movl	$32, %edi
	call	putchar_unlocked@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+poly(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	out
	movl	$10, %edi
	call	putchar_unlocked@PLT
	addl	$1, -12(%rbp)
.L36:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L37
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	cmp
	.type	cmp, @function
cmp:
.LFB43:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	movl	4(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE43:
	.size	cmp, .-cmp
	.p2align 4
	.type	out.part.0, @function
out.part.0:
.LFB47:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testl	%edi, %edi
	js	.L6
	je	.L5
.L7:
	xorl	%ecx, %ecx
	movq	%rsp, %rdx
	movl	$3435973837, %r8d
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%ebx, %eax
	movslq	%ecx, %rdi
	imulq	%r8, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %ebx
	addl	$48, %ebx
	movb	%bl, (%rdx,%rcx)
	movl	%eax, %ebx
	movq	%rcx, %rax
	addq	$1, %rcx
	testl	%ebx, %ebx
	jne	.L10
	leaq	-1(%rsp,%rdi), %rbp
	leaq	(%rdx,%rdi), %rbx
	subq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	stdout(%rip), %rdi
	movzbl	(%rbx), %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L19
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%sil, (%rax)
.L12:
	subq	$1, %rbx
	cmpq	%rbx, %rbp
	jne	.L13
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	call	__overflow@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L21
	leaq	1(%rax), %rdx
	negl	%ebx
	movq	%rdx, 40(%rdi)
	movb	$45, (%rax)
	jmp	.L7
.L21:
	movl	$45, %esi
	negl	%ebx
	call	__overflow@PLT
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE47:
	.size	out.part.0, .-out.part.0
	.p2align 4
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rdi, %xmm0
	movq	%rsi, %xmm1
	psubd	%xmm1, %xmm0
	movq	%xmm0, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	vsub, .-vsub
	.p2align 4
	.globl	cross
	.type	cross, @function
cross:
.LFB40:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movslq	%edi, %rax
	movslq	%esi, %rsi
	sarq	$32, %rdi
	sarq	$32, %rdx
	imulq	%rsi, %rdi
	imulq	%rdx, %rax
	subq	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	cross, .-cross
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB41:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L42
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L26:
	xorl	%r12d, %r12d
	cmpl	$45, %eax
	jne	.L27
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L35:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L24
.L36:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L27:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L35
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L24
	movq	stdin(%rip), %rdi
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L32:
	negl	%r12d
.L24:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	cmpq	%rcx, %rdx
	jnb	.L44
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
.L29:
	xorl	%r12d, %r12d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L32
.L31:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
.L33:
	leal	(%r12,%r12,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r12d
	cmpq	%rcx, %rsi
	jb	.L30
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L32
	movq	stdin(%rip), %rdi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L42:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L26
.L44:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L29
	.cfi_endproc
.LFE41:
	.size	in, .-in
	.p2align 4
	.globl	out
	.type	out, @function
out:
.LFB42:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L50
	jmp	out.part.0
	.p2align 4,,10
	.p2align 3
.L50:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L51
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$48, (%rax)
	ret
.L51:
	movl	$48, %esi
	jmp	__overflow@PLT
	.cfi_endproc
.LFE42:
	.size	out, .-out
	.p2align 4
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB44:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	cmp(%rip), %rcx
	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
	movq	%rsi, %r12
	movq	%rax, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	movq	%rax, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	movl	$8, %edx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rax, (%rsp)
	call	qsort@PLT
	testl	%ebp, %ebp
	jle	.L66
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	cmpl	$1, %ebp
	je	.L67
	leal	-2(%rbp), %eax
	leaq	8(%r12), %r14
	movl	%eax, 12(%rsp)
	leaq	16(%r12,%rax,8), %r15
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L54:
	movq	(%r14), %rdx
	addq	$8, %r14
	leal	1(%rax), %edi
	movq	%rdx, (%rbx,%rax,8)
	cmpq	%r14, %r15
	je	.L57
	movslq	%edi, %rax
	movl	(%r14), %r10d
	movl	4(%r14), %r9d
	leaq	(%rbx,%rax,8), %rcx
	movl	-4(%rcx), %r8d
	movl	-8(%rcx), %esi
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L56:
	subl	$1, %edi
	subq	$8, %rcx
	cmpl	$1, %edi
	je	.L55
.L58:
	movl	%r10d, %r11d
	movl	%r9d, %r13d
	movl	%esi, %edx
	movl	%r8d, %eax
	subl	%esi, %r11d
	subl	%r8d, %r13d
	movl	-16(%rcx), %esi
	movl	-12(%rcx), %r8d
	movslq	%r13d, %r13
	movslq	%r11d, %r11
	subl	%esi, %edx
	subl	%r8d, %eax
	movslq	%edx, %rdx
	cltq
	imulq	%r13, %rdx
	imulq	%r11, %rax
	cmpq	%rax, %rdx
	jl	.L56
.L55:
	movslq	%edi, %rax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L57:
	movl	12(%rsp), %edx
.L65:
	movslq	%edx, %rsi
	movslq	%edi, %rcx
	leal	1(%rdi), %eax
	movq	(%r12,%rsi,8), %rsi
	movq	%rsi, (%rbx,%rcx,8)
	testl	%edx, %edx
	je	.L68
	movq	(%rsp), %rdx
	salq	$3, %rdx
	leaq	(%r12,%rdx), %r11
	leaq	-8(%r12,%rdx), %r12
	leal	-3(%rbp), %edx
	salq	$3, %rdx
	subq	%rdx, %r12
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	%edi, %eax
	jle	.L70
	movslq	%eax, %rdx
	movl	-24(%r11), %ebp
	movl	-20(%r11), %r10d
	movl	%eax, %r9d
	leaq	(%rbx,%rdx,8), %rcx
	movl	-4(%rcx), %r8d
	movl	-8(%rcx), %esi
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L63:
	subl	$1, %r9d
	subq	$8, %rcx
	cmpl	%edi, %r9d
	je	.L62
.L64:
	movl	%ebp, %r13d
	movl	%r10d, %r14d
	movl	%esi, %edx
	movl	%r8d, %eax
	subl	%esi, %r13d
	subl	%r8d, %r14d
	movl	-16(%rcx), %esi
	movl	-12(%rcx), %r8d
	movslq	%r14d, %r14
	movslq	%r13d, %r13
	subl	%esi, %edx
	subl	%r8d, %eax
	movslq	%edx, %rdx
	cltq
	imulq	%r14, %rdx
	imulq	%r13, %rax
	cmpq	%rax, %rdx
	jl	.L63
.L62:
	movq	-24(%r11), %rcx
	movslq	%r9d, %rdx
	subq	$8, %r11
	leal	1(%r9), %eax
	movq	%rcx, (%rbx,%rdx,8)
	cmpq	%r11, %r12
	jne	.L61
.L52:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r9d, %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
.L66:
	.cfi_restore_state
	movl	$-1, %r9d
	xorl	%edi, %edi
.L53:
	movl	%ebp, %edx
	subl	$2, %edx
	js	.L52
	jmp	.L65
.L67:
	movl	$1, %edi
	xorl	%r9d, %r9d
	jmp	.L53
.L68:
	movl	%edi, %r9d
	jmp	.L52
.L70:
	movl	%eax, %r9d
	jmp	.L62
	.cfi_endproc
.LFE44:
	.size	convex_hull, .-convex_hull
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB45:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	p(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	in
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	.L77
	leal	-1(%rax), %eax
	leaq	8(%r13), %rdx
	movq	%r13, %rbx
	leaq	(%rdx,%rax,8), %rbp
	.p2align 4,,10
	.p2align 3
.L78:
	xorl	%eax, %eax
	addq	$8, %rbx
	call	in
	movl	%eax, -8(%rbx)
	xorl	%eax, %eax
	call	in
	movl	%eax, -4(%rbx)
	cmpq	%rbx, %rbp
	jne	.L78
.L77:
	leaq	poly(%rip), %rdx
	movq	%r13, %rsi
	movl	%r12d, %edi
	call	convex_hull
	movl	%eax, %edi
	movl	%eax, %ebp
	call	out
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L98
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L82:
	testl	%ebp, %ebp
	jle	.L81
	leaq	poly(%rip), %rbx
	leal	-1(%rbp), %edx
	leaq	8(%rbx), %rax
	leaq	(%rax,%rdx,8), %rbp
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L83:
	call	out.part.0
.L85:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L99
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
.L87:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	.L100
	call	out.part.0
.L90:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L101
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L92:
	addq	$8, %rbx
	cmpq	%rbx, %rbp
	je	.L81
.L93:
	movl	(%rbx), %edi
	testl	%edi, %edi
	jne	.L83
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L102
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$48, (%rax)
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L100:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L103
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$48, (%rax)
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L81:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L99:
	.cfi_restore_state
	movl	$32, %esi
	call	__overflow@PLT
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L101:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L92
.L102:
	movl	$48, %esi
	call	__overflow@PLT
	jmp	.L85
.L103:
	movl	$48, %esi
	call	__overflow@PLT
	jmp	.L90
.L98:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L82
	.cfi_endproc
.LFE45:
	.size	main, .-main
	.globl	poly
	.bss
	.align 32
	.type	poly, @object
	.size	poly, 800040
poly:
	.zero	800040
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800040
p:
	.zero	800040
	.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	cmp
	.type	cmp, @function
cmp:
.LFB43:
	.cfi_startproc
	endbr64
	movl	4(%rdi), %eax
	movl	4(%rsi), %edx
	cmpl	%edx, %eax
	je	.L2
	subl	%edx, %eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	movl	(%rdi), %eax
	subl	(%rsi), %eax
	ret
	.cfi_endproc
.LFE43:
	.size	cmp, .-cmp
	.p2align 4
	.type	out.part.0, @function
out.part.0:
.LFB47:
	.cfi_startproc
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	pushq	%rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	movl	%edi, %ebx
	subq	$40, %rsp
	.cfi_def_cfa_offset 64
	movq	%fs:40, %rax
	movq	%rax, 24(%rsp)
	xorl	%eax, %eax
	testl	%edi, %edi
	js	.L6
	je	.L5
.L7:
	xorl	%ecx, %ecx
	movq	%rsp, %rdx
	movl	$3435973837, %r8d
	.p2align 4,,10
	.p2align 3
.L10:
	movl	%ebx, %eax
	movslq	%ecx, %rdi
	imulq	%r8, %rax
	shrq	$35, %rax
	leal	(%rax,%rax,4), %esi
	addl	%esi, %esi
	subl	%esi, %ebx
	addl	$48, %ebx
	movb	%bl, (%rdx,%rcx)
	movl	%eax, %ebx
	movq	%rcx, %rax
	addq	$1, %rcx
	testl	%ebx, %ebx
	jne	.L10
	leaq	-1(%rsp,%rdi), %rbp
	leaq	(%rdx,%rdi), %rbx
	subq	%rax, %rbp
	.p2align 4,,10
	.p2align 3
.L13:
	movq	stdout(%rip), %rdi
	movzbl	(%rbx), %esi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L19
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	%sil, (%rax)
.L12:
	subq	$1, %rbx
	cmpq	%rbx, %rbp
	jne	.L13
.L5:
	movq	24(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L20
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	popq	%rbx
	.cfi_def_cfa_offset 16
	popq	%rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	call	__overflow@PLT
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L6:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L21
	leaq	1(%rax), %rdx
	negl	%ebx
	movq	%rdx, 40(%rdi)
	movb	$45, (%rax)
	jmp	.L7
.L21:
	movl	$45, %esi
	negl	%ebx
	call	__overflow@PLT
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE47:
	.size	out.part.0, .-out.part.0
	.p2align 4
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB39:
	.cfi_startproc
	endbr64
	movq	%rdi, %xmm0
	movq	%rsi, %xmm1
	psubd	%xmm1, %xmm0
	movq	%xmm0, %rax
	ret
	.cfi_endproc
.LFE39:
	.size	vsub, .-vsub
	.p2align 4
	.globl	cross
	.type	cross, @function
cross:
.LFB40:
	.cfi_startproc
	endbr64
	movq	%rsi, %rdx
	movslq	%edi, %rax
	movslq	%esi, %rsi
	sarq	$32, %rdi
	sarq	$32, %rdx
	imulq	%rsi, %rdi
	imulq	%rdx, %rax
	subq	%rdi, %rax
	ret
	.cfi_endproc
.LFE40:
	.size	cross, .-cross
	.p2align 4
	.globl	in
	.type	in, @function
in:
.LFB41:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L42
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L26:
	xorl	%r12d, %r12d
	cmpl	$45, %eax
	jne	.L27
	jmp	.L43
	.p2align 4,,10
	.p2align 3
.L35:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L24
.L36:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L27:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L35
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L24
	movq	stdin(%rip), %rdi
	jmp	.L36
	.p2align 4,,10
	.p2align 3
.L32:
	negl	%r12d
.L24:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L43:
	.cfi_restore_state
	cmpq	%rcx, %rdx
	jnb	.L44
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
.L29:
	xorl	%r12d, %r12d
	jmp	.L33
	.p2align 4,,10
	.p2align 3
.L30:
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rsi), %eax
	cmpl	$47, %eax
	jle	.L32
.L31:
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
.L33:
	leal	(%r12,%r12,4), %edx
	andl	$15, %eax
	leal	(%rax,%rdx,2), %r12d
	cmpq	%rcx, %rsi
	jb	.L30
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L32
	movq	stdin(%rip), %rdi
	jmp	.L31
	.p2align 4,,10
	.p2align 3
.L42:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L26
.L44:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	jmp	.L29
	.cfi_endproc
.LFE41:
	.size	in, .-in
	.p2align 4
	.globl	out
	.type	out, @function
out:
.LFB42:
	.cfi_startproc
	endbr64
	testl	%edi, %edi
	je	.L50
	jmp	out.part.0
	.p2align 4,,10
	.p2align 3
.L50:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L51
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$48, (%rax)
	ret
.L51:
	movl	$48, %esi
	jmp	__overflow@PLT
	.cfi_endproc
.LFE42:
	.size	out, .-out
	.p2align 4
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB44:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	cmp(%rip), %rcx
	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
	movq	%rsi, %r12
	movq	%rax, %rsi
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	movq	%r12, %rdi
	movq	%rax, %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rdx, %rbx
	movl	$8, %edx
	subq	$24, %rsp
	.cfi_def_cfa_offset 80
	movq	%rax, (%rsp)
	call	qsort@PLT
	testl	%ebp, %ebp
	jle	.L66
	movq	(%r12), %rax
	movq	%rax, (%rbx)
	cmpl	$1, %ebp
	je	.L67
	leal	-2(%rbp), %eax
	leaq	8(%r12), %r14
	movl	%eax, 12(%rsp)
	leaq	16(%r12,%rax,8), %r15
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L54:
	movq	(%r14), %rdx
	addq	$8, %r14
	leal	1(%rax), %edi
	movq	%rdx, (%rbx,%rax,8)
	cmpq	%r14, %r15
	je	.L57
	movslq	%edi, %rax
	movl	(%r14), %r10d
	movl	4(%r14), %r9d
	leaq	(%rbx,%rax,8), %rcx
	movl	-4(%rcx), %r8d
	movl	-8(%rcx), %esi
	jmp	.L58
	.p2align 4,,10
	.p2align 3
.L56:
	subl	$1, %edi
	subq	$8, %rcx
	cmpl	$1, %edi
	je	.L55
.L58:
	movl	%r10d, %r11d
	movl	%r9d, %r13d
	movl	%esi, %edx
	movl	%r8d, %eax
	subl	%esi, %r11d
	subl	%r8d, %r13d
	movl	-16(%rcx), %esi
	movl	-12(%rcx), %r8d
	movslq	%r13d, %r13
	movslq	%r11d, %r11
	subl	%esi, %edx
	subl	%r8d, %eax
	movslq	%edx, %rdx
	cltq
	imulq	%r13, %rdx
	imulq	%r11, %rax
	cmpq	%rax, %rdx
	jl	.L56
.L55:
	movslq	%edi, %rax
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L57:
	movl	12(%rsp), %edx
.L65:
	movslq	%edx, %rsi
	movslq	%edi, %rcx
	leal	1(%rdi), %eax
	movq	(%r12,%rsi,8), %rsi
	movq	%rsi, (%rbx,%rcx,8)
	testl	%edx, %edx
	je	.L68
	movq	(%rsp), %rdx
	salq	$3, %rdx
	leaq	(%r12,%rdx), %r11
	leaq	-8(%r12,%rdx), %r12
	leal	-3(%rbp), %edx
	salq	$3, %rdx
	subq	%rdx, %r12
	.p2align 4,,10
	.p2align 3
.L61:
	cmpl	%edi, %eax
	jle	.L70
	movslq	%eax, %rdx
	movl	-24(%r11), %ebp
	movl	-20(%r11), %r10d
	movl	%eax, %r9d
	leaq	(%rbx,%rdx,8), %rcx
	movl	-4(%rcx), %r8d
	movl	-8(%rcx), %esi
	jmp	.L64
	.p2align 4,,10
	.p2align 3
.L63:
	subl	$1, %r9d
	subq	$8, %rcx
	cmpl	%edi, %r9d
	je	.L62
.L64:
	movl	%ebp, %r13d
	movl	%r10d, %r14d
	movl	%esi, %edx
	movl	%r8d, %eax
	subl	%esi, %r13d
	subl	%r8d, %r14d
	movl	-16(%rcx), %esi
	movl	-12(%rcx), %r8d
	movslq	%r14d, %r14
	movslq	%r13d, %r13
	subl	%esi, %edx
	subl	%r8d, %eax
	movslq	%edx, %rdx
	cltq
	imulq	%r14, %rdx
	imulq	%r13, %rax
	cmpq	%rax, %rdx
	jl	.L63
.L62:
	movq	-24(%r11), %rcx
	movslq	%r9d, %rdx
	subq	$8, %r11
	leal	1(%r9), %eax
	movq	%rcx, (%rbx,%rdx,8)
	cmpq	%r11, %r12
	jne	.L61
.L52:
	addq	$24, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	movl	%r9d, %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
.L66:
	.cfi_restore_state
	movl	$-1, %r9d
	xorl	%edi, %edi
.L53:
	movl	%ebp, %edx
	subl	$2, %edx
	js	.L52
	jmp	.L65
.L67:
	movl	$1, %edi
	xorl	%r9d, %r9d
	jmp	.L53
.L68:
	movl	%edi, %r9d
	jmp	.L52
.L70:
	movl	%eax, %r9d
	jmp	.L62
	.cfi_endproc
.LFE44:
	.size	convex_hull, .-convex_hull
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB45:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	xorl	%eax, %eax
	leaq	p(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	in
	movl	%eax, %r12d
	testl	%eax, %eax
	jle	.L77
	leal	-1(%rax), %eax
	leaq	8(%r13), %rdx
	movq	%r13, %rbx
	leaq	(%rdx,%rax,8), %rbp
	.p2align 4,,10
	.p2align 3
.L78:
	xorl	%eax, %eax
	addq	$8, %rbx
	call	in
	movl	%eax, -8(%rbx)
	xorl	%eax, %eax
	call	in
	movl	%eax, -4(%rbx)
	cmpq	%rbx, %rbp
	jne	.L78
.L77:
	leaq	poly(%rip), %rdx
	movq	%r13, %rsi
	movl	%r12d, %edi
	call	convex_hull
	movl	%eax, %edi
	movl	%eax, %ebp
	call	out
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L98
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L82:
	testl	%ebp, %ebp
	jle	.L81
	leaq	poly(%rip), %rbx
	leal	-1(%rbp), %edx
	leaq	8(%rbx), %rax
	leaq	(%rax,%rdx,8), %rbp
	jmp	.L93
	.p2align 4,,10
	.p2align 3
.L83:
	call	out.part.0
.L85:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L99
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$32, (%rax)
.L87:
	movl	4(%rbx), %edi
	testl	%edi, %edi
	je	.L100
	call	out.part.0
.L90:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L101
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$10, (%rax)
.L92:
	addq	$8, %rbx
	cmpq	%rbx, %rbp
	je	.L81
.L93:
	movl	(%rbx), %edi
	testl	%edi, %edi
	jne	.L83
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L102
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$48, (%rax)
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L100:
	movq	stdout(%rip), %rdi
	movq	40(%rdi), %rax
	cmpq	48(%rdi), %rax
	jnb	.L103
	leaq	1(%rax), %rdx
	movq	%rdx, 40(%rdi)
	movb	$48, (%rax)
	jmp	.L90
	.p2align 4,,10
	.p2align 3
.L81:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xorl	%eax, %eax
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L99:
	.cfi_restore_state
	movl	$32, %esi
	call	__overflow@PLT
	jmp	.L87
	.p2align 4,,10
	.p2align 3
.L101:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L92
.L102:
	movl	$48, %esi
	call	__overflow@PLT
	jmp	.L85
.L103:
	movl	$48, %esi
	call	__overflow@PLT
	jmp	.L90
.L98:
	movl	$10, %esi
	call	__overflow@PLT
	jmp	.L82
	.cfi_endproc
.LFE45:
	.size	main, .-main
	.globl	poly
	.bss
	.align 32
	.type	poly, @object
	.size	poly, 800040
poly:
	.zero	800040
	.globl	p
	.align 32
	.type	p, @object
	.size	p, 800040
p:
	.zero	800040
	.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:

// AOJ CGL_4_A Convex Hull
// 2018.5.3 bal4u

#include <stdio.h>
#include <stdlib.h>

typedef struct { int x, y; } PP;

PP vsub(PP p1, PP p2) { PP r; r.x = p1.x - p2.x, r.y = p1.y - p2.y; return r; }
long long cross(PP a, PP b) { return (long long)a.x * b.y - (long long)a.y * b.x; }

#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in()
{
	int n = 0, c = gc();
	if (c == '-') {	c = gc();
		do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
		return -n;
	}
	do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}

void out(int n)
{
	int i;
	char ob[20];

	if (!n) { pc('0'); return; }
	if (n < 0) pc('-'), n = -n;
	i = 0; while (n) ob[i++] = n%10 + '0', n/=10;
	while (i--) pc(ob[i]); 
}

int cmp(PP *a, PP *b)
{
	if (a->y - b->y) return a->y - b->y;
	return a->x - b->x;
}

int convex_hull(int n, PP *ps, PP *po)
{
	int i, k, j = 0;

	qsort(ps, n, sizeof(PP), cmp);
	for (i = 0; i < n; i++) {
		while (j > 1 && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) < 0) j--;
		po[j++] = ps[i];
	}
	k = j;
	for (i = n - 2; i >= 0; i--) {
		while (j > k && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) < 0) j--;
		po[j++] = ps[i];
	}
	return j-1;
}

PP p[100005], poly[100005];

int main()
{
	int n, k, i;

	n = in();
	for (i = 0; i < n; i++) p[i].x = in(), p[i].y = in();
	k = convex_hull(n, p, poly);
	out(k), pc('\n');
	for (i = 0; i < k; i++) {
		out(poly[i].x), pc(' '), out(poly[i].y), pc('\n');
	}
	return 0;
}

4
1 0
2 2
0 2
0 1
 7
2 1
0 0
1 2
2 0
4 2
1 3
3 3
 4
1 0
3 2
0 2
0 1
 7
4 1
0 0
1 2
2 0
4 2
1 3
3 3
 7
4 1
0 0
1 2
3 0
4 2
1 3
3 3
 7
2 1
0 0
1 2
2 2
4 2
1 3
0 3
 4
1 0
2 2
1 2
0 1
 7
2 1
0 0
1 2
2 0
4 2
1 3
5 3
 4
1 1
3 2
0 2
0 1
 7
4 1
0 0
1 2
2 0
4 2
1 3
2 3

4
1 0
2 2
0 2
0 1
 5
0 0
2 0
4 2
3 3
1 3
 4
1 0
3 2
0 2
0 1
 6
0 0
2 0
4 1
4 2
3 3
1 3
 6
0 0
3 0
4 1
4 2
3 3
1 3
 5
0 0
2 1
4 2
1 3
0 3
 4
1 0
2 2
1 2
0 1
 5
0 0
2 0
4 2
5 3
1 3
 4
0 1
1 1
3 2
0 2
 6
0 0
2 0
4 1
4 2
2 3
1 3

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

```c
// AOJ CGL_4_A Convex Hull
// 2018.5.3 bal4u

#include <stdio.h>
#include <stdlib.h>

typedef struct { int x, y; } PP;

PP vsub(PP p1, PP p2) { PP r; r.x = p1.x - p2.x, r.y = p1.y - p2.y; return r; }
long long cross(PP a, PP b) { return (long long)a.x * b.y - (long long)a.y * b.x; }

#if 1
#define gc() getchar_unlocked()
#define pc(c) putchar_unlocked(c)
#else
#define gc() getchar()
#define pc(c) putchar(c)
#endif
int in()
{
	int n = 0, c = gc();
	if (c == '-') {	c = gc();
		do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
		return -n;
	}
	do n = 10*n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}

void out(int n)
{
	int i;
	char ob[20];

	if (!n) { pc('0'); return; }
	if (n < 0) pc('-'), n = -n;
	i = 0; while (n) ob[i++] = n%10 + '0', n/=10;
	while (i--) pc(ob[i]); 
}

int cmp(PP *a, PP *b)
{
	if (a->y - b->y) return a->y - b->y;
	return a->x - b->x;
}

int convex_hull(int n, PP *ps, PP *po)
{
	int i, k, j = 0;

	qsort(ps, n, sizeof(PP), cmp);
	for (i = 0; i < n; i++) {
		while (j > 1 && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) < 0) j--;
		po[j++] = ps[i];
	}
	k = j;
	for (i = n - 2; i >= 0; i--) {
		while (j > k && cross(vsub(po[j-1], po[j-2]), vsub(ps[i], po[j-1])) < 0) j--;
		po[j++] = ps[i];
	}
	return j-1;
}

PP p[100005], poly[100005];

int main()
{
	int n, k, i;

	n = in();
	for (i = 0; i < n; i++) p[i].x = in(), p[i].y = in();
	k = convex_hull(n, p, poly);
	out(k), pc('\n');
	for (i = 0; i < k; i++) {
		out(poly[i].x), pc(' '), out(poly[i].y), pc('\n');
	}
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	vsub
	.type	vsub, @function
vsub:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	vsub, .-vsub
	.globl	cross
	.type	cross, @function
cross:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	subq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cross, .-cross
	.globl	in
	.type	in, @function
in:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$45, -4(%rbp)
	jne	.L6
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L7:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L7
	movl	-8(%rbp), %eax
	negl	%eax
	jmp	.L8
.L6:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L6
	movl	-8(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	in, .-in
	.globl	out
	.type	out, @function
out:
.LFB9:
	.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
	movl	%edi, -52(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -52(%rbp)
	jne	.L10
	movl	$48, %edi
	call	putchar_unlocked@PLT
	jmp	.L9
.L10:
	cmpl	$0, -52(%rbp)
	jns	.L12
	movl	$45, %edi
	call	putchar_unlocked@PLT
	negl	-52(%rbp)
.L12:
	movl	$0, -36(%rbp)
	jmp	.L13
.L14:
	movl	-52(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -32(%rbp,%rax)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
.L13:
	cmpl	$0, -52(%rbp)
	jne	.L14
	jmp	.L15
.L16:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-32(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
.L15:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L16
.L9:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	out, .-out
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L19
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	jmp	.L20
.L19:
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp, .-cmp
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	$0, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -28(%rbp)
	jmp	.L22
.L25:
	subl	$1, -24(%rbp)
.L23:
	cmpl	$1, -24(%rbp)
	jle	.L24
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	testq	%rax, %rax
	js	.L25
.L24:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	addl	$1, -28(%rbp)
.L22:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L23
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	jmp	.L27
.L30:
	subl	$1, -24(%rbp)
.L28:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L29
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	testq	%rax, %rax
	js	.L30
.L29:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	subl	$1, -28(%rbp)
.L27:
	cmpl	$0, -28(%rbp)
	jns	.L28
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	convex_hull, .-convex_hull
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 800040
p:
	.zero	800040
	.globl	poly
	.align 32
	.type	poly, @object
	.size	poly, 800040
poly:
	.zero	800040
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L34
.L35:
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L34:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L35
	movl	-8(%rbp), %eax
	leaq	poly(%rip), %rdx
	leaq	p(%rip), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convex_hull
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	out
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movl	$0, -12(%rbp)
	jmp	.L36
.L37:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	poly(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	out
	movl	$32, %edi
	call	putchar_unlocked@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+poly(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	out
	movl	$10, %edi
	call	putchar_unlocked@PLT
	addl	$1, -12(%rbp)
.L36:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L37
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	vsub
	.type	vsub, @function
vsub:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movl	-24(%rbp), %eax
	movl	-32(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -8(%rbp)
	movl	-20(%rbp), %eax
	movl	-28(%rbp), %edx
	subl	%edx, %eax
	movl	%eax, -4(%rbp)
	movq	-8(%rbp), %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	vsub, .-vsub
	.globl	cross
	.type	cross, @function
cross:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movl	-8(%rbp), %eax
	movslq	%eax, %rdx
	movl	-12(%rbp), %eax
	cltq
	imulq	%rdx, %rax
	movl	-4(%rbp), %edx
	movslq	%edx, %rcx
	movl	-16(%rbp), %edx
	movslq	%edx, %rdx
	imulq	%rcx, %rdx
	subq	%rdx, %rax
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cross, .-cross
	.globl	in
	.type	in, @function
in:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$45, -4(%rbp)
	jne	.L6
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L7:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L7
	movl	-8(%rbp), %eax
	negl	%eax
	jmp	.L8
.L6:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L6
	movl	-8(%rbp), %eax
.L8:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	in, .-in
	.globl	out
	.type	out, @function
out:
.LFB9:
	.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
	movl	%edi, -52(%rbp)
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	cmpl	$0, -52(%rbp)
	jne	.L10
	movl	$48, %edi
	call	putchar_unlocked@PLT
	jmp	.L9
.L10:
	cmpl	$0, -52(%rbp)
	jns	.L12
	movl	$45, %edi
	call	putchar_unlocked@PLT
	negl	-52(%rbp)
.L12:
	movl	$0, -36(%rbp)
	jmp	.L13
.L14:
	movl	-52(%rbp), %edx
	movslq	%edx, %rax
	imulq	$1717986919, %rax, %rax
	shrq	$32, %rax
	sarl	$2, %eax
	movl	%edx, %esi
	sarl	$31, %esi
	subl	%esi, %eax
	movl	%eax, %ecx
	movl	%ecx, %eax
	sall	$2, %eax
	addl	%ecx, %eax
	addl	%eax, %eax
	movl	%edx, %ecx
	subl	%eax, %ecx
	movl	%ecx, %eax
	leal	48(%rax), %ecx
	movl	-36(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -36(%rbp)
	movl	%ecx, %edx
	cltq
	movb	%dl, -32(%rbp,%rax)
	movl	-52(%rbp), %eax
	movslq	%eax, %rdx
	imulq	$1717986919, %rdx, %rdx
	shrq	$32, %rdx
	sarl	$2, %edx
	sarl	$31, %eax
	movl	%eax, %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	movl	%eax, -52(%rbp)
.L13:
	cmpl	$0, -52(%rbp)
	jne	.L14
	jmp	.L15
.L16:
	movl	-36(%rbp), %eax
	cltq
	movzbl	-32(%rbp,%rax), %eax
	movsbl	%al, %eax
	movl	%eax, %edi
	call	putchar_unlocked@PLT
.L15:
	movl	-36(%rbp), %eax
	leal	-1(%rax), %edx
	movl	%edx, -36(%rbp)
	testl	%eax, %eax
	jne	.L16
.L9:
	movq	-8(%rbp), %rax
	subq	%fs:40, %rax
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	out, .-out
	.globl	cmp
	.type	cmp, @function
cmp:
.LFB10:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %eax
	cmpl	%eax, %edx
	je	.L19
	movq	-8(%rbp), %rax
	movl	4(%rax), %edx
	movq	-16(%rbp), %rax
	movl	4(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
	jmp	.L20
.L19:
	movq	-8(%rbp), %rax
	movl	(%rax), %edx
	movq	-16(%rbp), %rax
	movl	(%rax), %ecx
	movl	%edx, %eax
	subl	%ecx, %eax
.L20:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	cmp, .-cmp
	.globl	convex_hull
	.type	convex_hull, @function
convex_hull:
.LFB11:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 3, -24
	movl	%edi, -36(%rbp)
	movq	%rsi, -48(%rbp)
	movq	%rdx, -56(%rbp)
	movl	$0, -24(%rbp)
	movl	-36(%rbp), %eax
	movslq	%eax, %rsi
	movq	-48(%rbp), %rax
	leaq	cmp(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$0, -28(%rbp)
	jmp	.L22
.L25:
	subl	$1, -24(%rbp)
.L23:
	cmpl	$1, -24(%rbp)
	jle	.L24
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	testq	%rax, %rax
	js	.L25
.L24:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	addl	$1, -28(%rbp)
.L22:
	movl	-28(%rbp), %eax
	cmpl	-36(%rbp), %eax
	jl	.L23
	movl	-24(%rbp), %eax
	movl	%eax, -20(%rbp)
	movl	-36(%rbp), %eax
	subl	$2, %eax
	movl	%eax, -28(%rbp)
	jmp	.L27
.L30:
	subl	$1, -24(%rbp)
.L28:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jle	.L29
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	movq	-48(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rax, %rbx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-16(%rax), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movl	-24(%rbp), %eax
	cltq
	salq	$3, %rax
	leaq	-8(%rax), %rcx
	movq	-56(%rbp), %rax
	addq	%rcx, %rax
	movq	(%rdx), %rsi
	movq	(%rax), %rdi
	call	vsub
	movq	%rbx, %rsi
	movq	%rax, %rdi
	call	cross
	testq	%rax, %rax
	js	.L30
.L29:
	movl	-28(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-48(%rbp), %rax
	leaq	(%rdx,%rax), %rcx
	movl	-24(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -24(%rbp)
	cltq
	leaq	0(,%rax,8), %rdx
	movq	-56(%rbp), %rax
	addq	%rax, %rdx
	movq	(%rcx), %rax
	movq	%rax, (%rdx)
	subl	$1, -28(%rbp)
.L27:
	cmpl	$0, -28(%rbp)
	jns	.L28
	movl	-24(%rbp), %eax
	subl	$1, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	convex_hull, .-convex_hull
	.globl	p
	.bss
	.align 32
	.type	p, @object
	.size	p, 800040
p:
	.zero	800040
	.globl	poly
	.align 32
	.type	poly, @object
	.size	poly, 800040
poly:
	.zero	800040
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, %eax
	call	in
	movl	%eax, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L34
.L35:
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+p(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L34:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jl	.L35
	movl	-8(%rbp), %eax
	leaq	poly(%rip), %rdx
	leaq	p(%rip), %rcx
	movq	%rcx, %rsi
	movl	%eax, %edi
	call	convex_hull
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	movl	%eax, %edi
	call	out
	movl	$10, %edi
	call	putchar_unlocked@PLT
	movl	$0, -12(%rbp)
	jmp	.L36
.L37:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	poly(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	out
	movl	$32, %edi
	call	putchar_unlocked@PLT
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+poly(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	out
	movl	$10, %edi
	call	putchar_unlocked@PLT
	addl	$1, -12(%rbp)
.L36:
	movl	-12(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L37
	movl	$0, %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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:
