	.file	"26602.c"
	.intel_syntax noprefix
	.text
	.globl	queue
	.bss
	.align 16
	.type	queue, @object
	.size	queue, 20
queue:
	.zero	20
	.globl	head
	.data
	.align 4
	.type	head, @object
	.size	head, 4
head:
	.long	-1
	.globl	tail
	.align 4
	.type	tail, @object
	.size	tail, 4
tail:
	.long	-1
	.section	.rodata
.LC0:
	.string	"ERROR: Queue underflow."
	.text
	.globl	isUnderflow
	.type	isUnderflow, @function
isUnderflow:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR head[rip]
	cmp	eax, -1
	jne	.L2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
.L2:
	mov	eax, DWORD PTR head[rip]
	cmp	eax, -1
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isUnderflow, .-isUnderflow
	.section	.rodata
.LC1:
	.string	"ERROR: Queue overflow."
	.text
	.globl	isOverflow
	.type	isOverflow, @function
isOverflow:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR head[rip]
	test	eax, eax
	jne	.L5
	mov	eax, DWORD PTR tail[rip]
	cmp	eax, 4
	je	.L6
.L5:
	mov	eax, DWORD PTR tail[rip]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR head[rip]
	cmp	edx, eax
	jne	.L7
.L6:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR head[rip]
	test	eax, eax
	jne	.L8
	mov	eax, DWORD PTR tail[rip]
	cmp	eax, 4
	je	.L9
.L8:
	mov	eax, DWORD PTR tail[rip]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR head[rip]
	cmp	edx, eax
	jne	.L10
.L9:
	mov	eax, 1
	jmp	.L12
.L10:
	mov	eax, 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isOverflow, .-isOverflow
	.globl	addHead
	.type	addHead, @function
addHead:
.LFB2:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, 0
	call	isOverflow
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR head[rip]
	test	eax, eax
	je	.L16
	mov	eax, DWORD PTR head[rip]
	cmp	eax, -1
	jne	.L17
.L16:
	mov	DWORD PTR head[rip], 5
.L17:
	mov	eax, DWORD PTR head[rip]
	sub	eax, 1
	mov	DWORD PTR head[rip], eax
	mov	eax, DWORD PTR head[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, queue[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L13
.L18:
	nop
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	addHead, .-addHead
	.globl	removeHead
	.type	removeHead, @function
removeHead:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	isUnderflow
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR head[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	edx, DWORD PTR head[rip]
	mov	eax, DWORD PTR tail[rip]
	cmp	edx, eax
	jne	.L22
	mov	DWORD PTR head[rip], -1
	mov	DWORD PTR tail[rip], -1
.L22:
	mov	eax, DWORD PTR head[rip]
	cmp	eax, 4
	jne	.L19
	mov	DWORD PTR head[rip], 0
	jmp	.L19
.L23:
	nop
.L19:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	removeHead, .-removeHead
	.globl	addTail
	.type	addTail, @function
addTail:
.LFB4:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, 0
	call	isOverflow
	test	eax, eax
	jne	.L28
	mov	eax, DWORD PTR tail[rip]
	cmp	eax, 4
	jne	.L27
	mov	DWORD PTR tail[rip], 0
.L27:
	mov	eax, DWORD PTR tail[rip]
	add	eax, 1
	mov	DWORD PTR tail[rip], eax
	mov	eax, DWORD PTR tail[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, queue[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L24
.L28:
	nop
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	addTail, .-addTail
	.globl	removeTail
	.type	removeTail, @function
removeTail:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	isUnderflow
	test	eax, eax
	jne	.L33
	mov	eax, DWORD PTR tail[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	DWORD PTR [rdx+rax], 0
	mov	edx, DWORD PTR head[rip]
	mov	eax, DWORD PTR tail[rip]
	cmp	edx, eax
	jne	.L32
	mov	DWORD PTR head[rip], -1
	mov	DWORD PTR tail[rip], -1
	jmp	.L29
.L32:
	mov	eax, DWORD PTR tail[rip]
	test	eax, eax
	jne	.L29
	mov	DWORD PTR tail[rip], 4
	jmp	.L29
.L33:
	nop
.L29:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	removeTail, .-removeTail
	.section	.rodata
.LC2:
	.string	"->"
.LC3:
	.string	""
.LC4:
	.string	"%d\t%s\t"
	.text
	.globl	dump
	.type	dump, @function
dump:
.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	eax, 0
	call	isUnderflow
	test	eax, eax
	jne	.L42
	mov	DWORD PTR -4[rbp], 0
	jmp	.L37
.L41:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L38
	cmp	DWORD PTR -4[rbp], 3
	jg	.L39
	lea	rax, .LC2[rip]
	jmp	.L40
.L39:
	lea	rax, .LC3[rip]
.L40:
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, queue[rip]
	mov	ecx, DWORD PTR [rcx+rdx]
	mov	rdx, rax
	mov	esi, ecx
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L38:
	add	DWORD PTR -4[rbp], 1
.L37:
	cmp	DWORD PTR -4[rbp], 4
	jle	.L41
	jmp	.L34
.L42:
	nop
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	dump, .-dump
	.section	.rodata
	.align 8
.LC5:
	.string	"Implementation of double ended queue by array"
	.align 8
.LC6:
	.string	"\n\n\nSelect an option:\n\t1. Add to Head\n\t2. Add to Tail"
	.align 8
.LC7:
	.string	"\t3. Remove from Head\n\t4. Remove from Tail\n\t5. Empty queue"
.LC8:
	.string	"\t6. Dump\n\t0. Exit"
.LC9:
	.string	"\nYour choice:\t"
.LC10:
	.string	"%d"
.LC11:
	.string	"Element to add: "
.LC12:
	.string	"Invalid selection."
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L44
.L45:
	mov	edi, 61
	call	putchar@PLT
	add	DWORD PTR -12[rbp], 1
.L44:
	cmp	DWORD PTR -12[rbp], 44
	jle	.L45
	mov	DWORD PTR -20[rbp], -1
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	jmp	.L46
.L59:
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	je	.L47
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 2
	jne	.L48
.L47:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L48:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 6
	ja	.L49
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L51[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L51[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L51:
	.long	.L62-.L51
	.long	.L56-.L51
	.long	.L55-.L51
	.long	.L54-.L51
	.long	.L53-.L51
	.long	.L52-.L51
	.long	.L50-.L51
	.text
.L56:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	addHead
	jmp	.L46
.L55:
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	addTail
	jmp	.L46
.L54:
	mov	eax, 0
	call	removeHead
	jmp	.L46
.L53:
	mov	eax, 0
	call	removeTail
	jmp	.L46
.L52:
	mov	DWORD PTR head[rip], -1
	mov	DWORD PTR tail[rip], -1
	jmp	.L46
.L50:
	mov	eax, 0
	call	dump
	jmp	.L46
.L49:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L46
.L62:
	nop
.L46:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jne	.L59
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"26602.c"
	.text
	.comm	queue,20,4
	.global	head
	.data
	.align	2
	.type	head, %object
	.size	head, 4
head:
	.word	-1
	.global	tail
	.align	2
	.type	tail, %object
	.size	tail, 4
tail:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR: Queue underflow.\000"
	.text
	.align	2
	.global	isUnderflow
	.syntax unified
	.arm
	.fpu softvfp
	.type	isUnderflow, %function
isUnderflow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L4+4
	bl	printf
.L2:
	ldr	r3, .L4
	ldr	r3, [r3]
	cmn	r3, #1
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	head
	.word	.LC0
	.size	isUnderflow, .-isUnderflow
	.section	.rodata
	.align	2
.LC1:
	.ascii	"ERROR: Queue overflow.\000"
	.text
	.align	2
	.global	isOverflow
	.syntax unified
	.arm
	.fpu softvfp
	.type	isOverflow, %function
isOverflow:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L8
.L7:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L9
.L8:
	ldr	r0, .L15+8
	bl	printf
.L9:
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L10
	ldr	r3, .L15+4
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L11
.L10:
	ldr	r3, .L15+4
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
.L11:
	mov	r3, #1
	b	.L14
.L12:
	mov	r3, #0
.L14:
	mov	r0, r3
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	head
	.word	tail
	.word	.LC1
	.size	isOverflow, .-isOverflow
	.align	2
	.global	addHead
	.syntax unified
	.arm
	.fpu softvfp
	.type	addHead, %function
addHead:
	@ 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]
	bl	isOverflow
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L23
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L20
	ldr	r3, .L23
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L21
.L20:
	ldr	r3, .L23
	mov	r2, #5
	str	r2, [r3]
.L21:
	ldr	r3, .L23
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L23
	str	r3, [r2]
	ldr	r3, .L23
	ldr	r3, [r3]
	ldr	r1, .L23+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	b	.L17
.L22:
	nop
.L17:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	head
	.word	queue
	.size	addHead, .-addHead
	.align	2
	.global	removeHead
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeHead, %function
removeHead:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	isUnderflow
	mov	r3, r0
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r2, .L30+4
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, .L30+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L28
	ldr	r3, .L30
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L30+8
	mvn	r2, #0
	str	r2, [r3]
.L28:
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r3, #4
	popne	{fp, pc}
	ldr	r3, .L30
	mov	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L29:
	nop
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	head
	.word	queue
	.word	tail
	.size	removeHead, .-removeHead
	.align	2
	.global	addTail
	.syntax unified
	.arm
	.fpu softvfp
	.type	addTail, %function
addTail:
	@ 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]
	bl	isOverflow
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r3, .L37
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L35
	ldr	r3, .L37
	mov	r2, #0
	str	r2, [r3]
.L35:
	ldr	r3, .L37
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L37
	str	r3, [r2]
	ldr	r3, .L37
	ldr	r3, [r3]
	ldr	r1, .L37+4
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	b	.L32
.L36:
	nop
.L32:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	tail
	.word	queue
	.size	addTail, .-addTail
	.align	2
	.global	removeTail
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeTail, %function
removeTail:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	isUnderflow
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, .L44
	ldr	r3, [r3]
	ldr	r2, .L44+4
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, .L44+8
	ldr	r2, [r3]
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L42
	ldr	r3, .L44+8
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L44
	mvn	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L42:
	ldr	r3, .L44
	ldr	r3, [r3]
	cmp	r3, #0
	popne	{fp, pc}
	ldr	r3, .L44
	mov	r2, #4
	str	r2, [r3]
	pop	{fp, pc}
.L43:
	nop
	pop	{fp, pc}
.L45:
	.align	2
.L44:
	.word	tail
	.word	queue
	.word	head
	.size	removeTail, .-removeTail
	.section	.rodata
	.align	2
.LC2:
	.ascii	"->\000"
	.align	2
.LC3:
	.ascii	"\000"
	.align	2
.LC4:
	.ascii	"%d\011%s\011\000"
	.text
	.align	2
	.global	dump
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump, %function
dump:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	isUnderflow
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L49
.L53:
	ldr	r2, .L55
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L50
	ldr	r2, .L55
	ldr	r3, [fp, #-8]
	ldr	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bgt	.L51
	ldr	r3, .L55+4
	b	.L52
.L51:
	ldr	r3, .L55+8
.L52:
	mov	r2, r3
	ldr	r0, .L55+12
	bl	printf
.L50:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-8]
	cmp	r3, #4
	ble	.L53
	b	.L46
.L54:
	nop
.L46:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	queue
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	dump, .-dump
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Implementation of double ended queue by array\000"
	.align	2
.LC6:
	.ascii	"\012\012\012Select an option:\012\0111. Add to Head"
	.ascii	"\012\0112. Add to Tail\000"
	.align	2
.LC7:
	.ascii	"\0113. Remove from Head\012\0114. Remove from Tail\012"
	.ascii	"\0115. Empty queue\000"
	.align	2
.LC8:
	.ascii	"\0116. Dump\012\0110. Exit\000"
	.align	2
.LC9:
	.ascii	"\012Your choice:\011\000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC11:
	.ascii	"Element to add: \000"
	.align	2
.LC12:
	.ascii	"Invalid selection.\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L77+4
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L58
.L59:
	mov	r0, #61
	bl	putchar
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L58:
	ldr	r3, [fp, #-12]
	cmp	r3, #44
	ble	.L59
	mvn	r3, #0
	str	r3, [fp, #-20]
	ldr	r0, .L77+8
	bl	puts
	ldr	r0, .L77+12
	bl	puts
	ldr	r0, .L77+16
	bl	puts
	b	.L60
.L73:
	ldr	r0, .L77+20
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L77+24
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L61
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L62
.L61:
	ldr	r0, .L77+28
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L77+24
	bl	__isoc99_scanf
.L62:
	ldr	r3, [fp, #-20]
	cmp	r3, #6
	ldrls	pc, [pc, r3, asl #2]
	b	.L63
.L65:
	.word	.L76
	.word	.L70
	.word	.L69
	.word	.L68
	.word	.L67
	.word	.L66
	.word	.L64
.L70:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	addHead
	b	.L60
.L69:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	addTail
	b	.L60
.L68:
	bl	removeHead
	b	.L60
.L67:
	bl	removeTail
	b	.L60
.L66:
	ldr	r3, .L77+32
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L77+36
	mvn	r2, #0
	str	r2, [r3]
	b	.L60
.L64:
	bl	dump
	b	.L60
.L63:
	ldr	r0, .L77+40
	bl	printf
	b	.L60
.L76:
	nop
.L60:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L73
	mov	r3, #0
	ldr	r2, .L77
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC13
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	head
	.word	tail
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
