	.file	"288593.c"
	.intel_syntax noprefix
	.text
	.globl	tree
	.bss
	.align 8
	.type	tree, @object
	.size	tree, 8
tree:
	.zero	8
	.text
	.globl	decompress
	.type	decompress, @function
decompress:
.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rdi, QWORD PTR tree[rip]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	r8, rdi
	mov	rdi, rax
	mov	eax, 0
	call	dcmprs
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	decompress, .-decompress
	.globl	decmpinit
	.type	decmpinit, @function
decmpinit:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	huff_tree
	mov	QWORD PTR tree[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	decmpinit, .-decmpinit
	.section	.rodata
.LC0:
	.string	"\nOut of memory in huff_tree!"
	.text
	.globl	huff_tree
	.type	huff_tree, @function
huff_tree:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 2120
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -2152[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	WORD PTR -2134[rbp], -1
	lea	rbx, -2112[rbp]
	mov	edi, 4096
	call	malloc@PLT
	mov	QWORD PTR -2128[rbp], rax
	cmp	QWORD PTR -2128[rbp], 0
	jne	.L6
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	r12, QWORD PTR -2128[rbp]
	mov	r14d, 1
	mov	r15d, 512
	jmp	.L7
.L10:
	mov	rax, QWORD PTR -2152[rbp]
	lea	rdx, 4[rax]
	mov	QWORD PTR -2152[rbp], rdx
	mov	QWORD PTR -2120[rbp], rax
	mov	WORD PTR -2136[rbp], 4
	jmp	.L8
.L9:
	mov	eax, DWORD PTR -2132[rbp]
	sal	eax, 8
	mov	ecx, eax
	movsx	rdx, WORD PTR -2136[rbp]
	mov	rax, QWORD PTR -2120[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	mov	DWORD PTR -2132[rbp], eax
.L8:
	movzx	eax, WORD PTR -2136[rbp]
	sub	eax, 1
	mov	WORD PTR -2136[rbp], ax
	cmp	WORD PTR -2136[rbp], 0
	jns	.L9
	mov	rax, rbx
	lea	rbx, 4[rax]
	mov	edx, DWORD PTR -2132[rbp]
	mov	DWORD PTR [rax], edx
	movsx	eax, r14w
	mov	edi, eax
	mov	eax, 0
	call	new_node
	mov	r13, rax
	mov	rax, r12
	lea	r12, 8[rax]
	mov	QWORD PTR [rax], r13
	mov	eax, r14d
	add	eax, 1
	mov	r14d, eax
.L7:
	mov	eax, r15d
	mov	edx, eax
	sub	edx, 1
	mov	r15d, edx
	test	ax, ax
	jne	.L10
	sub	rbx, 4
	mov	DWORD PTR [rbx], 0
	mov	r14d, 512
	mov	rcx, QWORD PTR -2128[rbp]
	lea	rax, -2112[rbp]
	mov	edx, r14d
	mov	rsi, rcx
	mov	rdi, rax
	mov	eax, 0
	call	sort_freq
	lea	rbx, -2112[rbp]
	mov	r12, QWORD PTR -2128[rbp]
	mov	r14d, 512
	jmp	.L11
.L13:
	add	rbx, 4
	add	r12, 8
	sub	r14d, 1
.L11:
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L12
	test	r14d, r14d
	jne	.L13
.L12:
	mov	r13, QWORD PTR [r12]
	jmp	.L14
.L15:
	movsx	eax, WORD PTR -2134[rbp]
	mov	edi, eax
	mov	eax, 0
	call	new_node
	mov	r13, rax
	mov	rax, r12
	lea	r12, 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 0[r13], rax
	mov	rax, QWORD PTR [r12]
	mov	QWORD PTR 16[r13], rax
	mov	QWORD PTR [r12], r13
	lea	rax, 4[rbx]
	mov	ecx, DWORD PTR [rax]
	mov	edx, DWORD PTR [rbx]
	lea	rax, 4[rbx]
	add	edx, ecx
	mov	DWORD PTR [rax], edx
	mov	rax, rbx
	lea	rbx, 4[rax]
	mov	DWORD PTR [rax], 0
	mov	edx, r14d
	mov	rsi, r12
	mov	rdi, rbx
	mov	eax, 0
	call	sort_freq
.L14:
	mov	eax, r14d
	lea	r14d, -1[rax]
	cmp	eax, 1
	jg	.L15
	mov	rax, r13
	mov	rsi, QWORD PTR -56[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	add	rsp, 2120
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	huff_tree, .-huff_tree
	.section	.rodata
.LC1:
	.string	"\nOut of memory in new_node!"
	.text
	.globl	new_node
	.type	new_node, @function
new_node:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	eax, edi
	mov	WORD PTR -20[rbp], ax
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -20[rbp]
	mov	WORD PTR 8[rax], dx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	jmp	.L22
.L19:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	new_node, .-new_node
	.globl	sort_freq
	.type	sort_freq, @function
sort_freq:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -64[rbp], rdi
	mov	QWORD PTR -72[rbp], rsi
	mov	DWORD PTR -76[rbp], edx
	cmp	DWORD PTR -76[rbp], 0
	jle	.L31
	mov	r13, QWORD PTR -64[rbp]
	mov	r14, QWORD PTR -72[rbp]
	mov	r15d, DWORD PTR -76[rbp]
	jmp	.L26
.L30:
	add	r13, 4
	mov	eax, DWORD PTR 0[r13]
	mov	DWORD PTR -52[rbp], eax
	add	r14, 8
	mov	rax, QWORD PTR [r14]
	mov	QWORD PTR -48[rbp], rax
	mov	rbx, r13
	mov	r12, r14
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -4[rbx]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR -8[r12]
	mov	QWORD PTR [r12], rax
	sub	rbx, 4
	sub	r12, 8
	cmp	rbx, QWORD PTR -64[rbp]
	jbe	.L32
.L27:
	lea	rax, -4[rbx]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L29
	jmp	.L28
.L32:
	nop
.L28:
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR [r12], rax
.L26:
	sub	r15d, 1
	test	r15d, r15d
	jne	.L30
	jmp	.L23
.L31:
	nop
.L23:
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sort_freq, .-sort_freq
	.section	.rodata
	.align 8
.LC2:
	.string	"\nInvalid byte count in dcmprs!"
	.text
	.globl	dcmprs
	.type	dcmprs, @function
dcmprs:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 64
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	QWORD PTR -88[rbp], r8
	mov	rbx, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -64[rbp]
	add	rax, rdx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	cmp	rax, QWORD PTR -56[rbp]
	jbe	.L34
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -64[rbp]
	jbe	.L34
	mov	rdx, QWORD PTR -56[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -64[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	movzx	r13d, BYTE PTR [rax]
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	r14d, eax
	jmp	.L35
.L34:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L43:
	mov	r12d, -128
	jmp	.L36
.L42:
	mov	eax, r12d
	and	eax, r14d
	test	al, al
	je	.L37
	mov	rax, QWORD PTR 16[rbx]
	jmp	.L38
.L37:
	mov	rax, QWORD PTR [rbx]
.L38:
	mov	rbx, rax
	movzx	eax, WORD PTR 8[rbx]
	cmp	ax, -1
	je	.L39
	mov	rax, QWORD PTR -64[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jnb	.L44
	mov	edx, r13d
	movzx	eax, WORD PTR 8[rbx]
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	r13d, eax
	mov	rax, QWORD PTR -64[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -64[rbp], rdx
	mov	BYTE PTR [rax], r13b
	mov	rbx, QWORD PTR -88[rbp]
.L39:
	shr	r12b
.L36:
	test	r12b, r12b
	jne	.L42
	add	QWORD PTR -56[rbp], 1
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	r14d, eax
.L35:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, QWORD PTR -48[rbp]
	jb	.L43
	jmp	.L33
.L44:
	nop
.L33:
	add	rsp, 64
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	dcmprs, .-dcmprs
	.globl	free_tree
	.type	free_tree, @function
free_tree:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -4[rbp], 0
	mov	rax, QWORD PTR tree[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	free_node
	mov	rdx, QWORD PTR -24[rbp]
	mov	DWORD PTR [rdx], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	free_tree, .-free_tree
	.globl	free_node
	.type	free_node, @function
free_node:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L48
	mov	eax, DWORD PTR -12[rbp]
	jmp	.L49
.L48:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L50
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	free_node
	mov	DWORD PTR -12[rbp], eax
.L50:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L51
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	edx, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	rdi, rax
	mov	eax, 0
	call	free_node
	mov	DWORD PTR -12[rbp], eax
.L51:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -12[rbp]
	add	eax, 1
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	free_node, .-free_node
	.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	"288593.c"
	.text
	.comm	tree,4,4
	.align	2
	.global	decompress
	.syntax unified
	.arm
	.fpu softvfp
	.type	decompress, %function
decompress:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, .L3
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	dcmprs
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	tree
	.size	decompress, .-decompress
	.align	2
	.global	decmpinit
	.syntax unified
	.arm
	.fpu softvfp
	.type	decmpinit, %function
decmpinit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	huff_tree
	mov	r3, r0
	ldr	r2, .L7
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	tree
	.size	decmpinit, .-decmpinit
	.section	.rodata
	.align	2
.LC0:
	.ascii	"\012Out of memory in huff_tree!\000"
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	huff_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	huff_tree, %function
huff_tree:
	@ args = 0, pretend = 0, frame = 2080
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #2080
	sub	sp, sp, #4
	str	r0, [fp, #-2104]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #28
	sub	r3, r3, #2064
	sub	r3, r3, #2
	mvn	r2, #0
	strh	r2, [r3]	@ movhi
	sub	r4, fp, #2064
	sub	r4, r4, #12
	sub	r4, r4, #4
	mov	r0, #2048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-2088]
	ldr	r3, [fp, #-2088]
	cmp	r3, #0
	bne	.L10
	ldr	r0, .L22+4
	bl	puts
	mov	r0, #1
	bl	exit
.L10:
	ldr	r5, [fp, #-2088]
	mov	r7, #1
	mov	r8, #512
	b	.L11
.L14:
	ldr	r3, [fp, #-2104]
	add	r2, r3, #4
	str	r2, [fp, #-2104]
	str	r3, [fp, #-2084]
	sub	r3, fp, #28
	sub	r3, r3, #2064
	sub	r3, r3, #4
	mov	r2, #4
	strh	r2, [r3]	@ movhi
	b	.L12
.L13:
	ldr	r3, [fp, #-2092]
	lsl	r2, r3, #8
	sub	r3, fp, #28
	sub	r3, r3, #2064
	sub	r3, r3, #4
	ldrsh	r3, [r3]
	ldr	r1, [fp, #-2084]
	add	r3, r1, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r2, r3
	str	r3, [fp, #-2092]
.L12:
	sub	r3, fp, #28
	sub	r3, r3, #2064
	sub	r3, r3, #4
	ldrh	r3, [r3]
	sub	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #28
	sub	r3, r3, #2064
	sub	r3, r3, #4
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #28
	sub	r3, r3, #2064
	sub	r3, r3, #4
	ldrsh	r3, [r3]
	cmp	r3, #0
	bge	.L13
	mov	r3, r4
	add	r4, r3, #4
	ldr	r2, [fp, #-2092]
	str	r2, [r3]
	mov	r3, r7
	mov	r0, r3
	bl	new_node
	mov	r6, r0
	mov	r3, r5
	add	r5, r3, #4
	str	r6, [r3]
	mov	r3, r7
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	add	r3, r3, #1
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #16
	asr	r7, r3, #16
.L11:
	mov	r3, r8
	lsl	r2, r3, #16
	lsr	r2, r2, #16
	sub	r2, r2, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	lsl	r2, r2, #16
	asr	r8, r2, #16
	cmp	r3, #0
	bne	.L14
	sub	r4, r4, #4
	mov	r3, #0
	str	r3, [r4]
	mov	r7, #512
	sub	r3, fp, #2064
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r7
	ldr	r1, [fp, #-2088]
	mov	r0, r3
	bl	sort_freq
	sub	r4, fp, #2064
	sub	r4, r4, #12
	sub	r4, r4, #4
	ldr	r5, [fp, #-2088]
	mov	r7, #512
	b	.L15
.L17:
	add	r4, r4, #4
	add	r5, r5, #4
	sub	r7, r7, #1
.L15:
	ldr	r3, [r4]
	cmp	r3, #0
	bne	.L16
	cmp	r7, #0
	bne	.L17
.L16:
	ldr	r6, [r5]
	b	.L18
.L19:
	sub	r3, fp, #28
	sub	r3, r3, #2064
	sub	r3, r3, #2
	ldrsh	r3, [r3]
	mov	r0, r3
	bl	new_node
	mov	r6, r0
	mov	r3, r5
	add	r5, r3, #4
	ldr	r3, [r3]
	str	r3, [r6]
	ldr	r3, [r5]
	str	r3, [r6, #8]
	str	r6, [r5]
	add	r3, r4, #4
	ldr	r1, [r3]
	ldr	r2, [r4]
	add	r3, r4, #4
	add	r2, r1, r2
	str	r2, [r3]
	mov	r3, r4
	add	r4, r3, #4
	mov	r2, #0
	str	r2, [r3]
	mov	r2, r7
	mov	r1, r5
	mov	r0, r4
	bl	sort_freq
.L18:
	mov	r3, r7
	sub	r7, r3, #1
	cmp	r3, #1
	bgt	.L19
	mov	r3, r6
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	.LC0
	.size	huff_tree, .-huff_tree
	.section	.rodata
	.align	2
.LC2:
	.ascii	"\012Out of memory in new_node!\000"
	.text
	.align	2
	.global	new_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_node, %function
new_node:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	mov	r3, r0
	strh	r3, [fp, #-16]	@ movhi
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L25
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-16]	@ movhi
	strh	r2, [r3, #4]	@ movhi
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	b	.L28
.L25:
	ldr	r0, .L29
	bl	puts
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC2
	.size	new_node, .-new_node
	.align	2
	.global	sort_freq
	.syntax unified
	.arm
	.fpu softvfp
	.type	sort_freq, %function
sort_freq:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, r7, r8, fp}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	ble	.L39
	ldr	r6, [fp, #-32]
	ldr	r7, [fp, #-36]
	ldr	r8, [fp, #-40]
	b	.L34
.L38:
	add	r6, r6, #4
	ldr	r3, [r6]
	str	r3, [fp, #-28]
	add	r7, r7, #4
	ldr	r3, [r7]
	str	r3, [fp, #-24]
	mov	r4, r6
	mov	r5, r7
	b	.L35
.L37:
	ldr	r3, [r4, #-4]
	str	r3, [r4]
	ldr	r3, [r5, #-4]
	str	r3, [r5]
	sub	r4, r4, #4
	sub	r5, r5, #4
	ldr	r3, [fp, #-32]
	cmp	r4, r3
	bls	.L40
.L35:
	sub	r3, r4, #4
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	cmp	r2, r3
	blt	.L37
	b	.L36
.L40:
	nop
.L36:
	ldr	r3, [fp, #-28]
	str	r3, [r4]
	ldr	r3, [fp, #-24]
	str	r3, [r5]
.L34:
	sub	r8, r8, #1
	cmp	r8, #0
	bne	.L38
	b	.L31
.L39:
	nop
.L31:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, fp}
	bx	lr
	.size	sort_freq, .-sort_freq
	.section	.rodata
	.align	2
.LC3:
	.ascii	"\012Invalid byte count in dcmprs!\000"
	.text
	.align	2
	.global	dcmprs
	.syntax unified
	.arm
	.fpu softvfp
	.type	dcmprs, %function
dcmprs:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	str	r3, [fp, #-44]
	ldr	r4, [fp, #4]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, r2
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, r2
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	bls	.L42
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	bls	.L42
	ldr	r2, [fp, #-32]
	add	r3, r2, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldrb	r6, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-32]
	ldrb	r7, [r3]	@ zero_extendqisi2
	b	.L43
.L42:
	ldr	r0, .L53
	bl	puts
	mov	r0, #1
	bl	exit
.L51:
	mov	r5, #128
	b	.L44
.L50:
	and	r3, r5, r7
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L45
	ldr	r3, [r4, #8]
	b	.L46
.L45:
	ldr	r3, [r4]
.L46:
	mov	r4, r3
	ldrsh	r3, [r4, #4]
	cmn	r3, #1
	beq	.L47
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcs	.L52
	ldrsh	r3, [r4, #4]
	and	r3, r3, #255
	sub	r3, r6, r3
	and	r6, r3, #255
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	mov	r2, r6
	strb	r2, [r3]
	ldr	r4, [fp, #4]
.L47:
	lsr	r3, r5, #1
	and	r5, r3, #255
.L44:
	cmp	r5, #0
	bne	.L50
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	ldrb	r7, [r3]	@ zero_extendqisi2
.L43:
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	bcc	.L51
	b	.L41
.L52:
	nop
.L41:
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC3
	.size	dcmprs, .-dcmprs
	.align	2
	.global	free_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_tree, %function
free_tree:
	@ 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	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L57
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	free_node
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L58:
	.align	2
.L57:
	.word	tree
	.size	free_tree, .-free_tree
	.align	2
	.global	free_node
	.syntax unified
	.arm
	.fpu softvfp
	.type	free_node, %function
free_node:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L60
	ldr	r3, [fp, #-12]
	b	.L61
.L60:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L62
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	free_node
	str	r0, [fp, #-12]
.L62:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L63
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	free_node
	str	r0, [fp, #-12]
.L63:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	free_node, .-free_node
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
