	.file	"53558.c"
	.intel_syntax noprefix
	.text
	.globl	parent
	.type	parent, @function
parent:
.LFB6:
	.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
.LFE6:
	.size	parent, .-parent
	.globl	lchild
	.type	lchild, @function
lchild:
.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 -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
.LFE7:
	.size	lchild, .-lchild
	.globl	rchild
	.type	rchild, @function
rchild:
.LFB8:
	.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
.LFE8:
	.size	rchild, .-rchild
	.section	.rodata
.LC0:
	.string	"the_stack_data/53558.c"
.LC1:
	.string	"aHeap != NULL"
.LC2:
	.string	"%d "
	.text
	.globl	printHeap
	.type	printHeap, @function
printHeap:
.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
	cmp	QWORD PTR -24[rbp], 0
	jne	.L8
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 50
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L8:
	mov	DWORD PTR -4[rbp], 0
	jmp	.L9
.L10:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L10
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	printHeap, .-printHeap
	.section	.rodata
.LC3:
	.string	"maxSize > 0"
	.text
	.globl	newHeap
	.type	newHeap, @function
newHeap:
.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	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jg	.L12
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 61
	lea	rsi, .LC0[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L12:
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	newHeap, .-newHeap
	.section	.rodata
.LC4:
	.string	"aHeap->array != NULL"
	.text
	.globl	deleteHeap
	.type	deleteHeap, @function
deleteHeap:
.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
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 73
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L15:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L16
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 74
	lea	rsi, .LC0[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	deleteHeap, .-deleteHeap
	.globl	isFullHeap
	.type	isFullHeap, @function
isFullHeap:
.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
	cmp	QWORD PTR -8[rbp], 0
	jne	.L18
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 82
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L19
	mov	eax, 1
	jmp	.L20
.L19:
	mov	eax, 0
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	isFullHeap, .-isFullHeap
	.globl	isEmptyHeap
	.type	isEmptyHeap, @function
isEmptyHeap:
.LFB13:
	.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
	cmp	QWORD PTR -8[rbp], 0
	jne	.L22
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 92
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L23
	mov	eax, 1
	jmp	.L24
.L23:
	mov	eax, 0
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	isEmptyHeap, .-isEmptyHeap
	.section	.rodata
.LC5:
	.string	"aHeap->size < aHeap->maxSize"
	.text
	.globl	insertHeap
	.type	insertHeap, @function
insertHeap:
.LFB14:
	.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 -44[rbp], esi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L26
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 104
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L26:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jl	.L27
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 105
	lea	rsi, .LC0[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L27:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L28
.L30:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	parent
	cdqe
	sal	rax, 2
	lea	rcx, [rbx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	parent
	cdqe
	sal	rax, 2
	lea	rdx, [rbx+rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	parent
	mov	DWORD PTR -24[rbp], eax
.L28:
	mov	rax, QWORD PTR -40[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	parent
	cdqe
	sal	rax, 2
	add	rax, rbx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jle	.L29
	cmp	DWORD PTR -24[rbp], 0
	jne	.L30
.L29:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	insertHeap, .-insertHeap
	.section	.rodata
.LC6:
	.string	"aHeap->size > 0"
	.text
	.globl	removeHeap
	.type	removeHeap, @function
removeHeap:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L32
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 124
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	__assert_fail@PLT
.L32:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jg	.L33
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 125
	lea	rsi, .LC0[rip]
	lea	rdi, .LC6[rip]
	call	__assert_fail@PLT
.L33:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -16[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rdx]
	mov	DWORD PTR [rax], edx
	mov	DWORD PTR -24[rbp], 0
.L38:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	lchild
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	rchild
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L34
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L34
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -20[rbp], eax
.L34:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -8[rbp], eax
	jge	.L35
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rax, rcx
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L35
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -20[rbp], eax
.L35:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -24[rbp]
	je	.L41
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	lea	rcx, [rdx+rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR [rcx]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rdx], eax
	mov	eax, DWORD PTR -20[rbp]
	mov	DWORD PTR -24[rbp], eax
	jmp	.L38
.L41:
	nop
	mov	eax, DWORD PTR -16[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	removeHeap, .-removeHeap
	.section	.rodata
.LC7:
	.string	"Wrong arguments"
.LC8:
	.string	"rt"
.LC9:
	.string	"%d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 336
	mov	DWORD PTR -324[rbp], edi
	mov	QWORD PTR -336[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -324[rbp], 1
	jg	.L43
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L44
.L43:
	mov	rax, QWORD PTR -336[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -308[rbp], eax
	mov	rax, QWORD PTR -336[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -296[rbp], rax
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	newHeap
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -280[rbp], rax
	jmp	.L45
.L49:
	mov	rdx, QWORD PTR -280[rbp]
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	jne	.L53
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -304[rbp], eax
	mov	edx, DWORD PTR -304[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	insertHeap
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	isFullHeap
	test	al, al
	je	.L45
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	removeHeap
.L45:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	feof@PLT
	test	eax, eax
	je	.L49
	jmp	.L50
.L53:
	nop
	jmp	.L50
.L51:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	removeHeap
	mov	DWORD PTR -300[rbp], eax
	mov	eax, DWORD PTR -300[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
.L50:
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	isEmptyHeap
	xor	eax, 1
	test	al, al
	jne	.L51
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	deleteHeap
	mov	eax, 0
.L44:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L52
	call	__stack_chk_fail@PLT
.L52:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 10
__PRETTY_FUNCTION__.6:
	.string	"printHeap"
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 8
__PRETTY_FUNCTION__.5:
	.string	"newHeap"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 11
__PRETTY_FUNCTION__.4:
	.string	"deleteHeap"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 11
__PRETTY_FUNCTION__.3:
	.string	"isFullHeap"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 12
__PRETTY_FUNCTION__.2:
	.string	"isEmptyHeap"
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 11
__PRETTY_FUNCTION__.1:
	.string	"insertHeap"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 11
__PRETTY_FUNCTION__.0:
	.string	"removeHeap"
	.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	"53558.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	lchild
	.syntax unified
	.arm
	.fpu softvfp
	.type	lchild, %function
lchild:
	@ 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	lchild, .-lchild
	.align	2
	.global	rchild
	.syntax unified
	.arm
	.fpu softvfp
	.type	rchild, %function
rchild:
	@ 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	rchild, .-rchild
	.section	.rodata
	.align	2
.LC0:
	.ascii	"the_stack_data/53558.c\000"
	.align	2
.LC1:
	.ascii	"aHeap != NULL\000"
	.align	2
.LC2:
	.ascii	"%d \000"
	.text
	.align	2
	.global	printHeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	printHeap, %function
printHeap:
	@ 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]
	cmp	r3, #0
	bne	.L8
	ldr	r3, .L11
	mov	r2, #50
	ldr	r1, .L11+4
	ldr	r0, .L11+8
	bl	__assert_fail
.L8:
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L9
.L10:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L11+12
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L9:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L10
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L12:
	.align	2
.L11:
	.word	__PRETTY_FUNCTION__.5146
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	printHeap, .-printHeap
	.section	.rodata
	.align	2
.LC3:
	.ascii	"maxSize > 0\000"
	.text
	.align	2
	.global	newHeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	newHeap, %function
newHeap:
	@ 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]
	cmp	r3, #0
	bgt	.L14
	ldr	r3, .L16
	mov	r2, #61
	ldr	r1, .L16+4
	ldr	r0, .L16+8
	bl	__assert_fail
.L14:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	lsl	r3, r3, #2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	__PRETTY_FUNCTION__.5154
	.word	.LC0
	.word	.LC3
	.size	newHeap, .-newHeap
	.section	.rodata
	.align	2
.LC4:
	.ascii	"aHeap->array != NULL\000"
	.text
	.align	2
	.global	deleteHeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	deleteHeap, %function
deleteHeap:
	@ 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, [fp, #-8]
	cmp	r3, #0
	bne	.L19
	ldr	r3, .L21
	mov	r2, #73
	ldr	r1, .L21+4
	ldr	r0, .L21+8
	bl	__assert_fail
.L19:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L21
	mov	r2, #74
	ldr	r1, .L21+4
	ldr	r0, .L21+12
	bl	__assert_fail
.L20:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	__PRETTY_FUNCTION__.5159
	.word	.LC0
	.word	.LC1
	.word	.LC4
	.size	deleteHeap, .-deleteHeap
	.align	2
	.global	isFullHeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	isFullHeap, %function
isFullHeap:
	@ 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, [fp, #-8]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L27
	mov	r2, #82
	ldr	r1, .L27+4
	ldr	r0, .L27+8
	bl	__assert_fail
.L24:
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L25
	mov	r3, #1
	b	.L26
.L25:
	mov	r3, #0
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	__PRETTY_FUNCTION__.5163
	.word	.LC0
	.word	.LC1
	.size	isFullHeap, .-isFullHeap
	.align	2
	.global	isEmptyHeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	isEmptyHeap, %function
isEmptyHeap:
	@ 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, [fp, #-8]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L33
	mov	r2, #92
	ldr	r1, .L33+4
	ldr	r0, .L33+8
	bl	__assert_fail
.L30:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	mov	r3, #1
	b	.L32
.L31:
	mov	r3, #0
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	__PRETTY_FUNCTION__.5167
	.word	.LC0
	.word	.LC1
	.size	isEmptyHeap, .-isEmptyHeap
	.section	.rodata
	.align	2
.LC5:
	.ascii	"aHeap->size < aHeap->maxSize\000"
	.text
	.align	2
	.global	insertHeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	insertHeap, %function
insertHeap:
	@ 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
	bne	.L36
	ldr	r3, .L41
	mov	r2, #104
	ldr	r1, .L41+4
	ldr	r0, .L41+8
	bl	__assert_fail
.L36:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L37
	ldr	r3, .L41
	mov	r2, #105
	ldr	r1, .L41+4
	ldr	r0, .L41+12
	bl	__assert_fail
.L37:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-28]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L38
.L40:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #8]
	ldr	r0, [fp, #-20]
	bl	parent
	mov	r3, r0
	lsl	r3, r3, #2
	add	r2, r4, r3
	ldr	r3, [fp, #-24]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #8]
	ldr	r0, [fp, #-20]
	bl	parent
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-20]
	bl	parent
	str	r0, [fp, #-20]
.L38:
	ldr	r3, [fp, #-24]
	ldr	r4, [r3, #8]
	ldr	r0, [fp, #-20]
	bl	parent
	mov	r3, r0
	lsl	r3, r3, #2
	add	r3, r4, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	ble	.L39
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L40
.L39:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	__PRETTY_FUNCTION__.5172
	.word	.LC0
	.word	.LC1
	.word	.LC5
	.size	insertHeap, .-insertHeap
	.section	.rodata
	.align	2
.LC6:
	.ascii	"aHeap->size > 0\000"
	.text
	.align	2
	.global	removeHeap
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeHeap, %function
removeHeap:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L44
	ldr	r3, .L54
	mov	r2, #124
	ldr	r1, .L54+4
	ldr	r0, .L54+8
	bl	__assert_fail
.L44:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L45
	ldr	r3, .L54
	mov	r2, #125
	ldr	r1, .L54+4
	ldr	r0, .L54+12
	bl	__assert_fail
.L45:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #8]
	ldr	r2, [r2]
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-28]
.L50:
	ldr	r0, [fp, #-28]
	bl	lchild
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	rchild
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	cmp	r2, r3
	bge	.L46
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L46
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-24]
.L46:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L47
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L47
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
.L47:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	beq	.L53
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, [fp, #-32]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-28]
	b	.L50
.L53:
	nop
	ldr	r3, [fp, #-20]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	__PRETTY_FUNCTION__.5181
	.word	.LC0
	.word	.LC1
	.word	.LC6
	.size	removeHeap, .-removeHeap
	.section	.rodata
	.align	2
.LC7:
	.ascii	"Wrong arguments\000"
	.align	2
.LC8:
	.ascii	"rt\000"
	.align	2
.LC9:
	.ascii	"%d\012\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	str	r0, [fp, #-296]
	str	r1, [fp, #-300]
	ldr	r3, .L68
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-296]
	cmp	r3, #1
	bgt	.L57
	ldr	r0, .L68+4
	bl	puts
	mov	r3, #1
	b	.L58
.L57:
	ldr	r3, [fp, #-300]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-300]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-284]
	ldr	r0, [fp, #-288]
	bl	newHeap
	str	r0, [fp, #-280]
	ldr	r1, .L68+8
	ldr	r0, [fp, #-284]
	bl	fopen
	str	r0, [fp, #-276]
	b	.L59
.L63:
	sub	r3, fp, #264
	ldr	r2, [fp, #-276]
	mov	r1, #256
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-276]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	sub	r3, fp, #264
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-272]
	ldr	r1, [fp, #-272]
	ldr	r0, [fp, #-280]
	bl	insertHeap
	ldr	r0, [fp, #-280]
	bl	isFullHeap
	mov	r3, r0
	cmp	r3, #0
	beq	.L59
	ldr	r0, [fp, #-280]
	bl	removeHeap
.L59:
	ldr	r0, [fp, #-276]
	bl	feof
	mov	r3, r0
	cmp	r3, #0
	beq	.L63
	b	.L64
.L67:
	nop
	b	.L64
.L65:
	ldr	r0, [fp, #-280]
	bl	removeHeap
	str	r0, [fp, #-268]
	ldr	r1, [fp, #-268]
	ldr	r0, .L68+12
	bl	printf
.L64:
	ldr	r0, [fp, #-280]
	bl	isEmptyHeap
	mov	r3, r0
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L65
	ldr	r0, [fp, #-280]
	bl	deleteHeap
	mov	r3, #0
.L58:
	ldr	r2, .L68
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L66
	bl	__stack_chk_fail
.L66:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	.LC10
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.5146, %object
	.size	__PRETTY_FUNCTION__.5146, 10
__PRETTY_FUNCTION__.5146:
	.ascii	"printHeap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5154, %object
	.size	__PRETTY_FUNCTION__.5154, 8
__PRETTY_FUNCTION__.5154:
	.ascii	"newHeap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5159, %object
	.size	__PRETTY_FUNCTION__.5159, 11
__PRETTY_FUNCTION__.5159:
	.ascii	"deleteHeap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5163, %object
	.size	__PRETTY_FUNCTION__.5163, 11
__PRETTY_FUNCTION__.5163:
	.ascii	"isFullHeap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5167, %object
	.size	__PRETTY_FUNCTION__.5167, 12
__PRETTY_FUNCTION__.5167:
	.ascii	"isEmptyHeap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5172, %object
	.size	__PRETTY_FUNCTION__.5172, 11
__PRETTY_FUNCTION__.5172:
	.ascii	"insertHeap\000"
	.align	2
	.type	__PRETTY_FUNCTION__.5181, %object
	.size	__PRETTY_FUNCTION__.5181, 11
__PRETTY_FUNCTION__.5181:
	.ascii	"removeHeap\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
