	.file	"466240.c"
	.intel_syntax noprefix
	.text
	.globl	NewTreeNode
	.type	NewTreeNode, @function
NewTreeNode:
.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	QWORD PTR -32[rbp], rsi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	NewTreeNode, .-NewTreeNode
	.globl	ItemCheck
	.type	ItemCheck, @function
ItemCheck:
.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, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L4
	mov	eax, 1
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	ItemCheck
	lea	rbx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	ItemCheck
	add	rax, rbx
.L5:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ItemCheck, .-ItemCheck
	.globl	BottomUpTree
	.type	BottomUpTree, @function
BottomUpTree:
.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, 24
	.cfi_offset 3, -24
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	je	.L7
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	BottomUpTree
	mov	rbx, rax
	mov	eax, DWORD PTR -20[rbp]
	sub	eax, 1
	mov	edi, eax
	call	BottomUpTree
	mov	rsi, rbx
	mov	rdi, rax
	call	NewTreeNode
	jmp	.L8
.L7:
	mov	esi, 0
	mov	edi, 0
	call	NewTreeNode
.L8:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	BottomUpTree, .-BottomUpTree
	.globl	DeleteTree
	.type	DeleteTree, @function
DeleteTree:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L10
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	DeleteTree
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	DeleteTree
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	DeleteTree, .-DeleteTree
	.section	.rodata
	.align 8
.LC0:
	.string	"stretch tree of depth %u\t check: %li\n"
	.align 8
.LC2:
	.string	"%li\t trees of depth %u\t check: %li\n"
	.align 8
.LC3:
	.string	"long lived tree of depth %u\t check: %li\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atol@PLT
	mov	DWORD PTR -60[rbp], eax
	mov	DWORD PTR -56[rbp], 4
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 2
	cmp	DWORD PTR -60[rbp], eax
	jnb	.L12
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 2
	mov	DWORD PTR -64[rbp], eax
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -64[rbp], eax
.L13:
	mov	eax, DWORD PTR -64[rbp]
	add	eax, 1
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	BottomUpTree
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ItemCheck
	mov	rdx, rax
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	DeleteTree
	mov	eax, DWORD PTR -64[rbp]
	mov	edi, eax
	call	BottomUpTree
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -68[rbp], eax
	jmp	.L14
.L19:
	mov	eax, DWORD PTR -64[rbp]
	sub	eax, DWORD PTR -68[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -56[rbp]
	add	eax, edx
	mov	eax, eax
	test	rax, rax
	js	.L15
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L16
.L15:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L16:
	mov	rax, QWORD PTR .LC1[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	cvttsd2si	rax, xmm0
	mov	QWORD PTR -16[rbp], rax
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -48[rbp], 1
	jmp	.L17
.L18:
	mov	eax, DWORD PTR -68[rbp]
	mov	edi, eax
	call	BottomUpTree
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	ItemCheck
	add	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	DeleteTree
	add	QWORD PTR -48[rbp], 1
.L17:
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jle	.L18
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -68[rbp], 2
.L14:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, DWORD PTR -64[rbp]
	jbe	.L19
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ItemCheck
	mov	rdx, rax
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC1:
	.long	0
	.long	1073741824
	.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	"466240.c"
	.text
	.align	2
	.global	NewTreeNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	NewTreeNode, %function
NewTreeNode:
	@ 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, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	NewTreeNode, .-NewTreeNode
	.align	2
	.global	ItemCheck
	.syntax unified
	.arm
	.fpu softvfp
	.type	ItemCheck, %function
ItemCheck:
	@ 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]
	cmp	r3, #0
	bne	.L4
	mov	r3, #1
	b	.L5
.L4:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r0, r3
	bl	ItemCheck
	mov	r3, r0
	add	r4, r3, #1
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	ItemCheck
	mov	r3, r0
	add	r3, r4, r3
.L5:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	ItemCheck, .-ItemCheck
	.align	2
	.global	BottomUpTree
	.syntax unified
	.arm
	.fpu softvfp
	.type	BottomUpTree, %function
BottomUpTree:
	@ 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]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	BottomUpTree
	mov	r4, r0
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	mov	r0, r3
	bl	BottomUpTree
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	NewTreeNode
	mov	r3, r0
	b	.L8
.L7:
	mov	r1, #0
	mov	r0, #0
	bl	NewTreeNode
	mov	r3, r0
.L8:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	BottomUpTree, .-BottomUpTree
	.align	2
	.global	DeleteTree
	.syntax unified
	.arm
	.fpu softvfp
	.type	DeleteTree, %function
DeleteTree:
	@ 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]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	DeleteTree
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	DeleteTree
.L10:
	ldr	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	DeleteTree, .-DeleteTree
	.section	.rodata
	.align	2
.LC0:
	.ascii	"stretch tree of depth %u\011 check: %li\012\000"
	.global	__aeabi_ui2d
	.global	__aeabi_d2iz
	.align	2
.LC1:
	.ascii	"%li\011 trees of depth %u\011 check: %li\012\000"
	.align	2
.LC2:
	.ascii	"long lived tree of depth %u\011 check: %li\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, [fp, #-60]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #4
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bcs	.L12
	ldr	r3, [fp, #-28]
	add	r3, r3, #2
	str	r3, [fp, #-44]
	b	.L13
.L12:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-44]
.L13:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	BottomUpTree
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	ItemCheck
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, .L19
	bl	printf
	ldr	r0, [fp, #-20]
	bl	DeleteTree
	ldr	r0, [fp, #-44]
	bl	BottomUpTree
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-48]
	b	.L14
.L17:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-48]
	sub	r2, r2, r3
	ldr	r3, [fp, #-28]
	add	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_ui2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-40]
	b	.L15
.L16:
	ldr	r0, [fp, #-48]
	bl	BottomUpTree
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	ItemCheck
	mov	r2, r0
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r0, [fp, #-8]
	bl	DeleteTree
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L15:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	ble	.L16
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-12]
	ldr	r0, .L19+4
	bl	printf
	ldr	r3, [fp, #-48]
	add	r3, r3, #2
	str	r3, [fp, #-48]
.L14:
	ldr	r2, [fp, #-48]
	ldr	r3, [fp, #-44]
	cmp	r2, r3
	bls	.L17
	ldr	r0, [fp, #-16]
	bl	ItemCheck
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-44]
	ldr	r0, .L19+8
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.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
