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 <stdlib.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))

ll tate[110],yoko[110];
ll a[110];
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);}

int main(){
	ll n,w,h;
	while(scanf("%lld%lld%lld",&n,&w,&h),h){
		tate[0]=w;
		yoko[0]=h;
		rep(i,0,n){
			ll p,s;
			scanf("%lld%lld",&p,&s);
			p--;
			s%=tate[p]+yoko[p];
			if(s<tate[p]){
				//tate
				tate[i+1]=min(s,tate[p]-s);
				tate[i+2]=max(s,tate[p]-s);
				yoko[i+1]=yoko[p];
				yoko[i+2]=yoko[p];
			}else{
				//yoko
				s-=tate[p];
				tate[i+1]=tate[p];
				tate[i+2]=tate[p];
				yoko[i+1]=min(s,yoko[p]-s);
				yoko[i+2]=max(s,yoko[p]-s);
			}
			rep(j,p,i+2){
				tate[j]=tate[j+1];
				yoko[j]=yoko[j+1];
			}
		}
		rep(i,0,n+1)a[i]=tate[i]*yoko[i];
		sortup(a,n+1);
		rep(i,0,n+1)printf("%lld%c",a[i],i==n?'\n':' ');
	}
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	tate
	.bss
	.align 32
	.type	tate, @object
	.size	tate, 880
tate:
	.zero	880
	.globl	yoko
	.align 32
	.type	yoko, @object
	.size	yoko, 880
yoko:
	.zero	880
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 880
a:
	.zero	880
	.text
	.globl	upll
	.type	upll, @function
upll:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jl	.L2
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	upll, .-upll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	upll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sortup, .-sortup
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%c"
.LC2:
	.string	"%lld%lld%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L7
.L20:
	movq	-72(%rbp), %rax
	movq	%rax, tate(%rip)
	movq	-64(%rbp), %rax
	movq	%rax, yoko(%rip)
	movq	$0, -40(%rbp)
	jmp	.L8
.L13:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-56(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -56(%rbp)
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	(%rcx,%rdx), %rsi
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	yoko(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	leaq	(%rsi,%rdx), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L9
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$1, %rcx
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$2, %rcx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	2(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L10
.L9:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	2(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$1, %rcx
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$2, %rcx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L10:
	movq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L11
.L12:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-32(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -32(%rbp)
.L11:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	cmpq	%rax, -32(%rbp)
	jle	.L12
	addq	$1, -40(%rbp)
.L8:
	movq	-80(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L13
	movq	$0, -24(%rbp)
	jmp	.L14
.L15:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	yoko(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	-24(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	a(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -24(%rbp)
.L14:
	movq	-80(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jle	.L15
	movq	-80(%rbp), %rax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	sortup
	movq	$0, -16(%rbp)
	jmp	.L16
.L19:
	movq	-80(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jne	.L17
	movl	$10, %ecx
	jmp	.L18
.L17:
	movl	$32, %ecx
.L18:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%ecx, %edx
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -16(%rbp)
.L16:
	movq	-80(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L19
.L7:
	leaq	-64(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	upll
	.type	upll, @function
upll:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setg	%al
	movzbl	%al, %eax
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	upll, .-upll
	.p2align 4
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB40:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	upll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE40:
	.size	sortup, .-sortup
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%c"
.LC2:
	.string	"%lld%lld%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	tate(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	yoko(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	80(%rsp), %rax
	testq	%rax, %rax
	je	.L32
	movq	72(%rsp), %rdx
	movq	%rax, 0(%rbp)
	movq	%rdx, (%r12)
	movq	64(%rsp), %rdx
	testq	%rdx, %rdx
	jle	.L8
	leaq	8+tate(%rip), %rbx
	leaq	88(%rsp), %rax
	xorl	%r15d, %r15d
	movq	%rax, 32(%rsp)
	movq	%rbx, %rax
	leaq	96(%rsp), %r14
	movq	%r15, %rbx
	leaq	8+yoko(%rip), %r13
	movq	%rax, %r15
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L34:
	subq	%rdx, %rsi
	movq	%rdi, 0(%r13)
	cmpq	%rdx, %rsi
	cmovg	%rdx, %rsi
	movq	%rsi, (%r15)
	movq	(%r12,%rcx,8), %rax
	subq	%rdx, %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, 8(%r15)
	movq	0(%rbp,%rcx,8), %rax
	movq	%rax, 8(%r13)
	cmpq	%r8, %rcx
	jg	.L33
.L10:
	movl	$3, %edx
	salq	$3, %rcx
	addq	$8, %r13
	addq	$8, %r15
	subq	%r10, %rdx
	leaq	8(%rcx), %r9
	leaq	(%r12,%rcx), %rdi
	movq	%r8, 24(%rsp)
	addq	%rbx, %rdx
	leaq	(%r12,%r9), %rsi
	movq	%r9, 16(%rsp)
	leaq	0(,%rdx,8), %rbx
	movq	%rcx, 8(%rsp)
	movq	%rbx, %rdx
	call	memmove@PLT
	movq	16(%rsp), %r9
	movq	8(%rsp), %rcx
	movq	%rbx, %rdx
	leaq	0(%rbp,%r9), %rsi
	leaq	0(%rbp,%rcx), %rdi
	call	memmove@PLT
	movq	64(%rsp), %rdx
	movq	24(%rsp), %r8
	cmpq	%rdx, %r8
	jge	.L8
.L13:
	movq	%r8, %rbx
.L11:
	movq	32(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	88(%rsp), %r10
	movq	96(%rsp), %rax
	leaq	-1(%r10), %rcx
	cqto
	movq	(%r12,%rcx,8), %rsi
	movq	0(%rbp,%rcx,8), %rdi
	movq	%rcx, 88(%rsp)
	leaq	(%rsi,%rdi), %r8
	idivq	%r8
	leaq	1(%rbx), %r8
	movq	%rdx, 96(%rsp)
	cmpq	%rdx, %rsi
	jg	.L34
	subq	%rsi, %rdx
	movq	%rsi, (%r15)
	movq	(%r12,%rcx,8), %rax
	subq	%rdx, %rdi
	movq	%rdx, 96(%rsp)
	cmpq	%rdx, %rdi
	movq	%rax, 8(%r15)
	cmovg	%rdx, %rdi
	movq	%rdi, 0(%r13)
	movq	0(%rbp,%rcx,8), %rax
	subq	%rdx, %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, 8(%r13)
	cmpq	%r8, %rcx
	jle	.L10
.L33:
	movq	64(%rsp), %rdx
	addq	$8, %r13
	addq	$8, %r15
	cmpq	%r8, %rdx
	jg	.L13
.L8:
	leaq	1(%rdx), %rsi
	xorl	%eax, %eax
	leaq	a(%rip), %r13
	testq	%rdx, %rdx
	js	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	movq	(%r12,%rax,8), %rcx
	imulq	0(%rbp,%rax,8), %rcx
	movq	%rcx, 0(%r13,%rax,8)
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L17
.L18:
	addl	$1, %edx
	leaq	upll(%rip), %rcx
	movq	%r13, %rdi
	xorl	%r14d, %r14d
	movslq	%edx, %rsi
	movl	$8, %edx
	leaq	.LC1(%rip), %rbx
	call	qsort@PLT
	movq	64(%rsp), %r15
	testq	%r15, %r15
	js	.L7
.L15:
	cmpq	%r14, %r15
	je	.L19
.L35:
	movq	0(%r13,%r14,8), %rdx
	movl	$32, %ecx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addq	$1, %r14
	call	__printf_chk@PLT
	movq	64(%rsp), %r15
	cmpq	%r15, %r14
	jg	.L7
	cmpq	%r14, %r15
	jne	.L35
.L19:
	movq	0(%r13,%r15,8), %rdx
	movl	$10, %ecx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	1(%r15), %r14
	call	__printf_chk@PLT
	movq	64(%rsp), %r15
	cmpq	%r14, %r15
	jge	.L15
	jmp	.L7
.L32:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$120, %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
.L36:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 880
a:
	.zero	880
	.globl	yoko
	.align 32
	.type	yoko, @object
	.size	yoko, 880
yoko:
	.zero	880
	.globl	tate
	.align 32
	.type	tate, @object
	.size	tate, 880
tate:
	.zero	880
	.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	upll
	.type	upll, @function
upll:
.LFB39:
	.cfi_startproc
	endbr64
	movq	(%rsi), %rax
	cmpq	%rax, (%rdi)
	movl	$-1, %edx
	setg	%al
	movzbl	%al, %eax
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	upll, .-upll
	.p2align 4
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB40:
	.cfi_startproc
	endbr64
	movslq	%esi, %rsi
	leaq	upll(%rip), %rcx
	movl	$8, %edx
	jmp	qsort@PLT
	.cfi_endproc
.LFE40:
	.size	sortup, .-sortup
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%c"
.LC2:
	.string	"%lld%lld%lld"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	leaq	tate(%rip), %r12
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	leaq	yoko(%rip), %rbp
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$120, %rsp
	.cfi_def_cfa_offset 176
	movq	%fs:40, %rax
	movq	%rax, 104(%rsp)
	xorl	%eax, %eax
	leaq	80(%rsp), %rax
	movq	%rax, 56(%rsp)
	leaq	72(%rsp), %rax
	movq	%rax, 48(%rsp)
	leaq	64(%rsp), %rax
	movq	%rax, 40(%rsp)
	.p2align 4,,10
	.p2align 3
.L7:
	movq	56(%rsp), %rcx
	movq	48(%rsp), %rdx
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movq	40(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movq	80(%rsp), %rax
	testq	%rax, %rax
	je	.L32
	movq	72(%rsp), %rdx
	movq	%rax, 0(%rbp)
	movq	%rdx, (%r12)
	movq	64(%rsp), %rdx
	testq	%rdx, %rdx
	jle	.L8
	leaq	8+tate(%rip), %rbx
	leaq	88(%rsp), %rax
	xorl	%r15d, %r15d
	movq	%rax, 32(%rsp)
	movq	%rbx, %rax
	leaq	96(%rsp), %r14
	movq	%r15, %rbx
	leaq	8+yoko(%rip), %r13
	movq	%rax, %r15
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L34:
	subq	%rdx, %rsi
	movq	%rdi, 0(%r13)
	cmpq	%rdx, %rsi
	cmovg	%rdx, %rsi
	movq	%rsi, (%r15)
	movq	(%r12,%rcx,8), %rax
	subq	%rdx, %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, 8(%r15)
	movq	0(%rbp,%rcx,8), %rax
	movq	%rax, 8(%r13)
	cmpq	%r8, %rcx
	jg	.L33
.L10:
	movl	$3, %edx
	salq	$3, %rcx
	addq	$8, %r13
	addq	$8, %r15
	subq	%r10, %rdx
	leaq	8(%rcx), %r9
	leaq	(%r12,%rcx), %rdi
	movq	%r8, 24(%rsp)
	addq	%rbx, %rdx
	leaq	(%r12,%r9), %rsi
	movq	%r9, 16(%rsp)
	leaq	0(,%rdx,8), %rbx
	movq	%rcx, 8(%rsp)
	movq	%rbx, %rdx
	call	memmove@PLT
	movq	16(%rsp), %r9
	movq	8(%rsp), %rcx
	movq	%rbx, %rdx
	leaq	0(%rbp,%r9), %rsi
	leaq	0(%rbp,%rcx), %rdi
	call	memmove@PLT
	movq	64(%rsp), %rdx
	movq	24(%rsp), %r8
	cmpq	%rdx, %r8
	jge	.L8
.L13:
	movq	%r8, %rbx
.L11:
	movq	32(%rsp), %rsi
	movq	%r14, %rdx
	leaq	.LC0(%rip), %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movq	88(%rsp), %r10
	movq	96(%rsp), %rax
	leaq	-1(%r10), %rcx
	cqto
	movq	(%r12,%rcx,8), %rsi
	movq	0(%rbp,%rcx,8), %rdi
	movq	%rcx, 88(%rsp)
	leaq	(%rsi,%rdi), %r8
	idivq	%r8
	leaq	1(%rbx), %r8
	movq	%rdx, 96(%rsp)
	cmpq	%rdx, %rsi
	jg	.L34
	subq	%rsi, %rdx
	movq	%rsi, (%r15)
	movq	(%r12,%rcx,8), %rax
	subq	%rdx, %rdi
	movq	%rdx, 96(%rsp)
	cmpq	%rdx, %rdi
	movq	%rax, 8(%r15)
	cmovg	%rdx, %rdi
	movq	%rdi, 0(%r13)
	movq	0(%rbp,%rcx,8), %rax
	subq	%rdx, %rax
	cmpq	%rdx, %rax
	cmovl	%rdx, %rax
	movq	%rax, 8(%r13)
	cmpq	%r8, %rcx
	jle	.L10
.L33:
	movq	64(%rsp), %rdx
	addq	$8, %r13
	addq	$8, %r15
	cmpq	%r8, %rdx
	jg	.L13
.L8:
	leaq	1(%rdx), %rsi
	xorl	%eax, %eax
	leaq	a(%rip), %r13
	testq	%rdx, %rdx
	js	.L18
	.p2align 4,,10
	.p2align 3
.L17:
	movq	(%r12,%rax,8), %rcx
	imulq	0(%rbp,%rax,8), %rcx
	movq	%rcx, 0(%r13,%rax,8)
	addq	$1, %rax
	cmpq	%rsi, %rax
	jne	.L17
.L18:
	addl	$1, %edx
	leaq	upll(%rip), %rcx
	movq	%r13, %rdi
	xorl	%r14d, %r14d
	movslq	%edx, %rsi
	movl	$8, %edx
	leaq	.LC1(%rip), %rbx
	call	qsort@PLT
	movq	64(%rsp), %r15
	testq	%r15, %r15
	js	.L7
.L15:
	cmpq	%r14, %r15
	je	.L19
.L35:
	movq	0(%r13,%r14,8), %rdx
	movl	$32, %ecx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	addq	$1, %r14
	call	__printf_chk@PLT
	movq	64(%rsp), %r15
	cmpq	%r15, %r14
	jg	.L7
	cmpq	%r14, %r15
	jne	.L35
.L19:
	movq	0(%r13,%r15,8), %rdx
	movl	$10, %ecx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	movl	$1, %edi
	leaq	1(%r15), %r14
	call	__printf_chk@PLT
	movq	64(%rsp), %r15
	cmpq	%r14, %r15
	jge	.L15
	jmp	.L7
.L32:
	movq	104(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L36
	addq	$120, %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
.L36:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	a
	.bss
	.align 32
	.type	a, @object
	.size	a, 880
a:
	.zero	880
	.globl	yoko
	.align 32
	.type	yoko, @object
	.size	yoko, 880
yoko:
	.zero	880
	.globl	tate
	.align 32
	.type	tate, @object
	.size	tate, 880
tate:
	.zero	880
	.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 <stdlib.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))

ll tate[110],yoko[110];
ll a[110];
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);}

int main(){
	ll n,w,h;
	while(scanf("%lld%lld%lld",&n,&w,&h),h){
		tate[0]=w;
		yoko[0]=h;
		rep(i,0,n){
			ll p,s;
			scanf("%lld%lld",&p,&s);
			p--;
			s%=tate[p]+yoko[p];
			if(s<tate[p]){
				//tate
				tate[i+1]=min(s,tate[p]-s);
				tate[i+2]=max(s,tate[p]-s);
				yoko[i+1]=yoko[p];
				yoko[i+2]=yoko[p];
			}else{
				//yoko
				s-=tate[p];
				tate[i+1]=tate[p];
				tate[i+2]=tate[p];
				yoko[i+1]=min(s,yoko[p]-s);
				yoko[i+2]=max(s,yoko[p]-s);
			}
			rep(j,p,i+2){
				tate[j]=tate[j+1];
				yoko[j]=yoko[j+1];
			}
		}
		rep(i,0,n+1)a[i]=tate[i]*yoko[i];
		sortup(a,n+1);
		rep(i,0,n+1)printf("%lld%c",a[i],i==n?'\n':' ');
	}
}

3 5 6
1 18
2 31
1 2
3 4 1
1 1
2 1
3 1
0 2 5
0 0 0
 3 5 6
1 35
2 31
1 2
3 4 1
1 1
2 1
3 1
0 2 5
0 0 0
 3 5 6
1 48
2 31
1 2
3 4 1
1 1
2 1
3 1
0 2 5
0 0 0
 3 5 6
1 48
2 6
1 2
3 4 1
1 1
2 1
3 1
0 2 5
0 0 0
 3 7 6
1 35
2 31
1 2
3 4 1
1 1
2 1
3 1
0 2 5
0 0 0
 3 5 6
1 48
2 6
1 2
3 4 2
1 1
2 1
3 1
0 2 5
0 0 0
 3 5 6
1 48
2 31
2 2
3 4 1
1 2
2 1
3 1
0 2 5
0 0 0
 3 4 6
1 48
2 31
1 2
3 4 1
1 1
2 1
3 1
0 2 5
0 0 0
 3 7 6
1 35
2 31
1 2
3 4 1
1 1
2 1
2 1
0 2 5
0 0 0
 3 5 6
1 48
1 31
2 2
3 4 1
1 1
2 1
3 1
0 2 5
0 0 0

4 4 6 16
1 1 1 1
10
 0 3 12 15
1 1 1 1
10
 1 5 6 18
1 1 1 1
10
 1 5 8 16
1 1 1 1
10
 4 10 14 14
1 1 1 1
10
 1 5 8 16
2 2 2 2
10
 1 5 6 18
0 1 1 2
10
 4 4 4 12
1 1 1 1
10
 4 10 14 14
0 1 1 2
10
 1 1 4 24
1 1 1 1
10

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 <stdlib.h>
#define ll long long
#define rep(i,l,r)for(ll i=l;i<r;i++)
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))

ll tate[110],yoko[110];
ll a[110];
int upll(const void*a, const void*b){return*(ll*)a<*(ll*)b?-1:*(ll*)a>*(ll*)b?1:0;}
void sortup(ll*a,int n){qsort(a,n,sizeof(ll),upll);}

int main(){
	ll n,w,h;
	while(scanf("%lld%lld%lld",&n,&w,&h),h){
		tate[0]=w;
		yoko[0]=h;
		rep(i,0,n){
			ll p,s;
			scanf("%lld%lld",&p,&s);
			p--;
			s%=tate[p]+yoko[p];
			if(s<tate[p]){
				//tate
				tate[i+1]=min(s,tate[p]-s);
				tate[i+2]=max(s,tate[p]-s);
				yoko[i+1]=yoko[p];
				yoko[i+2]=yoko[p];
			}else{
				//yoko
				s-=tate[p];
				tate[i+1]=tate[p];
				tate[i+2]=tate[p];
				yoko[i+1]=min(s,yoko[p]-s);
				yoko[i+2]=max(s,yoko[p]-s);
			}
			rep(j,p,i+2){
				tate[j]=tate[j+1];
				yoko[j]=yoko[j+1];
			}
		}
		rep(i,0,n+1)a[i]=tate[i]*yoko[i];
		sortup(a,n+1);
		rep(i,0,n+1)printf("%lld%c",a[i],i==n?'\n':' ');
	}
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	tate
	.bss
	.align 32
	.type	tate, @object
	.size	tate, 880
tate:
	.zero	880
	.globl	yoko
	.align 32
	.type	yoko, @object
	.size	yoko, 880
yoko:
	.zero	880
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 880
a:
	.zero	880
	.text
	.globl	upll
	.type	upll, @function
upll:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jl	.L2
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	upll, .-upll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	upll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sortup, .-sortup
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%c"
.LC2:
	.string	"%lld%lld%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L7
.L20:
	movq	-72(%rbp), %rax
	movq	%rax, tate(%rip)
	movq	-64(%rbp), %rax
	movq	%rax, yoko(%rip)
	movq	$0, -40(%rbp)
	jmp	.L8
.L13:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-56(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -56(%rbp)
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	(%rcx,%rdx), %rsi
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	yoko(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	leaq	(%rsi,%rdx), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L9
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$1, %rcx
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$2, %rcx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	2(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L10
.L9:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	2(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$1, %rcx
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$2, %rcx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L10:
	movq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L11
.L12:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-32(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -32(%rbp)
.L11:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	cmpq	%rax, -32(%rbp)
	jle	.L12
	addq	$1, -40(%rbp)
.L8:
	movq	-80(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L13
	movq	$0, -24(%rbp)
	jmp	.L14
.L15:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	yoko(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	-24(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	a(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -24(%rbp)
.L14:
	movq	-80(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jle	.L15
	movq	-80(%rbp), %rax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	sortup
	movq	$0, -16(%rbp)
	jmp	.L16
.L19:
	movq	-80(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jne	.L17
	movl	$10, %ecx
	jmp	.L18
.L17:
	movl	$32, %ecx
.L18:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%ecx, %edx
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -16(%rbp)
.L16:
	movq	-80(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L19
.L7:
	leaq	-64(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	tate
	.bss
	.align 32
	.type	tate, @object
	.size	tate, 880
tate:
	.zero	880
	.globl	yoko
	.align 32
	.type	yoko, @object
	.size	yoko, 880
yoko:
	.zero	880
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 880
a:
	.zero	880
	.text
	.globl	upll
	.type	upll, @function
upll:
.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, -8(%rbp)
	movq	%rsi, -16(%rbp)
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	jl	.L2
	movq	-8(%rbp), %rax
	movq	(%rax), %rdx
	movq	-16(%rbp), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rdx
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	upll, .-upll
	.globl	sortup
	.type	sortup, @function
sortup:
.LFB7:
	.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
	movq	%rdi, -8(%rbp)
	movl	%esi, -12(%rbp)
	movl	-12(%rbp), %eax
	movslq	%eax, %rsi
	movq	-8(%rbp), %rax
	leaq	upll(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rdi
	call	qsort@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	sortup, .-sortup
	.section	.rodata
.LC0:
	.string	"%lld%lld"
.LC1:
	.string	"%lld%c"
.LC2:
	.string	"%lld%lld%lld"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$80, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	jmp	.L7
.L20:
	movq	-72(%rbp), %rax
	movq	%rax, tate(%rip)
	movq	-64(%rbp), %rax
	movq	%rax, yoko(%rip)
	movq	$0, -40(%rbp)
	jmp	.L8
.L13:
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-56(%rbp), %rax
	subq	$1, %rax
	movq	%rax, -56(%rbp)
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	(%rcx,%rdx), %rsi
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	yoko(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	leaq	(%rsi,%rdx), %rcx
	cqto
	idivq	%rcx
	movq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-48(%rbp), %rax
	cmpq	%rax, %rdx
	jle	.L9
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$1, %rcx
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$2, %rcx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	2(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	jmp	.L10
.L9:
	movq	-48(%rbp), %rax
	movq	-56(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	(%rcx,%rdx), %rdx
	subq	%rdx, %rax
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	1(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	movq	-40(%rbp), %rdx
	leaq	2(%rdx), %rcx
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	salq	$3, %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$1, %rcx
	cmpq	%rax, %rdx
	cmovle	%rdx, %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-56(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-48(%rbp), %rcx
	subq	%rcx, %rax
	movq	%rax, %rdx
	movq	-48(%rbp), %rax
	movq	-40(%rbp), %rcx
	addq	$2, %rcx
	cmpq	%rax, %rdx
	cmovge	%rdx, %rax
	salq	$3, %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
.L10:
	movq	-56(%rbp), %rax
	movq	%rax, -32(%rbp)
	jmp	.L11
.L12:
	movq	-32(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	tate(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	movq	-32(%rbp), %rax
	addq	$1, %rax
	leaq	0(,%rax,8), %rdx
	leaq	yoko(%rip), %rax
	movq	(%rdx,%rax), %rax
	movq	-32(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	yoko(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -32(%rbp)
.L11:
	movq	-40(%rbp), %rax
	addq	$1, %rax
	cmpq	%rax, -32(%rbp)
	jle	.L12
	addq	$1, -40(%rbp)
.L8:
	movq	-80(%rbp), %rax
	cmpq	%rax, -40(%rbp)
	jl	.L13
	movq	$0, -24(%rbp)
	jmp	.L14
.L15:
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	tate(%rip), %rax
	movq	(%rdx,%rax), %rdx
	movq	-24(%rbp), %rax
	leaq	0(,%rax,8), %rcx
	leaq	yoko(%rip), %rax
	movq	(%rcx,%rax), %rax
	imulq	%rdx, %rax
	movq	-24(%rbp), %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	a(%rip), %rdx
	movq	%rax, (%rcx,%rdx)
	addq	$1, -24(%rbp)
.L14:
	movq	-80(%rbp), %rax
	cmpq	%rax, -24(%rbp)
	jle	.L15
	movq	-80(%rbp), %rax
	addl	$1, %eax
	movl	%eax, %esi
	leaq	a(%rip), %rax
	movq	%rax, %rdi
	call	sortup
	movq	$0, -16(%rbp)
	jmp	.L16
.L19:
	movq	-80(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jne	.L17
	movl	$10, %ecx
	jmp	.L18
.L17:
	movl	$32, %ecx
.L18:
	movq	-16(%rbp), %rax
	leaq	0(,%rax,8), %rdx
	leaq	a(%rip), %rax
	movq	(%rdx,%rax), %rax
	movl	%ecx, %edx
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	addq	$1, -16(%rbp)
.L16:
	movq	-80(%rbp), %rax
	cmpq	%rax, -16(%rbp)
	jle	.L19
.L7:
	leaq	-64(%rbp), %rcx
	leaq	-72(%rbp), %rdx
	leaq	-80(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jne	.L20
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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:
