	.file	"412386.c"
	.intel_syntax noprefix
	.text
	.globl	A
	.bss
	.align 32
	.type	A, @object
	.size	A, 40
A:
	.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
	.section	.rodata
.LC0:
	.string	"Can't Insert! FULL"
.LC1:
	.string	"Enter data: "
.LC2:
	.string	"%d"
	.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
	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	.L1
.L2:
	mov	eax, DWORD PTR front[rip]
	cmp	eax, -1
	jne	.L4
	mov	eax, DWORD PTR front[rip]
	add	eax, 1
	mov	DWORD PTR front[rip], eax
.L4:
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	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
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L1:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC3:
	.string	"Empty!"
.LC4:
	.string	"data: %d\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 front[rip]
	cmp	eax, -1
	jne	.L6
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L5
.L6:
	mov	edx, DWORD PTR front[rip]
	mov	eax, DWORD PTR rear[rip]
	cmp	edx, eax
	jne	.L8
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR front[rip], -1
	mov	DWORD PTR rear[rip], -1
	jmp	.L5
.L8:
	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
	movsx	rax, edx
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
.L5:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC5:
	.string	"At the top: %d\n"
	.text
	.globl	atFront
	.type	atFront, @function
atFront:
.LFB8:
	.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	.L10
	lea	rdi, .LC3[rip]
	call	puts@PLT
	jmp	.L9
.L10:
	mov	eax, DWORD PTR front[rip]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, A[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L9:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	atFront, .-atFront
	.section	.rodata
	.align 8
.LC6:
	.string	"1. Enqueue\n2. Dequeue\n3. At front\n4. Exit\n\nEnter 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
.L18:
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 3
	je	.L13
	cmp	eax, 3
	jg	.L14
	cmp	eax, 1
	je	.L15
	cmp	eax, 2
	je	.L16
	jmp	.L14
.L15:
	mov	eax, 0
	call	enqueue
	jmp	.L17
.L16:
	mov	eax, 0
	call	dequeue
	jmp	.L17
.L13:
	mov	eax, 0
	call	atFront
	jmp	.L17
.L14:
	mov	edi, 0
	call	exit@PLT
.L17:
	jmp	.L18
	.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	"412386.c"
	.text
	.comm	A,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
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Can't Insert! FULL\000"
	.align	2
.LC1:
	.ascii	"Enter data: \000"
	.align	2
.LC2:
	.ascii	"%d\000"
	.text
	.align	2
	.global	enqueue
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	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
	pop	{fp, pc}
.L2:
	ldr	r3, .L5+8
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L4
	ldr	r3, .L5+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L5+8
	str	r3, [r2]
.L4:
	ldr	r0, .L5+16
	bl	printf
	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
	lsl	r3, r2, #2
	ldr	r2, .L5+20
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L5+24
	bl	__isoc99_scanf
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	rear
	.word	1717986919
	.word	front
	.word	.LC0
	.word	.LC1
	.word	A
	.word	.LC2
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Empty!\000"
	.align	2
.LC4:
	.ascii	"data: %d\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, .L11
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L8
	ldr	r0, .L11+4
	bl	puts
	pop	{fp, pc}
.L8:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, .L11+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L10
	ldr	r3, .L11
	ldr	r3, [r3]
	ldr	r2, .L11+12
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
	ldr	r3, .L11
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L11+8
	mvn	r2, #0
	str	r2, [r3]
	pop	{fp, pc}
.L10:
	ldr	r3, .L11+8
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r3, .L11+20
	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+12
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, .L11+16
	bl	printf
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	front
	.word	.LC3
	.word	rear
	.word	A
	.word	.LC4
	.word	1717986919
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC5:
	.ascii	"At the top: %d\012\000"
	.text
	.align	2
	.global	atFront
	.syntax unified
	.arm
	.fpu softvfp
	.type	atFront, %function
atFront:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L16
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L14
	ldr	r0, .L16+4
	bl	puts
	pop	{fp, pc}
.L14:
	ldr	r3, .L16
	ldr	r3, [r3]
	ldr	r2, .L16+8
	ldr	r3, [r2, r3, lsl #2]
	mov	r1, r3
	ldr	r0, .L16+12
	bl	printf
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	front
	.word	.LC3
	.word	A
	.word	.LC5
	.size	atFront, .-atFront
	.section	.rodata
	.align	2
.LC6:
	.ascii	"1. Enqueue\0122. Dequeue\0123. At front\0124. Exit\012"
	.ascii	"\012Enter Choice: \000"
	.align	2
.LC7:
	.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, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L24:
	ldr	r0, .L26+4
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L26+8
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	cmp	r3, #3
	beq	.L19
	cmp	r3, #3
	bgt	.L20
	cmp	r3, #1
	beq	.L21
	cmp	r3, #2
	beq	.L22
	b	.L20
.L21:
	bl	enqueue
	b	.L23
.L22:
	bl	dequeue
	b	.L23
.L19:
	bl	atFront
	b	.L23
.L20:
	mov	r0, #0
	bl	exit
.L23:
	b	.L24
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC6
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
