	.file	"211385.c"
	.intel_syntax noprefix
	.text
	.globl	cor
	.type	cor, @function
cor:
.LFB6:
	.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
	jne	.L2
	mov	eax, 66
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	cor, .-cor
	.globl	trocar_cor
	.type	trocar_cor, @function
trocar_cor:
.LFB7:
	.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
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	sete	al
	movzx	edx, al
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L5
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	sete	dl
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	movzx	edx, dl
	mov	DWORD PTR 24[rax], edx
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L7
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 24[rax]
	test	eax, eax
	sete	dl
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	movzx	edx, dl
	mov	DWORD PTR 24[rax], edx
.L7:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	trocar_cor, .-trocar_cor
	.globl	rotacao_esq
	.type	rotacao_esq, @function
rotacao_esq:
.LFB8:
	.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 82
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	rotacao_esq, .-rotacao_esq
	.globl	rotacao_dir
	.type	rotacao_dir, @function
rotacao_dir:
.LFB9:
	.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 24[rax], 82
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rotacao_dir, .-rotacao_dir
	.globl	move_2_esq_red
	.type	move_2_esq_red, @function
move_2_esq_red:
.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, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	trocar_cor
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L13
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	rotacao_dir
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rotacao_esq
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	trocar_cor
.L13:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	move_2_esq_red, .-move_2_esq_red
	.globl	move_2_dir_red
	.type	move_2_dir_red, @function
move_2_dir_red:
.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, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	trocar_cor
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rotacao_dir
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	trocar_cor
.L16:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	move_2_dir_red, .-move_2_dir_red
	.globl	balancear
	.type	balancear, @function
balancear:
.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, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rotacao_esq
	mov	QWORD PTR -8[rbp], rax
.L18:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	rotacao_dir
	mov	QWORD PTR -8[rbp], rax
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L20
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	trocar_cor
.L20:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	balancear, .-balancear
	.globl	inserir
	.type	inserir, @function
inserir:
.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
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -12[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	inserirNo
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 24[rax], 66
.L23:
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	inserir, .-inserir
	.globl	inserirNo
	.type	inserirNo, @function
inserirNo:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	cmp	QWORD PTR -24[rbp], 0
	jne	.L27
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L29
.L28:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 24[rax], 82
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L29
.L27:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L30
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	jmp	.L31
.L30:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	inserirNo
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx], rax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	inserirNo
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rdx], rax
.L31:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 66
	jne	.L33
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotacao_esq
	mov	QWORD PTR -24[rbp], rax
.L33:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L34
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotacao_dir
	mov	QWORD PTR -24[rbp], rax
.L34:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L35
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	trocar_cor
.L35:
	mov	rax, QWORD PTR -24[rbp]
.L29:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	inserirNo, .-inserirNo
	.globl	consulta
	.type	consulta, @function
consulta:
.LFB15:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	QWORD PTR -24[rbp], 0
	jne	.L37
	mov	eax, -1
	jmp	.L38
.L37:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L39
.L42:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L40
	mov	eax, 2
	jmp	.L38
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jle	.L41
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L39
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L39:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L42
	mov	eax, -1
.L38:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	consulta, .-consulta
	.globl	removeArvore
	.type	removeArvore, @function
removeArvore:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	consulta
	test	eax, eax
	je	.L44
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	removeNo
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L45
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 24[rax], 66
	mov	eax, 1
	jmp	.L43
.L45:
	mov	eax, 0
	jmp	.L43
.L44:
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	removeArvore, .-removeArvore
	.globl	removeNo
	.type	removeNo, @function
removeNo:
.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jge	.L48
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 66
	jne	.L49
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 66
	jne	.L49
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	move_2_esq_red
	mov	QWORD PTR -24[rbp], rax
	jmp	.L51
.L49:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	removeNo
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rdx], rax
	jmp	.L51
.L48:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 82
	jne	.L52
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rotacao_dir
	mov	QWORD PTR -24[rbp], rax
.L52:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L53
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L54
.L53:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 66
	jne	.L55
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 66
	jne	.L55
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	move_2_dir_red
	mov	QWORD PTR -24[rbp], rax
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L56
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	procuraMenor
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	removerMenor
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rdx], rax
	jmp	.L51
.L56:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	removeNo
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 16[rdx], rax
.L51:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	balancear
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	removeNo, .-removeNo
	.globl	removerMenor
	.type	removerMenor, @function
removerMenor:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L58
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
	jmp	.L59
.L58:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 66
	jne	.L60
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	cor
	cmp	eax, 66
	jne	.L60
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	move_2_esq_red
	mov	QWORD PTR -8[rbp], rax
	jmp	.L61
.L60:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	removerMenor
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
.L61:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	balancear
.L59:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	removerMenor, .-removerMenor
	.globl	procuraMenor
	.type	procuraMenor, @function
procuraMenor:
.LFB19:
	.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 -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L63
.L64:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L63:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L64
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	procuraMenor, .-procuraMenor
	.section	.rodata
.LC0:
	.string	"%d"
	.text
	.globl	imprimir
	.type	imprimir, @function
imprimir:
.LFB20:
	.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	.L68
	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]
	cdqe
	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
.L68:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	imprimir, .-imprimir
	.section	.rodata
.LC1:
	.string	"clear"
	.align 8
.LC2:
	.string	"****************************ARVORE***************************"
	.align 8
.LC3:
	.string	"*************************************************************"
.LC4:
	.string	"\n\n(1) PARA INSERCAO"
.LC5:
	.string	"\n(2) PARA BUSCA"
.LC6:
	.string	"\n(3) PARA EXCLUSAO"
.LC7:
	.string	"\n(4) PARA IMPRESSAO"
.LC8:
	.string	"\n(0) PARA SAIR DO SISTEMA"
.LC9:
	.string	"\n\nEntre com uma opcao acima: "
	.align 8
.LC10:
	.string	"*******************INSERCAO*******************\n"
	.align 8
.LC11:
	.string	"\nEntre com os valores : Quando nao quiser colocar mas elementos digite -1\nE para sair da fun\303\247ao digite 4"
.LC12:
	.string	"pause"
	.align 8
.LC13:
	.string	"*******************CONSULTA*******************\n"
	.align 8
.LC14:
	.string	"*******************REMO\303\207AO*******************\n"
	.align 8
.LC15:
	.string	"\nDigite elemento para removido: "
	.align 8
.LC16:
	.string	"\nDigite elemento a ser removido: "
	.align 8
.LC17:
	.string	"*******************IMPRESSAO*******************\n"
	.align 8
.LC18:
	.string	"\nObrigado por usar nosso sistema"
	.align 8
.LC19:
	.string	"POR FAVOR ENTRE COM UMA OPCAO VALIDA!!!"
	.text
	.globl	main
	.type	main, @function
main:
.LFB21:
	.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
.L70:
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 4
	ja	.L71
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L73[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L73[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L73:
	.long	.L77-.L73
	.long	.L76-.L73
	.long	.L75-.L73
	.long	.L74-.L73
	.long	.L72-.L73
	.text
.L76:
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	jmp	.L78
.L79:
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	inserir
	cdqe
	mov	QWORD PTR -16[rbp], rax
	lea	rax, -28[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
.L78:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, -1
	jne	.L79
	lea	rdi, .LC12[rip]
	call	system@PLT
	jmp	.L80
.L75:
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edx, DWORD PTR -28[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	consulta
	lea	rdi, .LC12[rip]
	call	system@PLT
	jmp	.L80
.L74:
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rdi, .LC14[rip]
	call	puts@PLT
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rax, -20[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	system@PLT
	jmp	.L80
.L72:
	lea	rdi, .LC1[rip]
	call	system@PLT
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	imprimir
	lea	rdi, .LC12[rip]
	call	system@PLT
	jmp	.L80
.L77:
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L80
.L71:
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	call	getchar@PLT
	nop
.L80:
	mov	eax, DWORD PTR -24[rbp]
	test	eax, eax
	je	.L81
	jmp	.L70
.L81:
	call	getchar@PLT
	mov	eax, -1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.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	"211385.c"
	.text
	.align	2
	.global	cor
	.syntax unified
	.arm
	.fpu softvfp
	.type	cor, %function
cor:
	@ 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
	bne	.L2
	mov	r3, #66
	b	.L3
.L2:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
.L3:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	cor, .-cor
	.align	2
	.global	trocar_cor
	.syntax unified
	.arm
	.fpu softvfp
	.type	trocar_cor, %function
trocar_cor:
	@ 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]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L5
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r2, [r3, #12]
.L5:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L7
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r2, r3, #255
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r2, [r3, #12]
.L7:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	trocar_cor, .-trocar_cor
	.align	2
	.global	rotacao_esq
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotacao_esq, %function
rotacao_esq:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	mov	r2, #82
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rotacao_esq, .-rotacao_esq
	.align	2
	.global	rotacao_dir
	.syntax unified
	.arm
	.fpu softvfp
	.type	rotacao_dir, %function
rotacao_dir:
	@ 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]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-16]
	mov	r2, #82
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	rotacao_dir, .-rotacao_dir
	.align	2
	.global	move_2_esq_red
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_2_esq_red, %function
move_2_esq_red:
	@ 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	r0, [fp, #-8]
	bl	trocar_cor
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L13
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	rotacao_dir
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r0, [fp, #-8]
	bl	rotacao_esq
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	trocar_cor
.L13:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	move_2_esq_red, .-move_2_esq_red
	.align	2
	.global	move_2_dir_red
	.syntax unified
	.arm
	.fpu softvfp
	.type	move_2_dir_red, %function
move_2_dir_red:
	@ 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	r0, [fp, #-8]
	bl	trocar_cor
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L16
	ldr	r0, [fp, #-8]
	bl	rotacao_dir
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	trocar_cor
.L16:
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	move_2_dir_red, .-move_2_dir_red
	.align	2
	.global	balancear
	.syntax unified
	.arm
	.fpu softvfp
	.type	balancear, %function
balancear:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L18
	ldr	r0, [fp, #-8]
	bl	rotacao_esq
	str	r0, [fp, #-8]
.L18:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L19
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L19
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L19
	ldr	r0, [fp, #-8]
	bl	rotacao_dir
	str	r0, [fp, #-8]
.L19:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L20
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L20
	ldr	r0, [fp, #-8]
	bl	trocar_cor
.L20:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	balancear, .-balancear
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	inserir
	.syntax unified
	.arm
	.fpu softvfp
	.type	inserir, %function
inserir:
	@ 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, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, fp, #12
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	inserirNo
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L23
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #66
	str	r2, [r3, #12]
.L23:
	ldr	r3, [fp, #-12]
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC0
	.size	inserir, .-inserir
	.align	2
	.global	inserirNo
	.syntax unified
	.arm
	.fpu softvfp
	.type	inserirNo, %function
inserirNo:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L29
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L31
.L30:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #82
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	b	.L31
.L29:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3]
	b	.L33
.L32:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L34
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	inserirNo
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	b	.L33
.L34:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	inserirNo
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
.L33:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L35
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #66
	bne	.L35
	ldr	r0, [fp, #-16]
	bl	rotacao_esq
	str	r0, [fp, #-16]
.L35:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L36
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L36
	ldr	r0, [fp, #-16]
	bl	rotacao_dir
	str	r0, [fp, #-16]
.L36:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L37
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L37
	ldr	r0, [fp, #-16]
	bl	trocar_cor
.L37:
	ldr	r3, [fp, #-16]
.L31:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	inserirNo, .-inserirNo
	.align	2
	.global	consulta
	.syntax unified
	.arm
	.fpu softvfp
	.type	consulta, %function
consulta:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L39
	mvn	r3, #0
	b	.L40
.L39:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L41
.L44:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L42
	mov	r3, #2
	b	.L40
.L42:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	ble	.L43
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-8]
	b	.L41
.L43:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L41:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L44
	mvn	r3, #0
.L40:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	consulta, .-consulta
	.align	2
	.global	removeArvore
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeArvore, %function
removeArvore:
	@ 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	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	consulta
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	removeNo
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	mov	r2, #66
	str	r2, [r3, #12]
	mov	r3, #1
	b	.L45
.L47:
	mov	r3, #0
	b	.L45
.L46:
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	removeArvore, .-removeArvore
	.align	2
	.global	removeNo
	.syntax unified
	.arm
	.fpu softvfp
	.type	removeNo, %function
removeNo:
	@ 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]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bge	.L50
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #66
	bne	.L51
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #66
	bne	.L51
	ldr	r0, [fp, #-16]
	bl	move_2_esq_red
	str	r0, [fp, #-16]
	b	.L53
.L51:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	removeNo
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	b	.L53
.L50:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #82
	bne	.L54
	ldr	r0, [fp, #-16]
	bl	rotacao_dir
	str	r0, [fp, #-16]
.L54:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L55
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L55
	ldr	r0, [fp, #-16]
	bl	free
	mov	r3, #0
	b	.L56
.L55:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #66
	bne	.L57
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #66
	bne	.L57
	ldr	r0, [fp, #-16]
	bl	move_2_dir_red
	str	r0, [fp, #-16]
.L57:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L58
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	procuraMenor
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	removerMenor
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	b	.L53
.L58:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	removeNo
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
.L53:
	ldr	r0, [fp, #-16]
	bl	balancear
	mov	r3, r0
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	removeNo, .-removeNo
	.align	2
	.global	removerMenor
	.syntax unified
	.arm
	.fpu softvfp
	.type	removerMenor, %function
removerMenor:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L60
	ldr	r0, [fp, #-8]
	bl	free
	mov	r3, #0
	b	.L61
.L60:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #66
	bne	.L62
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	cor
	mov	r3, r0
	cmp	r3, #66
	bne	.L62
	ldr	r0, [fp, #-8]
	bl	move_2_esq_red
	str	r0, [fp, #-8]
	b	.L63
.L62:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	removerMenor
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
.L63:
	ldr	r0, [fp, #-8]
	bl	balancear
	mov	r3, r0
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	removerMenor, .-removerMenor
	.align	2
	.global	procuraMenor
	.syntax unified
	.arm
	.fpu softvfp
	.type	procuraMenor, %function
procuraMenor:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	b	.L65
.L66:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L65:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	procuraMenor, .-procuraMenor
	.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	.L70
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	imprimir
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L71
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	imprimir
.L70:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L72:
	.align	2
.L71:
	.word	.LC1
	.size	imprimir, .-imprimir
	.section	.rodata
	.align	2
.LC2:
	.ascii	"clear\000"
	.align	2
.LC3:
	.ascii	"****************************ARVORE*****************"
	.ascii	"**********\000"
	.align	2
.LC4:
	.ascii	"***************************************************"
	.ascii	"**********\000"
	.align	2
.LC5:
	.ascii	"\012\012(1) PARA INSERCAO\000"
	.align	2
.LC6:
	.ascii	"\012(2) PARA BUSCA\000"
	.align	2
.LC7:
	.ascii	"\012(3) PARA EXCLUSAO\000"
	.align	2
.LC8:
	.ascii	"\012(4) PARA IMPRESSAO\000"
	.align	2
.LC9:
	.ascii	"\012(0) PARA SAIR DO SISTEMA\000"
	.align	2
.LC10:
	.ascii	"\012\012Entre com uma opcao acima: \000"
	.align	2
.LC11:
	.ascii	"*******************INSERCAO*******************\012\000"
	.align	2
.LC12:
	.ascii	"\012Entre com os valores : Quando nao quiser coloca"
	.ascii	"r mas elementos digite -1\012E para sair da fun\303"
	.ascii	"\247ao digite 4\000"
	.align	2
.LC13:
	.ascii	"pause\000"
	.align	2
.LC14:
	.ascii	"*******************CONSULTA*******************\012\000"
	.align	2
.LC15:
	.ascii	"*******************REMO\303\207AO******************"
	.ascii	"*\012\000"
	.align	2
.LC16:
	.ascii	"\012Digite elemento para removido: \000"
	.align	2
.LC17:
	.ascii	"\012Digite elemento a ser removido: \000"
	.align	2
.LC18:
	.ascii	"*******************IMPRESSAO*******************\012"
	.ascii	"\000"
	.align	2
.LC19:
	.ascii	"\012Obrigado por usar nosso sistema\000"
	.align	2
.LC20:
	.ascii	"POR FAVOR ENTRE COM UMA OPCAO VALIDA!!!\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L88
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L74:
	ldr	r0, .L88+4
	bl	system
	ldr	r0, .L88+8
	bl	printf
	ldr	r0, .L88+12
	bl	printf
	ldr	r0, .L88+16
	bl	printf
	ldr	r0, .L88+20
	bl	printf
	ldr	r0, .L88+24
	bl	printf
	ldr	r0, .L88+28
	bl	printf
	ldr	r0, .L88+32
	bl	printf
	ldr	r0, .L88+36
	bl	printf
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L88+40
	bl	__isoc99_scanf
	ldr	r3, [fp, #-20]
	cmp	r3, #4
	ldrls	pc, [pc, r3, asl #2]
	b	.L75
.L77:
	.word	.L81
	.word	.L80
	.word	.L79
	.word	.L78
	.word	.L76
.L80:
	ldr	r0, .L88+4
	bl	system
	ldr	r0, .L88+44
	bl	puts
	ldr	r0, .L88+48
	bl	puts
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L88+40
	bl	__isoc99_scanf
	b	.L82
.L83:
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	inserir
	mov	r3, r0
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, .L88+40
	bl	__isoc99_scanf
.L82:
	ldr	r3, [fp, #-24]
	cmn	r3, #1
	bne	.L83
	ldr	r0, .L88+52
	bl	system
	b	.L84
.L79:
	ldr	r0, .L88+4
	bl	system
	ldr	r0, .L88+56
	bl	puts
	ldr	r3, [fp, #-24]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	consulta
	ldr	r0, .L88+52
	bl	system
	b	.L84
.L78:
	ldr	r0, .L88+4
	bl	system
	ldr	r0, .L88+60
	bl	puts
	ldr	r0, .L88+64
	bl	puts
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L88+40
	bl	__isoc99_scanf
	ldr	r0, .L88+68
	bl	puts
	ldr	r0, .L88+52
	bl	system
	b	.L84
.L76:
	ldr	r0, .L88+4
	bl	system
	ldr	r0, .L88+72
	bl	puts
	ldr	r0, [fp, #-12]
	bl	imprimir
	ldr	r0, .L88+52
	bl	system
	b	.L84
.L81:
	ldr	r0, .L88+76
	bl	printf
	b	.L84
.L75:
	ldr	r0, .L88+80
	bl	printf
	bl	getchar
	nop
.L84:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L85
	b	.L74
.L85:
	bl	getchar
	mvn	r3, #0
	ldr	r2, .L88
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L87
	bl	__stack_chk_fail
.L87:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L89:
	.align	2
.L88:
	.word	.LC21
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC1
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
