	.file	"768493.c"
	.intel_syntax noprefix
	.text
	.local	option
	.comm	option,1,1
	.section	.rodata
.LC0:
	.string	"sort:illegal option %c\n"
.LC1:
	.string	"Usage: sort -nr "
.LC2:
	.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, 848
	mov	DWORD PTR -836[rbp], edi
	mov	QWORD PTR -848[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -828[rbp], 0
	jmp	.L2
.L7:
	cmp	DWORD PTR -824[rbp], 110
	je	.L4
	cmp	DWORD PTR -824[rbp], 114
	je	.L5
	jmp	.L17
.L4:
	movzx	eax, BYTE PTR option[rip]
	or	eax, 1
	mov	BYTE PTR option[rip], al
	jmp	.L3
.L5:
	movzx	eax, BYTE PTR option[rip]
	or	eax, 2
	mov	BYTE PTR option[rip], al
	jmp	.L3
.L17:
	mov	eax, DWORD PTR -824[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -836[rbp], 1
	mov	DWORD PTR -828[rbp], -1
	nop
.L3:
	mov	rax, QWORD PTR -848[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -848[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -848[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -824[rbp], eax
	cmp	DWORD PTR -824[rbp], 0
	jne	.L7
.L2:
	sub	DWORD PTR -836[rbp], 1
	cmp	DWORD PTR -836[rbp], 0
	jle	.L8
	add	QWORD PTR -848[rbp], 8
	mov	rax, QWORD PTR -848[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L3
.L8:
	cmp	DWORD PTR -836[rbp], 0
	je	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L11
.L10:
	lea	rax, -816[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	readlines
	mov	DWORD PTR -820[rbp], eax
	cmp	DWORD PTR -820[rbp], 0
	jle	.L12
	movzx	eax, BYTE PTR option[rip]
	movsx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -820[rbp]
	lea	edx, -1[rax]
	lea	rax, -816[rbp]
	lea	rcx, numcmp[rip]
	mov	esi, 0
	mov	rdi, rax
	call	myqsort
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -820[rbp]
	lea	edx, -1[rax]
	lea	rax, -816[rbp]
	lea	rcx, numcmp[rip]
	mov	esi, 0
	mov	rdi, rax
	call	myqsort
.L14:
	movzx	eax, BYTE PTR option[rip]
	movsx	eax, al
	and	eax, 2
	mov	edx, eax
	mov	ecx, DWORD PTR -820[rbp]
	lea	rax, -816[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	writelines
	jmp	.L11
.L12:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR -828[rbp], -1
.L11:
	mov	eax, DWORD PTR -828[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	writelines
	.type	writelines, @function
writelines:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -32[rbp], edx
	cmp	DWORD PTR -32[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L20
.L21:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	sub	DWORD PTR -4[rbp], 1
.L20:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L21
	jmp	.L25
.L19:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L23
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	puts@PLT
	add	DWORD PTR -4[rbp], 1
.L23:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L24
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	writelines, .-writelines
	.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	.L34
	mov	eax, -1
	jmp	.L29
.L34:
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	jbe	.L35
	mov	eax, 1
	jmp	.L29
.L35:
	mov	eax, 0
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	numcmp, .-numcmp
	.globl	readlines
	.type	readlines, @function
readlines:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 1040
	mov	QWORD PTR -1032[rbp], rdi
	mov	DWORD PTR -1036[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1024[rbp], 0
	jmp	.L37
.L41:
	mov	eax, DWORD PTR -1024[rbp]
	cmp	eax, DWORD PTR -1036[rbp]
	jge	.L38
	mov	eax, DWORD PTR -1020[rbp]
	mov	edi, eax
	call	alloc
	mov	QWORD PTR -1016[rbp], rax
	cmp	QWORD PTR -1016[rbp], 0
	jne	.L39
.L38:
	mov	eax, -1
	jmp	.L42
.L39:
	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 -1016[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 -1016[rbp]
	mov	QWORD PTR [rdx], rax
.L37:
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	mgetline
	mov	DWORD PTR -1020[rbp], eax
	cmp	DWORD PTR -1020[rbp], 0
	jg	.L41
	mov	eax, DWORD PTR -1024[rbp]
.L42:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	readlines, .-readlines
	.local	allocbuf
	.comm	allocbuf,1000,32
	.section	.data.rel.local,"aw"
	.align 8
	.type	allocp, @object
	.size	allocp, 8
allocp:
	.quad	allocbuf
	.text
	.globl	alloc
	.type	alloc, @function
alloc:
.LFB10:
	.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+1000]
	mov	rcx, QWORD PTR allocp[rip]
	sub	rax, rcx
	mov	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	cmp	rdx, rax
	jl	.L45
	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	.L46
.L45:
	mov	eax, 0
.L46:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	alloc, .-alloc
	.globl	afree
	.type	afree, @function
afree:
.LFB11:
	.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	.L49
	lea	rax, allocbuf[rip+1000]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR allocp[rip], rax
.L49:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	afree, .-afree
	.globl	myqsort
	.type	myqsort, @function
myqsort:
.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, 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	.L56
	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	.L53
.L55:
	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	.L54
	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
.L54:
	add	DWORD PTR -8[rbp], 1
.L53:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L55
	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	myqsort
	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	myqsort
	jmp	.L50
.L56:
	nop
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	myqsort, .-myqsort
	.globl	swap
	.type	swap, @function
swap:
.LFB13:
	.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
.LFE13:
	.size	swap, .-swap
	.globl	mgetline
	.type	mgetline, @function
mgetline:
.LFB14:
	.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	.L59
.L61:
	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
.L59:
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	cmp	DWORD PTR -4[rbp], eax
	jge	.L60
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	je	.L60
	cmp	DWORD PTR -8[rbp], 10
	jne	.L61
.L60:
	cmp	DWORD PTR -8[rbp], 10
	jne	.L62
	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
.L62:
	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
.LFE14:
	.size	mgetline, .-mgetline
	.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	"768493.c"
	.text
	.local	option
	.comm	option,1,1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"sort:illegal option %c\012\000"
	.align	2
.LC1:
	.ascii	"Usage: sort -nr \000"
	.align	2
.LC2:
	.ascii	"input too big to sort \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 = 424
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #424
	str	r0, [fp, #-424]
	str	r1, [fp, #-428]
	ldr	r3, .L18
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-420]
	b	.L2
.L7:
	ldr	r3, [fp, #-416]
	cmp	r3, #110
	beq	.L4
	ldr	r3, [fp, #-416]
	cmp	r3, #114
	beq	.L5
	b	.L17
.L4:
	ldr	r3, .L18+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, .L18+4
	strb	r2, [r3]
	b	.L3
.L5:
	ldr	r3, .L18+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #2
	and	r2, r3, #255
	ldr	r3, .L18+4
	strb	r2, [r3]
	b	.L3
.L17:
	ldr	r1, [fp, #-416]
	ldr	r0, .L18+8
	bl	printf
	mov	r3, #1
	str	r3, [fp, #-424]
	mvn	r3, #0
	str	r3, [fp, #-420]
	nop
.L3:
	ldr	r3, [fp, #-428]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-428]
	str	r2, [r3]
	ldr	r3, [fp, #-428]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-416]
	ldr	r3, [fp, #-416]
	cmp	r3, #0
	bne	.L7
.L2:
	ldr	r3, [fp, #-424]
	sub	r3, r3, #1
	str	r3, [fp, #-424]
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	ble	.L8
	ldr	r3, [fp, #-428]
	add	r3, r3, #4
	str	r3, [fp, #-428]
	ldr	r3, [fp, #-428]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L3
.L8:
	ldr	r3, [fp, #-424]
	cmp	r3, #0
	beq	.L10
	ldr	r0, .L18+12
	bl	puts
	b	.L11
.L10:
	sub	r3, fp, #408
	mov	r1, #100
	mov	r0, r3
	bl	readlines
	str	r0, [fp, #-412]
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	ble	.L12
	ldr	r3, .L18+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-412]
	sub	r2, r3, #1
	sub	r0, fp, #408
	ldr	r3, .L18+16
	mov	r1, #0
	bl	myqsort
	b	.L14
.L13:
	ldr	r3, [fp, #-412]
	sub	r2, r3, #1
	sub	r0, fp, #408
	ldr	r3, .L18+16
	mov	r1, #0
	bl	myqsort
.L14:
	ldr	r3, .L18+4
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #2
	sub	r3, fp, #408
	ldr	r1, [fp, #-412]
	mov	r0, r3
	bl	writelines
	b	.L11
.L12:
	ldr	r0, .L18+20
	bl	puts
	mvn	r3, #0
	str	r3, [fp, #-420]
.L11:
	ldr	r3, [fp, #-420]
	ldr	r2, .L18
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC3
	.word	option
	.word	.LC0
	.word	.LC1
	.word	numcmp
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	writelines
	.syntax unified
	.arm
	.fpu softvfp
	.type	writelines, %function
writelines:
	@ 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	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L23
	b	.L27
.L21:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L25
.L26:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L25:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L26
.L27:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writelines, .-writelines
	.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	.L36
	mvn	r3, #0
	b	.L31
.L36:
	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	.L37
	mov	r3, #1
	b	.L31
.L37:
	mov	r3, #0
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	numcmp, .-numcmp
	.section	.rodata
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readlines
	.syntax unified
	.arm
	.fpu softvfp
	.type	readlines, %function
readlines:
	@ args = 0, pretend = 0, frame = 1024
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	str	r0, [fp, #-1024]
	str	r1, [fp, #-1028]
	ldr	r3, .L46
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1020]
	b	.L39
.L43:
	ldr	r2, [fp, #-1020]
	ldr	r3, [fp, #-1028]
	cmp	r2, r3
	bge	.L40
	ldr	r0, [fp, #-1016]
	bl	alloc
	str	r0, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	cmp	r3, #0
	bne	.L41
.L40:
	mvn	r3, #0
	b	.L44
.L41:
	ldr	r3, [fp, #-1016]
	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, #-1012]
	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, #-1012]
	str	r2, [r3]
.L39:
	sub	r3, fp, #1008
	mov	r1, #1000
	mov	r0, r3
	bl	mgetline
	str	r0, [fp, #-1016]
	ldr	r3, [fp, #-1016]
	cmp	r3, #0
	bgt	.L43
	ldr	r3, [fp, #-1020]
.L44:
	ldr	r2, .L46
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L45
	bl	__stack_chk_fail
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC4
	.size	readlines, .-readlines
	.local	allocbuf
	.comm	allocbuf,1000,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, .L51
	ldr	r3, .L51+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bgt	.L49
	ldr	r3, .L51+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L51+4
	str	r3, [r2]
	ldr	r3, .L51+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	add	r3, r2, r3
	b	.L50
.L49:
	mov	r3, #0
.L50:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L52:
	.align	2
.L51:
	.word	allocbuf+1000
	.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, .L56
	cmp	r3, r2
	bcc	.L55
	ldr	r2, .L56+4
	ldr	r3, [fp, #-8]
	cmp	r3, r2
	bcs	.L55
	ldr	r2, .L56+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L55:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L57:
	.align	2
.L56:
	.word	allocbuf
	.word	allocbuf+1000
	.word	allocp
	.size	afree, .-afree
	.align	2
	.global	myqsort
	.syntax unified
	.arm
	.fpu softvfp
	.type	myqsort, %function
myqsort:
	@ 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	.L64
	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	.L61
.L63:
	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	.L62
	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
.L62:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L61:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L63
	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	myqsort
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	myqsort
	b	.L58
.L64:
	nop
.L58:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	myqsort, .-myqsort
	.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	mgetline
	.syntax unified
	.arm
	.fpu softvfp
	.type	mgetline, %function
mgetline:
	@ 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	.L67
.L69:
	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]
.L67:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L68
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L68
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L69
.L68:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L70
	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]
.L70:
	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	mgetline, .-mgetline
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
