	.file	"28262357.c"
	.intel_syntax noprefix
	.text
	.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
	.section	.rodata
	.align 8
.LC0:
	.string	"\n1. Adding an element into the queue"
	.align 8
.LC1:
	.string	"2. Deleting an element from the queue"
.LC2:
	.string	"3. Quit"
.LC3:
	.string	"Enter your choice 1/2/3: "
.LC4:
	.string	"%d"
.LC5:
	.string	"Sorry the queue is full"
	.align 8
.LC6:
	.string	"Enter the value to add to queue: "
.LC7:
	.string	"Value %d is added to queue\n"
.LC8:
	.string	"Value removed from queue %d\n"
.LC9:
	.string	"Sorry, the queue is empty"
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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	DWORD PTR -36[rbp], 0
	jmp	.L2
.L9:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 1
	je	.L3
	cmp	eax, 2
	je	.L4
	jmp	.L2
.L3:
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, 3
	jle	.L5
	lea	rdi, .LC5[rip]
	call	puts@PLT
	jmp	.L2
.L5:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -40[rbp]
	lea	rax, -32[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	addq
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L2
.L4:
	mov	eax, 0
	call	IsQueueEmpty
	test	eax, eax
	jne	.L7
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	delq
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L7:
	lea	rdi, .LC9[rip]
	call	puts@PLT
.L12:
	nop
.L2:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 3
	jne	.L9
	mov	eax, 0
	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
.LFE0:
	.size	main, .-main
	.globl	addq
	.type	addq, @function
addq:
.LFB1:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L15
	mov	eax, DWORD PTR rear[rip]
	mov	DWORD PTR front[rip], eax
.L15:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	addq, .-addq
	.globl	IsQueueEmpty
	.type	IsQueueEmpty, @function
IsQueueEmpty:
.LFB2:
	.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	.L17
	mov	eax, 1
	jmp	.L18
.L17:
	mov	eax, 0
.L18:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	IsQueueEmpty, .-IsQueueEmpty
	.globl	delq
	.type	delq, @function
delq:
.LFB3:
	.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 -24[rbp], rdi
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jne	.L20
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR front[rip], -1
	mov	DWORD PTR rear[rip], -1
	jmp	.L21
.L20:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR front[rip], eax
.L21:
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	delq, .-delq
	.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	"28262357.c"
	.text
	.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
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\0121. Adding an element into the queue\000"
	.align	2
.LC1:
	.ascii	"2. Deleting an element from the queue\000"
	.align	2
.LC2:
	.ascii	"3. Quit\000"
	.align	2
.LC3:
	.ascii	"Enter your choice 1/2/3: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.ascii	"Sorry the queue is full\000"
	.align	2
.LC6:
	.ascii	"Enter the value to add to queue: \000"
	.align	2
.LC7:
	.ascii	"Value %d is added to queue\012\000"
	.align	2
.LC8:
	.ascii	"Value removed from queue %d\012\000"
	.align	2
.LC9:
	.ascii	"Sorry, the queue is empty\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L2
.L9:
	ldr	r0, .L13+4
	bl	puts
	ldr	r0, .L13+8
	bl	puts
	ldr	r0, .L13+12
	bl	puts
	ldr	r0, .L13+16
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L13+20
	bl	__isoc99_scanf
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	beq	.L3
	cmp	r3, #2
	beq	.L4
	b	.L2
.L3:
	ldr	r3, .L13+24
	ldr	r3, [r3]
	cmp	r3, #3
	ble	.L5
	ldr	r0, .L13+28
	bl	puts
	b	.L2
.L5:
	ldr	r0, .L13+32
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L13+20
	bl	__isoc99_scanf
	ldr	r2, [fp, #-36]
	sub	r3, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	addq
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L13+36
	bl	printf
	b	.L2
.L4:
	bl	IsQueueEmpty
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	sub	r3, fp, #28
	mov	r0, r3
	bl	delq
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	mov	r1, r3
	ldr	r0, .L13+40
	bl	printf
	b	.L12
.L7:
	ldr	r0, .L13+44
	bl	puts
.L12:
	nop
.L2:
	ldr	r3, [fp, #-32]
	cmp	r3, #3
	bne	.L9
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC10
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	rear
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.align	2
	.global	addq
	.syntax unified
	.arm
	.fpu softvfp
	.type	addq, %function
addq:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, .L18
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L18
	str	r3, [r2]
	ldr	r3, .L18
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L17
	ldr	r3, .L18
	ldr	r3, [r3]
	ldr	r2, .L18+4
	str	r3, [r2]
.L17:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	rear
	.word	front
	.size	addq, .-addq
	.align	2
	.global	IsQueueEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	IsQueueEmpty, %function
IsQueueEmpty:
	@ 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, .L23
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L21
	mov	r3, #1
	b	.L22
.L21:
	mov	r3, #0
.L22:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L24:
	.align	2
.L23:
	.word	front
	.size	IsQueueEmpty, .-IsQueueEmpty
	.align	2
	.global	delq
	.syntax unified
	.arm
	.fpu softvfp
	.type	delq, %function
delq:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, .L29+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L26
	ldr	r3, .L29
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L29
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L29+4
	mvn	r2, #0
	str	r2, [r3]
	b	.L27
.L26:
	ldr	r3, .L29
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L29
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L29
	str	r3, [r2]
.L27:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L30:
	.align	2
.L29:
	.word	front
	.word	rear
	.size	delq, .-delq
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
