	.file	"47615.c"
	.intel_syntax noprefix
	.text
	.globl	lineptr
	.bss
	.align 32
	.type	lineptr, @object
	.size	lineptr, 40000
lineptr:
	.zero	40000
	.section	.rodata
.LC0:
	.string	"-n"
.LC1:
	.string	"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
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -8[rbp], 0
	cmp	DWORD PTR -20[rbp], 1
	jle	.L2
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	DWORD PTR -8[rbp], 1
.L2:
	mov	esi, 5000
	lea	rdi, lineptr[rip]
	call	readlines
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L3
	cmp	DWORD PTR -8[rbp], 0
	je	.L4
	lea	rax, numcmp[rip]
	jmp	.L5
.L4:
	mov	rax, QWORD PTR strcmp@GOTPCREL[rip]
.L5:
	mov	edx, DWORD PTR -4[rbp]
	sub	edx, 1
	mov	rcx, rax
	mov	esi, 0
	lea	rdi, lineptr[rip]
	call	qsort_
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, lineptr[rip]
	call	writelines
	mov	eax, 0
	jmp	.L6
.L3:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	qsort_
	.type	qsort_, @function
qsort_:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	mov	QWORD PTR -40[rbp], rcx
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jge	.L13
	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	.L10
.L12:
	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	rcx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	rcx
	test	eax, eax
	jns	.L11
	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
.L11:
	add	DWORD PTR -8[rbp], 1
.L10:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L12
	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	edi, -1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	esi, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, edi
	mov	rdi, rax
	call	qsort_
	mov	eax, DWORD PTR -4[rbp]
	lea	esi, 1[rax]
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	qsort_
	jmp	.L7
.L13:
	nop
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	qsort_, .-qsort_
	.globl	numcmp
	.type	numcmp, @function
numcmp:
.LFB8:
	.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	jbe	.L22
	mov	eax, -1
	jmp	.L17
.L22:
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L23
	mov	eax, 1
	jmp	.L17
.L23:
	mov	eax, 0
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	numcmp, .-numcmp
	.globl	swap
	.type	swap, @function
swap:
.LFB9:
	.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
.LFE9:
	.size	swap, .-swap
	.globl	getline_
	.type	getline_, @function
getline_:
.LFB10:
	.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	.L26
.L28:
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
.L26:
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	jle	.L27
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	je	.L27
	cmp	DWORD PTR -8[rbp], 10
	jne	.L28
.L27:
	cmp	DWORD PTR -8[rbp], 10
	jne	.L29
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -4[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	mov	BYTE PTR [rax], dl
.L29:
	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
.LFE10:
	.size	getline_, .-getline_
	.globl	readlines
	.type	readlines, @function
readlines:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 944
	mov	QWORD PTR -5032[rbp], rdi
	mov	DWORD PTR -5036[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -5024[rbp], 0
	jmp	.L32
.L36:
	mov	eax, DWORD PTR -5024[rbp]
	cmp	eax, DWORD PTR -5036[rbp]
	jge	.L33
	mov	eax, DWORD PTR -5020[rbp]
	mov	edi, eax
	call	alloc
	mov	QWORD PTR -5016[rbp], rax
	cmp	QWORD PTR -5016[rbp], 0
	jne	.L34
.L33:
	mov	eax, -1
	jmp	.L37
.L34:
	mov	eax, DWORD PTR -5020[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -5008[rbp+rax], 0
	lea	rdx, -5008[rbp]
	mov	rax, QWORD PTR -5016[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -5024[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -5024[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -5032[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -5016[rbp]
	mov	QWORD PTR [rdx], rax
.L32:
	lea	rax, -5008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	getline_
	mov	DWORD PTR -5020[rbp], eax
	cmp	DWORD PTR -5020[rbp], 0
	jg	.L36
	mov	eax, DWORD PTR -5024[rbp]
.L37:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	readlines, .-readlines
	.section	.rodata
.LC2:
	.string	"%d: %s\n"
	.text
	.globl	writelines
	.type	writelines, @function
writelines:
.LFB12:
	.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	.L40
.L41:
	mov	eax, DWORD PTR -4[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 -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L40:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L41
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	writelines, .-writelines
	.globl	writelines_
	.type	writelines_, @function
writelines_:
.LFB13:
	.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	.L43
.L44:
	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
.L43:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -12[rbp], edx
	test	eax, eax
	jg	.L44
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	writelines_, .-writelines_
	.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:
.LFB14:
	.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	.L46
	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	.L47
.L46:
	mov	eax, 0
.L47:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	alloc, .-alloc
	.globl	afree
	.type	afree, @function
afree:
.LFB15:
	.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	.L50
	lea	rax, allocbuf[rip+10000]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L50
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR allocp[rip], rax
.L50:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	"47615.c"
	.text
	.comm	lineptr,20000,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"-n\000"
	.align	2
.LC1:
	.ascii	"input too big to sort\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, #-12]
	ldr	r3, [fp, #-16]
	cmp	r3, #1
	ble	.L2
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L7
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	str	r3, [fp, #-12]
.L2:
	ldr	r1, .L7+4
	ldr	r0, .L7+8
	bl	readlines
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L3
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L4
	ldr	r3, .L7+12
	b	.L5
.L4:
	ldr	r3, .L7+16
.L5:
	mov	r1, #0
	ldr	r0, .L7+8
	bl	qsort_
	ldr	r1, [fp, #-8]
	ldr	r0, .L7+8
	bl	writelines
	mov	r3, #0
	b	.L6
.L3:
	ldr	r0, .L7+20
	bl	puts
	mov	r3, #1
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	5000
	.word	lineptr
	.word	numcmp
	.word	strcmp
	.word	.LC1
	.size	main, .-main
	.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]
	str	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L15
	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	.L12
.L14:
	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	r2, [r3]
	ldr	r3, [fp, #-28]
	mov	r1, r2
	blx	r3
	mov	r3, r0
	cmp	r3, #0
	bge	.L13
	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
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L14
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	swap
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	qsort_
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	qsort_
	b	.L9
.L15:
	nop
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	qsort_, .-qsort_
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpgt
	.align	2
	.global	numcmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	numcmp, %function
numcmp:
	@ 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, #-24]
	str	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	atof
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	atof
	str	r0, [fp, #-12]
	str	r1, [fp, #-8]
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L24
	mvn	r3, #0
	b	.L19
.L24:
	sub	r3, fp, #12
	ldmia	r3, {r2-r3}
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L25
	mov	r3, #1
	b	.L19
.L25:
	mov	r3, #0
.L19:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	numcmp, .-numcmp
	.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
	.align	2
	.global	getline_
	.syntax unified
	.arm
	.fpu softvfp
	.type	getline_, %function
getline_:
	@ 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	.L28
.L30:
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
.L28:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L29
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L29
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L30
.L29:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L31
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r2, [fp, #-12]
	and	r2, r2, #255
	strb	r2, [r3]
.L31:
	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	getline_, .-getline_
	.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 = 5024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4992
	sub	sp, sp, #36
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-924]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-928]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-920]
	b	.L34
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-920]
	ldr	r3, [r3, #-928]
	cmp	r2, r3
	bge	.L35
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-916]
	bl	alloc
	str	r0, [r4, #-912]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-912]
	cmp	r3, #0
	bne	.L36
.L35:
	mvn	r3, #0
	b	.L39
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	sub	r3, r3, #1
	sub	r2, fp, #4096
	sub	r2, r2, #12
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-908]
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r3
	ldr	r0, [r2, #-912]
	bl	strcpy
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-920]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-920]
	lsl	r3, r3, #2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-924]
	add	r3, r2, r3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-912]
	str	r2, [r3]
.L34:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r1, #1000
	mov	r0, r3
	bl	getline_
	str	r0, [r4, #-916]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-916]
	cmp	r3, #0
	bgt	.L38
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-920]
.L39:
	ldr	r2, .L41
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC2
	.size	readlines, .-readlines
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%d: %s\012\000"
	.text
	.align	2
	.global	writelines
	.syntax unified
	.arm
	.fpu softvfp
	.type	writelines, %function
writelines:
	@ 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	.L44
.L45:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, [fp, #-8]
	ldr	r0, .L46
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L44:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L45
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC3
	.size	writelines, .-writelines
	.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	.L49
.L50:
	ldr	r3, [fp, #-8]
	add	r2, r3, #4
	str	r2, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
.L49:
	ldr	r3, [fp, #-12]
	sub	r2, r3, #1
	str	r2, [fp, #-12]
	cmp	r3, #0
	bgt	.L50
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writelines_, .-writelines_
	.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, .L54
	ldr	r3, .L54+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L52
	ldr	r3, .L54+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L54+4
	str	r3, [r2]
	ldr	r3, .L54+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	add	r3, r2, r3
	b	.L53
.L52:
	mov	r3, #0
.L53:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L55:
	.align	2
.L54:
	.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, .L59
	cmp	r3, r2
	bcc	.L58
	ldr	r2, .L59+4
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcs	.L58
	ldr	r2, .L59+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L58:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L60:
	.align	2
.L59:
	.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
