	.file	"695530.c"
	.intel_syntax noprefix
	.text
	.globl	CAPACITY
	.data
	.align 4
	.type	CAPACITY, @object
	.size	CAPACITY, 4
CAPACITY:
	.long	10
	.globl	size
	.bss
	.align 4
	.type	size, @object
	.size	size, 4
size:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"\tIn this program the greater the priority value of the task, the higher is the priority of the task"
.LC1:
	.string	"1...Enter a new task"
	.align 8
.LC2:
	.string	"2...Remove highest priority task"
	.align 8
.LC3:
	.string	"3...Show highest priority task"
.LC4:
	.string	"4...Exit"
.LC5:
	.string	"Enter you option below:"
.LC6:
	.string	"-> "
.LC7:
	.string	"%d"
.LC8:
	.string	"Enter the task ID:"
.LC9:
	.string	"Enter the task Priority:"
.LC10:
	.string	"Element Processed is:"
.LC11:
	.string	"ID: %d\n"
.LC12:
	.string	"Priority: %d\n"
	.align 8
.LC13:
	.string	"Element Ready to be Processed first is:"
	.align 8
.LC14:
	.string	"Invalid option entered, please try again !\n"
	.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, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR CAPACITY[rip]
	cdqe
	sal	rax, 3
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	DWORD PTR -32[rbp], 0
	jmp	.L2
.L3:
	mov	edi, 45
	call	putchar@PLT
	add	DWORD PTR -32[rbp], 1
.L2:
	cmp	DWORD PTR -32[rbp], 109
	jle	.L3
	mov	edi, 10
	call	putchar@PLT
.L12:
	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
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -36[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 4
	je	.L15
	cmp	eax, 4
	jg	.L5
	cmp	eax, 3
	je	.L6
	cmp	eax, 3
	jg	.L5
	cmp	eax, 1
	je	.L7
	cmp	eax, 2
	je	.L8
	jmp	.L5
.L7:
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	add	rax, 4
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	addTask
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	poll
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L6:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	peek
	mov	QWORD PTR -16[rbp], rax
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L9
.L5:
	lea	rdi, .LC14[rip]
	call	puts@PLT
	jmp	.L9
.L15:
	nop
.L9:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L10
.L11:
	mov	edi, 45
	call	putchar@PLT
	add	DWORD PTR -28[rbp], 1
.L10:
	cmp	DWORD PTR -28[rbp], 99
	jle	.L11
	mov	edi, 10
	call	putchar@PLT
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 4
	jne	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L14
	call	__stack_chk_fail@PLT
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	heapifyDown
	.type	heapifyDown, @function
heapifyDown:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	getLeftChildIndex
	mov	DWORD PTR -20[rbp], eax
	jmp	.L17
.L21:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	hasRightChild
	test	al, al
	je	.L18
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	rightChild
	sar	rax, 32
	mov	ebx, eax
	mov	rdx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	leftChild
	sar	rax, 32
	cmp	ebx, eax
	jle	.L18
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	getRightChildIndex
	mov	DWORD PTR -20[rbp], eax
.L18:
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jg	.L22
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, ecx
	mov	edi, eax
	call	swap
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -24[rbp], eax
.L17:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	hasLeftChild
	test	al, al
	jne	.L21
	jmp	.L23
.L22:
	nop
.L23:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	heapifyDown, .-heapifyDown
	.globl	heapifyUp
	.type	heapifyUp, @function
heapifyUp:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR size[rip]
	sub	eax, 1
	mov	DWORD PTR -4[rbp], eax
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getParentIndex
	mov	ecx, eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	mov	edi, ecx
	call	swap
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getParentIndex
	mov	DWORD PTR -4[rbp], eax
.L25:
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	hasParent
	test	al, al
	je	.L28
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parent
	sar	rax, 32
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jl	.L27
.L28:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	heapifyUp, .-heapifyUp
	.globl	addTask
	.type	addTask, @function
addTask:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	ensureExtraCapacity
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR size[rip]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR size[rip]
	add	eax, 1
	mov	DWORD PTR size[rip], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	heapifyUp
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	addTask, .-addTask
	.section	.rodata
.LC15:
	.string	"Error !"
	.text
	.globl	poll
	.type	poll, @function
poll:
.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	QWORD PTR -24[rbp], rdi
	mov	eax, DWORD PTR size[rip]
	test	eax, eax
	jne	.L31
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR size[rip]
	cdqe
	sal	rax, 3
	lea	rdx, -8[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR [rax], rdx
	mov	eax, DWORD PTR size[rip]
	sub	eax, 1
	mov	DWORD PTR size[rip], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	heapifyDown
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	poll, .-poll
	.globl	peek
	.type	peek, @function
peek:
.LFB11:
	.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	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR size[rip]
	test	eax, eax
	jne	.L34
	lea	rdi, .LC15[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	peek, .-peek
	.globl	ensureExtraCapacity
	.type	ensureExtraCapacity, @function
ensureExtraCapacity:
.LFB12:
	.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	QWORD PTR -8[rbp], rdi
	mov	eax, DWORD PTR CAPACITY[rip]
	add	eax, eax
	movsx	rdx, eax
	imul	rdx, rdx, 1431655766
	shr	rdx, 32
	sar	eax, 31
	sub	edx, eax
	mov	eax, DWORD PTR size[rip]
	cmp	edx, eax
	jge	.L38
	mov	eax, DWORD PTR CAPACITY[rip]
	add	eax, eax
	mov	DWORD PTR CAPACITY[rip], eax
	mov	eax, DWORD PTR CAPACITY[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L38:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	ensureExtraCapacity, .-ensureExtraCapacity
	.globl	swap
	.type	swap, @function
swap:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	mov	rdx, QWORD PTR -32[rbp]
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	swap, .-swap
	.globl	parent
	.type	parent, @function
parent:
.LFB14:
	.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getParentIndex
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	parent, .-parent
	.globl	rightChild
	.type	rightChild, @function
rightChild:
.LFB15:
	.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getRightChildIndex
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	rightChild, .-rightChild
	.globl	leftChild
	.type	leftChild, @function
leftChild:
.LFB16:
	.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getLeftChildIndex
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	leftChild, .-leftChild
	.globl	hasParent
	.type	hasParent, @function
hasParent:
.LFB17:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getParentIndex
	not	eax
	shr	eax, 31
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	hasParent, .-hasParent
	.globl	hasRightChild
	.type	hasRightChild, @function
hasRightChild:
.LFB18:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getRightChildIndex
	mov	edx, DWORD PTR size[rip]
	cmp	eax, edx
	setl	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	hasRightChild, .-hasRightChild
	.globl	hasLeftChild
	.type	hasLeftChild, @function
hasLeftChild:
.LFB19:
	.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	getLeftChildIndex
	mov	edx, DWORD PTR size[rip]
	cmp	eax, edx
	setl	al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	hasLeftChild, .-hasLeftChild
	.globl	getLeftChildIndex
	.type	getLeftChildIndex, @function
getLeftChildIndex:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	add	eax, eax
	add	eax, 1
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	getLeftChildIndex, .-getLeftChildIndex
	.globl	getRightChildIndex
	.type	getRightChildIndex, @function
getRightChildIndex:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	add	eax, eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	getRightChildIndex, .-getRightChildIndex
	.globl	getParentIndex
	.type	getParentIndex, @function
getParentIndex:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 1
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	getParentIndex, .-getParentIndex
	.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	"695530.c"
	.text
	.global	CAPACITY
	.data
	.align	2
	.type	CAPACITY, %object
	.size	CAPACITY, 4
CAPACITY:
	.word	10
	.comm	size,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\011In this program the greater the priority value "
	.ascii	"of the task, the higher is the priority of the task"
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"1...Enter a new task\000"
	.align	2
.LC2:
	.ascii	"2...Remove highest priority task\000"
	.align	2
.LC3:
	.ascii	"3...Show highest priority task\000"
	.align	2
.LC4:
	.ascii	"4...Exit\000"
	.align	2
.LC5:
	.ascii	"Enter you option below:\000"
	.align	2
.LC6:
	.ascii	"-> \000"
	.align	2
.LC7:
	.ascii	"%d\000"
	.align	2
.LC8:
	.ascii	"Enter the task ID:\000"
	.align	2
.LC9:
	.ascii	"Enter the task Priority:\000"
	.align	2
.LC10:
	.ascii	"Element Processed is:\000"
	.align	2
.LC11:
	.ascii	"ID: %d\012\000"
	.align	2
.LC12:
	.ascii	"Priority: %d\012\000"
	.align	2
.LC13:
	.ascii	"Element Ready to be Processed first is:\000"
	.align	2
.LC14:
	.ascii	"Invalid option entered, please try again !\012\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L17+4
	ldr	r3, [r3]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L17+8
	bl	puts
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L2
.L3:
	mov	r0, #45
	bl	putchar
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #109
	ble	.L3
	mov	r0, #10
	bl	putchar
.L13:
	ldr	r0, .L17+12
	bl	puts
	ldr	r0, .L17+16
	bl	puts
	ldr	r0, .L17+20
	bl	puts
	ldr	r0, .L17+24
	bl	puts
	ldr	r0, .L17+28
	bl	puts
	ldr	r0, .L17+32
	bl	printf
	sub	r3, fp, #32
	mov	r1, r3
	ldr	r0, .L17+36
	bl	__isoc99_scanf
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-32]
	sub	r3, r3, #1
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L4
.L6:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L16
.L9:
	ldr	r0, .L17+40
	bl	puts
	ldr	r0, .L17+32
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L17+36
	bl	__isoc99_scanf
	ldr	r0, .L17+44
	bl	puts
	ldr	r0, .L17+32
	bl	printf
	sub	r3, fp, #16
	add	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L17+36
	bl	__isoc99_scanf
	ldr	r2, [fp, #-20]
	sub	r3, fp, #16
	ldm	r3, {r0, r1}
	bl	addTask
	b	.L10
.L8:
	sub	r3, fp, #44
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	poll
	sub	r3, fp, #16
	sub	r2, fp, #44
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, .L17+48
	bl	puts
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L17+52
	bl	printf
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L17+56
	bl	printf
	b	.L10
.L7:
	sub	r3, fp, #44
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	peek
	sub	r3, fp, #16
	sub	r2, fp, #44
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, .L17+60
	bl	puts
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, .L17+52
	bl	printf
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L17+56
	bl	printf
	b	.L10
.L4:
	ldr	r0, .L17+64
	bl	puts
	b	.L10
.L16:
	nop
.L10:
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L11
.L12:
	mov	r0, #45
	bl	putchar
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L11:
	ldr	r3, [fp, #-24]
	cmp	r3, #99
	ble	.L12
	mov	r0, #10
	bl	putchar
	ldr	r3, [fp, #-32]
	cmp	r3, #4
	bne	.L13
	ldr	r0, [fp, #-20]
	bl	free
	mov	r3, #0
	ldr	r2, .L17
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC15
	.word	CAPACITY
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.section	.rodata
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	heapifyDown
	.syntax unified
	.arm
	.fpu softvfp
	.type	heapifyDown, %function
heapifyDown:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-48]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r0, [fp, #-40]
	bl	getLeftChildIndex
	str	r0, [fp, #-36]
	b	.L20
.L24:
	ldr	r0, [fp, #-40]
	bl	hasRightChild
	mov	r3, r0
	cmp	r3, #0
	beq	.L21
	sub	r3, fp, #32
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	rightChild
	ldr	r4, [fp, #-28]
	sub	r3, fp, #24
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	leftChild
	ldr	r3, [fp, #-20]
	cmp	r4, r3
	ble	.L21
	ldr	r0, [fp, #-40]
	bl	getRightChildIndex
	str	r0, [fp, #-36]
.L21:
	ldr	r3, [fp, #-40]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-48]
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-36]
	lsl	r3, r3, #3
	ldr	r1, [fp, #-48]
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bgt	.L26
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-40]
	bl	swap
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-40]
.L20:
	ldr	r0, [fp, #-40]
	bl	hasLeftChild
	mov	r3, r0
	cmp	r3, #0
	bne	.L24
	b	.L23
.L26:
	nop
.L23:
	nop
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC16
	.size	heapifyDown, .-heapifyDown
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	heapifyUp
	.syntax unified
	.arm
	.fpu softvfp
	.type	heapifyUp, %function
heapifyUp:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L35
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L35+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-20]
	b	.L30
.L32:
	ldr	r0, [fp, #-20]
	bl	getParentIndex
	mov	r3, r0
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	swap
	ldr	r0, [fp, #-20]
	bl	getParentIndex
	str	r0, [fp, #-20]
.L30:
	ldr	r0, [fp, #-20]
	bl	hasParent
	mov	r3, r0
	cmp	r3, #0
	beq	.L34
	sub	r3, fp, #16
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	parent
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r1, [fp, #-24]
	add	r3, r1, r3
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L32
.L34:
	nop
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	.LC17
	.word	size
	.size	heapifyUp, .-heapifyUp
	.align	2
	.global	addTask
	.syntax unified
	.arm
	.fpu softvfp
	.type	addTask, %function
addTask:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	sub	r3, fp, #12
	stm	r3, {r0, r1}
	str	r2, [fp, #-16]
	sub	r3, fp, #16
	mov	r0, r3
	bl	ensureExtraCapacity
	ldr	r2, [fp, #-16]
	ldr	r3, .L38
	ldr	r3, [r3]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r3, .L38
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L38
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	heapifyUp
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	size
	.size	addTask, .-addTask
	.section	.rodata
	.align	2
.LC18:
	.ascii	"Error !\000"
	.text
	.align	2
	.global	poll
	.syntax unified
	.arm
	.fpu softvfp
	.type	poll, %function
poll:
	@ 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]
	ldr	r3, .L43
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L41
	ldr	r0, .L43+4
	bl	puts
	mov	r0, #0
	bl	exit
.L41:
	ldr	r2, [fp, #-20]
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L43
	ldr	r3, [r3]
	sub	r3, r3, #-536870911
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, .L43
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L43
	str	r3, [r2]
	ldr	r0, [fp, #-20]
	bl	heapifyDown
	ldr	r3, [fp, #-16]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-16]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	size
	.word	.LC18
	.size	poll, .-poll
	.align	2
	.global	peek
	.syntax unified
	.arm
	.fpu softvfp
	.type	peek, %function
peek:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, .L48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L46
	ldr	r0, .L48+4
	bl	puts
	mov	r0, #0
	bl	exit
.L46:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, [fp, #-8]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	size
	.word	.LC18
	.size	peek, .-peek
	.align	2
	.global	ensureExtraCapacity
	.syntax unified
	.arm
	.fpu softvfp
	.type	ensureExtraCapacity, %function
ensureExtraCapacity:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L53
	ldr	r3, [r3]
	lsl	r3, r3, #1
	ldr	r2, .L53+4
	smull	r1, r2, r3, r2
	asr	r3, r3, #31
	sub	r2, r2, r3
	ldr	r3, .L53+8
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L52
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, .L53
	ldr	r3, [r3]
	lsl	r3, r3, #1
	ldr	r1, .L53
	str	r3, [r1]
	ldr	r3, .L53
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	realloc
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3]
.L52:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	CAPACITY
	.word	1431655766
	.word	size
	.size	ensureExtraCapacity, .-ensureExtraCapacity
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r2, r2, r3
	sub	r3, fp, #12
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r1, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r1
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent, %function
parent:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	getParentIndex
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, [fp, #-8]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parent, .-parent
	.align	2
	.global	rightChild
	.syntax unified
	.arm
	.fpu softvfp
	.type	rightChild, %function
rightChild:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	getRightChildIndex
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, [fp, #-8]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	rightChild, .-rightChild
	.align	2
	.global	leftChild
	.syntax unified
	.arm
	.fpu softvfp
	.type	leftChild, %function
leftChild:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	getLeftChildIndex
	mov	r3, r0
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	ldm	r2, {r0, r1}
	stm	r3, {r0, r1}
	ldr	r0, [fp, #-8]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	leftChild, .-leftChild
	.align	2
	.global	hasParent
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasParent, %function
hasParent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	getParentIndex
	mov	r3, r0
	mvn	r3, r3
	lsr	r3, r3, #31
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	hasParent, .-hasParent
	.align	2
	.global	hasRightChild
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasRightChild, %function
hasRightChild:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	getRightChildIndex
	mov	r2, r0
	ldr	r3, .L66
	ldr	r3, [r3]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L67:
	.align	2
.L66:
	.word	size
	.size	hasRightChild, .-hasRightChild
	.align	2
	.global	hasLeftChild
	.syntax unified
	.arm
	.fpu softvfp
	.type	hasLeftChild, %function
hasLeftChild:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	getLeftChildIndex
	mov	r2, r0
	ldr	r3, .L70
	ldr	r3, [r3]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	size
	.size	hasLeftChild, .-hasLeftChild
	.align	2
	.global	getLeftChildIndex
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLeftChildIndex, %function
getLeftChildIndex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #1
	add	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getLeftChildIndex, .-getLeftChildIndex
	.align	2
	.global	getRightChildIndex
	.syntax unified
	.arm
	.fpu softvfp
	.type	getRightChildIndex, %function
getRightChildIndex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getRightChildIndex, .-getRightChildIndex
	.align	2
	.global	getParentIndex
	.syntax unified
	.arm
	.fpu softvfp
	.type	getParentIndex, %function
getParentIndex:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getParentIndex, .-getParentIndex
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
