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

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

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

#define INF 1010101010

int N;
int A[114514];

int main(void) {
	int i;
	int suzukitatuhisa = 0;
	int aoisyouta = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	qsort(A, N, sizeof(*A), morikubosyoutarou);
	for (i = 0; i < N; i++) {
		suzukitatuhisa += A[i];
		if (suzukitatuhisa > INF) suzukitatuhisa = INF;
		if (!(i + 1 < N) || suzukitatuhisa * 2 >= A[i + 1]) aoisyouta++; else aoisyouta = 0;
	}
	printf("%d\n", aoisyouta);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	morikubosyoutarou
	.type	morikubosyoutarou, @function
morikubosyoutarou:
.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	morikubosyoutarou, .-morikubosyoutarou
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L9
	movslq	N(%rip), %rsi
	leaq	A(%rip), %r12
	xorl	%ebp, %ebp
	movq	%r12, %rbx
	testl	%esi, %esi
	jg	.L10
.L8:
	leaq	morikubosyoutarou(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	N(%rip), %esi
	testl	%esi, %esi
	jle	.L15
	leal	1(%rsi), %r9d
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	leaq	-4+A(%rip), %rdi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	leal	(%rax,%rax), %ecx
	cmpl	(%r12,%rdx,4), %ecx
	jge	.L12
	addq	$1, %rdx
	xorl	%r8d, %r8d
	cmpq	%rdx, %r9
	je	.L11
.L14:
	addl	(%rdi,%rdx,4), %eax
	movl	$1010101010, %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	cmpl	%edx, %esi
	jg	.L22
.L12:
	addq	$1, %rdx
	addl	$1, %r8d
	cmpq	%rdx, %r9
	jne	.L14
.L11:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	N(%rip), %rsi
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %esi
	jle	.L8
.L10:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L23
.L9:
	movl	$1, %eax
.L5:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L11
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.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:
```

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.
Optimized Assembly Code:

user
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	morikubosyoutarou
	.type	morikubosyoutarou, @function
morikubosyoutarou:
.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	morikubosyoutarou, .-morikubosyoutarou
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L9
	movslq	N(%rip), %rsi
	leaq	A(%rip), %r12
	xorl	%ebp, %ebp
	movq	%r12, %rbx
	testl	%esi, %esi
	jg	.L10
.L8:
	leaq	morikubosyoutarou(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	N(%rip), %esi
	testl	%esi, %esi
	jle	.L15
	leal	1(%rsi), %r9d
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	leaq	-4+A(%rip), %rdi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	leal	(%rax,%rax), %ecx
	cmpl	(%r12,%rdx,4), %ecx
	jge	.L12
	addq	$1, %rdx
	xorl	%r8d, %r8d
	cmpq	%rdx, %r9
	je	.L11
.L14:
	addl	(%rdi,%rdx,4), %eax
	movl	$1010101010, %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	cmpl	%edx, %esi
	jg	.L22
.L12:
	addq	$1, %rdx
	addl	$1, %r8d
	cmpq	%rdx, %r9
	jne	.L14
.L11:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	N(%rip), %rsi
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %esi
	jle	.L8
.L10:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L23
.L9:
	movl	$1, %eax
.L5:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L11
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.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
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	morikubosyoutarou
	.type	morikubosyoutarou, @function
morikubosyoutarou:
.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	morikubosyoutarou, .-morikubosyoutarou
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L9
	movslq	N(%rip), %rsi
	leaq	A(%rip), %r12
	xorl	%ebp, %ebp
	movq	%r12, %rbx
	testl	%esi, %esi
	jg	.L10
.L8:
	leaq	morikubosyoutarou(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	N(%rip), %esi
	testl	%esi, %esi
	jle	.L15
	leal	1(%rsi), %r9d
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	leaq	-4+A(%rip), %rdi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	leal	(%rax,%rax), %ecx
	cmpl	(%r12,%rdx,4), %ecx
	jge	.L12
	addq	$1, %rdx
	xorl	%r8d, %r8d
	cmpq	%rdx, %r9
	je	.L11
.L14:
	addl	(%rdi,%rdx,4), %eax
	movl	$1010101010, %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	cmpl	%edx, %esi
	jg	.L22
.L12:
	addq	$1, %rdx
	addl	$1, %r8d
	cmpq	%rdx, %r9
	jne	.L14
.L11:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	N(%rip), %rsi
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %esi
	jle	.L8
.L10:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L23
.L9:
	movl	$1, %eax
.L5:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L11
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.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:
```
```c
#include <stdio.h>
#include <stdlib.h>

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

#define INF 1010101010

int N;
int A[114514];

int main(void) {
	int i;
	int suzukitatuhisa = 0;
	int aoisyouta = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	qsort(A, N, sizeof(*A), morikubosyoutarou);
	for (i = 0; i < N; i++) {
		suzukitatuhisa += A[i];
		if (suzukitatuhisa > INF) suzukitatuhisa = INF;
		if (!(i + 1 < N) || suzukitatuhisa * 2 >= A[i + 1]) aoisyouta++; else aoisyouta = 0;
	}
	printf("%d\n", aoisyouta);
	return 0;
}
```
Given the following C code, your task is to generate highly optimized x86-64 assembly code.
C Code:

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

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

#define INF 1010101010

int N;
int A[114514];

int main(void) {
	int i;
	int suzukitatuhisa = 0;
	int aoisyouta = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	qsort(A, N, sizeof(*A), morikubosyoutarou);
	for (i = 0; i < N; i++) {
		suzukitatuhisa += A[i];
		if (suzukitatuhisa > INF) suzukitatuhisa = INF;
		if (!(i + 1 < N) || suzukitatuhisa * 2 >= A[i + 1]) aoisyouta++; else aoisyouta = 0;
	}
	printf("%d\n", aoisyouta);
	return 0;
}
```

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.
Optimized Assembly Code:

5
1 1 1 1 2
 3
3 1 3
 6
40 1 26 2 7 20
 3
1 1 3
 6
7 2 21 2 9 20
 5
1 2 1 1 2
 6
40 1 26 2 9 20
 5
1 2 1 0 2
 6
40 1 21 2 9 20
 5
1 1 1 0 2

5
 2
 4
 3
 6
 5
 4
 4
 4
 4

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

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

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

#define INF 1010101010

int N;
int A[114514];

int main(void) {
	int i;
	int suzukitatuhisa = 0;
	int aoisyouta = 0;
	if (scanf("%d", &N) != 1) return 1;
	for (i = 0; i < N; i++) {
		if (scanf("%d", &A[i]) != 1) return 1;
	}
	qsort(A, N, sizeof(*A), morikubosyoutarou);
	for (i = 0; i < N; i++) {
		suzukitatuhisa += A[i];
		if (suzukitatuhisa > INF) suzukitatuhisa = INF;
		if (!(i + 1 < N) || suzukitatuhisa * 2 >= A[i + 1]) aoisyouta++; else aoisyouta = 0;
	}
	printf("%d\n", aoisyouta);
	return 0;
}
```

Assembly Code:

```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	morikubosyoutarou
	.type	morikubosyoutarou, @function
morikubosyoutarou:
.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	morikubosyoutarou, .-morikubosyoutarou
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L9
	movslq	N(%rip), %rsi
	leaq	A(%rip), %r12
	xorl	%ebp, %ebp
	movq	%r12, %rbx
	testl	%esi, %esi
	jg	.L10
.L8:
	leaq	morikubosyoutarou(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	N(%rip), %esi
	testl	%esi, %esi
	jle	.L15
	leal	1(%rsi), %r9d
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	leaq	-4+A(%rip), %rdi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	leal	(%rax,%rax), %ecx
	cmpl	(%r12,%rdx,4), %ecx
	jge	.L12
	addq	$1, %rdx
	xorl	%r8d, %r8d
	cmpq	%rdx, %r9
	je	.L11
.L14:
	addl	(%rdi,%rdx,4), %eax
	movl	$1010101010, %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	cmpl	%edx, %esi
	jg	.L22
.L12:
	addq	$1, %rdx
	addl	$1, %r8d
	cmpq	%rdx, %r9
	jne	.L14
.L11:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	N(%rip), %rsi
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %esi
	jle	.L8
.L10:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L23
.L9:
	movl	$1, %eax
.L5:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L11
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.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:
```

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.
Optimized Assembly Code:

train
```assembly
	.file	"temp.c"
	.text
	.p2align 4
	.globl	morikubosyoutarou
	.type	morikubosyoutarou, @function
morikubosyoutarou:
.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	morikubosyoutarou, .-morikubosyoutarou
	.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:
.LFB40:
	.cfi_startproc
	endbr64
	pushq	%r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	leaq	.LC0(%rip), %r13
	xorl	%eax, %eax
	leaq	N(%rip), %rsi
	pushq	%r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	movq	%r13, %rdi
	pushq	%rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	pushq	%rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	subq	$8, %rsp
	.cfi_def_cfa_offset 48
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	jne	.L9
	movslq	N(%rip), %rsi
	leaq	A(%rip), %r12
	xorl	%ebp, %ebp
	movq	%r12, %rbx
	testl	%esi, %esi
	jg	.L10
.L8:
	leaq	morikubosyoutarou(%rip), %rcx
	movl	$4, %edx
	movq	%r12, %rdi
	call	qsort@PLT
	movl	N(%rip), %esi
	testl	%esi, %esi
	jle	.L15
	leal	1(%rsi), %r9d
	movl	$1, %edx
	xorl	%r8d, %r8d
	xorl	%eax, %eax
	leaq	-4+A(%rip), %rdi
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L22:
	leal	(%rax,%rax), %ecx
	cmpl	(%r12,%rdx,4), %ecx
	jge	.L12
	addq	$1, %rdx
	xorl	%r8d, %r8d
	cmpq	%rdx, %r9
	je	.L11
.L14:
	addl	(%rdi,%rdx,4), %eax
	movl	$1010101010, %ecx
	cmpl	%ecx, %eax
	cmovg	%ecx, %eax
	cmpl	%edx, %esi
	jg	.L22
.L12:
	addq	$1, %rdx
	addl	$1, %r8d
	cmpq	%rdx, %r9
	jne	.L14
.L11:
	movl	%r8d, %edx
	leaq	.LC1(%rip), %rsi
	movl	$1, %edi
	xorl	%eax, %eax
	call	__printf_chk@PLT
	xorl	%eax, %eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L23:
	movslq	N(%rip), %rsi
	addl	$1, %ebp
	addq	$4, %rbx
	cmpl	%ebp, %esi
	jle	.L8
.L10:
	xorl	%eax, %eax
	movq	%rbx, %rsi
	movq	%r13, %rdi
	call	__isoc99_scanf@PLT
	cmpl	$1, %eax
	je	.L23
.L9:
	movl	$1, %eax
.L5:
	addq	$8, %rsp
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	popq	%rbx
	.cfi_def_cfa_offset 32
	popq	%rbp
	.cfi_def_cfa_offset 24
	popq	%r12
	.cfi_def_cfa_offset 16
	popq	%r13
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	xorl	%r8d, %r8d
	jmp	.L11
	.cfi_endproc
.LFE40:
	.size	main, .-main
	.globl	A
	.bss
	.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:
```