	.file	"478141.c"
	.intel_syntax noprefix
	.text
	.globl	POS1
	.bss
	.align 4
	.type	POS1, @object
	.size	POS1, 4
POS1:
	.zero	4
	.globl	POS2
	.align 4
	.type	POS2, @object
	.size	POS2, 4
POS2:
	.zero	4
	.globl	OPTION
	.align 4
	.type	OPTION, @object
	.size	OPTION, 4
OPTION:
	.zero	4
	.section	.rodata
.LC0:
	.string	"Input too big to sort"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.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	rdx, QWORD PTR -848[rbp]
	mov	eax, DWORD PTR -836[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	readargs
	mov	DWORD PTR -824[rbp], 0
	jmp	.L2
.L3:
	mov	eax, DWORD PTR -824[rbp]
	cdqe
	mov	QWORD PTR -816[rbp+rax*8], 0
	add	DWORD PTR -824[rbp], 1
.L2:
	cmp	DWORD PTR -824[rbp], 99
	jle	.L3
	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	.L4
	mov	eax, DWORD PTR OPTION[rip]
	and	eax, 1
	test	eax, eax
	je	.L5
	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	u_qsort
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -820[rbp]
	lea	edx, -1[rax]
	lea	rax, -816[rbp]
	lea	rcx, charcmp[rip]
	mov	esi, 0
	mov	rdi, rax
	call	u_qsort
.L6:
	mov	eax, DWORD PTR OPTION[rip]
	and	eax, 2
	mov	edx, eax
	mov	ecx, DWORD PTR -820[rbp]
	lea	rax, -816[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	writelines
	call	getchar@PLT
	mov	eax, 0
	jmp	.L9
.L4:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, -1
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"Illegal OPTION"
	.align 8
.LC2:
	.string	"Usage: sort -dfnr [+pos1] [-pos2]"
	.text
	.globl	readargs
	.type	readargs, @function
readargs:
.LFB7:
	.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
	jmp	.L12
.L23:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 45
	jne	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 2048
	test	eax, eax
	jne	.L13
	jmp	.L14
.L20:
	cmp	DWORD PTR -8[rbp], 114
	je	.L15
	cmp	DWORD PTR -8[rbp], 114
	jg	.L16
	cmp	DWORD PTR -8[rbp], 110
	je	.L17
	cmp	DWORD PTR -8[rbp], 110
	jg	.L16
	cmp	DWORD PTR -8[rbp], 100
	je	.L18
	cmp	DWORD PTR -8[rbp], 102
	je	.L19
	jmp	.L16
.L18:
	mov	eax, DWORD PTR OPTION[rip]
	or	eax, 8
	mov	DWORD PTR OPTION[rip], eax
	jmp	.L14
.L19:
	mov	eax, DWORD PTR OPTION[rip]
	or	eax, 4
	mov	DWORD PTR OPTION[rip], eax
	jmp	.L14
.L17:
	mov	eax, DWORD PTR OPTION[rip]
	or	eax, 1
	mov	DWORD PTR OPTION[rip], eax
	jmp	.L14
.L15:
	mov	eax, DWORD PTR OPTION[rip]
	or	eax, 2
	mov	DWORD PTR OPTION[rip], eax
	jmp	.L14
.L16:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	error
	nop
.L14:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jne	.L20
	jmp	.L12
.L13:
	cmp	DWORD PTR -8[rbp], 45
	jne	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR POS2[rip], eax
	jmp	.L12
.L21:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR POS1[rip], eax
	mov	eax, DWORD PTR POS1[rip]
	test	eax, eax
	jns	.L12
	lea	rdi, .LC2[rip]
	call	error
.L12:
	sub	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	jle	.L22
	add	QWORD PTR -32[rbp], 8
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 45
	je	.L23
.L22:
	cmp	DWORD PTR -8[rbp], 43
	je	.L23
	cmp	DWORD PTR -20[rbp], 0
	jne	.L24
	mov	edx, DWORD PTR POS1[rip]
	mov	eax, DWORD PTR POS2[rip]
	cmp	edx, eax
	jle	.L26
.L24:
	lea	rdi, .LC2[rip]
	call	error
.L26:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	readargs, .-readargs
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 10000
buf:
	.zero	10000
	.globl	pbuf
	.section	.data.rel.local,"aw"
	.align 8
	.type	pbuf, @object
	.size	pbuf, 8
pbuf:
	.quad	buf
	.text
	.globl	readlines
	.type	readlines, @function
readlines:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	DWORD PTR -140[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -128[rbp], 0
	jmp	.L28
.L32:
	cmp	DWORD PTR -128[rbp], 100
	jg	.L29
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	call	alloc
	mov	QWORD PTR -120[rbp], rax
	cmp	QWORD PTR -120[rbp], 0
	jne	.L30
.L29:
	mov	eax, -1
	jmp	.L33
.L30:
	mov	eax, DWORD PTR -124[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -112[rbp+rax], 0
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -128[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -128[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -136[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	QWORD PTR [rdx], rax
.L28:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	Getline
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	jg	.L32
	mov	eax, DWORD PTR -128[rbp]
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	readlines, .-readlines
	.globl	alloc
	.type	alloc, @function
alloc:
.LFB9:
	.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
	mov	rdx, QWORD PTR pbuf[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rdx, rax
	lea	rax, buf[rip+10000]
	cmp	rdx, rax
	ja	.L36
	mov	rdx, QWORD PTR pbuf[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR pbuf[rip], rax
	mov	rdx, QWORD PTR pbuf[rip]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	neg	rax
	add	rax, rdx
	jmp	.L37
.L36:
	mov	eax, 0
.L37:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	alloc, .-alloc
	.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	.L39
.L41:
	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
.L39:
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	jle	.L40
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	je	.L40
	cmp	DWORD PTR -8[rbp], 10
	jne	.L41
.L40:
	cmp	DWORD PTR -8[rbp], 10
	jne	.L42
	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
.L42:
	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	u_qsort
	.type	u_qsort, @function
u_qsort:
.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, 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	.L50
	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	.L47
.L49:
	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	.L48
	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
.L48:
	add	DWORD PTR -8[rbp], 1
.L47:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L49
	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	u_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	u_qsort
	jmp	.L44
.L50:
	nop
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	u_qsort, .-u_qsort
	.globl	swap
	.type	swap, @function
swap:
.LFB12:
	.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
.LFE12:
	.size	swap, .-swap
	.globl	numcmp
	.type	numcmp, @function
numcmp:
.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, 144
	mov	QWORD PTR -136[rbp], rdi
	mov	QWORD PTR -144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	rdi, rax
	call	substr
	mov	rax, QWORD PTR -136[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -128[rbp], rax
	lea	rcx, -112[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	edx, 100
	mov	rsi, rcx
	mov	rdi, rax
	call	substr
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -120[rbp], rax
	movsd	xmm0, QWORD PTR -120[rbp]
	comisd	xmm0, QWORD PTR -128[rbp]
	jbe	.L62
	mov	eax, -1
	jmp	.L58
.L62:
	movsd	xmm0, QWORD PTR -128[rbp]
	comisd	xmm0, QWORD PTR -120[rbp]
	jbe	.L63
	mov	eax, 1
	jmp	.L58
.L63:
	mov	eax, 0
.L58:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L59
	call	__stack_chk_fail@PLT
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	numcmp, .-numcmp
	.globl	charcmp
	.type	charcmp, @function
charcmp:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	eax, DWORD PTR OPTION[rip]
	sar	eax, 2
	and	eax, 1
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR OPTION[rip]
	sar	eax, 3
	and	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR POS1[rip]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR POS2[rip]
	test	eax, eax
	jle	.L65
	mov	eax, DWORD PTR POS2[rip]
	mov	DWORD PTR -28[rbp], eax
	jmp	.L80
.L65:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	cmp	rbx, rax
	jbe	.L80
	mov	rax, QWORD PTR -64[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -28[rbp], eax
.L80:
	cmp	DWORD PTR -20[rbp], 0
	je	.L67
	jmp	.L68
.L70:
	add	DWORD PTR -36[rbp], 1
.L68:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L71
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8
	test	eax, eax
	jne	.L71
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L71
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L70
	jmp	.L71
.L72:
	add	DWORD PTR -32[rbp], 1
.L71:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L67
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	movsx	rcx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movsx	rax, al
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8
	test	eax, eax
	jne	.L67
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L67
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L72
.L67:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L73
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L73
	cmp	DWORD PTR -24[rbp], 0
	je	.L74
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	jmp	.L75
.L74:
	mov	eax, DWORD PTR -36[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
.L75:
	mov	BYTE PTR -38[rbp], al
	add	DWORD PTR -36[rbp], 1
	cmp	DWORD PTR -24[rbp], 0
	je	.L76
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	tolower@PLT
	jmp	.L77
.L76:
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
.L77:
	mov	BYTE PTR -37[rbp], al
	add	DWORD PTR -32[rbp], 1
	movzx	eax, BYTE PTR -38[rbp]
	cmp	al, BYTE PTR -37[rbp]
	jne	.L73
	cmp	BYTE PTR -38[rbp], 0
	jne	.L73
	mov	eax, 0
	jmp	.L78
.L73:
	movzx	eax, BYTE PTR -38[rbp]
	cmp	al, BYTE PTR -37[rbp]
	jne	.L79
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L79
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L80
.L79:
	movsx	eax, BYTE PTR -38[rbp]
	movsx	edx, BYTE PTR -37[rbp]
	sub	eax, edx
.L78:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	charcmp, .-charcmp
	.section	.rodata
.LC3:
	.string	"substr: string too short"
	.text
	.globl	substr
	.type	substr, @function
substr:
.LFB15:
	.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	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR POS2[rip]
	test	eax, eax
	jle	.L82
	mov	eax, DWORD PTR POS2[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L82
	mov	eax, DWORD PTR POS2[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L83
.L82:
	mov	eax, DWORD PTR POS2[rip]
	test	eax, eax
	jle	.L83
	mov	eax, DWORD PTR POS2[rip]
	cmp	DWORD PTR -4[rbp], eax
	jge	.L83
	lea	rdi, .LC3[rip]
	call	error
.L83:
	mov	DWORD PTR -8[rbp], 0
	mov	eax, DWORD PTR POS1[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L84
.L85:
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -8[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	add	DWORD PTR -12[rbp], 1
	add	DWORD PTR -8[rbp], 1
.L84:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L85
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	substr, .-substr
	.section	.rodata
.LC4:
	.string	"%s"
	.text
	.globl	error
	.type	error, @function
error:
.LFB16:
	.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	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE16:
	.size	error, .-error
	.globl	writelines
	.type	writelines, @function
writelines:
.LFB17:
	.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	.L88
	mov	eax, DWORD PTR -28[rbp]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L89
.L90:
	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
.L89:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L90
	jmp	.L94
.L88:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L92
.L93:
	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
.L92:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L93
.L94:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	writelines, .-writelines
	.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	"478141.c"
	.text
	.global	POS1
	.bss
	.align	2
	.type	POS1, %object
	.size	POS1, 4
POS1:
	.space	4
	.global	POS2
	.align	2
	.type	POS2, %object
	.size	POS2, 4
POS2:
	.space	4
	.global	OPTION
	.align	2
	.type	OPTION, %object
	.size	OPTION, 4
OPTION:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"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 = 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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, [fp, #-428]
	ldr	r0, [fp, #-424]
	bl	readargs
	mov	r3, #0
	str	r3, [fp, #-416]
	b	.L2
.L3:
	ldr	r3, [fp, #-416]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-404]
	ldr	r3, [fp, #-416]
	add	r3, r3, #1
	str	r3, [fp, #-416]
.L2:
	ldr	r3, [fp, #-416]
	cmp	r3, #99
	ble	.L3
	sub	r3, fp, #408
	mov	r1, #100
	mov	r0, r3
	bl	readlines
	str	r0, [fp, #-412]
	ldr	r3, [fp, #-412]
	cmp	r3, #0
	ble	.L4
	ldr	r3, .L11+4
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-412]
	sub	r2, r3, #1
	sub	r0, fp, #408
	ldr	r3, .L11+8
	mov	r1, #0
	bl	u_qsort
	b	.L6
.L5:
	ldr	r3, [fp, #-412]
	sub	r2, r3, #1
	sub	r0, fp, #408
	ldr	r3, .L11+12
	mov	r1, #0
	bl	u_qsort
.L6:
	ldr	r3, .L11+4
	ldr	r3, [r3]
	and	r2, r3, #2
	sub	r3, fp, #408
	ldr	r1, [fp, #-412]
	mov	r0, r3
	bl	writelines
	bl	getchar
	mov	r3, #0
	b	.L9
.L4:
	ldr	r0, .L11+16
	bl	puts
	mvn	r3, #0
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC1
	.word	OPTION
	.word	numcmp
	.word	charcmp
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Illegal OPTION\000"
	.align	2
.LC3:
	.ascii	"Usage: sort -dfnr [+pos1] [-pos2]\000"
	.text
	.align	2
	.global	readargs
	.syntax unified
	.arm
	.fpu softvfp
	.type	readargs, %function
readargs:
	@ 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]
	b	.L14
.L26:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #45
	bne	.L15
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #2048
	cmp	r3, #0
	bne	.L15
	b	.L16
.L23:
	ldr	r3, [fp, #-12]
	sub	r3, r3, #100
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L17
.L19:
	.word	.L22
	.word	.L17
	.word	.L21
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L20
	.word	.L17
	.word	.L17
	.word	.L17
	.word	.L18
.L22:
	ldr	r3, .L30
	ldr	r3, [r3]
	orr	r3, r3, #8
	ldr	r2, .L30
	str	r3, [r2]
	b	.L16
.L21:
	ldr	r3, .L30
	ldr	r3, [r3]
	orr	r3, r3, #4
	ldr	r2, .L30
	str	r3, [r2]
	b	.L16
.L20:
	ldr	r3, .L30
	ldr	r3, [r3]
	orr	r3, r3, #1
	ldr	r2, .L30
	str	r3, [r2]
	b	.L16
.L18:
	ldr	r3, .L30
	ldr	r3, [r3]
	orr	r3, r3, #2
	ldr	r2, .L30
	str	r3, [r2]
	b	.L16
.L17:
	ldr	r0, .L30+4
	bl	puts
	ldr	r0, .L30+8
	bl	error
	nop
.L16:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L23
	b	.L14
.L15:
	ldr	r3, [fp, #-12]
	cmp	r3, #45
	bne	.L24
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L30+12
	str	r3, [r2]
	b	.L14
.L24:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L30+16
	str	r3, [r2]
	ldr	r3, .L30+16
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L30+8
	bl	error
.L14:
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L25
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #45
	beq	.L26
.L25:
	ldr	r3, [fp, #-12]
	cmp	r3, #43
	beq	.L26
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L30+16
	ldr	r2, [r3]
	ldr	r3, .L30+12
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L29
.L27:
	ldr	r0, .L30+8
	bl	error
.L29:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	OPTION
	.word	.LC2
	.word	.LC3
	.word	POS2
	.word	POS1
	.size	readargs, .-readargs
	.comm	buf,10000,4
	.global	pbuf
	.data
	.align	2
	.type	pbuf, %object
	.size	pbuf, 4
pbuf:
	.word	buf
	.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 = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L40
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-120]
	b	.L33
.L37:
	ldr	r3, [fp, #-120]
	cmp	r3, #100
	bgt	.L34
	ldr	r0, [fp, #-116]
	bl	alloc
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bne	.L35
.L34:
	mvn	r3, #0
	b	.L38
.L35:
	ldr	r3, [fp, #-116]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-104]
	sub	r3, fp, #108
	mov	r1, r3
	ldr	r0, [fp, #-112]
	bl	strcpy
	ldr	r3, [fp, #-120]
	add	r2, r3, #1
	str	r2, [fp, #-120]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-128]
	add	r3, r2, r3
	ldr	r2, [fp, #-112]
	str	r2, [r3]
.L33:
	sub	r3, fp, #108
	mov	r1, #100
	mov	r0, r3
	bl	Getline
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	bgt	.L37
	ldr	r3, [fp, #-120]
.L38:
	ldr	r2, .L40
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	.LC4
	.size	readlines, .-readlines
	.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	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L45+4
	cmp	r3, r2
	bhi	.L43
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L45
	str	r3, [r2]
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	add	r3, r2, r3
	b	.L44
.L43:
	mov	r3, #0
.L44:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L46:
	.align	2
.L45:
	.word	pbuf
	.word	buf+10000
	.size	alloc, .-alloc
	.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	.L48
.L50:
	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]
.L48:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L49
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L49
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L50
.L49:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L51
	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]
.L51:
	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
	.align	2
	.global	u_qsort
	.syntax unified
	.arm
	.fpu softvfp
	.type	u_qsort, %function
u_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	.L59
	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	.L56
.L58:
	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	.L57
	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
.L57:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L56:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L58
	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	u_qsort
	ldr	r3, [fp, #-8]
	add	r1, r3, #1
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	u_qsort
	b	.L53
.L59:
	nop
.L53:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	u_qsort, .-u_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
	.global	__aeabi_dcmplt
	.global	__aeabi_dcmpgt
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	numcmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	numcmp, %function
numcmp:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	substr
	ldr	r0, [fp, #-128]
	bl	atof
	str	r0, [fp, #-124]
	str	r1, [fp, #-120]
	sub	r3, fp, #108
	mov	r2, #100
	mov	r1, r3
	ldr	r0, [fp, #-128]
	bl	substr
	ldr	r0, [fp, #-132]
	bl	atof
	str	r0, [fp, #-116]
	str	r1, [fp, #-112]
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	mvn	r3, #0
	b	.L67
.L71:
	sub	r3, fp, #116
	ldmia	r3, {r2-r3}
	sub	r1, fp, #124
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L72
	mov	r3, #1
	b	.L67
.L72:
	mov	r3, #0
.L67:
	ldr	r2, .L73
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L68
	bl	__stack_chk_fail
.L68:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC5
	.size	numcmp, .-numcmp
	.align	2
	.global	charcmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	charcmp, %function
charcmp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L92
	ldr	r3, [r3]
	asr	r3, r3, #2
	and	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, .L92
	ldr	r3, [r3]
	asr	r3, r3, #3
	and	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L92+4
	ldr	r3, [r3]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-32]
	ldr	r3, .L92+8
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L76
	ldr	r3, .L92+8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L91
.L76:
	ldr	r0, [fp, #-40]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
	ldr	r4, [fp, #-24]
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	cmp	r4, r3
	bls	.L91
	ldr	r0, [fp, #-44]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-24]
.L91:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L78
	b	.L79
.L81:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L79:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L82
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r1, [fp, #-40]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L82
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L82
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L81
	b	.L82
.L83:
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L82:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L78
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-28]
	ldr	r1, [fp, #-44]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L78
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L83
.L78:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L84
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L84
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L85
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	b	.L86
.L85:
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
.L86:
	strb	r3, [fp, #-34]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L87
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower
	mov	r3, r0
	and	r3, r3, #255
	b	.L88
.L87:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-44]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
.L88:
	strb	r3, [fp, #-33]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
	ldrb	r2, [fp, #-34]	@ zero_extendqisi2
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L84
	ldrb	r3, [fp, #-34]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L84
	mov	r3, #0
	b	.L89
.L84:
	ldrb	r2, [fp, #-34]	@ zero_extendqisi2
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L90
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L90
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L91
.L90:
	ldrb	r2, [fp, #-34]	@ zero_extendqisi2
	ldrb	r3, [fp, #-33]	@ zero_extendqisi2
	sub	r3, r2, r3
.L89:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L93:
	.align	2
.L92:
	.word	OPTION
	.word	POS1
	.word	POS2
	.size	charcmp, .-charcmp
	.section	.rodata
	.align	2
.LC6:
	.ascii	"substr: string too short\000"
	.text
	.align	2
	.global	substr
	.syntax unified
	.arm
	.fpu softvfp
	.type	substr, %function
substr:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, .L99
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L95
	ldr	r3, .L99
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L95
	ldr	r3, .L99
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L96
.L95:
	ldr	r3, .L99
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L96
	ldr	r3, .L99
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bge	.L96
	ldr	r0, .L99+4
	bl	error
.L96:
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L99+8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L97
.L98:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-28]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r1, [fp, #-28]
	add	r3, r1, r3
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L97:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L98
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L100:
	.align	2
.L99:
	.word	POS2
	.word	.LC6
	.word	POS1
	.size	substr, .-substr
	.section	.rodata
	.align	2
.LC7:
	.ascii	"%s\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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]
	ldr	r1, [fp, #-8]
	ldr	r0, .L102
	bl	printf
	mov	r0, #1
	bl	exit
.L103:
	.align	2
.L102:
	.word	.LC7
	.size	error, .-error
	.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	.L105
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L106
.L107:
	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]
.L106:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L107
	b	.L111
.L105:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L109
.L110:
	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]
.L109:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L110
.L111:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	writelines, .-writelines
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
