	.file	"242330488.c"
	.intel_syntax noprefix
	.text
	.globl	parvores
	.bss
	.align 32
	.type	parvores, @object
	.size	parvores, 6144
parvores:
	.zero	6144
	.globl	arvores
	.align 32
	.type	arvores, @object
	.size	arvores, 2040
arvores:
	.zero	2040
	.globl	ListaArvores
	.section	.data.rel.local,"aw"
	.align 8
	.type	ListaArvores, @object
	.size	ListaArvores, 8
ListaArvores:
	.quad	arvores-8
	.globl	n_arvores
	.bss
	.align 4
	.type	n_arvores, @object
	.size	n_arvores, 4
n_arvores:
	.zero	4
	.globl	final_fila
	.data
	.align 4
	.type	final_fila, @object
	.size	final_fila, 4
final_fila:
	.long	1
	.globl	cTabelaASCII
	.bss
	.align 32
	.type	cTabelaASCII, @object
	.size	cTabelaASCII, 1024
cTabelaASCII:
	.zero	1024
	.globl	texto
	.align 32
	.type	texto, @object
	.size	texto, 1000
texto:
	.zero	1000
	.text
	.globl	fCriaArvore
	.type	fCriaArvore, @function
fCriaArvore:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -20[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -24[rbp], al
	mov	eax, DWORD PTR n_arvores[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR n_arvores[rip], edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, parvores[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -24[rbp]
	mov	BYTE PTR 20[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fCriaArvore, .-fCriaArvore
	.globl	fCriaEstruturaArvores
	.type	fCriaEstruturaArvores, @function
fCriaEstruturaArvores:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	eax, DWORD PTR n_arvores[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR n_arvores[rip], edx
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, parvores[rip]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 16[rax]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fCriaEstruturaArvores, .-fCriaEstruturaArvores
	.globl	fOrdenarArvores
	.type	fOrdenarArvores, @function
fOrdenarArvores:
.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	rcx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR final_fila[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR final_fila[rip], edx
	cdqe
	sal	rax, 3
	lea	rdx, [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR final_fila[rip]
	cmp	eax, 2
	jle	.L12
	mov	eax, DWORD PTR final_fila[rip]
	sub	eax, 1
	mov	DWORD PTR -16[rbp], eax
	jmp	.L7
.L11:
	mov	DWORD PTR -12[rbp], 1
	jmp	.L8
.L10:
	mov	rdx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rcx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	jle	.L9
	mov	rdx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR ListaArvores[rip]
	mov	edx, DWORD PTR -12[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	rdx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rdx], rax
.L9:
	add	DWORD PTR -12[rbp], 1
.L8:
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, DWORD PTR -16[rbp]
	jl	.L10
	sub	DWORD PTR -16[rbp], 1
.L7:
	cmp	DWORD PTR -16[rbp], 0
	jg	.L11
.L12:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	fOrdenarArvores, .-fOrdenarArvores
	.globl	fRetornaMenorFrequencia
	.type	fRetornaMenorFrequencia, @function
fRetornaMenorFrequencia:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -16[rbp], 1
	mov	rax, QWORD PTR ListaArvores[rip]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR final_fila[rip]
	cmp	eax, 1
	jg	.L14
	mov	eax, 0
	jmp	.L15
.L14:
	mov	eax, DWORD PTR final_fila[rip]
	sub	eax, 1
	mov	DWORD PTR final_fila[rip], eax
	jmp	.L16
.L18:
	mov	eax, DWORD PTR -12[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR final_fila[rip]
	cmp	edx, eax
	jge	.L17
	mov	rdx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rax, 1
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR 16[rax]
	mov	rcx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 16[rax]
	cmp	edx, eax
	jge	.L17
	add	DWORD PTR -12[rbp], 1
.L17:
	mov	rdx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR ListaArvores[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	eax, DWORD PTR -12[rbp]
	mov	DWORD PTR -16[rbp], eax
.L16:
	mov	eax, DWORD PTR -16[rbp]
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR final_fila[rip]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L18
	mov	rdx, QWORD PTR ListaArvores[rip]
	mov	eax, DWORD PTR final_fila[rip]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rcx, QWORD PTR ListaArvores[rip]
	mov	edx, DWORD PTR -16[rbp]
	movsx	rdx, edx
	sal	rdx, 3
	add	rdx, rcx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -8[rbp]
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	fRetornaMenorFrequencia, .-fRetornaMenorFrequencia
	.globl	fSubstituiCodigo
	.type	fSubstituiCodigo, @function
fSubstituiCodigo:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 20[rax]
	test	al, al
	je	.L20
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR codigo.0[rip]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 20[rax]
	movsx	edx, al
	mov	rax, QWORD PTR codigo.0[rip]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, cTabelaASCII[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rdx, QWORD PTR codigo.0[rip]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	add	rax, 1
	add	rax, rdx
	mov	QWORD PTR codigo.0[rip], rax
	jmp	.L19
.L20:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 48
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fSubstituiCodigo
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 49
	mov	eax, DWORD PTR -20[rbp]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	fSubstituiCodigo
.L19:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	fSubstituiCodigo, .-fSubstituiCodigo
	.globl	init
	.type	init, @function
init:
.LFB11:
	.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, 584
	.cfi_offset 3, -24
	mov	QWORD PTR -584[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	lea	rdx, -560[rbp]
	mov	eax, 0
	mov	ecx, 64
	mov	rdi, rdx
	rep stosq
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -584[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -584[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	movsx	rdx, eax
	mov	edx, DWORD PTR -560[rbp+rdx*4]
	add	edx, 1
	cdqe
	mov	DWORD PTR -560[rbp+rax*4], edx
.L23:
	mov	rax, QWORD PTR -584[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L24
	mov	DWORD PTR -572[rbp], 0
	jmp	.L25
.L27:
	mov	eax, DWORD PTR -572[rbp]
	cdqe
	mov	eax, DWORD PTR -560[rbp+rax*4]
	test	eax, eax
	je	.L26
	mov	eax, DWORD PTR -572[rbp]
	movsx	edx, al
	mov	eax, DWORD PTR -572[rbp]
	cdqe
	mov	eax, DWORD PTR -560[rbp+rax*4]
	mov	esi, edx
	mov	edi, eax
	call	fCriaArvore
	mov	QWORD PTR -568[rbp], rax
	mov	rax, QWORD PTR -568[rbp]
	mov	rdi, rax
	call	fOrdenarArvores
.L26:
	add	DWORD PTR -572[rbp], 1
.L25:
	cmp	DWORD PTR -572[rbp], 127
	jle	.L27
	jmp	.L28
.L29:
	mov	eax, 0
	call	fRetornaMenorFrequencia
	mov	rbx, rax
	mov	eax, 0
	call	fRetornaMenorFrequencia
	mov	rsi, rbx
	mov	rdi, rax
	call	fCriaEstruturaArvores
	mov	QWORD PTR -568[rbp], rax
	mov	rax, QWORD PTR -568[rbp]
	mov	rdi, rax
	call	fOrdenarArvores
.L28:
	mov	eax, DWORD PTR final_fila[rip]
	cmp	eax, 2
	jg	.L29
	mov	rax, QWORD PTR ListaArvores[rip]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rcx, -48[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	rdi, rax
	call	fSubstituiCodigo
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	init, .-init
	.globl	fCompressao
	.type	fCompressao, @function
fCompressao:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	jmp	.L32
.L33:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, cTabelaASCII[rip]
	mov	rdx, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -8[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, cTabelaASCII[rip]
	mov	rax, QWORD PTR [rdx+rax]
	mov	rdi, rax
	call	strlen@PLT
	add	QWORD PTR -16[rbp], rax
.L32:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L33
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	fCompressao, .-fCompressao
	.globl	fDescompressao
	.type	fDescompressao, @function
fDescompressao:
.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	rax, QWORD PTR ListaArvores[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L35
.L38:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 48
	jne	.L36
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L37
.L36:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L37:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 20[rax]
	test	al, al
	je	.L35
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 20[rax]
	movsx	eax, al
	mov	edi, eax
	call	putchar@PLT
	mov	rax, QWORD PTR ListaArvores[rip]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -8[rbp], rax
.L35:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L38
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	fDescompressao, .-fDescompressao
	.section	.rodata
.LC0:
	.string	"Joinville"
.LC1:
	.string	"Comprimido: %s\n"
.LC2:
	.string	"Descomprimido: "
	.text
	.globl	main
	.type	main, @function
main:
.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, 1056
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, .LC0[rip]
	mov	QWORD PTR -1048[rbp], rax
	mov	rax, QWORD PTR -1048[rbp]
	mov	rdi, rax
	call	init
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -1048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fCompressao
	lea	rax, -1040[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	fDescompressao
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L41
	call	__stack_chk_fail@PLT
.L41:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.data.rel.local
	.align 8
	.type	codigo.0, @object
	.size	codigo.0, 8
codigo.0:
	.quad	texto
	.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	"242330488.c"
	.text
	.comm	parvores,4096,4
	.comm	arvores,1020,4
	.global	ListaArvores
	.data
	.align	2
	.type	ListaArvores, %object
	.size	ListaArvores, 4
ListaArvores:
	.word	arvores-4
	.global	n_arvores
	.bss
	.align	2
	.type	n_arvores, %object
	.size	n_arvores, 4
n_arvores:
	.space	4
	.global	final_fila
	.data
	.align	2
	.type	final_fila, %object
	.size	final_fila, 4
final_fila:
	.word	1
	.comm	cTabelaASCII,512,4
	.comm	texto,1000,4
	.text
	.align	2
	.global	fCriaArvore
	.syntax unified
	.arm
	.fpu softvfp
	.type	fCriaArvore, %function
fCriaArvore:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r3, .L3
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L3
	str	r2, [r1]
	lsl	r3, r3, #4
	ldr	r2, .L3+4
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-17]
	strb	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L4:
	.align	2
.L3:
	.word	n_arvores
	.word	parvores
	.size	fCriaArvore, .-fCriaArvore
	.align	2
	.global	fCriaEstruturaArvores
	.syntax unified
	.arm
	.fpu softvfp
	.type	fCriaEstruturaArvores, %function
fCriaEstruturaArvores:
	@ 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, .L7
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L7
	str	r2, [r1]
	lsl	r3, r3, #4
	ldr	r2, .L7+4
	add	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #8]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L8:
	.align	2
.L7:
	.word	n_arvores
	.word	parvores
	.size	fCriaEstruturaArvores, .-fCriaEstruturaArvores
	.align	2
	.global	fOrdenarArvores
	.syntax unified
	.arm
	.fpu softvfp
	.type	fOrdenarArvores, %function
fOrdenarArvores:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #28
	str	r0, [fp, #-24]
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L17+4
	str	r1, [r0]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, .L17+4
	ldr	r3, [r3]
	cmp	r3, #2
	ble	.L16
	ldr	r3, .L17+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L11
.L15:
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L12
.L14:
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, .L17
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	ble	.L13
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L17
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L13:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L12:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L14
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
.L11:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bgt	.L15
.L16:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L18:
	.align	2
.L17:
	.word	ListaArvores
	.word	final_fila
	.size	fOrdenarArvores, .-fOrdenarArvores
	.align	2
	.global	fRetornaMenorFrequencia
	.syntax unified
	.arm
	.fpu softvfp
	.type	fRetornaMenorFrequencia, %function
fRetornaMenorFrequencia:
	@ 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
	mov	r3, #1
	str	r3, [fp, #-16]
	ldr	r3, .L25
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r3, #1
	bgt	.L20
	mov	r3, #0
	b	.L21
.L20:
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L25+4
	str	r3, [r2]
	b	.L22
.L24:
	ldr	r3, [fp, #-12]
	add	r2, r3, #1
	ldr	r3, .L25+4
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L23
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, [r3, #8]
	ldr	r3, .L25
	ldr	r1, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bge	.L23
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L23:
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L25
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-16]
.L22:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L24
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, .L25+4
	ldr	r3, [r3]
	lsl	r3, r3, #2
	add	r2, r2, r3
	ldr	r3, .L25
	ldr	r1, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r1, r3
	ldr	r2, [r2]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
.L21:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L26:
	.align	2
.L25:
	.word	ListaArvores
	.word	final_fila
	.size	fRetornaMenorFrequencia, .-fRetornaMenorFrequencia
	.align	2
	.global	fSubstituiCodigo
	.syntax unified
	.arm
	.fpu softvfp
	.type	fSubstituiCodigo, %function
fSubstituiCodigo:
	@ 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]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strcpy
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, .L30
	ldr	r3, [r3]
	ldr	r2, .L30+4
	str	r3, [r2, r1, lsl #2]
	ldr	r3, .L30
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	add	r3, r2, r3
	ldr	r2, .L30
	str	r3, [r2]
	b	.L27
.L28:
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	bl	fSubstituiCodigo
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #49
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-12]
	bl	fSubstituiCodigo
.L27:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L31:
	.align	2
.L30:
	.word	codigo.5343
	.word	cTabelaASCII
	.size	fSubstituiCodigo, .-fSubstituiCodigo
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	init
	.syntax unified
	.arm
	.fpu softvfp
	.type	init, %function
init:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #556
	str	r0, [fp, #-560]
	ldr	r3, .L41
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #544
	mov	r2, #512
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L33
.L34:
	ldr	r3, [fp, #-560]
	add	r2, r3, #1
	str	r2, [fp, #-560]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-532]
	add	r1, r3, #1
	lsl	r3, r2, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	str	r1, [r3, #-532]
.L33:
	ldr	r3, [fp, #-560]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L34
	mov	r3, #0
	str	r3, [fp, #-552]
	b	.L35
.L37:
	ldr	r3, [fp, #-552]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-532]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-552]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-532]
	ldr	r3, [fp, #-552]
	and	r3, r3, #255
	mov	r1, r3
	mov	r0, r2
	bl	fCriaArvore
	str	r0, [fp, #-548]
	ldr	r0, [fp, #-548]
	bl	fOrdenarArvores
.L36:
	ldr	r3, [fp, #-552]
	add	r3, r3, #1
	str	r3, [fp, #-552]
.L35:
	ldr	r3, [fp, #-552]
	cmp	r3, #127
	ble	.L37
	b	.L38
.L39:
	bl	fRetornaMenorFrequencia
	mov	r4, r0
	bl	fRetornaMenorFrequencia
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	fCriaEstruturaArvores
	str	r0, [fp, #-548]
	ldr	r0, [fp, #-548]
	bl	fOrdenarArvores
.L38:
	ldr	r3, .L41+4
	ldr	r3, [r3]
	cmp	r3, #2
	bgt	.L39
	ldr	r3, .L41+8
	ldr	r3, [r3]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #0
	mov	r0, r3
	bl	fSubstituiCodigo
	nop
	ldr	r3, .L41
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC0
	.word	final_fila
	.word	ListaArvores
	.size	init, .-init
	.align	2
	.global	fCompressao
	.syntax unified
	.arm
	.fpu softvfp
	.type	fCompressao, %function
fCompressao:
	@ 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]
	b	.L44
.L45:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L46
	ldr	r3, [r3, r2, lsl #2]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	strcpy
	ldr	r3, [fp, #-8]
	add	r2, r3, #1
	str	r2, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, .L46
	ldr	r3, [r3, r2, lsl #2]
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-12]
	add	r3, r3, r2
	str	r3, [fp, #-12]
.L44:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L45
	nop
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	cTabelaASCII
	.size	fCompressao, .-fCompressao
	.align	2
	.global	fDescompressao
	.syntax unified
	.arm
	.fpu softvfp
	.type	fDescompressao, %function
fDescompressao:
	@ 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, .L53
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
	b	.L49
.L52:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #48
	bne	.L50
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L51
.L50:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L51:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r0, r3
	bl	putchar
	ldr	r3, .L53
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-8]
.L49:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L52
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	ListaArvores
	.size	fDescompressao, .-fDescompressao
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Joinville\000"
	.align	2
.LC2:
	.ascii	"Comprimido: %s\012\000"
	.align	2
.LC3:
	.ascii	"Descomprimido: \000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 1032
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1024
	sub	sp, sp, #8
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L58+4
	str	r3, [fp, #-1036]
	ldr	r0, [fp, #-1036]
	bl	init
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-1036]
	bl	fCompressao
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L58+8
	bl	printf
	ldr	r0, .L58+12
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r0, r3
	bl	fDescompressao
	mov	r3, #0
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC4
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	main, .-main
	.data
	.align	2
	.type	codigo.5343, %object
	.size	codigo.5343, 4
codigo.5343:
	.word	texto
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
