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

```c
// AOJ 1532 Yu-kun Likes Building Block
// 2018.3.18 bal4u

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

// 高速数値入力
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()  // 非負整数のみ
{
	int n = 0, c = gc();
	do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}


// 2部グラフの最大マッチング
#define BMAX 105
int  hi[BMAX], to[BMAX][BMAX];
static char seen[BMAX];    // 内部作業用
static int  matchL[BMAX];  // 内部作業用
static int  matchR[BMAX];  // 内部作業用

int bpm(int u)
{
	int i, v;

	for (i = 0; i < hi[u]; i++) {
		v = to[u][i];
		if (seen[v]) continue;
		seen[v] = 1;
		if (matchR[v] < 0 || bpm(matchR[v])) {
			matchL[u] = v, matchR[v] = u;
			return 1;
		}
	}
	return 0;
}

int bipartiteMatching(int m, int n)
{
	int u, max;

	memset(matchL, -1, m * sizeof(int));
	memset(matchR, -1, n * sizeof(int));
	max = 0;
	for (u = 0; u < m; u++) {
		memset(seen, 0, n * sizeof(char));
		if (bpm(u)) max++;
	}
	return max;
}


// 本問題関連
#define MAX(a, b)  ((a)>=(b)? (a): (b))
#define MIN(a, b)  ((a)<=(b)? (a): (b))
typedef struct { int w, h; } T;
T t[105]; int N;

int main()
{
	int i, j;

	N = in();
	for (i = 0; i < N; i++)	t[i].w = in(), t[i].h = in();
	for (i = 0; i < N; i++) for (j = 0; j < N; j++) if (i != j) {
		if (MAX(t[i].w, t[i].h) < MAX(t[j].w, t[j].h) &&
			MIN(t[i].w, t[i].h) < MIN(t[j].w, t[j].h))
			to[i][hi[i]++] = j;
	}
#if 0
	for (i = 0; i < N; i++) {
		printf("[%d] hi=%d:", i, hi[i]);
		for (j = 0; j < hi[i]; j++) printf(" %d", to[i][j]);
		printf("\n");
	}
#endif
	printf("%d\n", N - bipartiteMatching(N, N));
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	hi
	.bss
	.align 32
	.type	hi, @object
	.size	hi, 420
hi:
	.zero	420
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 44100
to:
	.zero	44100
	.local	seen
	.comm	seen,105,32
	.local	matchL
	.comm	matchL,420,32
	.local	matchR
	.comm	matchR,420,32
	.text
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L10:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L8
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L7
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	matchL(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	matchR(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
	jmp	.L9
.L11:
	nop
.L7:
	addl	$1, -8(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bpm, .-bpm
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	matchL(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-24(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	matchR(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L13
.L15:
	movl	-24(%rbp), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	seen(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L14
	addl	$1, -4(%rbp)
.L14:
	addl	$1, -8(%rbp)
.L13:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L15
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bipartiteMatching, .-bipartiteMatching
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 840
t:
	.zero	840
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	$0, %eax
	call	in
	movl	%eax, N(%rip)
	movl	$0, -24(%rbp)
	jmp	.L18
.L19:
	movl	$0, %eax
	call	in
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -24(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L19
	movl	$0, -24(%rbp)
	jmp	.L20
.L24:
	movl	$0, -20(%rbp)
	jmp	.L21
.L23:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	4+t(%rip), %rax
	movl	(%rsi,%rax), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cmpl	%eax, %ecx
	jge	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	4+t(%rip), %rax
	movl	(%rsi,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cmpl	%eax, %ecx
	jge	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	to(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L22:
	addl	$1, -20(%rbp)
.L21:
	movl	N(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L23
	addl	$1, -24(%rbp)
.L20:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L24
	movl	N(%rip), %ebx
	movl	N(%rip), %edx
	movl	N(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	bipartiteMatching
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	in
	.type	in, @function
in:
.LFB51:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE51:
	.size	in, .-in
	.p2align 4
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	hi(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$344, %rsp
	.cfi_def_cfa_offset 400
	movl	%eax, 252(%rsp)
	movq	%rax, 80(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L50
	imulq	$420, 80(%rsp), %rdx
	leaq	to(%rip), %r14
	movq	$0, 72(%rsp)
	leaq	seen(%rip), %r9
	leaq	matchR(%rip), %r15
	leaq	(%r14,%rdx), %rdi
	movq	%rdi, 240(%rsp)
.L49:
	movq	240(%rsp), %rsi
	movq	72(%rsp), %rbx
	movslq	(%rsi,%rbx,4), %rsi
	cmpb	$0, (%r9,%rsi)
	movl	%esi, 188(%rsp)
	movq	%rsi, 256(%rsp)
	jne	.L15
	movl	(%r15,%rsi,4), %eax
	movb	$1, (%r9,%rsi)
	movl	%eax, 140(%rsp)
	testl	%eax, %eax
	js	.L85
	movslq	140(%rsp), %rax
	movq	%rax, 88(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L84
	imulq	$420, 88(%rsp), %rdx
	movq	$0, 64(%rsp)
	leaq	(%r14,%rdx), %rsi
	movq	%rsi, 232(%rsp)
.L48:
	movq	232(%rsp), %rbx
	movq	64(%rsp), %rcx
	movslq	(%rbx,%rcx,4), %rcx
	cmpb	$0, (%r9,%rcx)
	movl	%ecx, 192(%rsp)
	movq	%rcx, 264(%rsp)
	jne	.L18
	movl	(%r15,%rcx,4), %eax
	movb	$1, (%r9,%rcx)
	movl	%eax, 144(%rsp)
	testl	%eax, %eax
	js	.L86
	movslq	144(%rsp), %rax
	movq	%rax, 96(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L83
	imulq	$420, 96(%rsp), %rdx
	movq	$0, 56(%rsp)
	leaq	(%r14,%rdx), %rsi
	movq	%rsi, 224(%rsp)
.L47:
	movq	224(%rsp), %rbx
	movq	56(%rsp), %rcx
	movslq	(%rbx,%rcx,4), %rbx
	cmpb	$0, (%r9,%rbx)
	movl	%ebx, 196(%rsp)
	movq	%rbx, 272(%rsp)
	jne	.L21
	movl	(%r15,%rbx,4), %eax
	movb	$1, (%r9,%rbx)
	movl	%eax, 148(%rsp)
	testl	%eax, %eax
	js	.L87
	movslq	148(%rsp), %rax
	movq	%rax, 104(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L82
	imulq	$420, 104(%rsp), %rdx
	movq	$0, 48(%rsp)
	addq	%r14, %rdx
	movq	%rdx, 216(%rsp)
.L46:
	movq	216(%rsp), %rsi
	movq	48(%rsp), %rbx
	movslq	(%rsi,%rbx,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movl	%edx, 200(%rsp)
	movq	%rdx, 280(%rsp)
	jne	.L24
	movl	(%r15,%rdx,4), %eax
	movb	$1, (%r9,%rdx)
	movl	%eax, 152(%rsp)
	testl	%eax, %eax
	js	.L88
	movslq	152(%rsp), %rax
	movq	%rax, 112(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L81
	imulq	$420, 112(%rsp), %rdx
	movq	$0, 40(%rsp)
	leaq	(%r14,%rdx), %rdi
	movq	%rdi, 208(%rsp)
.L45:
	movq	208(%rsp), %rdx
	movq	40(%rsp), %rsi
	movslq	(%rdx,%rsi,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 204(%rsp)
	movq	%rdi, 288(%rsp)
	jne	.L27
	movl	(%r15,%rdi,4), %eax
	movb	$1, (%r9,%rdi)
	movl	%eax, 32(%rsp)
	testl	%eax, %eax
	js	.L89
	movslq	32(%rsp), %r11
	movl	(%r8,%r11,4), %eax
	testl	%eax, %eax
	jle	.L80
	imulq	$420, %r11, %rdx
	xorl	%r13d, %r13d
	movq	%r11, %rcx
	movq	%r13, %r11
	movq	%rcx, %r13
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L44:
	movq	128(%rsp), %rbx
	movslq	(%rbx,%r11,4), %r10
	cmpb	$0, (%r9,%r10)
	movl	%r10d, 248(%rsp)
	jne	.L30
	movl	(%r15,%r10,4), %esi
	movb	$1, (%r9,%r10)
	testl	%esi, %esi
	js	.L90
	movslq	%esi, %rcx
	movl	(%r8,%rcx,4), %eax
	testl	%eax, %eax
	jle	.L79
	imulq	$420, %rcx, %rdx
	movq	%r11, 176(%rsp)
	movq	$0, 8(%rsp)
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 160(%rsp)
	.p2align 4,,10
	.p2align 3
.L43:
	movq	160(%rsp), %rdi
	movq	8(%rsp), %rdx
	movslq	(%rdi,%rdx,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 156(%rsp)
	movq	%rdi, 168(%rsp)
	jne	.L33
	movl	(%r15,%rdi,4), %eax
	movb	$1, (%r9,%rdi)
	movl	%eax, 184(%rsp)
	testl	%eax, %eax
	js	.L91
	movslq	184(%rsp), %rax
	movq	%rax, 16(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L78
	imulq	$420, 16(%rsp), %rdx
	xorl	%ebx, %ebx
	addq	%r14, %rdx
	movq	%rdx, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L42:
	movq	24(%rsp), %rdx
	movslq	(%rdx,%rbx,4), %rbp
	cmpb	$0, (%r9,%rbp)
	movl	%ebp, 36(%rsp)
	jne	.L36
	movl	(%r15,%rbp,4), %eax
	movb	$1, (%r9,%rbp)
	movl	%eax, 136(%rsp)
	testl	%eax, %eax
	js	.L92
	movslq	136(%rsp), %rax
	movq	%rax, 120(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L77
	imulq	$420, 120(%rsp), %r11
	movq	%rbp, 296(%rsp)
	xorl	%r12d, %r12d
	addq	%r14, %r11
	movq	%r11, %rbp
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	0(%rbp,%r12,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movq	%rdx, %r11
	jne	.L39
	movl	(%r15,%rdx,4), %edi
	movb	$1, (%r9,%rdx)
	testl	%edi, %edi
	js	.L40
	movq	%rdx, 328(%rsp)
	movl	%edx, 324(%rsp)
	movq	%rcx, 312(%rsp)
	movq	%r10, 304(%rsp)
	movl	%esi, 320(%rsp)
	call	bpm
	movl	320(%rsp), %esi
	movq	304(%rsp), %r10
	testl	%eax, %eax
	movq	312(%rsp), %rcx
	movl	324(%rsp), %r11d
	movq	328(%rsp), %rdx
	jne	.L40
	movq	120(%rsp), %rax
	leaq	hi(%rip), %r8
	leaq	seen(%rip), %r9
	movl	(%r8,%rax,4), %eax
	.p2align 4,,10
	.p2align 3
.L39:
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L41
.L77:
	movq	16(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L36:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L42
.L78:
	movl	(%r8,%rcx,4), %eax
.L33:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rbx
	cmpl	%ebx, %eax
	jg	.L43
	movq	176(%rsp), %r11
.L79:
	movl	(%r8,%r13,4), %eax
.L30:
	addq	$1, %r11
	cmpl	%r11d, %eax
	jg	.L44
.L80:
	movq	112(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L27:
	addq	$1, 40(%rsp)
	movq	40(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L45
.L81:
	movq	104(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L24:
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rcx
	cmpl	%ecx, %eax
	jg	.L46
.L82:
	movq	96(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L21:
	addq	$1, 56(%rsp)
	movq	56(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L47
.L83:
	movq	88(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L18:
	addq	$1, 64(%rsp)
	movq	64(%rsp), %rdx
	cmpl	%edx, %eax
	jg	.L48
.L84:
	movq	80(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L15:
	addq	$1, 72(%rsp)
	movq	72(%rsp), %rbx
	cmpl	%ebx, %eax
	jg	.L49
.L50:
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L91:
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	leaq	matchL(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L34:
	movl	156(%rsp), %ecx
	movl	%ecx, (%rax,%rsi,4)
	movq	168(%rsp), %rsi
	movl	%r11d, (%r15,%rsi,4)
.L31:
	movl	248(%rsp), %ecx
	movl	32(%rsp), %esi
	movl	%ecx, (%rax,%r10,4)
	movl	%esi, (%r15,%rdx,4)
.L28:
	movq	112(%rsp), %rcx
	movl	204(%rsp), %edx
	movq	288(%rsp), %rsi
	movl	%edx, (%rax,%rcx,4)
	movl	152(%rsp), %ecx
	movl	%ecx, (%r15,%rsi,4)
.L25:
	movq	104(%rsp), %rdx
	movl	200(%rsp), %esi
	movq	280(%rsp), %rcx
	movl	%esi, (%rax,%rdx,4)
	movl	148(%rsp), %edx
	movl	%edx, (%r15,%rcx,4)
.L22:
	movq	96(%rsp), %rsi
	movl	196(%rsp), %ecx
	movq	272(%rsp), %rdx
	movl	%ecx, (%rax,%rsi,4)
	movl	144(%rsp), %esi
	movl	%esi, (%r15,%rdx,4)
.L19:
	movq	88(%rsp), %rbx
	movl	192(%rsp), %ecx
	movq	264(%rsp), %rdi
	movl	140(%rsp), %edx
	movl	%ecx, (%rax,%rbx,4)
	movl	%edx, (%r15,%rdi,4)
.L16:
	movq	80(%rsp), %rsi
	movl	188(%rsp), %ebx
	movl	252(%rsp), %ecx
	movl	%ebx, (%rax,%rsi,4)
	movq	256(%rsp), %rax
	movl	%ecx, (%r15,%rax,4)
	movl	$1, %eax
.L12:
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L92:
	.cfi_restore_state
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movq	%rbp, %rcx
	leaq	matchL(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L37:
	movq	16(%rsp), %rbx
	movl	36(%rsp), %edi
	movl	%edi, (%rax,%rbx,4)
	movl	184(%rsp), %ebx
	movl	%ebx, (%r15,%rcx,4)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L40:
	movq	120(%rsp), %rbx
	movl	%r11d, %edi
	leaq	matchL(%rip), %rax
	movq	%rdx, %r12
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movl	%edi, (%rax,%rbx,4)
	movl	136(%rsp), %ebx
	movq	296(%rsp), %rcx
	movl	%ebx, (%r15,%r12,4)
	jmp	.L37
.L90:
	movq	%r10, %rdx
	leaq	matchL(%rip), %rax
	movq	%r13, %r10
	jmp	.L31
.L89:
	leaq	matchL(%rip), %rax
	jmp	.L28
.L88:
	leaq	matchL(%rip), %rax
	jmp	.L25
.L87:
	leaq	matchL(%rip), %rax
	jmp	.L22
.L86:
	leaq	matchL(%rip), %rax
	jmp	.L19
.L85:
	leaq	matchL(%rip), %rax
	jmp	.L16
	.cfi_endproc
.LFE52:
	.size	bpm, .-bpm
	.p2align 4
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	movl	$420, %ecx
	leaq	matchL(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	0(,%rax,4), %rdx
	movl	%esi, %r14d
	movl	$-1, %esi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rax, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rax, 16(%rsp)
	call	__memset_chk@PLT
	movslq	%r14d, %rax
	movl	$420, %ecx
	movl	$-1, %esi
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rdi
	movq	%rax, 8(%rsp)
	call	__memset_chk@PLT
	testl	%ebx, %ebx
	jle	.L100
	movq	$0, (%rsp)
	leaq	hi(%rip), %rbp
	leaq	to(%rip), %rbx
	movl	$0, 28(%rsp)
	leaq	seen(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L99:
	movl	(%rsp), %eax
	movq	8(%rsp), %rdx
	movl	$105, %ecx
	xorl	%esi, %esi
	movq	%r15, %rdi
	movl	%eax, 24(%rsp)
	call	__memset_chk@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	jle	.L95
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L98:
	movslq	(%rbx,%r13,4), %r14
	cmpb	$0, (%r15,%r14)
	movq	%r14, %r12
	jne	.L96
	leaq	matchR(%rip), %rax
	movb	$1, (%r15,%r14)
	movl	(%rax,%r14,4), %edi
	testl	%edi, %edi
	js	.L97
	call	bpm
	testl	%eax, %eax
	jne	.L97
	movl	0(%rbp), %eax
.L96:
	addq	$1, %r13
	cmpl	%r13d, %eax
	jg	.L98
.L95:
	addq	$1, (%rsp)
	addq	$4, %rbp
	movq	(%rsp), %rax
	addq	$420, %rbx
	cmpq	16(%rsp), %rax
	jne	.L99
.L93:
	movl	28(%rsp), %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L97:
	.cfi_restore_state
	movq	(%rsp), %rsi
	leaq	matchL(%rip), %rax
	movl	24(%rsp), %edx
	addl	$1, 28(%rsp)
	movl	%r12d, (%rax,%rsi,4)
	leaq	matchR(%rip), %rax
	movl	%edx, (%rax,%r14,4)
	jmp	.L95
.L100:
	movl	$0, 28(%rsp)
	jmp	.L93
	.cfi_endproc
.LFE53:
	.size	bipartiteMatching, .-bipartiteMatching
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	in
	movl	%eax, N(%rip)
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	.L105
	leaq	t(%rip), %rbp
	xorl	%ebx, %ebx
	leaq	4(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L118:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L127
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L107:
	xorl	%r13d, %r13d
	jmp	.L111
	.p2align 4,,10
	.p2align 3
.L108:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L110
.L109:
	movq	%rsi, %rdx
.L111:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L108
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L109
	.p2align 4,,10
	.p2align 3
.L110:
	movl	%r13d, 0(%rbp,%rbx,8)
	cmpq	%rsi, %rcx
	jbe	.L128
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L113:
	xorl	%r13d, %r13d
	jmp	.L117
	.p2align 4,,10
	.p2align 3
.L114:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L116
.L115:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L117:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L114
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L116
	movq	stdin(%rip), %rdi
	jmp	.L115
	.p2align 4,,10
	.p2align 3
.L116:
	movl	%r13d, (%r12,%rbx,8)
	movl	N(%rip), %r13d
	addq	$1, %rbx
	cmpl	%ebx, %r13d
	jg	.L118
	testl	%r13d, %r13d
	jle	.L105
	leaq	t(%rip), %r10
	movslq	%r13d, %rbx
	xorl	%r9d, %r9d
	leaq	hi(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L121:
	movslq	%r9d, %rdx
	xorl	%eax, %eax
	leaq	(%rdx,%rdx,2), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,8), %r8
	.p2align 4,,10
	.p2align 3
.L120:
	cmpl	%r9d, %eax
	je	.L119
	movl	(%r10), %ecx
	movl	4(%r10), %edi
	movl	0(%rbp,%rax,8), %edx
	movl	(%r12,%rax,8), %esi
	cmpl	%edi, %ecx
	movl	%edi, %r15d
	cmovge	%ecx, %r15d
	movl	%esi, %r11d
	cmpl	%esi, %edx
	cmovge	%edx, %r11d
	cmpl	%r11d, %r15d
	jge	.L119
	cmpl	%edi, %ecx
	cmovg	%edi, %ecx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	cmpl	%edx, %ecx
	jge	.L119
	movslq	(%r14,%r9,4), %rdx
	leal	1(%rdx), %ecx
	addq	%r8, %rdx
	movl	%ecx, (%r14,%r9,4)
	leaq	to(%rip), %rcx
	movl	%eax, (%rcx,%rdx,4)
	.p2align 4,,10
	.p2align 3
.L119:
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L120
	addq	$1, %r9
	addq	$8, %r10
	cmpq	%r9, %rbx
	jne	.L121
.L105:
	movl	%r13d, %esi
	movl	%r13d, %edi
	call	bipartiteMatching
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %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
	.p2align 4,,10
	.p2align 3
.L128:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L113
	.p2align 4,,10
	.p2align 3
.L127:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L107
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 840
t:
	.zero	840
	.local	matchR
	.comm	matchR,420,32
	.local	matchL
	.comm	matchL,420,32
	.local	seen
	.comm	seen,105,32
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 44100
to:
	.zero	44100
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 420
hi:
	.zero	420
	.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	in
	.type	in, @function
in:
.LFB51:
	.cfi_startproc
	endbr64
	movq	stdin(%rip), %rdi
	pushq	%r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L11
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L3:
	xorl	%r12d, %r12d
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L4:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L1
.L5:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L7:
	leal	(%r12,%r12,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r12d
	cmpq	%rcx, %rdx
	jb	.L4
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L1
	movq	stdin(%rip), %rdi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L1:
	movl	%r12d, %eax
	popq	%r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L3
	.cfi_endproc
.LFE51:
	.size	in, .-in
	.p2align 4
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB52:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	leaq	hi(%rip), %r8
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$344, %rsp
	.cfi_def_cfa_offset 400
	movl	%eax, 252(%rsp)
	movq	%rax, 80(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L50
	imulq	$420, 80(%rsp), %rdx
	leaq	to(%rip), %r14
	movq	$0, 72(%rsp)
	leaq	seen(%rip), %r9
	leaq	matchR(%rip), %r15
	leaq	(%r14,%rdx), %rdi
	movq	%rdi, 240(%rsp)
.L49:
	movq	240(%rsp), %rsi
	movq	72(%rsp), %rbx
	movslq	(%rsi,%rbx,4), %rsi
	cmpb	$0, (%r9,%rsi)
	movl	%esi, 188(%rsp)
	movq	%rsi, 256(%rsp)
	jne	.L15
	movl	(%r15,%rsi,4), %eax
	movb	$1, (%r9,%rsi)
	movl	%eax, 140(%rsp)
	testl	%eax, %eax
	js	.L85
	movslq	140(%rsp), %rax
	movq	%rax, 88(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L84
	imulq	$420, 88(%rsp), %rdx
	movq	$0, 64(%rsp)
	leaq	(%r14,%rdx), %rsi
	movq	%rsi, 232(%rsp)
.L48:
	movq	232(%rsp), %rbx
	movq	64(%rsp), %rcx
	movslq	(%rbx,%rcx,4), %rcx
	cmpb	$0, (%r9,%rcx)
	movl	%ecx, 192(%rsp)
	movq	%rcx, 264(%rsp)
	jne	.L18
	movl	(%r15,%rcx,4), %eax
	movb	$1, (%r9,%rcx)
	movl	%eax, 144(%rsp)
	testl	%eax, %eax
	js	.L86
	movslq	144(%rsp), %rax
	movq	%rax, 96(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L83
	imulq	$420, 96(%rsp), %rdx
	movq	$0, 56(%rsp)
	leaq	(%r14,%rdx), %rsi
	movq	%rsi, 224(%rsp)
.L47:
	movq	224(%rsp), %rbx
	movq	56(%rsp), %rcx
	movslq	(%rbx,%rcx,4), %rbx
	cmpb	$0, (%r9,%rbx)
	movl	%ebx, 196(%rsp)
	movq	%rbx, 272(%rsp)
	jne	.L21
	movl	(%r15,%rbx,4), %eax
	movb	$1, (%r9,%rbx)
	movl	%eax, 148(%rsp)
	testl	%eax, %eax
	js	.L87
	movslq	148(%rsp), %rax
	movq	%rax, 104(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L82
	imulq	$420, 104(%rsp), %rdx
	movq	$0, 48(%rsp)
	addq	%r14, %rdx
	movq	%rdx, 216(%rsp)
.L46:
	movq	216(%rsp), %rsi
	movq	48(%rsp), %rbx
	movslq	(%rsi,%rbx,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movl	%edx, 200(%rsp)
	movq	%rdx, 280(%rsp)
	jne	.L24
	movl	(%r15,%rdx,4), %eax
	movb	$1, (%r9,%rdx)
	movl	%eax, 152(%rsp)
	testl	%eax, %eax
	js	.L88
	movslq	152(%rsp), %rax
	movq	%rax, 112(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L81
	imulq	$420, 112(%rsp), %rdx
	movq	$0, 40(%rsp)
	leaq	(%r14,%rdx), %rdi
	movq	%rdi, 208(%rsp)
.L45:
	movq	208(%rsp), %rdx
	movq	40(%rsp), %rsi
	movslq	(%rdx,%rsi,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 204(%rsp)
	movq	%rdi, 288(%rsp)
	jne	.L27
	movl	(%r15,%rdi,4), %eax
	movb	$1, (%r9,%rdi)
	movl	%eax, 32(%rsp)
	testl	%eax, %eax
	js	.L89
	movslq	32(%rsp), %r11
	movl	(%r8,%r11,4), %eax
	testl	%eax, %eax
	jle	.L80
	imulq	$420, %r11, %rdx
	xorl	%r13d, %r13d
	movq	%r11, %rcx
	movq	%r13, %r11
	movq	%rcx, %r13
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 128(%rsp)
	.p2align 4,,10
	.p2align 3
.L44:
	movq	128(%rsp), %rbx
	movslq	(%rbx,%r11,4), %r10
	cmpb	$0, (%r9,%r10)
	movl	%r10d, 248(%rsp)
	jne	.L30
	movl	(%r15,%r10,4), %esi
	movb	$1, (%r9,%r10)
	testl	%esi, %esi
	js	.L90
	movslq	%esi, %rcx
	movl	(%r8,%rcx,4), %eax
	testl	%eax, %eax
	jle	.L79
	imulq	$420, %rcx, %rdx
	movq	%r11, 176(%rsp)
	movq	$0, 8(%rsp)
	leaq	(%r14,%rdx), %rbx
	movq	%rbx, 160(%rsp)
	.p2align 4,,10
	.p2align 3
.L43:
	movq	160(%rsp), %rdi
	movq	8(%rsp), %rdx
	movslq	(%rdi,%rdx,4), %rdi
	cmpb	$0, (%r9,%rdi)
	movl	%edi, 156(%rsp)
	movq	%rdi, 168(%rsp)
	jne	.L33
	movl	(%r15,%rdi,4), %eax
	movb	$1, (%r9,%rdi)
	movl	%eax, 184(%rsp)
	testl	%eax, %eax
	js	.L91
	movslq	184(%rsp), %rax
	movq	%rax, 16(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L78
	imulq	$420, 16(%rsp), %rdx
	xorl	%ebx, %ebx
	addq	%r14, %rdx
	movq	%rdx, 24(%rsp)
	.p2align 4,,10
	.p2align 3
.L42:
	movq	24(%rsp), %rdx
	movslq	(%rdx,%rbx,4), %rbp
	cmpb	$0, (%r9,%rbp)
	movl	%ebp, 36(%rsp)
	jne	.L36
	movl	(%r15,%rbp,4), %eax
	movb	$1, (%r9,%rbp)
	movl	%eax, 136(%rsp)
	testl	%eax, %eax
	js	.L92
	movslq	136(%rsp), %rax
	movq	%rax, 120(%rsp)
	movl	(%r8,%rax,4), %eax
	testl	%eax, %eax
	jle	.L77
	imulq	$420, 120(%rsp), %r11
	movq	%rbp, 296(%rsp)
	xorl	%r12d, %r12d
	addq	%r14, %r11
	movq	%r11, %rbp
	.p2align 4,,10
	.p2align 3
.L41:
	movslq	0(%rbp,%r12,4), %rdx
	cmpb	$0, (%r9,%rdx)
	movq	%rdx, %r11
	jne	.L39
	movl	(%r15,%rdx,4), %edi
	movb	$1, (%r9,%rdx)
	testl	%edi, %edi
	js	.L40
	movq	%rdx, 328(%rsp)
	movl	%edx, 324(%rsp)
	movq	%rcx, 312(%rsp)
	movq	%r10, 304(%rsp)
	movl	%esi, 320(%rsp)
	call	bpm
	movl	320(%rsp), %esi
	movq	304(%rsp), %r10
	testl	%eax, %eax
	movq	312(%rsp), %rcx
	movl	324(%rsp), %r11d
	movq	328(%rsp), %rdx
	jne	.L40
	movq	120(%rsp), %rax
	leaq	hi(%rip), %r8
	leaq	seen(%rip), %r9
	movl	(%r8,%rax,4), %eax
	.p2align 4,,10
	.p2align 3
.L39:
	addq	$1, %r12
	cmpl	%r12d, %eax
	jg	.L41
.L77:
	movq	16(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L36:
	addq	$1, %rbx
	cmpl	%ebx, %eax
	jg	.L42
.L78:
	movl	(%r8,%rcx,4), %eax
.L33:
	addq	$1, 8(%rsp)
	movq	8(%rsp), %rbx
	cmpl	%ebx, %eax
	jg	.L43
	movq	176(%rsp), %r11
.L79:
	movl	(%r8,%r13,4), %eax
.L30:
	addq	$1, %r11
	cmpl	%r11d, %eax
	jg	.L44
.L80:
	movq	112(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L27:
	addq	$1, 40(%rsp)
	movq	40(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L45
.L81:
	movq	104(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L24:
	addq	$1, 48(%rsp)
	movq	48(%rsp), %rcx
	cmpl	%ecx, %eax
	jg	.L46
.L82:
	movq	96(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L21:
	addq	$1, 56(%rsp)
	movq	56(%rsp), %rsi
	cmpl	%esi, %eax
	jg	.L47
.L83:
	movq	88(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L18:
	addq	$1, 64(%rsp)
	movq	64(%rsp), %rdx
	cmpl	%edx, %eax
	jg	.L48
.L84:
	movq	80(%rsp), %rax
	movl	(%r8,%rax,4), %eax
.L15:
	addq	$1, 72(%rsp)
	movq	72(%rsp), %rbx
	cmpl	%ebx, %eax
	jg	.L49
.L50:
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L91:
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	leaq	matchL(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L34:
	movl	156(%rsp), %ecx
	movl	%ecx, (%rax,%rsi,4)
	movq	168(%rsp), %rsi
	movl	%r11d, (%r15,%rsi,4)
.L31:
	movl	248(%rsp), %ecx
	movl	32(%rsp), %esi
	movl	%ecx, (%rax,%r10,4)
	movl	%esi, (%r15,%rdx,4)
.L28:
	movq	112(%rsp), %rcx
	movl	204(%rsp), %edx
	movq	288(%rsp), %rsi
	movl	%edx, (%rax,%rcx,4)
	movl	152(%rsp), %ecx
	movl	%ecx, (%r15,%rsi,4)
.L25:
	movq	104(%rsp), %rdx
	movl	200(%rsp), %esi
	movq	280(%rsp), %rcx
	movl	%esi, (%rax,%rdx,4)
	movl	148(%rsp), %edx
	movl	%edx, (%r15,%rcx,4)
.L22:
	movq	96(%rsp), %rsi
	movl	196(%rsp), %ecx
	movq	272(%rsp), %rdx
	movl	%ecx, (%rax,%rsi,4)
	movl	144(%rsp), %esi
	movl	%esi, (%r15,%rdx,4)
.L19:
	movq	88(%rsp), %rbx
	movl	192(%rsp), %ecx
	movq	264(%rsp), %rdi
	movl	140(%rsp), %edx
	movl	%ecx, (%rax,%rbx,4)
	movl	%edx, (%r15,%rdi,4)
.L16:
	movq	80(%rsp), %rsi
	movl	188(%rsp), %ebx
	movl	252(%rsp), %ecx
	movl	%ebx, (%rax,%rsi,4)
	movq	256(%rsp), %rax
	movl	%ecx, (%r15,%rax,4)
	movl	$1, %eax
.L12:
	addq	$344, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L92:
	.cfi_restore_state
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movq	%rbp, %rcx
	leaq	matchL(%rip), %rax
	.p2align 4,,10
	.p2align 3
.L37:
	movq	16(%rsp), %rbx
	movl	36(%rsp), %edi
	movl	%edi, (%rax,%rbx,4)
	movl	184(%rsp), %ebx
	movl	%ebx, (%r15,%rcx,4)
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L40:
	movq	120(%rsp), %rbx
	movl	%r11d, %edi
	leaq	matchL(%rip), %rax
	movq	%rdx, %r12
	movl	%esi, %r11d
	movq	%r10, %rdx
	movq	%rcx, %rsi
	movq	%r13, %r10
	movl	%edi, (%rax,%rbx,4)
	movl	136(%rsp), %ebx
	movq	296(%rsp), %rcx
	movl	%ebx, (%r15,%r12,4)
	jmp	.L37
.L90:
	movq	%r10, %rdx
	leaq	matchL(%rip), %rax
	movq	%r13, %r10
	jmp	.L31
.L89:
	leaq	matchL(%rip), %rax
	jmp	.L28
.L88:
	leaq	matchL(%rip), %rax
	jmp	.L25
.L87:
	leaq	matchL(%rip), %rax
	jmp	.L22
.L86:
	leaq	matchL(%rip), %rax
	jmp	.L19
.L85:
	leaq	matchL(%rip), %rax
	jmp	.L16
	.cfi_endproc
.LFE52:
	.size	bpm, .-bpm
	.p2align 4
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB53:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	movslq	%edi, %rax
	movl	$420, %ecx
	leaq	matchL(%rip), %rdi
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	leaq	0(,%rax,4), %rdx
	movl	%esi, %r14d
	movl	$-1, %esi
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	movq	%rax, %rbx
	subq	$40, %rsp
	.cfi_def_cfa_offset 96
	movq	%rax, 16(%rsp)
	call	__memset_chk@PLT
	movslq	%r14d, %rax
	movl	$420, %ecx
	movl	$-1, %esi
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rdi
	movq	%rax, 8(%rsp)
	call	__memset_chk@PLT
	testl	%ebx, %ebx
	jle	.L100
	movq	$0, (%rsp)
	leaq	hi(%rip), %rbp
	leaq	to(%rip), %rbx
	movl	$0, 28(%rsp)
	leaq	seen(%rip), %r15
	.p2align 4,,10
	.p2align 3
.L99:
	movl	(%rsp), %eax
	movq	8(%rsp), %rdx
	movl	$105, %ecx
	xorl	%esi, %esi
	movq	%r15, %rdi
	movl	%eax, 24(%rsp)
	call	__memset_chk@PLT
	movl	0(%rbp), %eax
	testl	%eax, %eax
	jle	.L95
	xorl	%r13d, %r13d
	.p2align 4,,10
	.p2align 3
.L98:
	movslq	(%rbx,%r13,4), %r14
	cmpb	$0, (%r15,%r14)
	movq	%r14, %r12
	jne	.L96
	leaq	matchR(%rip), %rax
	movb	$1, (%r15,%r14)
	movl	(%rax,%r14,4), %edi
	testl	%edi, %edi
	js	.L97
	call	bpm
	testl	%eax, %eax
	jne	.L97
	movl	0(%rbp), %eax
.L96:
	addq	$1, %r13
	cmpl	%r13d, %eax
	jg	.L98
.L95:
	addq	$1, (%rsp)
	addq	$4, %rbp
	movq	(%rsp), %rax
	addq	$420, %rbx
	cmpq	16(%rsp), %rax
	jne	.L99
.L93:
	movl	28(%rsp), %eax
	addq	$40, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	.p2align 4,,10
	.p2align 3
.L97:
	.cfi_restore_state
	movq	(%rsp), %rsi
	leaq	matchL(%rip), %rax
	movl	24(%rsp), %edx
	addl	$1, 28(%rsp)
	movl	%r12d, (%rax,%rsi,4)
	leaq	matchR(%rip), %rax
	movl	%edx, (%rax,%r14,4)
	jmp	.L95
.L100:
	movl	$0, 28(%rsp)
	jmp	.L93
	.cfi_endproc
.LFE53:
	.size	bipartiteMatching, .-bipartiteMatching
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB54:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	pushq	%r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	pushq	%r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	pushq	%rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	pushq	%rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	subq	$8, %rsp
	.cfi_def_cfa_offset 64
	call	in
	movl	%eax, N(%rip)
	movl	%eax, %r13d
	testl	%eax, %eax
	jle	.L105
	leaq	t(%rip), %rbp
	xorl	%ebx, %ebx
	leaq	4(%rbp), %r12
	.p2align 4,,10
	.p2align 3
.L118:
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rax
	movq	16(%rdi), %rcx
	cmpq	%rcx, %rax
	jnb	.L127
	leaq	1(%rax), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rax), %eax
.L107:
	xorl	%r13d, %r13d
	jmp	.L111
	.p2align 4,,10
	.p2align 3
.L108:
	leaq	1(%rdx), %rsi
	movq	%rsi, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L110
.L109:
	movq	%rsi, %rdx
.L111:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L108
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rsi
	movq	16(%rdi), %rcx
	cmpl	$47, %eax
	jg	.L109
	.p2align 4,,10
	.p2align 3
.L110:
	movl	%r13d, 0(%rbp,%rbx,8)
	cmpq	%rsi, %rcx
	jbe	.L128
	leaq	1(%rsi), %rdx
	movq	%rdx, 8(%rdi)
	movzbl	(%rsi), %eax
.L113:
	xorl	%r13d, %r13d
	jmp	.L117
	.p2align 4,,10
	.p2align 3
.L114:
	leaq	1(%rdx), %rax
	movq	%rax, 8(%rdi)
	movzbl	(%rdx), %eax
	cmpl	$47, %eax
	jle	.L116
.L115:
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
.L117:
	leal	0(%r13,%r13,4), %esi
	andl	$15, %eax
	leal	(%rax,%rsi,2), %r13d
	cmpq	%rcx, %rdx
	jb	.L114
	call	__uflow@PLT
	cmpl	$47, %eax
	jle	.L116
	movq	stdin(%rip), %rdi
	jmp	.L115
	.p2align 4,,10
	.p2align 3
.L116:
	movl	%r13d, (%r12,%rbx,8)
	movl	N(%rip), %r13d
	addq	$1, %rbx
	cmpl	%ebx, %r13d
	jg	.L118
	testl	%r13d, %r13d
	jle	.L105
	leaq	t(%rip), %r10
	movslq	%r13d, %rbx
	xorl	%r9d, %r9d
	leaq	hi(%rip), %r14
	.p2align 4,,10
	.p2align 3
.L121:
	movslq	%r9d, %rdx
	xorl	%eax, %eax
	leaq	(%rdx,%rdx,2), %rcx
	leaq	(%rdx,%rcx,4), %rcx
	leaq	(%rdx,%rcx,8), %r8
	.p2align 4,,10
	.p2align 3
.L120:
	cmpl	%r9d, %eax
	je	.L119
	movl	(%r10), %ecx
	movl	4(%r10), %edi
	movl	0(%rbp,%rax,8), %edx
	movl	(%r12,%rax,8), %esi
	cmpl	%edi, %ecx
	movl	%edi, %r15d
	cmovge	%ecx, %r15d
	movl	%esi, %r11d
	cmpl	%esi, %edx
	cmovge	%edx, %r11d
	cmpl	%r11d, %r15d
	jge	.L119
	cmpl	%edi, %ecx
	cmovg	%edi, %ecx
	cmpl	%esi, %edx
	cmovg	%esi, %edx
	cmpl	%edx, %ecx
	jge	.L119
	movslq	(%r14,%r9,4), %rdx
	leal	1(%rdx), %ecx
	addq	%r8, %rdx
	movl	%ecx, (%r14,%r9,4)
	leaq	to(%rip), %rcx
	movl	%eax, (%rcx,%rdx,4)
	.p2align 4,,10
	.p2align 3
.L119:
	addq	$1, %rax
	cmpq	%rbx, %rax
	jne	.L120
	addq	$1, %r9
	addq	$8, %r10
	cmpq	%r9, %rbx
	jne	.L121
.L105:
	movl	%r13d, %esi
	movl	%r13d, %edi
	call	bipartiteMatching
	movl	%r13d, %edx
	movl	$1, %edi
	leaq	.LC0(%rip), %rsi
	subl	%eax, %edx
	xorl	%eax, %eax
	call	__printf_chk@PLT
	addq	$8, %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
	.p2align 4,,10
	.p2align 3
.L128:
	.cfi_restore_state
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L113
	.p2align 4,,10
	.p2align 3
.L127:
	call	__uflow@PLT
	movq	stdin(%rip), %rdi
	movq	8(%rdi), %rdx
	movq	16(%rdi), %rcx
	jmp	.L107
	.cfi_endproc
.LFE54:
	.size	main, .-main
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	t
	.align 32
	.type	t, @object
	.size	t, 840
t:
	.zero	840
	.local	matchR
	.comm	matchR,420,32
	.local	matchL
	.comm	matchL,420,32
	.local	seen
	.comm	seen,105,32
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 44100
to:
	.zero	44100
	.globl	hi
	.align 32
	.type	hi, @object
	.size	hi, 420
hi:
	.zero	420
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:

// AOJ 1532 Yu-kun Likes Building Block
// 2018.3.18 bal4u

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

// 高速数値入力
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()  // 非負整数のみ
{
	int n = 0, c = gc();
	do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}


// 2部グラフの最大マッチング
#define BMAX 105
int  hi[BMAX], to[BMAX][BMAX];
static char seen[BMAX];    // 内部作業用
static int  matchL[BMAX];  // 内部作業用
static int  matchR[BMAX];  // 内部作業用

int bpm(int u)
{
	int i, v;

	for (i = 0; i < hi[u]; i++) {
		v = to[u][i];
		if (seen[v]) continue;
		seen[v] = 1;
		if (matchR[v] < 0 || bpm(matchR[v])) {
			matchL[u] = v, matchR[v] = u;
			return 1;
		}
	}
	return 0;
}

int bipartiteMatching(int m, int n)
{
	int u, max;

	memset(matchL, -1, m * sizeof(int));
	memset(matchR, -1, n * sizeof(int));
	max = 0;
	for (u = 0; u < m; u++) {
		memset(seen, 0, n * sizeof(char));
		if (bpm(u)) max++;
	}
	return max;
}


// 本問題関連
#define MAX(a, b)  ((a)>=(b)? (a): (b))
#define MIN(a, b)  ((a)<=(b)? (a): (b))
typedef struct { int w, h; } T;
T t[105]; int N;

int main()
{
	int i, j;

	N = in();
	for (i = 0; i < N; i++)	t[i].w = in(), t[i].h = in();
	for (i = 0; i < N; i++) for (j = 0; j < N; j++) if (i != j) {
		if (MAX(t[i].w, t[i].h) < MAX(t[j].w, t[j].h) &&
			MIN(t[i].w, t[i].h) < MIN(t[j].w, t[j].h))
			to[i][hi[i]++] = j;
	}
#if 0
	for (i = 0; i < N; i++) {
		printf("[%d] hi=%d:", i, hi[i]);
		for (j = 0; j < hi[i]; j++) printf(" %d", to[i][j]);
		printf("\n");
	}
#endif
	printf("%d\n", N - bipartiteMatching(N, N));
	return 0;
}

3
0 1
2 2
3 3
 5
1 5
2 4
3 3
0 2
5 1
 5
2 3
3 5
1 2
0 4
3 5
 10
5 11
12 12
4 14
38 12
11 13
3 3
3 3
12 5
55 55
1 1
 5
1 3
0 4
3 0
0 3
3 1
 10
0 9
16 1
6 48
22 0
12 0
4 0
0 11
19 9
103 55
0 2
 3
0 1
2 2
5 3
 5
1 5
2 4
3 3
0 2
3 1
 5
2 3
3 2
1 2
0 4
3 5
 10
5 11
12 12
4 14
55 12
11 13
3 3
3 3
12 5
55 55
1 1

1
 4
 2
 3
 5
 6
 1
 3
 3
 3

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

```c
// AOJ 1532 Yu-kun Likes Building Block
// 2018.3.18 bal4u

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

// 高速数値入力
#if 1
#define gc() getchar_unlocked()
#else
#define gc() getchar()
#endif
int in()  // 非負整数のみ
{
	int n = 0, c = gc();
	do n = 10 * n + (c & 0xf), c = gc(); while (c >= '0');
	return n;
}


// 2部グラフの最大マッチング
#define BMAX 105
int  hi[BMAX], to[BMAX][BMAX];
static char seen[BMAX];    // 内部作業用
static int  matchL[BMAX];  // 内部作業用
static int  matchR[BMAX];  // 内部作業用

int bpm(int u)
{
	int i, v;

	for (i = 0; i < hi[u]; i++) {
		v = to[u][i];
		if (seen[v]) continue;
		seen[v] = 1;
		if (matchR[v] < 0 || bpm(matchR[v])) {
			matchL[u] = v, matchR[v] = u;
			return 1;
		}
	}
	return 0;
}

int bipartiteMatching(int m, int n)
{
	int u, max;

	memset(matchL, -1, m * sizeof(int));
	memset(matchR, -1, n * sizeof(int));
	max = 0;
	for (u = 0; u < m; u++) {
		memset(seen, 0, n * sizeof(char));
		if (bpm(u)) max++;
	}
	return max;
}


// 本問題関連
#define MAX(a, b)  ((a)>=(b)? (a): (b))
#define MIN(a, b)  ((a)<=(b)? (a): (b))
typedef struct { int w, h; } T;
T t[105]; int N;

int main()
{
	int i, j;

	N = in();
	for (i = 0; i < N; i++)	t[i].w = in(), t[i].h = in();
	for (i = 0; i < N; i++) for (j = 0; j < N; j++) if (i != j) {
		if (MAX(t[i].w, t[i].h) < MAX(t[j].w, t[j].h) &&
			MIN(t[i].w, t[i].h) < MIN(t[j].w, t[j].h))
			to[i][hi[i]++] = j;
	}
#if 0
	for (i = 0; i < N; i++) {
		printf("[%d] hi=%d:", i, hi[i]);
		for (j = 0; j < hi[i]; j++) printf(" %d", to[i][j]);
		printf("\n");
	}
#endif
	printf("%d\n", N - bipartiteMatching(N, N));
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	hi
	.bss
	.align 32
	.type	hi, @object
	.size	hi, 420
hi:
	.zero	420
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 44100
to:
	.zero	44100
	.local	seen
	.comm	seen,105,32
	.local	matchL
	.comm	matchL,420,32
	.local	matchR
	.comm	matchR,420,32
	.text
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L10:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L8
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L7
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	matchL(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	matchR(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
	jmp	.L9
.L11:
	nop
.L7:
	addl	$1, -8(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bpm, .-bpm
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	matchL(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-24(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	matchR(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L13
.L15:
	movl	-24(%rbp), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	seen(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L14
	addl	$1, -4(%rbp)
.L14:
	addl	$1, -8(%rbp)
.L13:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L15
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bipartiteMatching, .-bipartiteMatching
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 840
t:
	.zero	840
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	$0, %eax
	call	in
	movl	%eax, N(%rip)
	movl	$0, -24(%rbp)
	jmp	.L18
.L19:
	movl	$0, %eax
	call	in
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -24(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L19
	movl	$0, -24(%rbp)
	jmp	.L20
.L24:
	movl	$0, -20(%rbp)
	jmp	.L21
.L23:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	4+t(%rip), %rax
	movl	(%rsi,%rax), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cmpl	%eax, %ecx
	jge	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	4+t(%rip), %rax
	movl	(%rsi,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cmpl	%eax, %ecx
	jge	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	to(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L22:
	addl	$1, -20(%rbp)
.L21:
	movl	N(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L23
	addl	$1, -24(%rbp)
.L20:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L24
	movl	N(%rip), %ebx
	movl	N(%rip), %edx
	movl	N(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	bipartiteMatching
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	in
	.type	in, @function
in:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	movl	$0, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
.L2:
	movl	-8(%rbp), %edx
	movl	%edx, %eax
	sall	$2, %eax
	addl	%edx, %eax
	addl	%eax, %eax
	movl	%eax, %edx
	movl	-4(%rbp), %eax
	andl	$15, %eax
	addl	%edx, %eax
	movl	%eax, -8(%rbp)
	call	getchar_unlocked@PLT
	movl	%eax, -4(%rbp)
	cmpl	$47, -4(%rbp)
	jg	.L2
	movl	-8(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	in, .-in
	.globl	hi
	.bss
	.align 32
	.type	hi, @object
	.size	hi, 420
hi:
	.zero	420
	.globl	to
	.align 32
	.type	to, @object
	.size	to, 44100
to:
	.zero	44100
	.local	seen
	.comm	seen,105,32
	.local	matchL
	.comm	matchL,420,32
	.local	matchR
	.comm	matchR,420,32
	.text
	.globl	bpm
	.type	bpm, @function
bpm:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L5
.L10:
	movl	-8(%rbp), %eax
	movslq	%eax, %rcx
	movl	-20(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	to(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movzbl	(%rax,%rdx), %eax
	testb	%al, %al
	jne	.L11
	movl	-4(%rbp), %eax
	cltq
	leaq	seen(%rip), %rdx
	movb	$1, (%rax,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rax
	movl	(%rdx,%rax), %eax
	testl	%eax, %eax
	js	.L8
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	matchR(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L7
.L8:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	matchL(%rip), %rdx
	movl	-4(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	matchR(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
	movl	$1, %eax
	jmp	.L9
.L11:
	nop
.L7:
	addl	$1, -8(%rbp)
.L5:
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -8(%rbp)
	jl	.L10
	movl	$0, %eax
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bpm, .-bpm
	.globl	bipartiteMatching
	.type	bipartiteMatching, @function
bipartiteMatching:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$32, %rsp
	movl	%edi, -20(%rbp)
	movl	%esi, -24(%rbp)
	movl	-20(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	matchL(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-24(%rbp), %eax
	cltq
	salq	$2, %rax
	movq	%rax, %rdx
	movl	$-1, %esi
	leaq	matchR(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	$0, -4(%rbp)
	movl	$0, -8(%rbp)
	jmp	.L13
.L15:
	movl	-24(%rbp), %eax
	cltq
	movq	%rax, %rdx
	movl	$0, %esi
	leaq	seen(%rip), %rax
	movq	%rax, %rdi
	call	memset@PLT
	movl	-8(%rbp), %eax
	movl	%eax, %edi
	call	bpm
	testl	%eax, %eax
	je	.L14
	addl	$1, -4(%rbp)
.L14:
	addl	$1, -8(%rbp)
.L13:
	movl	-8(%rbp), %eax
	cmpl	-20(%rbp), %eax
	jl	.L15
	movl	-4(%rbp), %eax
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	bipartiteMatching, .-bipartiteMatching
	.globl	t
	.bss
	.align 32
	.type	t, @object
	.size	t, 840
t:
	.zero	840
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.section	.rodata
.LC0:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset 3, -24
	movl	$0, %eax
	call	in
	movl	%eax, N(%rip)
	movl	$0, -24(%rbp)
	jmp	.L18
.L19:
	movl	$0, %eax
	call	in
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	$0, %eax
	call	in
	movl	-24(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+t(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -24(%rbp)
.L18:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L19
	movl	$0, -24(%rbp)
	jmp	.L20
.L24:
	movl	$0, -20(%rbp)
	jmp	.L21
.L23:
	movl	-24(%rbp), %eax
	cmpl	-20(%rbp), %eax
	je	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	4+t(%rip), %rax
	movl	(%rsi,%rax), %eax
	cmpl	%eax, %edx
	cmovge	%edx, %eax
	cmpl	%eax, %ecx
	jge	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	4+t(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	movl	%eax, %ecx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	t(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-20(%rbp), %eax
	cltq
	leaq	0(,%rax,8), %rsi
	leaq	4+t(%rip), %rax
	movl	(%rsi,%rax), %eax
	cmpl	%eax, %edx
	cmovle	%edx, %eax
	cmpl	%eax, %ecx
	jge	.L22
	movl	-24(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	hi(%rip), %rax
	movl	(%rdx,%rax), %eax
	leal	1(%rax), %edx
	movl	-24(%rbp), %ecx
	movslq	%ecx, %rcx
	leaq	0(,%rcx,4), %rsi
	leaq	hi(%rip), %rcx
	movl	%edx, (%rsi,%rcx)
	movslq	%eax, %rcx
	movl	-24(%rbp), %eax
	movslq	%eax, %rdx
	movq	%rdx, %rax
	addq	%rax, %rax
	addq	%rdx, %rax
	salq	$2, %rax
	addq	%rdx, %rax
	salq	$3, %rax
	addq	%rdx, %rax
	addq	%rcx, %rax
	leaq	0(,%rax,4), %rcx
	leaq	to(%rip), %rdx
	movl	-20(%rbp), %eax
	movl	%eax, (%rcx,%rdx)
.L22:
	addl	$1, -20(%rbp)
.L21:
	movl	N(%rip), %eax
	cmpl	%eax, -20(%rbp)
	jl	.L23
	addl	$1, -24(%rbp)
.L20:
	movl	N(%rip), %eax
	cmpl	%eax, -24(%rbp)
	jl	.L24
	movl	N(%rip), %ebx
	movl	N(%rip), %edx
	movl	N(%rip), %eax
	movl	%edx, %esi
	movl	%eax, %edi
	call	bipartiteMatching
	movl	%eax, %edx
	movl	%ebx, %eax
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
	movq	-8(%rbp), %rbx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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:
