	.file	"736207.c"
	.intel_syntax noprefix
	.text
	.globl	cqueue
	.bss
	.align 16
	.type	cqueue, @object
	.size	cqueue, 20
cqueue:
	.zero	20
	.globl	front
	.data
	.align 4
	.type	front, @object
	.size	front, 4
front:
	.long	-1
	.globl	rear
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.long	-1
	.text
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.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 front[rip]
	cmp	eax, -1
	jne	.L2
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, -1
	jne	.L2
	mov	eax, 1
	jmp	.L4
.L2:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	isEmpty, .-isEmpty
	.globl	isFull
	.type	isFull, @function
isFull:
.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 rear[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR front[rip]
	cmp	eax, edx
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	isFull, .-isFull
	.section	.rodata
.LC0:
	.string	"Already full!!\n"
	.text
	.globl	push
	.type	push, @function
push:
.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	isEmpty
	test	eax, eax
	je	.L8
	mov	DWORD PTR rear[rip], 0
	mov	eax, DWORD PTR rear[rip]
	mov	DWORD PTR front[rip], eax
	jmp	.L9
.L8:
	mov	eax, 0
	call	isFull
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR rear[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR rear[rip], eax
	jmp	.L9
.L10:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	jmp	.L7
.L9:
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, cqueue[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	push, .-push
	.globl	pop
	.type	pop, @function
pop:
.LFB3:
	.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], -999
	mov	eax, 0
	call	isEmpty
	test	eax, eax
	je	.L13
	mov	eax, DWORD PTR -4[rbp]
	jmp	.L14
.L13:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cqueue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jne	.L15
	mov	DWORD PTR front[rip], -1
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR rear[rip], eax
	jmp	.L16
.L15:
	mov	eax, DWORD PTR front[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR front[rip], eax
.L16:
	mov	eax, DWORD PTR -4[rbp]
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	pop, .-pop
	.globl	peek
	.type	peek, @function
peek:
.LFB4:
	.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	isEmpty
	test	eax, eax
	jne	.L18
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cqueue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	jmp	.L20
.L18:
	mov	eax, -999
.L20:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	peek, .-peek
	.section	.rodata
.LC1:
	.string	"Empty!"
.LC2:
	.string	"(%d | [%d]) "
.LC3:
	.string	"(%d | [%d]) \n"
	.text
	.globl	display
	.type	display, @function
display:
.LFB5:
	.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	isEmpty
	test	eax, eax
	je	.L22
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L21
.L22:
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, cqueue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -4[rbp], edx
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, ecx
	sal	edx, 2
	add	edx, ecx
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
.L24:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L25
	mov	edx, DWORD PTR rear[rip]
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, cqueue[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	display, .-display
	.section	.rodata
.LC4:
	.string	"Enter 1 -> display"
.LC5:
	.string	"Enter 2 -> push"
.LC6:
	.string	"Enter 3 -> pop"
.LC7:
	.string	"Enter 4 -> peek"
.LC8:
	.string	"Enter 5 -> isEmpty"
.LC9:
	.string	"Enter 0 -> exit"
.LC10:
	.string	"-> "
.LC11:
	.string	"%d"
.LC12:
	.string	"Enter element to insert: "
.LC13:
	.string	"Empty!\n"
.LC14:
	.string	"popped: %d\n"
.LC15:
	.string	"front element: %d\n"
.LC16:
	.string	"not empty\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L40:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 5
	ja	.L27
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L29[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L29[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L29:
	.long	.L27-.L29
	.long	.L33-.L29
	.long	.L32-.L29
	.long	.L31-.L29
	.long	.L30-.L29
	.long	.L28-.L29
	.text
.L33:
	mov	eax, 0
	call	display
	jmp	.L27
.L32:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	push
	jmp	.L27
.L31:
	mov	eax, 0
	call	pop
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, -999
	jne	.L34
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L34:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L30:
	mov	eax, 0
	call	peek
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, -999
	jne	.L36
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L36:
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L28:
	mov	eax, 0
	call	isEmpty
	test	eax, eax
	je	.L38
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L43
.L38:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L43:
	nop
.L27:
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	jne	.L40
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	remove@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"736207.c"
	.text
	.comm	cqueue,20,4
	.global	front
	.data
	.align	2
	.type	front, %object
	.size	front, 4
front:
	.word	-1
	.global	rear
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.word	-1
	.text
	.align	2
	.global	isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmpty, %function
isEmpty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L5
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	mov	r3, #1
	b	.L4
.L2:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	front
	.word	rear
	.size	isEmpty, .-isEmpty
	.align	2
	.global	isFull
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFull, %function
isFull:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L9
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L9+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L9+8
	ldr	r3, [r3]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L10:
	.align	2
.L9:
	.word	rear
	.word	1717986919
	.word	front
	.size	isFull, .-isFull
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Already full!!\012\000"
	.text
	.align	2
	.global	push
	.syntax unified
	.arm
	.fpu softvfp
	.type	push, %function
push:
	@ 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	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L12
	ldr	r3, .L16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, .L16+4
	str	r3, [r2]
	b	.L13
.L12:
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r3, .L16
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L16+8
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L16
	str	r2, [r3]
	b	.L13
.L14:
	ldr	r3, .L16+12
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L16+16
	bl	fwrite
	b	.L11
.L13:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r1, .L16+20
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	rear
	.word	front
	.word	1717986919
	.word	stderr
	.word	.LC0
	.word	cqueue
	.size	push, .-push
	.align	2
	.global	pop
	.syntax unified
	.arm
	.fpu softvfp
	.type	pop, %function
pop:
	@ 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, .L23
	str	r3, [fp, #-8]
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-8]
	b	.L20
.L19:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, .L23+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L23+4
	ldr	r2, [r3]
	ldr	r3, .L23+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L21
	ldr	r3, .L23+4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, .L23+12
	str	r3, [r2]
	b	.L22
.L21:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L23+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L23+4
	str	r2, [r3]
.L22:
	ldr	r3, [fp, #-8]
.L20:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	-999
	.word	front
	.word	cqueue
	.word	rear
	.word	1717986919
	.size	pop, .-pop
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L29
	ldr	r3, [r3]
	ldr	r2, .L29+4
	ldr	r3, [r2, r3, lsl #2]
	b	.L28
.L26:
	ldr	r3, .L29+8
.L28:
	mov	r0, r3
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	front
	.word	cqueue
	.word	-999
	.size	peek, .-peek
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Empty!\000"
	.align	2
.LC2:
	.ascii	"(%d | [%d]) \000"
	.align	2
.LC3:
	.ascii	"(%d | [%d]) \012\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L32
	ldr	r0, .L36
	bl	puts
	b	.L31
.L32:
	ldr	r3, .L36+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L34
.L35:
	ldr	r2, .L36+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L36+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, .L36+16
	smull	r1, r3, r2, r3
	asr	r1, r3, #1
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-8]
.L34:
	ldr	r3, .L36+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L35
	ldr	r3, .L36+20
	ldr	r3, [r3]
	ldr	r2, .L36+8
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L36+20
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L36+24
	bl	printf
.L31:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC1
	.word	front
	.word	cqueue
	.word	.LC2
	.word	1717986919
	.word	rear
	.word	.LC3
	.size	display, .-display
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Enter 1 -> display\000"
	.align	2
.LC5:
	.ascii	"Enter 2 -> push\000"
	.align	2
.LC6:
	.ascii	"Enter 3 -> pop\000"
	.align	2
.LC7:
	.ascii	"Enter 4 -> peek\000"
	.align	2
.LC8:
	.ascii	"Enter 5 -> isEmpty\000"
	.align	2
.LC9:
	.ascii	"Enter 0 -> exit\000"
	.align	2
.LC10:
	.ascii	"-> \000"
	.align	2
.LC11:
	.ascii	"%d\000"
	.align	2
.LC12:
	.ascii	"Enter element to insert: \000"
	.align	2
.LC13:
	.ascii	"Empty!\012\000"
	.align	2
.LC14:
	.ascii	"popped: %d\012\000"
	.align	2
.LC15:
	.ascii	"front element: %d\012\000"
	.align	2
.LC16:
	.ascii	"not empty\012\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.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, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L56
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L52:
	ldr	r0, .L56+4
	bl	puts
	ldr	r0, .L56+8
	bl	puts
	ldr	r0, .L56+12
	bl	puts
	ldr	r0, .L56+16
	bl	puts
	ldr	r0, .L56+20
	bl	puts
	ldr	r0, .L56+24
	bl	puts
	ldr	r0, .L56+28
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L56+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L39
.L41:
	.word	.L45
	.word	.L44
	.word	.L43
	.word	.L42
	.word	.L40
.L45:
	bl	display
	b	.L39
.L44:
	ldr	r0, .L56+36
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L56+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	push
	b	.L39
.L43:
	bl	pop
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L56+40
	cmp	r3, r2
	bne	.L46
	ldr	r0, .L56+44
	bl	printf
	b	.L39
.L46:
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L56+48
	bl	printf
	b	.L39
.L42:
	bl	peek
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r2, .L56+40
	cmp	r3, r2
	bne	.L48
	ldr	r0, .L56+44
	bl	printf
	b	.L39
.L48:
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L56+52
	bl	printf
	b	.L39
.L40:
	bl	isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L50
	ldr	r0, .L56+44
	bl	printf
	b	.L55
.L50:
	ldr	r0, .L56+56
	bl	printf
.L55:
	nop
.L39:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L52
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	remove
	mov	r3, #0
	ldr	r2, .L56
	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}
.L57:
	.align	2
.L56:
	.word	.LC17
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	-999
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
