	.file	"720140.c"
	.intel_syntax noprefix
	.text
	.type	check_tree, @function
check_tree:
.LFB6:
	.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, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -24[rbp]
	mov	ebx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	check_tree
	add	ebx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	check_tree
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
.L3:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_tree, .-check_tree
	.type	create_tree, @function
create_tree:
.LFB7:
	.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
	mov	DWORD PTR -24[rbp], esi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	call	abort@PLT
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR -24[rbp], 0
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	jmp	.L7
.L6:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	sub	eax, 1
	mov	esi, edx
	mov	edi, eax
	call	create_tree
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L8
	call	abort@PLT
.L8:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -20[rbp]
	add	eax, eax
	mov	esi, edx
	mov	edi, eax
	call	create_tree
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L7
	call	abort@PLT
.L7:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	create_tree, .-create_tree
	.type	destroy_tree, @function
destroy_tree:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	destroy_tree
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	destroy_tree
.L12:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	destroy_tree, .-destroy_tree
	.section	.rodata
	.align 8
.LC0:
	.string	"stretch tree of depth %d\t check: %d\n"
	.align 8
.LC1:
	.string	"%d\t trees of depth %d\t check: %d\n"
	.align 8
.LC2:
	.string	"long lived tree of depth %d\t check: %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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	cmp	DWORD PTR -52[rbp], 1
	jle	.L14
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	jmp	.L15
.L14:
	mov	eax, 0
.L15:
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -44[rbp], 6
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L16
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -44[rbp], eax
.L16:
	mov	eax, DWORD PTR -44[rbp]
	add	eax, 1
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	mov	edi, 0
	call	create_tree
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	check_tree
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	destroy_tree
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	mov	edi, 0
	call	create_tree
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -36[rbp], 4
	jmp	.L17
.L20:
	mov	eax, DWORD PTR -44[rbp]
	sub	eax, DWORD PTR -36[rbp]
	add	eax, 4
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -40[rbp], 0
	mov	DWORD PTR -32[rbp], 1
	jmp	.L18
.L19:
	mov	edx, DWORD PTR -36[rbp]
	mov	eax, DWORD PTR -32[rbp]
	mov	esi, edx
	mov	edi, eax
	call	create_tree
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	check_tree
	add	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	destroy_tree
	mov	eax, DWORD PTR -32[rbp]
	neg	eax
	mov	edx, eax
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	mov	edi, edx
	call	create_tree
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	check_tree
	add	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	destroy_tree
	add	DWORD PTR -32[rbp], 1
.L18:
	mov	eax, DWORD PTR -32[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jle	.L19
	mov	eax, DWORD PTR -20[rbp]
	lea	esi, [rax+rax]
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -36[rbp], 2
.L17:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	check_tree
	mov	DWORD PTR -40[rbp], eax
	mov	edx, DWORD PTR -40[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	destroy_tree
	mov	eax, 0
	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	"720140.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_tree, %function
check_tree:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	b	.L3
.L2:
	ldr	r3, [fp, #-16]
	ldr	r4, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	check_tree
	mov	r3, r0
	add	r4, r4, r3
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	check_tree
	mov	r3, r0
	sub	r3, r4, r3
.L3:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	check_tree, .-check_tree
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_tree, %function
create_tree:
	@ 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]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	bl	abort
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	b	.L7
.L6:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	sub	r2, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	create_tree
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L8
	bl	abort
.L8:
	ldr	r3, [fp, #-16]
	lsl	r2, r3, #1
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	create_tree
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L7
	bl	abort
.L7:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	create_tree, .-create_tree
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	destroy_tree, %function
destroy_tree:
	@ 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]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	destroy_tree
.L11:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L12
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	destroy_tree
.L12:
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	destroy_tree, .-destroy_tree
	.section	.rodata
	.align	2
.LC0:
	.ascii	"stretch tree of depth %d\011 check: %d\012\000"
	.align	2
.LC1:
	.ascii	"%d\011 trees of depth %d\011 check: %d\012\000"
	.align	2
.LC2:
	.ascii	"long lived tree of depth %d\011 check: %d\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	ldr	r3, [fp, #-48]
	cmp	r3, #1
	ble	.L14
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	b	.L15
.L14:
	mov	r3, #0
.L15:
	str	r3, [fp, #-24]
	mov	r3, #6
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L16
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-40]
.L16:
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-40]
	mov	r0, #0
	bl	create_tree
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	check_tree
	str	r0, [fp, #-36]
	ldr	r0, [fp, #-16]
	bl	destroy_tree
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-20]
	ldr	r0, .L22
	bl	printf
	ldr	r1, [fp, #-40]
	mov	r0, #0
	bl	create_tree
	str	r0, [fp, #-12]
	mov	r3, #4
	str	r3, [fp, #-32]
	b	.L17
.L20:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	sub	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #1
	lsl	r3, r2, r3
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L18
.L19:
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	create_tree
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	check_tree
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-16]
	bl	destroy_tree
	ldr	r3, [fp, #-28]
	rsb	r3, r3, #0
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	create_tree
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	check_tree
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-16]
	bl	destroy_tree
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L18:
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L19
	ldr	r3, [fp, #-8]
	lsl	r1, r3, #1
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r0, .L22+4
	bl	printf
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
.L17:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	ble	.L20
	ldr	r0, [fp, #-12]
	bl	check_tree
	str	r0, [fp, #-36]
	ldr	r2, [fp, #-36]
	ldr	r1, [fp, #-40]
	ldr	r0, .L22+8
	bl	printf
	ldr	r0, [fp, #-12]
	bl	destroy_tree
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC0
	.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
