	.file	"48575019.c"
	.intel_syntax noprefix
	.text
	.globl	items
	.bss
	.align 32
	.type	items, @object
	.size	items, 40
items:
	.zero	40
	.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	isFull
	.type	isFull, @function
isFull:
.LFB6:
	.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]
	mov	eax, DWORD PTR front[rip]
	cmp	edx, eax
	je	.L2
	mov	eax, DWORD PTR front[rip]
	test	eax, eax
	jne	.L3
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, 9
	jne	.L3
.L2:
	mov	eax, 1
	jmp	.L4
.L3:
	mov	eax, 0
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	isFull, .-isFull
	.globl	isEmpty
	.type	isEmpty, @function
isEmpty:
.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	.L6
	mov	eax, 1
	jmp	.L7
.L6:
	mov	eax, 0
.L7:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	isEmpty, .-isEmpty
	.section	.rodata
.LC0:
	.string	"\nQueue is full"
.LC1:
	.string	"\nInserted -> %d"
	.text
	.globl	enQueue
	.type	enQueue, @function
enQueue:
.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	DWORD PTR -4[rbp], edi
	call	isFull
	test	eax, eax
	je	.L9
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L9:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L11
	mov	DWORD PTR front[rip], 0
.L11:
	mov	eax, DWORD PTR rear[rip]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR rear[rip], edx
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, items[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	enQueue, .-enQueue
	.section	.rodata
.LC2:
	.string	"\nQueue is empty"
.LC3:
	.string	"\nDeleted item -> %d"
	.text
	.globl	deQueue
	.type	deQueue, @function
deQueue:
.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
	call	isEmpty
	test	eax, eax
	je	.L14
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L15
.L14:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, items[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	.L16
	mov	DWORD PTR front[rip], -1
	mov	DWORD PTR rear[rip], -1
	jmp	.L17
.L16:
	mov	eax, DWORD PTR front[rip]
	lea	ecx, 1[rax]
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 2
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	sub	ecx, eax
	mov	edx, ecx
	mov	DWORD PTR front[rip], edx
.L17:
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	deQueue, .-deQueue
	.section	.rodata
.LC4:
	.string	"\nFront is -> %d\nItems\t"
.LC5:
	.string	"%d\t"
.LC6:
	.string	"\nRear is -> %d\n"
	.text
	.globl	display
	.type	display, @function
display:
.LFB10:
	.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
	call	isEmpty
	test	eax, eax
	je	.L19
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L23
.L19:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, items[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L21
.L22:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, items[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L21:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L22
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, items[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC7:
	.string	"\nCircular queue implementation using C"
	.align 8
.LC8:
	.string	"\n1.Insert Item\n2.Remove Item\n3.Display Item"
.LC9:
	.string	"%d"
.LC10:
	.string	"\nEnter value -> \t\t"
.LC11:
	.string	"\nWrong choice"
	.align 8
.LC12:
	.string	"\nDO you want to continue 1. for yes\t\t"
	.text
	.globl	main
	.type	main, @function
main:
.LFB11:
	.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, .LC7[rip]
	call	puts@PLT
.L30:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 3
	je	.L25
	cmp	eax, 3
	jg	.L26
	cmp	eax, 1
	je	.L27
	cmp	eax, 2
	je	.L28
	jmp	.L26
.L27:
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	enQueue
	jmp	.L29
.L28:
	call	deQueue
	jmp	.L29
.L25:
	call	display
	jmp	.L29
.L26:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	nop
.L29:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	je	.L30
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"48575019.c"
	.text
	.comm	items,40,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	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, .L5
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L2
	ldr	r3, .L5+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, .L5
	ldr	r3, [r3]
	cmp	r3, #9
	bne	.L3
.L2:
	mov	r3, #1
	b	.L4
.L3:
	mov	r3, #0
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	rear
	.word	front
	.size	isFull, .-isFull
	.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, .L10
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L8
	mov	r3, #1
	b	.L9
.L8:
	mov	r3, #0
.L9:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L11:
	.align	2
.L10:
	.word	front
	.size	isEmpty, .-isEmpty
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Queue is full\000"
	.align	2
.LC1:
	.ascii	"\012Inserted -> %d\000"
	.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
	str	r0, [fp, #-8]
	bl	isFull
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L17
	bl	printf
	b	.L16
.L13:
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L15
	ldr	r3, .L17+4
	mov	r2, #0
	str	r2, [r3]
.L15:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L17+12
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, .L17+8
	str	r2, [r3]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r1, .L17+16
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r1, [fp, #-8]
	ldr	r0, .L17+20
	bl	printf
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC0
	.word	front
	.word	rear
	.word	1717986919
	.word	items
	.word	.LC1
	.size	enQueue, .-enQueue
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Queue is empty\000"
	.align	2
.LC3:
	.ascii	"\012Deleted item -> %d\000"
	.text
	.align	2
	.global	deQueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	deQueue, %function
deQueue:
	@ 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	.L20
	ldr	r0, .L24
	bl	printf
	mvn	r3, #0
	b	.L21
.L20:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, .L24+8
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, .L24+4
	ldr	r2, [r3]
	ldr	r3, .L24+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L22
	ldr	r3, .L24+4
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L24+12
	mvn	r2, #0
	str	r2, [r3]
	b	.L23
.L22:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L24+16
	smull	r2, r3, r1, r3
	asr	r2, r3, #2
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	sub	r2, r1, r3
	ldr	r3, .L24+4
	str	r2, [r3]
.L23:
	ldr	r1, [fp, #-8]
	ldr	r0, .L24+20
	bl	printf
	ldr	r3, [fp, #-8]
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC2
	.word	front
	.word	items
	.word	rear
	.word	1717986919
	.word	.LC3
	.size	deQueue, .-deQueue
	.section	.rodata
	.align	2
.LC4:
	.ascii	"\012Front is -> %d\012Items\011\000"
	.align	2
.LC5:
	.ascii	"%d\011\000"
	.align	2
.LC6:
	.ascii	"\012Rear is -> %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	.L27
	ldr	r0, .L32
	bl	printf
	b	.L31
.L27:
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, .L32+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L32+12
	bl	printf
	ldr	r3, .L32+4
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L29
.L30:
	ldr	r2, .L32+8
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L32+16
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L29:
	ldr	r3, .L32+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L30
	ldr	r3, .L32+20
	ldr	r3, [r3]
	ldr	r2, .L32+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L32+24
	bl	printf
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC2
	.word	front
	.word	items
	.word	.LC4
	.word	.LC5
	.word	rear
	.word	.LC6
	.size	display, .-display
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012Circular queue implementation using C\000"
	.align	2
.LC8:
	.ascii	"\0121.Insert Item\0122.Remove Item\0123.Display Ite"
	.ascii	"m\000"
	.align	2
.LC9:
	.ascii	"%d\000"
	.align	2
.LC10:
	.ascii	"\012Enter value -> \011\011\000"
	.align	2
.LC11:
	.ascii	"\012Wrong choice\000"
	.align	2
.LC12:
	.ascii	"\012DO you want to continue 1. for yes\011\011\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, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L43+4
	bl	puts
.L40:
	ldr	r0, .L43+8
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L43+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L35
	cmp	r3, #3
	bgt	.L36
	cmp	r3, #1
	beq	.L37
	cmp	r3, #2
	beq	.L38
	b	.L36
.L37:
	ldr	r0, .L43+16
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L43+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	enQueue
	b	.L39
.L38:
	bl	deQueue
	b	.L39
.L35:
	bl	display
	b	.L39
.L36:
	ldr	r0, .L43+20
	bl	puts
	nop
.L39:
	ldr	r0, .L43+24
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L43+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	beq	.L40
	mov	r3, #0
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC13
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
