	.file	"801207.c"
	.intel_syntax noprefix
	.text
	.globl	front
	.data
	.align 4
	.type	front, @object
	.size	front, 4
front:
	.long	9
	.globl	rear
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.long	9
	.globl	i
	.bss
	.align 4
	.type	i, @object
	.size	i, 4
i:
	.zero	4
	.globl	item
	.align 32
	.type	item, @object
	.size	item, 40
item:
	.zero	40
	.section	.rodata
.LC0:
	.string	"circular queue is full"
	.text
	.globl	cqinsert
	.type	cqinsert, @function
cqinsert:
.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	DWORD PTR -4[rbp], edi
	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	eax, DWORD PTR front[rip]
	cmp	edx, eax
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L4
.L2:
	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
	mov	edx, ecx
	sub	edx, eax
	mov	DWORD PTR rear[rip], edx
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, item[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
.L4:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cqinsert, .-cqinsert
	.section	.rodata
.LC1:
	.string	"circular queue is empty"
	.text
	.globl	cqdelete
	.type	cqdelete, @function
cqdelete:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jne	.L6
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	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
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, item[rip]
	mov	eax, DWORD PTR [rdx+rax]
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	cqdelete, .-cqdelete
	.section	.rodata
.LC2:
	.string	"the elements are:"
.LC3:
	.string	"%d\t"
	.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
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jne	.L10
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L20
.L10:
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jge	.L12
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L13
.L14:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, item[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L13:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jle	.L14
	jmp	.L20
.L12:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, 9
	je	.L15
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
	jmp	.L16
.L17:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, item[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L16:
	mov	eax, DWORD PTR i[rip]
	cmp	eax, 9
	jle	.L17
.L15:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	DWORD PTR i[rip], 0
	jmp	.L18
.L19:
	mov	eax, DWORD PTR i[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, item[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR i[rip]
	add	eax, 1
	mov	DWORD PTR i[rip], eax
.L18:
	mov	edx, DWORD PTR i[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jle	.L19
.L20:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.section	.rodata
	.align 8
.LC4:
	.string	"enter your choice:\n 1.insert\n2.delete\n3.display\n4.exit"
.LC5:
	.string	"%d"
.LC6:
	.string	"enter a value to insert"
.LC7:
	.string	"the deleted element is:%d\n"
.LC8:
	.string	"invalid 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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L28:
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 4
	je	.L22
	cmp	eax, 4
	jg	.L23
	cmp	eax, 3
	je	.L24
	cmp	eax, 3
	jg	.L23
	cmp	eax, 1
	je	.L25
	cmp	eax, 2
	je	.L26
	jmp	.L23
.L25:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	cqinsert
	jmp	.L27
.L26:
	mov	eax, 0
	call	cqdelete
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L24:
	mov	eax, 0
	call	display
	jmp	.L27
.L22:
	mov	edi, 0
	call	exit@PLT
.L23:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L27:
	jmp	.L28
	.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	"801207.c"
	.text
	.global	front
	.data
	.align	2
	.type	front, %object
	.size	front, 4
front:
	.word	9
	.global	rear
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.word	9
	.comm	i,4,4
	.comm	item,40,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"circular queue is full\000"
	.text
	.align	2
	.global	cqinsert
	.syntax unified
	.arm
	.fpu softvfp
	.type	cqinsert, %function
cqinsert:
	@ 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]
	ldr	r3, .L5
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L5+4
	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, .L5+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r0, .L5+12
	bl	puts
	b	.L4
.L2:
	ldr	r3, .L5
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L5+4
	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, .L5
	str	r2, [r3]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r1, .L5+16
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L4:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	rear
	.word	1717986919
	.word	front
	.word	.LC0
	.word	item
	.size	cqinsert, .-cqinsert
	.section	.rodata
	.align	2
.LC1:
	.ascii	"circular queue is empty\000"
	.text
	.align	2
	.global	cqdelete
	.syntax unified
	.arm
	.fpu softvfp
	.type	cqdelete, %function
cqdelete:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, .L11+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L8
	ldr	r0, .L11+8
	bl	puts
	b	.L7
.L8:
	ldr	r3, .L11
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L11+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, .L11
	str	r2, [r3]
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+16
	ldr	r3, [r2, r3, lsl #2]
.L7:
	mov	r0, r3
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	front
	.word	rear
	.word	.LC1
	.word	1717986919
	.word	item
	.size	cqdelete, .-cqdelete
	.section	.rodata
	.align	2
.LC2:
	.ascii	"the elements are:\000"
	.align	2
.LC3:
	.ascii	"%d\011\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L14
	ldr	r0, .L25+8
	bl	puts
	b	.L24
.L14:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L16
	ldr	r3, .L25
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+12
	str	r3, [r2]
	b	.L17
.L18:
	ldr	r0, .L25+16
	bl	puts
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r2, .L25+20
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, .L25+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+12
	str	r3, [r2]
.L17:
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L18
	b	.L24
.L16:
	ldr	r3, .L25
	ldr	r3, [r3]
	cmp	r3, #9
	beq	.L19
	ldr	r0, .L25+16
	bl	puts
	ldr	r3, .L25
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+12
	str	r3, [r2]
	b	.L20
.L21:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r2, .L25+20
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, .L25+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+12
	str	r3, [r2]
.L20:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r3, #9
	ble	.L21
.L19:
	ldr	r0, .L25+16
	bl	puts
	ldr	r3, .L25+12
	mov	r2, #0
	str	r2, [r3]
	b	.L22
.L23:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	ldr	r2, .L25+20
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L25+24
	bl	printf
	ldr	r3, .L25+12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L25+12
	str	r3, [r2]
.L22:
	ldr	r3, .L25+12
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L23
.L24:
	nop
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	front
	.word	rear
	.word	.LC1
	.word	i
	.word	.LC2
	.word	item
	.word	.LC3
	.size	display, .-display
	.section	.rodata
	.align	2
.LC4:
	.ascii	"enter your choice:\012 1.insert\0122.delete\0123.di"
	.ascii	"splay\0124.exit\000"
	.align	2
.LC5:
	.ascii	"%d\000"
	.align	2
.LC6:
	.ascii	"enter a value to insert\000"
	.align	2
.LC7:
	.ascii	"the deleted element is:%d\012\000"
	.align	2
.LC8:
	.ascii	"invalid choice!!!!!\000"
	.align	2
.LC9:
	.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, .L37
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L35:
	ldr	r0, .L37+4
	bl	puts
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L28
.L30:
	.word	.L33
	.word	.L32
	.word	.L31
	.word	.L29
.L33:
	ldr	r0, .L37+12
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L37+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	cqinsert
	b	.L34
.L32:
	bl	cqdelete
	str	r0, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, .L37+16
	bl	printf
	b	.L34
.L31:
	bl	display
	b	.L34
.L29:
	mov	r0, #0
	bl	exit
.L28:
	ldr	r0, .L37+20
	bl	puts
.L34:
	b	.L35
.L38:
	.align	2
.L37:
	.word	.LC9
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
