	.file	"873315.c"
	.intel_syntax noprefix
	.text
	.globl	users
	.bss
	.align 32
	.type	users, @object
	.size	users, 128
users:
	.zero	128
	.globl	counts
	.align 32
	.type	counts, @object
	.size	counts, 128
counts:
	.zero	128
	.globl	vote_num
	.align 4
	.type	vote_num, @object
	.size	vote_num, 4
vote_num:
	.zero	4
	.text
	.globl	read_until_nl_or_max
	.type	read_until_nl_or_max, @function
read_until_nl_or_max:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -8[rbp], 0
.L6:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	edx, 1
	mov	rsi, rax
	mov	edi, 0
	call	read@PLT
	cmp	rax, -1
	jne	.L2
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 10
	jne	.L3
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L1
.L3:
	add	QWORD PTR -8[rbp], 1
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -32[rbp]
	jb	.L6
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_until_nl_or_max, .-read_until_nl_or_max
	.section	.rodata
.LC0:
	.string	"\n"
	.text
	.globl	puts_heapless
	.type	puts_heapless, @function
puts_heapless:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	edx, 1
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	write@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	puts_heapless, .-puts_heapless
	.globl	print
	.type	print, @function
print:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	write@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	print, .-print
	.globl	read_int
	.type	read_int, @function
read_int:
.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -16[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -16[rbp]
	mov	esi, 8
	mov	rdi, rax
	call	read_until_nl_or_max
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	read_int, .-read_int
	.globl	vote_thread
	.type	vote_thread, @function
vote_thread:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	edi, 3
	call	sleep@PLT
	mov	eax, DWORD PTR vote_num[rip]
	movsx	rdx, eax
	lea	rcx, 0[0+rdx*8]
	lea	rdx, counts[rip]
	mov	rdx, QWORD PTR [rcx+rdx]
	lea	rcx, 1[rdx]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	vote_thread, .-vote_thread
	.section	.rodata
	.align 8
.LC1:
	.string	"Please enter the name's size: "
.LC2:
	.string	"Please enter the name: "
	.text
	.globl	create
	.type	create, @function
create:
.LFB11:
	.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -32[rbp], 0
	jmp	.L15
.L19:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jne	.L16
	lea	rdi, .LC1[rip]
	call	print
	mov	eax, 0
	call	read_int
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jle	.L20
	cmp	DWORD PTR -28[rbp], 4096
	jg	.L20
	mov	eax, DWORD PTR -28[rbp]
	add	eax, 16
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
	lea	rbx, 8[rax]
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR [rbx], rax
	lea	rdi, .LC2[rip]
	call	print
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 16
	mov	rsi, rax
	mov	rdi, rdx
	call	read_until_nl_or_max
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, users[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	jmp	.L20
.L16:
	add	DWORD PTR -32[rbp], 1
.L15:
	cmp	DWORD PTR -32[rbp], 15
	jle	.L19
	jmp	.L14
.L20:
	nop
.L14:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	create, .-create
	.section	.rodata
.LC3:
	.string	"Please enter the index: "
.LC4:
	.string	"name: %s\ncount: %lu\ntime: %lu"
	.text
	.globl	show
	.type	show, @function
show:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -288[rbp]
	mov	edx, 266
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rdi, .LC3[rip]
	call	print
	mov	eax, 0
	call	read_int
	mov	DWORD PTR -292[rbp], eax
	cmp	DWORD PTR -292[rbp], 0
	js	.L24
	cmp	DWORD PTR -292[rbp], 15
	jg	.L24
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L24
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rcx, QWORD PTR [rax]
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rdx, 16[rax]
	lea	rax, -288[rbp]
	mov	r9, rsi
	mov	r8, rcx
	mov	rcx, rdx
	lea	rdx, .LC4[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	puts_heapless
.L24:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L23
	call	__stack_chk_fail@PLT
.L23:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	show, .-show
	.globl	vote
	.type	vote, @function
vote:
.LFB13:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdi, .LC3[rip]
	call	print
	mov	eax, 0
	call	read_int
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	js	.L28
	cmp	DWORD PTR -36[rbp], 15
	jg	.L28
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L28
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR [rax]
	add	rdx, 1
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rbx, 8[rax]
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR [rbx], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR vote_num[rip], eax
	lea	rax, -32[rbp]
	mov	ecx, 0
	lea	rdx, vote_thread[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
.L28:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	vote, .-vote
	.section	.rodata
.LC5:
	.string	"%d\t->\t%lu"
	.text
	.globl	result
	.type	result, @function
result:
.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, 304
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -288[rbp]
	mov	edx, 266
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -292[rbp], 0
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L31
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	rcx, QWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -292[rbp]
	lea	rax, -288[rbp]
	mov	r8, rcx
	mov	ecx, edx
	lea	rdx, .LC5[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -288[rbp]
	mov	rdi, rax
	call	puts_heapless
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L31:
	add	DWORD PTR -292[rbp], 1
.L30:
	cmp	DWORD PTR -292[rbp], 15
	jle	.L32
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	result, .-result
	.section	.rodata
.LC6:
	.string	"%s"
.LC7:
	.string	" has freed"
	.text
	.globl	cancel
	.type	cancel, @function
cancel:
.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, 16
	lea	rdi, .LC3[rip]
	call	print
	mov	eax, 0
	call	read_int
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	js	.L34
	cmp	DWORD PTR -4[rbp], 15
	jg	.L34
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L34
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	lea	rcx, -1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdx, QWORD PTR [rax]
	sub	rdx, 1
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR [rax]
	cmp	rdx, rax
	jne	.L36
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jns	.L38
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	jmp	.L38
.L36:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, counts[rip]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	jns	.L34
	mov	eax, DWORD PTR vote_num[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	add	rax, 16
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC7[rip]
	call	puts_heapless
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, users[rip]
	mov	QWORD PTR [rdx+rax], 0
	jmp	.L34
.L38:
	nop
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	cancel, .-cancel
	.section	.rodata
.LC8:
	.string	"0: Create"
.LC9:
	.string	"1: Show"
.LC10:
	.string	"2: Vote"
.LC11:
	.string	"3: Result"
.LC12:
	.string	"4: Cancel"
.LC13:
	.string	"5: Exit"
.LC14:
	.string	"Action: "
.LC15:
	.string	"%d"
.LC16:
	.string	"Bye"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR stdin[rip]
	mov	ecx, 0
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	setvbuf@PLT
	mov	edi, 30
	call	alarm@PLT
.L47:
	lea	rdi, .LC8[rip]
	call	puts_heapless
	lea	rdi, .LC9[rip]
	call	puts_heapless
	lea	rdi, .LC10[rip]
	call	puts_heapless
	lea	rdi, .LC11[rip]
	call	puts_heapless
	lea	rdi, .LC12[rip]
	call	puts_heapless
	lea	rdi, .LC13[rip]
	call	puts_heapless
	lea	rdi, .LC14[rip]
	call	print
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	cmp	eax, -1
	jne	.L40
	mov	edi, 1
	call	exit@PLT
.L40:
	mov	eax, DWORD PTR -12[rbp]
	test	eax, eax
	jne	.L41
	mov	eax, 0
	call	create
.L41:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 1
	jne	.L42
	mov	eax, 0
	call	show
.L42:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 2
	jne	.L43
	mov	eax, 0
	call	vote
.L43:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 3
	jne	.L44
	mov	eax, 0
	call	result
.L44:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	jne	.L45
	mov	eax, 0
	call	cancel
.L45:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 5
	jne	.L47
	lea	rdi, .LC16[rip]
	call	puts_heapless
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.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	"873315.c"
	.text
	.comm	users,64,4
	.comm	counts,64,4
	.comm	vote_num,4,4
	.align	2
	.global	read_until_nl_or_max
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_until_nl_or_max, %function
read_until_nl_or_max:
	@ 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]
.L6:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #1
	mov	r1, r3
	mov	r0, #0
	bl	read
	mov	r3, r0
	cmn	r3, #1
	bne	.L2
	mov	r0, #1
	bl	exit
.L2:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L3
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L1
.L3:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bcc	.L6
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	read_until_nl_or_max, .-read_until_nl_or_max
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\000"
	.text
	.align	2
	.global	puts_heapless
	.syntax unified
	.arm
	.fpu softvfp
	.type	puts_heapless, %function
puts_heapless:
	@ 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	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	write
	mov	r2, #1
	ldr	r1, .L8
	mov	r0, #1
	bl	write
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	stdout
	.size	puts_heapless, .-puts_heapless
	.align	2
	.global	print
	.syntax unified
	.arm
	.fpu softvfp
	.type	print, %function
print:
	@ 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	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-8]
	mov	r0, #1
	bl	write
	ldr	r3, .L11
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	stdout
	.size	print, .-print
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_int, %function
read_int:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #16
	mov	r1, #8
	mov	r0, r3
	bl	read_until_nl_or_max
	sub	r3, fp, #16
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC1
	.size	read_int, .-read_int
	.align	2
	.global	vote_thread
	.syntax unified
	.arm
	.fpu softvfp
	.type	vote_thread, %function
vote_thread:
	@ 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]
	mov	r0, #3
	bl	sleep
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r2, .L20+4
	ldr	r2, [r2, r3, lsl #2]
	add	r2, r2, #1
	ldr	r1, .L20+4
	str	r2, [r1, r3, lsl #2]
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	vote_num
	.word	counts
	.size	vote_thread, .-vote_thread
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Please enter the name's size: \000"
	.align	2
.LC3:
	.ascii	"Please enter the name: \000"
	.text
	.align	2
	.global	create
	.syntax unified
	.arm
	.fpu softvfp
	.type	create, %function
create:
	@ 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
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L23
.L27:
	ldr	r2, .L29
	ldr	r3, [fp, #-24]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bne	.L24
	ldr	r0, .L29+4
	bl	print
	bl	read_int
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L28
	ldr	r3, [fp, #-20]
	cmp	r3, #4096
	bgt	.L28
	ldr	r3, [fp, #-20]
	add	r3, r3, #16
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r4, r3, #8
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [r4]
	ldr	r0, .L29+8
	bl	print
	ldr	r3, [fp, #-16]
	add	r3, r3, #16
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	read_until_nl_or_max
	ldr	r1, .L29
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	b	.L28
.L24:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L23:
	ldr	r3, [fp, #-24]
	cmp	r3, #15
	ble	.L27
	b	.L22
.L28:
	nop
.L22:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L30:
	.align	2
.L29:
	.word	users
	.word	.LC2
	.word	.LC3
	.size	create, .-create
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Please enter the index: \000"
	.align	2
.LC5:
	.ascii	"name: %s\012count: %lu\012time: %lu\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	show
	.syntax unified
	.arm
	.fpu softvfp
	.type	show, %function
show:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #276
	ldr	r2, .L35+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, .L35+8
	bl	print
	bl	read_int
	str	r0, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	blt	.L34
	ldr	r3, [fp, #-280]
	cmp	r3, #15
	bgt	.L34
	ldr	r2, .L35+12
	ldr	r3, [fp, #-280]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L34
	ldr	r2, .L35+12
	ldr	r3, [fp, #-280]
	ldr	r3, [r2, r3, lsl #2]
	add	r1, r3, #16
	ldr	r2, .L35+12
	ldr	r3, [fp, #-280]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r3, [r3]
	ldr	r0, .L35+12
	ldr	r2, [fp, #-280]
	ldr	r2, [r0, r2, lsl #2]
	add	r2, r2, #8
	ldr	r2, [r2]
	sub	r0, fp, #276
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r1
	ldr	r2, .L35+16
	mov	r1, #256
	bl	snprintf
	sub	r3, fp, #276
	mov	r0, r3
	bl	puts_heapless
.L34:
	nop
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC6
	.word	266
	.word	.LC4
	.word	users
	.word	.LC5
	.size	show, .-show
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vote
	.syntax unified
	.arm
	.fpu softvfp
	.type	vote, %function
vote:
	@ 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
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L41+4
	bl	print
	bl	read_int
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L40
	ldr	r3, [fp, #-20]
	cmp	r3, #15
	bgt	.L40
	ldr	r2, .L41+8
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L40
	ldr	r2, .L41+8
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
	ldr	r2, .L41+8
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	add	r4, r3, #8
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [r4]
	ldr	r2, .L41+12
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	sub	r0, fp, #24
	mov	r3, #0
	ldr	r2, .L41+16
	mov	r1, #0
	bl	pthread_create
.L40:
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L39
	bl	__stack_chk_fail
.L39:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC7
	.word	.LC4
	.word	users
	.word	vote_num
	.word	vote_thread
	.size	vote, .-vote
	.section	.rodata
	.align	2
.LC8:
	.ascii	"%d\011->\011%lu\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	result
	.syntax unified
	.arm
	.fpu softvfp
	.type	result, %function
result:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #288
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #276
	ldr	r2, .L48+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-280]
	b	.L44
.L46:
	ldr	r2, .L48+8
	ldr	r3, [fp, #-280]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L45
	ldr	r2, .L48+8
	ldr	r3, [fp, #-280]
	ldr	r3, [r2, r3, lsl #2]
	sub	r0, fp, #276
	str	r3, [sp]
	ldr	r3, [fp, #-280]
	ldr	r2, .L48+12
	mov	r1, #256
	bl	snprintf
	sub	r3, fp, #276
	mov	r0, r3
	bl	puts_heapless
	ldr	r3, .L48+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L45:
	ldr	r3, [fp, #-280]
	add	r3, r3, #1
	str	r3, [fp, #-280]
.L44:
	ldr	r3, [fp, #-280]
	cmp	r3, #15
	ble	.L46
	nop
	ldr	r3, .L48
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC9
	.word	266
	.word	counts
	.word	.LC8
	.word	stdout
	.size	result, .-result
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%s\000"
	.align	2
.LC11:
	.ascii	" has freed\000"
	.text
	.align	2
	.global	cancel
	.syntax unified
	.arm
	.fpu softvfp
	.type	cancel, %function
cancel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L55
	bl	print
	bl	read_int
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L50
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	bgt	.L50
	ldr	r2, .L55+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L50
	ldr	r2, .L55+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	sub	r2, r3, #1
	ldr	r1, .L55+8
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r2, .L55+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [r3]
	sub	r2, r2, #1
	str	r2, [r3]
	ldr	r2, .L55+8
	ldr	r3, [fp, #-8]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r1, .L55+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r1, r3, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L52
	ldr	r2, .L55+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bge	.L54
	ldr	r2, .L55+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	b	.L54
.L52:
	ldr	r2, .L55+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	bge	.L50
	ldr	r3, .L55+12
	ldr	r3, [r3]
	ldr	r2, .L55+4
	ldr	r3, [r2, r3, lsl #2]
	add	r3, r3, #16
	mov	r1, r3
	ldr	r0, .L55+16
	bl	printf
	ldr	r3, .L55+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L55+24
	bl	puts_heapless
	ldr	r2, .L55+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r0, r3
	bl	free
	ldr	r2, .L55+4
	ldr	r3, [fp, #-8]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	b	.L50
.L54:
	nop
.L50:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC4
	.word	users
	.word	counts
	.word	vote_num
	.word	.LC10
	.word	stdout
	.word	.LC11
	.size	cancel, .-cancel
	.section	.rodata
	.align	2
.LC12:
	.ascii	"0: Create\000"
	.align	2
.LC13:
	.ascii	"1: Show\000"
	.align	2
.LC14:
	.ascii	"2: Vote\000"
	.align	2
.LC15:
	.ascii	"3: Result\000"
	.align	2
.LC16:
	.ascii	"4: Cancel\000"
	.align	2
.LC17:
	.ascii	"5: Exit\000"
	.align	2
.LC18:
	.ascii	"Action: \000"
	.align	2
.LC19:
	.ascii	"%d\000"
	.align	2
.LC20:
	.ascii	"Bye\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L67+4
	ldr	r0, [r3]
	mov	r3, #0
	mov	r2, #2
	mov	r1, #0
	bl	setvbuf
	mov	r0, #30
	bl	alarm
.L65:
	ldr	r0, .L67+8
	bl	puts_heapless
	ldr	r0, .L67+12
	bl	puts_heapless
	ldr	r0, .L67+16
	bl	puts_heapless
	ldr	r0, .L67+20
	bl	puts_heapless
	ldr	r0, .L67+24
	bl	puts_heapless
	ldr	r0, .L67+28
	bl	puts_heapless
	ldr	r0, .L67+32
	bl	print
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L67+36
	bl	__isoc99_scanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L58
	mov	r0, #1
	bl	exit
.L58:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L59
	bl	create
.L59:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bne	.L60
	bl	show
.L60:
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	bne	.L61
	bl	vote
.L61:
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	bne	.L62
	bl	result
.L62:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bne	.L63
	bl	cancel
.L63:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	bne	.L65
	ldr	r0, .L67+40
	bl	puts_heapless
	mov	r0, #0
	bl	exit
.L68:
	.align	2
.L67:
	.word	.LC21
	.word	stdin
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
