	.file	"845668.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	circQueue
	.bss
	.align 32
	.type	circQueue, @object
	.size	circQueue, 40
circQueue:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"Enter the number to be inserted: "
.LC1:
	.string	"%d"
.LC2:
	.string	"Overflow"
	.text
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, 9
	jne	.L2
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L3
.L2:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L4
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, -1
	jne	.L4
	mov	DWORD PTR front[rip], 0
	mov	DWORD PTR rear[rip], 0
	jmp	.L3
.L4:
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, 9
	jne	.L5
	mov	eax, DWORD PTR front[rip]
	test	eax, eax
	je	.L5
	mov	DWORD PTR rear[rip], 0
	jmp	.L3
.L5:
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
.L3:
	mov	edx, DWORD PTR rear[rip]
	mov	eax, DWORD PTR -12[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, circQueue[rip]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC3:
	.string	"Underflow"
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.LFB7:
	.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	.L8
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L8:
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jne	.L10
	mov	DWORD PTR front[rip], -1
	mov	DWORD PTR rear[rip], -1
	jmp	.L12
.L10:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, 9
	jne	.L11
	mov	DWORD PTR front[rip], 0
	jmp	.L12
.L11:
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR front[rip], eax
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC4:
	.string	"\nEmpty queue"
.LC5:
	.string	"The queue is: "
.LC6:
	.string	"%d "
	.text
	.globl	display
	.type	display, @function
display:
.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	.L14
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, -1
	jne	.L15
.L14:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	jmp	.L16
.L15:
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, circQueue[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
.L17:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L18
	mov	edi, 10
	call	putchar@PLT
	nop
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC7:
	.string	"Enter your choice: \n1. Enqueue \n2. Dequeue\n3. Display\n4. Exit"
.LC8:
	.string	"Enter valid choice"
	.text
	.globl	main
	.type	main, @function
main:
.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L27:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	je	.L20
	cmp	eax, 4
	jg	.L21
	cmp	eax, 3
	je	.L22
	cmp	eax, 3
	jg	.L21
	cmp	eax, 1
	je	.L23
	cmp	eax, 2
	je	.L24
	jmp	.L21
.L23:
	mov	eax, 0
	call	enqueue
	jmp	.L25
.L24:
	mov	eax, 0
	call	dequeue
	jmp	.L25
.L22:
	mov	eax, 0
	call	display
	jmp	.L25
.L20:
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L28
	jmp	.L29
.L21:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L25:
	jmp	.L27
.L29:
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"845668.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	circQueue,40,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enter the number to be inserted: \000"
	.align	2
.LC1:
	.ascii	"%d\000"
	.align	2
.LC2:
	.ascii	"Overflow\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ 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, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L7+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L7+8
	bl	__isoc99_scanf
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #9
	bne	.L2
	ldr	r0, .L7+16
	bl	printf
	b	.L3
.L2:
	ldr	r3, .L7+20
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L7+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L7+12
	mov	r2, #0
	str	r2, [r3]
	b	.L3
.L4:
	ldr	r3, .L7+12
	ldr	r3, [r3]
	cmp	r3, #9
	bne	.L5
	ldr	r3, .L7+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
	ldr	r3, .L7+12
	mov	r2, #0
	str	r2, [r3]
	b	.L3
.L5:
	ldr	r3, .L7+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L7+12
	str	r3, [r2]
.L3:
	ldr	r3, .L7+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L7+24
	str	r2, [r1, r3, lsl #2]
	nop
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC3
	.word	.LC0
	.word	.LC1
	.word	rear
	.word	.LC2
	.word	front
	.word	circQueue
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Underflow\000"
	.text
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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]
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L15+4
	bl	printf
	b	.L14
.L10:
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, .L15+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L12
	ldr	r3, .L15
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L15+8
	mvn	r2, #0
	str	r2, [r3]
	b	.L14
.L12:
	ldr	r3, .L15
	ldr	r3, [r3]
	cmp	r3, #9
	bne	.L13
	ldr	r3, .L15
	mov	r2, #0
	str	r2, [r3]
	b	.L14
.L13:
	ldr	r3, .L15
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L15
	str	r3, [r2]
.L14:
	nop
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	front
	.word	.LC4
	.word	rear
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC5:
	.ascii	"\012Empty queue\000"
	.align	2
.LC6:
	.ascii	"The queue is: \000"
	.align	2
.LC7:
	.ascii	"%d \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, .L23
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L18
	ldr	r3, .L23+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L19
.L18:
	ldr	r0, .L23+8
	bl	puts
	b	.L20
.L19:
	ldr	r0, .L23+12
	bl	printf
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L21
.L22:
	ldr	r2, .L23+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L23+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L21:
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L22
	mov	r0, #10
	bl	putchar
	nop
.L20:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	front
	.word	rear
	.word	.LC5
	.word	.LC6
	.word	circQueue
	.word	.LC7
	.size	display, .-display
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Enter your choice: \0121. Enqueue \0122. Dequeue\012"
	.ascii	"3. Display\0124. Exit\000"
	.align	2
.LC9:
	.ascii	"Enter valid choice\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 = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L34:
	ldr	r0, .L37+4
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L26
.L28:
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L27
.L31:
	bl	enqueue
	b	.L32
.L30:
	bl	dequeue
	b	.L32
.L29:
	bl	display
	b	.L32
.L27:
	mov	r3, #0
	ldr	r2, .L37
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	b	.L36
.L26:
	ldr	r0, .L37+12
	bl	printf
	nop
.L32:
	b	.L34
.L36:
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	.LC10
	.word	.LC8
	.word	.LC1
	.word	.LC9
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
