	.file	"154883.c"
	.intel_syntax noprefix
	.text
	.globl	main
	.type	main, @function
main:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	lea	rdx, -24[rbp]
	lea	rsi, -32[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, 256
	mov	rdi, rax
	call	frequencia
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	imprime_lista
	lea	rdx, -24[rbp]
	lea	rax, -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	huffman
	mov	QWORD PTR -32[rbp], rax
	lea	rax, -32[rbp]
	mov	rdi, rax
	call	imprime_lista
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	gera_codigos
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L3
	call	__stack_chk_fail@PLT
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC0:
	.string	"r"
.LC1:
	.string	"texto.txt"
.LC2:
	.string	"LISTA DE CARACTERES"
.LC3:
	.string	"%d - %d, %c\n"
	.text
	.globl	frequencia
	.type	frequencia, @function
frequencia:
.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, 1088
	mov	QWORD PTR -1064[rbp], rdi
	mov	QWORD PTR -1072[rbp], rsi
	mov	QWORD PTR -1080[rbp], rdx
	mov	DWORD PTR -1084[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -1044[rbp], 0
	mov	DWORD PTR -1040[rbp], 0
	mov	DWORD PTR -1036[rbp], 0
	mov	QWORD PTR -1008[rbp], 0
	mov	QWORD PTR -1000[rbp], 0
	lea	rdx, -992[rbp]
	mov	eax, 0
	mov	ecx, 123
	mov	rdi, rdx
	rep stosq
	mov	eax, DWORD PTR -1084[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -1024[rbp], rax
	mov	DWORD PTR -1032[rbp], 0
	mov	QWORD PTR -1016[rbp], 0
	mov	eax, DWORD PTR -1084[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1024[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	call	fopen@PLT
	mov	QWORD PTR -1064[rbp], rax
	mov	rdx, QWORD PTR -1064[rbp]
	lea	rax, -1008[rbp]
	mov	esi, 1000
	mov	rdi, rax
	call	fgets@PLT
	mov	rax, QWORD PTR -1064[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, DWORD PTR -1040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1040[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -1024[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	mov	BYTE PTR [rdx], al
	mov	DWORD PTR -1044[rbp], 1
	jmp	.L5
.L10:
	mov	DWORD PTR -1036[rbp], 0
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L6
.L8:
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	movzx	edx, BYTE PTR -1008[rbp+rax]
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	cmp	dl, al
	jne	.L7
	mov	DWORD PTR -1036[rbp], 1
.L7:
	add	DWORD PTR -1048[rbp], 1
.L6:
	mov	eax, DWORD PTR -1048[rbp]
	cmp	eax, DWORD PTR -1044[rbp]
	jl	.L8
	cmp	DWORD PTR -1036[rbp], 1
	je	.L9
	mov	eax, DWORD PTR -1040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -1040[rbp], edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -1024[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	mov	BYTE PTR [rdx], al
.L9:
	add	DWORD PTR -1044[rbp], 1
.L5:
	mov	eax, DWORD PTR -1044[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	test	al, al
	jne	.L10
	mov	eax, DWORD PTR -1040[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1024[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	edi, 10
	call	putchar@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 10
	call	putchar@PLT
	mov	DWORD PTR -1028[rbp], 0
	mov	DWORD PTR -1044[rbp], 0
	jmp	.L11
.L15:
	mov	DWORD PTR -1048[rbp], 0
	jmp	.L12
.L14:
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1024[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	cmp	dl, al
	jne	.L13
	add	DWORD PTR -1032[rbp], 1
.L13:
	add	DWORD PTR -1048[rbp], 1
.L12:
	mov	eax, DWORD PTR -1048[rbp]
	cdqe
	movzx	eax, BYTE PTR -1008[rbp+rax]
	test	al, al
	jne	.L14
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR -1016[rbp], rax
	mov	rax, QWORD PTR -1016[rbp]
	mov	edx, DWORD PTR -1032[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1024[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -1016[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -1016[rbp]
	mov	QWORD PTR 32[rax], 0
	mov	rax, QWORD PTR -1016[rbp]
	mov	QWORD PTR 40[rax], 0
	mov	rax, QWORD PTR -1016[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	ecx, al
	mov	rax, QWORD PTR -1016[rbp]
	mov	edx, DWORD PTR 4[rax]
	add	DWORD PTR -1028[rbp], 1
	mov	eax, DWORD PTR -1028[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -1016[rbp]
	mov	rcx, QWORD PTR -1080[rbp]
	mov	rax, QWORD PTR -1072[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ordenaLista
	mov	DWORD PTR -1032[rbp], 0
	add	DWORD PTR -1044[rbp], 1
.L11:
	mov	eax, DWORD PTR -1044[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -1024[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L15
	mov	rax, QWORD PTR -1024[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	frequencia, .-frequencia
	.globl	ordenaLista
	.type	ordenaLista, @function
ordenaLista:
.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
	jmp	.L19
.L18:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jg	.L20
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
	jmp	.L19
.L20:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jl	.L21
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 1
	jmp	.L19
.L21:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L22
.L27:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L23
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jle	.L23
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jge	.L24
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	eax, 1
	jmp	.L19
.L24:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L22
.L23:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jne	.L28
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	eax, 1
	jmp	.L19
.L22:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L27
	jmp	.L26
.L28:
	nop
.L26:
	mov	eax, 1
.L19:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	ordenaLista, .-ordenaLista
	.globl	posAnt
	.type	posAnt, @function
posAnt:
.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	DWORD PTR -28[rbp], esi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L30
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L30:
	cmp	QWORD PTR -8[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -28[rbp], eax
	jne	.L32
.L31:
	cmp	QWORD PTR -8[rbp], 0
	je	.L33
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L34
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rdx]
	mov	QWORD PTR 24[rax], rdx
.L34:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L33:
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	posAnt, .-posAnt
	.section	.rodata
.LC4:
	.string	"\n%d - Letra: %c, Indice: %d"
	.text
	.globl	imprime_lista
	.type	imprime_lista, @function
imprime_lista:
.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 -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	cmp	QWORD PTR -8[rbp], 0
	je	.L41
	jmp	.L39
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	edx, al
	add	DWORD PTR -12[rbp], 1
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -8[rbp], rax
.L39:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L40
	jmp	.L36
.L41:
	nop
.L36:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	imprime_lista, .-imprime_lista
	.globl	huffman
	.type	huffman, @function
huffman:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L43
.L44:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 4[rax]
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	edi, 48
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 32[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR 40[rax], rdx
	mov	rdx, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	ordenaLista
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	posAnt
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, edx
	mov	rdi, rax
	call	posAnt
	mov	rdx, QWORD PTR -56[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
.L43:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L44
	mov	rax, QWORD PTR -32[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	huffman, .-huffman
	.section	.rodata
.LC5:
	.string	"\nLetra: %c, Indice: %d\n"
	.text
	.globl	inorder
	.type	inorder, @function
inorder:
.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
	cmp	QWORD PTR -8[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	inorder
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	inorder
.L48:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	inorder, .-inorder
	.globl	menor_daLista
	.type	menor_daLista, @function
menor_daLista:
.LFB13:
	.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 [rax]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L50
.L51:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -8[rbp], rax
.L50:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L51
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	menor_daLista, .-menor_daLista
	.globl	gera_codigos
	.type	gera_codigos, @function
gera_codigos:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L54
	mov	eax, DWORD PTR n.1[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR n.1[rip], edx
	cdqe
	lea	rdx, map.0[rip]
	mov	BYTE PTR [rax+rdx], 48
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	rdi, rax
	call	gera_codigos
.L54:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L55
	mov	eax, DWORD PTR n.1[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR n.1[rip], edx
	cdqe
	lea	rdx, map.0[rip]
	mov	BYTE PTR [rax+rdx], 49
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	rdi, rax
	call	gera_codigos
.L55:
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	jne	.L56
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	jne	.L56
	mov	eax, DWORD PTR n.1[rip]
	add	eax, 1
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	eax, DWORD PTR n.1[rip]
	add	eax, 1
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, map.0[rip]
	mov	rdi, rax
	call	strcat@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	rsi, rdx
	mov	edi, eax
	call	imprimeCodigo
.L56:
	mov	eax, DWORD PTR n.1[rip]
	sub	eax, 1
	mov	DWORD PTR n.1[rip], eax
	mov	eax, DWORD PTR n.1[rip]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L57
.L58:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, map.0[rip]
	mov	BYTE PTR [rax+rdx], 0
	add	DWORD PTR -4[rbp], 1
.L57:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, map.0[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	test	al, al
	jne	.L58
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	gera_codigos, .-gera_codigos
	.section	.rodata
.LC6:
	.string	"\n"
.LC7:
	.string	"%c = %s"
	.text
	.globl	imprimeCodigo
	.type	imprimeCodigo, @function
imprimeCodigo:
.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, 16
	mov	eax, edi
	mov	QWORD PTR -16[rbp], rsi
	mov	BYTE PTR -4[rbp], al
	lea	rdi, .LC6[rip]
	call	puts@PLT
	movsx	eax, BYTE PTR -4[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	imprimeCodigo, .-imprimeCodigo
	.local	n.1
	.comm	n.1,4,4
	.local	map.0
	.comm	map.0,1000,32
	.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	"154883.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r2, fp, #16
	sub	r1, fp, #20
	mov	r3, #256
	ldr	r0, [fp, #-12]
	bl	frequencia
	sub	r3, fp, #20
	mov	r0, r3
	bl	imprime_lista
	sub	r2, fp, #16
	sub	r3, fp, #20
	mov	r1, r2
	mov	r0, r3
	bl	huffman
	mov	r3, r0
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r0, r3
	bl	imprime_lista
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	gera_codigos
	mov	r3, #0
	ldr	r2, .L4
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L3
	bl	__stack_chk_fail
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"texto.txt\000"
	.align	2
.LC3:
	.ascii	"LISTA DE CARACTERES\000"
	.align	2
.LC4:
	.ascii	"%d - %d, %c\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	frequencia
	.syntax unified
	.arm
	.fpu softvfp
	.type	frequencia, %function
frequencia:
	@ args = 0, pretend = 0, frame = 1056
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1056
	str	r0, [fp, #-1048]
	str	r1, [fp, #-1052]
	str	r2, [fp, #-1056]
	str	r3, [fp, #-1060]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-1036]
	mov	r3, #0
	str	r3, [fp, #-1032]
	mov	r3, #0
	str	r3, [fp, #-1028]
	mov	r3, #0
	str	r3, [fp, #-1008]
	sub	r3, fp, #1004
	mov	r2, #996
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-1060]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1016]
	mov	r3, #0
	str	r3, [fp, #-1024]
	mov	r3, #0
	str	r3, [fp, #-1012]
	ldr	r3, [fp, #-1060]
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-1016]
	bl	memset
	ldr	r1, .L19+4
	ldr	r0, .L19+8
	bl	fopen
	str	r0, [fp, #-1048]
	sub	r3, fp, #1008
	ldr	r2, [fp, #-1048]
	mov	r1, #1000
	mov	r0, r3
	bl	fgets
	ldr	r0, [fp, #-1048]
	bl	fclose
	ldr	r3, [fp, #-1032]
	add	r2, r3, #1
	str	r2, [fp, #-1032]
	mov	r2, r3
	ldr	r3, [fp, #-1016]
	add	r3, r3, r2
	sub	r1, fp, #1008
	ldr	r2, [fp, #-1036]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-1036]
	b	.L7
.L12:
	mov	r3, #0
	str	r3, [fp, #-1028]
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L8
.L10:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #1008
	ldr	r3, [fp, #-1040]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L9
	mov	r3, #1
	str	r3, [fp, #-1028]
.L9:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L8:
	ldr	r2, [fp, #-1040]
	ldr	r3, [fp, #-1036]
	cmp	r2, r3
	blt	.L10
	ldr	r3, [fp, #-1028]
	cmp	r3, #1
	beq	.L11
	ldr	r3, [fp, #-1032]
	add	r2, r3, #1
	str	r2, [fp, #-1032]
	mov	r2, r3
	ldr	r3, [fp, #-1016]
	add	r3, r3, r2
	sub	r1, fp, #1008
	ldr	r2, [fp, #-1036]
	add	r2, r1, r2
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L11:
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L7:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1036]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-1032]
	ldr	r2, [fp, #-1016]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	mov	r0, #10
	bl	putchar
	ldr	r0, .L19+12
	bl	puts
	mov	r0, #10
	bl	putchar
	mov	r3, #0
	str	r3, [fp, #-1020]
	mov	r3, #0
	str	r3, [fp, #-1036]
	b	.L13
.L17:
	mov	r3, #0
	str	r3, [fp, #-1040]
	b	.L14
.L16:
	ldr	r3, [fp, #-1036]
	ldr	r2, [fp, #-1016]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	sub	r1, fp, #1008
	ldr	r3, [fp, #-1040]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	bne	.L15
	ldr	r3, [fp, #-1024]
	add	r3, r3, #1
	str	r3, [fp, #-1024]
.L15:
	ldr	r3, [fp, #-1040]
	add	r3, r3, #1
	str	r3, [fp, #-1040]
.L14:
	sub	r2, fp, #1008
	ldr	r3, [fp, #-1040]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L16
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-1012]
	ldr	r3, [fp, #-1012]
	ldr	r2, [fp, #-1024]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-1036]
	ldr	r2, [fp, #-1016]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-1012]
	strb	r2, [r3]
	ldr	r3, [fp, #-1012]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-1012]
	mov	r2, #0
	str	r2, [r3, #24]
	ldr	r3, [fp, #-1020]
	add	r3, r3, #1
	str	r3, [fp, #-1020]
	ldr	r3, [fp, #-1012]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-1012]
	ldrb	r3, [r3]	@ zero_extendqisi2
	ldr	r1, [fp, #-1020]
	ldr	r0, .L19+16
	bl	printf
	ldr	r2, [fp, #-1012]
	ldr	r1, [fp, #-1056]
	ldr	r0, [fp, #-1052]
	bl	ordenaLista
	mov	r3, #0
	str	r3, [fp, #-1024]
	ldr	r3, [fp, #-1036]
	add	r3, r3, #1
	str	r3, [fp, #-1036]
.L13:
	ldr	r3, [fp, #-1036]
	ldr	r2, [fp, #-1016]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L17
	ldr	r0, [fp, #-1016]
	bl	free
	nop
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	frequencia, .-frequencia
	.align	2
	.global	ordenaLista
	.syntax unified
	.arm
	.fpu softvfp
	.type	ordenaLista, %function
ordenaLista:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L22
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	mov	r3, #1
	b	.L23
.L22:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bgt	.L24
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #16]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	mov	r3, #1
	b	.L23
.L24:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	blt	.L25
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	mov	r2, #0
	str	r2, [r3, #12]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	str	r2, [r3]
	mov	r3, #1
	b	.L23
.L25:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L26
.L31:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	ble	.L27
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bge	.L28
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #12]
	mov	r3, #1
	b	.L23
.L28:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	b	.L26
.L27:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-24]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #12]
	mov	r3, #1
	b	.L23
.L26:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L31
	b	.L30
.L32:
	nop
.L30:
	mov	r3, #1
.L23:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	ordenaLista, .-ordenaLista
	.align	2
	.global	posAnt
	.syntax unified
	.arm
	.fpu softvfp
	.type	posAnt, %function
posAnt:
	@ 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]
	str	r3, [fp, #-8]
	b	.L34
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
.L34:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	bne	.L36
.L35:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #16]
	str	r2, [r3, #16]
.L38:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
.L37:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	posAnt, .-posAnt
	.section	.rodata
	.align	2
.LC6:
	.ascii	"\012%d - Letra: %c, Indice: %d\000"
	.text
	.align	2
	.global	imprime_lista
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprime_lista, %function
imprime_lista:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L45
	b	.L43
.L44:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-8]
	ldr	r0, .L46
	bl	printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L44
	b	.L40
.L45:
	nop
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	.LC6
	.size	imprime_lista, .-imprime_lista
	.align	2
	.global	huffman
	.syntax unified
	.arm
	.fpu softvfp
	.type	huffman, %function
huffman:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	b	.L49
.L50:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r0, #28
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #24]
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	ordenaLista
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	posAnt
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	mov	r1, r3
	mov	r0, r2
	bl	posAnt
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
.L49:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L50
	ldr	r3, [fp, #-24]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	huffman, .-huffman
	.section	.rodata
	.align	2
.LC7:
	.ascii	"\012Letra: %c, Indice: %d\012\000"
	.text
	.align	2
	.global	inorder
	.syntax unified
	.arm
	.fpu softvfp
	.type	inorder, %function
inorder:
	@ 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	.L54
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	inorder
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r2, r3
	ldr	r0, .L55
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	inorder
.L54:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC7
	.size	inorder, .-inorder
	.align	2
	.global	menor_daLista
	.syntax unified
	.arm
	.fpu softvfp
	.type	menor_daLista, %function
menor_daLista:
	@ 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]
	str	r3, [fp, #-8]
	b	.L58
.L59:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-8]
.L58:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L59
	ldr	r3, [fp, #-8]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	menor_daLista, .-menor_daLista
	.align	2
	.global	gera_codigos
	.syntax unified
	.arm
	.fpu softvfp
	.type	gera_codigos, %function
gera_codigos:
	@ 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, #20]
	cmp	r3, #0
	beq	.L62
	ldr	r3, .L67
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L67
	str	r2, [r1]
	ldr	r2, .L67+4
	mov	r1, #48
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	mov	r0, r3
	bl	gera_codigos
.L62:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	beq	.L63
	ldr	r3, .L67
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L67
	str	r2, [r1]
	ldr	r2, .L67+4
	mov	r1, #49
	strb	r1, [r2, r3]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	mov	r0, r3
	bl	gera_codigos
.L63:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	bne	.L64
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #24]
	cmp	r3, #0
	bne	.L64
	ldr	r3, .L67
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #8]
	ldr	r3, .L67
	ldr	r3, [r3]
	add	r3, r3, #1
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r1, .L67+4
	mov	r0, r3
	bl	strcat
	ldr	r3, [fp, #-16]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	mov	r1, r3
	mov	r0, r2
	bl	imprimeCodigo
.L64:
	ldr	r3, .L67
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L67
	str	r3, [r2]
	ldr	r3, .L67
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L65
.L66:
	ldr	r2, .L67+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L65:
	ldr	r2, .L67+4
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L66
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L68:
	.align	2
.L67:
	.word	n.5413
	.word	map.5414
	.size	gera_codigos, .-gera_codigos
	.section	.rodata
	.align	2
.LC8:
	.ascii	"\012\000"
	.align	2
.LC9:
	.ascii	"%c = %s\000"
	.text
	.align	2
	.global	imprimeCodigo
	.syntax unified
	.arm
	.fpu softvfp
	.type	imprimeCodigo, %function
imprimeCodigo:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r3, r0
	str	r1, [fp, #-12]
	strb	r3, [fp, #-5]
	ldr	r0, .L70
	bl	puts
	ldrb	r3, [fp, #-5]	@ zero_extendqisi2
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L70+4
	bl	printf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC8
	.word	.LC9
	.size	imprimeCodigo, .-imprimeCodigo
	.local	n.5413
	.comm	n.5413,4,4
	.local	map.5414
	.comm	map.5414,1000,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
