	.file	"28263695.c"
	.intel_syntax noprefix
	.text
	.globl	mutex
	.bss
	.align 32
	.type	mutex, @object
	.size	mutex, 40
mutex:
	.zero	40
	.globl	head
	.align 8
	.type	head, @object
	.size	head, 8
head:
	.zero	8
	.globl	tail
	.align 8
	.type	tail, @object
	.size	tail, 8
tail:
	.zero	8
	.section	.rodata
.LC0:
	.string	"Node could not be allocated"
.LC1:
	.string	"Enter name"
.LC2:
	.string	"%s"
.LC3:
	.string	"Duplicate, try again"
.LC4:
	.string	"Enter the number"
.LC5:
	.string	"%d"
	.text
	.globl	add
	.type	add, @function
add:
.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, 16
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L1
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L4
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR head[rip], rax
	jmp	.L5
.L4:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	lea	rdi, .LC3[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L1
.L7:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
.L6:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L8
.L5:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR tail[rip]
	test	rax, rax
	je	.L9
	mov	rax, QWORD PTR tail[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR tail[rip], rax
	mov	rax, QWORD PTR tail[rip]
	mov	QWORD PTR 24[rax], 0
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	add, .-add
	.globl	addpro
	.type	addpro, @function
addpro:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edi, 40
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L10
.L11:
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR head[rip]
	test	rax, rax
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR head[rip], rax
.L13:
	mov	rax, QWORD PTR tail[rip]
	test	rax, rax
	je	.L14
	mov	rax, QWORD PTR tail[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
.L14:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR tail[rip], rax
	mov	rax, QWORD PTR tail[rip]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
	nop
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	addpro, .-addpro
	.section	.rodata
.LC6:
	.string	"What is the size of table?"
.LC7:
	.string	"Value taken out"
.LC8:
	.string	"Last value taken out"
	.text
	.globl	delete
	.type	delete, @function
delete:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rax, QWORD PTR head[rip]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	jg	.L16
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR head[rip], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L15
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L18
.L20:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	jg	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L15
.L19:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	jle	.L18
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -32[rbp], rax
.L18:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -36[rbp]
	cmp	edx, eax
	jg	.L24
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR tail[rip], rax
	mov	rax, QWORD PTR tail[rip]
	mov	QWORD PTR 24[rax], 0
.L24:
	nop
.L15:
	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
.LFE8:
	.size	delete, .-delete
	.section	.rodata
.LC9:
	.string	"Name: %s\tNumber: %d\n"
	.text
	.globl	stats
	.type	stats, @function
stats:
.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 head[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L26
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rcx, 4[rdx]
	mov	edx, eax
	mov	rsi, rcx
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L26:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L27
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	stats, .-stats
	.section	.rodata
.LC10:
	.string	"w"
.LC11:
	.string	"list.txt"
.LC12:
	.string	"cannot open the file %s\n"
.LC13:
	.string	"%s %d\n"
	.text
	.globl	write_file
	.type	write_file, @function
write_file:
.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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L30
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L30:
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -80[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -80[rbp]
	lea	rsi, 4[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, edx
	mov	rdx, rsi
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -80[rbp], rax
.L31:
	cmp	QWORD PTR -80[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	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
.LFE10:
	.size	write_file, .-write_file
	.section	.rodata
.LC14:
	.string	"autosave"
.LC15:
	.string	"wb"
.LC16:
	.string	"list.bin"
	.text
	.globl	autosaver
	.type	autosaver, @function
autosaver:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -80[rbp], rax
.L38:
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rsi, .LC15[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L35
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L35:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L36
.L37:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 40
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -88[rbp], rax
.L36:
	cmp	QWORD PTR -88[rbp], 0
	jne	.L37
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	fclose@PLT
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	mov	edi, 5
	call	sleep@PLT
	jmp	.L38
	.cfi_endproc
.LFE11:
	.size	autosaver, .-autosaver
	.section	.rodata
.LC17:
	.string	"rb"
.LC18:
	.string	"before read in binary nodes"
.LC19:
	.string	"%s\t"
.LC20:
	.string	"%d\n"
	.text
	.globl	showbinary
	.type	showbinary, @function
showbinary:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -80[rbp], rax
	lea	rsi, .LC17[rip]
	lea	rdi, .LC16[rip]
	call	fopen@PLT
	mov	QWORD PTR -72[rbp], rax
	cmp	QWORD PTR -72[rbp], 0
	jne	.L41
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L41:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	QWORD PTR -88[rbp], 0
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -88[rbp], rax
	jmp	.L42
.L43:
	mov	rdx, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 40
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -88[rbp], rax
.L42:
	cmp	QWORD PTR -88[rbp], 0
	jne	.L43
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L44
	call	__stack_chk_fail@PLT
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	showbinary, .-showbinary
	.section	.rodata
	.align 8
.LC21:
	.string	"Welcome to Yuya's Restaurant what would you like to do?\n"
.LC22:
	.string	"Type 1 to add waitlist"
	.align 8
.LC23:
	.string	"Type 2 to eliminate an entry that fits the table"
.LC24:
	.string	"Type 3 to show all Waitlist"
.LC25:
	.string	"Type 4 to show binary content"
.LC26:
	.string	"Type 5 to quit"
.LC27:
	.string	"----------------------------\n"
.LC28:
	.string	"r"
.LC29:
	.string	"What would you like to do?"
	.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -124[rbp], 0
	lea	rdi, .LC21[rip]
	call	puts@PLT
	lea	rdi, .LC22[rip]
	call	puts@PLT
	lea	rdi, .LC23[rip]
	call	puts@PLT
	lea	rdi, .LC24[rip]
	call	puts@PLT
	lea	rdi, .LC25[rip]
	call	puts@PLT
	lea	rdi, .LC26[rip]
	call	puts@PLT
	lea	rdi, .LC27[rip]
	call	puts@PLT
	mov	esi, 0
	lea	rdi, mutex[rip]
	call	pthread_mutex_init@PLT
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -112[rbp], rax
	cmp	QWORD PTR -112[rbp], 0
	jne	.L47
	lea	rax, -64[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L47
.L48:
	mov	edx, DWORD PTR -132[rbp]
	lea	rax, -96[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	addpro
.L47:
	lea	rcx, -132[rbp]
	lea	rdx, -96[rbp]
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, -1
	jne	.L48
	mov	rax, QWORD PTR head[rip]
	mov	QWORD PTR -104[rbp], rax
	mov	rdx, QWORD PTR -104[rbp]
	lea	rax, -120[rbp]
	mov	rcx, rdx
	lea	rdx, autosaver[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	jmp	.L49
.L55:
	lea	rax, -128[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 1
	jne	.L50
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, 0
	call	add
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L51
.L50:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 2
	jne	.L52
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	eax, 0
	call	delete
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L51
.L52:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 3
	jne	.L53
	mov	eax, 0
	call	stats
	jmp	.L51
.L53:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 4
	jne	.L54
	lea	rdi, mutex[rip]
	call	pthread_mutex_lock@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	showbinary
	lea	rdi, mutex[rip]
	call	pthread_mutex_unlock@PLT
	jmp	.L51
.L54:
	mov	eax, DWORD PTR -128[rbp]
	cmp	eax, 5
	jne	.L51
	mov	rax, QWORD PTR -120[rbp]
	mov	rdi, rax
	call	pthread_cancel@PLT
	mov	eax, 0
	call	write_file
	mov	DWORD PTR -124[rbp], 1
.L51:
	lea	rdi, .LC29[rip]
	call	puts@PLT
.L49:
	cmp	DWORD PTR -124[rbp], 0
	je	.L55
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"28263695.c"
	.text
	.comm	mutex,24,4
	.global	head
	.bss
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.space	4
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Node could not be allocated\000"
	.align	2
.LC1:
	.ascii	"Enter name\000"
	.align	2
.LC2:
	.ascii	"%s\000"
	.align	2
.LC3:
	.ascii	"Duplicate, try again\000"
	.align	2
.LC4:
	.ascii	"Enter the number\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.text
	.align	2
	.global	add
	.syntax unified
	.arm
	.fpu softvfp
	.type	add, %function
add:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L10
	bl	puts
	b	.L1
.L2:
	ldr	r0, .L10+4
	bl	puts
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L10+8
	bl	__isoc99_scanf
	ldr	r3, .L10+12
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r2, .L10+12
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L5
.L4:
	ldr	r3, .L10+12
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L6
.L8:
	ldr	r3, [fp, #-12]
	add	r2, r3, #4
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L10+16
	bl	puts
	ldr	r0, [fp, #-8]
	bl	free
	b	.L1
.L7:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L8
.L5:
	ldr	r0, .L10+20
	bl	puts
	ldr	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L10+24
	bl	__isoc99_scanf
	ldr	r3, .L10+28
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L10+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #24]
.L9:
	ldr	r2, .L10+28
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L10+28
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	head
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	tail
	.size	add, .-add
	.align	2
	.global	addpro
	.syntax unified
	.arm
	.fpu softvfp
	.type	addpro, %function
addpro:
	@ 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	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L17
	bl	puts
	b	.L12
.L13:
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L15
	ldr	r2, .L17+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L15:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #24]
.L16:
	ldr	r2, .L17+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
	nop
.L12:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	head
	.word	tail
	.size	addpro, .-addpro
	.section	.rodata
	.align	2
.LC6:
	.ascii	"What is the size of table?\000"
	.align	2
.LC7:
	.ascii	"Value taken out\000"
	.align	2
.LC8:
	.ascii	"Last value taken out\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L29+4
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r0, .L29+8
	bl	puts
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L29+12
	bl	__isoc99_scanf
	ldr	r3, .L29+4
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bgt	.L20
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	ldr	r2, .L29+4
	str	r3, [r2]
	ldr	r0, [fp, #-20]
	bl	free
	b	.L19
.L20:
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-20]
	b	.L22
.L24:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bgt	.L23
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r0, .L29+16
	bl	puts
	b	.L19
.L23:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L22
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-20]
.L22:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bgt	.L28
	ldr	r0, .L29+20
	bl	puts
	ldr	r0, [fp, #-20]
	bl	free
	ldr	r2, .L29+24
	ldr	r3, [fp, #-16]
	str	r3, [r2]
	ldr	r3, .L29+24
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #24]
.L28:
	nop
.L19:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC9
	.word	head
	.word	.LC6
	.word	.LC5
	.word	.LC7
	.word	.LC8
	.word	tail
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Name: %s\011Number: %d\012\000"
	.text
	.align	2
	.global	stats
	.syntax unified
	.arm
	.fpu softvfp
	.type	stats, %function
stats:
	@ 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, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L32
.L33:
	ldr	r3, [fp, #-8]
	add	r1, r3, #4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r0, .L35+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	head
	.word	.LC10
	.size	stats, .-stats
	.section	.rodata
	.align	2
.LC11:
	.ascii	"w\000"
	.align	2
.LC12:
	.ascii	"list.txt\000"
	.align	2
.LC13:
	.ascii	"cannot open the file %s\012\000"
	.align	2
.LC14:
	.ascii	"%s %d\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	write_file
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_file, %function
write_file:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L42+4
	ldr	r0, .L42+8
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L38
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L42+12
	bl	printf
.L38:
	ldr	r3, .L42+16
	ldr	r3, [r3]
	str	r3, [fp, #-68]
	b	.L39
.L40:
	ldr	r3, [fp, #-68]
	add	r2, r3, #4
	ldr	r3, [fp, #-68]
	ldr	r3, [r3]
	ldr	r1, .L42+20
	ldr	r0, [fp, #-64]
	bl	fprintf
	ldr	r3, [fp, #-68]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-68]
.L39:
	ldr	r3, [fp, #-68]
	cmp	r3, #0
	bne	.L40
	ldr	r0, [fp, #-64]
	bl	fclose
	nop
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L41
	bl	__stack_chk_fail
.L41:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC15
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	head
	.word	.LC14
	.size	write_file, .-write_file
	.section	.rodata
	.align	2
.LC16:
	.ascii	"autosave\000"
	.align	2
.LC17:
	.ascii	"wb\000"
	.align	2
.LC18:
	.ascii	"list.bin\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	autosaver
	.syntax unified
	.arm
	.fpu softvfp
	.type	autosaver, %function
autosaver:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-68]
.L48:
	ldr	r0, .L50+4
	bl	pthread_mutex_lock
	ldr	r0, .L50+8
	bl	puts
	ldr	r1, .L50+12
	ldr	r0, .L50+16
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L45
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L50+20
	bl	printf
.L45:
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-72]
	b	.L46
.L47:
	ldr	r3, [fp, #-64]
	mov	r2, #1
	mov	r1, #32
	ldr	r0, [fp, #-72]
	bl	fwrite
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-72]
.L46:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L47
	ldr	r0, [fp, #-64]
	bl	fclose
	ldr	r0, .L50+4
	bl	pthread_mutex_unlock
	mov	r0, #5
	bl	sleep
	b	.L48
.L51:
	.align	2
.L50:
	.word	.LC19
	.word	mutex
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC13
	.size	autosaver, .-autosaver
	.section	.rodata
	.align	2
.LC20:
	.ascii	"rb\000"
	.align	2
.LC21:
	.ascii	"before read in binary nodes\000"
	.align	2
.LC22:
	.ascii	"%s\011\000"
	.align	2
.LC23:
	.ascii	"%d\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	showbinary
	.syntax unified
	.arm
	.fpu softvfp
	.type	showbinary, %function
showbinary:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L57
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-68]
	ldr	r1, .L57+4
	ldr	r0, .L57+8
	bl	fopen
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bne	.L53
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L57+12
	bl	printf
.L53:
	ldr	r0, .L57+16
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-72]
	b	.L54
.L55:
	ldr	r3, [fp, #-64]
	mov	r2, #1
	mov	r1, #32
	ldr	r0, [fp, #-72]
	bl	fread
	ldr	r3, [fp, #-72]
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L57+20
	bl	printf
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L57+24
	bl	printf
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #24]
	str	r3, [fp, #-72]
.L54:
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	bne	.L55
	nop
	ldr	r3, .L57
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	.LC24
	.word	.LC20
	.word	.LC18
	.word	.LC13
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.size	showbinary, .-showbinary
	.section	.rodata
	.align	2
.LC25:
	.ascii	"Welcome to Yuya's Restaurant what would you like to"
	.ascii	" do?\012\000"
	.align	2
.LC26:
	.ascii	"Type 1 to add waitlist\000"
	.align	2
.LC27:
	.ascii	"Type 2 to eliminate an entry that fits the table\000"
	.align	2
.LC28:
	.ascii	"Type 3 to show all Waitlist\000"
	.align	2
.LC29:
	.ascii	"Type 4 to show binary content\000"
	.align	2
.LC30:
	.ascii	"Type 5 to quit\000"
	.align	2
.LC31:
	.ascii	"----------------------------\012\000"
	.align	2
.LC32:
	.ascii	"r\000"
	.align	2
.LC33:
	.ascii	"What would you like to do?\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 112
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #112
	str	r0, [fp, #-112]
	str	r1, [fp, #-116]
	ldr	r3, .L72
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-92]
	ldr	r0, .L72+4
	bl	puts
	ldr	r0, .L72+8
	bl	puts
	ldr	r0, .L72+12
	bl	puts
	ldr	r0, .L72+16
	bl	puts
	ldr	r0, .L72+20
	bl	puts
	ldr	r0, .L72+24
	bl	puts
	ldr	r0, .L72+28
	bl	puts
	mov	r1, #0
	ldr	r0, .L72+32
	bl	pthread_mutex_init
	ldr	r3, [fp, #-116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L72+36
	mov	r0, r3
	bl	fopen
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bne	.L61
	sub	r3, fp, #60
	mov	r1, r3
	ldr	r0, .L72+40
	bl	printf
	b	.L61
.L62:
	ldr	r2, [fp, #-104]
	sub	r3, fp, #80
	mov	r1, r2
	mov	r0, r3
	bl	addpro
.L61:
	sub	r3, fp, #104
	sub	r2, fp, #80
	ldr	r1, .L72+44
	ldr	r0, [fp, #-88]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmn	r3, #1
	bne	.L62
	ldr	r3, .L72+48
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	sub	r0, fp, #96
	ldr	r3, [fp, #-84]
	ldr	r2, .L72+52
	mov	r1, #0
	bl	pthread_create
	b	.L63
.L69:
	sub	r3, fp, #100
	mov	r1, r3
	ldr	r0, .L72+56
	bl	__isoc99_scanf
	ldr	r3, [fp, #-100]
	cmp	r3, #1
	bne	.L64
	ldr	r0, .L72+32
	bl	pthread_mutex_lock
	bl	add
	ldr	r0, .L72+32
	bl	pthread_mutex_unlock
	b	.L65
.L64:
	ldr	r3, [fp, #-100]
	cmp	r3, #2
	bne	.L66
	ldr	r0, .L72+32
	bl	pthread_mutex_lock
	bl	delete
	ldr	r0, .L72+32
	bl	pthread_mutex_unlock
	b	.L65
.L66:
	ldr	r3, [fp, #-100]
	cmp	r3, #3
	bne	.L67
	bl	stats
	b	.L65
.L67:
	ldr	r3, [fp, #-100]
	cmp	r3, #4
	bne	.L68
	ldr	r0, .L72+32
	bl	pthread_mutex_lock
	ldr	r0, [fp, #-84]
	bl	showbinary
	ldr	r0, .L72+32
	bl	pthread_mutex_unlock
	b	.L65
.L68:
	ldr	r3, [fp, #-100]
	cmp	r3, #5
	bne	.L65
	ldr	r3, [fp, #-96]
	mov	r0, r3
	bl	pthread_cancel
	bl	write_file
	mov	r3, #1
	str	r3, [fp, #-92]
.L65:
	ldr	r0, .L72+60
	bl	puts
.L63:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	beq	.L69
	mov	r3, #0
	ldr	r2, .L72
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L71
	bl	__stack_chk_fail
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC34
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	mutex
	.word	.LC32
	.word	.LC13
	.word	.LC14
	.word	head
	.word	autosaver
	.word	.LC5
	.word	.LC33
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
