	.file	"16807.c"
	.intel_syntax noprefix
	.text
	.globl	Q
	.bss
	.align 32
	.type	Q, @object
	.size	Q, 40
Q:
	.zero	40
	.globl	rear
	.data
	.align 4
	.type	rear, @object
	.size	rear, 4
rear:
	.long	-1
	.section	.rodata
.LC0:
	.string	"Enqueued successfully\n\n"
.LC1:
	.string	"Queue is full\n\n"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, -1
	jne	.L2
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
	mov	eax, DWORD PTR rear[rip]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Q[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L11
.L2:
	mov	eax, DWORD PTR rear[rip]
	cmp	eax, 9
	jne	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L11
.L4:
	mov	eax, DWORD PTR rear[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jle	.L10
	mov	eax, DWORD PTR -4[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, Q[rip]
	mov	DWORD PTR [rcx+rdx], eax
	sub	DWORD PTR -4[rbp], 1
.L5:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L9
	jmp	.L8
.L10:
	nop
.L8:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, Q[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR rear[rip]
	add	eax, 1
	mov	DWORD PTR rear[rip], eax
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L11:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC2:
	.string	"Queue is empty\n\n"
	.align 8
.LC3:
	.string	"The element dequeued is: %d\n\n\n"
	.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 rear[rip]
	cmp	eax, -1
	jne	.L13
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L15
.L13:
	mov	eax, DWORD PTR rear[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR rear[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC4:
	.string	"The queue is: "
.LC5:
	.string	"%d  "
.LC6:
	.string	"\n\n"
	.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 rear[rip]
	cmp	eax, -1
	jne	.L17
	lea	rdi, .LC2[rip]
	call	puts@PLT
	jmp	.L21
.L17:
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR rear[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, Q[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	sub	DWORD PTR -4[rbp], 1
.L19:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L20
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L21:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.section	.rodata
.LC7:
	.string	"1. Enqueue"
.LC8:
	.string	"2. Dequeue"
.LC9:
	.string	"3. Display"
.LC10:
	.string	"4. Exit"
.LC11:
	.string	"Enter your choice: "
.LC12:
	.string	" %c"
	.align 8
.LC13:
	.string	"Enter the element to enqueue: "
.LC14:
	.string	"%d"
.LC15:
	.string	"Wrong choice\n\n"
	.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
.L29:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -13[rbp]
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	movzx	eax, BYTE PTR -13[rbp]
	movsx	eax, al
	cmp	eax, 52
	je	.L23
	cmp	eax, 52
	jg	.L24
	cmp	eax, 51
	je	.L25
	cmp	eax, 51
	jg	.L24
	cmp	eax, 49
	je	.L26
	cmp	eax, 50
	je	.L27
	jmp	.L24
.L26:
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fflush@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	enqueue
	jmp	.L28
.L27:
	mov	eax, 0
	call	dequeue
	jmp	.L28
.L25:
	mov	eax, 0
	call	display
	jmp	.L28
.L23:
	mov	edi, 0
	call	exit@PLT
.L24:
	lea	rdi, .LC15[rip]
	call	puts@PLT
.L28:
	jmp	.L29
	.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	"16807.c"
	.text
	.comm	Q,40,4
	.global	rear
	.data
	.align	2
	.type	rear, %object
	.size	rear, 4
rear:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Enqueued successfully\012\012\000"
	.align	2
.LC1:
	.ascii	"Queue is full\012\012\000"
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L12
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L2
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r3, [r3]
	ldr	r1, .L12+4
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r0, .L12+8
	bl	puts
	b	.L11
.L2:
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #9
	bne	.L4
	ldr	r0, .L12+12
	bl	puts
	b	.L11
.L4:
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L5
.L9:
	ldr	r2, .L12+4
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	ble	.L10
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L12+4
	ldr	r2, [fp, #-8]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L12+4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L9
	b	.L8
.L10:
	nop
.L8:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r1, .L12+4
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r0, .L12+8
	bl	puts
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	rear
	.word	Q
	.word	.LC0
	.word	.LC1
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Queue is empty\012\012\000"
	.align	2
.LC3:
	.ascii	"The element dequeued is: %d\012\012\012\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, .L18
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L15
	ldr	r0, .L18+4
	bl	puts
	b	.L17
.L15:
	ldr	r3, .L18
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L18
	str	r2, [r1]
	ldr	r2, .L18+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L18+12
	bl	printf
.L17:
	nop
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	rear
	.word	.LC2
	.word	Q
	.word	.LC3
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC4:
	.ascii	"The queue is: \000"
	.align	2
.LC5:
	.ascii	"%d  \000"
	.align	2
.LC6:
	.ascii	"\012\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
	ldr	r3, .L26
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L21
	ldr	r0, .L26+4
	bl	puts
	b	.L25
.L21:
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L23
.L24:
	ldr	r2, .L26+12
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L26+16
	bl	printf
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L24
	ldr	r0, .L26+20
	bl	puts
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	rear
	.word	.LC2
	.word	.LC4
	.word	Q
	.word	.LC5
	.word	.LC6
	.size	display, .-display
	.section	.rodata
	.align	2
.LC7:
	.ascii	"1. Enqueue\000"
	.align	2
.LC8:
	.ascii	"2. Dequeue\000"
	.align	2
.LC9:
	.ascii	"3. Display\000"
	.align	2
.LC10:
	.ascii	"4. Exit\000"
	.align	2
.LC11:
	.ascii	"Enter your choice: \000"
	.align	2
.LC12:
	.ascii	" %c\000"
	.align	2
.LC13:
	.ascii	"Enter the element to enqueue: \000"
	.align	2
.LC14:
	.ascii	"%d\000"
	.align	2
.LC15:
	.ascii	"Wrong choice\012\012\000"
	.align	2
.LC16:
	.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, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L36:
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, .L38+8
	bl	puts
	ldr	r0, .L38+12
	bl	puts
	ldr	r0, .L38+16
	bl	puts
	ldr	r0, .L38+20
	bl	puts
	ldr	r0, .L38+24
	bl	printf
	sub	r3, fp, #13
	mov	r1, r3
	ldr	r0, .L38+28
	bl	__isoc99_scanf
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	sub	r3, r3, #49
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L29
.L31:
	.word	.L34
	.word	.L33
	.word	.L32
	.word	.L30
.L34:
	ldr	r0, .L38+32
	bl	printf
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L38+36
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	enqueue
	b	.L35
.L33:
	bl	dequeue
	b	.L35
.L32:
	bl	display
	b	.L35
.L30:
	mov	r0, #0
	bl	exit
.L29:
	ldr	r0, .L38+40
	bl	puts
.L35:
	b	.L36
.L39:
	.align	2
.L38:
	.word	.LC16
	.word	stdin
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
