	.file	"104828544.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
	.globl	queue
	.bss
	.align 32
	.type	queue, @object
	.size	queue, 40
queue:
	.zero	40
	.section	.rodata
.LC0:
	.string	"\n\nMain Menu"
	.align 8
.LC1:
	.string	"\n1. Insert\n2. Delete\n3. Display\n4. Exit"
.LC2:
	.string	"\nEnter your choice: "
.LC3:
	.string	"%d"
.LC4:
	.string	"\nPlease enter valid choice"
	.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, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L2
.L8:
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	je	.L3
	cmp	eax, 4
	jg	.L4
	cmp	eax, 3
	je	.L5
	cmp	eax, 3
	jg	.L4
	cmp	eax, 1
	je	.L6
	cmp	eax, 2
	je	.L7
	jmp	.L4
.L6:
	mov	eax, 0
	call	insert
	jmp	.L2
.L7:
	mov	eax, 0
	call	delete
	jmp	.L2
.L5:
	mov	eax, 0
	call	display
	jmp	.L2
.L3:
	mov	edi, 0
	call	exit@PLT
.L4:
	lea	rdi, .LC4[rip]
	call	puts@PLT
.L2:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	jne	.L8
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"\nEnter the element"
.LC6:
	.string	"\n%d"
.LC7:
	.string	"\nERR: OVERFLOW"
.LC8:
	.string	"\nValue has been inserted"
	.text
	.globl	insert
	.type	insert, @function
insert:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, 9
	jne	.L11
	lea	rdi, .LC7[rip]
	call	puts@PLT
	jmp	.L10
.L11:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L13
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, -1
	jne	.L13
	mov	DWORD PTR front[rip], 0
	mov	DWORD PTR rear[rip], 0
	jmp	.L14
.L13:
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
.L14:
	mov	edx, DWORD PTR rear[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, queue[rip]
	mov	DWORD PTR [rcx+rdx], eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
.L10:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert, .-insert
	.section	.rodata
.LC9:
	.string	"\nERR: UNDERFLOW"
.LC10:
	.string	"\nValue has been deleted"
	.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, 16
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	je	.L17
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jle	.L18
.L17:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L16
.L18:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[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	.L20
	mov	DWORD PTR front[rip], -1
	mov	DWORD PTR rear[rip], -1
	jmp	.L21
.L20:
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR front[rip], eax
.L21:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	delete, .-delete
	.section	.rodata
.LC11:
	.string	"\nERR: QUEUE IS EMPTY"
.LC12:
	.string	"\nCurrent Elements:"
	.text
	.globl	display
	.type	display, @function
display:
.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	eax, DWORD PTR rear[rip]
	cmp	eax, -1
	jne	.L23
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L27
.L23:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L25
.L26:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L25:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L26
.L27:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display, .-display
	.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	"104828544.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
	.comm	queue,40,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012Main Menu\000"
	.align	2
.LC1:
	.ascii	"\0121. Insert\0122. Delete\0123. Display\0124. Exit"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"\012Enter your choice: \000"
	.align	2
.LC3:
	.ascii	"%d\000"
	.align	2
.LC4:
	.ascii	"\012Please enter valid choice\000"
	.align	2
.LC5:
	.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, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L2
.L9:
	ldr	r0, .L11+4
	bl	puts
	ldr	r0, .L11+8
	bl	puts
	ldr	r0, .L11+12
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L11+16
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L3
.L5:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L4
.L8:
	bl	insert
	b	.L2
.L7:
	bl	delete
	b	.L2
.L6:
	bl	display
	b	.L2
.L4:
	mov	r0, #0
	bl	exit
.L3:
	ldr	r0, .L11+20
	bl	puts
.L2:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	bne	.L9
	nop
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012Enter the element\000"
	.align	2
.LC7:
	.ascii	"\012%d\000"
	.align	2
.LC8:
	.ascii	"\012ERR: OVERFLOW\000"
	.align	2
.LC9:
	.ascii	"\012Value has been inserted\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert, %function
insert:
	@ 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, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L19+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L19+8
	bl	__isoc99_scanf
	ldr	r3, .L19+12
	ldr	r3, [r3]
	cmp	r3, #9
	bne	.L14
	ldr	r0, .L19+16
	bl	puts
	b	.L13
.L14:
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L16
	ldr	r3, .L19+12
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L16
	ldr	r3, .L19+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L19+12
	mov	r2, #0
	str	r2, [r3]
	b	.L17
.L16:
	ldr	r3, .L19+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L19+12
	str	r3, [r2]
.L17:
	ldr	r3, .L19+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L19+24
	str	r2, [r1, r3, lsl #2]
	ldr	r0, .L19+28
	bl	printf
.L13:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC10
	.word	.LC6
	.word	.LC7
	.word	rear
	.word	.LC8
	.word	front
	.word	queue
	.word	.LC9
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC11:
	.ascii	"\012ERR: UNDERFLOW\000"
	.align	2
.LC12:
	.ascii	"\012Value has been deleted\000"
	.text
	.align	2
	.global	delete
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete, %function
delete:
	@ 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, .L27
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L22
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, .L27+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L23
.L22:
	ldr	r0, .L27+8
	bl	puts
	b	.L21
.L23:
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r2, .L27+12
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, .L27+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L25
	ldr	r3, .L27
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L27+4
	mvn	r2, #0
	str	r2, [r3]
	b	.L26
.L25:
	ldr	r3, .L27
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L27
	str	r3, [r2]
.L26:
	ldr	r0, .L27+16
	bl	printf
.L21:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	front
	.word	rear
	.word	.LC11
	.word	queue
	.word	.LC12
	.size	delete, .-delete
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012ERR: QUEUE IS EMPTY\000"
	.align	2
.LC14:
	.ascii	"\012Current Elements:\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
	ldr	r3, .L35
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L35+4
	bl	puts
	b	.L34
.L30:
	ldr	r0, .L35+8
	bl	printf
	ldr	r3, .L35+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L32
.L33:
	ldr	r2, .L35+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L35+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, .L35
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L33
.L34:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	rear
	.word	.LC13
	.word	.LC14
	.word	front
	.word	queue
	.word	.LC7
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
