	.file	"635023.c"
	.intel_syntax noprefix
	.text
	.globl	heap_init
	.type	heap_init, @function
heap_init:
.LFB0:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 800000[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	heap_init, .-heap_init
	.globl	heap_size
	.type	heap_size, @function
heap_size:
.LFB1:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 800000[rax]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	heap_size, .-heap_size
	.globl	heap_heapify
	.type	heap_heapify, @function
heap_heapify:
.LFB2:
	.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	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	eax, DWORD PTR -44[rbp]
	add	eax, eax
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	add	eax, eax
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 800000[rax]
	mov	eax, DWORD PTR -16[rbp]
	cmp	edx, eax
	jbe	.L5
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR [rax]
	cmp	ecx, eax
	jnb	.L5
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	jmp	.L6
.L5:
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -20[rbp], eax
.L6:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 800000[rax]
	mov	eax, DWORD PTR -12[rbp]
	cmp	edx, eax
	jbe	.L7
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	eax, DWORD PTR [rax]
	cmp	ecx, eax
	jnb	.L7
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L7:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	je	.L9
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -20[rbp]
	movsx	rdx, edx
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	heap_heapify
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	heap_heapify, .-heap_heapify
	.globl	heap_addItem
	.type	heap_addItem, @function
heap_addItem:
.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 800000[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 800000[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 800000[rax]
	sub	eax, 1
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	shr	eax
	mov	DWORD PTR -4[rbp], eax
	jmp	.L11
.L13:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	rcx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	shr	eax
	mov	DWORD PTR -4[rbp], eax
.L11:
	cmp	DWORD PTR -8[rbp], 0
	je	.L12
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR [rax+rdx*8]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	ja	.L13
.L12:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax+rdx*8], rcx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	heap_addItem, .-heap_addItem
	.globl	heap_extractMin
	.type	heap_extractMin, @function
heap_extractMin:
.LFB4:
	.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	rdi, rax
	mov	eax, 0
	call	heap_isEmpty
	test	eax, eax
	je	.L15
	mov	eax, 0
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 800000[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, edx
	mov	rdx, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 800000[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 800000[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	heap_heapify
	mov	rax, QWORD PTR -8[rbp]
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	heap_extractMin, .-heap_extractMin
	.globl	heap_isEmpty
	.type	heap_isEmpty, @function
heap_isEmpty:
.LFB5:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 800000[rax]
	test	eax, eax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	heap_isEmpty, .-heap_isEmpty
	.globl	heap_isFull
	.type	heap_isFull, @function
heap_isFull:
.LFB6:
	.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 -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 800000[rax]
	cmp	eax, 99999
	seta	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	heap_isFull, .-heap_isFull
	.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	"635023.c"
	.text
	.align	2
	.global	heap_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	heap_init, %function
heap_init:
	@ 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, #397312
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #2688]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	heap_init, .-heap_init
	.align	2
	.global	heap_size
	.syntax unified
	.arm
	.fpu softvfp
	.type	heap_size, %function
heap_size:
	@ 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, #397312
	ldr	r3, [r3, #2688]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	heap_size, .-heap_size
	.align	2
	.global	heap_heapify
	.syntax unified
	.arm
	.fpu softvfp
	.type	heap_heapify, %function
heap_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, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	add	r3, r3, #397312
	ldr	r2, [r3, #2688]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bls	.L5
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-28]
	ldr	r3, [r3, r1, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L5
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-20]
	b	.L6
.L5:
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
.L6:
	ldr	r3, [fp, #-24]
	add	r3, r3, #397312
	ldr	r2, [r3, #2688]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L7
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r3, [r3, r1, lsl #2]
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L7
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-20]
.L7:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L9
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-8]
	str	r1, [r3, r2, lsl #2]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-24]
	bl	heap_heapify
.L9:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	heap_heapify, .-heap_heapify
	.align	2
	.global	heap_addItem
	.syntax unified
	.arm
	.fpu softvfp
	.type	heap_addItem, %function
heap_addItem:
	@ 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]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	add	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r2, r2, #397312
	str	r3, [r2, #2688]
	ldr	r3, [fp, #-16]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	sub	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L11
.L13:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsr	r3, r3, #1
	str	r3, [fp, #-8]
.L11:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	cmp	r2, r3
	bhi	.L13
.L12:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-20]
	str	r1, [r3, r2, lsl #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	heap_addItem, .-heap_addItem
	.align	2
	.global	heap_extractMin
	.syntax unified
	.arm
	.fpu softvfp
	.type	heap_extractMin, %function
heap_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	r0, [fp, #-16]
	bl	heap_isEmpty
	mov	r3, r0
	cmp	r3, #0
	beq	.L15
	mov	r3, #0
	b	.L16
.L15:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	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]
	add	r3, r3, #397312
	ldr	r3, [r3, #2688]
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r2, r2, #397312
	str	r3, [r2, #2688]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	heap_heapify
	ldr	r3, [fp, #-8]
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	heap_extractMin, .-heap_extractMin
	.align	2
	.global	heap_isEmpty
	.syntax unified
	.arm
	.fpu softvfp
	.type	heap_isEmpty, %function
heap_isEmpty:
	@ 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, #397312
	ldr	r3, [r3, #2688]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	heap_isEmpty, .-heap_isEmpty
	.align	2
	.global	heap_isFull
	.syntax unified
	.arm
	.fpu softvfp
	.type	heap_isFull, %function
heap_isFull:
	@ 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, #397312
	ldr	r3, [r3, #2688]
	ldr	r2, .L21
	cmp	r3, r2
	movcs	r3, #1
	movcc	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L22:
	.align	2
.L21:
	.word	100000
	.size	heap_isFull, .-heap_isFull
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
