	.file	"154830064.c"
	.intel_syntax noprefix
	.text
	.globl	g_buffer
	.bss
	.align 32
	.type	g_buffer, @object
	.size	g_buffer, 400
g_buffer:
	.zero	400
	.globl	g_next
	.section	.data.rel.local,"aw"
	.align 8
	.type	g_next, @object
	.size	g_next, 8
g_next:
	.quad	g_buffer
	.text
	.globl	getch
	.type	getch, @function
getch:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR g_next[rip]
	lea	rdx, g_buffer[rip]
	cmp	rax, rdx
	jne	.L2
	call	getchar@PLT
	jmp	.L4
.L2:
	mov	rax, QWORD PTR g_next[rip]
	sub	rax, 4
	mov	QWORD PTR g_next[rip], rax
	mov	rax, QWORD PTR g_next[rip]
	mov	eax, DWORD PTR [rax]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getch, .-getch
	.globl	ungetch
	.type	ungetch, @function
ungetch:
.LFB7:
	.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	rax, QWORD PTR g_next[rip]
	lea	rdx, g_buffer[rip+400]
	cmp	rax, rdx
	je	.L6
	mov	rax, QWORD PTR g_next[rip]
	lea	rdx, 4[rax]
	mov	QWORD PTR g_next[rip], rdx
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	mov	eax, DWORD PTR [rax]
	jmp	.L8
.L6:
	mov	eax, -1
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ungetch, .-ungetch
	.globl	getword
	.type	getword, @function
getword:
.LFB8:
	.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	nop
.L11:
	call	__ctype_b_loc@PLT
	mov	rbx, QWORD PTR [rax]
	mov	eax, 0
	call	getch
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rbx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8192
	test	eax, eax
	je	.L10
	cmp	DWORD PTR -20[rbp], 10
	jne	.L11
.L10:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	ungetch
	mov	DWORD PTR -24[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -24[rbp], edx
	cmp	DWORD PTR -44[rbp], eax
	jle	.L12
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	edx, DWORD PTR -20[rbp]
	mov	BYTE PTR [rax], dl
.L12:
	mov	eax, 0
	call	getch
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	je	.L13
	call	__ctype_b_loc@PLT
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, rax
	add	rax, rdx
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	and	eax, 8
	test	eax, eax
	jne	.L14
	cmp	DWORD PTR -20[rbp], 95
	je	.L14
.L13:
	mov	rax, QWORD PTR -40[rbp]
	mov	BYTE PTR [rax], 0
	cmp	DWORD PTR -20[rbp], -1
	jne	.L15
	mov	eax, -1
	jmp	.L16
.L15:
	cmp	DWORD PTR -20[rbp], 10
	jne	.L17
	mov	eax, DWORD PTR line.0[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR line.0[rip], edx
	jmp	.L16
.L17:
	mov	eax, DWORD PTR line.0[rip]
.L16:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getword, .-getword
	.globl	g_num_nodes
	.bss
	.align 4
	.type	g_num_nodes, @object
	.size	g_num_nodes, 4
g_num_nodes:
	.zero	4
	.text
	.globl	addnode
	.type	addnode, @function
addnode:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L19
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR g_num_nodes[rip]
	add	eax, 1
	mov	DWORD PTR g_num_nodes[rip], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 1
	jmp	.L20
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], edx
	jmp	.L20
.L21:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L22
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addnode
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	jmp	.L20
.L22:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addnode
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx], rax
.L20:
	mov	rax, QWORD PTR -24[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	addnode, .-addnode
	.globl	flatten
	.type	flatten, @function
flatten:
.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	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L25
	mov	rax, QWORD PTR -32[rbp]
	jmp	.L26
.L25:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	flatten
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	add	QWORD PTR -8[rbp], 32
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	flatten
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	flatten, .-flatten
	.globl	swap
	.type	swap, @function
swap:
.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	je	.L30
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 8[rcx]
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR 16[rcx]
	mov	rdx, QWORD PTR 24[rcx]
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -8[rbp], rdx
	mov	rcx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rsi]
	mov	rdx, QWORD PTR 8[rsi]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR 16[rsi]
	mov	rdx, QWORD PTR 24[rsi]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
	mov	rcx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	QWORD PTR 24[rcx], rdx
	jmp	.L27
.L30:
	nop
.L27:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	swap, .-swap
	.globl	quicksort
	.type	quicksort, @function
quicksort:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -24[rbp]
	cmp	rax, 32
	jle	.L37
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -24[rbp]
	sar	rax, 5
	mov	rdx, rax
	shr	rdx, 63
	add	rax, rdx
	sar	rax
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 32
	mov	QWORD PTR -8[rbp], rax
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	edx, eax
	jle	.L35
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	add	QWORD PTR -16[rbp], 32
.L35:
	add	QWORD PTR -8[rbp], 32
.L34:
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jne	.L36
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	quicksort
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 32[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	quicksort
	jmp	.L31
.L37:
	nop
.L31:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	quicksort, .-quicksort
	.section	.rodata
.LC0:
	.string	"get %s at line %d\n"
	.align 8
.LC1:
	.string	"================================================================"
.LC2:
	.string	"There are %d distinct words\n"
.LC3:
	.string	"%d: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -128[rbp], 0
	jmp	.L39
.L40:
	movzx	eax, BYTE PTR -112[rbp]
	test	al, al
	je	.L39
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -112[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -112[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addnode
	mov	QWORD PTR -128[rbp], rax
.L39:
	lea	rax, -112[rbp]
	mov	esi, 100
	mov	rdi, rax
	call	getword
	mov	DWORD PTR -132[rbp], eax
	cmp	DWORD PTR -132[rbp], -1
	jne	.L40
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, DWORD PTR g_num_nodes[rip]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR g_num_nodes[rip]
	cdqe
	sal	rax, 5
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -120[rbp], rax
	mov	rdx, QWORD PTR -120[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	flatten
	mov	DWORD PTR -140[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -140[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 24[rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -140[rbp], 1
.L41:
	mov	eax, DWORD PTR g_num_nodes[rip]
	cmp	DWORD PTR -140[rbp], eax
	jne	.L42
	mov	eax, DWORD PTR g_num_nodes[rip]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	quicksort
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	DWORD PTR -136[rbp], 0
	jmp	.L43
.L44:
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 5
	mov	rdx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -136[rbp]
	cdqe
	sal	rax, 5
	mov	rcx, rax
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 24[rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -136[rbp], 1
.L43:
	mov	eax, DWORD PTR g_num_nodes[rip]
	cmp	DWORD PTR -136[rbp], eax
	jne	.L44
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L46
	call	__stack_chk_fail@PLT
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.data
	.align 4
	.type	line.0, @object
	.size	line.0, 4
line.0:
	.long	1
	.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	"154830064.c"
	.text
	.comm	g_buffer,400,4
	.global	g_next
	.data
	.align	2
	.type	g_next, %object
	.size	g_next, 4
g_next:
	.word	g_buffer
	.text
	.align	2
	.global	getch
	.syntax unified
	.arm
	.fpu softvfp
	.type	getch, %function
getch:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, .L5+4
	cmp	r3, r2
	bne	.L2
	bl	getchar
	mov	r3, r0
	b	.L4
.L2:
	ldr	r3, .L5
	ldr	r3, [r3]
	sub	r3, r3, #4
	ldr	r2, .L5
	str	r3, [r2]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r3, [r3]
.L4:
	mov	r0, r3
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	g_next
	.word	g_buffer
	.size	getch, .-getch
	.align	2
	.global	ungetch
	.syntax unified
	.arm
	.fpu softvfp
	.type	ungetch, %function
ungetch:
	@ 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, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+4
	cmp	r3, r2
	beq	.L8
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r2, r3, #4
	ldr	r1, .L11
	str	r2, [r1]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [r3]
	b	.L10
.L8:
	mvn	r3, #0
.L10:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	g_next
	.word	g_buffer+400
	.size	ungetch, .-ungetch
	.align	2
	.global	getword
	.syntax unified
	.arm
	.fpu softvfp
	.type	getword, %function
getword:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	nop
.L15:
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r4, [r3]
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r4, r3
	ldrh	r3, [r3]
	and	r3, r3, #8192
	cmp	r3, #0
	beq	.L14
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L15
.L14:
	ldr	r0, [fp, #-16]
	bl	ungetch
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L16
.L18:
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-24]
	add	r2, r3, #1
	str	r2, [fp, #-24]
	ldr	r2, [fp, #-16]
	and	r2, r2, #255
	strb	r2, [r3]
.L16:
	bl	getch
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	beq	.L17
	bl	__ctype_b_loc
	mov	r3, r0
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L18
	ldr	r3, [fp, #-16]
	cmp	r3, #95
	beq	.L18
.L17:
	ldr	r3, [fp, #-24]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L19
	mvn	r3, #0
	b	.L20
.L19:
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L21
	ldr	r3, .L22
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L22
	str	r2, [r1]
	b	.L20
.L21:
	ldr	r3, .L22
	ldr	r3, [r3]
.L20:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L23:
	.align	2
.L22:
	.word	line.5409
	.size	getword, .-getword
	.global	g_num_nodes
	.bss
	.align	2
	.type	g_num_nodes, %object
	.size	g_num_nodes, 4
g_num_nodes:
	.space	4
	.text
	.align	2
	.global	addnode
	.syntax unified
	.arm
	.fpu softvfp
	.type	addnode, %function
addnode:
	@ 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, [fp, #-16]
	cmp	r3, #0
	bne	.L25
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, .L30
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L30
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3, #12]
	b	.L26
.L25:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r1, r3
	ldr	r0, [fp, #-20]
	bl	strcmp
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L27
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #12]
	b	.L26
.L27:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L28
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	addnode
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L26
.L28:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	addnode
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
.L26:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	g_num_nodes
	.size	addnode, .-addnode
	.align	2
	.global	flatten
	.syntax unified
	.arm
	.fpu softvfp
	.type	flatten, %function
flatten:
	@ 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, [fp, #-16]
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-20]
	b	.L34
.L33:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	flatten
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	flatten
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	flatten, .-flatten
	.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, #-24]
	str	r1, [fp, #-28]
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L38
	ldr	r3, [fp, #-24]
	sub	ip, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	mov	ip, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-28]
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	b	.L35
.L38:
	nop
.L35:
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	quicksort
	.syntax unified
	.arm
	.fpu softvfp
	.type	quicksort, %function
quicksort:
	@ 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	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	cmp	r3, #16
	ble	.L45
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	asr	r3, r3, #4
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	lsl	r3, r3, #4
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	swap
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	str	r3, [fp, #-8]
	b	.L42
.L44:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r2, r3
	ble	.L43
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	swap
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	str	r3, [fp, #-8]
.L42:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bne	.L44
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	swap
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	quicksort
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	quicksort
	b	.L39
.L45:
	nop
.L39:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	quicksort, .-quicksort
	.section	.rodata
	.align	2
.LC0:
	.ascii	"get %s at line %d\012\000"
	.align	2
.LC1:
	.ascii	"==================================================="
	.ascii	"=============\000"
	.align	2
.LC2:
	.ascii	"There are %d distinct words\012\000"
	.align	2
.LC3:
	.ascii	"%d: %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #128
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-132]
	b	.L47
.L48:
	ldrb	r3, [fp, #-112]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L47
	sub	r3, fp, #112
	ldr	r2, [fp, #-120]
	mov	r1, r3
	ldr	r0, .L55+4
	bl	printf
	sub	r3, fp, #112
	mov	r1, r3
	ldr	r0, [fp, #-132]
	bl	addnode
	str	r0, [fp, #-132]
.L47:
	sub	r3, fp, #112
	mov	r1, #100
	mov	r0, r3
	bl	getword
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmn	r3, #1
	bne	.L48
	ldr	r0, .L55+8
	bl	puts
	ldr	r3, .L55+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L55+16
	bl	printf
	ldr	r3, .L55+12
	ldr	r3, [r3]
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-116]
	ldr	r1, [fp, #-116]
	ldr	r0, [fp, #-132]
	bl	flatten
	mov	r3, #0
	str	r3, [fp, #-128]
	b	.L49
.L50:
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-128]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, .L55+20
	bl	printf
	ldr	r3, [fp, #-128]
	add	r3, r3, #1
	str	r3, [fp, #-128]
.L49:
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-128]
	cmp	r2, r3
	bne	.L50
	ldr	r3, .L55+12
	ldr	r3, [r3]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	quicksort
	ldr	r0, .L55+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-124]
	b	.L51
.L52:
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-124]
	lsl	r3, r3, #4
	ldr	r2, [fp, #-116]
	add	r3, r2, r3
	ldr	r3, [r3, #8]
	mov	r2, r3
	ldr	r0, .L55+20
	bl	printf
	ldr	r3, [fp, #-124]
	add	r3, r3, #1
	str	r3, [fp, #-124]
.L51:
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-124]
	cmp	r2, r3
	bne	.L52
	mov	r3, #0
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	g_num_nodes
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.data
	.align	2
	.type	line.5409, %object
	.size	line.5409, 4
line.5409:
	.word	1
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
