	.file	"154828585.c"
	.intel_syntax noprefix
	.text
	.globl	front
	.bss
	.align 8
	.type	front, @object
	.size	front, 8
front:
	.zero	8
	.section	.rodata
	.align 8
.LC0:
	.string	"\n ------Welcome to the programme ---\n"
.LC1:
	.string	"\n----Enter your choice----"
.LC2:
	.string	"\n 1> Enqueue"
.LC3:
	.string	"\n 2>Dequeue"
.LC4:
	.string	"\n 3>Display"
.LC5:
	.string	"\n 3>Exit"
.LC6:
	.string	"%d"
	.align 8
.LC7:
	.string	"\nEnter the data you want to add in the  queue "
	.align 8
.LC8:
	.string	"\nEnter the correspoding priority"
.LC9:
	.string	"\nYou decided to dequeue"
	.align 8
.LC10:
	.string	"\n %d has been removed from the queue\n"
	.align 8
.LC11:
	.string	"\n Invalid choice please choose again"
	.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
	lea	rdi, .LC0[rip]
	call	puts@PLT
.L9:
	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
	mov	edi, 10
	call	putchar@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, 4
	je	.L2
	cmp	eax, 4
	jg	.L3
	cmp	eax, 3
	je	.L4
	cmp	eax, 3
	jg	.L3
	cmp	eax, 1
	je	.L5
	cmp	eax, 2
	je	.L6
	jmp	.L3
.L5:
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, edx
	mov	edi, eax
	call	Insert
	jmp	.L7
.L6:
	lea	rdi, .LC9[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	call	Dequeue
	mov	DWORD PTR -20[rbp], eax
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L11
.L4:
	mov	eax, 0
	call	Display
	jmp	.L7
.L2:
	mov	edi, 0
	call	exit@PLT
.L3:
	lea	rdi, .LC11[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L9
.L11:
	nop
.L7:
	jmp	.L9
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR front[rip]
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR front[rip]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -24[rbp], eax
	jge	.L14
.L13:
	mov	rdx, QWORD PTR front[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR front[rip], rax
	jmp	.L15
.L14:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L16
.L18:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -24[rbp], eax
	jge	.L18
.L17:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	nop
.L15:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	Insert, .-Insert
	.section	.rodata
	.align 8
.LC12:
	.string	"\n Sorry there is underflow cannot remove a node from empty queue buddy:"
	.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]
	test	rax, rax
	jne	.L20
	lea	rdi, .LC12[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, 0
	jmp	.L21
.L20:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -8[rbp], rax
	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	eax, DWORD PTR [rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -12[rbp]
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	Dequeue, .-Dequeue
	.section	.rodata
.LC13:
	.string	"\n Queue is empty"
.LC14:
	.string	"\nYour queue is as follows :"
.LC15:
	.string	"\n Data ->%d \t Priority -> %d"
	.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]
	test	rax, rax
	jne	.L23
	lea	rdi, .LC13[rip]
	call	puts@PLT
	jmp	.L27
.L23:
	mov	rax, QWORD PTR front[rip]
	mov	QWORD PTR -8[rbp], rax
	lea	rdi, .LC14[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	jmp	.L25
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	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
.L25:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L26
.L27:
	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	"154828585.c"
	.text
	.global	front
	.bss
	.align	2
	.type	front, %object
	.size	front, 4
front:
	.space	4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012 ------Welcome to the programme ---\012\000"
	.align	2
.LC1:
	.ascii	"\012----Enter your choice----\000"
	.align	2
.LC2:
	.ascii	"\012 1> Enqueue\000"
	.align	2
.LC3:
	.ascii	"\012 2>Dequeue\000"
	.align	2
.LC4:
	.ascii	"\012 3>Display\000"
	.align	2
.LC5:
	.ascii	"\012 3>Exit\000"
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"\012Enter the data you want to add in the  queue \000"
	.align	2
.LC8:
	.ascii	"\012Enter the correspoding priority\000"
	.align	2
.LC9:
	.ascii	"\012You decided to dequeue\000"
	.align	2
.LC10:
	.ascii	"\012 %d has been removed from the queue\012\000"
	.align	2
.LC11:
	.ascii	"\012 Invalid choice please choose again\000"
	.align	2
.LC12:
	.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, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L13+4
	bl	puts
.L10:
	ldr	r0, .L13+8
	bl	puts
	ldr	r0, .L13+12
	bl	puts
	ldr	r0, .L13+16
	bl	puts
	ldr	r0, .L13+20
	bl	puts
	ldr	r0, .L13+24
	bl	puts
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-12]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L2
.L4:
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L7:
	ldr	r0, .L13+32
	bl	puts
	mov	r0, #10
	bl	putchar
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	ldr	r0, .L13+36
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L13+28
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	Insert
	b	.L8
.L6:
	ldr	r0, .L13+40
	bl	puts
	mov	r0, #10
	bl	putchar
	bl	Dequeue
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L13+44
	bl	printf
	mov	r0, #10
	bl	putchar
	b	.L12
.L5:
	bl	Display
	b	.L8
.L3:
	mov	r0, #0
	bl	exit
.L2:
	ldr	r0, .L13+48
	bl	puts
	mov	r0, #10
	bl	putchar
	b	.L10
.L12:
	nop
.L8:
	b	.L10
.L14:
	.align	2
.L13:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.align	2
	.global	Insert
	.syntax unified
	.arm
	.fpu softvfp
	.type	Insert, %function
Insert:
	@ 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]
	str	r1, [fp, #-20]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, .L22
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L16
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L17
.L16:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r2, .L22
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	b	.L18
.L17:
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	b	.L19
.L21:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L21
.L20:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #8]
	nop
.L18:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	front
	.size	Insert, .-Insert
	.section	.rodata
	.align	2
.LC13:
	.ascii	"\012 Sorry there is underflow cannot remove a node "
	.ascii	"from empty queue buddy:\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, .L27
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L25
	ldr	r0, .L27+4
	bl	puts
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	b	.L26
.L25:
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L27
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, .L27
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	free
	ldr	r3, [fp, #-8]
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	front
	.word	.LC13
	.size	Dequeue, .-Dequeue
	.section	.rodata
	.align	2
.LC14:
	.ascii	"\012 Queue is empty\000"
	.align	2
.LC15:
	.ascii	"\012Your queue is as follows :\000"
	.align	2
.LC16:
	.ascii	"\012 Data ->%d \011 Priority -> %d\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, .L35
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L30
	ldr	r0, .L35+4
	bl	puts
	b	.L34
.L30:
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, .L35+8
	bl	puts
	mov	r0, #10
	bl	putchar
	b	.L32
.L33:
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L35+12
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
.L32:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
.L34:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	front
	.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
