	.file	"738843.c"
	.intel_syntax noprefix
	.text
	.globl	strdup
	.type	strdup, @function
strdup:
.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	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
.L2:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	strdup, .-strdup
	.globl	novoNoLista
	.type	novoNoLista, @function
novoNoLista:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 16
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L5
	mov	eax, 0
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	novoNoLista, .-novoNoLista
	.globl	novoNoArvore
	.type	novoNoArvore, @function
novoNoArvore:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	eax, edi
	mov	DWORD PTR -24[rbp], esi
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -40[rbp], rcx
	mov	BYTE PTR -20[rbp], al
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, BYTE PTR -20[rbp]
	mov	BYTE PTR 4[rax], dl
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	novoNoArvore, .-novoNoArvore
	.globl	insereLista
	.type	insereLista, @function
insereLista:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L11
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jge	.L13
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
.L14:
	cmp	QWORD PTR -16[rbp], 0
	je	.L15
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jle	.L16
.L15:
	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	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
.L12:
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR 8[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	insereLista, .-insereLista
	.globl	desenfleira
	.type	desenfleira, @function
desenfleira:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	desenfleira, .-desenfleira
	.globl	pegaByteFreq
	.type	pegaByteFreq, @function
pegaByteFreq:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L20
.L21:
	movzx	eax, BYTE PTR -9[rbp]
	movzx	eax, al
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	edx, DWORD PTR [rax]
	add	edx, 1
	mov	DWORD PTR [rax], edx
.L20:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, -9[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L21
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	rewind@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	pegaByteFreq, .-pegaByteFreq
	.globl	pegaCodigo
	.type	pegaCodigo, @function
pegaCodigo:
.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 -24[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -40[rbp], rdx
	mov	DWORD PTR -32[rbp], ecx
	mov	BYTE PTR -28[rbp], al
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L24
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 4[rax]
	cmp	BYTE PTR -28[rbp], al
	jne	.L24
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, 1
	jmp	.L25
.L24:
	mov	BYTE PTR -1[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L26
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 48
	mov	eax, DWORD PTR -32[rbp]
	lea	ecx, 1[rax]
	movzx	esi, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pegaCodigo
	mov	BYTE PTR -1[rbp], al
.L26:
	movzx	eax, BYTE PTR -1[rbp]
	xor	eax, 1
	test	al, al
	je	.L27
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L27
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 49
	mov	eax, DWORD PTR -32[rbp]
	lea	ecx, 1[rax]
	movzx	esi, BYTE PTR -28[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	pegaCodigo
	mov	BYTE PTR -1[rbp], al
.L27:
	movzx	eax, BYTE PTR -1[rbp]
	xor	eax, 1
	test	al, al
	je	.L28
	mov	eax, DWORD PTR -32[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L28:
	movzx	eax, BYTE PTR -1[rbp]
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	pegaCodigo, .-pegaCodigo
	.globl	montaArvHuffman
	.type	montaArvHuffman, @function
montaArvHuffman:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -60[rbp], 0
	jmp	.L30
.L32:
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L31
	mov	eax, DWORD PTR -60[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	eax, DWORD PTR -60[rbp]
	movzx	eax, al
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	novoNoArvore
	mov	rdi, rax
	call	novoNoLista
	mov	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	insereLista
.L31:
	add	DWORD PTR -60[rbp], 1
.L30:
	cmp	DWORD PTR -60[rbp], 255
	jle	.L32
	jmp	.L33
.L34:
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	desenfleira
	mov	QWORD PTR -56[rbp], rax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	desenfleira
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	lea	esi, [rdx+rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	edi, 36
	call	novoNoArvore
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	novoNoLista
	mov	rdx, rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	rdi, rdx
	call	insereLista
.L33:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, 1
	jg	.L34
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	desenfleira
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L36
	call	__stack_chk_fail@PLT
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	montaArvHuffman, .-montaArvHuffman
	.globl	LiberaArvHuffman
	.type	LiberaArvHuffman, @function
LiberaArvHuffman:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	cmp	QWORD PTR -24[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	LiberaArvHuffman
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	LiberaArvHuffman
	jmp	.L37
.L40:
	nop
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	LiberaArvHuffman, .-LiberaArvHuffman
	.globl	geraBit
	.type	geraBit, @function
geraBit:
.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	eax, DWORD PTR -12[rbp]
	and	eax, 7
	test	eax, eax
	jne	.L42
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
.L42:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -12[rbp]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 29
	add	eax, ecx
	and	eax, 7
	sub	eax, ecx
	mov	ecx, eax
	sar	edx, cl
	mov	eax, edx
	and	eax, 1
	test	eax, eax
	setne	al
	movzx	eax, al
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	geraBit, .-geraBit
	.section	.rodata
.LC0:
	.string	"Arquivo nao encontrado"
	.text
	.globl	erroArquivo
	.type	erroArquivo, @function
erroArquivo:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE16:
	.size	erroArquivo, .-erroArquivo
	.section	.rodata
.LC1:
	.string	"rb"
.LC2:
	.string	"wb"
	.align 8
.LC4:
	.string	"Arquivo de entrada: %s (%g bytes)\nArquivo de saida: %s (%g bytes)\n"
.LC6:
	.string	"Taxa de compressao: %d%%\n"
	.text
	.globl	CompressFile
	.type	CompressFile, @function
CompressFile:
.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, 2144
	mov	QWORD PTR -2136[rbp], rdi
	mov	QWORD PTR -2144[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -2064[rbp]
	mov	eax, 0
	mov	ecx, 128
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -2136[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2104[rbp], rax
	cmp	QWORD PTR -2104[rbp], 0
	jne	.L46
	mov	eax, 0
	call	erroArquivo
.L46:
	mov	rax, QWORD PTR -2144[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -2096[rbp], rax
	cmp	QWORD PTR -2096[rbp], 0
	jne	.L47
	mov	eax, 0
	call	erroArquivo
.L47:
	lea	rdx, -2064[rbp]
	mov	rax, QWORD PTR -2104[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pegaByteFreq
	lea	rax, -2064[rbp]
	mov	rdi, rax
	call	montaArvHuffman
	mov	QWORD PTR -2088[rbp], rax
	mov	rdx, QWORD PTR -2096[rbp]
	lea	rax, -2064[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 256
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -2096[rbp]
	mov	edx, 1
	mov	esi, 4
	mov	rdi, rax
	call	fseek@PLT
	mov	DWORD PTR -2116[rbp], 0
	mov	BYTE PTR -2117[rbp], 0
	jmp	.L48
.L53:
	mov	QWORD PTR -1040[rbp], 0
	mov	QWORD PTR -1032[rbp], 0
	lea	rdx, -1024[rbp]
	mov	eax, 0
	mov	ecx, 126
	mov	rdi, rdx
	rep stosq
	movzx	eax, BYTE PTR -2118[rbp]
	movzx	esi, al
	lea	rdx, -1040[rbp]
	mov	rax, QWORD PTR -2088[rbp]
	mov	ecx, 0
	mov	rdi, rax
	call	pegaCodigo
	lea	rax, -1040[rbp]
	mov	QWORD PTR -2112[rbp], rax
	jmp	.L49
.L52:
	mov	rax, QWORD PTR -2112[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	jne	.L50
	mov	eax, DWORD PTR -2116[rbp]
	and	eax, 7
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	mov	edx, eax
	movzx	eax, BYTE PTR -2117[rbp]
	or	eax, edx
	mov	BYTE PTR -2117[rbp], al
.L50:
	mov	eax, DWORD PTR -2116[rbp]
	add	eax, 1
	mov	DWORD PTR -2116[rbp], eax
	mov	eax, DWORD PTR -2116[rbp]
	and	eax, 7
	test	eax, eax
	jne	.L51
	mov	rdx, QWORD PTR -2096[rbp]
	lea	rax, -2117[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	BYTE PTR -2117[rbp], 0
.L51:
	add	QWORD PTR -2112[rbp], 1
.L49:
	mov	rax, QWORD PTR -2112[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L52
.L48:
	mov	rdx, QWORD PTR -2104[rbp]
	lea	rax, -2118[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	test	rax, rax
	jne	.L53
	mov	rdx, QWORD PTR -2096[rbp]
	lea	rax, -2117[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -2096[rbp]
	mov	edx, 0
	mov	esi, 1024
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -2096[rbp]
	lea	rax, -2116[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rax, QWORD PTR -2104[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -2104[rbp]
	mov	rdi, rax
	call	ftell@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -2080[rbp], xmm0
	mov	rax, QWORD PTR -2096[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -2096[rbp]
	mov	rdi, rax
	call	ftell@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -2072[rbp], xmm0
	mov	rax, QWORD PTR -2088[rbp]
	mov	rdi, rax
	call	LiberaArvHuffman
	movsd	xmm0, QWORD PTR -2072[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	movsd	xmm0, QWORD PTR -2080[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	rdx, QWORD PTR -2144[rbp]
	mov	rax, QWORD PTR -2136[rbp]
	movapd	xmm1, xmm2
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 2
	call	printf@PLT
	movsd	xmm1, QWORD PTR -2072[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -2080[rbp]
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2104[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -2096[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L54
	call	__stack_chk_fail@PLT
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	CompressFile, .-CompressFile
	.section	.rodata
.LC7:
	.string	"Taxa de descompressao: %d%%\n"
	.text
	.globl	DecompressFile
	.type	DecompressFile, @function
DecompressFile:
.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, 1120
	mov	QWORD PTR -1112[rbp], rdi
	mov	QWORD PTR -1120[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -1040[rbp]
	mov	eax, 0
	mov	ecx, 128
	mov	rdi, rdx
	rep stosq
	mov	rax, QWORD PTR -1112[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1080[rbp], rax
	cmp	QWORD PTR -1080[rbp], 0
	jne	.L56
	mov	eax, 0
	call	erroArquivo
.L56:
	mov	rax, QWORD PTR -1120[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -1072[rbp], rax
	cmp	QWORD PTR -1072[rbp], 0
	jne	.L57
	mov	eax, 0
	call	erroArquivo
.L57:
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1040[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 256
	mov	rdi, rax
	call	fread@PLT
	lea	rax, -1040[rbp]
	mov	rdi, rax
	call	montaArvHuffman
	mov	QWORD PTR -1064[rbp], rax
	mov	rdx, QWORD PTR -1080[rbp]
	lea	rax, -1096[rbp]
	mov	rcx, rdx
	mov	edx, 4
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	DWORD PTR -1092[rbp], 0
	mov	BYTE PTR -1097[rbp], 0
	jmp	.L58
.L63:
	mov	rax, QWORD PTR -1064[rbp]
	mov	QWORD PTR -1088[rbp], rax
	jmp	.L59
.L62:
	mov	eax, DWORD PTR -1092[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1092[rbp], edx
	mov	ecx, eax
	lea	rdx, -1097[rbp]
	mov	rax, QWORD PTR -1080[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	geraBit
	test	eax, eax
	je	.L60
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 16[rax]
	jmp	.L61
.L60:
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 8[rax]
.L61:
	mov	QWORD PTR -1088[rbp], rax
.L59:
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L62
	mov	rax, QWORD PTR -1088[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L62
	mov	rax, QWORD PTR -1088[rbp]
	lea	rdi, 4[rax]
	mov	rax, QWORD PTR -1072[rbp]
	mov	rcx, rax
	mov	edx, 1
	mov	esi, 1
	call	fwrite@PLT
.L58:
	mov	eax, DWORD PTR -1096[rbp]
	cmp	DWORD PTR -1092[rbp], eax
	jb	.L63
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	LiberaArvHuffman
	mov	rax, QWORD PTR -1080[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	ftell@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -1056[rbp], xmm0
	mov	rax, QWORD PTR -1072[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	ftell@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	QWORD PTR -1048[rbp], xmm0
	movsd	xmm0, QWORD PTR -1048[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	movapd	xmm2, xmm0
	divsd	xmm2, xmm1
	movsd	xmm0, QWORD PTR -1056[rbp]
	movsd	xmm1, QWORD PTR .LC3[rip]
	divsd	xmm0, xmm1
	movq	rcx, xmm0
	mov	rdx, QWORD PTR -1120[rbp]
	mov	rax, QWORD PTR -1112[rbp]
	movapd	xmm1, xmm2
	movq	xmm0, rcx
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 2
	call	printf@PLT
	movsd	xmm1, QWORD PTR -1048[rbp]
	movsd	xmm0, QWORD PTR .LC5[rip]
	mulsd	xmm0, xmm1
	divsd	xmm0, QWORD PTR -1056[rbp]
	cvttsd2si	eax, xmm0
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -1072[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -1080[rbp]
	mov	rdi, rax
	call	fclose@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	DecompressFile, .-DecompressFile
	.section	.rodata
	.align 8
.LC8:
	.string	"Uso: huffman [OPCAO] [ARQUIVO] [ARQUIVO]\n"
.LC9:
	.string	"Opcoes:"
.LC10:
	.string	"\t-c\tComprime"
.LC11:
	.string	"\t-x\tDescomprime"
	.align 8
.LC12:
	.string	"\nExemplo: ./huffman -c comprima.isso nisso.hx"
.LC13:
	.string	"-c"
.LC14:
	.string	".hx"
	.align 8
.LC15:
	.string	"O arquivo resultante da compressao deve ter a extensao '.hx'."
	.align 8
.LC16:
	.string	"Exemplo: \n\t./huffman -c comprima.isso nisso.hx"
.LC17:
	.string	"-x"
	.align 8
.LC18:
	.string	"O arquivo a ser descomprimido deve ter a extensao '.hx'."
	.align 8
.LC19:
	.string	"Exemplo: \n\t./huffman -x descomprime.hx nisso.extensao"
	.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 3
	jg	.L66
	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]
	call	puts@PLT
	mov	eax, 0
	jmp	.L67
.L66:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC13[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L68
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L69
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	CompressFile
	jmp	.L70
.L69:
	lea	rdi, .LC15[rip]
	call	puts@PLT
	lea	rdi, .LC16[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L67
.L68:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L71
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L72
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 24
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	DecompressFile
	jmp	.L70
.L72:
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	eax, 0
	jmp	.L67
.L71:
	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]
	call	puts@PLT
	mov	eax, 0
	jmp	.L67
.L70:
	mov	eax, 0
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC3:
	.long	0
	.long	1083129856
	.align 8
.LC5:
	.long	0
	.long	1079574528
	.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	"738843.c"
	.text
	.align	2
	.global	strdup
	.syntax unified
	.arm
	.fpu softvfp
	.type	strdup, %function
strdup:
	@ 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	r0, [fp, #-16]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	strcpy
.L2:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	strdup, .-strdup
	.align	2
	.global	novoNoLista
	.syntax unified
	.arm
	.fpu softvfp
	.type	novoNoLista, %function
novoNoLista:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #8
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L5
	mov	r3, #0
	b	.L6
.L5:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	novoNoLista, .-novoNoLista
	.align	2
	.global	novoNoArvore
	.syntax unified
	.arm
	.fpu softvfp
	.type	novoNoArvore, %function
novoNoArvore:
	@ 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	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, r0
	strb	r3, [fp, #-13]
	mov	r0, #16
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	mov	r3, #0
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	ldrb	r2, [fp, #-13]
	strb	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-28]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	novoNoArvore, .-novoNoArvore
	.align	2
	.global	insereLista
	.syntax unified
	.arm
	.fpu softvfp
	.type	insereLista, %function
insereLista:
	@ 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, #-20]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	b	.L12
.L11:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	b	.L12
.L13:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L14
.L16:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L15
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L16
.L15:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
.L12:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	insereLista, .-insereLista
	.align	2
	.global	desenfleira
	.syntax unified
	.arm
	.fpu softvfp
	.type	desenfleira, %function
desenfleira:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	ldr	r0, [fp, #-12]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r2, r3, #1
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	desenfleira, .-desenfleira
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pegaByteFreq
	.syntax unified
	.arm
	.fpu softvfp
	.type	pegaByteFreq, %function
pegaByteFreq:
	@ 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, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L20
.L21:
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	r2, [r3]
	add	r2, r2, #1
	str	r2, [r3]
.L20:
	sub	r0, fp, #9
	ldr	r3, [fp, #-16]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L21
	ldr	r0, [fp, #-16]
	bl	rewind
	nop
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC0
	.size	pegaByteFreq, .-pegaByteFreq
	.align	2
	.global	pegaCodigo
	.syntax unified
	.arm
	.fpu softvfp
	.type	pegaCodigo, %function
pegaCodigo:
	@ 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	r2, [fp, #-24]
	str	r3, [fp, #-28]
	mov	r3, r1
	strb	r3, [fp, #-17]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L26
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L26
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #1
	b	.L27
.L26:
	mov	r3, #0
	strb	r3, [fp, #-5]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r1, [fp, #-17]	@ zero_extendqisi2
	ldr	r2, [fp, #-24]
	bl	pegaCodigo
	mov	r3, r0
	strb	r3, [fp, #-5]
.L28:
	ldrb	r3, [fp, #-5]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L29
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #49
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	ldrb	r1, [fp, #-17]	@ zero_extendqisi2
	ldr	r2, [fp, #-24]
	bl	pegaCodigo
	mov	r3, r0
	strb	r3, [fp, #-5]
.L29:
	ldrb	r3, [fp, #-5]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L30
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L30:
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	pegaCodigo, .-pegaCodigo
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	montaArvHuffman
	.syntax unified
	.arm
	.fpu softvfp
	.type	montaArvHuffman, %function
montaArvHuffman:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L32
.L34:
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L33
	ldr	r3, [fp, #-32]
	and	r0, r3, #255
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-40]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r1, r3
	mov	r3, #0
	mov	r2, #0
	bl	novoNoArvore
	mov	r3, r0
	mov	r0, r3
	bl	novoNoLista
	mov	r2, r0
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, r2
	bl	insereLista
.L33:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L32:
	ldr	r3, [fp, #-32]
	cmp	r3, #255
	ble	.L34
	b	.L35
.L36:
	sub	r3, fp, #16
	mov	r0, r3
	bl	desenfleira
	str	r0, [fp, #-28]
	sub	r3, fp, #16
	mov	r0, r3
	bl	desenfleira
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-28]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r1, r2, r3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	mov	r0, #36
	bl	novoNoArvore
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	novoNoLista
	mov	r2, r0
	sub	r3, fp, #16
	mov	r1, r3
	mov	r0, r2
	bl	insereLista
.L35:
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	bgt	.L36
	sub	r3, fp, #16
	mov	r0, r3
	bl	desenfleira
	mov	r3, r0
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC1
	.size	montaArvHuffman, .-montaArvHuffman
	.align	2
	.global	LiberaArvHuffman
	.syntax unified
	.arm
	.fpu softvfp
	.type	LiberaArvHuffman, %function
LiberaArvHuffman:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	free
	ldr	r0, [fp, #-12]
	bl	LiberaArvHuffman
	ldr	r0, [fp, #-8]
	bl	LiberaArvHuffman
	b	.L41
.L44:
	nop
.L41:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	LiberaArvHuffman, .-LiberaArvHuffman
	.align	2
	.global	geraBit
	.syntax unified
	.arm
	.fpu softvfp
	.type	geraBit, %function
geraBit:
	@ 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, #-12]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-8]
	mov	r2, #1
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	fread
.L46:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-12]
	rsbs	r2, r3, #0
	and	r3, r3, #7
	and	r2, r2, #7
	rsbpl	r3, r2, #0
	asr	r3, r1, r3
	and	r3, r3, #1
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	geraBit, .-geraBit
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Arquivo nao encontrado\000"
	.text
	.align	2
	.global	erroArquivo
	.syntax unified
	.arm
	.fpu softvfp
	.type	erroArquivo, %function
erroArquivo:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L49
	bl	puts
	mov	r0, #0
	bl	exit
.L50:
	.align	2
.L49:
	.word	.LC2
	.size	erroArquivo, .-erroArquivo
	.section	.rodata
	.align	2
.LC3:
	.ascii	"rb\000"
	.align	2
.LC4:
	.ascii	"wb\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC5:
	.ascii	"Arquivo de entrada: %s (%g bytes)\012Arquivo de sai"
	.ascii	"da: %s (%g bytes)\012\000"
	.global	__aeabi_dmul
	.global	__aeabi_d2iz
	.align	2
.LC6:
	.ascii	"Taxa de compressao: %d%%\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	CompressFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	CompressFile, %function
CompressFile:
	@ args = 0, pretend = 0, frame = 2104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #2112
	sub	sp, sp, #8
	str	r0, [fp, #-2112]
	str	r1, [fp, #-2116]
	ldr	r3, .L61
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L61+4
	ldr	r0, [fp, #-2112]
	bl	fopen
	str	r0, [fp, #-2096]
	ldr	r3, [fp, #-2096]
	cmp	r3, #0
	bne	.L52
	bl	erroArquivo
.L52:
	ldr	r1, .L61+8
	ldr	r0, [fp, #-2116]
	bl	fopen
	str	r0, [fp, #-2092]
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	bne	.L53
	bl	erroArquivo
.L53:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2096]
	bl	pegaByteFreq
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	montaArvHuffman
	str	r0, [fp, #-2088]
	sub	r0, fp, #2048
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-2092]
	mov	r2, #4
	mov	r1, #256
	bl	fwrite
	mov	r2, #1
	mov	r1, #4
	ldr	r0, [fp, #-2092]
	bl	fseek
	mov	r3, #0
	str	r3, [fp, #-2104]
	mov	r3, #0
	strb	r3, [fp, #-2105]
	b	.L54
.L59:
	mov	r3, #0
	str	r3, [fp, #-1040]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	mov	r2, #1020
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldrb	r1, [fp, #-2106]	@ zero_extendqisi2
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #4
	mov	r3, #0
	ldr	r0, [fp, #-2088]
	bl	pegaCodigo
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-2100]
	b	.L55
.L58:
	ldr	r3, [fp, #-2100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L56
	ldr	r3, [fp, #-2104]
	and	r3, r3, #7
	mov	r2, #1
	lsl	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldrb	r3, [fp, #-2105]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [fp, #-2105]
.L56:
	ldr	r3, [fp, #-2104]
	add	r3, r3, #1
	str	r3, [fp, #-2104]
	ldr	r3, [fp, #-2104]
	and	r3, r3, #7
	cmp	r3, #0
	bne	.L57
	sub	r0, fp, #2080
	sub	r0, r0, #12
	sub	r0, r0, #13
	ldr	r3, [fp, #-2092]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	mov	r3, #0
	strb	r3, [fp, #-2105]
.L57:
	ldr	r3, [fp, #-2100]
	add	r3, r3, #1
	str	r3, [fp, #-2100]
.L55:
	ldr	r3, [fp, #-2100]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L58
.L54:
	sub	r0, fp, #2080
	sub	r0, r0, #12
	sub	r0, r0, #14
	ldr	r3, [fp, #-2096]
	mov	r2, #1
	mov	r1, #1
	bl	fread
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
	sub	r0, fp, #2080
	sub	r0, r0, #12
	sub	r0, r0, #13
	ldr	r3, [fp, #-2092]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
	mov	r2, #0
	mov	r1, #1024
	ldr	r0, [fp, #-2092]
	bl	fseek
	sub	r0, fp, #2080
	sub	r0, r0, #12
	sub	r0, r0, #12
	ldr	r3, [fp, #-2092]
	mov	r2, #4
	mov	r1, #1
	bl	fwrite
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-2096]
	bl	fseek
	ldr	r0, [fp, #-2096]
	bl	ftell
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-2084]
	str	r3, [fp, #-2080]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-2092]
	bl	fseek
	ldr	r0, [fp, #-2092]
	bl	ftell
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-2076]
	str	r3, [fp, #-2072]
	ldr	r0, [fp, #-2088]
	bl	LiberaArvHuffman
	mov	r2, #0
	ldr	r3, .L61+12
	ldr	r0, [fp, #-2084]
	ldr	r1, [fp, #-2080]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	mov	r2, #0
	ldr	r3, .L61+12
	ldr	r0, [fp, #-2076]
	ldr	r1, [fp, #-2072]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-2116]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r1, [fp, #-2112]
	ldr	r0, .L61+16
	bl	printf
	mov	r2, #0
	ldr	r3, .L61+20
	ldr	r0, [fp, #-2076]
	ldr	r1, [fp, #-2072]
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2080]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L61+24
	bl	printf
	ldr	r0, [fp, #-2096]
	bl	fclose
	ldr	r0, [fp, #-2092]
	bl	fclose
	nop
	ldr	r3, .L61
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L60
	bl	__stack_chk_fail
.L60:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L62:
	.align	2
.L61:
	.word	.LC7
	.word	.LC3
	.word	.LC4
	.word	1083129856
	.word	.LC5
	.word	1079574528
	.word	.LC6
	.size	CompressFile, .-CompressFile
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Taxa de descompressao: %d%%\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	DecompressFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	DecompressFile, %function
DecompressFile:
	@ args = 0, pretend = 0, frame = 1088
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #1104
	str	r0, [fp, #-1096]
	str	r1, [fp, #-1100]
	ldr	r3, .L73
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r1, .L73+4
	ldr	r0, [fp, #-1096]
	bl	fopen
	str	r0, [fp, #-1072]
	ldr	r3, [fp, #-1072]
	cmp	r3, #0
	bne	.L64
	bl	erroArquivo
.L64:
	ldr	r1, .L73+8
	ldr	r0, [fp, #-1100]
	bl	fopen
	str	r0, [fp, #-1068]
	ldr	r3, [fp, #-1068]
	cmp	r3, #0
	bne	.L65
	bl	erroArquivo
.L65:
	sub	r0, fp, #1024
	sub	r0, r0, #12
	sub	r0, r0, #4
	ldr	r3, [fp, #-1072]
	mov	r2, #4
	mov	r1, #256
	bl	fread
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	montaArvHuffman
	str	r0, [fp, #-1064]
	sub	r0, fp, #1072
	sub	r0, r0, #12
	ldr	r3, [fp, #-1072]
	mov	r2, #4
	mov	r1, #1
	bl	fread
	mov	r3, #0
	str	r3, [fp, #-1080]
	mov	r3, #0
	strb	r3, [fp, #-1085]
	b	.L66
.L71:
	ldr	r3, [fp, #-1064]
	str	r3, [fp, #-1076]
	b	.L67
.L70:
	ldr	r3, [fp, #-1080]
	add	r2, r3, #1
	str	r2, [fp, #-1080]
	mov	r1, r3
	sub	r3, fp, #1072
	sub	r3, r3, #12
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r0, [fp, #-1072]
	bl	geraBit
	mov	r3, r0
	cmp	r3, #0
	beq	.L68
	ldr	r3, [fp, #-1076]
	ldr	r3, [r3, #12]
	b	.L69
.L68:
	ldr	r3, [fp, #-1076]
	ldr	r3, [r3, #8]
.L69:
	str	r3, [fp, #-1076]
.L67:
	ldr	r3, [fp, #-1076]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-1076]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L70
	ldr	r3, [fp, #-1076]
	add	r0, r3, #4
	ldr	r3, [fp, #-1068]
	mov	r2, #1
	mov	r1, #1
	bl	fwrite
.L66:
	ldr	r3, [fp, #-1084]
	ldr	r2, [fp, #-1080]
	cmp	r2, r3
	bcc	.L71
	ldr	r0, [fp, #-1064]
	bl	LiberaArvHuffman
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-1072]
	bl	fseek
	ldr	r0, [fp, #-1072]
	bl	ftell
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1060]
	str	r3, [fp, #-1056]
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-1068]
	bl	fseek
	ldr	r0, [fp, #-1068]
	bl	ftell
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-1052]
	str	r3, [fp, #-1048]
	mov	r2, #0
	ldr	r3, .L73+12
	ldr	r0, [fp, #-1060]
	ldr	r1, [fp, #-1056]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	mov	r2, #0
	ldr	r3, .L73+12
	ldr	r0, [fp, #-1052]
	ldr	r1, [fp, #-1048]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-1100]
	str	r3, [sp]
	mov	r2, r4
	mov	r3, r5
	ldr	r1, [fp, #-1096]
	ldr	r0, .L73+16
	bl	printf
	mov	r2, #0
	ldr	r3, .L73+20
	ldr	r0, [fp, #-1052]
	ldr	r1, [fp, #-1048]
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r2, [fp, #-1060]
	ldr	r3, [fp, #-1056]
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2iz
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L73+24
	bl	printf
	ldr	r0, [fp, #-1068]
	bl	fclose
	ldr	r0, [fp, #-1072]
	bl	fclose
	nop
	ldr	r3, .L73
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L72
	bl	__stack_chk_fail
.L72:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L74:
	.align	2
.L73:
	.word	.LC9
	.word	.LC3
	.word	.LC4
	.word	1083129856
	.word	.LC5
	.word	1079574528
	.word	.LC8
	.size	DecompressFile, .-DecompressFile
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Uso: huffman [OPCAO] [ARQUIVO] [ARQUIVO]\012\000"
	.align	2
.LC11:
	.ascii	"Opcoes:\000"
	.align	2
.LC12:
	.ascii	"\011-c\011Comprime\000"
	.align	2
.LC13:
	.ascii	"\011-x\011Descomprime\000"
	.align	2
.LC14:
	.ascii	"\012Exemplo: ./huffman -c comprima.isso nisso.hx\000"
	.align	2
.LC15:
	.ascii	"-c\000"
	.align	2
.LC16:
	.ascii	".hx\000"
	.align	2
.LC17:
	.ascii	"O arquivo resultante da compressao deve ter a exten"
	.ascii	"sao '.hx'.\000"
	.align	2
.LC18:
	.ascii	"Exemplo: \012\011./huffman -c comprima.isso nisso.h"
	.ascii	"x\000"
	.align	2
.LC19:
	.ascii	"-x\000"
	.align	2
.LC20:
	.ascii	"O arquivo a ser descomprimido deve ter a extensao '"
	.ascii	".hx'.\000"
	.align	2
.LC21:
	.ascii	"Exemplo: \012\011./huffman -x descomprime.hx nisso."
	.ascii	"extensao\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #3
	bgt	.L76
	ldr	r0, .L83
	bl	puts
	ldr	r0, .L83+4
	bl	puts
	ldr	r0, .L83+8
	bl	puts
	ldr	r0, .L83+12
	bl	puts
	ldr	r0, .L83+16
	bl	puts
	mov	r3, #0
	b	.L77
.L76:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L83+20
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L78
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r3, [r3]
	ldr	r1, .L83+24
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L79
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	CompressFile
	b	.L80
.L79:
	ldr	r0, .L83+28
	bl	puts
	ldr	r0, .L83+32
	bl	puts
	mov	r3, #0
	b	.L77
.L78:
	ldr	r3, [fp, #-12]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L83+36
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r3, [r3]
	ldr	r1, .L83+24
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-12]
	add	r3, r3, #8
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	DecompressFile
	b	.L80
.L82:
	ldr	r0, .L83+40
	bl	puts
	ldr	r0, .L83+44
	bl	puts
	mov	r3, #0
	b	.L77
.L81:
	ldr	r0, .L83
	bl	puts
	ldr	r0, .L83+4
	bl	puts
	ldr	r0, .L83+8
	bl	puts
	ldr	r0, .L83+12
	bl	puts
	ldr	r0, .L83+16
	bl	puts
	mov	r3, #0
	b	.L77
.L80:
	mov	r3, #0
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L84:
	.align	2
.L83:
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
