	.file	"9513501.c"
	.intel_syntax noprefix
	.text
	.globl	front
	.bss
	.align 8
	.type	front, @object
	.size	front, 8
front:
	.zero	8
	.globl	rear
	.align 8
	.type	rear, @object
	.size	rear, 8
rear:
	.zero	8
	.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	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR front[rip]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR front[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR rear[rip], rax
	jmp	.L1
.L2:
	mov	rax, QWORD PTR rear[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR rear[rip], rax
	nop
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC0:
	.string	"\n Queue Empty"
.LC1:
	.string	" %d\n"
	.text
	.globl	display
	.type	display, @function
display:
.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	rax, QWORD PTR front[rip]
	test	rax, rax
	jne	.L5
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
.L5:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L7
.L8:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L7:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	display, .-display
	.section	.rodata
.LC2:
	.string	"\n The deleted item is %d"
	.text
	.globl	dequeueFront
	.type	dequeueFront, @function
dequeueFront:
.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	rax, QWORD PTR rear[rip]
	test	rax, rax
	jne	.L10
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L10:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR front[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR rear[rip]
	mov	rax, QWORD PTR front[rip]
	cmp	rdx, rax
	jne	.L12
	mov	QWORD PTR rear[rip], 0
	mov	QWORD PTR front[rip], 0
	jmp	.L9
.L12:
	mov	rax, QWORD PTR front[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR front[rip], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dequeueFront, .-dequeueFront
	.globl	dequeueRear
	.type	dequeueRear, @function
dequeueRear:
.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 rear[rip]
	test	rax, rax
	jne	.L14
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L13
.L14:
	mov	rax, QWORD PTR rear[rip]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR rear[rip]
	mov	rax, QWORD PTR front[rip]
	cmp	rdx, rax
	jne	.L16
	mov	QWORD PTR rear[rip], 0
	mov	QWORD PTR front[rip], 0
	jmp	.L13
.L16:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L17:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR rear[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR rear[rip], rax
	mov	rax, QWORD PTR rear[rip]
	mov	QWORD PTR 8[rax], 0
	nop
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dequeueRear, .-dequeueRear
	.section	.rodata
.LC3:
	.string	"\nMain Menu"
.LC4:
	.string	"\n1.Insert"
.LC5:
	.string	"\n2.Delete Front"
.LC6:
	.string	"\n3.Delete Rear"
.LC7:
	.string	"\n4.Display"
.LC8:
	.string	"\n5.Exit"
.LC9:
	.string	"\nEnter the choice: "
.LC10:
	.string	"%d"
.LC11:
	.string	"\nEnter the value to insert: "
.LC12:
	.string	"Exit"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
.L26:
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 4
	je	.L20
	cmp	eax, 4
	jg	.L21
	cmp	eax, 3
	je	.L22
	cmp	eax, 3
	jg	.L21
	cmp	eax, 1
	je	.L23
	cmp	eax, 2
	je	.L24
	jmp	.L21
.L23:
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	enqueue
	jmp	.L25
.L24:
	mov	eax, 0
	call	dequeueFront
	jmp	.L25
.L22:
	mov	eax, 0
	call	dequeueRear
	jmp	.L25
.L20:
	mov	eax, 0
	call	display
	jmp	.L25
.L21:
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
.L25:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, 5
	jne	.L26
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.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	"9513501.c"
	.text
	.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
	.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]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r2, .L4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r2, .L4+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L1
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r2, .L4+4
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	nop
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	front
	.word	rear
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 Queue Empty\000"
	.align	2
.LC1:
	.ascii	" %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
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L7
	ldr	r0, .L11+4
	bl	printf
	b	.L6
.L7:
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+8
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	front
	.word	.LC0
	.word	.LC1
	.size	display, .-display
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012 The deleted item is %d\000"
	.text
	.align	2
	.global	dequeueFront
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeueFront, %function
dequeueFront:
	@ 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, .L17
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L17+4
	bl	printf
	b	.L13
.L14:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L17+12
	bl	printf
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, .L17+8
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L16
	ldr	r3, .L17
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L17+8
	mov	r2, #0
	str	r2, [r3]
	b	.L13
.L16:
	ldr	r3, .L17+8
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, .L17+8
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	free
	nop
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	rear
	.word	.LC0
	.word	front
	.word	.LC2
	.size	dequeueFront, .-dequeueFront
	.align	2
	.global	dequeueRear
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeueRear, %function
dequeueRear:
	@ 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, .L25
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r0, .L25+4
	bl	printf
	b	.L19
.L20:
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L25+8
	bl	printf
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25+12
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L22
	ldr	r3, .L25
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L25+12
	mov	r2, #0
	str	r2, [r3]
	b	.L19
.L22:
	ldr	r3, .L25+12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L23
.L24:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L23:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, .L25
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #0
	str	r2, [r3, #4]
	nop
.L19:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	rear
	.word	.LC0
	.word	.LC2
	.word	front
	.size	dequeueRear, .-dequeueRear
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Main Menu\000"
	.align	2
.LC4:
	.ascii	"\0121.Insert\000"
	.align	2
.LC5:
	.ascii	"\0122.Delete Front\000"
	.align	2
.LC6:
	.ascii	"\0123.Delete Rear\000"
	.align	2
.LC7:
	.ascii	"\0124.Display\000"
	.align	2
.LC8:
	.ascii	"\0125.Exit\000"
	.align	2
.LC9:
	.ascii	"\012Enter the choice: \000"
	.align	2
.LC10:
	.ascii	"%d\000"
	.align	2
.LC11:
	.ascii	"\012Enter the value to insert: \000"
	.align	2
.LC12:
	.ascii	"Exit\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 = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
.L35:
	ldr	r0, .L38+4
	bl	printf
	ldr	r0, .L38+8
	bl	printf
	ldr	r0, .L38+12
	bl	printf
	ldr	r0, .L38+16
	bl	printf
	ldr	r0, .L38+20
	bl	printf
	ldr	r0, .L38+24
	bl	printf
	ldr	r0, .L38+28
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L38+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-24]
	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, .L38+36
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L38+32
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	enqueue
	b	.L34
.L32:
	bl	dequeueFront
	b	.L34
.L31:
	bl	dequeueRear
	b	.L34
.L29:
	bl	display
	b	.L34
.L28:
	ldr	r0, .L38+40
	bl	printf
.L34:
	ldr	r3, [fp, #-24]
	cmp	r3, #5
	bne	.L35
	mov	r3, #0
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC13
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.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
