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 no(const void* to, const void* ma) {
	int mi = *(const int*)to, ko = *(const int*)ma;
	return mi < ko ? -1 : mi > ko;
}

int N;
int a[114514];

int kitaeri;
int asumisu[114514], mizuhasu[114514];

int emirin(int yukachi) {
	int aoi = 0, ayana = kitaeri - 1;
	while (aoi <= ayana) {
		int sumipe = aoi + (ayana - aoi) / 2;
		if (asumisu[sumipe] == yukachi) return sumipe;
		else if (asumisu[sumipe] < yukachi) aoi = sumipe + 1;
		else ayana = sumipe - 1;
	}
	return 114513;
}

int main(void) {
	int harukasu;
	int hocchann;
	if (scanf("%d", &N) != 1) return 1;
	for (harukasu = 0; harukasu < N; harukasu++) {
		if (scanf("%d", &a[harukasu]) != 1) return 1;
		asumisu[harukasu] = a[harukasu];
	}
	qsort(asumisu, N, sizeof(*asumisu), no);
	kitaeri = 1;
	for (harukasu = 1; harukasu < N; harukasu++) {
		if (asumisu[kitaeri - 1] != asumisu[harukasu]) {
			asumisu[kitaeri++] = asumisu[harukasu];
		}
	}
	for (harukasu = 0; harukasu < N; harukasu++) {
		mizuhasu[emirin(a[harukasu])]++;
	}
	hocchann = 0;
	for (harukasu = 0; harukasu < kitaeri; harukasu++) {
		int hayaminn = mizuhasu[harukasu];
		if (harukasu > 0 && asumisu[harukasu - 1] == asumisu[harukasu] - 1) {
			hayaminn += mizuhasu[harukasu - 1];
		}
		if (harukasu + 1 < kitaeri && asumisu[harukasu + 1] == asumisu[harukasu] + 1) {
			hayaminn += mizuhasu[harukasu + 1];
		}
		if (hayaminn > hocchann) hocchann = hayaminn;
	}
	printf("%d\n", hocchann);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	no
	.type	no, @function
no:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L2
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	no, .-no
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 458056
a:
	.zero	458056
	.globl	kitaeri
	.align 4
	.type	kitaeri, @object
	.size	kitaeri, 4
kitaeri:
	.zero	4
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.globl	mizuhasu
	.align 32
	.type	mizuhasu, @object
	.size	mizuhasu, 458056
mizuhasu:
	.zero	458056
	.text
	.globl	emirin
	.type	emirin, @function
emirin:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	kitaeri(%rip), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L6
.L10:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L7
	movl	-4(%rbp), %eax
	jmp	.L8
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L9
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L6
.L9:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
.L6:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L10
	movl	$114513, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	emirin, .-emirin
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, -12(%rbp)
	jmp	.L14
.L16:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L15
	movl	$1, %eax
	jmp	.L13
.L15:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L16
	movl	N(%rip), %eax
	cltq
	leaq	no(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	asumisu(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$1, kitaeri(%rip)
	movl	$1, -12(%rbp)
	jmp	.L17
.L19:
	movl	kitaeri(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	asumisu(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L18
	movl	kitaeri(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, kitaeri(%rip)
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	asumisu(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L18:
	addl	$1, -12(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L19
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	emirin
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	mizuhasu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L20:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L21
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L22
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -12(%rbp)
	jle	.L23
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	$1, %edx
	cmpl	%edx, %eax
	jne	.L23
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -4(%rbp)
.L23:
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movl	kitaeri(%rip), %eax
	cmpl	%eax, %edx
	jge	.L24
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jne	.L24
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -4(%rbp)
.L24:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L25
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L25:
	addl	$1, -12(%rbp)
.L22:
	movl	kitaeri(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L26
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
user
	.file	"temp.c"
	.text
	.p2align 4
	.globl	no
	.type	no, @function
no:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	movl	$-1, %edx
	setg	%al
	movzbl	%al, %eax
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	no, .-no
	.p2align 4
	.globl	emirin
	.type	emirin, @function
emirin:
.LFB40:
	.cfi_startproc
	endbr64
	movl	kitaeri(%rip), %ecx
	subl	$1, %ecx
	js	.L11
	xorl	%edx, %edx
	leaq	asumisu(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	subl	%edx, %eax
	sarl	%eax
	addl	%edx, %eax
	movslq	%eax, %rsi
	cmpl	%edi, (%r8,%rsi,4)
	je	.L5
	jge	.L7
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jle	.L9
.L11:
	movl	$114513, %eax
.L5:
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	leal	-1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L9
	movl	$114513, %eax
	jmp	.L5
	.cfi_endproc
.LFE40:
	.size	emirin, .-emirin
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	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	__isoc99_scanf@PLT
	movslq	%eax, %r13
	cmpl	$1, %r13d
	jne	.L16
	movl	N(%rip), %eax
	leaq	asumisu(%rip), %rbx
	testl	%eax, %eax
	jle	.L15
	leaq	a(%rip), %rbp
	xorl	%r12d, %r12d
	leaq	asumisu(%rip), %r14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L53:
	movl	0(%rbp), %eax
	movq	%r14, %rbx
	addq	$4, %rbp
	movl	%eax, (%r14,%r12,4)
	movl	N(%rip), %eax
	addq	$1, %r12
	cmpl	%r12d, %eax
	jle	.L15
.L17:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L53
.L16:
	movl	$1, %eax
.L12:
	addq	$8, %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
.L15:
	.cfi_restore_state
	movslq	%eax, %rsi
	leaq	no(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	N(%rip), %r11d
	movl	$1, kitaeri(%rip)
	cmpl	$1, %r11d
	jle	.L18
	leaq	4+asumisu(%rip), %rax
	leal	-2(%r11), %edx
	movl	asumisu(%rip), %ecx
	xorl	%r8d, %r8d
	leaq	4(%rax), %rsi
	leaq	(%rsi,%rdx,4), %rdi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L55:
	addq	$4, %rax
	movl	%edx, (%rbx,%r13,4)
	leal	1(%r13), %esi
	cmpq	%rdi, %rax
	je	.L54
	movl	$1, %r8d
.L20:
	movl	%edx, %ecx
	movslq	%esi, %r13
.L23:
	movl	(%rax), %edx
	cmpl	%ecx, %edx
	jne	.L55
	addq	$4, %rax
	cmpq	%rdi, %rax
	je	.L22
	movl	%r13d, %esi
	jmp	.L20
.L54:
	movl	%esi, %r13d
.L21:
	movl	%r13d, kitaeri(%rip)
.L24:
	movl	kitaeri(%rip), %ebp
	xorl	%r8d, %r8d
	leaq	a(%rip), %r12
	leaq	mizuhasu(%rip), %r9
	leal	-1(%rbp), %r10d
	.p2align 4,,10
	.p2align 3
.L33:
	movl	(%r12,%r8,4), %edi
	testl	%r10d, %r10d
	js	.L42
	movl	%r10d, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L32:
	movl	%ecx, %eax
	subl	%edx, %eax
	sarl	%eax
	addl	%edx, %eax
	movslq	%eax, %rsi
	cmpl	(%rbx,%rsi,4), %edi
	je	.L29
	jle	.L30
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jle	.L32
.L42:
	movl	$114513, %esi
.L29:
	addq	$1, %r8
	addl	$1, (%r9,%rsi,4)
	cmpl	%r8d, %r11d
	jg	.L33
	movl	%ebp, %r9d
	xorl	%r8d, %r8d
	testl	%ebp, %ebp
	jle	.L28
.L27:
	movl	mizuhasu(%rip), %edx
	leaq	asumisu(%rip), %rax
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	leaq	4+mizuhasu(%rip), %rdi
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L57:
	movl	(%rax), %ebx
	leal	1(%rbx), %esi
	cmpl	%esi, 4(%rax)
	jne	.L37
	addl	(%rdi), %edx
.L37:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
.L38:
	movl	4(%rax), %ebx
	movl	(%rdi), %edx
	leal	-1(%rbx), %esi
	cmpl	%esi, (%rax)
	je	.L56
.L35:
	addq	$4, %rax
	addq	$4, %rdi
.L39:
	addl	$1, %ecx
	cmpl	%r9d, %ecx
	jl	.L57
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	cmpl	%r9d, %ecx
	jne	.L38
.L28:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L30:
	leal	-1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L32
	jmp	.L42
.L56:
	addl	-4(%rdi), %edx
	jmp	.L35
.L22:
	testb	%r8b, %r8b
	je	.L24
	jmp	.L21
.L18:
	movl	$1, %r9d
	jne	.L27
	jmp	.L24
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	mizuhasu
	.bss
	.align 32
	.type	mizuhasu, @object
	.size	mizuhasu, 458056
mizuhasu:
	.zero	458056
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.globl	kitaeri
	.align 4
	.type	kitaeri, @object
	.size	kitaeri, 4
kitaeri:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 458056
a:
	.zero	458056
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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	no
	.type	no, @function
no:
.LFB39:
	.cfi_startproc
	endbr64
	movl	(%rsi), %eax
	cmpl	%eax, (%rdi)
	movl	$-1, %edx
	setg	%al
	movzbl	%al, %eax
	cmovl	%edx, %eax
	ret
	.cfi_endproc
.LFE39:
	.size	no, .-no
	.p2align 4
	.globl	emirin
	.type	emirin, @function
emirin:
.LFB40:
	.cfi_startproc
	endbr64
	movl	kitaeri(%rip), %ecx
	subl	$1, %ecx
	js	.L11
	xorl	%edx, %edx
	leaq	asumisu(%rip), %r8
	.p2align 4,,10
	.p2align 3
.L9:
	movl	%ecx, %eax
	subl	%edx, %eax
	sarl	%eax
	addl	%edx, %eax
	movslq	%eax, %rsi
	cmpl	%edi, (%r8,%rsi,4)
	je	.L5
	jge	.L7
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jle	.L9
.L11:
	movl	$114513, %eax
.L5:
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	leal	-1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L9
	movl	$114513, %eax
	jmp	.L5
	.cfi_endproc
.LFE40:
	.size	emirin, .-emirin
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	leaq	.LC0(%rip), %r15
	leaq	N(%rip), %rsi
	xorl	%eax, %eax
	pushq	%r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	movq	%r15, %rdi
	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	__isoc99_scanf@PLT
	movslq	%eax, %r13
	cmpl	$1, %r13d
	jne	.L16
	movl	N(%rip), %eax
	leaq	asumisu(%rip), %rbx
	testl	%eax, %eax
	jle	.L15
	leaq	a(%rip), %rbp
	xorl	%r12d, %r12d
	leaq	asumisu(%rip), %r14
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L53:
	movl	0(%rbp), %eax
	movq	%r14, %rbx
	addq	$4, %rbp
	movl	%eax, (%r14,%r12,4)
	movl	N(%rip), %eax
	addq	$1, %r12
	cmpl	%r12d, %eax
	jle	.L15
.L17:
	xorl	%eax, %eax
	movq	%rbp, %rsi
	movq	%r15, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L53
.L16:
	movl	$1, %eax
.L12:
	addq	$8, %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
.L15:
	.cfi_restore_state
	movslq	%eax, %rsi
	leaq	no(%rip), %rcx
	movl	$4, %edx
	movq	%rbx, %rdi
	call	qsort@PLT
	movl	N(%rip), %r11d
	movl	$1, kitaeri(%rip)
	cmpl	$1, %r11d
	jle	.L18
	leaq	4+asumisu(%rip), %rax
	leal	-2(%r11), %edx
	movl	asumisu(%rip), %ecx
	xorl	%r8d, %r8d
	leaq	4(%rax), %rsi
	leaq	(%rsi,%rdx,4), %rdi
	jmp	.L23
	.p2align 4,,10
	.p2align 3
.L55:
	addq	$4, %rax
	movl	%edx, (%rbx,%r13,4)
	leal	1(%r13), %esi
	cmpq	%rdi, %rax
	je	.L54
	movl	$1, %r8d
.L20:
	movl	%edx, %ecx
	movslq	%esi, %r13
.L23:
	movl	(%rax), %edx
	cmpl	%ecx, %edx
	jne	.L55
	addq	$4, %rax
	cmpq	%rdi, %rax
	je	.L22
	movl	%r13d, %esi
	jmp	.L20
.L54:
	movl	%esi, %r13d
.L21:
	movl	%r13d, kitaeri(%rip)
.L24:
	movl	kitaeri(%rip), %ebp
	xorl	%r8d, %r8d
	leaq	a(%rip), %r12
	leaq	mizuhasu(%rip), %r9
	leal	-1(%rbp), %r10d
	.p2align 4,,10
	.p2align 3
.L33:
	movl	(%r12,%r8,4), %edi
	testl	%r10d, %r10d
	js	.L42
	movl	%r10d, %ecx
	xorl	%edx, %edx
	.p2align 4,,10
	.p2align 3
.L32:
	movl	%ecx, %eax
	subl	%edx, %eax
	sarl	%eax
	addl	%edx, %eax
	movslq	%eax, %rsi
	cmpl	(%rbx,%rsi,4), %edi
	je	.L29
	jle	.L30
	leal	1(%rax), %edx
	cmpl	%ecx, %edx
	jle	.L32
.L42:
	movl	$114513, %esi
.L29:
	addq	$1, %r8
	addl	$1, (%r9,%rsi,4)
	cmpl	%r8d, %r11d
	jg	.L33
	movl	%ebp, %r9d
	xorl	%r8d, %r8d
	testl	%ebp, %ebp
	jle	.L28
.L27:
	movl	mizuhasu(%rip), %edx
	leaq	asumisu(%rip), %rax
	xorl	%r8d, %r8d
	xorl	%ecx, %ecx
	leaq	4+mizuhasu(%rip), %rdi
	jmp	.L39
	.p2align 4,,10
	.p2align 3
.L57:
	movl	(%rax), %ebx
	leal	1(%rbx), %esi
	cmpl	%esi, 4(%rax)
	jne	.L37
	addl	(%rdi), %edx
.L37:
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
.L38:
	movl	4(%rax), %ebx
	movl	(%rdi), %edx
	leal	-1(%rbx), %esi
	cmpl	%esi, (%rax)
	je	.L56
.L35:
	addq	$4, %rax
	addq	$4, %rdi
.L39:
	addl	$1, %ecx
	cmpl	%r9d, %ecx
	jl	.L57
	cmpl	%edx, %r8d
	cmovl	%edx, %r8d
	cmpl	%r9d, %ecx
	jne	.L38
.L28:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L30:
	leal	-1(%rax), %ecx
	cmpl	%edx, %ecx
	jge	.L32
	jmp	.L42
.L56:
	addl	-4(%rdi), %edx
	jmp	.L35
.L22:
	testb	%r8b, %r8b
	je	.L24
	jmp	.L21
.L18:
	movl	$1, %r9d
	jne	.L27
	jmp	.L24
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	mizuhasu
	.bss
	.align 32
	.type	mizuhasu, @object
	.size	mizuhasu, 458056
mizuhasu:
	.zero	458056
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.globl	kitaeri
	.align 4
	.type	kitaeri, @object
	.size	kitaeri, 4
kitaeri:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 458056
a:
	.zero	458056
	.globl	N
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.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 no(const void* to, const void* ma) {
	int mi = *(const int*)to, ko = *(const int*)ma;
	return mi < ko ? -1 : mi > ko;
}

int N;
int a[114514];

int kitaeri;
int asumisu[114514], mizuhasu[114514];

int emirin(int yukachi) {
	int aoi = 0, ayana = kitaeri - 1;
	while (aoi <= ayana) {
		int sumipe = aoi + (ayana - aoi) / 2;
		if (asumisu[sumipe] == yukachi) return sumipe;
		else if (asumisu[sumipe] < yukachi) aoi = sumipe + 1;
		else ayana = sumipe - 1;
	}
	return 114513;
}

int main(void) {
	int harukasu;
	int hocchann;
	if (scanf("%d", &N) != 1) return 1;
	for (harukasu = 0; harukasu < N; harukasu++) {
		if (scanf("%d", &a[harukasu]) != 1) return 1;
		asumisu[harukasu] = a[harukasu];
	}
	qsort(asumisu, N, sizeof(*asumisu), no);
	kitaeri = 1;
	for (harukasu = 1; harukasu < N; harukasu++) {
		if (asumisu[kitaeri - 1] != asumisu[harukasu]) {
			asumisu[kitaeri++] = asumisu[harukasu];
		}
	}
	for (harukasu = 0; harukasu < N; harukasu++) {
		mizuhasu[emirin(a[harukasu])]++;
	}
	hocchann = 0;
	for (harukasu = 0; harukasu < kitaeri; harukasu++) {
		int hayaminn = mizuhasu[harukasu];
		if (harukasu > 0 && asumisu[harukasu - 1] == asumisu[harukasu] - 1) {
			hayaminn += mizuhasu[harukasu - 1];
		}
		if (harukasu + 1 < kitaeri && asumisu[harukasu + 1] == asumisu[harukasu] + 1) {
			hayaminn += mizuhasu[harukasu + 1];
		}
		if (hayaminn > hocchann) hocchann = hayaminn;
	}
	printf("%d\n", hocchann);
	return 0;
}

7
3 1 4 1 5 9 2

4

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 no(const void* to, const void* ma) {
	int mi = *(const int*)to, ko = *(const int*)ma;
	return mi < ko ? -1 : mi > ko;
}

int N;
int a[114514];

int kitaeri;
int asumisu[114514], mizuhasu[114514];

int emirin(int yukachi) {
	int aoi = 0, ayana = kitaeri - 1;
	while (aoi <= ayana) {
		int sumipe = aoi + (ayana - aoi) / 2;
		if (asumisu[sumipe] == yukachi) return sumipe;
		else if (asumisu[sumipe] < yukachi) aoi = sumipe + 1;
		else ayana = sumipe - 1;
	}
	return 114513;
}

int main(void) {
	int harukasu;
	int hocchann;
	if (scanf("%d", &N) != 1) return 1;
	for (harukasu = 0; harukasu < N; harukasu++) {
		if (scanf("%d", &a[harukasu]) != 1) return 1;
		asumisu[harukasu] = a[harukasu];
	}
	qsort(asumisu, N, sizeof(*asumisu), no);
	kitaeri = 1;
	for (harukasu = 1; harukasu < N; harukasu++) {
		if (asumisu[kitaeri - 1] != asumisu[harukasu]) {
			asumisu[kitaeri++] = asumisu[harukasu];
		}
	}
	for (harukasu = 0; harukasu < N; harukasu++) {
		mizuhasu[emirin(a[harukasu])]++;
	}
	hocchann = 0;
	for (harukasu = 0; harukasu < kitaeri; harukasu++) {
		int hayaminn = mizuhasu[harukasu];
		if (harukasu > 0 && asumisu[harukasu - 1] == asumisu[harukasu] - 1) {
			hayaminn += mizuhasu[harukasu - 1];
		}
		if (harukasu + 1 < kitaeri && asumisu[harukasu + 1] == asumisu[harukasu] + 1) {
			hayaminn += mizuhasu[harukasu + 1];
		}
		if (hayaminn > hocchann) hocchann = hayaminn;
	}
	printf("%d\n", hocchann);
	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	no
	.type	no, @function
no:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L2
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	no, .-no
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 458056
a:
	.zero	458056
	.globl	kitaeri
	.align 4
	.type	kitaeri, @object
	.size	kitaeri, 4
kitaeri:
	.zero	4
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.globl	mizuhasu
	.align 32
	.type	mizuhasu, @object
	.size	mizuhasu, 458056
mizuhasu:
	.zero	458056
	.text
	.globl	emirin
	.type	emirin, @function
emirin:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	kitaeri(%rip), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L6
.L10:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L7
	movl	-4(%rbp), %eax
	jmp	.L8
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L9
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L6
.L9:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
.L6:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L10
	movl	$114513, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	emirin, .-emirin
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, -12(%rbp)
	jmp	.L14
.L16:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L15
	movl	$1, %eax
	jmp	.L13
.L15:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L16
	movl	N(%rip), %eax
	cltq
	leaq	no(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	asumisu(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$1, kitaeri(%rip)
	movl	$1, -12(%rbp)
	jmp	.L17
.L19:
	movl	kitaeri(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	asumisu(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L18
	movl	kitaeri(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, kitaeri(%rip)
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	asumisu(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L18:
	addl	$1, -12(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L19
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	emirin
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	mizuhasu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L20:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L21
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L22
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -12(%rbp)
	jle	.L23
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	$1, %edx
	cmpl	%edx, %eax
	jne	.L23
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -4(%rbp)
.L23:
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movl	kitaeri(%rip), %eax
	cmpl	%eax, %edx
	jge	.L24
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jne	.L24
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -4(%rbp)
.L24:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L25
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L25:
	addl	$1, -12(%rbp)
.L22:
	movl	kitaeri(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L26
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
```

Only output the optimized assembly code. Do not include any other text. Do not write any comments in the assembly code. Wrap the assembly code in ```assembly``` tags.
train
	.file	"temp.c"
	.text
	.globl	no
	.type	no, @function
no:
.LFB6:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movq	%rdi, -24(%rbp)
	movq	%rsi, -32(%rbp)
	movq	-24(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%rbp)
	movq	-32(%rbp), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%rbp)
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	jl	.L2
	movl	-8(%rbp), %eax
	cmpl	-4(%rbp), %eax
	setg	%al
	movzbl	%al, %eax
	jmp	.L4
.L2:
	movl	$-1, %eax
.L4:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	no, .-no
	.globl	N
	.bss
	.align 4
	.type	N, @object
	.size	N, 4
N:
	.zero	4
	.globl	a
	.align 32
	.type	a, @object
	.size	a, 458056
a:
	.zero	458056
	.globl	kitaeri
	.align 4
	.type	kitaeri, @object
	.size	kitaeri, 4
kitaeri:
	.zero	4
	.globl	asumisu
	.align 32
	.type	asumisu, @object
	.size	asumisu, 458056
asumisu:
	.zero	458056
	.globl	mizuhasu
	.align 32
	.type	mizuhasu, @object
	.size	mizuhasu, 458056
mizuhasu:
	.zero	458056
	.text
	.globl	emirin
	.type	emirin, @function
emirin:
.LFB7:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	movl	%edi, -20(%rbp)
	movl	$0, -12(%rbp)
	movl	kitaeri(%rip), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
	jmp	.L6
.L10:
	movl	-8(%rbp), %eax
	subl	-12(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %edx
	movl	-12(%rbp), %eax
	addl	%edx, %eax
	movl	%eax, -4(%rbp)
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jne	.L7
	movl	-4(%rbp), %eax
	jmp	.L8
.L7:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	cmpl	%eax, -20(%rbp)
	jle	.L9
	movl	-4(%rbp), %eax
	addl	$1, %eax
	movl	%eax, -12(%rbp)
	jmp	.L6
.L9:
	movl	-4(%rbp), %eax
	subl	$1, %eax
	movl	%eax, -8(%rbp)
.L6:
	movl	-12(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L10
	movl	$114513, %eax
.L8:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	emirin, .-emirin
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register 6
	subq	$16, %rsp
	leaq	N(%rip), %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L12
	movl	$1, %eax
	jmp	.L13
.L12:
	movl	$0, -12(%rbp)
	jmp	.L14
.L16:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	addq	%rdx, %rax
	movq	%rax, %rsi
	leaq	.LC0(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L15
	movl	$1, %eax
	jmp	.L13
.L15:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$1, -12(%rbp)
.L14:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L16
	movl	N(%rip), %eax
	cltq
	leaq	no(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	asumisu(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	$1, kitaeri(%rip)
	movl	$1, -12(%rbp)
	jmp	.L17
.L19:
	movl	kitaeri(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	asumisu(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	je	.L18
	movl	kitaeri(%rip), %eax
	leal	1(%rax), %edx
	movl	%edx, kitaeri(%rip)
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	asumisu(%rip), %rax
	movl	%edx, (%rcx,%rax)
.L18:
	addl	$1, -12(%rbp)
.L17:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L19
	movl	$0, -12(%rbp)
	jmp	.L20
.L21:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	a(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, %edi
	call	emirin
	movslq	%eax, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	mizuhasu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	addl	$1, -12(%rbp)
.L20:
	movl	N(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L21
	movl	$0, -8(%rbp)
	movl	$0, -12(%rbp)
	jmp	.L22
.L26:
	movl	-12(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	%eax, -4(%rbp)
	cmpl	$0, -12(%rbp)
	jle	.L23
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	subl	$1, %edx
	cmpl	%edx, %eax
	jne	.L23
	movl	-12(%rbp), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -4(%rbp)
.L23:
	movl	-12(%rbp), %eax
	leal	1(%rax), %edx
	movl	kitaeri(%rip), %eax
	cmpl	%eax, %edx
	jge	.L24
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	asumisu(%rip), %rax
	movl	(%rdx,%rax), %eax
	movl	-12(%rbp), %edx
	movslq	%edx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	asumisu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	addl	$1, %edx
	cmpl	%edx, %eax
	jne	.L24
	movl	-12(%rbp), %eax
	addl	$1, %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	mizuhasu(%rip), %rax
	movl	(%rdx,%rax), %eax
	addl	%eax, -4(%rbp)
.L24:
	movl	-4(%rbp), %eax
	cmpl	-8(%rbp), %eax
	jle	.L25
	movl	-4(%rbp), %eax
	movl	%eax, -8(%rbp)
.L25:
	addl	$1, -12(%rbp)
.L22:
	movl	kitaeri(%rip), %eax
	cmpl	%eax, -12(%rbp)
	jl	.L26
	movl	-8(%rbp), %eax
	movl	%eax, %esi
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	movl	$0, %eax
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	1f - 0f
	.long	4f - 1f
	.long	5
0:
	.string	"GNU"
1:
	.align 8
	.long	0xc0000002
	.long	3f - 2f
2:
	.long	0x3
3:
	.align 8
4:
