	.file	"197808.c"
	.intel_syntax noprefix
	.text
	.globl	altura
	.bss
	.align 4
	.type	altura, @object
	.size	altura, 4
altura:
	.zero	4
	.globl	raiz
	.align 8
	.type	raiz, @object
	.size	raiz, 8
raiz:
	.zero	8
	.text
	.globl	criarNo
	.type	criarNo, @function
criarNo:
.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	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	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[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
.LFE6:
	.size	criarNo, .-criarNo
	.section	.rodata
.LC0:
	.string	"Duplicates Not Allowed!!"
	.text
	.globl	inserir
	.type	inserir, @function
inserir:
.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, 1264
	mov	DWORD PTR -1252[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1240[rbp], 0
	mov	rax, QWORD PTR raiz[rip]
	mov	QWORD PTR -1232[rbp], rax
	mov	rax, QWORD PTR raiz[rip]
	test	rax, rax
	jne	.L4
	mov	eax, DWORD PTR -1252[rbp]
	mov	edi, eax
	call	criarNo
	mov	QWORD PTR raiz[rip], rax
	jmp	.L3
.L4:
	mov	rdx, QWORD PTR raiz[rip]
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	mov	QWORD PTR -800[rbp+rax*8], rdx
	mov	eax, DWORD PTR -1240[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1240[rbp], edx
	cdqe
	mov	DWORD PTR -1200[rbp+rax*4], 0
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -1232[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -1252[rbp], eax
	jne	.L7
	lea	rdi, .LC0[rip]
	call	puts@PLT
	jmp	.L3
.L7:
	mov	rax, QWORD PTR -1232[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -1252[rbp]
	sub	eax, edx
	test	eax, eax
	setg	al
	movzx	eax, al
	mov	DWORD PTR -1236[rbp], eax
	mov	eax, DWORD PTR -1240[rbp]
	cdqe
	mov	rdx, QWORD PTR -1232[rbp]
	mov	QWORD PTR -800[rbp+rax*8], rdx
	mov	rax, QWORD PTR -1232[rbp]
	mov	edx, DWORD PTR -1236[rbp]
	movsx	rdx, edx
	mov	rax, QWORD PTR 8[rax+rdx*8]
	mov	QWORD PTR -1232[rbp], rax
	mov	eax, DWORD PTR -1240[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1240[rbp], edx
	cdqe
	mov	edx, DWORD PTR -1236[rbp]
	mov	DWORD PTR -1200[rbp+rax*4], edx
.L6:
	cmp	QWORD PTR -1232[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -1252[rbp]
	mov	edi, eax
	call	criarNo
	mov	QWORD PTR -1216[rbp], rax
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	edx, DWORD PTR -1236[rbp]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -1216[rbp]
	mov	QWORD PTR 8[rax+rdx*8], rcx
	jmp	.L9
.L22:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	eax, DWORD PTR -1200[rbp+rax*4]
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1224[rbp], rax
	cmp	QWORD PTR -1224[rbp], 0
	je	.L11
	mov	rax, QWORD PTR -1224[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L11
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -1224[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	rdx, QWORD PTR -1224[rbp]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[rax], edx
	sub	DWORD PTR -1240[rbp], 2
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -1200[rbp+rax*4]
	test	eax, eax
	jne	.L12
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	QWORD PTR -1224[rbp], rax
	jmp	.L13
.L12:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	QWORD PTR -1208[rbp], rax
	mov	rax, QWORD PTR -1208[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -1224[rbp], rax
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -1208[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR -1208[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	rdx, QWORD PTR -1224[rbp]
	mov	QWORD PTR 8[rax], rdx
.L13:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	QWORD PTR -1208[rbp], rax
	mov	rax, QWORD PTR -1208[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -1224[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -1208[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR -1208[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR raiz[rip]
	cmp	QWORD PTR -1208[rbp], rax
	jne	.L14
	mov	rax, QWORD PTR -1224[rbp]
	mov	QWORD PTR raiz[rip], rax
	jmp	.L16
.L14:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 3
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	edx, DWORD PTR -1240[rbp]
	sub	edx, 3
	movsx	rdx, edx
	mov	edx, DWORD PTR -1200[rbp+rdx*4]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -1224[rbp]
	mov	QWORD PTR 8[rax+rdx*8], rcx
	jmp	.L16
.L10:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1224[rbp], rax
	cmp	QWORD PTR -1224[rbp], 0
	je	.L17
	mov	rax, QWORD PTR -1224[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	jne	.L17
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -1224[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	rdx, QWORD PTR -1224[rbp]
	mov	edx, DWORD PTR 4[rdx]
	mov	DWORD PTR 4[rax], edx
	sub	DWORD PTR -1240[rbp], 2
	jmp	.L9
.L17:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	eax, DWORD PTR -1200[rbp+rax*4]
	cmp	eax, 1
	jne	.L18
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	QWORD PTR -1224[rbp], rax
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	QWORD PTR -1208[rbp], rax
	mov	rax, QWORD PTR -1208[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -1224[rbp], rax
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -1208[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR -1208[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	rdx, QWORD PTR -1224[rbp]
	mov	QWORD PTR 16[rax], rdx
.L19:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 2
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	QWORD PTR -1208[rbp], rax
	mov	rax, QWORD PTR -1224[rbp]
	mov	DWORD PTR 4[rax], 1
	mov	rax, QWORD PTR -1208[rbp]
	mov	DWORD PTR 4[rax], 0
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -1208[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -1224[rbp]
	mov	rdx, QWORD PTR -1208[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR raiz[rip]
	cmp	QWORD PTR -1208[rbp], rax
	jne	.L20
	mov	rax, QWORD PTR -1224[rbp]
	mov	QWORD PTR raiz[rip], rax
	jmp	.L16
.L20:
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 3
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	edx, DWORD PTR -1240[rbp]
	sub	edx, 3
	movsx	rdx, edx
	mov	edx, DWORD PTR -1200[rbp+rdx*4]
	movsx	rdx, edx
	mov	rcx, QWORD PTR -1224[rbp]
	mov	QWORD PTR 8[rax+rdx*8], rcx
	jmp	.L16
.L9:
	cmp	DWORD PTR -1240[rbp], 2
	jle	.L16
	mov	eax, DWORD PTR -1240[rbp]
	sub	eax, 1
	cdqe
	mov	rax, QWORD PTR -800[rbp+rax*8]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L22
.L16:
	mov	rax, QWORD PTR raiz[rip]
	mov	DWORD PTR 4[rax], 1
.L3:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L24
	call	__stack_chk_fail@PLT
.L24:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	inserir, .-inserir
	.section	.rodata
.LC1:
	.string	"Arvore nao existe"
.LC2:
	.string	"%d "
	.text
	.globl	imprimirArvore
	.type	imprimirArvore, @function
imprimirArvore:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L26
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
.L26:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L27
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	imprimirArvore
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L29
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	imprimirArvore
.L29:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	imprimirArvore, .-imprimirArvore
	.globl	calculaAltura
	.type	calculaAltura, @function
calculaAltura:
.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	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L31
	mov	eax, -1
	jmp	.L30
.L31:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L33
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, edx
	mov	rdi, rax
	call	calculaAltura
.L33:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L34
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	calculaAltura
.L34:
	mov	eax, DWORD PTR altura[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L35
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR altura[rip], eax
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L30
.L35:
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	calculaAltura, .-calculaAltura
	.section	.rodata
.LC3:
	.string	"%d,%d,%d\n"
	.text
	.globl	imprimirAltura
	.type	imprimirAltura, @function
imprimirAltura:
.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
	mov	DWORD PTR altura[rip], 0
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	mov	DWORD PTR -4[rbp], 0
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculaAltura
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR altura[rip], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculaAltura
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR altura[rip], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	calculaAltura
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	imprimirAltura, .-imprimirAltura
	.globl	buscaArvore
	.type	buscaArvore, @function
buscaArvore:
.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
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	je	.L38
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L39
.L38:
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L41
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	buscaArvore
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	buscaArvore
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	buscaArvore, .-buscaArvore
	.globl	EhPreto
	.type	EhPreto, @function
EhPreto:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	eax, 1
	jne	.L44
.L43:
	mov	eax, 1
	jmp	.L46
.L44:
	mov	eax, 0
.L46:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	EhPreto, .-EhPreto
	.globl	CalculaAlturaPreta
	.type	CalculaAlturaPreta, @function
CalculaAlturaPreta:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L48
	mov	eax, 0
	jmp	.L49
.L48:
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	EhPreto
	cmp	eax, 1
	jne	.L50
	mov	DWORD PTR -4[rbp], 1
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	CalculaAlturaPreta
	mov	edx, DWORD PTR -4[rbp]
	add	eax, edx
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	CalculaAlturaPreta, .-CalculaAlturaPreta
	.section	.rodata
.LC4:
	.string	"%d\n"
	.text
	.globl	PrintaAlturaPreta
	.type	PrintaAlturaPreta, @function
PrintaAlturaPreta:
.LFB14:
	.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	DWORD PTR altura[rip], 0
	mov	DWORD PTR -4[rbp], 0
	mov	edx, DWORD PTR -4[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	CalculaAlturaPreta
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	PrintaAlturaPreta, .-PrintaAlturaPreta
	.section	.rodata
.LC5:
	.string	"%d"
.LC6:
	.string	"Valor nao encontrado"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	inserir
	jmp	.L53
.L56:
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	js	.L65
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	inserir
.L53:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jg	.L56
	jmp	.L55
.L65:
	nop
.L55:
	mov	rax, QWORD PTR raiz[rip]
	mov	rdi, rax
	call	imprimirAltura
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L57
.L60:
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR raiz[rip]
	mov	esi, edx
	mov	rdi, rax
	call	buscaArvore
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L58
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	imprimirAltura
	jmp	.L59
.L58:
	mov	eax, DWORD PTR -24[rbp]
	mov	edi, eax
	call	inserir
.L59:
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L57:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	jg	.L60
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR raiz[rip]
	mov	esi, edx
	mov	rdi, rax
	call	buscaArvore
	test	rax, rax
	je	.L61
	mov	edx, DWORD PTR -24[rbp]
	mov	rax, QWORD PTR raiz[rip]
	mov	esi, edx
	mov	rdi, rax
	call	buscaArvore
	mov	rdi, rax
	call	PrintaAlturaPreta
	jmp	.L62
.L61:
	lea	rdi, .LC6[rip]
	call	puts@PLT
.L62:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.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	"197808.c"
	.text
	.global	altura
	.bss
	.align	2
	.type	altura, %object
	.size	altura, 4
altura:
	.space	4
	.global	raiz
	.align	2
	.type	raiz, %object
	.size	raiz, 4
raiz:
	.space	4
	.text
	.align	2
	.global	criarNo
	.syntax unified
	.arm
	.fpu softvfp
	.type	criarNo, %function
criarNo:
	@ 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, #16
	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, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	criarNo, .-criarNo
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Duplicates Not Allowed!!\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	inserir
	.syntax unified
	.arm
	.fpu softvfp
	.type	inserir, %function
inserir:
	@ args = 0, pretend = 0, frame = 824
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #824
	str	r0, [fp, #-824]
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-808]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	str	r3, [fp, #-816]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r0, [fp, #-824]
	bl	criarNo
	mov	r3, r0
	ldr	r2, .L25+4
	str	r3, [r2]
	b	.L3
.L4:
	ldr	r3, .L25+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-808]
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	str	r2, [r3, #-788]
	ldr	r3, [fp, #-808]
	add	r2, r3, #1
	str	r2, [fp, #-808]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	str	r2, [r3, #-396]
	b	.L6
.L8:
	ldr	r3, [fp, #-816]
	ldr	r3, [r3]
	ldr	r2, [fp, #-824]
	cmp	r2, r3
	bne	.L7
	ldr	r0, .L25+8
	bl	puts
	b	.L3
.L7:
	ldr	r3, [fp, #-816]
	ldr	r3, [r3]
	ldr	r2, [fp, #-824]
	sub	r3, r2, r3
	cmp	r3, #0
	movgt	r3, #1
	movle	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-804]
	ldr	r3, [fp, #-808]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-816]
	str	r2, [r3, #-788]
	ldr	r3, [fp, #-816]
	ldr	r2, [fp, #-804]
	add	r2, r2, #2
	ldr	r3, [r3, r2, lsl #2]
	str	r3, [fp, #-816]
	ldr	r3, [fp, #-808]
	add	r2, r3, #1
	str	r2, [fp, #-808]
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [fp, #-804]
	str	r2, [r3, #-396]
.L6:
	ldr	r3, [fp, #-816]
	cmp	r3, #0
	bne	.L8
	ldr	r0, [fp, #-824]
	bl	criarNo
	str	r0, [fp, #-800]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r2, [fp, #-804]
	add	r2, r2, #2
	ldr	r1, [fp, #-800]
	str	r1, [r3, r2, lsl #2]
	b	.L9
.L22:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-396]
	cmp	r3, #0
	bne	.L10
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-812]
	ldr	r3, [fp, #-812]
	cmp	r3, #0
	beq	.L11
	ldr	r3, [fp, #-812]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-812]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r2, [fp, #-812]
	ldr	r2, [r2, #4]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	str	r3, [fp, #-808]
	b	.L9
.L11:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-396]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	str	r3, [fp, #-812]
	b	.L13
.L12:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	str	r3, [fp, #-796]
	ldr	r3, [fp, #-796]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-812]
	ldr	r3, [fp, #-812]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-796]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-812]
	ldr	r2, [fp, #-796]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r2, [fp, #-812]
	str	r2, [r3, #8]
.L13:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	str	r3, [fp, #-796]
	ldr	r3, [fp, #-796]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-812]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-812]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-796]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-812]
	ldr	r2, [fp, #-796]
	str	r2, [r3, #12]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-796]
	cmp	r2, r3
	bne	.L14
	ldr	r2, .L25+4
	ldr	r3, [fp, #-812]
	str	r3, [r2]
	b	.L16
.L14:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-788]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #3
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-396]
	add	r3, r3, #2
	ldr	r1, [fp, #-812]
	str	r1, [r2, r3, lsl #2]
	b	.L16
.L10:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-812]
	ldr	r3, [fp, #-812]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-812]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-812]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r2, [fp, #-812]
	ldr	r2, [r2, #4]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	str	r3, [fp, #-808]
	b	.L9
.L17:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-396]
	cmp	r3, #1
	bne	.L18
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	str	r3, [fp, #-812]
	b	.L19
.L18:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	str	r3, [fp, #-796]
	ldr	r3, [fp, #-796]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-812]
	ldr	r3, [fp, #-812]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-796]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-812]
	ldr	r2, [fp, #-796]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r2, [fp, #-812]
	str	r2, [r3, #12]
.L19:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #2
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	str	r3, [fp, #-796]
	ldr	r3, [fp, #-812]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-796]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-812]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-796]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-812]
	ldr	r2, [fp, #-796]
	str	r2, [r3, #8]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-796]
	cmp	r2, r3
	bne	.L20
	ldr	r2, .L25+4
	ldr	r3, [fp, #-812]
	str	r3, [r2]
	b	.L16
.L20:
	ldr	r3, [fp, #-808]
	sub	r3, r3, #3
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-788]
	ldr	r3, [fp, #-808]
	sub	r3, r3, #3
	lsl	r3, r3, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r3, [r3, #-396]
	add	r3, r3, #2
	ldr	r1, [fp, #-812]
	str	r1, [r2, r3, lsl #2]
	b	.L16
.L9:
	ldr	r3, [fp, #-808]
	cmp	r3, #2
	ble	.L16
	ldr	r3, [fp, #-808]
	sub	r3, r3, #1
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-788]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L22
.L16:
	ldr	r3, .L25+4
	ldr	r3, [r3]
	mov	r2, #1
	str	r2, [r3, #4]
.L3:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC1
	.word	raiz
	.word	.LC0
	.size	inserir, .-inserir
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Arvore nao existe\000"
	.align	2
.LC3:
	.ascii	"%d \000"
	.text
	.align	2
	.global	imprimirArvore
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimirArvore, %function
imprimirArvore:
	@ 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]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L28
	ldr	r0, .L32
	bl	printf
.L28:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L32+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	imprimirArvore
.L29:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r0, r3
	bl	imprimirArvore
.L31:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC2
	.word	.LC3
	.size	imprimirArvore, .-imprimirArvore
	.align	2
	.global	calculaAltura
	.syntax unified
	.arm
	.fpu softvfp
	.type	calculaAltura, %function
calculaAltura:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L35
	mvn	r3, #0
	b	.L34
.L35:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	calculaAltura
.L37:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	calculaAltura
.L38:
	ldr	r3, .L40
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L39
	ldr	r2, .L40
	ldr	r3, [fp, #-12]
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	b	.L34
.L39:
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	altura
	.size	calculaAltura, .-calculaAltura
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%d,%d,%d\012\000"
	.text
	.align	2
	.global	imprimirAltura
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimirAltura, %function
imprimirAltura:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, .L43
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	calculaAltura
	str	r0, [fp, #-16]
	ldr	r3, .L43
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	calculaAltura
	str	r0, [fp, #-12]
	ldr	r3, .L43
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	calculaAltura
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r1, [fp, #-16]
	ldr	r0, .L43+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	altura
	.word	.LC4
	.size	imprimirAltura, .-imprimirAltura
	.align	2
	.global	buscaArvore
	.syntax unified
	.arm
	.fpu softvfp
	.type	buscaArvore, %function
buscaArvore:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L47
.L46:
	ldr	r3, [fp, #-8]
	b	.L48
.L47:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L49
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	buscaArvore
	mov	r3, r0
	b	.L48
.L49:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	buscaArvore
	mov	r3, r0
.L48:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	buscaArvore, .-buscaArvore
	.align	2
	.global	EhPreto
	.syntax unified
	.arm
	.fpu softvfp
	.type	EhPreto, %function
EhPreto:
	@ 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]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #1
	bne	.L52
.L51:
	mov	r3, #1
	b	.L54
.L52:
	mov	r3, #0
.L54:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	EhPreto, .-EhPreto
	.align	2
	.global	CalculaAlturaPreta
	.syntax unified
	.arm
	.fpu softvfp
	.type	CalculaAlturaPreta, %function
CalculaAlturaPreta:
	@ 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]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L56
	mov	r3, #0
	b	.L57
.L56:
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	EhPreto
	mov	r3, r0
	cmp	r3, #1
	bne	.L58
	mov	r3, #1
	str	r3, [fp, #-8]
.L58:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	CalculaAlturaPreta
	mov	r2, r0
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	CalculaAlturaPreta, .-CalculaAlturaPreta
	.section	.rodata
	.align	2
.LC5:
	.ascii	"%d\012\000"
	.text
	.align	2
	.global	PrintaAlturaPreta
	.syntax unified
	.arm
	.fpu softvfp
	.type	PrintaAlturaPreta, %function
PrintaAlturaPreta:
	@ 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, .L60
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	CalculaAlturaPreta
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L60+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	altura
	.word	.LC5
	.size	PrintaAlturaPreta, .-PrintaAlturaPreta
	.section	.rodata
	.align	2
.LC6:
	.ascii	"%d\000"
	.align	2
.LC7:
	.ascii	"Valor nao encontrado\000"
	.align	2
.LC8:
	.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, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L76+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	inserir
	b	.L63
.L66:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L76+4
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	blt	.L75
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	inserir
.L63:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L66
	b	.L65
.L75:
	nop
.L65:
	ldr	r3, .L76+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	imprimirAltura
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L76+4
	bl	__isoc99_scanf
	b	.L67
.L70:
	ldr	r3, .L76+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	buscaArvore
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L68
	ldr	r0, [fp, #-12]
	bl	imprimirAltura
	b	.L69
.L68:
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	inserir
.L69:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L76+4
	bl	__isoc99_scanf
.L67:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bgt	.L70
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L76+4
	bl	__isoc99_scanf
	ldr	r3, .L76+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	buscaArvore
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	ldr	r3, .L76+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	buscaArvore
	mov	r3, r0
	mov	r0, r3
	bl	PrintaAlturaPreta
	b	.L72
.L71:
	ldr	r0, .L76+12
	bl	puts
.L72:
	mov	r3, #0
	ldr	r2, .L76
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC8
	.word	.LC6
	.word	raiz
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
