	.file	"395320.c"
	.intel_syntax noprefix
	.text
	.globl	aloca
	.type	aloca, @function
aloca:
.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	DWORD PTR -28[rbp], esi
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[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	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	aloca, .-aloca
	.globl	insere
	.type	insere, @function
insere:
.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	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L3
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L6
.L3:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	insere
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	insere
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	insere, .-insere
	.globl	busca
	.type	busca, @function
busca:
.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	cmp	QWORD PTR -8[rbp], 0
	je	.L8
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L9
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L12
.L9:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L11
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	busca
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR -12[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	busca
	jmp	.L12
.L8:
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
.L12:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	busca, .-busca
	.globl	maior_valor
	.type	maior_valor, @function
maior_valor:
.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	QWORD PTR -16[rbp], rsi
	cmp	QWORD PTR -8[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	maior_valor
	jmp	.L16
.L15:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	maior_valor, .-maior_valor
	.globl	remover
	.type	remover, @function
remover:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jne	.L19
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L20
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L24
.L20:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L22
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L22
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L24
.L22:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L23
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L24
.L23:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	maior_valor
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 16[rdx]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L27
.L19:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -44[rbp], eax
	jge	.L25
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdi, 8[rax]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	call	remover
	jmp	.L27
.L25:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdi, 16[rax]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -44[rbp]
	mov	esi, eax
	call	remover
	jmp	.L27
.L18:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L27
.L24:
.L27:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	remover, .-remover
	.section	.rodata
.LC0:
	.string	"%d "
	.text
	.globl	imprimir
	.type	imprimir, @function
imprimir:
.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
	je	.L30
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	imprimir
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	imprimir
.L30:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	imprimir, .-imprimir
	.section	.rodata
.LC1:
	.string	"\ndigite -1 para parar!!"
.LC2:
	.string	"digite um valor: "
.LC3:
	.string	"%d"
	.text
	.globl	inserir_valores
	.type	inserir_valores, @function
inserir_valores:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC1[rip]
	call	puts@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -20[rbp]
	test	eax, eax
	jle	.L34
	mov	edx, DWORD PTR -20[rbp]
	lea	rax, -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	aloca
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	insere
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	inserir_valores
.L34:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	inserir_valores, .-inserir_valores
	.globl	quant_nos_arvore
	.type	quant_nos_arvore, @function
quant_nos_arvore:
.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, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -20[rbp], 0
	cmp	QWORD PTR -40[rbp], 0
	je	.L36
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	quant_nos_arvore
	lea	ebx, 1[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	quant_nos_arvore
	add	eax, ebx
	mov	DWORD PTR -20[rbp], eax
.L36:
	mov	eax, DWORD PTR -20[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	quant_nos_arvore, .-quant_nos_arvore
	.globl	profundidade_no
	.type	profundidade_no, @function
profundidade_no:
.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 -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	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L40
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
	jmp	.L43
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L42
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	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	esi, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	profundidade_no
	jmp	.L43
.L42:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	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	esi, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	profundidade_no
	jmp	.L43
.L39:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
.L43:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	profundidade_no, .-profundidade_no
	.globl	altura_no
	.type	altura_no, @function
altura_no:
.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	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L45
	mov	DWORD PTR -12[rbp], -1
	jmp	.L46
.L45:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	altura_no
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	altura_no
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jle	.L47
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
	jmp	.L46
.L47:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	mov	DWORD PTR -12[rbp], eax
.L46:
	mov	eax, DWORD PTR -12[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	altura_no, .-altura_no
	.globl	menor_profundidade
	.type	menor_profundidade, @function
menor_profundidade:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -24[rbp], 0
	je	.L54
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L51
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L51
	mov	DWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, DWORD PTR [rax]
	lea	rcx, -12[rbp]
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	profundidade_no
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -16[rbp]
	cmp	edx, eax
	jle	.L51
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
.L51:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	menor_profundidade
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	menor_profundidade
.L54:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	menor_profundidade, .-menor_profundidade
	.globl	num_descendentes
	.type	num_descendentes, @function
num_descendentes:
.LFB17:
	.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	.L56
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jne	.L57
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	quant_nos_arvore
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L60
.L57:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -12[rbp], eax
	jge	.L59
	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	esi, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	num_descendentes
	jmp	.L60
.L59:
	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	esi, DWORD PTR -12[rbp]
	mov	rdi, rax
	call	num_descendentes
	jmp	.L60
.L56:
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
.L60:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	num_descendentes, .-num_descendentes
	.section	.rodata
.LC4:
	.string	"\n1- Inserir dados na arvore"
.LC5:
	.string	"2- imprimir arvore "
.LC6:
	.string	"3- busca valor "
.LC7:
	.string	"4- remover valor "
	.align 8
.LC8:
	.string	"5- ver quantidade de nos e ramos arvore "
.LC9:
	.string	"6- calcular profundidade No"
	.align 8
.LC10:
	.string	"7- calcular quantidade de descendentes de um No"
.LC11:
	.string	"8- sair "
.LC12:
	.string	"\ndigite opcao: "
	.text
	.globl	menu
	.type	menu, @function
menu:
.LFB18:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, .LC4[rip]
	call	puts@PLT
	lea	rdi, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	lea	rdi, .LC7[rip]
	call	puts@PLT
	lea	rdi, .LC8[rip]
	call	puts@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -12[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L63
	call	__stack_chk_fail@PLT
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	menu, .-menu
	.section	.rodata
.LC13:
	.string	"\nmaior altura: %d\n"
.LC14:
	.string	"menor altura: %d\n"
.LC15:
	.string	"\n"
.LC16:
	.string	"\ndigite um valor: "
.LC17:
	.string	"\nvalor encontrado !!"
.LC18:
	.string	"\nvalor nao encontrado !!"
.LC19:
	.string	"\nvalor removido !!"
	.align 8
.LC20:
	.string	"\nquantidade de nos: %d\nquantidade de ramos: %d\n"
.LC21:
	.string	"\nprofundidade do NO: %d \n"
.LC22:
	.string	"\nNo nao encontrado !!"
	.align 8
.LC23:
	.string	"\nnumero de descendentes do No: %d \n"
.LC24:
	.string	"\nSAINDO........."
.LC25:
	.string	"\nopcao invalida!!!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
.L84:
	mov	eax, 0
	call	menu
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 8
	ja	.L65
	mov	eax, DWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*4]
	lea	rax, .L67[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L67[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L67:
	.long	.L65-.L67
	.long	.L74-.L67
	.long	.L73-.L67
	.long	.L72-.L67
	.long	.L71-.L67
	.long	.L70-.L67
	.long	.L69-.L67
	.long	.L68-.L67
	.long	.L66-.L67
	.text
.L74:
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	inserir_valores
	jmp	.L75
.L73:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	imprimir
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	altura_no
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -36[rbp], eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, -36[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	menor_profundidade
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	jmp	.L75
.L72:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], 0
	mov	ecx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, -44[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	busca
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	jne	.L76
	lea	rdi, .LC17[rip]
	call	puts@PLT
	jmp	.L75
.L76:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L75
.L71:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], 0
	mov	esi, DWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	lea	rdx, -44[rbp]
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	remover
	mov	eax, DWORD PTR -44[rbp]
	test	eax, eax
	jne	.L78
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L75
.L78:
	lea	rdi, .LC19[rip]
	call	puts@PLT
	jmp	.L75
.L70:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	quant_nos_arvore
	mov	DWORD PTR -48[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, -1[rax]
	mov	eax, DWORD PTR -48[rbp]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L75
.L69:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -40[rbp], 0
	mov	esi, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, -44[rbp]
	lea	rdx, -40[rbp]
	mov	rdi, rax
	call	profundidade_no
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	jne	.L80
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC21[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L75
.L80:
	lea	rdi, .LC22[rip]
	call	puts@PLT
	jmp	.L75
.L68:
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	DWORD PTR -44[rbp], 0
	mov	esi, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, -44[rbp]
	lea	rdx, -40[rbp]
	mov	rdi, rax
	call	num_descendentes
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	jne	.L82
	mov	eax, DWORD PTR -40[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L75
.L82:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L75
.L66:
	lea	rdi, .LC24[rip]
	call	puts@PLT
	jmp	.L75
.L65:
	lea	rdi, .LC25[rip]
	call	puts@PLT
	nop
.L75:
	cmp	DWORD PTR -32[rbp], 8
	jne	.L84
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L86
	call	__stack_chk_fail@PLT
.L86:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.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	"395320.c"
	.text
	.align	2
	.global	aloca
	.syntax unified
	.arm
	.fpu softvfp
	.type	aloca, %function
aloca:
	@ 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]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	aloca, .-aloca
	.align	2
	.global	insere
	.syntax unified
	.arm
	.fpu softvfp
	.type	insere, %function
insere:
	@ 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]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	b	.L6
.L3:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L5
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	insere
	b	.L6
.L5:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L6
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	add	r3, r3, #8
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	insere
.L6:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	insere, .-insere
	.align	2
	.global	busca
	.syntax unified
	.arm
	.fpu softvfp
	.type	busca, %function
busca:
	@ 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]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L9
	ldr	r3, [fp, #-16]
	mov	r2, #1
	str	r2, [r3]
	b	.L12
.L9:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L11
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	busca
	b	.L12
.L11:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	busca
	b	.L12
.L8:
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
.L12:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	busca, .-busca
	.align	2
	.global	maior_valor
	.syntax unified
	.arm
	.fpu softvfp
	.type	maior_valor, %function
maior_valor:
	@ 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	.L16
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	maior_valor
	b	.L16
.L15:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L16:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	maior_valor, .-maior_valor
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	remover
	.syntax unified
	.arm
	.fpu softvfp
	.type	remover, %function
remover:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L28
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L18
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bne	.L19
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-32]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L20
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	b	.L24
.L20:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	b	.L24
.L22:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	b	.L24
.L23:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	maior_valor
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, [r2, #8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	b	.L27
.L19:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	bge	.L25
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r0, r3, #4
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	bl	remover
	b	.L27
.L25:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r0, r3, #8
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	bl	remover
	b	.L27
.L18:
	ldr	r3, [fp, #-32]
	mov	r2, #0
	str	r2, [r3]
	b	.L27
.L24:
.L27:
	nop
	ldr	r3, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	.LC0
	.size	remover, .-remover
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%d \000"
	.text
	.align	2
	.global	imprimir
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimir, %function
imprimir:
	@ 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
	beq	.L32
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	imprimir
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L33
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	imprimir
.L32:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC1
	.size	imprimir, .-imprimir
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012digite -1 para parar!!\000"
	.align	2
.LC3:
	.ascii	"digite um valor: \000"
	.align	2
.LC4:
	.ascii	"%d\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	inserir_valores
	.syntax unified
	.arm
	.fpu softvfp
	.type	inserir_valores, %function
inserir_valores:
	@ 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, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L39+4
	bl	puts
	ldr	r0, .L39+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L39+12
	bl	__isoc99_scanf
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L38
	ldr	r2, [fp, #-16]
	sub	r3, fp, #12
	mov	r1, r2
	mov	r0, r3
	bl	aloca
	ldr	r3, [fp, #-12]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	insere
	ldr	r0, [fp, #-24]
	bl	inserir_valores
.L38:
	nop
	ldr	r3, .L39
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	inserir_valores, .-inserir_valores
	.align	2
	.global	quant_nos_arvore
	.syntax unified
	.arm
	.fpu softvfp
	.type	quant_nos_arvore, %function
quant_nos_arvore:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L42
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	quant_nos_arvore
	mov	r3, r0
	add	r4, r3, #1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	quant_nos_arvore
	mov	r3, r0
	add	r3, r4, r3
	str	r3, [fp, #-16]
.L42:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	quant_nos_arvore, .-quant_nos_arvore
	.align	2
	.global	profundidade_no
	.syntax unified
	.arm
	.fpu softvfp
	.type	profundidade_no, %function
profundidade_no:
	@ 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	.L45
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L46
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3]
	b	.L49
.L46:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L48
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	bl	profundidade_no
	b	.L49
.L48:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	bl	profundidade_no
	b	.L49
.L45:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
.L49:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	profundidade_no, .-profundidade_no
	.align	2
	.global	altura_no
	.syntax unified
	.arm
	.fpu softvfp
	.type	altura_no, %function
altura_no:
	@ 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, [fp, #-24]
	cmp	r3, #0
	bne	.L51
	mvn	r3, #0
	str	r3, [fp, #-16]
	b	.L52
.L51:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	altura_no
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	altura_no
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	ble	.L53
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L52
.L53:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L52:
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	altura_no, .-altura_no
	.section	.rodata
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	menor_profundidade
	.syntax unified
	.arm
	.fpu softvfp
	.type	menor_profundidade, %function
menor_profundidade:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L57
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L57
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	sub	r3, fp, #12
	sub	r2, fp, #16
	ldr	r0, [fp, #-32]
	bl	profundidade_no
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L57
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r2, [r3]
.L57:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	menor_profundidade
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	menor_profundidade
.L60:
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L59
	bl	__stack_chk_fail
.L59:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC6
	.size	menor_profundidade, .-menor_profundidade
	.align	2
	.global	num_descendentes
	.syntax unified
	.arm
	.fpu softvfp
	.type	num_descendentes, %function
num_descendentes:
	@ 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	.L64
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bne	.L65
	ldr	r3, [fp, #-20]
	mov	r2, #1
	str	r2, [r3]
	ldr	r0, [fp, #-8]
	bl	quant_nos_arvore
	mov	r3, r0
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	b	.L68
.L65:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bge	.L67
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	bl	num_descendentes
	b	.L68
.L67:
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	bl	num_descendentes
	b	.L68
.L64:
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
.L68:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	num_descendentes, .-num_descendentes
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\0121- Inserir dados na arvore\000"
	.align	2
.LC8:
	.ascii	"2- imprimir arvore \000"
	.align	2
.LC9:
	.ascii	"3- busca valor \000"
	.align	2
.LC10:
	.ascii	"4- remover valor \000"
	.align	2
.LC11:
	.ascii	"5- ver quantidade de nos e ramos arvore \000"
	.align	2
.LC12:
	.ascii	"6- calcular profundidade No\000"
	.align	2
.LC13:
	.ascii	"7- calcular quantidade de descendentes de um No\000"
	.align	2
.LC14:
	.ascii	"8- sair \000"
	.align	2
.LC15:
	.ascii	"\012digite opcao: \000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	menu
	.syntax unified
	.arm
	.fpu softvfp
	.type	menu, %function
menu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L72
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L72+4
	bl	puts
	ldr	r0, .L72+8
	bl	puts
	ldr	r0, .L72+12
	bl	puts
	ldr	r0, .L72+16
	bl	puts
	ldr	r0, .L72+20
	bl	puts
	ldr	r0, .L72+24
	bl	puts
	ldr	r0, .L72+28
	bl	puts
	ldr	r0, .L72+32
	bl	puts
	ldr	r0, .L72+36
	bl	printf
	sub	r3, fp, #12
	mov	r1, r3
	ldr	r0, .L72+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-12]
	ldr	r2, .L72
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L71
	bl	__stack_chk_fail
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L73:
	.align	2
.L72:
	.word	.LC16
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC4
	.size	menu, .-menu
	.section	.rodata
	.align	2
.LC17:
	.ascii	"\012maior altura: %d\012\000"
	.align	2
.LC18:
	.ascii	"menor altura: %d\012\000"
	.align	2
.LC19:
	.ascii	"\012\000"
	.align	2
.LC20:
	.ascii	"\012digite um valor: \000"
	.align	2
.LC21:
	.ascii	"\012valor encontrado !!\000"
	.align	2
.LC22:
	.ascii	"\012valor nao encontrado !!\000"
	.align	2
.LC23:
	.ascii	"\012valor removido !!\000"
	.align	2
.LC24:
	.ascii	"\012quantidade de nos: %d\012quantidade de ramos: %"
	.ascii	"d\012\000"
	.align	2
.LC25:
	.ascii	"\012profundidade do NO: %d \012\000"
	.align	2
.LC26:
	.ascii	"\012No nao encontrado !!\000"
	.align	2
.LC27:
	.ascii	"\012numero de descendentes do No: %d \012\000"
	.align	2
.LC28:
	.ascii	"\012SAINDO.........\000"
	.align	2
.LC29:
	.ascii	"\012opcao invalida!!!\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L97
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
.L94:
	bl	menu
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	sub	r3, r3, #1
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L75
.L77:
	.word	.L84
	.word	.L83
	.word	.L82
	.word	.L81
	.word	.L80
	.word	.L79
	.word	.L78
	.word	.L76
.L84:
	sub	r3, fp, #40
	mov	r0, r3
	bl	inserir_valores
	b	.L85
.L83:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	imprimir
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	altura_no
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-40]
	ldr	r2, [fp, #-40]
	sub	r1, fp, #24
	mov	r0, r3
	bl	menor_profundidade
	ldr	r1, [fp, #-12]
	ldr	r0, .L97+4
	bl	printf
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, .L97+8
	bl	printf
	ldr	r0, .L97+12
	bl	puts
	b	.L85
.L82:
	ldr	r0, .L97+16
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L97+20
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-40]
	ldr	r1, [fp, #-36]
	sub	r2, fp, #32
	mov	r0, r3
	bl	busca
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L86
	ldr	r0, .L97+24
	bl	puts
	b	.L85
.L86:
	ldr	r0, .L97+28
	bl	puts
	b	.L85
.L81:
	ldr	r0, .L97+16
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L97+20
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r1, [fp, #-36]
	sub	r2, fp, #32
	sub	r0, fp, #40
	ldr	r3, [fp, #-16]
	bl	remover
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L88
	ldr	r0, .L97+28
	bl	puts
	b	.L85
.L88:
	ldr	r0, .L97+32
	bl	puts
	b	.L85
.L80:
	ldr	r3, [fp, #-40]
	mov	r0, r3
	bl	quant_nos_arvore
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-36]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, .L97+36
	bl	printf
	b	.L85
.L79:
	ldr	r0, .L97+16
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L97+20
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r0, [fp, #-40]
	ldr	r1, [fp, #-36]
	sub	r3, fp, #32
	sub	r2, fp, #28
	bl	profundidade_no
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L90
	ldr	r3, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L97+40
	bl	printf
	b	.L85
.L90:
	ldr	r0, .L97+44
	bl	puts
	b	.L85
.L78:
	ldr	r0, .L97+16
	bl	printf
	sub	r3, fp, #36
	mov	r1, r3
	ldr	r0, .L97+20
	bl	__isoc99_scanf
	mov	r3, #0
	str	r3, [fp, #-32]
	ldr	r0, [fp, #-40]
	ldr	r1, [fp, #-36]
	sub	r3, fp, #32
	sub	r2, fp, #28
	bl	num_descendentes
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L92
	ldr	r3, [fp, #-28]
	mov	r1, r3
	ldr	r0, .L97+48
	bl	printf
	b	.L85
.L92:
	ldr	r0, .L97+28
	bl	puts
	b	.L85
.L76:
	ldr	r0, .L97+52
	bl	puts
	b	.L85
.L75:
	ldr	r0, .L97+56
	bl	puts
	nop
.L85:
	ldr	r3, [fp, #-20]
	cmp	r3, #8
	bne	.L94
	mov	r3, #0
	ldr	r2, .L97
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L96
	bl	__stack_chk_fail
.L96:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L98:
	.align	2
.L97:
	.word	.LC30
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC4
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
