	.file	"440034.c"
	.intel_syntax noprefix
	.text
	.globl	compare_function
	.type	compare_function, @function
compare_function:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	compare_function, .-compare_function
	.section	.rodata
.LC0:
	.string	"%llu %llu"
.LC1:
	.string	"%llu %llu %llu %llu"
.LC2:
	.string	"%llu %llu\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	rax, rsp
	mov	rbx, rax
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	lea	rdx, -136[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -148[rbp], eax
	lea	rsi, -104[rbp]
	lea	rcx, -112[rbp]
	lea	rdx, -120[rbp]
	lea	rax, -128[rbp]
	mov	r8, rsi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -148[rbp], eax
	mov	rax, QWORD PTR -144[rbp]
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -72[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	lea	rdx, 0[0+rax*8]
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	edi, 16
	mov	edx, 0
	div	rdi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L4:
	cmp	rsp, rdx
	je	.L5
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L4
.L5:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L6
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L6:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -64[rbp], rax
	mov	rdx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR [rax], rdx
	mov	DWORD PTR -152[rbp], 1
	jmp	.L7
.L8:
	mov	rdx, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR -104[rbp]
	imul	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -112[rbp]
	mov	edx, 0
	div	rcx
	mov	rax, rdx
	add	rax, 1
	mov	QWORD PTR -104[rbp], rax
	mov	rcx, QWORD PTR -104[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	add	DWORD PTR -152[rbp], 1
.L7:
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -144[rbp]
	cmp	rdx, rax
	jb	.L8
	mov	rsi, QWORD PTR -144[rbp]
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, compare_function[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	DWORD PTR -152[rbp], 0
	jmp	.L9
.L13:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -88[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -136[rbp]
	cmp	rdx, rax
	ja	.L16
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -80[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	lea	rcx, [rdx+rax]
	movabs	rdx, -8543223828751151131
	mov	rax, rcx
	mul	rdx
	mov	rax, rdx
	shr	rax, 29
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	imul	rdx, rax, 1000000007
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -152[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	add	QWORD PTR -88[rbp], rax
	add	QWORD PTR -96[rbp], 1
	add	DWORD PTR -152[rbp], 1
.L9:
	mov	eax, DWORD PTR -152[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -144[rbp]
	cmp	rdx, rax
	jb	.L13
	jmp	.L12
.L16:
	nop
.L12:
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rsp, rbx
	mov	eax, 0
	mov	rbx, QWORD PTR -56[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"440034.c"
	.text
	.align	2
	.global	compare_function
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_function, %function
compare_function:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	compare_function, .-compare_function
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%llu %llu\000"
	.align	2
.LC1:
	.ascii	"%llu %llu %llu %llu\000"
	.global	__aeabi_uldivmod
	.align	2
.LC2:
	.ascii	"%llu %llu\012\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #156
	ldr	r3, .L14+8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	mov	r3, sp
	mov	r10, r3
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-68]
	str	r3, [fp, #-64]
	sub	r2, fp, #108
	sub	r3, fp, #116
	mov	r1, r3
	ldr	r0, .L14+12
	bl	__isoc99_scanf
	str	r0, [fp, #-128]
	sub	r0, fp, #84
	sub	r2, fp, #92
	sub	r1, fp, #100
	sub	r3, fp, #76
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L14+16
	bl	__isoc99_scanf
	str	r0, [fp, #-128]
	sub	r5, fp, #116
	ldmia	r5, {r4-r5}
	mov	r3, r4
	sub	r3, r3, #1
	str	r3, [fp, #-124]
	mov	r3, r4
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r3, r4
	mov	r2, r3
	mov	r3, #0
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	mov	r3, r4
	lsl	r3, r3, #3
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	str	r3, [fp, #-120]
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-120]
	stm	r3, {r0-r1}
	mov	r3, #1
	str	r3, [fp, #-132]
	b	.L4
.L5:
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	sub	r5, fp, #76
	ldmia	r5, {r4-r5}
	mul	r2, r4, r1
	mul	r3, r0, r5
	add	r3, r2, r3
	umull	r6, r7, r0, r4
	add	r3, r3, r7
	mov	r7, r3
	sub	r3, fp, #92
	ldmia	r3, {r2-r3}
	adds	r1, r6, r2
	str	r1, [fp, #-140]
	adc	r3, r7, r3
	str	r3, [fp, #-136]
	sub	r3, fp, #84
	ldmia	r3, {r2-r3}
	sub	r1, fp, #140
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	adds	r1, r2, #1
	str	r1, [fp, #-148]
	adc	r3, r3, #0
	str	r3, [fp, #-144]
	sub	r4, fp, #148
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-76]
	str	r4, [fp, #-72]
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #3
	add	r3, r2, r3
	stm	r3, {r0-r1}
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L4:
	ldr	r3, [fp, #-132]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L5
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	mov	r1, r2
	ldr	r3, .L14+20
	mov	r2, #8
	ldr	r0, [fp, #-120]
	bl	qsort
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L6
.L10:
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	ip, r0, r2
	str	ip, [fp, #-156]
	adc	r3, r1, r3
	str	r3, [fp, #-152]
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	sub	r1, fp, #156
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L13
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	r8, r0, r2
	adc	r9, r1, r3
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r1, r8, r2
	str	r1, [fp, #-164]
	adc	r3, r9, r3
	str	r3, [fp, #-160]
	adr	r3, .L14
	ldmia	r3, {r2-r3}
	sub	r1, fp, #164
	ldmia	r1, {r0-r1}
	bl	__aeabi_uldivmod
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r2, [fp, #-120]
	ldr	r3, [fp, #-132]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	adds	ip, r0, r2
	str	ip, [fp, #-172]
	adc	r3, r1, r3
	str	r3, [fp, #-168]
	sub	r4, fp, #172
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-60]
	str	r4, [fp, #-56]
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-180]
	adc	r3, r3, #0
	str	r3, [fp, #-176]
	sub	r4, fp, #180
	ldmia	r4, {r3-r4}
	str	r3, [fp, #-68]
	str	r4, [fp, #-64]
	ldr	r3, [fp, #-132]
	add	r3, r3, #1
	str	r3, [fp, #-132]
.L6:
	ldr	r3, [fp, #-132]
	mov	r0, r3
	asr	r1, r0, #31
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L10
	b	.L9
.L13:
	nop
.L9:
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	stm	sp, {r2-r3}
	sub	r3, fp, #68
	ldmia	r3, {r2-r3}
	ldr	r0, .L14+24
	bl	printf
	mov	sp, r10
	mov	r3, #0
	ldr	r2, .L14+8
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	3
.L14:
	.word	1000000007
	.word	0
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	compare_function
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
