	.file	"18888767.c"
	.intel_syntax noprefix
	.text
	.globl	lineptr
	.bss
	.align 32
	.type	lineptr, @object
	.size	lineptr, 40000
lineptr:
	.zero	40000
	.section	.rodata
.LC0:
	.string	"error: input too big to sort"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	r11, -4997120[rsp]
.LPSRL0:
	sub	rsp, 4096
	or	DWORD PTR [rsp], 0
	cmp	rsp, r11
	jne	.LPSRL0
	sub	rsp, 2912
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -5000016[rbp]
	mov	edx, 5000
	mov	rsi, rax
	lea	rdi, lineptr[rip]
	call	readlines
	mov	DWORD PTR -5000020[rbp], eax
	cmp	DWORD PTR -5000020[rbp], 0
	js	.L2
	mov	eax, DWORD PTR -5000020[rbp]
	sub	eax, 1
	mov	edx, eax
	mov	esi, 0
	lea	rdi, lineptr[rip]
	call	qsort
	mov	eax, DWORD PTR -5000020[rbp]
	mov	esi, eax
	lea	rdi, lineptr[rip]
	call	writelines
	mov	eax, 0
	jmp	.L4
.L2:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
.L4:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L5
	call	__stack_chk_fail@PLT
.L5:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	readlines
	.type	readlines, @function
readlines:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1056
	mov	QWORD PTR -1032[rbp], rdi
	mov	QWORD PTR -1040[rbp], rsi
	mov	DWORD PTR -1044[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1040[rbp]
	add	rax, 5000000
	mov	QWORD PTR -1016[rbp], rax
	mov	DWORD PTR -1024[rbp], 0
	jmp	.L7
.L11:
	mov	eax, DWORD PTR -1024[rbp]
	cmp	eax, DWORD PTR -1044[rbp]
	jge	.L8
	mov	eax, DWORD PTR -1020[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1040[rbp]
	add	rax, rdx
	cmp	QWORD PTR -1016[rbp], rax
	ja	.L9
.L8:
	mov	eax, -1
	jmp	.L12
.L9:
	mov	eax, DWORD PTR -1020[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -1008[rbp+rax], 0
	lea	rdx, -1008[rbp]
	mov	rax, QWORD PTR -1040[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -1024[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1024[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -1032[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -1040[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -1020[rbp]
	cdqe
	add	QWORD PTR -1040[rbp], rax
.L7:
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	get_line
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], 0
	jg	.L11
	mov	eax, DWORD PTR -1024[rbp]
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	readlines, .-readlines
	.globl	writelines
	.type	writelines, @function
writelines:
.LFB2:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -8[rbp], rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
.L15:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -12[rbp], edx
	test	eax, eax
	jg	.L16
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	writelines, .-writelines
	.globl	get_line
	.type	get_line, @function
get_line:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L18
.L20:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L18:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jge	.L19
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	je	.L19
	cmp	DWORD PTR -8[rbp], 10
	jne	.L20
.L19:
	cmp	DWORD PTR -8[rbp], 10
	jne	.L21
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L21:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	get_line, .-get_line
	.globl	qsort
	.type	qsort, @function
qsort:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L29
	mov	edx, DWORD PTR -28[rbp]
	mov	eax, DWORD PTR -32[rbp]
	add	eax, edx
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	edx, eax
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 1
	mov	DWORD PTR -8[rbp], eax
	jmp	.L26
.L28:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jns	.L27
	add	DWORD PTR -4[rbp], 1
	mov	edx, DWORD PTR -8[rbp]
	mov	ecx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
.L27:
	add	DWORD PTR -8[rbp], 1
.L26:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L28
	mov	edx, DWORD PTR -4[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, -1[rax]
	mov	ecx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	qsort
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	qsort
	jmp	.L23
.L29:
	nop
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	qsort, .-qsort
	.globl	swap
	.type	swap, @function
swap:
.LFB5:
	.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	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	swap, .-swap
	.local	allocbuf
	.comm	allocbuf,10000,32
	.section	.data.rel.local,"aw"
	.align 8
	.type	allocp, @object
	.size	allocp, 8
allocp:
	.quad	allocbuf
	.text
	.globl	alloc
	.type	alloc, @function
alloc:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	lea	rax, allocbuf[rip+10000]
	mov	rcx, QWORD PTR allocp[rip]
	sub	rax, rcx
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	rdx, rax
	jl	.L32
	mov	rdx, QWORD PTR allocp[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR allocp[rip], rax
	mov	rdx, QWORD PTR allocp[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	neg	rax
	add	rax, rdx
	jmp	.L33
.L32:
	mov	eax, 0
.L33:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	alloc, .-alloc
	.globl	afree
	.type	afree, @function
afree:
.LFB7:
	.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
	lea	rax, allocbuf[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L36
	lea	rax, allocbuf[rip+10000]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR allocp[rip], rax
.L36:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	afree, .-afree
	.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	"18888767.c"
	.text
	.comm	lineptr,20000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"error: input too big to sort\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 5000008
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4980736
	sub	sp, sp, #19200
	sub	sp, sp, #76
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4980736
	sub	r3, r3, #12
	sub	r3, r3, #16384
	mov	r4, r3
	ldr	r3, .L6+4
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, .L6+8
	mov	r1, r3
	ldr	r0, .L6+12
	bl	readlines
	str	r0, [r4, #-2888]
	sub	r3, fp, #4980736
	sub	r3, r3, #12
	sub	r3, r3, #16384
	ldr	r3, [r3, #-2888]
	cmp	r3, #0
	blt	.L2
	sub	r3, fp, #4980736
	sub	r3, r3, #12
	sub	r3, r3, #16384
	ldr	r3, [r3, #-2888]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	ldr	r0, .L6+12
	bl	qsort
	sub	r3, fp, #4980736
	sub	r3, r3, #12
	sub	r3, r3, #16384
	ldr	r1, [r3, #-2888]
	ldr	r0, .L6+12
	bl	writelines
	mov	r3, #0
	b	.L4
.L2:
	ldr	r0, .L6+16
	bl	puts
	mov	r3, #1
.L4:
	ldr	r2, .L6
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L5
	bl	__stack_chk_fail
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L7:
	.align	2
.L6:
	.word	.LC1
	.word	-5000004
	.word	5000
	.word	lineptr
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readlines
	.syntax unified
	.arm
	.fpu softvfp
	.type	readlines, %function
readlines:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	sub	sp, sp, #8
	str	r0, [fp, #-1024]
	str	r1, [fp, #-1028]
	str	r2, [fp, #-1032]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r2, [fp, #-1028]
	ldr	r3, .L16+4
	add	r3, r2, r3
	str	r3, [fp, #-1016]
	mov	r3, #0
	str	r3, [fp, #-1020]
	b	.L9
.L13:
	ldr	r2, [fp, #-1020]
	ldr	r3, [fp, #-1032]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-1012]
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	ldr	r2, [fp, #-1016]
	cmp	r2, r3
	bhi	.L11
.L10:
	mvn	r3, #0
	b	.L14
.L11:
	ldr	r3, [fp, #-1012]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-1004]
	sub	r3, fp, #1008
	mov	r1, r3
	ldr	r0, [fp, #-1028]
	bl	strcpy
	ldr	r3, [fp, #-1020]
	add	r2, r3, #1
	str	r2, [fp, #-1020]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-1024]
	add	r3, r2, r3
	ldr	r2, [fp, #-1028]
	str	r2, [r3]
	ldr	r3, [fp, #-1012]
	ldr	r2, [fp, #-1028]
	add	r3, r2, r3
	str	r3, [fp, #-1028]
.L9:
	sub	r3, fp, #1008
	mov	r1, #1000
	mov	r0, r3
	bl	get_line
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmp	r3, #0
	bgt	.L13
	ldr	r3, [fp, #-1020]
.L14:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.word	5000000
	.size	readlines, .-readlines
	.align	2
	.global	writelines
	.syntax unified
	.arm
	.fpu softvfp
	.type	writelines, %function
writelines:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	b	.L19
.L20:
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	str	r2, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
.L19:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	str	r2, [fp, #-12]
	cmp	r3, #0
	bgt	.L20
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writelines, .-writelines
	.align	2
	.global	get_line
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_line, %function
get_line:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L22
.L24:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L23
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L23
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L24
.L23:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L25
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_line, .-get_line
	.align	2
	.global	qsort
	.syntax unified
	.arm
	.fpu softvfp
	.type	qsort, %function
qsort:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L33
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	swap
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L30
.L32:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bge	.L31
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	swap
.L31:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L32
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	swap
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	qsort
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	qsort
	b	.L27
.L33:
	nop
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	qsort, .-qsort
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.local	allocbuf
	.comm	allocbuf,10000,4
	.data
	.align	2
	.type	allocp, %object
	.size	allocp, 4
allocp:
	.word	allocbuf
	.text
	.align	2
	.global	alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc, %function
alloc:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r2, .L38
	ldr	r3, .L38+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L36
	ldr	r3, .L38+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L38+4
	str	r3, [r2]
	ldr	r3, .L38+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	add	r3, r2, r3
	b	.L37
.L36:
	mov	r3, #0
.L37:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L39:
	.align	2
.L38:
	.word	allocbuf+10000
	.word	allocp
	.size	alloc, .-alloc
	.align	2
	.global	afree
	.syntax unified
	.arm
	.fpu softvfp
	.type	afree, %function
afree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, .L43
	cmp	r3, r2
	bcc	.L42
	ldr	r2, .L43+4
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcs	.L42
	ldr	r2, .L43+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L42:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L44:
	.align	2
.L43:
	.word	allocbuf
	.word	allocbuf+10000
	.word	allocp
	.size	afree, .-afree
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
