	.file	"267941.c"
	.intel_syntax noprefix
	.text
	.globl	freq
	.bss
	.align 32
	.type	freq, @object
	.size	freq, 1024
freq:
	.zero	1024
	.globl	nodes
	.align 32
	.type	nodes, @object
	.size	nodes, 280000
nodes:
	.zero	280000
	.globl	nodes_cnt
	.align 4
	.type	nodes_cnt, @object
	.size	nodes_cnt, 4
nodes_cnt:
	.zero	4
	.globl	vhead
	.section	.rodata
	.align 4
	.type	vhead, @object
	.size	vhead, 4
vhead:
	.zero	4
	.text
	.globl	ins
	.type	ins, @function
ins:
.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	eax, edi
	mov	DWORD PTR -24[rbp], esi
	mov	BYTE PTR -20[rbp], al
	mov	eax, DWORD PTR nodes_cnt[rip]
	add	eax, 1
	mov	DWORD PTR nodes_cnt[rip], eax
	mov	eax, DWORD PTR nodes_cnt[rip]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip]
	add	rax, rdx
	mov	edx, 280
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR nodes_cnt[rip]
	movsx	edx, BYTE PTR -20[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+260]
	mov	DWORD PTR [rax+rcx], edx
	mov	eax, DWORD PTR nodes_cnt[rip]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+256]
	mov	edx, DWORD PTR -24[rbp]
	mov	DWORD PTR [rax+rcx], edx
	mov	eax, 0
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+276]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	jne	.L2
	mov	eax, 0
	mov	edx, DWORD PTR nodes_cnt[rip]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+276]
	mov	DWORD PTR [rax+rcx], edx
	jmp	.L1
.L2:
	mov	DWORD PTR -8[rbp], 0
	mov	eax, 0
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+276]
	mov	eax, DWORD PTR [rax+rdx]
	mov	DWORD PTR -4[rbp], eax
	jmp	.L4
.L7:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+256]
	mov	eax, DWORD PTR [rax+rdx]
	cmp	DWORD PTR -24[rbp], eax
	jl	.L8
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+276]
	mov	eax, DWORD PTR [rax+rdx]
	mov	DWORD PTR -4[rbp], eax
.L4:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L7
	jmp	.L6
.L8:
	nop
.L6:
	mov	eax, DWORD PTR nodes_cnt[rip]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+276]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax+rcx], edx
	mov	edx, DWORD PTR nodes_cnt[rip]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+276]
	mov	DWORD PTR [rax+rcx], edx
.L1:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	ins, .-ins
	.section	.rodata
.LC0:
	.string	"list node %d %d:%d\n"
	.text
	.globl	dump_list
	.type	dump_list, @function
dump_list:
.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	DWORD PTR -4[rbp], edi
	jmp	.L10
.L11:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+256]
	mov	ecx, DWORD PTR [rax+rdx]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+260]
	mov	edx, DWORD PTR [rax+rdx]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+276]
	mov	eax, DWORD PTR [rax+rdx]
	mov	DWORD PTR -4[rbp], eax
.L10:
	cmp	DWORD PTR -4[rbp], 0
	jne	.L11
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dump_list, .-dump_list
	.globl	build_tree
	.type	build_tree, @function
build_tree:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+276]
	mov	eax, DWORD PTR [rax+rdx]
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	jne	.L13
	mov	eax, DWORD PTR -20[rbp]
	jmp	.L14
.L13:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+256]
	mov	ecx, DWORD PTR [rax+rdx]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+256]
	mov	eax, DWORD PTR [rax+rdx]
	add	eax, ecx
	mov	esi, eax
	mov	edi, 0
	call	ins
	mov	eax, DWORD PTR nodes_cnt[rip]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+268]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax+rcx], edx
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+272]
	mov	edx, DWORD PTR -8[rbp]
	mov	DWORD PTR [rax+rcx], edx
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+264]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax+rcx], edx
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+264]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax+rcx], edx
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+276]
	mov	eax, DWORD PTR [rax+rdx]
	mov	edi, eax
	call	build_tree
.L14:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	build_tree, .-build_tree
	.section	.rodata
.LC1:
	.string	"tree node %d %c(%d):%d %s\n"
	.text
	.globl	dump_tree
	.type	dump_tree, @function
dump_tree:
.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, 304
	mov	DWORD PTR -292[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 0
	je	.L19
	mov	eax, DWORD PTR -292[rbp]
	cdqe
	imul	rdx, rax, 280
	lea	rcx, nodes[rip]
	lea	rax, -288[rbp]
	add	rdx, rcx
	mov	ecx, 35
	mov	rdi, rax
	mov	rsi, rdx
	rep movsq
	mov	esi, DWORD PTR -32[rbp]
	mov	ecx, DWORD PTR -28[rbp]
	mov	edx, DWORD PTR -28[rbp]
	lea	rdi, -288[rbp]
	mov	eax, DWORD PTR -292[rbp]
	mov	r9, rdi
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	dump_tree
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	dump_tree
	jmp	.L15
.L19:
	nop
.L15:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dump_tree, .-dump_tree
	.globl	buf
	.bss
	.align 32
	.type	buf, @object
	.size	buf, 256
buf:
	.zero	256
	.globl	mapping
	.align 32
	.type	mapping, @object
	.size	mapping, 65536
mapping:
	.zero	65536
	.text
	.globl	encode
	.type	encode, @function
encode:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -4[rbp], 0
	je	.L25
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+268]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+272]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	jne	.L23
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+260]
	mov	eax, DWORD PTR [rax+rdx]
	cdqe
	sal	rax, 8
	mov	rdx, rax
	lea	rax, mapping[rip]
	add	rax, rdx
	lea	rsi, buf[rip]
	mov	rdi, rax
	call	strcpy@PLT
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip]
	add	rax, rdx
	lea	rsi, buf[rip]
	mov	rdi, rax
	call	strcpy@PLT
	jmp	.L20
.L23:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+268]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	je	.L24
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, buf[rip]
	mov	BYTE PTR [rax+rdx], 48
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	cdqe
	lea	rdx, buf[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+268]
	mov	eax, DWORD PTR [rax+rcx]
	mov	esi, edx
	mov	edi, eax
	call	encode
.L24:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+272]
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	je	.L20
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, buf[rip]
	mov	BYTE PTR [rax+rdx], 49
	mov	eax, DWORD PTR -8[rbp]
	add	eax, 1
	cdqe
	lea	rdx, buf[rip]
	mov	BYTE PTR [rax+rdx], 0
	mov	eax, DWORD PTR -8[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	imul	rax, rax, 280
	lea	rcx, nodes[rip+272]
	mov	eax, DWORD PTR [rax+rcx]
	mov	esi, edx
	mov	edi, eax
	call	encode
	jmp	.L20
.L25:
	nop
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	encode, .-encode
	.section	.rodata
.LC2:
	.string	"%c(%d):%s\n"
	.text
	.globl	dump_map
	.type	dump_map, @function
dump_map:
.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, 16
	mov	DWORD PTR -4[rbp], 0
	jmp	.L27
.L29:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L28
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	sal	rax, 8
	mov	rdx, rax
	lea	rax, mapping[rip]
	lea	rcx, [rdx+rax]
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
.L28:
	add	DWORD PTR -4[rbp], 1
.L27:
	cmp	DWORD PTR -4[rbp], 255
	jle	.L29
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	dump_map, .-dump_map
	.globl	build
	.type	build, @function
build:
.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	DWORD PTR -8[rbp], 0
	jmp	.L31
.L33:
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jle	.L32
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8[rbp]
	movsx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	ins
.L32:
	add	DWORD PTR -8[rbp], 1
.L31:
	cmp	DWORD PTR -8[rbp], 255
	jle	.L33
	mov	eax, 0
	cdqe
	imul	rax, rax, 280
	lea	rdx, nodes[rip+276]
	mov	eax, DWORD PTR [rax+rdx]
	mov	edi, eax
	call	build_tree
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 0
	mov	edi, eax
	call	encode
	mov	eax, 0
	call	dump_map
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	build, .-build
	.section	.rodata
.LC3:
	.string	"%x"
	.text
	.globl	compress
	.type	compress, @function
compress:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	jmp	.L35
.L41:
	cmp	DWORD PTR -12[rbp], 10
	jne	.L36
	jmp	.L35
.L36:
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 8
	mov	rdx, rax
	lea	rax, mapping[rip]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L37
.L40:
	sal	DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 8
	add	rdx, rax
	lea	rax, mapping[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	jne	.L38
	or	DWORD PTR -24[rbp], 1
.L38:
	add	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 8
	jne	.L39
	mov	eax, DWORD PTR -24[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
.L39:
	add	DWORD PTR -20[rbp], 1
.L37:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -4[rbp]
	jl	.L40
.L35:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L41
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 8
	mov	rdx, rax
	lea	rax, mapping[rip]
	add	rax, rdx
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -8[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L42
.L45:
	sal	DWORD PTR -24[rbp]
	mov	eax, DWORD PTR -16[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 8
	add	rdx, rax
	lea	rax, mapping[rip]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 49
	jne	.L43
	or	DWORD PTR -24[rbp], 1
.L43:
	add	DWORD PTR -28[rbp], 1
	cmp	DWORD PTR -28[rbp], 8
	jne	.L44
	mov	eax, DWORD PTR -24[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
	mov	DWORD PTR -28[rbp], 0
	mov	DWORD PTR -24[rbp], 0
.L44:
	add	DWORD PTR -16[rbp], 1
.L42:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -8[rbp]
	jl	.L45
	cmp	DWORD PTR -28[rbp], 0
	jle	.L47
	mov	eax, 8
	sub	eax, DWORD PTR -28[rbp]
	mov	ecx, eax
	sal	DWORD PTR -24[rbp], cl
	mov	eax, DWORD PTR -24[rbp]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	fputc@PLT
.L47:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	compress, .-compress
	.section	.rodata
.LC4:
	.string	"r"
.LC5:
	.string	"input.txt"
.LC6:
	.string	"w"
.LC7:
	.string	"output.txt"
	.text
	.globl	main
	.type	main, @function
main:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	lea	rsi, .LC4[rip]
	lea	rdi, .LC5[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	lea	rsi, .LC6[rip]
	lea	rdi, .LC7[rip]
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	jmp	.L49
.L51:
	cmp	DWORD PTR -20[rbp], 10
	jne	.L50
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	ecx, 1[rax]
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	lea	rdx, 0[0+rax*4]
	lea	rax, freq[rip]
	mov	DWORD PTR [rdx+rax], ecx
.L49:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fgetc@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L51
	mov	DWORD PTR freq[rip], 1
	mov	eax, 0
	call	build
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	compress
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"267941.c"
	.text
	.comm	freq,1024,4
	.comm	nodes,280000,4
	.global	nodes_cnt
	.bss
	.align	2
	.type	nodes_cnt, %object
	.size	nodes_cnt, 4
nodes_cnt:
	.space	4
	.global	vhead
	.section	.rodata
	.align	2
	.type	vhead, %object
	.size	vhead, 4
vhead:
	.space	4
	.text
	.align	2
	.global	ins
	.syntax unified
	.arm
	.fpu softvfp
	.type	ins, %function
ins:
	@ 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
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
	ldr	r3, .L9
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L9
	str	r3, [r2]
	ldr	r3, .L9
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	ldr	r3, .L9+4
	add	r3, r2, r3
	mov	r2, #280
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L9
	ldr	r2, [r3]
	ldrb	r1, [fp, #-13]	@ zero_extendqisi2
	ldr	r0, .L9+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r0, r2
	add	r3, r3, #260
	str	r1, [r3]
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r1, .L9+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #256
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	mov	r2, #0
	ldr	r1, .L9+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	mov	r2, #0
	ldr	r3, .L9
	ldr	r1, [r3]
	ldr	r0, .L9+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r0, r2
	add	r3, r3, #276
	str	r1, [r3]
	b	.L1
.L2:
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r2, #0
	ldr	r1, .L9+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	b	.L4
.L7:
	ldr	r1, .L9+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #256
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	cmp	r2, r3
	blt	.L8
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-12]
	ldr	r1, .L9+4
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L4:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L7
	b	.L6
.L8:
	nop
.L6:
	ldr	r3, .L9
	ldr	r2, [r3]
	ldr	r1, .L9+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L9
	ldr	r1, [r3]
	ldr	r0, .L9+4
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r0, r2
	add	r3, r3, #276
	str	r1, [r3]
.L1:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	nodes_cnt
	.word	nodes
	.size	ins, .-ins
	.section	.rodata
	.align	2
.LC0:
	.ascii	"list node %d %d:%d\012\000"
	.text
	.align	2
	.global	dump_list
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_list, %function
dump_list:
	@ 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]
	b	.L12
.L13:
	ldr	r1, .L14
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #260
	ldr	r1, [r3]
	ldr	r0, .L14
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r0, r2
	add	r3, r3, #256
	ldr	r3, [r3]
	mov	r2, r1
	ldr	r1, [fp, #-8]
	ldr	r0, .L14+4
	bl	printf
	ldr	r1, .L14
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r3, [r3]
	str	r3, [fp, #-8]
.L12:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	nodes
	.word	.LC0
	.size	dump_list, .-dump_list
	.align	2
	.global	build_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_tree, %function
build_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]
	ldr	r1, .L19
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L17
	ldr	r3, [fp, #-16]
	b	.L18
.L17:
	ldr	r1, .L19
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #256
	ldr	r1, [r3]
	ldr	r0, .L19
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r0, r2
	add	r3, r3, #256
	ldr	r3, [r3]
	add	r3, r1, r3
	mov	r1, r3
	mov	r0, #0
	bl	ins
	ldr	r3, .L19+4
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r1, .L19
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #268
	ldr	r2, [fp, #-16]
	str	r2, [r3]
	ldr	r1, .L19
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #272
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r1, .L19
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #264
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r1, .L19
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #264
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r1, .L19
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r3, [r3]
	mov	r0, r3
	bl	build_tree
	mov	r3, r0
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	nodes
	.word	nodes_cnt
	.size	build_tree, .-build_tree
	.section	.rodata
	.align	2
.LC1:
	.ascii	"tree node %d %c(%d):%d %s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	dump_tree
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_tree, %function
dump_tree:
	@ args = 0, pretend = 0, frame = 296
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #304
	str	r0, [fp, #-296]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-296]
	cmp	r3, #0
	beq	.L25
	ldr	r1, .L26+4
	ldr	r2, [fp, #-296]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r2, r1, r2
	sub	r3, fp, #288
	mov	r1, r2
	mov	r2, #280
	mov	r0, r3
	bl	memcpy
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-28]
	ldr	r3, [fp, #-32]
	sub	r2, fp, #288
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, r1
	ldr	r1, [fp, #-296]
	ldr	r0, .L26+8
	bl	printf
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	dump_tree
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	dump_tree
	b	.L21
.L25:
	nop
.L21:
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC2
	.word	nodes
	.word	.LC1
	.size	dump_tree, .-dump_tree
	.comm	buf,256,4
	.comm	mapping,65536,4
	.align	2
	.global	encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	encode, %function
encode:
	@ 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
	beq	.L33
	ldr	r1, .L34
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #268
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	ldr	r1, .L34
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #272
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L31
	ldr	r1, .L34
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #260
	ldr	r3, [r3]
	lsl	r3, r3, #8
	ldr	r2, .L34+4
	add	r3, r3, r2
	ldr	r1, .L34+8
	mov	r0, r3
	bl	strcpy
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	ldr	r3, .L34
	add	r3, r2, r3
	ldr	r1, .L34+8
	mov	r0, r3
	bl	strcpy
	b	.L28
.L31:
	ldr	r1, .L34
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #268
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L32
	ldr	r2, .L34+8
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, .L34+8
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r1, .L34
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #268
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	encode
.L32:
	ldr	r1, .L34
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #272
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L28
	ldr	r2, .L34+8
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #49
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	ldr	r2, .L34+8
	mov	r1, #0
	strb	r1, [r2, r3]
	ldr	r1, .L34
	ldr	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #272
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	mov	r1, r3
	mov	r0, r2
	bl	encode
	b	.L28
.L33:
	nop
.L28:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	nodes
	.word	mapping
	.word	buf
	.size	encode, .-encode
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%c(%d):%s\012\000"
	.text
	.align	2
	.global	dump_map
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_map, %function
dump_map:
	@ 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, #0
	str	r3, [fp, #-8]
	b	.L37
.L39:
	ldr	r2, .L40
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #8
	ldr	r2, .L40+4
	add	r3, r3, r2
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, .L40+8
	bl	printf
.L38:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L37:
	ldr	r3, [fp, #-8]
	cmp	r3, #255
	ble	.L39
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L41:
	.align	2
.L40:
	.word	freq
	.word	mapping
	.word	.LC3
	.size	dump_map, .-dump_map
	.align	2
	.global	build
	.syntax unified
	.arm
	.fpu softvfp
	.type	build, %function
build:
	@ 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, #0
	str	r3, [fp, #-12]
	b	.L43
.L45:
	ldr	r2, .L46
	ldr	r3, [fp, #-12]
	ldr	r3, [r2, r3, lsl #2]
	cmp	r3, #0
	ble	.L44
	ldr	r3, [fp, #-12]
	and	r2, r3, #255
	ldr	r1, .L46
	ldr	r3, [fp, #-12]
	ldr	r3, [r1, r3, lsl #2]
	mov	r1, r3
	mov	r0, r2
	bl	ins
.L44:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L43:
	ldr	r3, [fp, #-12]
	cmp	r3, #255
	ble	.L45
	mov	r2, #0
	ldr	r1, .L46+4
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #3
	mov	r2, r3
	add	r3, r1, r2
	add	r3, r3, #276
	ldr	r3, [r3]
	mov	r0, r3
	bl	build_tree
	str	r0, [fp, #-8]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	encode
	bl	dump_map
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L47:
	.align	2
.L46:
	.word	freq
	.word	nodes
	.size	build, .-build
	.section	.rodata
	.align	2
.LC4:
	.ascii	"%x\000"
	.text
	.align	2
	.global	compress
	.syntax unified
	.arm
	.fpu softvfp
	.type	compress, %function
compress:
	@ 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]
	str	r1, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L49
.L55:
	ldr	r3, [fp, #-16]
	cmp	r3, #10
	bne	.L50
	b	.L49
.L50:
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #8
	ldr	r2, .L62
	add	r3, r3, r2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-24]
	b	.L51
.L54:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, .L62
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #8
	add	r2, r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L52
	ldr	r3, [fp, #-28]
	orr	r3, r3, #1
	str	r3, [fp, #-28]
.L52:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	bne	.L53
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L62+4
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-28]
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
.L53:
	ldr	r3, [fp, #-24]
	add	r3, r3, #1
	str	r3, [fp, #-24]
.L51:
	ldr	r2, [fp, #-24]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L54
.L49:
	ldr	r0, [fp, #-40]
	bl	fgetc
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L55
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #8
	ldr	r2, .L62
	add	r3, r3, r2
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L56
.L59:
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	str	r3, [fp, #-28]
	ldr	r2, .L62
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #8
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #49
	bne	.L57
	ldr	r3, [fp, #-28]
	orr	r3, r3, #1
	str	r3, [fp, #-28]
.L57:
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #8
	bne	.L58
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L62+4
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-28]
	bl	fputc
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
.L58:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L56:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	blt	.L59
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	ble	.L61
	ldr	r3, [fp, #-32]
	rsb	r3, r3, #8
	ldr	r2, [fp, #-28]
	lsl	r3, r2, r3
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, .L62+4
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-28]
	bl	fputc
.L61:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	mapping
	.word	.LC4
	.size	compress, .-compress
	.section	.rodata
	.align	2
.LC5:
	.ascii	"r\000"
	.align	2
.LC6:
	.ascii	"input.txt\000"
	.align	2
.LC7:
	.ascii	"w\000"
	.align	2
.LC8:
	.ascii	"output.txt\000"
	.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	r1, .L69
	ldr	r0, .L69+4
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r1, .L69+8
	ldr	r0, .L69+12
	bl	fopen
	str	r0, [fp, #-12]
	b	.L65
.L67:
	ldr	r3, [fp, #-8]
	cmp	r3, #10
	bne	.L66
	b	.L65
.L66:
	ldr	r2, .L69+16
	ldr	r3, [fp, #-8]
	ldr	r3, [r2, r3, lsl #2]
	add	r2, r3, #1
	ldr	r1, .L69+16
	ldr	r3, [fp, #-8]
	str	r2, [r1, r3, lsl #2]
.L65:
	ldr	r0, [fp, #-16]
	bl	fgetc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L67
	ldr	r3, .L69+16
	mov	r2, #1
	str	r2, [r3]
	bl	build
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	compress
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L70:
	.align	2
.L69:
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	freq
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
