	.file	"400816.c"
	.intel_syntax noprefix
	.text
	.local	g_buffer
	.comm	g_buffer,10000,32
	.section	.data.rel.local,"aw"
	.align 8
	.type	g_next, @object
	.size	g_next, 8
g_next:
	.quad	g_buffer
	.local	lineptr
	.comm	lineptr,40000,32
	.local	g_options
	.comm	g_options,4,4
	.section	.rodata
.LC0:
	.string	"unknown option %c\n"
	.align 8
.LC1:
	.string	"numeric = %d, reverse = %d, fold = %d, dir = %d\n"
.LC2:
	.string	"intput 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, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -20[rbp], 1
	jmp	.L2
.L12:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L3
	mov	DWORD PTR -16[rbp], 1
	jmp	.L4
.L11:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 114
	je	.L5
	cmp	eax, 114
	jg	.L6
	cmp	eax, 110
	je	.L7
	cmp	eax, 110
	jg	.L6
	cmp	eax, 100
	je	.L8
	cmp	eax, 102
	je	.L9
	jmp	.L6
.L7:
	mov	eax, DWORD PTR g_options[rip]
	or	eax, 1
	mov	DWORD PTR g_options[rip], eax
	jmp	.L10
.L5:
	mov	eax, DWORD PTR g_options[rip]
	or	eax, 2
	mov	DWORD PTR g_options[rip], eax
	jmp	.L10
.L9:
	mov	eax, DWORD PTR g_options[rip]
	or	eax, 4
	mov	DWORD PTR g_options[rip], eax
	jmp	.L10
.L8:
	mov	eax, DWORD PTR g_options[rip]
	or	eax, 8
	mov	DWORD PTR g_options[rip], eax
	jmp	.L10
.L6:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
.L10:
	add	DWORD PTR -16[rbp], 1
.L4:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -48[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L11
.L3:
	add	DWORD PTR -20[rbp], 1
.L2:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L12
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 8
	mov	edi, eax
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 4
	mov	esi, eax
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 2
	mov	ecx, eax
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	r9d, edi
	mov	r8d, esi
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	esi, 5000
	lea	rdi, lineptr[rip]
	call	readlines
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	js	.L13
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 1
	test	eax, eax
	je	.L14
	lea	rax, numcmp[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L15
.L14:
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 4
	test	eax, eax
	je	.L16
	lea	rax, rchacmp[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L15
.L16:
	lea	rax, rstrcmp[rip]
	mov	QWORD PTR -8[rbp], rax
.L15:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, rax
	mov	esi, 0
	lea	rdi, lineptr[rip]
	call	qsort_
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, lineptr[rip]
	call	writelines
	mov	eax, 0
	jmp	.L17
.L13:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	rev
	.type	rev, @function
rev:
.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
	mov	DWORD PTR -12[rbp], esi
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	rev, .-rev
	.globl	qsort_
	.type	qsort_, @function
qsort_:
.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, 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	.L25
	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	.L22
.L24:
	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	.L23
	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
.L23:
	add	DWORD PTR -8[rbp], 1
.L22:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L24
	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	.L19
.L25:
	nop
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	qsort_, .-qsort_
	.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	numcmp
	.type	numcmp, @function
numcmp:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	atof@PLT
	movq	rax, xmm0
	mov	QWORD PTR -8[rbp], rax
	movsd	xmm0, QWORD PTR -16[rbp]
	comisd	xmm0, QWORD PTR -8[rbp]
	seta	al
	movzx	eax, al
	movsd	xmm0, QWORD PTR -8[rbp]
	comisd	xmm0, QWORD PTR -16[rbp]
	seta	dl
	movzx	edx, dl
	sub	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 2
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR -20[rbp]
	neg	eax
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -20[rbp]
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	numcmp, .-numcmp
	.globl	rstrcmp
	.type	rstrcmp, @function
rstrcmp:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 8
	test	eax, eax
	je	.L31
	jmp	.L32
.L34:
	add	QWORD PTR -8[rbp], 1
.L32:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	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	.L35
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L35
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L34
	jmp	.L35
.L36:
	add	QWORD PTR -16[rbp], 1
.L35:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	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	.L31
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L31
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L36
.L31:
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 2
	test	eax, eax
	je	.L37
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	jmp	.L38
.L37:
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	rstrcmp, .-rstrcmp
	.globl	tolower_
	.type	tolower_, @function
tolower_:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	cmp	BYTE PTR -4[rbp], 64
	jbe	.L40
	cmp	BYTE PTR -4[rbp], 90
	ja	.L40
	movzx	eax, BYTE PTR -4[rbp]
	add	eax, 32
	jmp	.L41
.L40:
	movzx	eax, BYTE PTR -4[rbp]
.L41:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	tolower_, .-tolower_
	.globl	rchacmp
	.type	rchacmp, @function
rchacmp:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 8
	test	eax, eax
	je	.L52
	jmp	.L44
.L46:
	add	QWORD PTR -24[rbp], 1
.L44:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	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	.L47
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L47
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L46
	jmp	.L47
.L48:
	add	QWORD PTR -32[rbp], 1
.L47:
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	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	.L52
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	je	.L52
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L48
.L52:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	tolower_
	mov	BYTE PTR -6[rbp], al
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	tolower_
	mov	BYTE PTR -5[rbp], al
	movzx	eax, BYTE PTR -6[rbp]
	cmp	al, BYTE PTR -5[rbp]
	jne	.L49
	cmp	BYTE PTR -6[rbp], 0
	jne	.L52
.L49:
	movzx	eax, BYTE PTR -6[rbp]
	movzx	edx, BYTE PTR -5[rbp]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	nop
	mov	eax, DWORD PTR g_options[rip]
	and	eax, 2
	test	eax, eax
	je	.L53
	mov	eax, DWORD PTR -4[rbp]
	neg	eax
	jmp	.L54
.L53:
	mov	eax, DWORD PTR -4[rbp]
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	rchacmp, .-rchacmp
	.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 -20[rbp], edi
	mov	rdx, QWORD PTR g_next[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rdx, rax
	lea	rax, g_buffer[rip+10000]
	cmp	rdx, rax
	ja	.L57
	mov	rax, QWORD PTR g_next[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR g_next[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR g_next[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L58
.L57:
	mov	eax, 0
.L58:
	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
	cmp	QWORD PTR -8[rbp], 0
	je	.L62
	lea	rax, g_buffer[rip]
	cmp	QWORD PTR -8[rbp], rax
	jb	.L59
	mov	rax, QWORD PTR g_next[rip]
	cmp	QWORD PTR -8[rbp], rax
	jnb	.L59
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR g_next[rip], rax
	jmp	.L59
.L62:
	nop
.L59:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	afree, .-afree
	.globl	getline_
	.type	getline_, @function
getline_:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L64
.L66:
	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
.L64:
	sub	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 0
	jle	.L65
	call	getchar@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	je	.L65
	cmp	DWORD PTR -8[rbp], 10
	jne	.L66
.L65:
	cmp	DWORD PTR -8[rbp], 10
	jne	.L67
	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
.L67:
	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
.LFE16:
	.size	getline_, .-getline_
	.globl	readlines
	.type	readlines, @function
readlines:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	DWORD PTR -236[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -224[rbp], 0
	jmp	.L70
.L74:
	mov	eax, DWORD PTR -224[rbp]
	cmp	eax, DWORD PTR -236[rbp]
	jge	.L71
	mov	eax, DWORD PTR -220[rbp]
	mov	edi, eax
	call	alloc
	mov	QWORD PTR -216[rbp], rax
	cmp	QWORD PTR -216[rbp], 0
	jne	.L72
.L71:
	mov	eax, -1
	jmp	.L75
.L72:
	mov	eax, DWORD PTR -220[rbp]
	sub	eax, 1
	cdqe
	mov	BYTE PTR -208[rbp+rax], 0
	lea	rdx, -208[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -224[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -224[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -232[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	mov	QWORD PTR [rdx], rax
.L70:
	lea	rax, -208[rbp]
	mov	esi, 200
	mov	rdi, rax
	call	getline_
	mov	DWORD PTR -220[rbp], eax
	cmp	DWORD PTR -220[rbp], 0
	jg	.L74
	mov	eax, DWORD PTR -224[rbp]
.L75:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	readlines, .-readlines
	.globl	writelines
	.type	writelines, @function
writelines:
.LFB18:
	.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	.L78
.L79:
	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
.L78:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jl	.L79
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.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	"400816.c"
	.text
	.local	g_buffer
	.comm	g_buffer,10000,4
	.data
	.align	2
	.type	g_next, %object
	.size	g_next, 4
g_next:
	.word	g_buffer
	.local	lineptr
	.comm	lineptr,20000,4
	.local	g_options
	.comm	g_options,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"unknown option %c\012\000"
	.align	2
.LC1:
	.ascii	"numeric = %d, reverse = %d, fold = %d, dir = %d\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"intput too big to sort\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ 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]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L2
.L13:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L3
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L4
.L12:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #100
	cmp	r3, #14
	ldrls	pc, [pc, r3, asl #2]
	b	.L5
.L7:
	.word	.L10
	.word	.L5
	.word	.L9
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L8
	.word	.L5
	.word	.L5
	.word	.L5
	.word	.L6
.L8:
	ldr	r3, .L19
	ldr	r3, [r3]
	orr	r3, r3, #1
	ldr	r2, .L19
	str	r3, [r2]
	b	.L11
.L6:
	ldr	r3, .L19
	ldr	r3, [r3]
	orr	r3, r3, #2
	ldr	r2, .L19
	str	r3, [r2]
	b	.L11
.L9:
	ldr	r3, .L19
	ldr	r3, [r3]
	orr	r3, r3, #4
	ldr	r2, .L19
	str	r3, [r2]
	b	.L11
.L10:
	ldr	r3, .L19
	ldr	r3, [r3]
	orr	r3, r3, #8
	ldr	r2, .L19
	str	r3, [r2]
	b	.L11
.L5:
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L19+8
	bl	fprintf
	nop
.L11:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L4:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
.L3:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L2:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L13
	ldr	r3, .L19+4
	ldr	r0, [r3]
	ldr	r3, .L19
	ldr	r3, [r3]
	and	r1, r3, #1
	ldr	r3, .L19
	ldr	r3, [r3]
	and	ip, r3, #2
	ldr	r3, .L19
	ldr	r3, [r3]
	and	r3, r3, #4
	ldr	r2, .L19
	ldr	r2, [r2]
	and	r2, r2, #8
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, ip
	mov	r2, r1
	ldr	r1, .L19+12
	bl	fprintf
	ldr	r1, .L19+16
	ldr	r0, .L19+20
	bl	readlines
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L14
	ldr	r3, .L19
	ldr	r3, [r3]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L15
	ldr	r3, .L19+24
	str	r3, [fp, #-12]
	b	.L16
.L15:
	ldr	r3, .L19
	ldr	r3, [r3]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L17
	ldr	r3, .L19+28
	str	r3, [fp, #-12]
	b	.L16
.L17:
	ldr	r3, .L19+32
	str	r3, [fp, #-12]
.L16:
	ldr	r3, [fp, #-8]
	sub	r2, r3, #1
	ldr	r3, [fp, #-12]
	mov	r1, #0
	ldr	r0, .L19+20
	bl	qsort_
	ldr	r1, [fp, #-8]
	ldr	r0, .L19+20
	bl	writelines
	mov	r3, #0
	b	.L18
.L14:
	ldr	r0, .L19+36
	bl	puts
	mov	r3, #1
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	g_options
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	5000
	.word	lineptr
	.word	numcmp
	.word	rchacmp
	.word	rstrcmp
	.word	.LC2
	.size	main, .-main
	.align	2
	.global	rev
	.syntax unified
	.arm
	.fpu softvfp
	.type	rev, %function
rev:
	@ 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]
	str	r1, [fp, #-12]
	nop
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rev, .-rev
	.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	.L28
	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	.L25
.L27:
	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	.L26
	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
.L26:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L25:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L27
	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	.L22
.L28:
	nop
.L22:
	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
	.global	__aeabi_dcmpgt
	.global	__aeabi_dcmplt
	.align	2
	.global	numcmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	numcmp, %function
numcmp:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	atof
	str	r0, [fp, #-28]
	str	r1, [fp, #-24]
	ldr	r0, [fp, #-44]
	bl	atof
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	mov	r3, #1
	mov	r4, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmpgt
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	mov	r3, #0
	mov	r4, r3
.L31:
	and	r3, r4, #255
	mov	r5, r3
	mov	r3, #1
	mov	r4, r3
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L32
	mov	r3, #0
	mov	r4, r3
.L32:
	and	r3, r4, #255
	sub	r3, r5, r3
	str	r3, [fp, #-32]
	ldr	r3, .L35
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-32]
	rsb	r3, r3, #0
	b	.L34
.L33:
	ldr	r3, [fp, #-32]
.L34:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L36:
	.align	2
.L35:
	.word	g_options
	.size	numcmp, .-numcmp
	.align	2
	.global	rstrcmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	rstrcmp, %function
rstrcmp:
	@ 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]
	ldr	r3, .L46
	ldr	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L38
	b	.L39
.L41:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L39:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L42
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L42
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L41
	b	.L42
.L43:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L42:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L38
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L38
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L43
.L38:
	ldr	r3, .L46
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L44
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	strcmp
	mov	r3, r0
	b	.L45
.L44:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	strcmp
	mov	r3, r0
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	g_options
	.size	rstrcmp, .-rstrcmp
	.align	2
	.global	tolower_
	.syntax unified
	.arm
	.fpu softvfp
	.type	tolower_, %function
tolower_:
	@ 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
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #64
	bls	.L49
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	cmp	r3, #90
	bhi	.L49
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	add	r3, r3, #32
	b	.L50
.L49:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L50:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	tolower_, .-tolower_
	.align	2
	.global	rchacmp
	.syntax unified
	.arm
	.fpu softvfp
	.type	rchacmp, %function
rchacmp:
	@ 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]
	ldr	r3, .L65
	ldr	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L61
	b	.L53
.L55:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L53:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L56
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L56
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L55
	b	.L56
.L57:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L61
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L61
	ldr	r3, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L57
.L61:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower_
	mov	r3, r0
	strb	r3, [fp, #-10]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	tolower_
	mov	r3, r0
	strb	r3, [fp, #-9]
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L58
	ldrb	r3, [fp, #-10]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L61
.L58:
	ldrb	r2, [fp, #-10]	@ zero_extendqisi2
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	nop
	ldr	r3, .L65
	ldr	r3, [r3]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-8]
	rsb	r3, r3, #0
	b	.L63
.L62:
	ldr	r3, [fp, #-8]
.L63:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	g_options
	.size	rchacmp, .-rchacmp
	.align	2
	.global	alloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	alloc, %function
alloc:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L70+4
	cmp	r3, r2
	bhi	.L68
	ldr	r3, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L70
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	b	.L69
.L68:
	mov	r3, #0
.L69:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L71:
	.align	2
.L70:
	.word	g_next
	.word	g_buffer+10000
	.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]
	cmp	r3, #0
	beq	.L75
	ldr	r3, [fp, #-8]
	ldr	r2, .L76
	cmp	r3, r2
	bcc	.L72
	ldr	r3, .L76+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bcs	.L72
	ldr	r2, .L76+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L72
.L75:
	nop
.L72:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L77:
	.align	2
.L76:
	.word	g_buffer
	.word	g_next
	.size	afree, .-afree
	.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	.L79
.L81:
	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]
.L79:
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L80
	bl	getchar
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L80
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L81
.L80:
	ldr	r3, [fp, #-12]
	cmp	r3, #10
	bne	.L82
	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]
.L82:
	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
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	readlines
	.syntax unified
	.arm
	.fpu softvfp
	.type	readlines, %function
readlines:
	@ args = 0, pretend = 0, frame = 224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #224
	str	r0, [fp, #-224]
	str	r1, [fp, #-228]
	ldr	r3, .L92
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-220]
	b	.L85
.L89:
	ldr	r2, [fp, #-220]
	ldr	r3, [fp, #-228]
	cmp	r2, r3
	bge	.L86
	ldr	r0, [fp, #-216]
	bl	alloc
	str	r0, [fp, #-212]
	ldr	r3, [fp, #-212]
	cmp	r3, #0
	bne	.L87
.L86:
	mvn	r3, #0
	b	.L90
.L87:
	ldr	r3, [fp, #-216]
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-204]
	sub	r3, fp, #208
	mov	r1, r3
	ldr	r0, [fp, #-212]
	bl	strcpy
	ldr	r3, [fp, #-220]
	add	r2, r3, #1
	str	r2, [fp, #-220]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-224]
	add	r3, r2, r3
	ldr	r2, [fp, #-212]
	str	r2, [r3]
.L85:
	sub	r3, fp, #208
	mov	r1, #200
	mov	r0, r3
	bl	getline_
	str	r0, [fp, #-216]
	ldr	r3, [fp, #-216]
	cmp	r3, #0
	bgt	.L89
	ldr	r3, [fp, #-220]
.L90:
	ldr	r2, .L92
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L91
	bl	__stack_chk_fail
.L91:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L93:
	.align	2
.L92:
	.word	.LC3
	.size	readlines, .-readlines
	.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	.L95
.L96:
	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]
.L95:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L96
	nop
	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
