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>

int main()
{
	int i, N, a[101], b[101], c[101], d[101];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%d %d", &(a[i]), &(b[i]));
	for (i = 1; i <= N; i++) scanf("%d %d", &(c[i]), &(d[i]));
	
	int j, adj[101][101] = {};
	for (i = 1; i <= N; i++) {
		for (j = 1; j <= N; j++) {
			if (a[i] < c[j] && b[i] < d[j]) adj[i][j] = 1;
		}
	}
	
	int m, u, v, w, M[201] = {}, par[201], q[201], head, tail;
	for (m = 0; m <= N; m++) {
		for (i = 1; i <= N * 2; i++) par[i] = 0;
		for (i = 1; i <= N; i++) {
			if (par[i] != 0 || M[i] != 0) continue;
			par[i] = i;
			q[0] = i;
			for (head = 0, tail = 1; head < tail; head++) {
				u = q[head];
				if (u <= N) {
					for (w = N + 1; w <= N * 2; w++) {
						if (adj[u][w-N] == 1) {
							if (M[w] == 0) {
								for (v = w, par[w] = u; par[v] != v; v = par[v]) {
									if (v > N) {
										M[v] = par[v];
										M[par[v]] = v;
									}
								}
								break;
							} else if (par[w] == 0) {
								par[w] = u;
								q[tail++] = w;
							}
						}
					}
					if (w <= N * 2) break;
				} else {
					w = M[u];
					if (par[w] == 0) {
						par[w] = u;
						q[tail++] = w;
					}
				}
			}
			if (head < tail) break;
		}
		if (i > N) break;
	}
	
	printf("%d\n", m);
	fflush(stdout);
	return 0;
}```

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
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44964(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -44960(%rbp)
	jmp	.L2
.L3:
	leaq	-44512(%rbp), %rdx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-44928(%rbp), %rcx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44960(%rbp)
.L2:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L3
	movl	$1, -44960(%rbp)
	jmp	.L4
.L5:
	leaq	-43680(%rbp), %rdx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-44096(%rbp), %rcx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44960(%rbp)
.L4:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L5
	leaq	-40816(%rbp), %rax
	movl	$40804, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44960(%rbp)
	jmp	.L6
.L10:
	movl	$1, -44956(%rbp)
	jmp	.L7
.L9:
	movl	-44960(%rbp), %eax
	cltq
	movl	-44928(%rbp,%rax,4), %edx
	movl	-44956(%rbp), %eax
	cltq
	movl	-44096(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L8
	movl	-44960(%rbp), %eax
	cltq
	movl	-44512(%rbp,%rax,4), %edx
	movl	-44956(%rbp), %eax
	cltq
	movl	-43680(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L8
	movl	-44956(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44960(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -40816(%rbp,%rax,4)
.L8:
	addl	$1, -44956(%rbp)
.L7:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44956(%rbp)
	jle	.L9
	addl	$1, -44960(%rbp)
.L6:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L10
	leaq	-43264(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$0, -44952(%rbp)
	jmp	.L11
.L35:
	movl	$1, -44960(%rbp)
	jmp	.L12
.L13:
	movl	-44960(%rbp), %eax
	cltq
	movl	$0, -42448(%rbp,%rax,4)
	addl	$1, -44960(%rbp)
.L12:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L13
	movl	$1, -44960(%rbp)
	jmp	.L14
.L32:
	movl	-44960(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L38
	movl	-44960(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L38
	movl	-44960(%rbp), %eax
	cltq
	movl	-44960(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44960(%rbp), %eax
	movl	%eax, -41632(%rbp)
	movl	$0, -44940(%rbp)
	movl	$1, -44936(%rbp)
	jmp	.L18
.L30:
	movl	-44940(%rbp), %eax
	cltq
	movl	-41632(%rbp,%rax,4), %eax
	movl	%eax, -44932(%rbp)
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44932(%rbp)
	jg	.L19
	movl	-44964(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44944(%rbp)
	jmp	.L20
.L27:
	movl	-44964(%rbp), %edx
	movl	-44944(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rcx
	movl	-44932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L21
	movl	-44944(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L22
	movl	-44944(%rbp), %eax
	movl	%eax, -44948(%rbp)
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	jmp	.L23
.L25:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44948(%rbp)
	jle	.L24
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %edx
	movl	-44948(%rbp), %eax
	cltq
	movl	%edx, -43264(%rbp,%rax,4)
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	cltq
	movl	-44948(%rbp), %edx
	movl	%edx, -43264(%rbp,%rax,4)
.L24:
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	movl	%eax, -44948(%rbp)
.L23:
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	cmpl	%eax, -44948(%rbp)
	jne	.L25
	jmp	.L26
.L22:
	movl	-44944(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L21
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44936(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -44936(%rbp)
	cltq
	movl	-44944(%rbp), %edx
	movl	%edx, -41632(%rbp,%rax,4)
.L21:
	addl	$1, -44944(%rbp)
.L20:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44944(%rbp)
	jle	.L27
.L26:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44944(%rbp)
	jg	.L28
	jmp	.L29
.L19:
	movl	-44932(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	movl	%eax, -44944(%rbp)
	movl	-44944(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L28
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44936(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -44936(%rbp)
	cltq
	movl	-44944(%rbp), %edx
	movl	%edx, -41632(%rbp,%rax,4)
.L28:
	addl	$1, -44940(%rbp)
.L18:
	movl	-44940(%rbp), %eax
	cmpl	-44936(%rbp), %eax
	jl	.L30
.L29:
	movl	-44940(%rbp), %eax
	cmpl	-44936(%rbp), %eax
	jl	.L39
	jmp	.L17
.L38:
	nop
.L17:
	addl	$1, -44960(%rbp)
.L14:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L32
	jmp	.L31
.L39:
	nop
.L31:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jg	.L40
	addl	$1, -44952(%rbp)
.L11:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44952(%rbp)
	jle	.L35
	jmp	.L34
.L40:
	nop
.L34:
	movl	-44952(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.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"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-40960(%rsp), %r11
	.cfi_def_cfa 11, 41016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4056, %rsp
	.cfi_def_cfa_offset 45072
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 45000(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L2
	movl	$4, %ebx
	movl	$1, %ebp
	leaq	496(%rsp), %r13
	movq	%r13, 8(%rsp)
	leaq	80(%rsp), %r14
	leaq	.LC1(%rip), %r15
.L3:
	leaq	0(%r13,%rbx), %rdx
	leaq	(%r14,%rbx), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r12d
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r12d
	jge	.L3
	testl	%r12d, %r12d
	jle	.L2
	movl	$4, %r14d
	movl	$1, %r13d
	leaq	1328(%rsp), %rbp
	leaq	912(%rsp), %rbx
.L4:
	leaq	0(%rbp,%r14), %rdx
	leaq	(%rbx,%r14), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r12d
	addl	$1, %r13d
	addq	$4, %r14
	cmpl	%r13d, %r12d
	jge	.L4
	leaq	4192(%rsp), %r14
	xorl	%esi, %esi
	movl	$40804, %edx
	movq	%r14, %rdi
	call	memset@PLT
	testl	%r12d, %r12d
	jle	.L5
	movq	8(%rsp), %rcx
	leal	-1(%r12), %eax
	leaq	84(%rsp), %r8
	leaq	4596(%rsp), %rdi
	leaq	500(%rsp), %rsi
	leaq	8(%rcx,%rax,4), %r9
	leaq	2(%rax), %rcx
.L8:
	movl	(%r8), %edx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	(%rbx,%rax,4), %edx
	jge	.L6
	movl	0(%rbp,%rax,4), %r11d
	cmpl	%r11d, (%rsi)
	jge	.L6
	movl	$1, (%rdi,%rax,4)
.L6:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L7
	addq	$4, %rsi
	addq	$4, %r8
	addq	$404, %rdi
	cmpq	%r9, %rsi
	jne	.L8
	leaq	1744(%rsp), %r13
	movl	$100, %ecx
	xorl	%eax, %eax
	movq	%r13, %rdi
	rep stosq
	movl	$0, (%rdi)
.L10:
	leal	(%r12,%r12), %ebx
	leal	1(%r12), %esi
	movl	$0, 44(%rsp)
	leal	-1(%rbx), %eax
	movl	%esi, 8(%rsp)
	leaq	2560(%rsp), %rbp
	leaq	4(,%rax,4), %rax
	movq	%r14, 32(%rsp)
	movq	%rax, 48(%rsp)
	movl	%esi, %eax
	movq	%rax, 16(%rsp)
	negq	%rax
	salq	$2, %rax
	movq	%rax, 24(%rsp)
	leaq	2564(%rsp), %rax
	movq	%rax, 56(%rsp)
.L26:
	testl	%r12d, %r12d
	je	.L11
	movq	48(%rsp), %rdx
	movq	56(%rsp), %rdi
	xorl	%esi, %esi
	call	memset@PLT
	movl	$1, %r9d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %r9
	cmpl	%r9d, %r12d
	jl	.L11
.L13:
	movl	0(%rbp,%r9,4), %edx
	movl	%r9d, %r14d
	testl	%edx, %edx
	jne	.L14
	movl	0(%r13,%r9,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	%r9d, 0(%rbp,%r9,4)
	xorl	%ecx, %ecx
	movl	$1, %esi
	leaq	3376(%rsp), %r10
	movl	%r9d, 3376(%rsp)
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%edx, %rax
	movslq	1744(%rsp,%rax,4), %rdi
	movl	2560(%rsp,%rdi,4), %r8d
	testl	%r8d, %r8d
	jne	.L16
	movl	%edx, 2560(%rsp,%rdi,4)
	movslq	%esi, %rdx
	addl	$1, %esi
	movl	%edi, 3376(%rsp,%rdx,4)
.L16:
	addq	$1, %rcx
	cmpl	%ecx, %esi
	jle	.L14
.L25:
	movl	(%r10,%rcx,4), %edx
	movl	%ecx, %r11d
	cmpl	%edx, %r12d
	jl	.L15
	cmpl	%ebx, 8(%rsp)
	jg	.L16
	movslq	%edx, %r8
	movq	16(%rsp), %rax
	imulq	$404, %r8, %r15
	addq	24(%rsp), %r15
	addq	32(%rsp), %r15
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %rax
	cmpl	%eax, %ebx
	jl	.L16
.L23:
	cmpl	$1, 4(%r15,%rax,4)
	movl	%eax, %edi
	jne	.L17
	cmpl	$0, 0(%r13,%rax,4)
	je	.L46
	movl	0(%rbp,%rax,4), %edi
	testl	%edi, %edi
	jne	.L17
	movslq	%esi, %rdi
	movl	%edx, 0(%rbp,%rax,4)
	addl	$1, %esi
	movl	%eax, 3376(%rsp,%rdi,4)
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	%eax, %r15
	movl	%edx, 2560(%rsp,%r15,4)
	cmpl	%eax, %edx
	jne	.L22
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	movslq	%eax, %r15
	movl	%edx, 1744(%rsp,%r15,4)
	movl	%eax, 1744(%rsp,%r8,4)
	movl	2560(%rsp,%r8,4), %r8d
	cmpl	%edx, %r8d
	je	.L19
.L21:
	movslq	%r8d, %r8
	movl	%edx, %eax
	movq	%r8, %rdx
.L22:
	cmpl	%eax, %r12d
	jl	.L47
	movl	2560(%rsp,%r8,4), %r8d
	cmpl	%edx, %r8d
	jne	.L21
.L19:
	cmpl	%ebx, %edi
	jg	.L16
	cmpl	%r11d, %esi
	jle	.L14
	cmpl	%r14d, %r12d
	jl	.L11
	addl	$1, 44(%rsp)
	movl	44(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L26
.L11:
	movl	44(%rsp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	45000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$45016, %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
.L2:
	.cfi_restore_state
	leaq	4192(%rsp), %r14
	movl	$40804, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
.L5:
	leaq	1744(%rsp), %r13
	xorl	%eax, %eax
	movl	$100, %ecx
	movq	%r13, %rdi
	rep stosq
	stosl
	testl	%r12d, %r12d
	je	.L10
	movl	$0, 44(%rsp)
	jmp	.L11
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

rule
	.file	"temp.c"
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d %d"
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB39:
	.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
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	leaq	-40960(%rsp), %r11
	.cfi_def_cfa 11, 41016
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	.cfi_def_cfa_register 7
	subq	$4056, %rsp
	.cfi_def_cfa_offset 45072
	leaq	.LC0(%rip), %rdi
	movq	%fs:40, %rax
	movq	%rax, 45000(%rsp)
	xorl	%eax, %eax
	leaq	76(%rsp), %rsi
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r12d
	testl	%r12d, %r12d
	jle	.L2
	movl	$4, %ebx
	movl	$1, %ebp
	leaq	496(%rsp), %r13
	movq	%r13, 8(%rsp)
	leaq	80(%rsp), %r14
	leaq	.LC1(%rip), %r15
.L3:
	leaq	0(%r13,%rbx), %rdx
	leaq	(%r14,%rbx), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r12d
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %r12d
	jge	.L3
	testl	%r12d, %r12d
	jle	.L2
	movl	$4, %r14d
	movl	$1, %r13d
	leaq	1328(%rsp), %rbp
	leaq	912(%rsp), %rbx
.L4:
	leaq	0(%rbp,%r14), %rdx
	leaq	(%rbx,%r14), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	call	__isoc99_scanf@PLT
	movl	76(%rsp), %r12d
	addl	$1, %r13d
	addq	$4, %r14
	cmpl	%r13d, %r12d
	jge	.L4
	leaq	4192(%rsp), %r14
	xorl	%esi, %esi
	movl	$40804, %edx
	movq	%r14, %rdi
	call	memset@PLT
	testl	%r12d, %r12d
	jle	.L5
	movq	8(%rsp), %rcx
	leal	-1(%r12), %eax
	leaq	84(%rsp), %r8
	leaq	4596(%rsp), %rdi
	leaq	500(%rsp), %rsi
	leaq	8(%rcx,%rax,4), %r9
	leaq	2(%rax), %rcx
.L8:
	movl	(%r8), %edx
	movl	$1, %eax
	.p2align 4,,10
	.p2align 3
.L7:
	cmpl	(%rbx,%rax,4), %edx
	jge	.L6
	movl	0(%rbp,%rax,4), %r11d
	cmpl	%r11d, (%rsi)
	jge	.L6
	movl	$1, (%rdi,%rax,4)
.L6:
	addq	$1, %rax
	cmpq	%rcx, %rax
	jne	.L7
	addq	$4, %rsi
	addq	$4, %r8
	addq	$404, %rdi
	cmpq	%r9, %rsi
	jne	.L8
	leaq	1744(%rsp), %r13
	movl	$100, %ecx
	xorl	%eax, %eax
	movq	%r13, %rdi
	rep stosq
	movl	$0, (%rdi)
.L10:
	leal	(%r12,%r12), %ebx
	leal	1(%r12), %esi
	movl	$0, 44(%rsp)
	leal	-1(%rbx), %eax
	movl	%esi, 8(%rsp)
	leaq	2560(%rsp), %rbp
	leaq	4(,%rax,4), %rax
	movq	%r14, 32(%rsp)
	movq	%rax, 48(%rsp)
	movl	%esi, %eax
	movq	%rax, 16(%rsp)
	negq	%rax
	salq	$2, %rax
	movq	%rax, 24(%rsp)
	leaq	2564(%rsp), %rax
	movq	%rax, 56(%rsp)
.L26:
	testl	%r12d, %r12d
	je	.L11
	movq	48(%rsp), %rdx
	movq	56(%rsp), %rdi
	xorl	%esi, %esi
	call	memset@PLT
	movl	$1, %r9d
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	addq	$1, %r9
	cmpl	%r9d, %r12d
	jl	.L11
.L13:
	movl	0(%rbp,%r9,4), %edx
	movl	%r9d, %r14d
	testl	%edx, %edx
	jne	.L14
	movl	0(%r13,%r9,4), %eax
	testl	%eax, %eax
	jne	.L14
	movl	%r9d, 0(%rbp,%r9,4)
	xorl	%ecx, %ecx
	movl	$1, %esi
	leaq	3376(%rsp), %r10
	movl	%r9d, 3376(%rsp)
	jmp	.L25
	.p2align 4,,10
	.p2align 3
.L15:
	movslq	%edx, %rax
	movslq	1744(%rsp,%rax,4), %rdi
	movl	2560(%rsp,%rdi,4), %r8d
	testl	%r8d, %r8d
	jne	.L16
	movl	%edx, 2560(%rsp,%rdi,4)
	movslq	%esi, %rdx
	addl	$1, %esi
	movl	%edi, 3376(%rsp,%rdx,4)
.L16:
	addq	$1, %rcx
	cmpl	%ecx, %esi
	jle	.L14
.L25:
	movl	(%r10,%rcx,4), %edx
	movl	%ecx, %r11d
	cmpl	%edx, %r12d
	jl	.L15
	cmpl	%ebx, 8(%rsp)
	jg	.L16
	movslq	%edx, %r8
	movq	16(%rsp), %rax
	imulq	$404, %r8, %r15
	addq	24(%rsp), %r15
	addq	32(%rsp), %r15
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L17:
	addq	$1, %rax
	cmpl	%eax, %ebx
	jl	.L16
.L23:
	cmpl	$1, 4(%r15,%rax,4)
	movl	%eax, %edi
	jne	.L17
	cmpl	$0, 0(%r13,%rax,4)
	je	.L46
	movl	0(%rbp,%rax,4), %edi
	testl	%edi, %edi
	jne	.L17
	movslq	%esi, %rdi
	movl	%edx, 0(%rbp,%rax,4)
	addl	$1, %esi
	movl	%eax, 3376(%rsp,%rdi,4)
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L46:
	movslq	%eax, %r15
	movl	%edx, 2560(%rsp,%r15,4)
	cmpl	%eax, %edx
	jne	.L22
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L47:
	movslq	%eax, %r15
	movl	%edx, 1744(%rsp,%r15,4)
	movl	%eax, 1744(%rsp,%r8,4)
	movl	2560(%rsp,%r8,4), %r8d
	cmpl	%edx, %r8d
	je	.L19
.L21:
	movslq	%r8d, %r8
	movl	%edx, %eax
	movq	%r8, %rdx
.L22:
	cmpl	%eax, %r12d
	jl	.L47
	movl	2560(%rsp,%r8,4), %r8d
	cmpl	%edx, %r8d
	jne	.L21
.L19:
	cmpl	%ebx, %edi
	jg	.L16
	cmpl	%r11d, %esi
	jle	.L14
	cmpl	%r14d, %r12d
	jl	.L11
	addl	$1, 44(%rsp)
	movl	44(%rsp), %eax
	cmpl	%eax, %r12d
	jge	.L26
.L11:
	movl	44(%rsp), %edx
	movl	$1, %edi
	xorl	%eax, %eax
	leaq	.LC2(%rip), %rsi
	call	__printf_chk@PLT
	movq	stdout(%rip), %rdi
	call	fflush@PLT
	movq	45000(%rsp), %rax
	subq	%fs:40, %rax
	jne	.L48
	addq	$45016, %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
.L2:
	.cfi_restore_state
	leaq	4192(%rsp), %r14
	movl	$40804, %edx
	xorl	%esi, %esi
	movq	%r14, %rdi
	call	memset@PLT
.L5:
	leaq	1744(%rsp), %r13
	xorl	%eax, %eax
	movl	$100, %ecx
	movq	%r13, %rdi
	rep stosq
	stosl
	testl	%r12d, %r12d
	je	.L10
	movl	$0, 44(%rsp)
	jmp	.L11
.L48:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE39:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

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

int main()
{
	int i, N, a[101], b[101], c[101], d[101];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%d %d", &(a[i]), &(b[i]));
	for (i = 1; i <= N; i++) scanf("%d %d", &(c[i]), &(d[i]));
	
	int j, adj[101][101] = {};
	for (i = 1; i <= N; i++) {
		for (j = 1; j <= N; j++) {
			if (a[i] < c[j] && b[i] < d[j]) adj[i][j] = 1;
		}
	}
	
	int m, u, v, w, M[201] = {}, par[201], q[201], head, tail;
	for (m = 0; m <= N; m++) {
		for (i = 1; i <= N * 2; i++) par[i] = 0;
		for (i = 1; i <= N; i++) {
			if (par[i] != 0 || M[i] != 0) continue;
			par[i] = i;
			q[0] = i;
			for (head = 0, tail = 1; head < tail; head++) {
				u = q[head];
				if (u <= N) {
					for (w = N + 1; w <= N * 2; w++) {
						if (adj[u][w-N] == 1) {
							if (M[w] == 0) {
								for (v = w, par[w] = u; par[v] != v; v = par[v]) {
									if (v > N) {
										M[v] = par[v];
										M[par[v]] = v;
									}
								}
								break;
							} else if (par[w] == 0) {
								par[w] = u;
								q[tail++] = w;
							}
						}
					}
					if (w <= N * 2) break;
				} else {
					w = M[u];
					if (par[w] == 0) {
						par[w] = u;
						q[tail++] = w;
					}
				}
			}
			if (head < tail) break;
		}
		if (i > N) break;
	}
	
	printf("%d\n", m);
	fflush(stdout);
	return 0;
}
3
2 0
3 1
1 3
4 2
0 4
5 5

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

int main()
{
	int i, N, a[101], b[101], c[101], d[101];
	scanf("%d", &N);
	for (i = 1; i <= N; i++) scanf("%d %d", &(a[i]), &(b[i]));
	for (i = 1; i <= N; i++) scanf("%d %d", &(c[i]), &(d[i]));
	
	int j, adj[101][101] = {};
	for (i = 1; i <= N; i++) {
		for (j = 1; j <= N; j++) {
			if (a[i] < c[j] && b[i] < d[j]) adj[i][j] = 1;
		}
	}
	
	int m, u, v, w, M[201] = {}, par[201], q[201], head, tail;
	for (m = 0; m <= N; m++) {
		for (i = 1; i <= N * 2; i++) par[i] = 0;
		for (i = 1; i <= N; i++) {
			if (par[i] != 0 || M[i] != 0) continue;
			par[i] = i;
			q[0] = i;
			for (head = 0, tail = 1; head < tail; head++) {
				u = q[head];
				if (u <= N) {
					for (w = N + 1; w <= N * 2; w++) {
						if (adj[u][w-N] == 1) {
							if (M[w] == 0) {
								for (v = w, par[w] = u; par[v] != v; v = par[v]) {
									if (v > N) {
										M[v] = par[v];
										M[par[v]] = v;
									}
								}
								break;
							} else if (par[w] == 0) {
								par[w] = u;
								q[tail++] = w;
							}
						}
					}
					if (w <= N * 2) break;
				} else {
					w = M[u];
					if (par[w] == 0) {
						par[w] = u;
						q[tail++] = w;
					}
				}
			}
			if (head < tail) break;
		}
		if (i > N) break;
	}
	
	printf("%d\n", m);
	fflush(stdout);
	return 0;
}```

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
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44964(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -44960(%rbp)
	jmp	.L2
.L3:
	leaq	-44512(%rbp), %rdx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-44928(%rbp), %rcx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44960(%rbp)
.L2:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L3
	movl	$1, -44960(%rbp)
	jmp	.L4
.L5:
	leaq	-43680(%rbp), %rdx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-44096(%rbp), %rcx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44960(%rbp)
.L4:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L5
	leaq	-40816(%rbp), %rax
	movl	$40804, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44960(%rbp)
	jmp	.L6
.L10:
	movl	$1, -44956(%rbp)
	jmp	.L7
.L9:
	movl	-44960(%rbp), %eax
	cltq
	movl	-44928(%rbp,%rax,4), %edx
	movl	-44956(%rbp), %eax
	cltq
	movl	-44096(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L8
	movl	-44960(%rbp), %eax
	cltq
	movl	-44512(%rbp,%rax,4), %edx
	movl	-44956(%rbp), %eax
	cltq
	movl	-43680(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L8
	movl	-44956(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44960(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -40816(%rbp,%rax,4)
.L8:
	addl	$1, -44956(%rbp)
.L7:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44956(%rbp)
	jle	.L9
	addl	$1, -44960(%rbp)
.L6:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L10
	leaq	-43264(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$0, -44952(%rbp)
	jmp	.L11
.L35:
	movl	$1, -44960(%rbp)
	jmp	.L12
.L13:
	movl	-44960(%rbp), %eax
	cltq
	movl	$0, -42448(%rbp,%rax,4)
	addl	$1, -44960(%rbp)
.L12:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L13
	movl	$1, -44960(%rbp)
	jmp	.L14
.L32:
	movl	-44960(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L38
	movl	-44960(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L38
	movl	-44960(%rbp), %eax
	cltq
	movl	-44960(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44960(%rbp), %eax
	movl	%eax, -41632(%rbp)
	movl	$0, -44940(%rbp)
	movl	$1, -44936(%rbp)
	jmp	.L18
.L30:
	movl	-44940(%rbp), %eax
	cltq
	movl	-41632(%rbp,%rax,4), %eax
	movl	%eax, -44932(%rbp)
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44932(%rbp)
	jg	.L19
	movl	-44964(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44944(%rbp)
	jmp	.L20
.L27:
	movl	-44964(%rbp), %edx
	movl	-44944(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rcx
	movl	-44932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L21
	movl	-44944(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L22
	movl	-44944(%rbp), %eax
	movl	%eax, -44948(%rbp)
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	jmp	.L23
.L25:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44948(%rbp)
	jle	.L24
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %edx
	movl	-44948(%rbp), %eax
	cltq
	movl	%edx, -43264(%rbp,%rax,4)
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	cltq
	movl	-44948(%rbp), %edx
	movl	%edx, -43264(%rbp,%rax,4)
.L24:
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	movl	%eax, -44948(%rbp)
.L23:
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	cmpl	%eax, -44948(%rbp)
	jne	.L25
	jmp	.L26
.L22:
	movl	-44944(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L21
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44936(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -44936(%rbp)
	cltq
	movl	-44944(%rbp), %edx
	movl	%edx, -41632(%rbp,%rax,4)
.L21:
	addl	$1, -44944(%rbp)
.L20:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44944(%rbp)
	jle	.L27
.L26:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44944(%rbp)
	jg	.L28
	jmp	.L29
.L19:
	movl	-44932(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	movl	%eax, -44944(%rbp)
	movl	-44944(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L28
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44936(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -44936(%rbp)
	cltq
	movl	-44944(%rbp), %edx
	movl	%edx, -41632(%rbp,%rax,4)
.L28:
	addl	$1, -44940(%rbp)
.L18:
	movl	-44940(%rbp), %eax
	cmpl	-44936(%rbp), %eax
	jl	.L30
.L29:
	movl	-44940(%rbp), %eax
	cmpl	-44936(%rbp), %eax
	jl	.L39
	jmp	.L17
.L38:
	nop
.L17:
	addl	$1, -44960(%rbp)
.L14:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L32
	jmp	.L31
.L39:
	nop
.L31:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jg	.L40
	addl	$1, -44952(%rbp)
.L11:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44952(%rbp)
	jle	.L35
	jmp	.L34
.L40:
	nop
.L34:
	movl	-44952(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.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
	leaq	-40960(%rsp), %r11
.LPSRL0:
	subq	$4096, %rsp
	orq	$0, (%rsp)
	cmpq	%r11, %rsp
	jne	.LPSRL0
	subq	$4016, %rsp
	movq	%fs:40, %rax
	movq	%rax, -8(%rbp)
	xorl	%eax, %eax
	leaq	-44964(%rbp), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	movl	$1, -44960(%rbp)
	jmp	.L2
.L3:
	leaq	-44512(%rbp), %rdx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-44928(%rbp), %rcx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44960(%rbp)
.L2:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L3
	movl	$1, -44960(%rbp)
	jmp	.L4
.L5:
	leaq	-43680(%rbp), %rdx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rax, %rdx
	leaq	-44096(%rbp), %rcx
	movl	-44960(%rbp), %eax
	cltq
	salq	$2, %rax
	addq	%rcx, %rax
	movq	%rax, %rsi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	addl	$1, -44960(%rbp)
.L4:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L5
	leaq	-40816(%rbp), %rax
	movl	$40804, %edx
	movl	$0, %esi
	movq	%rax, %rdi
	call	memset@PLT
	movl	$1, -44960(%rbp)
	jmp	.L6
.L10:
	movl	$1, -44956(%rbp)
	jmp	.L7
.L9:
	movl	-44960(%rbp), %eax
	cltq
	movl	-44928(%rbp,%rax,4), %edx
	movl	-44956(%rbp), %eax
	cltq
	movl	-44096(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L8
	movl	-44960(%rbp), %eax
	cltq
	movl	-44512(%rbp,%rax,4), %edx
	movl	-44956(%rbp), %eax
	cltq
	movl	-43680(%rbp,%rax,4), %eax
	cmpl	%eax, %edx
	jge	.L8
	movl	-44956(%rbp), %eax
	movslq	%eax, %rcx
	movl	-44960(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	$1, -40816(%rbp,%rax,4)
.L8:
	addl	$1, -44956(%rbp)
.L7:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44956(%rbp)
	jle	.L9
	addl	$1, -44960(%rbp)
.L6:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L10
	leaq	-43264(%rbp), %rdx
	movl	$0, %eax
	movl	$100, %ecx
	movq	%rdx, %rdi
	rep stosq
	movq	%rdi, %rdx
	movl	%eax, (%rdx)
	addq	$4, %rdx
	movl	$0, -44952(%rbp)
	jmp	.L11
.L35:
	movl	$1, -44960(%rbp)
	jmp	.L12
.L13:
	movl	-44960(%rbp), %eax
	cltq
	movl	$0, -42448(%rbp,%rax,4)
	addl	$1, -44960(%rbp)
.L12:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L13
	movl	$1, -44960(%rbp)
	jmp	.L14
.L32:
	movl	-44960(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L38
	movl	-44960(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L38
	movl	-44960(%rbp), %eax
	cltq
	movl	-44960(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44960(%rbp), %eax
	movl	%eax, -41632(%rbp)
	movl	$0, -44940(%rbp)
	movl	$1, -44936(%rbp)
	jmp	.L18
.L30:
	movl	-44940(%rbp), %eax
	cltq
	movl	-41632(%rbp,%rax,4), %eax
	movl	%eax, -44932(%rbp)
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44932(%rbp)
	jg	.L19
	movl	-44964(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -44944(%rbp)
	jmp	.L20
.L27:
	movl	-44964(%rbp), %edx
	movl	-44944(%rbp), %eax
	subl	%edx, %eax
	movslq	%eax, %rcx
	movl	-44932(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	leaq	0(,%rax,4), %rsi
	addq	%rsi, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	movl	-40816(%rbp,%rax,4), %eax
	cmpl	$1, %eax
	jne	.L21
	movl	-44944(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L22
	movl	-44944(%rbp), %eax
	movl	%eax, -44948(%rbp)
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	jmp	.L23
.L25:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44948(%rbp)
	jle	.L24
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %edx
	movl	-44948(%rbp), %eax
	cltq
	movl	%edx, -43264(%rbp,%rax,4)
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	cltq
	movl	-44948(%rbp), %edx
	movl	%edx, -43264(%rbp,%rax,4)
.L24:
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	movl	%eax, -44948(%rbp)
.L23:
	movl	-44948(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	cmpl	%eax, -44948(%rbp)
	jne	.L25
	jmp	.L26
.L22:
	movl	-44944(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L21
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44936(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -44936(%rbp)
	cltq
	movl	-44944(%rbp), %edx
	movl	%edx, -41632(%rbp,%rax,4)
.L21:
	addl	$1, -44944(%rbp)
.L20:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44944(%rbp)
	jle	.L27
.L26:
	movl	-44964(%rbp), %eax
	addl	%eax, %eax
	cmpl	%eax, -44944(%rbp)
	jg	.L28
	jmp	.L29
.L19:
	movl	-44932(%rbp), %eax
	cltq
	movl	-43264(%rbp,%rax,4), %eax
	movl	%eax, -44944(%rbp)
	movl	-44944(%rbp), %eax
	cltq
	movl	-42448(%rbp,%rax,4), %eax
	testl	%eax, %eax
	jne	.L28
	movl	-44944(%rbp), %eax
	cltq
	movl	-44932(%rbp), %edx
	movl	%edx, -42448(%rbp,%rax,4)
	movl	-44936(%rbp), %eax
	leal	1(%rax), %edx
	movl	%edx, -44936(%rbp)
	cltq
	movl	-44944(%rbp), %edx
	movl	%edx, -41632(%rbp,%rax,4)
.L28:
	addl	$1, -44940(%rbp)
.L18:
	movl	-44940(%rbp), %eax
	cmpl	-44936(%rbp), %eax
	jl	.L30
.L29:
	movl	-44940(%rbp), %eax
	cmpl	-44936(%rbp), %eax
	jl	.L39
	jmp	.L17
.L38:
	nop
.L17:
	addl	$1, -44960(%rbp)
.L14:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jle	.L32
	jmp	.L31
.L39:
	nop
.L31:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44960(%rbp)
	jg	.L40
	addl	$1, -44952(%rbp)
.L11:
	movl	-44964(%rbp), %eax
	cmpl	%eax, -44952(%rbp)
	jle	.L35
	jmp	.L34
.L40:
	nop
.L34:
	movl	-44952(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movq	stdout(%rip), %rax
	movq	%rax, %rdi
	call	fflush@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rdx
	subq	%fs:40, %rdx
	je	.L37
	call	__stack_chk_fail@PLT
.L37:
	leave
	.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:
