	.file	"861451.c"
	.intel_syntax noprefix
	.text
	.globl	heap
	.bss
	.align 32
	.type	heap, @object
	.size	heap, 400000
heap:
	.zero	400000
	.globl	heap_size
	.align 4
	.type	heap_size, @object
	.size	heap_size, 4
heap_size:
	.zero	4
	.text
	.globl	is_empty
	.type	is_empty, @function
is_empty:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR heap_size[rip]
	test	eax, eax
	jne	.L2
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	is_empty, .-is_empty
	.globl	insert_max_heap
	.type	insert_max_heap, @function
insert_max_heap:
.LFB7:
	.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	eax, DWORD PTR heap_size[rip]
	add	eax, 1
	mov	DWORD PTR heap_size[rip], eax
	mov	eax, DWORD PTR heap_size[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L5
.L9:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 31
	mov	ecx, eax
	mov	eax, ecx
	xor	eax, DWORD PTR -20[rbp]
	sub	eax, ecx
	cmp	edx, eax
	jle	.L6
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, heap[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -20[rbp]
	sar	eax, 31
	mov	ecx, eax
	mov	eax, ecx
	xor	eax, DWORD PTR -20[rbp]
	sub	eax, ecx
	cmp	edx, eax
	jne	.L8
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -20[rbp], eax
	jge	.L8
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, heap[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L7:
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	DWORD PTR -4[rbp], eax
.L5:
	cmp	DWORD PTR -4[rbp], 1
	jne	.L9
.L8:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, heap[rip]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insert_max_heap, .-insert_max_heap
	.globl	delete_max_heap
	.type	delete_max_heap, @function
delete_max_heap:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR heap[rip+4]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR heap_size[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR heap_size[rip], edx
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -16[rbp], 2
	jmp	.L11
.L18:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jge	.L12
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rcx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	cmp	edx, eax
	jne	.L14
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rcx+rax]
	cmp	edx, eax
	jge	.L14
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR -12[rbp], eax
	jmp	.L13
.L14:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L13:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 31
	mov	ecx, eax
	mov	eax, ecx
	xor	eax, DWORD PTR -4[rbp]
	sub	eax, ecx
	cmp	edx, eax
	jge	.L15
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, heap[rip]
	mov	DWORD PTR [rcx+rdx], eax
	jmp	.L16
.L15:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	mov	edx, eax
	sub	edx, ecx
	mov	eax, DWORD PTR -4[rbp]
	sar	eax, 31
	mov	ecx, eax
	mov	eax, ecx
	xor	eax, DWORD PTR -4[rbp]
	sub	eax, ecx
	cmp	edx, eax
	jne	.L17
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L17
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	mov	ecx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, heap[rip]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, ecx
	lea	rcx, 0[0+rdx*4]
	lea	rdx, heap[rip]
	mov	DWORD PTR [rcx+rdx], eax
.L16:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	mov	DWORD PTR -16[rbp], eax
.L11:
	mov	eax, DWORD PTR heap_size[rip]
	cmp	DWORD PTR -16[rbp], eax
	jle	.L18
.L17:
	mov	eax, DWORD PTR -16[rbp]
	mov	edx, eax
	shr	edx, 31
	add	eax, edx
	sar	eax
	cdqe
	lea	rcx, 0[0+rax*4]
	lea	rdx, heap[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	delete_max_heap, .-delete_max_heap
	.section	.rodata
.LC0:
	.string	"%d"
.LC1:
	.string	"0"
.LC2:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR heap_size[rip], 0
	mov	DWORD PTR -12[rbp], 0
	jmp	.L21
.L25:
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -16[rbp]
	test	eax, eax
	je	.L22
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	insert_max_heap
	jmp	.L23
.L22:
	mov	eax, 0
	call	is_empty
	test	eax, eax
	je	.L24
	lea	rdi, .LC1[rip]
	call	puts@PLT
	jmp	.L23
.L24:
	call	delete_max_heap
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L23:
	add	DWORD PTR -12[rbp], 1
.L21:
	mov	eax, DWORD PTR -20[rbp]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L25
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"861451.c"
	.text
	.comm	heap,400000,4
	.comm	heap_size,4,4
	.align	2
	.global	is_empty
	.syntax unified
	.arm
	.fpu softvfp
	.type	is_empty, %function
is_empty:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	mov	r3, #1
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L5:
	.align	2
.L4:
	.word	heap_size
	.size	is_empty, .-is_empty
	.align	2
	.global	insert_max_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	insert_max_heap, %function
insert_max_heap:
	@ 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]
	ldr	r3, .L12
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L12
	str	r3, [r2]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L7
.L11:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L12+4
	ldr	r3, [r3, r2, lsl #2]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	ble	.L8
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L12+4
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, .L12+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L12+4
	ldr	r3, [r3, r2, lsl #2]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bne	.L10
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L12+4
	ldr	r3, [r3, r2, lsl #2]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L10
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r2, r3
	ldr	r3, .L12+4
	ldr	r2, [r3, r2, lsl #2]
	ldr	r1, .L12+4
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L9:
	ldr	r3, [fp, #-8]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L11
.L10:
	ldr	r1, .L12+4
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r1, r3, lsl #2]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L13:
	.align	2
.L12:
	.word	heap_size
	.word	heap
	.size	insert_max_heap, .-insert_max_heap
	.align	2
	.global	delete_max_heap
	.syntax unified
	.arm
	.fpu softvfp
	.type	delete_max_heap, %function
delete_max_heap:
	@ 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
	ldr	r3, .L24
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, .L24+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L24+4
	str	r2, [r1]
	ldr	r2, .L24
	ldr	r3, [r2, r3, lsl #2]
	str	r3, [fp, #-8]
	mov	r3, #2
	str	r3, [fp, #-20]
	b	.L15
.L22:
	ldr	r2, .L24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, .L24
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L16
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L17
.L16:
	ldr	r2, .L24
	ldr	r3, [fp, #-20]
	ldr	r3, [r2, r3, lsl #2]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, .L24
	ldr	r3, [r1, r3, lsl #2]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bne	.L18
	ldr	r2, .L24
	ldr	r3, [fp, #-20]
	ldr	r2, [r2, r3, lsl #2]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	ldr	r1, .L24
	ldr	r3, [r1, r3, lsl #2]
	cmp	r2, r3
	bge	.L18
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L17
.L18:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L17:
	ldr	r2, .L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bge	.L19
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r2, .L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L24
	str	r3, [r2, r1, lsl #2]
	b	.L20
.L19:
	ldr	r2, .L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	rsblt	r3, r3, #0
	cmp	r2, r3
	bne	.L21
	ldr	r2, .L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L21
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r2, .L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r2, r3, lsl #2]
	ldr	r2, .L24
	str	r3, [r2, r1, lsl #2]
.L20:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-20]
.L15:
	ldr	r3, .L24+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L22
.L21:
	ldr	r3, [fp, #-20]
	lsr	r2, r3, #31
	add	r3, r2, r3
	asr	r3, r3, #1
	mov	r1, r3
	ldr	r2, .L24
	ldr	r3, [fp, #-8]
	str	r3, [r2, r1, lsl #2]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L25:
	.align	2
.L24:
	.word	heap
	.word	heap_size
	.size	delete_max_heap, .-delete_max_heap
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d\000"
	.align	2
.LC1:
	.ascii	"0\000"
	.align	2
.LC2:
	.ascii	"%d\012\000"
	.align	2
.LC3:
	.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, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L34+4
	bl	__isoc99_scanf
	ldr	r3, .L34+8
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L27
.L31:
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L34+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	insert_max_heap
	b	.L29
.L28:
	bl	is_empty
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r0, .L34+12
	bl	puts
	b	.L29
.L30:
	bl	delete_max_heap
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L34+16
	bl	printf
.L29:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L27:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L31
	mov	r3, #0
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC3
	.word	.LC0
	.word	heap_size
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
