	.file	"97011748.c"
	.intel_syntax noprefix
	.text
	.globl	queue
	.bss
	.align 16
	.type	queue, @object
	.size	queue, 20
queue:
	.zero	20
	.globl	front
	.align 4
	.type	front, @object
	.size	front, 4
front:
	.zero	4
	.globl	rear
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.zero	4
	.section	.rodata
.LC0:
	.string	"1. enqueue"
.LC1:
	.string	"2. dequeue"
.LC2:
	.string	"3. traverse"
.LC3:
	.string	"4. exit"
.LC4:
	.string	"5. number"
.LC5:
	.string	"enter your choice"
.LC6:
	.string	"%d"
.LC7:
	.string	"enter an element"
.LC8:
	.string	"invalied input"
	.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
.L10:
	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]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, 5
	ja	.L2
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L4[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L4[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L2-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
.L8:
	lea	rdi, .LC7[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 -12[rbp]
	mov	edi, eax
	call	insert
	jmp	.L9
.L7:
	mov	eax, 0
	call	del
	jmp	.L9
.L6:
	mov	eax, 0
	call	traverse
	jmp	.L9
.L5:
	mov	edi, 0
	call	exit@PLT
.L3:
	mov	eax, 0
	call	number
	jmp	.L9
.L2:
	lea	rdi, .LC8[rip]
	call	puts@PLT
.L9:
	jmp	.L10
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC9:
	.string	"cqueue is full"
.LC10:
	.string	"----inserted----"
.LC11:
	.string	"front=%d  rear=%d\n"
	.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR rear[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	edx, DWORD PTR front[rip]
	cmp	eax, edx
	jne	.L13
	lea	rdi, .LC9[rip]
	call	puts@PLT
	jmp	.L14
.L13:
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, queue[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR rear[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR rear[rip], eax
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L14:
	mov	edx, DWORD PTR rear[rip]
	mov	eax, DWORD PTR front[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert, .-insert
	.section	.rodata
.LC12:
	.string	"cqueue is empty"
.LC13:
	.string	"deleted item %d\n"
	.text
	.globl	del
	.type	del, @function
del:
.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	.L16
	lea	rdi, .LC12[rip]
	call	puts@PLT
	jmp	.L17
.L16:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR front[rip]
	lea	edx, 1[rax]
	movsx	rax, edx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	mov	ecx, eax
	sal	ecx, 2
	add	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR front[rip], eax
.L17:
	mov	edx, DWORD PTR rear[rip]
	mov	eax, DWORD PTR front[rip]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	del, .-del
	.section	.rodata
.LC14:
	.string	"queue is empty"
.LC15:
	.string	"%d "
	.text
	.globl	traverse
	.type	traverse, @function
traverse:
.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 front[rip]
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR rear[rip]
	test	eax, eax
	jne	.L19
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L18
.L19:
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jg	.L21
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L22
.L23:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -12[rbp], 1
.L22:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L23
	mov	edi, 10
	call	putchar@PLT
	jmp	.L18
.L21:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, 4
	jg	.L18
	mov	eax, DWORD PTR rear[rip]
	test	eax, eax
	js	.L18
	mov	eax, DWORD PTR front[rip]
	mov	DWORD PTR -8[rbp], eax
	jmp	.L24
.L25:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, queue[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L24:
	cmp	DWORD PTR -8[rbp], 4
	jle	.L25
	mov	DWORD PTR -4[rbp], 0
	jmp	.L26
.L27:
	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
.L26:
	mov	eax, DWORD PTR rear[rip]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L27
	mov	edi, 10
	call	putchar@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	traverse, .-traverse
	.section	.rodata
.LC16:
	.string	"%d\n"
	.text
	.globl	number
	.type	number, @function
number:
.LFB10:
	.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 rear[rip]
	mov	eax, DWORD PTR front[rip]
	cmp	edx, eax
	jl	.L29
	mov	eax, DWORD PTR rear[rip]
	mov	edx, DWORD PTR front[rip]
	sub	eax, edx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L31
.L29:
	mov	eax, DWORD PTR front[rip]
	mov	edx, 5
	sub	edx, eax
	mov	eax, DWORD PTR rear[rip]
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
.L31:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	number, .-number
	.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	"97011748.c"
	.text
	.comm	queue,20,4
	.global	front
	.bss
	.align	2
	.type	front, %object
	.size	front, 4
front:
	.space	4
	.global	rear
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"1. enqueue\000"
	.align	2
.LC1:
	.ascii	"2. dequeue\000"
	.align	2
.LC2:
	.ascii	"3. traverse\000"
	.align	2
.LC3:
	.ascii	"4. exit\000"
	.align	2
.LC4:
	.ascii	"5. number\000"
	.align	2
.LC5:
	.ascii	"enter your choice\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"enter an element\000"
	.align	2
.LC8:
	.ascii	"invalied input\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, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L10:
	ldr	r0, .L12+4
	bl	puts
	ldr	r0, .L12+8
	bl	puts
	ldr	r0, .L12+12
	bl	puts
	ldr	r0, .L12+16
	bl	puts
	ldr	r0, .L12+20
	bl	puts
	ldr	r0, .L12+24
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L12+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L8:
	ldr	r0, .L12+32
	bl	puts
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L12+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	insert
	b	.L9
.L7:
	bl	del
	b	.L9
.L6:
	bl	traverse
	b	.L9
.L5:
	mov	r0, #0
	bl	exit
.L3:
	bl	number
	b	.L9
.L2:
	ldr	r0, .L12+36
	bl	puts
.L9:
	b	.L10
.L13:
	.align	2
.L12:
	.word	.LC9
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.size	main, .-main
	.section	.rodata
	.align	2
.LC10:
	.ascii	"cqueue is full\000"
	.align	2
.LC11:
	.ascii	"----inserted----\000"
	.align	2
.LC12:
	.ascii	"front=%d  rear=%d\012\000"
	.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
	str	r0, [fp, #-8]
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L17+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L15
	ldr	r0, .L17+12
	bl	puts
	b	.L16
.L15:
	ldr	r3, .L17
	ldr	r3, [r3]
	ldr	r1, .L17+16
	ldr	r2, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L17
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L17+4
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L17
	str	r2, [r3]
	ldr	r0, .L17+20
	bl	puts
.L16:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r2, .L17
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L17+24
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	rear
	.word	1717986919
	.word	front
	.word	.LC10
	.word	queue
	.word	.LC11
	.word	.LC12
	.size	insert, .-insert
	.section	.rodata
	.align	2
.LC13:
	.ascii	"cqueue is empty\000"
	.align	2
.LC14:
	.ascii	"deleted item %d\012\000"
	.text
	.align	2
	.global	del
	.syntax unified
	.arm
	.fpu softvfp
	.type	del, %function
del:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L20
	ldr	r0, .L22+8
	bl	puts
	b	.L21
.L20:
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+12
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L22+16
	bl	printf
	ldr	r3, .L22
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L22+20
	smull	r2, r3, r1, r3
	asr	r2, r3, #1
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	sub	r2, r1, r3
	ldr	r3, .L22
	str	r2, [r3]
.L21:
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, .L22+4
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L22+24
	bl	printf
	nop
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	front
	.word	rear
	.word	.LC13
	.word	queue
	.word	.LC14
	.word	1717986919
	.word	.LC12
	.size	del, .-del
	.section	.rodata
	.align	2
.LC15:
	.ascii	"queue is empty\000"
	.align	2
.LC16:
	.ascii	"%d \000"
	.text
	.align	2
	.global	traverse
	.syntax unified
	.arm
	.fpu softvfp
	.type	traverse, %function
traverse:
	@ 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, .L34
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L34+8
	bl	puts
	b	.L24
.L25:
	ldr	r3, .L34
	ldr	r2, [r3]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L27
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	b	.L28
.L29:
	ldr	r2, .L34+12
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L34+16
	bl	printf
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	blt	.L29
	mov	r0, #10
	bl	putchar
	b	.L24
.L27:
	ldr	r3, .L34
	ldr	r3, [r3]
	cmp	r3, #4
	bgt	.L24
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L24
	ldr	r3, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L30
.L31:
	ldr	r2, .L34+12
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L34+16
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L30:
	ldr	r3, [fp, #-12]
	cmp	r3, #4
	ble	.L31
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L32
.L33:
	ldr	r2, .L34+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L34+20
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L32:
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L33
	mov	r0, #10
	bl	putchar
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	front
	.word	rear
	.word	.LC15
	.word	queue
	.word	.LC16
	.word	.LC6
	.size	traverse, .-traverse
	.section	.rodata
	.align	2
.LC17:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	number
	.syntax unified
	.arm
	.fpu softvfp
	.type	number, %function
number:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, .L40+4
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L37
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, .L40+4
	ldr	r3, [r3]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L40+8
	bl	printf
	b	.L39
.L37:
	ldr	r3, .L40+4
	ldr	r3, [r3]
	rsb	r2, r3, #5
	ldr	r3, .L40
	ldr	r3, [r3]
	add	r3, r2, r3
	mov	r1, r3
	ldr	r0, .L40+8
	bl	printf
.L39:
	nop
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	rear
	.word	front
	.word	.LC17
	.size	number, .-number
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
