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>

struct asumikana {
	int kazu;
	int kosuu;
};

int asumisu(const void* x, const void* y) {
	int a = *(const int*)x, b = *(const int*)y;
	return a < b ? -1 : a > b;
}

int mizuhasu(const void* x, const void* y) {
	struct asumikana a = *(const struct asumikana*)x, b = *(const struct asumikana*)y;
	if (a.kosuu != b.kosuu) return a.kosuu > b.kosuu ? -1 : 1;
	return a.kazu < b.kazu ? -1 : a.kazu > b.kazu;
}

int n;
int v[114514];

int guNums[114514], kiNums[114514];

int guCount, kiCount;
struct asumikana gu[114514], ki[114514];

int main(void) {
	int i;

	if (scanf("%d", &n) != 1) return 1;
	if (n % 2 != 0) {
		puts("n wa guusuu zya nai to dame!!!!!");
		return 2;
	}
	for (i = 0; i < n; i++) {
		if (scanf("%d", &v[i]) != 1) return 1;
	}

	for (i = 1; i < n; i += 2) {
		guNums[i / 2] = v[i - 1];
		kiNums[i / 2] = v[i];
	}
	qsort(guNums, n / 2, sizeof(*guNums), asumisu);
	qsort(kiNums, n / 2, sizeof(*kiNums), asumisu);

	gu[0].kazu = guNums[0];
	gu[0].kosuu = 1;
	guCount = 1;
	for (i = 1; i < n / 2; i++) {
		if (guNums[i] == gu[guCount - 1].kazu) {
			gu[guCount - 1].kosuu++;
		} else {
			gu[guCount].kazu = guNums[i];
			gu[guCount].kosuu = 1;
			guCount++;
		}
	}
	ki[0].kazu = kiNums[0];
	ki[0].kosuu = 1;
	kiCount = 1;
	for (i = 1; i < n / 2; i++) {
		if (kiNums[i] == ki[kiCount - 1].kazu) {
			ki[kiCount - 1].kosuu++;
		} else {
			ki[kiCount].kazu = kiNums[i];
			ki[kiCount].kosuu = 1;
			kiCount++;
		}
	}
	qsort(gu, guCount, sizeof(*gu), mizuhasu);
	qsort(ki, kiCount, sizeof(*ki), mizuhasu);

	if (gu[0].kazu != ki[0].kazu) {
		printf("%d\n", n - gu[0].kosuu - ki[0].kosuu);
	} else if (guCount == 1 && kiCount == 1) {
		printf("%d\n", n / 2);
	} else if (guCount == 1) {
		printf("%d\n", n / 2 - ki[0].kosuu);
	} else if (kiCount == 1) {
		printf("%d\n", n / 2 - gu[0].kosuu);
	} else if (gu[1].kosuu + ki[0].kosuu >= gu[0].kosuu + ki[1].kosuu) {
		printf("%d\n", n - gu[1].kosuu - ki[0].kosuu);
	} else {
		printf("%d\n", n - gu[0].kosuu - ki[1].kosuu);
	}

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asumisu
	.type	asumisu, @function
asumisu:
.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	asumisu, .-asumisu
	.globl	mizuhasu
	.type	mizuhasu, @function
mizuhasu:
.LFB7:
	.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
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	je	.L6
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	$-1, %eax
	jmp	.L12
.L7:
	movl	$1, %eax
	jmp	.L12
.L6:
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %eax
	jmp	.L12
.L10:
	movl	$-1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mizuhasu, .-mizuhasu
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 458056
v:
	.zero	458056
	.globl	guNums
	.align 32
	.type	guNums, @object
	.size	guNums, 458056
guNums:
	.zero	458056
	.globl	kiNums
	.align 32
	.type	kiNums, @object
	.size	kiNums, 458056
kiNums:
	.zero	458056
	.globl	guCount
	.align 4
	.type	guCount, @object
	.size	guCount, 4
guCount:
	.zero	4
	.globl	kiCount
	.align 4
	.type	kiCount, @object
	.size	kiCount, 4
kiCount:
	.zero	4
	.globl	gu
	.align 32
	.type	gu, @object
	.size	gu, 916112
gu:
	.zero	916112
	.globl	ki
	.align 32
	.type	ki, @object
	.size	ki, 916112
ki:
	.zero	916112
	.section	.rodata
.LC0:
	.string	"%d"
	.align 8
.LC1:
	.string	"n wa guusuu zya nai to dame!!!!!"
.LC2:
	.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	.L14
	movl	$1, %eax
	jmp	.L15
.L14:
	movl	n(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$2, %eax
	jmp	.L15
.L16:
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%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	.L18
	movl	$1, %eax
	jmp	.L15
.L18:
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L19
	movl	$1, -4(%rbp)
	jmp	.L20
.L21:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	guNums(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	kiNums(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$2, -4(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L21
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	asumisu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	guNums(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	asumisu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	kiNums(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	guNums(%rip), %eax
	movl	%eax, gu(%rip)
	movl	$1, 4+gu(%rip)
	movl	$1, guCount(%rip)
	movl	$1, -4(%rbp)
	jmp	.L22
.L25:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	guNums(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	guCount(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	gu(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L23
	movl	guCount(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+gu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+gu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L24
.L23:
	movl	guCount(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	guNums(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	gu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	guCount(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+gu(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	guCount(%rip), %eax
	addl	$1, %eax
	movl	%eax, guCount(%rip)
.L24:
	addl	$1, -4(%rbp)
.L22:
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -4(%rbp)
	jl	.L25
	movl	kiNums(%rip), %eax
	movl	%eax, ki(%rip)
	movl	$1, 4+ki(%rip)
	movl	$1, kiCount(%rip)
	movl	$1, -4(%rbp)
	jmp	.L26
.L29:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	kiNums(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	kiCount(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	ki(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L27
	movl	kiCount(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+ki(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+ki(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L28
.L27:
	movl	kiCount(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	kiNums(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	ki(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	kiCount(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+ki(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	kiCount(%rip), %eax
	addl	$1, %eax
	movl	%eax, kiCount(%rip)
.L28:
	addl	$1, -4(%rbp)
.L26:
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -4(%rbp)
	jl	.L29
	movl	guCount(%rip), %eax
	cltq
	leaq	mizuhasu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rsi
	leaq	gu(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	kiCount(%rip), %eax
	cltq
	leaq	mizuhasu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rsi
	leaq	ki(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	gu(%rip), %edx
	movl	ki(%rip), %eax
	cmpl	%eax, %edx
	je	.L30
	movl	n(%rip), %eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L30:
	movl	guCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L32
	movl	kiCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L32
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L32:
	movl	guCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L33
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L33:
	movl	kiCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L34
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L34:
	movl	12+gu(%rip), %edx
	movl	4+ki(%rip), %eax
	addl	%eax, %edx
	movl	4+gu(%rip), %ecx
	movl	12+ki(%rip), %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L35
	movl	n(%rip), %eax
	movl	12+gu(%rip), %edx
	subl	%edx, %eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L35:
	movl	n(%rip), %eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	12+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$0, %eax
.L15:
	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	asumisu
	.type	asumisu, @function
asumisu:
.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	asumisu, .-asumisu
	.p2align 4
	.globl	mizuhasu
	.type	mizuhasu, @function
mizuhasu:
.LFB40:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %eax
	cmpl	%eax, 4(%rdi)
	je	.L6
	setle	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rdi), %eax
	cmpl	%eax, (%rsi)
	movl	$-1, %edx
	setl	%al
	movzbl	%al, %eax
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE40:
	.size	mizuhasu, .-mizuhasu
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"n wa guusuu zya nai to dame!!!!!"
	.section	.rodata.str1.1
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L16
	movl	%eax, %r12d
	movl	n(%rip), %eax
	testb	$1, %al
	jne	.L13
	leaq	v(%rip), %rbx
	xorl	%ebp, %ebp
	testl	%eax, %eax
	jg	.L17
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L54:
	movl	n(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L15
.L17:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L54
.L16:
	movl	$1, %eax
.L10:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	leaq	v(%rip), %r8
	movl	$1, %edx
	leaq	guNums(%rip), %r13
	leaq	kiNums(%rip), %rbx
	leaq	-4(%r8), %rdi
	cmpl	$1, %eax
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edx, %ecx
	movl	(%rdi,%rdx,4), %esi
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	%esi, 0(%r13,%rcx,4)
	movl	(%r8,%rdx,4), %esi
	addq	$2, %rdx
	movl	%esi, (%rbx,%rcx,4)
	cmpl	%edx, %eax
	jg	.L18
.L21:
	movl	$2, %ebp
	cltd
	leaq	asumisu(%rip), %r14
	movq	%r13, %rdi
	idivl	%ebp
	movq	%r14, %rcx
	movl	$4, %edx
	movslq	%eax, %rsi
	call	qsort@PLT
	movl	n(%rip), %eax
	movq	%r14, %rcx
	movq	%rbx, %rdi
	cltd
	idivl	%ebp
	movl	$4, %edx
	movslq	%eax, %rsi
	call	qsort@PLT
	movl	guNums(%rip), %eax
	movl	n(%rip), %ecx
	movl	$1, 4+gu(%rip)
	movl	$1, guCount(%rip)
	movl	%eax, gu(%rip)
	movl	%ecx, %eax
	cltd
	idivl	%ebp
	cmpl	$3, %ecx
	jle	.L55
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	leaq	gu(%rip), %rdi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%esi, %rdx
	movl	$1, %r9d
	addl	$1, %esi
	movl	%r8d, (%rdi,%rdx,8)
	movl	$1, 4(%rdi,%rdx,8)
.L23:
	addq	$1, %rcx
	cmpl	%ecx, %eax
	jle	.L56
.L19:
	leal	-1(%rsi), %edx
	movl	0(%r13,%rcx,4), %r8d
	movslq	%edx, %rdx
	cmpl	(%rdi,%rdx,8), %r8d
	jne	.L22
	addl	$1, 4(%rdi,%rdx,8)
	jmp	.L23
.L56:
	testb	%r9b, %r9b
	je	.L34
	movl	%esi, guCount(%rip)
.L34:
	movl	kiNums(%rip), %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, 4+ki(%rip)
	movl	$1, kiCount(%rip)
	leaq	ki(%rip), %rbp
	movl	%edx, ki(%rip)
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%r12d, %rdx
	movl	$1, %r8d
	addl	$1, %r12d
	movl	%esi, 0(%rbp,%rdx,8)
	movl	$1, 4(%rbp,%rdx,8)
.L26:
	addq	$1, %rcx
	cmpl	%ecx, %eax
	jle	.L57
.L27:
	leal	-1(%r12), %edx
	movl	(%rbx,%rcx,4), %esi
	movslq	%edx, %rdx
	cmpl	0(%rbp,%rdx,8), %esi
	jne	.L25
	addl	$1, 4(%rbp,%rdx,8)
	jmp	.L26
.L57:
	testb	%r8b, %r8b
	je	.L28
	movl	%r12d, kiCount(%rip)
.L28:
	movslq	guCount(%rip), %rsi
	leaq	mizuhasu(%rip), %r12
	movl	$8, %edx
	movq	%r12, %rcx
	call	qsort@PLT
	movq	%r12, %rcx
	movl	$8, %edx
	movq	%rbp, %rdi
	movslq	kiCount(%rip), %rsi
	call	qsort@PLT
	movl	ki(%rip), %eax
	cmpl	%eax, gu(%rip)
	jne	.L58
	cmpl	$1, guCount(%rip)
	movl	kiCount(%rip), %ecx
	movl	n(%rip), %eax
	je	.L59
	subl	$1, %ecx
	movl	4+gu(%rip), %esi
	je	.L60
	movl	12+gu(%rip), %edx
	movl	4+ki(%rip), %edi
	movl	12+ki(%rip), %ecx
	leal	(%rdx,%rdi), %r9d
	leal	(%rcx,%rsi), %r8d
	cmpl	%r8d, %r9d
	jl	.L33
	subl	%edx, %eax
	subl	%edi, %eax
.L52:
	movl	%eax, %edx
	jmp	.L53
.L58:
	movl	n(%rip), %edx
	subl	4+gu(%rip), %edx
	subl	4+ki(%rip), %edx
.L53:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L10
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movl	$2, %eax
	jmp	.L10
.L33:
	subl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	jmp	.L53
.L59:
	cltd
	movl	$2, %esi
	idivl	%esi
	subl	$1, %ecx
	je	.L52
	subl	4+ki(%rip), %eax
	movl	%eax, %edx
	jmp	.L53
.L55:
	movl	kiNums(%rip), %eax
	leaq	gu(%rip), %rdi
	movl	$1, 4+ki(%rip)
	leaq	ki(%rip), %rbp
	movl	$1, kiCount(%rip)
	movl	%eax, ki(%rip)
	jmp	.L28
.L60:
	movl	$2, %ecx
	cltd
	idivl	%ecx
	subl	%esi, %eax
	movl	%eax, %edx
	jmp	.L53
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	ki
	.bss
	.align 32
	.type	ki, @object
	.size	ki, 916112
ki:
	.zero	916112
	.globl	gu
	.align 32
	.type	gu, @object
	.size	gu, 916112
gu:
	.zero	916112
	.globl	kiCount
	.align 4
	.type	kiCount, @object
	.size	kiCount, 4
kiCount:
	.zero	4
	.globl	guCount
	.align 4
	.type	guCount, @object
	.size	guCount, 4
guCount:
	.zero	4
	.globl	kiNums
	.align 32
	.type	kiNums, @object
	.size	kiNums, 458056
kiNums:
	.zero	458056
	.globl	guNums
	.align 32
	.type	guNums, @object
	.size	guNums, 458056
guNums:
	.zero	458056
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 458056
v:
	.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	asumisu
	.type	asumisu, @function
asumisu:
.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	asumisu, .-asumisu
	.p2align 4
	.globl	mizuhasu
	.type	mizuhasu, @function
mizuhasu:
.LFB40:
	.cfi_startproc
	endbr64
	movl	4(%rsi), %eax
	cmpl	%eax, 4(%rdi)
	je	.L6
	setle	%al
	movzbl	%al, %eax
	leal	-1(%rax,%rax), %eax
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	movl	(%rdi), %eax
	cmpl	%eax, (%rsi)
	movl	$-1, %edx
	setl	%al
	movzbl	%al, %eax
	cmovg	%edx, %eax
	ret
	.cfi_endproc
.LFE40:
	.size	mizuhasu, .-mizuhasu
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"n wa guusuu zya nai to dame!!!!!"
	.section	.rodata.str1.1
.LC2:
	.string	"%d\n"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB41:
	.cfi_startproc
	endbr64
	pushq	%r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	xorl	%eax, %eax
	leaq	n(%rip), %rsi
	pushq	%r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	leaq	.LC0(%rip), %r13
	pushq	%r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	pushq	%rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L16
	movl	%eax, %r12d
	movl	n(%rip), %eax
	testb	$1, %al
	jne	.L13
	leaq	v(%rip), %rbx
	xorl	%ebp, %ebp
	testl	%eax, %eax
	jg	.L17
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L54:
	movl	n(%rip), %eax
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %eax
	jle	.L15
.L17:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L54
.L16:
	movl	$1, %eax
.L10:
	popq	%rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbp
	.cfi_def_cfa_offset 32
	popq	%r12
	.cfi_def_cfa_offset 24
	popq	%r13
	.cfi_def_cfa_offset 16
	popq	%r14
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	leaq	v(%rip), %r8
	movl	$1, %edx
	leaq	guNums(%rip), %r13
	leaq	kiNums(%rip), %rbx
	leaq	-4(%r8), %rdi
	cmpl	$1, %eax
	jle	.L21
	.p2align 4,,10
	.p2align 3
.L18:
	movl	%edx, %ecx
	movl	(%rdi,%rdx,4), %esi
	sarl	%ecx
	movslq	%ecx, %rcx
	movl	%esi, 0(%r13,%rcx,4)
	movl	(%r8,%rdx,4), %esi
	addq	$2, %rdx
	movl	%esi, (%rbx,%rcx,4)
	cmpl	%edx, %eax
	jg	.L18
.L21:
	movl	$2, %ebp
	cltd
	leaq	asumisu(%rip), %r14
	movq	%r13, %rdi
	idivl	%ebp
	movq	%r14, %rcx
	movl	$4, %edx
	movslq	%eax, %rsi
	call	qsort@PLT
	movl	n(%rip), %eax
	movq	%r14, %rcx
	movq	%rbx, %rdi
	cltd
	idivl	%ebp
	movl	$4, %edx
	movslq	%eax, %rsi
	call	qsort@PLT
	movl	guNums(%rip), %eax
	movl	n(%rip), %ecx
	movl	$1, 4+gu(%rip)
	movl	$1, guCount(%rip)
	movl	%eax, gu(%rip)
	movl	%ecx, %eax
	cltd
	idivl	%ebp
	cmpl	$3, %ecx
	jle	.L55
	movl	$1, %esi
	movl	$1, %ecx
	xorl	%r9d, %r9d
	leaq	gu(%rip), %rdi
	jmp	.L19
	.p2align 4,,10
	.p2align 3
.L22:
	movslq	%esi, %rdx
	movl	$1, %r9d
	addl	$1, %esi
	movl	%r8d, (%rdi,%rdx,8)
	movl	$1, 4(%rdi,%rdx,8)
.L23:
	addq	$1, %rcx
	cmpl	%ecx, %eax
	jle	.L56
.L19:
	leal	-1(%rsi), %edx
	movl	0(%r13,%rcx,4), %r8d
	movslq	%edx, %rdx
	cmpl	(%rdi,%rdx,8), %r8d
	jne	.L22
	addl	$1, 4(%rdi,%rdx,8)
	jmp	.L23
.L56:
	testb	%r9b, %r9b
	je	.L34
	movl	%esi, guCount(%rip)
.L34:
	movl	kiNums(%rip), %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	movl	$1, 4+ki(%rip)
	movl	$1, kiCount(%rip)
	leaq	ki(%rip), %rbp
	movl	%edx, ki(%rip)
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L25:
	movslq	%r12d, %rdx
	movl	$1, %r8d
	addl	$1, %r12d
	movl	%esi, 0(%rbp,%rdx,8)
	movl	$1, 4(%rbp,%rdx,8)
.L26:
	addq	$1, %rcx
	cmpl	%ecx, %eax
	jle	.L57
.L27:
	leal	-1(%r12), %edx
	movl	(%rbx,%rcx,4), %esi
	movslq	%edx, %rdx
	cmpl	0(%rbp,%rdx,8), %esi
	jne	.L25
	addl	$1, 4(%rbp,%rdx,8)
	jmp	.L26
.L57:
	testb	%r8b, %r8b
	je	.L28
	movl	%r12d, kiCount(%rip)
.L28:
	movslq	guCount(%rip), %rsi
	leaq	mizuhasu(%rip), %r12
	movl	$8, %edx
	movq	%r12, %rcx
	call	qsort@PLT
	movq	%r12, %rcx
	movl	$8, %edx
	movq	%rbp, %rdi
	movslq	kiCount(%rip), %rsi
	call	qsort@PLT
	movl	ki(%rip), %eax
	cmpl	%eax, gu(%rip)
	jne	.L58
	cmpl	$1, guCount(%rip)
	movl	kiCount(%rip), %ecx
	movl	n(%rip), %eax
	je	.L59
	subl	$1, %ecx
	movl	4+gu(%rip), %esi
	je	.L60
	movl	12+gu(%rip), %edx
	movl	4+ki(%rip), %edi
	movl	12+ki(%rip), %ecx
	leal	(%rdx,%rdi), %r9d
	leal	(%rcx,%rsi), %r8d
	cmpl	%r8d, %r9d
	jl	.L33
	subl	%edx, %eax
	subl	%edi, %eax
.L52:
	movl	%eax, %edx
	jmp	.L53
.L58:
	movl	n(%rip), %edx
	subl	4+gu(%rip), %edx
	subl	4+ki(%rip), %edx
.L53:
	leaq	.LC2(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L10
.L13:
	leaq	.LC1(%rip), %rdi
	call	puts@PLT
	movl	$2, %eax
	jmp	.L10
.L33:
	subl	%esi, %eax
	subl	%ecx, %eax
	movl	%eax, %edx
	jmp	.L53
.L59:
	cltd
	movl	$2, %esi
	idivl	%esi
	subl	$1, %ecx
	je	.L52
	subl	4+ki(%rip), %eax
	movl	%eax, %edx
	jmp	.L53
.L55:
	movl	kiNums(%rip), %eax
	leaq	gu(%rip), %rdi
	movl	$1, 4+ki(%rip)
	leaq	ki(%rip), %rbp
	movl	$1, kiCount(%rip)
	movl	%eax, ki(%rip)
	jmp	.L28
.L60:
	movl	$2, %ecx
	cltd
	idivl	%ecx
	subl	%esi, %eax
	movl	%eax, %edx
	jmp	.L53
	.cfi_endproc
.LFE41:
	.size	main, .-main
	.globl	ki
	.bss
	.align 32
	.type	ki, @object
	.size	ki, 916112
ki:
	.zero	916112
	.globl	gu
	.align 32
	.type	gu, @object
	.size	gu, 916112
gu:
	.zero	916112
	.globl	kiCount
	.align 4
	.type	kiCount, @object
	.size	kiCount, 4
kiCount:
	.zero	4
	.globl	guCount
	.align 4
	.type	guCount, @object
	.size	guCount, 4
guCount:
	.zero	4
	.globl	kiNums
	.align 32
	.type	kiNums, @object
	.size	kiNums, 458056
kiNums:
	.zero	458056
	.globl	guNums
	.align 32
	.type	guNums, @object
	.size	guNums, 458056
guNums:
	.zero	458056
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 458056
v:
	.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>

struct asumikana {
	int kazu;
	int kosuu;
};

int asumisu(const void* x, const void* y) {
	int a = *(const int*)x, b = *(const int*)y;
	return a < b ? -1 : a > b;
}

int mizuhasu(const void* x, const void* y) {
	struct asumikana a = *(const struct asumikana*)x, b = *(const struct asumikana*)y;
	if (a.kosuu != b.kosuu) return a.kosuu > b.kosuu ? -1 : 1;
	return a.kazu < b.kazu ? -1 : a.kazu > b.kazu;
}

int n;
int v[114514];

int guNums[114514], kiNums[114514];

int guCount, kiCount;
struct asumikana gu[114514], ki[114514];

int main(void) {
	int i;

	if (scanf("%d", &n) != 1) return 1;
	if (n % 2 != 0) {
		puts("n wa guusuu zya nai to dame!!!!!");
		return 2;
	}
	for (i = 0; i < n; i++) {
		if (scanf("%d", &v[i]) != 1) return 1;
	}

	for (i = 1; i < n; i += 2) {
		guNums[i / 2] = v[i - 1];
		kiNums[i / 2] = v[i];
	}
	qsort(guNums, n / 2, sizeof(*guNums), asumisu);
	qsort(kiNums, n / 2, sizeof(*kiNums), asumisu);

	gu[0].kazu = guNums[0];
	gu[0].kosuu = 1;
	guCount = 1;
	for (i = 1; i < n / 2; i++) {
		if (guNums[i] == gu[guCount - 1].kazu) {
			gu[guCount - 1].kosuu++;
		} else {
			gu[guCount].kazu = guNums[i];
			gu[guCount].kosuu = 1;
			guCount++;
		}
	}
	ki[0].kazu = kiNums[0];
	ki[0].kosuu = 1;
	kiCount = 1;
	for (i = 1; i < n / 2; i++) {
		if (kiNums[i] == ki[kiCount - 1].kazu) {
			ki[kiCount - 1].kosuu++;
		} else {
			ki[kiCount].kazu = kiNums[i];
			ki[kiCount].kosuu = 1;
			kiCount++;
		}
	}
	qsort(gu, guCount, sizeof(*gu), mizuhasu);
	qsort(ki, kiCount, sizeof(*ki), mizuhasu);

	if (gu[0].kazu != ki[0].kazu) {
		printf("%d\n", n - gu[0].kosuu - ki[0].kosuu);
	} else if (guCount == 1 && kiCount == 1) {
		printf("%d\n", n / 2);
	} else if (guCount == 1) {
		printf("%d\n", n / 2 - ki[0].kosuu);
	} else if (kiCount == 1) {
		printf("%d\n", n / 2 - gu[0].kosuu);
	} else if (gu[1].kosuu + ki[0].kosuu >= gu[0].kosuu + ki[1].kosuu) {
		printf("%d\n", n - gu[1].kosuu - ki[0].kosuu);
	} else {
		printf("%d\n", n - gu[0].kosuu - ki[1].kosuu);
	}

	return 0;
}

4
3 2 3 2
 6
105 119 204 119 105 119
 4
4 1 3 2
 6
105 120 54 119 105 78
 6
105 120 54 119 190 78
 6
105 119 204 119 105 78
 4
4 1 3 0
 6
105 119 54 119 105 78
 4
4 1 3 1
 4
4 1 6 1

0
 1
 2
 3
 4
 2
 2
 2
 1
 1

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>

struct asumikana {
	int kazu;
	int kosuu;
};

int asumisu(const void* x, const void* y) {
	int a = *(const int*)x, b = *(const int*)y;
	return a < b ? -1 : a > b;
}

int mizuhasu(const void* x, const void* y) {
	struct asumikana a = *(const struct asumikana*)x, b = *(const struct asumikana*)y;
	if (a.kosuu != b.kosuu) return a.kosuu > b.kosuu ? -1 : 1;
	return a.kazu < b.kazu ? -1 : a.kazu > b.kazu;
}

int n;
int v[114514];

int guNums[114514], kiNums[114514];

int guCount, kiCount;
struct asumikana gu[114514], ki[114514];

int main(void) {
	int i;

	if (scanf("%d", &n) != 1) return 1;
	if (n % 2 != 0) {
		puts("n wa guusuu zya nai to dame!!!!!");
		return 2;
	}
	for (i = 0; i < n; i++) {
		if (scanf("%d", &v[i]) != 1) return 1;
	}

	for (i = 1; i < n; i += 2) {
		guNums[i / 2] = v[i - 1];
		kiNums[i / 2] = v[i];
	}
	qsort(guNums, n / 2, sizeof(*guNums), asumisu);
	qsort(kiNums, n / 2, sizeof(*kiNums), asumisu);

	gu[0].kazu = guNums[0];
	gu[0].kosuu = 1;
	guCount = 1;
	for (i = 1; i < n / 2; i++) {
		if (guNums[i] == gu[guCount - 1].kazu) {
			gu[guCount - 1].kosuu++;
		} else {
			gu[guCount].kazu = guNums[i];
			gu[guCount].kosuu = 1;
			guCount++;
		}
	}
	ki[0].kazu = kiNums[0];
	ki[0].kosuu = 1;
	kiCount = 1;
	for (i = 1; i < n / 2; i++) {
		if (kiNums[i] == ki[kiCount - 1].kazu) {
			ki[kiCount - 1].kosuu++;
		} else {
			ki[kiCount].kazu = kiNums[i];
			ki[kiCount].kosuu = 1;
			kiCount++;
		}
	}
	qsort(gu, guCount, sizeof(*gu), mizuhasu);
	qsort(ki, kiCount, sizeof(*ki), mizuhasu);

	if (gu[0].kazu != ki[0].kazu) {
		printf("%d\n", n - gu[0].kosuu - ki[0].kosuu);
	} else if (guCount == 1 && kiCount == 1) {
		printf("%d\n", n / 2);
	} else if (guCount == 1) {
		printf("%d\n", n / 2 - ki[0].kosuu);
	} else if (kiCount == 1) {
		printf("%d\n", n / 2 - gu[0].kosuu);
	} else if (gu[1].kosuu + ki[0].kosuu >= gu[0].kosuu + ki[1].kosuu) {
		printf("%d\n", n - gu[1].kosuu - ki[0].kosuu);
	} else {
		printf("%d\n", n - gu[0].kosuu - ki[1].kosuu);
	}

	return 0;
}
```

Unoptimized Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.globl	asumisu
	.type	asumisu, @function
asumisu:
.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	asumisu, .-asumisu
	.globl	mizuhasu
	.type	mizuhasu, @function
mizuhasu:
.LFB7:
	.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
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	je	.L6
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	$-1, %eax
	jmp	.L12
.L7:
	movl	$1, %eax
	jmp	.L12
.L6:
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %eax
	jmp	.L12
.L10:
	movl	$-1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mizuhasu, .-mizuhasu
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 458056
v:
	.zero	458056
	.globl	guNums
	.align 32
	.type	guNums, @object
	.size	guNums, 458056
guNums:
	.zero	458056
	.globl	kiNums
	.align 32
	.type	kiNums, @object
	.size	kiNums, 458056
kiNums:
	.zero	458056
	.globl	guCount
	.align 4
	.type	guCount, @object
	.size	guCount, 4
guCount:
	.zero	4
	.globl	kiCount
	.align 4
	.type	kiCount, @object
	.size	kiCount, 4
kiCount:
	.zero	4
	.globl	gu
	.align 32
	.type	gu, @object
	.size	gu, 916112
gu:
	.zero	916112
	.globl	ki
	.align 32
	.type	ki, @object
	.size	ki, 916112
ki:
	.zero	916112
	.section	.rodata
.LC0:
	.string	"%d"
	.align 8
.LC1:
	.string	"n wa guusuu zya nai to dame!!!!!"
.LC2:
	.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	.L14
	movl	$1, %eax
	jmp	.L15
.L14:
	movl	n(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$2, %eax
	jmp	.L15
.L16:
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%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	.L18
	movl	$1, %eax
	jmp	.L15
.L18:
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L19
	movl	$1, -4(%rbp)
	jmp	.L20
.L21:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	guNums(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	kiNums(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$2, -4(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L21
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	asumisu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	guNums(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	asumisu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	kiNums(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	guNums(%rip), %eax
	movl	%eax, gu(%rip)
	movl	$1, 4+gu(%rip)
	movl	$1, guCount(%rip)
	movl	$1, -4(%rbp)
	jmp	.L22
.L25:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	guNums(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	guCount(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	gu(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L23
	movl	guCount(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+gu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+gu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L24
.L23:
	movl	guCount(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	guNums(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	gu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	guCount(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+gu(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	guCount(%rip), %eax
	addl	$1, %eax
	movl	%eax, guCount(%rip)
.L24:
	addl	$1, -4(%rbp)
.L22:
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -4(%rbp)
	jl	.L25
	movl	kiNums(%rip), %eax
	movl	%eax, ki(%rip)
	movl	$1, 4+ki(%rip)
	movl	$1, kiCount(%rip)
	movl	$1, -4(%rbp)
	jmp	.L26
.L29:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	kiNums(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	kiCount(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	ki(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L27
	movl	kiCount(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+ki(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+ki(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L28
.L27:
	movl	kiCount(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	kiNums(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	ki(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	kiCount(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+ki(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	kiCount(%rip), %eax
	addl	$1, %eax
	movl	%eax, kiCount(%rip)
.L28:
	addl	$1, -4(%rbp)
.L26:
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -4(%rbp)
	jl	.L29
	movl	guCount(%rip), %eax
	cltq
	leaq	mizuhasu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rsi
	leaq	gu(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	kiCount(%rip), %eax
	cltq
	leaq	mizuhasu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rsi
	leaq	ki(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	gu(%rip), %edx
	movl	ki(%rip), %eax
	cmpl	%eax, %edx
	je	.L30
	movl	n(%rip), %eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L30:
	movl	guCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L32
	movl	kiCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L32
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L32:
	movl	guCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L33
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L33:
	movl	kiCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L34
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L34:
	movl	12+gu(%rip), %edx
	movl	4+ki(%rip), %eax
	addl	%eax, %edx
	movl	4+gu(%rip), %ecx
	movl	12+ki(%rip), %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L35
	movl	n(%rip), %eax
	movl	12+gu(%rip), %edx
	subl	%edx, %eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L35:
	movl	n(%rip), %eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	12+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$0, %eax
.L15:
	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	asumisu
	.type	asumisu, @function
asumisu:
.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	asumisu, .-asumisu
	.globl	mizuhasu
	.type	mizuhasu, @function
mizuhasu:
.LFB7:
	.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
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movq	-32(%rbp), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	je	.L6
	movl	-12(%rbp), %edx
	movl	-4(%rbp), %eax
	cmpl	%eax, %edx
	jle	.L7
	movl	$-1, %eax
	jmp	.L12
.L7:
	movl	$1, %eax
	jmp	.L12
.L6:
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	jl	.L10
	movl	-16(%rbp), %edx
	movl	-8(%rbp), %eax
	cmpl	%eax, %edx
	setg	%al
	movzbl	%al, %eax
	jmp	.L12
.L10:
	movl	$-1, %eax
.L12:
	popq	%rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	mizuhasu, .-mizuhasu
	.globl	n
	.bss
	.align 4
	.type	n, @object
	.size	n, 4
n:
	.zero	4
	.globl	v
	.align 32
	.type	v, @object
	.size	v, 458056
v:
	.zero	458056
	.globl	guNums
	.align 32
	.type	guNums, @object
	.size	guNums, 458056
guNums:
	.zero	458056
	.globl	kiNums
	.align 32
	.type	kiNums, @object
	.size	kiNums, 458056
kiNums:
	.zero	458056
	.globl	guCount
	.align 4
	.type	guCount, @object
	.size	guCount, 4
guCount:
	.zero	4
	.globl	kiCount
	.align 4
	.type	kiCount, @object
	.size	kiCount, 4
kiCount:
	.zero	4
	.globl	gu
	.align 32
	.type	gu, @object
	.size	gu, 916112
gu:
	.zero	916112
	.globl	ki
	.align 32
	.type	ki, @object
	.size	ki, 916112
ki:
	.zero	916112
	.section	.rodata
.LC0:
	.string	"%d"
	.align 8
.LC1:
	.string	"n wa guusuu zya nai to dame!!!!!"
.LC2:
	.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	.L14
	movl	$1, %eax
	jmp	.L15
.L14:
	movl	n(%rip), %eax
	andl	$1, %eax
	testl	%eax, %eax
	je	.L16
	leaq	.LC1(%rip), %rax
	movq	%rax, %rdi
	call	puts@PLT
	movl	$2, %eax
	jmp	.L15
.L16:
	movl	$0, -4(%rbp)
	jmp	.L17
.L19:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%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	.L18
	movl	$1, %eax
	jmp	.L15
.L18:
	addl	$1, -4(%rbp)
.L17:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L19
	movl	$1, -4(%rbp)
	jmp	.L20
.L21:
	movl	-4(%rbp), %eax
	leal	-1(%rax), %edx
	movl	-4(%rbp), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%ecx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movslq	%edx, %rax
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	guNums(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	-4(%rbp), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %ecx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	v(%rip), %rax
	movl	(%rdx,%rax), %eax
	movslq	%ecx, %rdx
	leaq	0(,%rdx,4), %rcx
	leaq	kiNums(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	addl	$2, -4(%rbp)
.L20:
	movl	n(%rip), %eax
	cmpl	%eax, -4(%rbp)
	jl	.L21
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	asumisu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	guNums(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cltq
	leaq	asumisu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$4, %edx
	movq	%rax, %rsi
	leaq	kiNums(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	guNums(%rip), %eax
	movl	%eax, gu(%rip)
	movl	$1, 4+gu(%rip)
	movl	$1, guCount(%rip)
	movl	$1, -4(%rbp)
	jmp	.L22
.L25:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	guNums(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	guCount(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	gu(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L23
	movl	guCount(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+gu(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+gu(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L24
.L23:
	movl	guCount(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	guNums(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	gu(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	guCount(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+gu(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	guCount(%rip), %eax
	addl	$1, %eax
	movl	%eax, guCount(%rip)
.L24:
	addl	$1, -4(%rbp)
.L22:
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -4(%rbp)
	jl	.L25
	movl	kiNums(%rip), %eax
	movl	%eax, ki(%rip)
	movl	$1, 4+ki(%rip)
	movl	$1, kiCount(%rip)
	movl	$1, -4(%rbp)
	jmp	.L26
.L29:
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rdx
	leaq	kiNums(%rip), %rax
	movl	(%rdx,%rax), %edx
	movl	kiCount(%rip), %eax
	subl	$1, %eax
	cltq
	leaq	0(,%rax,8), %rcx
	leaq	ki(%rip), %rax
	movl	(%rcx,%rax), %eax
	cmpl	%eax, %edx
	jne	.L27
	movl	kiCount(%rip), %eax
	subl	$1, %eax
	movslq	%eax, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	4+ki(%rip), %rdx
	movl	(%rcx,%rdx), %edx
	leal	1(%rdx), %ecx
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+ki(%rip), %rax
	movl	%ecx, (%rdx,%rax)
	jmp	.L28
.L27:
	movl	kiCount(%rip), %edx
	movl	-4(%rbp), %eax
	cltq
	leaq	0(,%rax,4), %rcx
	leaq	kiNums(%rip), %rax
	movl	(%rcx,%rax), %eax
	movslq	%edx, %rdx
	leaq	0(,%rdx,8), %rcx
	leaq	ki(%rip), %rdx
	movl	%eax, (%rcx,%rdx)
	movl	kiCount(%rip), %eax
	cltq
	leaq	0(,%rax,8), %rdx
	leaq	4+ki(%rip), %rax
	movl	$1, (%rdx,%rax)
	movl	kiCount(%rip), %eax
	addl	$1, %eax
	movl	%eax, kiCount(%rip)
.L28:
	addl	$1, -4(%rbp)
.L26:
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	cmpl	%eax, -4(%rbp)
	jl	.L29
	movl	guCount(%rip), %eax
	cltq
	leaq	mizuhasu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rsi
	leaq	gu(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	kiCount(%rip), %eax
	cltq
	leaq	mizuhasu(%rip), %rdx
	movq	%rdx, %rcx
	movl	$8, %edx
	movq	%rax, %rsi
	leaq	ki(%rip), %rax
	movq	%rax, %rdi
	call	qsort@PLT
	movl	gu(%rip), %edx
	movl	ki(%rip), %eax
	cmpl	%eax, %edx
	je	.L30
	movl	n(%rip), %eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L30:
	movl	guCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L32
	movl	kiCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L32
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L32:
	movl	guCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L33
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L33:
	movl	kiCount(%rip), %eax
	cmpl	$1, %eax
	jne	.L34
	movl	n(%rip), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%edx, %eax
	sarl	%eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L34:
	movl	12+gu(%rip), %edx
	movl	4+ki(%rip), %eax
	addl	%eax, %edx
	movl	4+gu(%rip), %ecx
	movl	12+ki(%rip), %eax
	addl	%ecx, %eax
	cmpl	%eax, %edx
	jl	.L35
	movl	n(%rip), %eax
	movl	12+gu(%rip), %edx
	subl	%edx, %eax
	movl	4+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
	jmp	.L31
.L35:
	movl	n(%rip), %eax
	movl	4+gu(%rip), %edx
	subl	%edx, %eax
	movl	12+ki(%rip), %edx
	subl	%edx, %eax
	movl	%eax, %esi
	leaq	.LC2(%rip), %rax
	movq	%rax, %rdi
	movl	$0, %eax
	call	printf@PLT
.L31:
	movl	$0, %eax
.L15:
	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:
