	.file	"15763087.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"\n\nEMPTY TREE\n"
.LC1:
	.string	"\n"
.LC4:
	.string	"%d"
	.text
	.globl	draw
	.type	draw, @function
draw:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	cmp	QWORD PTR -104[rbp], 0
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L33
.L2:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	treeToArray
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	height
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movq	xmm1, rax
	subsd	xmm1, xmm0
	cvttsd2si	eax, xmm1
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -84[rbp], eax
	mov	DWORD PTR -88[rbp], 1
	jmp	.L4
.L6:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -84[rbp], eax
	jge	.L5
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -84[rbp], eax
.L5:
	add	DWORD PTR -88[rbp], 1
.L4:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L6
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	digits
	mov	DWORD PTR -32[rbp], eax
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -88[rbp], 0
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -88[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, 1
	jne	.L8
	mov	DWORD PTR -80[rbp], 1
.L8:
	add	DWORD PTR -88[rbp], 1
.L7:
	mov	eax, DWORD PTR -88[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	setl	dl
	cmp	DWORD PTR -80[rbp], 0
	sete	al
	and	eax, edx
	test	al, al
	jne	.L9
	mov	DWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 1
	mov	DWORD PTR -76[rbp], eax
	jmp	.L10
.L32:
	mov	DWORD PTR -68[rbp], 0
	jmp	.L11
.L15:
	mov	DWORD PTR -64[rbp], 0
	jmp	.L12
.L13:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -64[rbp], 1
.L12:
	mov	eax, DWORD PTR -64[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L13
	cmp	DWORD PTR -80[rbp], 0
	je	.L14
	mov	edi, 32
	call	putchar@PLT
.L14:
	add	DWORD PTR -68[rbp], 1
.L11:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -68[rbp]
	movsd	QWORD PTR -112[rbp], xmm2
	mov	eax, DWORD PTR -76[rbp]
	sub	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR .LC3[rip]
	movq	xmm0, rax
	subsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -112[rbp]
	ja	.L15
	mov	DWORD PTR -60[rbp], 0
	jmp	.L16
.L31:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	cmp	eax, -1
	je	.L17
	cmp	DWORD PTR -80[rbp], 0
	je	.L18
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L19
	mov	edi, 0
	call	printSign
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	neg	eax
	mov	edi, eax
	call	printSign
.L18:
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	digits
	mov	DWORD PTR -28[rbp], eax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L20
.L21:
	mov	edi, 48
	call	putchar@PLT
	add	DWORD PTR -56[rbp], 1
.L20:
	mov	eax, DWORD PTR -32[rbp]
	sub	eax, DWORD PTR -28[rbp]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L21
	mov	eax, DWORD PTR -72[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L17:
	cmp	DWORD PTR -80[rbp], 0
	je	.L23
	mov	edi, 95
	call	putchar@PLT
.L23:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L24
.L25:
	mov	edi, 95
	call	putchar@PLT
	add	DWORD PTR -52[rbp], 1
.L24:
	mov	eax, DWORD PTR -52[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L25
.L22:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L26
.L30:
	mov	DWORD PTR -44[rbp], 0
	jmp	.L27
.L28:
	mov	edi, 32
	call	putchar@PLT
	add	DWORD PTR -44[rbp], 1
.L27:
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, DWORD PTR -32[rbp]
	jle	.L28
	cmp	DWORD PTR -80[rbp], 0
	je	.L29
	mov	edi, 32
	call	putchar@PLT
.L29:
	add	DWORD PTR -48[rbp], 1
.L26:
	pxor	xmm3, xmm3
	cvtsi2sd	xmm3, DWORD PTR -48[rbp]
	movsd	QWORD PTR -112[rbp], xmm3
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -76[rbp]
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movsd	xmm1, QWORD PTR .LC3[rip]
	movq	xmm0, rax
	subsd	xmm0, xmm1
	comisd	xmm0, QWORD PTR -112[rbp]
	ja	.L30
	add	DWORD PTR -60[rbp], 1
	add	DWORD PTR -72[rbp], 1
.L16:
	pxor	xmm4, xmm4
	cvtsi2sd	xmm4, DWORD PTR -60[rbp]
	movsd	QWORD PTR -112[rbp], xmm4
	mov	eax, DWORD PTR -40[rbp]
	sub	eax, DWORD PTR -76[rbp]
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movq	xmm5, rax
	comisd	xmm5, QWORD PTR -112[rbp]
	ja	.L31
	lea	rdi, .LC1[rip]
	call	puts@PLT
	sub	DWORD PTR -76[rbp], 1
.L10:
	cmp	DWORD PTR -76[rbp], 0
	jg	.L32
.L33:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	draw, .-draw
	.globl	printSign
	.type	printSign, @function
printSign:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], 0
	jne	.L35
	mov	edi, 48
	call	putchar@PLT
.L35:
	cmp	DWORD PTR -4[rbp], 0
	jle	.L36
	mov	edi, 43
	call	putchar@PLT
.L36:
	cmp	DWORD PTR -4[rbp], 0
	jns	.L38
	mov	edi, 45
	call	putchar@PLT
.L38:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printSign, .-printSign
	.globl	treeToArray
	.type	treeToArray, @function
treeToArray:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	cmp	QWORD PTR -40[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	height
	add	eax, 1
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	mov	rax, QWORD PTR .LC2[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movq	rax, xmm0
	movsd	xmm0, QWORD PTR .LC3[rip]
	movq	xmm1, rax
	subsd	xmm1, xmm0
	cvttsd2si	eax, xmm1
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cdqe
	sal	rax, 2
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	DWORD PTR -32[rbp], 0
	jmp	.L41
.L42:
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], -1
	add	DWORD PTR -32[rbp], 1
.L41:
	mov	eax, DWORD PTR -28[rbp]
	add	eax, eax
	cmp	DWORD PTR -32[rbp], eax
	jl	.L42
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cdq
	xor	eax, edx
	sub	eax, edx
	mov	rdx, QWORD PTR -16[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 1
.L43:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	recursiveTreeToArray
	mov	rax, QWORD PTR -24[rbp]
	jmp	.L44
.L40:
	mov	eax, 0
.L44:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	treeToArray, .-treeToArray
	.globl	recursiveTreeToArray
	.type	recursiveTreeToArray, @function
recursiveTreeToArray:
.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	cmp	QWORD PTR -8[rbp], 0
	je	.L50
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	add	edx, edx
	movsx	rdx, edx
	add	rdx, 1
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L48
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L48:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L49
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	add	edx, edx
	movsx	rdx, edx
	add	rdx, 2
	lea	rcx, 0[0+rdx*4]
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, rcx
	mov	ecx, eax
	sar	ecx, 31
	xor	eax, ecx
	sub	eax, ecx
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jns	.L49
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	cdqe
	add	rax, 2
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 1
.L49:
	mov	eax, DWORD PTR -12[rbp]
	add	eax, eax
	lea	esi, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	recursiveTreeToArray
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
	lea	esi, [rax+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	recursiveTreeToArray
	jmp	.L45
.L50:
	nop
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	recursiveTreeToArray, .-recursiveTreeToArray
	.globl	height
	.type	height, @function
height:
.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	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L52
	mov	eax, -1
	jmp	.L53
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	height
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	height
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L54
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	jmp	.L53
.L54:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	height, .-height
	.globl	digits
	.type	digits, @function
digits:
.LFB11:
	.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	DWORD PTR -4[rbp], 0
	jmp	.L56
.L57:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 1717986919
	shr	rdx, 32
	sar	edx, 2
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
	add	DWORD PTR -4[rbp], 1
.L56:
	cmp	DWORD PTR -20[rbp], 9
	jg	.L57
	mov	eax, DWORD PTR -4[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	digits, .-digits
	.globl	newNode
	.type	newNode, @function
newNode:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	newNode, .-newNode
	.globl	main
	.type	main, @function
main:
.LFB13:
	.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	edi, 832
	call	newNode
	mov	QWORD PTR -24[rbp], rax
	mov	edi, -12
	call	newNode
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	edi, 3
	call	newNode
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	edi, 499
	call	newNode
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR 8[rax]
	mov	edi, 5
	call	newNode
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, 6
	call	newNode
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, -7
	call	newNode
	mov	QWORD PTR 16[rbx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rbx, QWORD PTR 16[rax]
	mov	edi, 938
	call	newNode
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	draw
	mov	eax, 0
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.long	0
	.long	1073741824
	.align 8
.LC3:
	.long	0
	.long	1072693248
	.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	"15763087.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012\012EMPTY TREE\012\000"
	.align	2
.LC1:
	.ascii	"\012\000"
	.global	__aeabi_i2d
	.global	__aeabi_dsub
	.global	__aeabi_d2iz
	.global	__aeabi_dcmplt
	.align	2
.LC2:
	.ascii	"%d\000"
	.text
	.align	2
	.global	draw
	.syntax unified
	.arm
	.fpu softvfp
	.type	draw, %function
draw:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #88
	str	r0, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L34
	bl	puts
	b	.L33
.L2:
	ldr	r0, .L34+4
	bl	puts
	ldr	r0, [fp, #-96]
	bl	treeToArray
	str	r0, [fp, #-40]
	ldr	r0, [fp, #-96]
	bl	height
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, #0
	ldr	r3, .L34+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	mov	r3, #1
	str	r3, [fp, #-88]
	b	.L4
.L6:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	cmp	r2, r3
	bge	.L5
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-84]
.L5:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L4:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	blt	.L6
	ldr	r0, [fp, #-84]
	bl	digits
	str	r0, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-80]
	mov	r3, #0
	str	r3, [fp, #-88]
	b	.L7
.L9:
	ldr	r3, [fp, #-88]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #1
	bne	.L8
	mov	r3, #1
	str	r3, [fp, #-80]
.L8:
	ldr	r3, [fp, #-88]
	add	r3, r3, #1
	str	r3, [fp, #-88]
.L7:
	ldr	r2, [fp, #-88]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	movlt	r3, #1
	movge	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	and	r3, r3, r2
	and	r3, r3, #255
	cmp	r3, #0
	bne	.L9
	mov	r3, #0
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-76]
	b	.L10
.L32:
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L11
.L15:
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L12
.L13:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L12:
	ldr	r2, [fp, #-64]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L13
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L14
	mov	r0, #32
	bl	putchar
.L14:
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L11:
	ldr	r0, [fp, #-68]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, #0
	ldr	r3, .L34+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L15
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L16
.L31:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L17
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L19
	mov	r0, #0
	bl	printSign
	b	.L18
.L19:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	ldr	r3, [r3]
	rsb	r3, r3, #0
	mov	r0, r3
	bl	printSign
.L18:
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	digits
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-56]
	b	.L20
.L21:
	mov	r0, #48
	bl	putchar
	ldr	r3, [fp, #-56]
	add	r3, r3, #1
	str	r3, [fp, #-56]
.L20:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	ldr	r2, [fp, #-56]
	cmp	r2, r3
	blt	.L21
	ldr	r3, [fp, #-72]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L34+12
	bl	printf
	b	.L22
.L17:
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L23
	mov	r0, #95
	bl	putchar
.L23:
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L24
.L25:
	mov	r0, #95
	bl	putchar
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
.L24:
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L25
.L22:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L26
.L30:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L27
.L28:
	mov	r0, #32
	bl	putchar
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L27:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L28
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	beq	.L29
	mov	r0, #32
	bl	putchar
.L29:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L26:
	ldr	r0, [fp, #-48]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-76]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, #0
	ldr	r3, .L34+8
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L16:
	ldr	r0, [fp, #-60]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-76]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L34+4
	bl	puts
	ldr	r3, [fp, #-76]
	sub	r3, r3, #1
	str	r3, [fp, #-76]
.L10:
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bgt	.L32
.L33:
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC0
	.word	.LC1
	.word	1072693248
	.word	.LC2
	.size	draw, .-draw
	.align	2
	.global	printSign
	.syntax unified
	.arm
	.fpu softvfp
	.type	printSign, %function
printSign:
	@ 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	.L37
	mov	r0, #48
	bl	putchar
.L37:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L38
	mov	r0, #43
	bl	putchar
.L38:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L40
	mov	r0, #45
	bl	putchar
.L40:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	printSign, .-printSign
	.align	2
	.global	treeToArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	treeToArray, %function
treeToArray:
	@ 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
	beq	.L42
	ldr	r0, [fp, #-32]
	bl	height
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, #0
	ldr	r3, .L47
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L43
.L44:
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L43:
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	blt	.L44
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	eor	r2, r3, r3, asr #31
	sub	r2, r2, r3, asr #31
	ldr	r3, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L45
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3]
.L45:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	mov	r1, #0
	ldr	r0, [fp, #-32]
	bl	recursiveTreeToArray
	ldr	r3, [fp, #-16]
	b	.L46
.L42:
	mov	r3, #0
.L46:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L48:
	.align	2
.L47:
	.word	1072693248
	.size	treeToArray, .-treeToArray
	.align	2
	.global	recursiveTreeToArray
	.syntax unified
	.arm
	.fpu softvfp
	.type	recursiveTreeToArray, %function
recursiveTreeToArray:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L54
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L52
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r3, #4
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	cmp	r2, #0
	rsblt	r2, r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L52
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #3
	add	r3, r3, #4
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L52:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L53
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r1, [fp, #-16]
	add	r3, r1, r3
	cmp	r2, #0
	rsblt	r2, r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L53
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #1
	str	r2, [r3]
.L53:
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #1
	add	r1, r3, #1
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	bl	recursiveTreeToArray
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r1, r3, #1
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	bl	recursiveTreeToArray
	b	.L49
.L54:
	nop
.L49:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	recursiveTreeToArray, .-recursiveTreeToArray
	.align	2
	.global	height
	.syntax unified
	.arm
	.fpu softvfp
	.type	height, %function
height:
	@ 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	.L56
	mvn	r3, #0
	b	.L57
.L56:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	height
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	height
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L58
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	b	.L57
.L58:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	height, .-height
	.align	2
	.global	digits
	.syntax unified
	.arm
	.fpu softvfp
	.type	digits, %function
digits:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L60
.L61:
	ldr	r3, [fp, #-16]
	ldr	r2, .L63
	smull	r1, r2, r3, r2
	asr	r2, r2, #2
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L60:
	ldr	r3, [fp, #-16]
	cmp	r3, #9
	bgt	.L61
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L64:
	.align	2
.L63:
	.word	1717986919
	.size	digits, .-digits
	.align	2
	.global	newNode
	.syntax unified
	.arm
	.fpu softvfp
	.type	newNode, %function
newNode:
	@ 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]
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	newNode, .-newNode
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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
	mov	r0, #832
	bl	newNode
	str	r0, [fp, #-16]
	mvn	r0, #11
	bl	newNode
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	mov	r0, #3
	bl	newNode
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #4]
	ldr	r0, .L69
	bl	newNode
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #4]
	mov	r0, #5
	bl	newNode
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #8]
	mov	r0, #6
	bl	newNode
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r3, [fp, #-16]
	ldr	r4, [r3, #8]
	mvn	r0, #6
	bl	newNode
	mov	r3, r0
	str	r3, [r4, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r4, [r3, #8]
	ldr	r0, .L69+4
	bl	newNode
	mov	r3, r0
	str	r3, [r4, #4]
	ldr	r0, [fp, #-16]
	bl	draw
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L70:
	.align	2
.L69:
	.word	499
	.word	938
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
