	.file	"26361.c"
	.intel_syntax noprefix
	.text
	.globl	parent
	.type	parent, @function
parent:
.LFB0:
	.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
.LFE0:
	.size	parent, .-parent
	.globl	left
	.type	left, @function
left:
.LFB1:
	.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
.LFE1:
	.size	left, .-left
	.globl	right
	.type	right, @function
right:
.LFB2:
	.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
.LFE2:
	.size	right, .-right
	.globl	swap
	.type	swap, @function
swap:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	swap, .-swap
	.globl	getMin
	.type	getMin, @function
getMin:
.LFB4:
	.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	DWORD PTR -8[rbp], esi
	mov	DWORD PTR -12[rbp], edx
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jge	.L9
	mov	eax, DWORD PTR -4[rbp]
	cmp	DWORD PTR -12[rbp], eax
	cmovle	eax, DWORD PTR -12[rbp]
	jmp	.L11
.L9:
	mov	eax, DWORD PTR -8[rbp]
	cmp	DWORD PTR -12[rbp], eax
	cmovle	eax, DWORD PTR -12[rbp]
.L11:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	getMin, .-getMin
	.globl	init_heap
	.type	init_heap, @function
init_heap:
.LFB5:
	.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	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4000[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4004[rax], 1000
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 1000
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	init_heap, .-init_heap
	.globl	heapify
	.type	heapify, @function
heapify:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	QWORD PTR -24[rbp], 0
	je	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	test	eax, eax
	je	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	cmp	DWORD PTR -28[rbp], eax
	je	.L22
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	left
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	edi, eax
	call	right
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	movsx	rcx, ecx
	mov	ecx, DWORD PTR [rax+rcx*4]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR -28[rbp]
	movsx	rsi, esi
	mov	eax, DWORD PTR [rax+rsi*4]
	mov	esi, ecx
	mov	edi, eax
	call	getMin
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -4[rbp], eax
	je	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	DWORD PTR -4[rbp], eax
	jne	.L19
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	heapify
	jmp	.L13
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L13
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	edx, DWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	heapify
	jmp	.L13
.L20:
	nop
	jmp	.L13
.L21:
	nop
	jmp	.L13
.L22:
	nop
	jmp	.L13
.L23:
	nop
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	heapify, .-heapify
	.globl	heapInsert
	.type	heapInsert, @function
heapInsert:
.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, 32
	.cfi_offset 3, -24
	mov	QWORD PTR -32[rbp], rdi
	mov	DWORD PTR -36[rbp], esi
	cmp	QWORD PTR -32[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR 4000[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4004[rax]
	cmp	edx, eax
	je	.L31
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4000[rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	DWORD PTR 4000[rdx], ecx
	mov	rdx, QWORD PTR -32[rbp]
	cdqe
	mov	ecx, DWORD PTR -36[rbp]
	mov	DWORD PTR [rdx+rax*4], ecx
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 4000[rax]
	sub	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L28
.L29:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	parent
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	parent
	mov	DWORD PTR -12[rbp], eax
.L28:
	cmp	DWORD PTR -12[rbp], 0
	je	.L24
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	ebx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	parent
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ebx, eax
	jl	.L29
	jmp	.L24
.L30:
	nop
	jmp	.L24
.L31:
	nop
.L24:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	heapInsert, .-heapInsert
	.globl	decreaseKey
	.type	decreaseKey, @function
decreaseKey:
.LFB8:
	.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, 16
	.cfi_offset 3, -24
	mov	QWORD PTR -16[rbp], rdi
	mov	DWORD PTR -20[rbp], esi
	mov	DWORD PTR -24[rbp], edx
	cmp	QWORD PTR -16[rbp], 0
	je	.L37
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	ecx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax+rdx*4], ecx
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	parent
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rcx
	mov	rsi, rdx
	mov	rdi, rax
	call	swap
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	parent
	mov	DWORD PTR -20[rbp], eax
.L35:
	cmp	DWORD PTR -20[rbp], 0
	je	.L32
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	ebx, DWORD PTR [rax+rdx*4]
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	parent
	mov	edx, eax
	mov	rax, QWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR [rax+rdx*4]
	cmp	ebx, eax
	jl	.L36
	jmp	.L32
.L37:
	nop
.L32:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	decreaseKey, .-decreaseKey
	.globl	extractMin
	.type	extractMin, @function
extractMin:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	test	eax, eax
	jne	.L39
	mov	eax, -1
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	cmp	eax, 1
	jne	.L41
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR [rax+rdx*4]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4000[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4000[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	heapify
	mov	eax, DWORD PTR -4[rbp]
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	extractMin, .-extractMin
	.globl	deleteKey
	.type	deleteKey, @function
deleteKey:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	ecx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, -2147483648
	mov	esi, ecx
	mov	rdi, rax
	call	decreaseKey
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	extractMin
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	deleteKey, .-deleteKey
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	main
	.type	main, @function
main:
.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, 4032
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -4016[rbp]
	mov	esi, 7
	mov	rdi, rax
	call	init_heap
	lea	rax, -4016[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	heapInsert
	lea	rax, -4016[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	heapInsert
	lea	rax, -4016[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	heapInsert
	lea	rax, -4016[rbp]
	mov	esi, 6
	mov	rdi, rax
	call	heapInsert
	lea	rax, -4016[rbp]
	mov	esi, 15
	mov	rdi, rax
	call	heapInsert
	lea	rax, -4016[rbp]
	mov	esi, 7
	mov	rdi, rax
	call	heapInsert
	lea	rax, -4016[rbp]
	mov	esi, 5
	mov	rdi, rax
	call	heapInsert
	lea	rax, -4016[rbp]
	mov	edx, 4
	mov	esi, 4
	mov	rdi, rax
	call	decreaseKey
	mov	DWORD PTR -4020[rbp], 0
	jmp	.L44
.L45:
	lea	rax, -4016[rbp]
	mov	rdi, rax
	call	extractMin
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4020[rbp], 1
.L44:
	cmp	DWORD PTR -4020[rbp], 6
	jle	.L45
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.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	"26361.c"
	.text
	.align	2
	.global	parent
	.syntax unified
	.arm
	.fpu softvfp
	.type	parent, %function
parent:
	@ 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	parent, .-parent
	.align	2
	.global	left
	.syntax unified
	.arm
	.fpu softvfp
	.type	left, %function
left:
	@ 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	left, .-left
	.align	2
	.global	right
	.syntax unified
	.arm
	.fpu softvfp
	.type	right, %function
right:
	@ 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	right, .-right
	.align	2
	.global	swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	swap, %function
swap:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	swap, .-swap
	.align	2
	.global	getMin
	.syntax unified
	.arm
	.fpu softvfp
	.type	getMin, %function
getMin:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bge	.L9
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
	b	.L11
.L9:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	movlt	r3, r2
	movge	r3, r3
.L11:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	getMin, .-getMin
	.align	2
	.global	init_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_heap, %function
init_heap:
	@ 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, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4000]
	ldr	r3, [fp, #-8]
	mov	r2, #1000
	str	r2, [r3, #4004]
	ldr	r3, [fp, #-8]
	mov	r2, #1000
	mov	r1, #0
	mov	r0, r3
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	init_heap, .-init_heap
	.align	2
	.global	heapify
	.syntax unified
	.arm
	.fpu softvfp
	.type	heapify, %function
heapify:
	@ 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]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4000]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4000]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	beq	.L22
	ldr	r0, [fp, #-28]
	bl	left
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	right
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r0, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	mov	r2, r3
	bl	getMin
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	beq	.L23
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4000]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	bne	.L19
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	heapify
	b	.L13
.L19:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4000]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r0, r2, r3
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	bl	swap
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	heapify
	b	.L13
.L20:
	nop
	b	.L13
.L21:
	nop
	b	.L13
.L22:
	nop
	b	.L13
.L23:
	nop
.L13:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	heapify, .-heapify
	.align	2
	.global	heapInsert
	.syntax unified
	.arm
	.fpu softvfp
	.type	heapInsert, %function
heapInsert:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4000]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4004]
	cmp	r2, r3
	beq	.L31
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4000]
	add	r1, r3, #1
	ldr	r2, [fp, #-24]
	str	r1, [r2, #4000]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-28]
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4000]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L28
.L29:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r4, r2, r3
	ldr	r0, [fp, #-16]
	bl	parent
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r1, r3
	mov	r0, r4
	bl	swap
	ldr	r0, [fp, #-16]
	bl	parent
	str	r0, [fp, #-16]
.L28:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r4, [r3, r2, lsl #2]
	ldr	r0, [fp, #-16]
	bl	parent
	mov	r2, r0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r4, r3
	blt	.L29
	b	.L24
.L30:
	nop
	b	.L24
.L31:
	nop
.L24:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	heapInsert, .-heapInsert
	.align	2
	.global	decreaseKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	decreaseKey, %function
decreaseKey:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-24]
	str	r1, [r3, r2, lsl #2]
	b	.L35
.L36:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r4, r2, r3
	ldr	r0, [fp, #-20]
	bl	parent
	mov	r3, r0
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r1, r3
	mov	r0, r4
	bl	swap
	ldr	r0, [fp, #-20]
	bl	parent
	str	r0, [fp, #-20]
.L35:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L32
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	ldr	r4, [r3, r2, lsl #2]
	ldr	r0, [fp, #-20]
	bl	parent
	mov	r2, r0
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	cmp	r4, r3
	blt	.L36
	b	.L32
.L37:
	nop
.L32:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	decreaseKey, .-decreaseKey
	.align	2
	.global	extractMin
	.syntax unified
	.arm
	.fpu softvfp
	.type	extractMin, %function
extractMin:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4000]
	cmp	r3, #0
	bne	.L39
	mvn	r3, #0
	b	.L40
.L39:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4000]
	cmp	r3, #1
	bne	.L41
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	b	.L40
.L41:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4000]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4000]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4000]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	heapify
	ldr	r3, [fp, #-8]
.L40:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	extractMin, .-extractMin
	.align	2
	.global	deleteKey
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteKey, %function
deleteKey:
	@ 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]
	mov	r2, #-2147483648
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	decreaseKey
	ldr	r0, [fp, #-8]
	bl	extractMin
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	deleteKey, .-deleteKey
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d \000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 4016
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4016
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #7
	mov	r0, r3
	bl	init_heap
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #3
	mov	r0, r3
	bl	heapInsert
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #2
	mov	r0, r3
	bl	heapInsert
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #1
	mov	r0, r3
	bl	heapInsert
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #6
	mov	r0, r3
	bl	heapInsert
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #15
	mov	r0, r3
	bl	heapInsert
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #7
	mov	r0, r3
	bl	heapInsert
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r1, #5
	mov	r0, r3
	bl	heapInsert
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r2, #4
	mov	r1, #4
	mov	r0, r3
	bl	decreaseKey
	mov	r3, #0
	str	r3, [fp, #-4020]
	b	.L44
.L45:
	sub	r3, fp, #4000
	sub	r3, r3, #4
	sub	r3, r3, #12
	mov	r0, r3
	bl	extractMin
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L48+4
	bl	printf
	ldr	r3, [fp, #-4020]
	add	r3, r3, #1
	str	r3, [fp, #-4020]
.L44:
	ldr	r3, [fp, #-4020]
	cmp	r3, #6
	ble	.L45
	mov	r3, #0
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L47
	bl	__stack_chk_fail
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC1
	.word	.LC0
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
