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>
#include<stdlib.h>

int main(){
int ans=0;
int n;

scanf("%d",&n);
int a[n],b[n],c[n],d[n];
int use[n];
for(int i=0;i<n;i++){
use[i]=1;
}
for(int i=0;i<n;i++){
	scanf("%d %d",&a[i],&b[i]);
}
for(int i=0;i<n;i++){
	scanf("%d %d",&c[i],&d[i]);
}
int temp;
for(int i=0;i<n-1;i++){
	for(int j=0;j<n-1;j++){
		if(d[j]>d[j+1]){
			temp=d[j+1];
			d[j+1]=d[j];
			d[j]=temp;
			temp=c[j+1];
			c[j+1]=c[j];
			c[j]=temp;
		}
		if(a[j]>a[j+1]){
			temp=a[j+1];
			a[j+1]=a[j];
			a[j]=temp;
			temp=b[j+1];
			b[j+1]=b[j];
			b[j]=temp;
		}
	}
}
for(int i=0;i<n;i++){
	for(int j=n-1;j>=0;j--){
		if((a[j]<c[i])*(b[j]<d[i])){
			if(use[j]){
				use[j]=0;
				ans=ans+1;
				break;
			}
		}
	}
}
printf("%d\n",ans);

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -172(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -128(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L17
.L18:
	movq	-64(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	addl	$1, -168(%rbp)
.L17:
	movl	-176(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L18
	movl	$0, -164(%rbp)
	jmp	.L19
.L20:
	movl	-164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rax, %rdx
	movl	-164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-128(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -164(%rbp)
.L19:
	movl	-176(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L20
	movl	$0, -160(%rbp)
	jmp	.L21
.L22:
	movl	-160(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-160(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-96(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -160(%rbp)
.L21:
	movl	-176(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L22
	movl	$0, -156(%rbp)
	jmp	.L23
.L28:
	movl	$0, -152(%rbp)
	jmp	.L24
.L27:
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L25
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L25:
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L26
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-128(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-112(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-112(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-112(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L26:
	addl	$1, -152(%rbp)
.L24:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -152(%rbp)
	jl	.L27
	addl	$1, -156(%rbp)
.L23:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -156(%rbp)
	jl	.L28
	movl	$0, -148(%rbp)
	jmp	.L29
.L34:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L30
.L33:
	movq	-128(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movq	-112(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %esi
	setl	%al
	movzbl	%al, %eax
	imull	%ecx, %eax
	testl	%eax, %eax
	je	.L31
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	je	.L31
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
	jmp	.L32
.L31:
	subl	$1, -144(%rbp)
.L30:
	cmpl	$0, -144(%rbp)
	jns	.L33
.L32:
	addl	$1, -148(%rbp)
.L29:
	movl	-176(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L34
	movl	-172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L66:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L66
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L67
.L4:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L67:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L68
.L7:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r12
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L68:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L10
	orq	$0, -8(%rsp,%rdx)
.L10:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r14
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L11:
	cmpq	%rcx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L13
	orq	$0, -8(%rsp,%rdx)
.L13:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r13
	andq	$-16, %rdx
	subq	%rax, %rcx
.L14:
	cmpq	%rcx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L16
	orq	$0, -8(%rsp,%rax)
.L16:
	movq	%rsp, %r15
	testl	%esi, %esi
	jle	.L28
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L36
	movl	%esi, %edx
	movdqa	.LC1(%rip), %xmm0
	movq	%r15, %rax
	shrl	$2, %edx
	salq	$4, %rdx
	addq	%r15, %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L19
	movl	%esi, %eax
	andl	$-4, %eax
	testb	$3, %sil
	je	.L20
.L18:
	movslq	%eax, %rdx
	leal	1(%rax), %edi
	leaq	(%r15,%rdx,4), %rdx
	movl	$1, (%rdx)
	cmpl	%edi, %esi
	jle	.L20
	addl	$2, %eax
	movl	$1, 4(%rdx)
	cmpl	%esi, %eax
	jge	.L20
	movl	$1, 8(%rdx)
.L20:
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L21:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movl	%r8d, -84(%rbp)
	movq	%rdx, -80(%rbp)
	movq	%rsi, -72(%rbp)
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %r8d
	movq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdx
	movl	-60(%rbp), %eax
	addl	$1, %r8d
	addq	$4, %rsi
	addq	$4, %rdx
	cmpl	%r8d, %eax
	jg	.L21
	testl	%eax, %eax
	jle	.L28
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movl	%r9d, -84(%rbp)
	movq	%rdx, -80(%rbp)
	movq	%rsi, -72(%rbp)
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %r9d
	movq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdx
	movslq	-60(%rbp), %r8
	addl	$1, %r9d
	addq	$4, %rsi
	addq	$4, %rdx
	cmpl	%r9d, %r8d
	jg	.L22
	leal	-1(%r8), %edi
	testl	%edi, %edi
	jle	.L23
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L26:
	movq	0(%r13,%rax,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %esi
	jge	.L24
	movq	%xmm1, 0(%r13,%rax,4)
	rolq	$32, (%r14,%rax,4)
.L24:
	movq	(%rbx,%rax,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %edx
	movd	%xmm3, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %esi
	jge	.L25
	movq	%xmm1, (%rbx,%rax,4)
	rolq	$32, (%r12,%rax,4)
.L25:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L26
	addl	$1, %r9d
	cmpl	%edi, %r9d
	jl	.L27
.L23:
	testl	%r8d, %r8d
	jle	.L28
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L29:
	testl	%edi, %edi
	js	.L31
	movl	(%r14,%r10,4), %esi
	movl	0(%r13,%r10,4), %r9d
	movslq	%edi, %rax
	.p2align 4,,10
	.p2align 3
.L32:
	movslq	%eax, %rdx
	cmpl	%esi, (%rbx,%rax,4)
	jge	.L30
	cmpl	%r9d, (%r12,%rax,4)
	jge	.L30
	movl	(%r15,%rax,4), %ecx
	testl	%ecx, %ecx
	jne	.L69
.L30:
	subq	$1, %rax
	testl	%eax, %eax
	jns	.L32
.L31:
	addq	$1, %r10
	cmpq	%r10, %r8
	jne	.L29
.L33:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L70
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L69:
	.cfi_restore_state
	movl	$0, (%r15,%rdx,4)
	addl	$1, %r11d
	jmp	.L31
.L28:
	xorl	%r11d, %r11d
	jmp	.L33
.L36:
	xorl	%eax, %eax
	jmp	.L18
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC2:
	.string	"%d %d"
.LC3:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	leaq	.LC0(%rip), %rdi
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	leaq	-60(%rbp), %rsi
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movslq	-60(%rbp), %rax
	movq	%rsp, %rcx
	movq	%rax, %rsi
	leaq	15(,%rax,4), %rax
	movq	%rax, %rdi
	movq	%rax, %rdx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
	cmpq	%rcx, %rsp
	je	.L3
.L66:
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	cmpq	%rcx, %rsp
	jne	.L66
.L3:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L67
.L4:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %rbx
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L67:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L4
.L6:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	jne	.L68
.L7:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r12
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L8:
	cmpq	%rcx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L68:
	orq	$0, -8(%rsp,%rdx)
	jmp	.L7
.L9:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L10
	orq	$0, -8(%rsp,%rdx)
.L10:
	movq	%rax, %rdi
	movq	%rax, %rdx
	movq	%rsp, %rcx
	movq	%rsp, %r14
	andq	$-4096, %rdi
	andq	$-16, %rdx
	subq	%rdi, %rcx
.L11:
	cmpq	%rcx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	andl	$4095, %edx
	subq	%rdx, %rsp
	testq	%rdx, %rdx
	je	.L13
	orq	$0, -8(%rsp,%rdx)
.L13:
	movq	%rax, %rdx
	movq	%rsp, %rcx
	andq	$-4096, %rax
	movq	%rsp, %r13
	andq	$-16, %rdx
	subq	%rax, %rcx
.L14:
	cmpq	%rcx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	testq	%rax, %rax
	je	.L16
	orq	$0, -8(%rsp,%rax)
.L16:
	movq	%rsp, %r15
	testl	%esi, %esi
	jle	.L28
	leal	-1(%rsi), %eax
	cmpl	$2, %eax
	jbe	.L36
	movl	%esi, %edx
	movdqa	.LC1(%rip), %xmm0
	movq	%r15, %rax
	shrl	$2, %edx
	salq	$4, %rdx
	addq	%r15, %rdx
	.p2align 4,,10
	.p2align 3
.L19:
	movups	%xmm0, (%rax)
	addq	$16, %rax
	cmpq	%rdx, %rax
	jne	.L19
	movl	%esi, %eax
	andl	$-4, %eax
	testb	$3, %sil
	je	.L20
.L18:
	movslq	%eax, %rdx
	leal	1(%rax), %edi
	leaq	(%r15,%rdx,4), %rdx
	movl	$1, (%rdx)
	cmpl	%edi, %esi
	jle	.L20
	addl	$2, %eax
	movl	$1, 4(%rdx)
	cmpl	%esi, %eax
	jge	.L20
	movl	$1, 8(%rdx)
.L20:
	movq	%rbx, %rsi
	movq	%r12, %rdx
	xorl	%r8d, %r8d
	.p2align 4,,10
	.p2align 3
.L21:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movl	%r8d, -84(%rbp)
	movq	%rdx, -80(%rbp)
	movq	%rsi, -72(%rbp)
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %r8d
	movq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdx
	movl	-60(%rbp), %eax
	addl	$1, %r8d
	addq	$4, %rsi
	addq	$4, %rdx
	cmpl	%r8d, %eax
	jg	.L21
	testl	%eax, %eax
	jle	.L28
	movq	%r14, %rsi
	movq	%r13, %rdx
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L22:
	leaq	.LC2(%rip), %rdi
	xorl	%eax, %eax
	movl	%r9d, -84(%rbp)
	movq	%rdx, -80(%rbp)
	movq	%rsi, -72(%rbp)
	call	__isoc99_scanf@PLT
	movl	-84(%rbp), %r9d
	movq	-72(%rbp), %rsi
	movq	-80(%rbp), %rdx
	movslq	-60(%rbp), %r8
	addl	$1, %r9d
	addq	$4, %rsi
	addq	$4, %rdx
	cmpl	%r9d, %r8d
	jg	.L22
	leal	-1(%r8), %edi
	testl	%edi, %edi
	jle	.L23
	xorl	%r9d, %r9d
	.p2align 4,,10
	.p2align 3
.L27:
	xorl	%eax, %eax
	.p2align 4,,10
	.p2align 3
.L26:
	movq	0(%r13,%rax,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm2
	movd	%xmm0, %edx
	movd	%xmm2, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %esi
	jge	.L24
	movq	%xmm1, 0(%r13,%rax,4)
	rolq	$32, (%r14,%rax,4)
.L24:
	movq	(%rbx,%rax,4), %xmm0
	pshufd	$0xe5, %xmm0, %xmm3
	movd	%xmm0, %edx
	movd	%xmm3, %esi
	pshufd	$225, %xmm0, %xmm1
	cmpl	%edx, %esi
	jge	.L25
	movq	%xmm1, (%rbx,%rax,4)
	rolq	$32, (%r12,%rax,4)
.L25:
	addq	$1, %rax
	cmpl	%eax, %edi
	jg	.L26
	addl	$1, %r9d
	cmpl	%edi, %r9d
	jl	.L27
.L23:
	testl	%r8d, %r8d
	jle	.L28
	xorl	%r10d, %r10d
	xorl	%r11d, %r11d
	.p2align 4,,10
	.p2align 3
.L29:
	testl	%edi, %edi
	js	.L31
	movl	(%r14,%r10,4), %esi
	movl	0(%r13,%r10,4), %r9d
	movslq	%edi, %rax
	.p2align 4,,10
	.p2align 3
.L32:
	movslq	%eax, %rdx
	cmpl	%esi, (%rbx,%rax,4)
	jge	.L30
	cmpl	%r9d, (%r12,%rax,4)
	jge	.L30
	movl	(%r15,%rax,4), %ecx
	testl	%ecx, %ecx
	jne	.L69
.L30:
	subq	$1, %rax
	testl	%eax, %eax
	jns	.L32
.L31:
	addq	$1, %r10
	cmpq	%r10, %r8
	jne	.L29
.L33:
	xorl	%eax, %eax
	movl	%r11d, %edx
	movl	$1, %edi
	leaq	.LC3(%rip), %rsi
	call	__printf_chk@PLT
	movq	-56(%rbp), %rax
	subq	%fs:40, %rax
	jne	.L70
	leaq	-40(%rbp), %rsp
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L69:
	.cfi_restore_state
	movl	$0, (%r15,%rdx,4)
	addl	$1, %r11d
	jmp	.L31
.L28:
	xorl	%r11d, %r11d
	jmp	.L33
.L36:
	xorl	%eax, %eax
	jmp	.L18
.L70:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	1
	.long	1
	.long	1
	.long	1
	.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>
#include<stdlib.h>

int main(){
int ans=0;
int n;

scanf("%d",&n);
int a[n],b[n],c[n],d[n];
int use[n];
for(int i=0;i<n;i++){
use[i]=1;
}
for(int i=0;i<n;i++){
	scanf("%d %d",&a[i],&b[i]);
}
for(int i=0;i<n;i++){
	scanf("%d %d",&c[i],&d[i]);
}
int temp;
for(int i=0;i<n-1;i++){
	for(int j=0;j<n-1;j++){
		if(d[j]>d[j+1]){
			temp=d[j+1];
			d[j+1]=d[j];
			d[j]=temp;
			temp=c[j+1];
			c[j+1]=c[j];
			c[j]=temp;
		}
		if(a[j]>a[j+1]){
			temp=a[j+1];
			a[j+1]=a[j];
			a[j]=temp;
			temp=b[j+1];
			b[j+1]=b[j];
			b[j]=temp;
		}
	}
}
for(int i=0;i<n;i++){
	for(int j=n-1;j>=0;j--){
		if((a[j]<c[i])*(b[j]<d[i])){
			if(use[j]){
				use[j]=0;
				ans=ans+1;
				break;
			}
		}
	}
}
printf("%d\n",ans);

}
2
2 2
3 5
0 0
1 1
 5
0 0
7 3
2 2
4 8
1 6
8 5
6 9
5 4
9 1
2 7
 5
0 0
1 1
5 5
6 6
7 11
2 2
3 3
4 4
8 8
9 9
 3
0 0
1 1
10 2
2 3
3 4
4 5
 5
0 0
4 1
5 5
6 6
13 11
2 2
3 3
2 4
8 8
9 16
 2
0 0
6 -1
0 0
1 1
 2
2 2
3 0
0 0
1 1
 5
-1 0
7 3
2 2
4 8
1 6
8 5
6 9
5 4
9 1
2 7
 5
0 0
1 1
5 5
6 6
7 11
2 2
3 3
2 4
8 8
9 9
 3
0 0
1 1
10 2
2 0
3 4
4 5

0
 5
 4
 2
 3
 1
 0
 5
 4
 2

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>
#include<stdlib.h>

int main(){
int ans=0;
int n;

scanf("%d",&n);
int a[n],b[n],c[n],d[n];
int use[n];
for(int i=0;i<n;i++){
use[i]=1;
}
for(int i=0;i<n;i++){
	scanf("%d %d",&a[i],&b[i]);
}
for(int i=0;i<n;i++){
	scanf("%d %d",&c[i],&d[i]);
}
int temp;
for(int i=0;i<n-1;i++){
	for(int j=0;j<n-1;j++){
		if(d[j]>d[j+1]){
			temp=d[j+1];
			d[j+1]=d[j];
			d[j]=temp;
			temp=c[j+1];
			c[j+1]=c[j];
			c[j]=temp;
		}
		if(a[j]>a[j+1]){
			temp=a[j+1];
			a[j+1]=a[j];
			a[j]=temp;
			temp=b[j+1];
			b[j+1]=b[j];
			b[j]=temp;
		}
	}
}
for(int i=0;i<n;i++){
	for(int j=n-1;j>=0;j--){
		if((a[j]<c[i])*(b[j]<d[i])){
			if(use[j]){
				use[j]=0;
				ans=ans+1;
				break;
			}
		}
	}
}
printf("%d\n",ans);

}```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -172(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -128(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L17
.L18:
	movq	-64(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	addl	$1, -168(%rbp)
.L17:
	movl	-176(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L18
	movl	$0, -164(%rbp)
	jmp	.L19
.L20:
	movl	-164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rax, %rdx
	movl	-164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-128(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -164(%rbp)
.L19:
	movl	-176(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L20
	movl	$0, -160(%rbp)
	jmp	.L21
.L22:
	movl	-160(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-160(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-96(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -160(%rbp)
.L21:
	movl	-176(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L22
	movl	$0, -156(%rbp)
	jmp	.L23
.L28:
	movl	$0, -152(%rbp)
	jmp	.L24
.L27:
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L25
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L25:
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L26
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-128(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-112(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-112(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-112(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L26:
	addl	$1, -152(%rbp)
.L24:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -152(%rbp)
	jl	.L27
	addl	$1, -156(%rbp)
.L23:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -156(%rbp)
	jl	.L28
	movl	$0, -148(%rbp)
	jmp	.L29
.L34:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L30
.L33:
	movq	-128(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movq	-112(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %esi
	setl	%al
	movzbl	%al, %eax
	imull	%ecx, %eax
	testl	%eax, %eax
	je	.L31
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	je	.L31
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
	jmp	.L32
.L31:
	subl	$1, -144(%rbp)
.L30:
	cmpl	$0, -144(%rbp)
	jns	.L33
.L32:
	addl	$1, -148(%rbp)
.L29:
	movl	-176(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L34
	movl	-172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$264, %rsp
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	movq	%fs:40, %rax
	movq	%rax, -56(%rbp)
	xorl	%eax, %eax
	movq	%rsp, %rax
	movq	%rax, %rbx
	movl	$0, -172(%rbp)
	leaq	-176(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -136(%rbp)
	movslq	%edx, %rax
	movq	%rax, %r12
	movl	$0, %r13d
	movslq	%edx, %rax
	movq	%rax, %r14
	movl	$0, %r15d
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L2:
	cmpq	%rcx, %rsp
	je	.L3
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L2
.L3:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L4
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L4:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -128(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -120(%rbp)
	movslq	%edx, %rax
	movq	%rax, -192(%rbp)
	movq	$0, -184(%rbp)
	movslq	%edx, %rax
	movq	%rax, -208(%rbp)
	movq	$0, -200(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rdx
	movq	%rdx, %rax
	andq	$-4096, %rax
	movq	%rsp, %rcx
	subq	%rax, %rcx
.L5:
	cmpq	%rcx, %rsp
	je	.L6
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L5
.L6:
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	%rax, %rsp
	movq	%rdx, %rax
	andl	$4095, %eax
	testq	%rax, %rax
	je	.L7
	movq	%rdx, %rax
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L7:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -112(%rbp)
	movl	-176(%rbp), %edx
	movslq	%edx, %rax
	subq	$1, %rax
	movq	%rax, -104(%rbp)
	movslq	%edx, %rax
	movq	%rax, -224(%rbp)
	movq	$0, -216(%rbp)
	movslq	%edx, %rax
	movq	%rax, -240(%rbp)
	movq	$0, -232(%rbp)
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L8:
	cmpq	%rdx, %rsp
	je	.L9
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L8
.L9:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L10
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L10:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -96(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -88(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -256(%rbp)
	movq	$0, -248(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -272(%rbp)
	movq	$0, -264(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L11:
	cmpq	%rdx, %rsp
	je	.L12
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L11
.L12:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L13
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L13:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -80(%rbp)
	movl	-176(%rbp), %eax
	movslq	%eax, %rdx
	subq	$1, %rdx
	movq	%rdx, -72(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -288(%rbp)
	movq	$0, -280(%rbp)
	movslq	%eax, %rdx
	movq	%rdx, -304(%rbp)
	movq	$0, -296(%rbp)
	cltq
	leaq	0(,%rax,4), %rdx
	movl	$16, %eax
	subq	$1, %rax
	addq	%rdx, %rax
	movl	$16, %edi
	movl	$0, %edx
	divq	%rdi
	imulq	$16, %rax, %rax
	movq	%rax, %rcx
	andq	$-4096, %rcx
	movq	%rsp, %rdx
	subq	%rcx, %rdx
.L14:
	cmpq	%rdx, %rsp
	je	.L15
	subq	$4096, %rsp
	orq	$0, 4088(%rsp)
	jmp	.L14
.L15:
	movq	%rax, %rdx
	andl	$4095, %edx
	subq	%rdx, %rsp
	movq	%rax, %rdx
	andl	$4095, %edx
	testq	%rdx, %rdx
	je	.L16
	andl	$4095, %eax
	subq	$8, %rax
	addq	%rsp, %rax
	orq	$0, (%rax)
.L16:
	movq	%rsp, %rax
	addq	$3, %rax
	shrq	$2, %rax
	salq	$2, %rax
	movq	%rax, -64(%rbp)
	movl	$0, -168(%rbp)
	jmp	.L17
.L18:
	movq	-64(%rbp), %rax
	movl	-168(%rbp), %edx
	movslq	%edx, %rdx
	movl	$1, (%rax,%rdx,4)
	addl	$1, -168(%rbp)
.L17:
	movl	-176(%rbp), %eax
	cmpl	%eax, -168(%rbp)
	jl	.L18
	movl	$0, -164(%rbp)
	jmp	.L19
.L20:
	movl	-164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-112(%rbp), %rax
	addq	%rax, %rdx
	movl	-164(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-128(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -164(%rbp)
.L19:
	movl	-176(%rbp), %eax
	cmpl	%eax, -164(%rbp)
	jl	.L20
	movl	$0, -160(%rbp)
	jmp	.L21
.L22:
	movl	-160(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	movq	-80(%rbp), %rax
	addq	%rax, %rdx
	movl	-160(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	movq	-96(%rbp), %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -160(%rbp)
.L21:
	movl	-176(%rbp), %eax
	cmpl	%eax, -160(%rbp)
	jl	.L22
	movl	$0, -156(%rbp)
	jmp	.L23
.L28:
	movl	$0, -152(%rbp)
	jmp	.L24
.L27:
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L25
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-80(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-80(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-80(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-96(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-96(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L25:
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	jle	.L26
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-128(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-128(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-128(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
	movl	-152(%rbp), %eax
	leal	1(%rax), %edx
	movq	-112(%rbp), %rax
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	movl	%eax, -140(%rbp)
	movl	-152(%rbp), %eax
	leal	1(%rax), %esi
	movq	-112(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-112(%rbp), %rax
	movslq	%esi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movq	-112(%rbp), %rax
	movl	-152(%rbp), %edx
	movslq	%edx, %rdx
	movl	-140(%rbp), %ecx
	movl	%ecx, (%rax,%rdx,4)
.L26:
	addl	$1, -152(%rbp)
.L24:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -152(%rbp)
	jl	.L27
	addl	$1, -156(%rbp)
.L23:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	cmpl	%eax, -156(%rbp)
	jl	.L28
	movl	$0, -148(%rbp)
	jmp	.L29
.L34:
	movl	-176(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -144(%rbp)
	jmp	.L30
.L33:
	movq	-128(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	-96(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %ecx
	setl	%al
	movzbl	%al, %ecx
	movq	-112(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %esi
	movq	-80(%rbp), %rax
	movl	-148(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	cmpl	%eax, %esi
	setl	%al
	movzbl	%al, %eax
	imull	%ecx, %eax
	testl	%eax, %eax
	je	.L31
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	(%rax,%rdx,4), %eax
	testl	%eax, %eax
	je	.L31
	movq	-64(%rbp), %rax
	movl	-144(%rbp), %edx
	movslq	%edx, %rdx
	movl	$0, (%rax,%rdx,4)
	addl	$1, -172(%rbp)
	jmp	.L32
.L31:
	subl	$1, -144(%rbp)
.L30:
	cmpl	$0, -144(%rbp)
	jns	.L33
.L32:
	addl	$1, -148(%rbp)
.L29:
	movl	-176(%rbp), %eax
	cmpl	%eax, -148(%rbp)
	jl	.L34
	movl	-172(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	%rbx, %rsp
	movl	$0, %eax
	movq	-56(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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:
