	.file	"1002939.c"
	.intel_syntax noprefix
	.text
	.globl	cmpfunc
	.type	cmpfunc, @function
cmpfunc:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, rdx
	sub	rax, rcx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cmpfunc, .-cmpfunc
	.section	.rodata
.LC0:
	.string	"%lld"
.LC1:
	.string	"%lld\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
	lea	r11, -7999488[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -8000032[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	QWORD PTR -8000024[rbp], 0
	jmp	.L4
.L5:
	lea	rdx, -8000016[rbp]
	mov	rax, QWORD PTR -8000024[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	add	QWORD PTR -8000024[rbp], 1
.L4:
	mov	rax, QWORD PTR -8000032[rbp]
	cmp	QWORD PTR -8000024[rbp], rax
	jl	.L5
	mov	rax, QWORD PTR -8000032[rbp]
	mov	rsi, rax
	lea	rax, -8000016[rbp]
	lea	rcx, cmpfunc[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	QWORD PTR -8000024[rbp], 0
	jmp	.L6
.L7:
	mov	rax, QWORD PTR -8000024[rbp]
	mov	rax, QWORD PTR -8000016[rbp+rax*8]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	QWORD PTR -8000024[rbp], 1
.L6:
	mov	rax, QWORD PTR -8000032[rbp]
	cmp	QWORD PTR -8000024[rbp], rax
	jl	.L7
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.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	"1002939.c"
	.text
	.align	2
	.global	cmpfunc
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmpfunc, %function
cmpfunc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, fp}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldmia	r3, {r0-r1}
	ldr	r3, [fp, #-20]
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	mov	r2, r4
	mov	r3, r5
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, r5, fp}
	bx	lr
	.size	cmpfunc, .-cmpfunc
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%lld\000"
	.align	2
.LC1:
	.ascii	"%lld\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8000024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #7995392
	sub	sp, sp, #4608
	sub	sp, sp, #24
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r3, .L10+4
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L4
.L5:
	ldr	r3, .L10+16
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, .L10+12
	sub	r1, fp, #20
	add	r2, r1, r2
	ldr	r2, [r2]
	lsl	r2, r2, #3
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	stm	r1, {r6-r7}
.L4:
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	ldmdb	r3, {r2-r3}
	ldr	r1, .L10+12
	sub	r0, fp, #20
	add	r1, r0, r1
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L5
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	ldmdb	r3, {r2-r3}
	mov	r1, r2
	ldr	r0, .L10+16
	sub	r3, fp, #20
	add	r0, r3, r0
	ldr	r3, .L10+20
	mov	r2, #8
	bl	qsort
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stm	r1, {r2-r3}
	b	.L6
.L7:
	sub	r3, fp, #7995392
	sub	r3, r3, #20
	sub	r3, r3, #4096
	mov	r2, r3
	ldr	r3, .L10+12
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	sub	r3, r3, #520
	ldmia	r3, {r2-r3}
	ldr	r0, .L10+24
	bl	printf
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	mov	r1, r3
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	stm	r1, {r4-r5}
.L6:
	ldr	r3, .L10+12
	sub	r2, fp, #20
	add	r3, r2, r3
	ldmdb	r3, {r2-r3}
	ldr	r1, .L10+12
	sub	r0, fp, #20
	add	r1, r0, r1
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L7
	mov	r3, #0
	ldr	r2, .L10
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC2
	.word	-8000024
	.word	.LC0
	.word	-8000016
	.word	-8000008
	.word	cmpfunc
	.word	.LC1
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
