	.file	"693219.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
	.section	.rodata
	.align 8
.LC0:
	.string	"\n-----------Queue using linked list------------:"
.LC1:
	.string	"\n\n1. Enqueue the element."
.LC2:
	.string	"\n2. Dequeue the element."
.LC3:
	.string	"\n3. Display"
.LC4:
	.string	"\n0. Exit"
.LC5:
	.string	"\nEnter the choice :"
.LC6:
	.string	"%d"
.LC7:
	.string	"\nEnter the number n : "
	.align 8
.LC8:
	.string	"\nEnter the value to be insert: "
.LC9:
	.string	" %d"
.LC10:
	.string	"\nInvalid 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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L9:
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@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]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 3
	je	.L2
	cmp	eax, 3
	jg	.L3
	cmp	eax, 2
	je	.L4
	cmp	eax, 2
	jg	.L3
	test	eax, eax
	je	.L5
	cmp	eax, 1
	jne	.L3
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -12[rbp], 0
	jmp	.L6
.L7:
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	enqueue
	add	DWORD PTR -12[rbp], 1
.L6:
	mov	eax, DWORD PTR -24[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L7
	mov	eax, 0
	call	display
	jmp	.L8
.L4:
	call	dequeue
	mov	eax, 0
	call	display
	jmp	.L8
.L2:
	mov	eax, 0
	call	display
	jmp	.L8
.L5:
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rdi, .LC10[rip]
	call	puts@PLT
.L8:
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jg	.L9
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	enqueue
	.type	enqueue, @function
enqueue:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR rear[rip]
	test	rax, rax
	jne	.L13
	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 -8[rbp]
	mov	QWORD PTR rear[rip], rax
	mov	rax, QWORD PTR rear[rip]
	mov	QWORD PTR front[rip], rax
	jmp	.L12
.L13:
	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	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 -8[rbp]
	mov	QWORD PTR rear[rip], rax
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	enqueue, .-enqueue
	.section	.rodata
.LC11:
	.string	"\nQueue underflow"
.LC12:
	.string	"\nDequeue value is %d\n"
	.text
	.globl	dequeue
	.type	dequeue, @function
dequeue:
.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 front[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR front[rip]
	test	rax, rax
	jne	.L16
	lea	rdi, .LC11[rip]
	call	puts@PLT
	jmp	.L19
.L16:
	mov	rax, QWORD PTR front[rip]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR front[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR front[rip]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR front[rip], rax
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR front[rip]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR front[rip], 0
	mov	QWORD PTR rear[rip], 0
.L19:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC13:
	.string	"\nQueue is empty"
.LC14:
	.string	"\nValue is :: "
.LC15:
	.string	"%d\t"
	.text
	.globl	display
	.type	display, @function
display:
.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 front[rip]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L21
	mov	rax, QWORD PTR rear[rip]
	test	rax, rax
	jne	.L21
	lea	rdi, .LC13[rip]
	call	puts@PLT
.L21:
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC15[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
.L22:
	mov	rax, QWORD PTR rear[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L23
	mov	rax, QWORD PTR rear[rip]
	cmp	QWORD PTR -8[rbp], rax
	jne	.L25
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
.L25:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	display, .-display
	.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	"693219.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
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012-----------Queue using linked list------------:"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"\012\0121. Enqueue the element.\000"
	.align	2
.LC2:
	.ascii	"\0122. Dequeue the element.\000"
	.align	2
.LC3:
	.ascii	"\0123. Display\000"
	.align	2
.LC4:
	.ascii	"\0120. Exit\000"
	.align	2
.LC5:
	.ascii	"\012Enter the choice :\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"\012Enter the number n : \000"
	.align	2
.LC8:
	.ascii	"\012Enter the value to be insert: \000"
	.align	2
.LC9:
	.ascii	" %d\000"
	.align	2
.LC10:
	.ascii	"\012Invalid Input\000"
	.align	2
.LC11:
	.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, .L14
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L11:
	ldr	r0, .L14+4
	bl	printf
	ldr	r0, .L14+8
	bl	puts
	ldr	r0, .L14+12
	bl	puts
	ldr	r0, .L14+16
	bl	puts
	ldr	r0, .L14+20
	bl	puts
	ldr	r0, .L14+24
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L14+28
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L6:
	ldr	r0, .L14+32
	bl	printf
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L14+28
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L8
.L9:
	ldr	r0, .L14+36
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L14+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	enqueue
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L8:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L9
	bl	display
	b	.L10
.L5:
	bl	dequeue
	bl	display
	b	.L10
.L3:
	bl	display
	b	.L10
.L7:
	mov	r0, #1
	bl	exit
.L2:
	ldr	r0, .L14+44
	bl	puts
.L10:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L11
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	ldr	r2, .L14
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC11
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.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, .L19
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L19
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, .L19+4
	str	r3, [r2]
	b	.L16
.L17:
	ldr	r3, .L19
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r2, .L19
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	rear
	.word	front
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC12:
	.ascii	"\012Queue underflow\000"
	.align	2
.LC13:
	.ascii	"\012Dequeue value is %d\012\000"
	.text
	.align	2
	.global	dequeue
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ 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]
	ldr	r3, .L26
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r0, .L26+4
	bl	puts
	b	.L25
.L22:
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L24
	ldr	r3, .L26
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r2, .L26
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L25
.L24:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, .L26
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L26+12
	mov	r2, #0
	str	r2, [r3]
.L25:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	front
	.word	.LC12
	.word	.LC13
	.word	rear
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\012Queue is empty\000"
	.align	2
.LC15:
	.ascii	"\012Value is :: \000"
	.align	2
.LC16:
	.ascii	"%d\011\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, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L34+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L29
	ldr	r0, .L34+8
	bl	puts
.L29:
	ldr	r0, .L34+12
	bl	printf
	b	.L30
.L31:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+16
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L30:
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L31
	ldr	r3, .L34+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L33
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+16
	bl	printf
.L33:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	front
	.word	rear
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
