	.file	"723890.c"
	.intel_syntax noprefix
	.text
	.globl	n_bits
	.bss
	.align 4
	.type	n_bits, @object
	.size	n_bits, 4
n_bits:
	.zero	4
	.globl	maxbits
	.data
	.align 4
	.type	maxbits, @object
	.size	maxbits, 4
maxbits:
	.long	16
	.globl	maxcode
	.bss
	.align 8
	.type	maxcode, @object
	.size	maxcode, 8
maxcode:
	.zero	8
	.globl	maxmaxcode
	.data
	.align 8
	.type	maxmaxcode, @object
	.size	maxmaxcode, 8
maxmaxcode:
	.quad	65536
	.globl	hsize
	.align 8
	.type	hsize, @object
	.size	hsize, 8
hsize:
	.quad	257
	.globl	fsize
	.bss
	.align 8
	.type	fsize, @object
	.size	fsize, 8
fsize:
	.zero	8
	.globl	free_ent
	.align 8
	.type	free_ent, @object
	.size	free_ent, 8
free_ent:
	.zero	8
	.globl	exit_stat
	.align 4
	.type	exit_stat, @object
	.size	exit_stat, 4
exit_stat:
	.zero	4
	.globl	nomagic
	.data
	.align 4
	.type	nomagic, @object
	.size	nomagic, 4
nomagic:
	.long	1
	.globl	zcat_flg
	.bss
	.align 4
	.type	zcat_flg, @object
	.size	zcat_flg, 4
zcat_flg:
	.zero	4
	.globl	quiet
	.data
	.align 4
	.type	quiet, @object
	.size	quiet, 4
quiet:
	.long	1
	.globl	block_compress
	.align 4
	.type	block_compress, @object
	.size	block_compress, 4
block_compress:
	.long	128
	.globl	clear_flg
	.bss
	.align 4
	.type	clear_flg, @object
	.size	clear_flg, 4
clear_flg:
	.zero	4
	.globl	ratio
	.align 8
	.type	ratio, @object
	.size	ratio, 8
ratio:
	.zero	8
	.globl	checkpoint
	.data
	.align 8
	.type	checkpoint, @object
	.size	checkpoint, 8
checkpoint:
	.quad	10000
	.globl	force
	.bss
	.align 4
	.type	force, @object
	.size	force, 4
force:
	.zero	4
	.globl	ofname
	.align 32
	.type	ofname, @object
	.size	ofname, 100
ofname:
	.zero	100
	.globl	InCnt
	.align 4
	.type	InCnt, @object
	.size	InCnt, 4
InCnt:
	.zero	4
	.globl	apsim_InCnt
	.align 4
	.type	apsim_InCnt, @object
	.size	apsim_InCnt, 4
apsim_InCnt:
	.zero	4
	.globl	InBuff
	.align 8
	.type	InBuff, @object
	.size	InBuff, 8
InBuff:
	.zero	8
	.globl	OutBuff
	.align 8
	.type	OutBuff, @object
	.size	OutBuff, 8
OutBuff:
	.zero	8
	.globl	orig_text_buffer
	.align 32
	.type	orig_text_buffer, @object
	.size	orig_text_buffer, 50
orig_text_buffer:
	.zero	50
	.globl	comp_text_buffer
	.align 32
	.type	comp_text_buffer, @object
	.size	comp_text_buffer, 55
comp_text_buffer:
	.zero	55
	.globl	htab
	.align 32
	.type	htab, @object
	.size	htab, 2056
htab:
	.zero	2056
	.globl	codetab
	.align 32
	.type	codetab, @object
	.size	codetab, 514
codetab:
	.zero	514
	.globl	buf
	.align 16
	.type	buf, @object
	.size	buf, 16
buf:
	.zero	16
	.text
	.globl	main
	.type	main, @function
main:
.LFB0:
	.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], 50
	call	initbuffer
	mov	DWORD PTR maxbits[rip], 16
	mov	eax, DWORD PTR maxbits[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	cdqe
	mov	QWORD PTR maxmaxcode[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR InCnt[rip], eax
	mov	DWORD PTR apsim_InCnt[rip], 53
	lea	rax, orig_text_buffer[rip]
	mov	QWORD PTR InBuff[rip], rax
	lea	rax, comp_text_buffer[rip]
	mov	QWORD PTR OutBuff[rip], rax
	call	compress
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.globl	initbuffer
	.type	initbuffer, @function
initbuffer:
.LFB1:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -12[rbp], 1
	mov	DWORD PTR -8[rbp], 0
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -8[rbp]
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	imul	eax, eax, 133
	add	eax, 81
	movsx	rdx, eax
	imul	rdx, rdx, 271652039
	shr	rdx, 32
	sar	edx, 9
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -12[rbp], edx
	mov	edx, DWORD PTR -12[rbp]
	imul	edx, edx, 8095
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR -12[rbp]
	cdq
	shr	edx, 24
	add	eax, edx
	movzx	eax, al
	sub	eax, edx
	mov	ecx, eax
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rdx, orig_text_buffer[rip]
	mov	BYTE PTR [rax+rdx], cl
	add	DWORD PTR -8[rbp], 1
.L4:
	cmp	DWORD PTR -8[rbp], 49
	jle	.L5
	nop
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE1:
	.size	initbuffer, .-initbuffer
	.local	offset
	.comm	offset,4,4
	.globl	in_count
	.data
	.align 8
	.type	in_count, @object
	.size	in_count, 8
in_count:
	.quad	1
	.globl	bytes_out
	.bss
	.align 8
	.type	bytes_out, @object
	.size	bytes_out, 8
bytes_out:
	.zero	8
	.globl	out_count
	.align 8
	.type	out_count, @object
	.size	out_count, 8
out_count:
	.zero	8
	.text
	.globl	compress
	.type	compress, @function
compress:
.LFB2:
	.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, 24
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	DWORD PTR offset[rip], 0
	mov	QWORD PTR bytes_out[rip], 3
	mov	QWORD PTR out_count[rip], 0
	mov	DWORD PTR clear_flg[rip], 0
	mov	QWORD PTR ratio[rip], 0
	mov	QWORD PTR in_count[rip], 1
	mov	QWORD PTR checkpoint[rip], 10000
	mov	DWORD PTR n_bits[rip], 9
	mov	eax, DWORD PTR n_bits[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	cdqe
	mov	QWORD PTR maxcode[rip], rax
	mov	eax, DWORD PTR block_compress[rip]
	test	eax, eax
	je	.L7
	mov	eax, 257
	jmp	.L8
.L7:
	mov	eax, 256
.L8:
	mov	QWORD PTR free_ent[rip], rax
	call	getbyte
	mov	r14d, eax
	mov	r13d, 0
	mov	r12, QWORD PTR hsize[rip]
	jmp	.L9
.L10:
	add	r13d, 1
	add	r12, r12
.L9:
	cmp	r12, 65535
	jle	.L10
	mov	eax, 8
	sub	eax, r13d
	mov	r13d, eax
	mov	r15, QWORD PTR hsize[rip]
	mov	rdi, r15
	call	cl_hash
	jmp	.L11
.L20:
	mov	DWORD PTR -52[rbp], 0
	call	getbyte
	mov	esi, eax
	mov	edi, esi
	mov	rax, QWORD PTR in_count[rip]
	add	rax, 1
	mov	QWORD PTR in_count[rip], rax
	movsx	rdx, esi
	mov	eax, DWORD PTR maxbits[rip]
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	lea	r12, [r14+rax]
	mov	eax, esi
	mov	ecx, r13d
	sal	eax, cl
	cdqe
	mov	rbx, r14
	xor	rbx, rax
	lea	rax, 0[0+rbx*8]
	lea	rdx, htab[rip]
	mov	rax, QWORD PTR [rax+rdx]
	cmp	r12, rax
	jne	.L12
	lea	rdx, [rbx+rbx]
	lea	rax, codetab[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	r14d, ax
	jmp	.L11
.L12:
	lea	rax, 0[0+rbx*8]
	lea	rdx, htab[rip]
	mov	rax, QWORD PTR [rax+rdx]
	test	rax, rax
	js	.L23
	mov	eax, r15d
	mov	edx, ebx
	sub	eax, edx
	mov	r14d, eax
	test	rbx, rbx
	jne	.L24
	mov	r14d, 1
	jmp	.L18
.L24:
	nop
.L15:
.L18:
	movsx	rax, r14d
	sub	rbx, rax
	test	rbx, rbx
	jns	.L16
	add	rbx, r15
.L16:
	lea	rax, 0[0+rbx*8]
	lea	rdx, htab[rip]
	mov	rax, QWORD PTR [rax+rdx]
	cmp	r12, rax
	jne	.L17
	lea	rdx, [rbx+rbx]
	lea	rax, codetab[rip]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	r14d, ax
	jmp	.L11
.L17:
	lea	rax, 0[0+rbx*8]
	lea	rdx, htab[rip]
	mov	rax, QWORD PTR [rax+rdx]
	test	rax, rax
	jle	.L25
	add	DWORD PTR -52[rbp], 1
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR in_count[rip]
	cmp	rdx, rax
	jge	.L25
	jmp	.L18
.L23:
	nop
	jmp	.L14
.L25:
	nop
.L14:
	mov	rax, QWORD PTR out_count[rip]
	add	rax, 1
	mov	QWORD PTR out_count[rip], rax
	mov	eax, edi
	movsx	r14, eax
	mov	rdx, QWORD PTR free_ent[rip]
	mov	rax, QWORD PTR maxmaxcode[rip]
	cmp	rdx, rax
	jge	.L19
	mov	rax, QWORD PTR free_ent[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR free_ent[rip], rdx
	mov	ecx, eax
	lea	rax, [rbx+rbx]
	lea	rdx, codetab[rip]
	mov	WORD PTR [rax+rdx], cx
	lea	rdx, 0[0+rbx*8]
	lea	rax, htab[rip]
	mov	QWORD PTR [rdx+rax], r12
	jmp	.L11
.L19:
	mov	rdx, QWORD PTR in_count[rip]
	mov	rax, QWORD PTR checkpoint[rip]
	cmp	rdx, rax
	jl	.L11
	mov	eax, DWORD PTR block_compress[rip]
	test	eax, eax
	je	.L11
	call	cl_block
.L11:
	mov	eax, DWORD PTR InCnt[rip]
	test	eax, eax
	jg	.L20
	mov	rdx, QWORD PTR bytes_out[rip]
	mov	rax, QWORD PTR in_count[rip]
	cmp	rdx, rax
	jle	.L26
	mov	DWORD PTR exit_stat[rip], 2
	nop
.L26:
	nop
	add	rsp, 24
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE2:
	.size	compress, .-compress
	.globl	cl_block
	.type	cl_block, @function
cl_block:
.LFB3:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 8
	.cfi_offset 3, -24
	mov	rax, QWORD PTR in_count[rip]
	add	rax, 10000
	mov	QWORD PTR checkpoint[rip], rax
	mov	rax, QWORD PTR in_count[rip]
	cmp	rax, 8388607
	jle	.L28
	mov	rax, QWORD PTR bytes_out[rip]
	sar	rax, 8
	mov	rbx, rax
	test	rbx, rbx
	jne	.L29
	mov	ebx, 2147483647
	jmp	.L30
.L29:
	mov	rax, QWORD PTR in_count[rip]
	cqo
	idiv	rbx
	mov	rbx, rax
	jmp	.L30
.L28:
	mov	rax, QWORD PTR in_count[rip]
	sal	rax, 8
	mov	rcx, QWORD PTR bytes_out[rip]
	cqo
	idiv	rcx
	mov	rbx, rax
.L30:
	mov	rax, QWORD PTR ratio[rip]
	cmp	rbx, rax
	jle	.L31
	mov	QWORD PTR ratio[rip], rbx
	jmp	.L33
.L31:
	mov	QWORD PTR ratio[rip], 0
	mov	rax, QWORD PTR hsize[rip]
	mov	rdi, rax
	call	cl_hash
	mov	QWORD PTR free_ent[rip], 257
	mov	DWORD PTR clear_flg[rip], 1
	mov	edi, 256
	call	output
.L33:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE3:
	.size	cl_block, .-cl_block
	.globl	cl_hash
	.type	cl_hash, @function
cl_hash:
.LFB4:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -32[rbp], rdi
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 0[0+rax*8]
	lea	rax, htab[rip]
	lea	rbx, [rdx+rax]
	mov	r12, -1
	mov	rax, QWORD PTR -32[rbp]
	lea	r13, -16[rax]
.L35:
	lea	rax, -128[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -120[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -112[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -104[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -96[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -88[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -80[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -72[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -64[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -56[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -48[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -40[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -32[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -24[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -16[rbx]
	mov	QWORD PTR [rax], r12
	lea	rax, -8[rbx]
	mov	QWORD PTR [rax], r12
	add	rbx, -128
	sub	r13, 16
	test	r13, r13
	jns	.L35
	add	r13, 16
	jmp	.L36
.L37:
	sub	rbx, 8
	mov	QWORD PTR [rbx], r12
	sub	r13, 1
.L36:
	test	r13, r13
	jg	.L37
	nop
	nop
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE4:
	.size	cl_hash, .-cl_hash
	.globl	getbyte
	.type	getbyte, @function
getbyte:
.LFB5:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR InCnt[rip]
	test	eax, eax
	jle	.L39
	mov	eax, DWORD PTR apsim_InCnt[rip]
	lea	edx, -1[rax]
	mov	DWORD PTR apsim_InCnt[rip], edx
	test	eax, eax
	jle	.L39
	mov	eax, DWORD PTR InCnt[rip]
	sub	eax, 1
	mov	DWORD PTR InCnt[rip], eax
	mov	rax, QWORD PTR InBuff[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR InBuff[rip], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	jmp	.L40
.L39:
	mov	eax, -1
.L40:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE5:
	.size	getbyte, .-getbyte
	.globl	putbyte
	.type	putbyte, @function
putbyte:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	BYTE PTR -4[rbp], al
	mov	rax, QWORD PTR OutBuff[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR OutBuff[rip], rdx
	movzx	edx, BYTE PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	putbyte, .-putbyte
	.globl	writebytes
	.type	writebytes, @function
writebytes:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	jmp	.L43
.L45:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	ecx, BYTE PTR [rax]
	mov	rax, QWORD PTR OutBuff[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR OutBuff[rip], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -4[rbp], 1
.L43:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -28[rbp]
	jge	.L46
	cmp	DWORD PTR -4[rbp], 15
	jle	.L45
.L46:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	writebytes, .-writebytes
	.globl	lmask
	.data
	.align 8
	.type	lmask, @object
	.size	lmask, 9
lmask:
	.string	"\377\376\374\370\360\340\300\200"
	.globl	rmask
	.align 8
	.type	rmask, @object
	.size	rmask, 9
rmask:
	.string	""
	.ascii	"\001\003\007\017\037?\177\377"
	.text
	.globl	output
	.type	output, @function
output:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 8
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	QWORD PTR -32[rbp], rdi
	mov	r13d, DWORD PTR offset[rip]
	mov	r12d, DWORD PTR n_bits[rip]
	lea	rbx, buf[rip]
	cmp	QWORD PTR -32[rbp], 0
	js	.L48
	mov	eax, r13d
	sar	eax, 3
	cdqe
	add	rbx, rax
	and	r13d, 7
	movzx	ecx, BYTE PTR [rbx]
	movsx	rax, r13d
	lea	rdx, rmask[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	ecx, eax
	mov	edx, ecx
	mov	rax, QWORD PTR -32[rbp]
	mov	ecx, r13d
	sal	rax, cl
	mov	ecx, edx
	or	ecx, eax
	movsx	rax, r13d
	lea	rdx, lmask[rip]
	movzx	eax, BYTE PTR [rax+rdx]
	and	eax, ecx
	mov	BYTE PTR [rbx], al
	add	rbx, 1
	mov	eax, 8
	sub	eax, r13d
	sub	r12d, eax
	mov	eax, 8
	sub	eax, r13d
	mov	ecx, eax
	sar	QWORD PTR -32[rbp], cl
	cmp	r12d, 7
	jle	.L49
	mov	rax, rbx
	lea	rbx, 1[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	BYTE PTR [rax], dl
	sar	QWORD PTR -32[rbp], 8
	sub	r12d, 8
.L49:
	test	r12d, r12d
	je	.L50
	mov	rax, QWORD PTR -32[rbp]
	mov	BYTE PTR [rbx], al
.L50:
	mov	edx, DWORD PTR offset[rip]
	mov	eax, DWORD PTR n_bits[rip]
	add	eax, edx
	mov	DWORD PTR offset[rip], eax
	mov	eax, DWORD PTR n_bits[rip]
	lea	edx, 0[0+rax*8]
	mov	eax, DWORD PTR offset[rip]
	cmp	edx, eax
	jne	.L51
	lea	rbx, buf[rip]
	mov	r12d, DWORD PTR n_bits[rip]
	movsx	rdx, r12d
	mov	rax, QWORD PTR bytes_out[rip]
	add	rax, rdx
	mov	QWORD PTR bytes_out[rip], rax
.L53:
	mov	rax, rbx
	lea	rbx, 1[rax]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	mov	edi, eax
	call	putbyte
	sub	r12d, 1
	test	r12d, r12d
	je	.L52
	lea	rdx, buf[rip]
	mov	rax, rbx
	sub	rax, rdx
	cmp	rax, 15
	jle	.L53
.L52:
	mov	DWORD PTR offset[rip], 0
.L51:
	mov	rdx, QWORD PTR free_ent[rip]
	mov	rax, QWORD PTR maxcode[rip]
	cmp	rdx, rax
	jg	.L54
	mov	eax, DWORD PTR clear_flg[rip]
	test	eax, eax
	jle	.L60
.L54:
	mov	eax, DWORD PTR offset[rip]
	test	eax, eax
	jle	.L56
	mov	eax, DWORD PTR n_bits[rip]
	mov	esi, eax
	lea	rdi, buf[rip]
	call	writebytes
	mov	eax, DWORD PTR n_bits[rip]
	movsx	rdx, eax
	mov	rax, QWORD PTR bytes_out[rip]
	add	rax, rdx
	mov	QWORD PTR bytes_out[rip], rax
.L56:
	mov	DWORD PTR offset[rip], 0
	mov	eax, DWORD PTR clear_flg[rip]
	test	eax, eax
	je	.L57
	mov	DWORD PTR n_bits[rip], 9
	mov	eax, DWORD PTR n_bits[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	cdqe
	mov	QWORD PTR maxcode[rip], rax
	mov	DWORD PTR clear_flg[rip], 0
	jmp	.L60
.L57:
	mov	eax, DWORD PTR n_bits[rip]
	add	eax, 1
	mov	DWORD PTR n_bits[rip], eax
	mov	edx, DWORD PTR n_bits[rip]
	mov	eax, DWORD PTR maxbits[rip]
	cmp	edx, eax
	jne	.L58
	mov	rax, QWORD PTR maxmaxcode[rip]
	mov	QWORD PTR maxcode[rip], rax
	jmp	.L60
.L58:
	mov	eax, DWORD PTR n_bits[rip]
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	eax, edx
	sub	eax, 1
	cdqe
	mov	QWORD PTR maxcode[rip], rax
	jmp	.L60
.L48:
	mov	eax, DWORD PTR offset[rip]
	test	eax, eax
	jle	.L59
	mov	eax, DWORD PTR offset[rip]
	add	eax, 7
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	esi, eax
	lea	rdi, buf[rip]
	call	writebytes
.L59:
	mov	eax, DWORD PTR offset[rip]
	add	eax, 7
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	movsx	rdx, eax
	mov	rax, QWORD PTR bytes_out[rip]
	add	rax, rdx
	mov	QWORD PTR bytes_out[rip], rax
	mov	DWORD PTR offset[rip], 0
.L60:
	nop
	add	rsp, 8
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	output, .-output
	.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	"723890.c"
	.text
	.comm	n_bits,4,4
	.global	maxbits
	.data
	.align	2
	.type	maxbits, %object
	.size	maxbits, 4
maxbits:
	.word	16
	.comm	maxcode,4,4
	.global	maxmaxcode
	.align	2
	.type	maxmaxcode, %object
	.size	maxmaxcode, 4
maxmaxcode:
	.word	65536
	.global	hsize
	.align	2
	.type	hsize, %object
	.size	hsize, 4
hsize:
	.word	257
	.comm	fsize,4,4
	.global	free_ent
	.bss
	.align	2
	.type	free_ent, %object
	.size	free_ent, 4
free_ent:
	.space	4
	.global	exit_stat
	.align	2
	.type	exit_stat, %object
	.size	exit_stat, 4
exit_stat:
	.space	4
	.global	nomagic
	.data
	.align	2
	.type	nomagic, %object
	.size	nomagic, 4
nomagic:
	.word	1
	.global	zcat_flg
	.bss
	.align	2
	.type	zcat_flg, %object
	.size	zcat_flg, 4
zcat_flg:
	.space	4
	.global	quiet
	.data
	.align	2
	.type	quiet, %object
	.size	quiet, 4
quiet:
	.word	1
	.global	block_compress
	.align	2
	.type	block_compress, %object
	.size	block_compress, 4
block_compress:
	.word	128
	.global	clear_flg
	.bss
	.align	2
	.type	clear_flg, %object
	.size	clear_flg, 4
clear_flg:
	.space	4
	.global	ratio
	.align	2
	.type	ratio, %object
	.size	ratio, 4
ratio:
	.space	4
	.global	checkpoint
	.data
	.align	2
	.type	checkpoint, %object
	.size	checkpoint, 4
checkpoint:
	.word	10000
	.global	force
	.bss
	.align	2
	.type	force, %object
	.size	force, 4
force:
	.space	4
	.comm	ofname,100,4
	.comm	InCnt,4,4
	.comm	apsim_InCnt,4,4
	.comm	InBuff,4,4
	.comm	OutBuff,4,4
	.comm	orig_text_buffer,50,4
	.comm	comp_text_buffer,55,4
	.comm	htab,1028,4
	.comm	codetab,514,4
	.comm	buf,16,4
	.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
	mov	r3, #50
	str	r3, [fp, #-8]
	bl	initbuffer
	ldr	r3, .L3
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, .L3
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, .L3+4
	str	r3, [r2]
	ldr	r2, .L3+8
	ldr	r3, [fp, #-8]
	str	r3, [r2]
	ldr	r3, .L3+12
	mov	r2, #53
	str	r2, [r3]
	ldr	r3, .L3+16
	ldr	r2, .L3+20
	str	r2, [r3]
	ldr	r3, .L3+24
	ldr	r2, .L3+28
	str	r2, [r3]
	bl	compress
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L4:
	.align	2
.L3:
	.word	maxbits
	.word	maxmaxcode
	.word	InCnt
	.word	apsim_InCnt
	.word	InBuff
	.word	orig_text_buffer
	.word	OutBuff
	.word	comp_text_buffer
	.size	main, .-main
	.align	2
	.global	initbuffer
	.syntax unified
	.arm
	.fpu softvfp
	.type	initbuffer, %function
initbuffer:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, #1
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L6
.L7:
	ldr	r3, [fp, #-12]
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	mov	r3, r2
	lsl	r3, r3, #5
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	add	r1, r3, #81
	ldr	r3, .L8
	smull	r2, r3, r1, r3
	asr	r2, r3, #9
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	sub	r3, r1, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	rsbs	r2, r3, #0
	and	r3, r3, #255
	and	r2, r2, #255
	rsbpl	r3, r2, #0
	and	r1, r3, #255
	ldr	r2, .L8+4
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L6:
	ldr	r3, [fp, #-12]
	cmp	r3, #49
	ble	.L7
	nop
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L9:
	.align	2
.L8:
	.word	271652039
	.word	orig_text_buffer
	.size	initbuffer, .-initbuffer
	.local	offset
	.comm	offset,4,4
	.global	in_count
	.data
	.align	2
	.type	in_count, %object
	.size	in_count, 4
in_count:
	.word	1
	.comm	bytes_out,4,4
	.global	out_count
	.bss
	.align	2
	.type	out_count, %object
	.size	out_count, 4
out_count:
	.space	4
	.text
	.align	2
	.global	compress
	.syntax unified
	.arm
	.fpu softvfp
	.type	compress, %function
compress:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #8
	mov	r4, #0
	ldr	r3, .L31
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+4
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L31+8
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L31+20
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L31+24
	ldr	r2, .L31+28
	str	r2, [r3]
	ldr	r3, .L31+32
	mov	r2, #9
	str	r2, [r3]
	ldr	r3, .L31+32
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L31+36
	str	r3, [r2]
	ldr	r3, .L31+40
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L31+44
	b	.L12
.L11:
	mov	r3, #256
.L12:
	ldr	r2, .L31+48
	str	r3, [r2]
	bl	getbyte
	mov	r3, r0
	mov	r8, r3
	mov	r6, #0
	ldr	r3, .L31+52
	ldr	r5, [r3]
	b	.L13
.L14:
	add	r6, r6, #1
	lsl	r5, r5, #1
.L13:
	cmp	r5, #65536
	blt	.L14
	rsb	r6, r6, #8
	ldr	r3, .L31+52
	ldr	r7, [r3]
	mov	r0, r7
	bl	cl_hash
	b	.L15
.L24:
	mov	r3, #0
	str	r3, [fp, #-32]
	bl	getbyte
	mov	r3, r0
	mov	r9, r3
	ldr	r3, .L31+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+20
	str	r3, [r2]
	ldr	r3, .L31+56
	ldr	r3, [r3]
	lsl	r3, r9, r3
	add	r5, r8, r3
	lsl	r3, r9, r6
	eor	r4, r8, r3
	ldr	r3, .L31+60
	ldr	r3, [r3, r4, lsl #2]
	cmp	r5, r3
	bne	.L16
	ldr	r2, .L31+64
	lsl	r3, r4, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r8, r3
	b	.L15
.L16:
	ldr	r3, .L31+60
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	blt	.L27
	sub	r8, r7, r4
	cmp	r4, #0
	bne	.L28
	mov	r8, #1
	b	.L22
.L28:
	nop
.L19:
.L22:
	sub	r4, r4, r8
	cmp	r4, #0
	bge	.L20
	add	r4, r4, r7
.L20:
	ldr	r3, .L31+60
	ldr	r3, [r3, r4, lsl #2]
	cmp	r5, r3
	bne	.L21
	ldr	r2, .L31+64
	lsl	r3, r4, #1
	add	r3, r2, r3
	ldrh	r3, [r3]
	mov	r8, r3
	b	.L15
.L21:
	ldr	r3, .L31+60
	ldr	r3, [r3, r4, lsl #2]
	cmp	r3, #0
	ble	.L29
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
	ldr	r3, .L31+20
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bge	.L29
	b	.L22
.L27:
	nop
	b	.L18
.L29:
	nop
.L18:
	ldr	r3, .L31+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L31+8
	str	r3, [r2]
	mov	r8, r9
	ldr	r3, .L31+48
	ldr	r2, [r3]
	ldr	r3, .L31+68
	ldr	r3, [r3]
	cmp	r2, r3
	bge	.L23
	ldr	r3, .L31+48
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L31+48
	str	r2, [r1]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r1, .L31+64
	lsl	r3, r4, #1
	add	r3, r1, r3
	strh	r2, [r3]	@ movhi
	ldr	r3, .L31+60
	str	r5, [r3, r4, lsl #2]
	b	.L15
.L23:
	ldr	r3, .L31+20
	ldr	r2, [r3]
	ldr	r3, .L31+24
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L15
	ldr	r3, .L31+40
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L15
	bl	cl_block
.L15:
	ldr	r3, .L31+72
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L24
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, .L31+20
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L30
	ldr	r3, .L31+76
	mov	r2, #2
	str	r2, [r3]
	nop
.L30:
	nop
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L32:
	.align	2
.L31:
	.word	offset
	.word	bytes_out
	.word	out_count
	.word	clear_flg
	.word	ratio
	.word	in_count
	.word	checkpoint
	.word	10000
	.word	n_bits
	.word	maxcode
	.word	block_compress
	.word	257
	.word	free_ent
	.word	hsize
	.word	maxbits
	.word	htab
	.word	codetab
	.word	maxmaxcode
	.word	InCnt
	.word	exit_stat
	.size	compress, .-compress
	.global	__aeabi_idiv
	.align	2
	.global	cl_block
	.syntax unified
	.arm
	.fpu softvfp
	.type	cl_block, %function
cl_block:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r3, .L40
	ldr	r3, [r3]
	add	r3, r3, #9984
	add	r3, r3, #16
	ldr	r2, .L40+4
	str	r3, [r2]
	ldr	r3, .L40
	ldr	r3, [r3]
	cmp	r3, #8388608
	blt	.L34
	ldr	r3, .L40+8
	ldr	r3, [r3]
	asr	r4, r3, #8
	cmp	r4, #0
	bne	.L35
	mvn	r4, #-2147483648
	b	.L36
.L35:
	ldr	r3, .L40
	ldr	r3, [r3]
	mov	r1, r4
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r4, r3
	b	.L36
.L34:
	ldr	r3, .L40
	ldr	r3, [r3]
	lsl	r3, r3, #8
	ldr	r2, .L40+8
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r4, r3
.L36:
	ldr	r3, .L40+12
	ldr	r3, [r3]
	cmp	r4, r3
	ble	.L37
	ldr	r3, .L40+12
	str	r4, [r3]
	b	.L39
.L37:
	ldr	r3, .L40+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L40+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	cl_hash
	ldr	r3, .L40+20
	ldr	r2, .L40+24
	str	r2, [r3]
	ldr	r3, .L40+28
	mov	r2, #1
	str	r2, [r3]
	mov	r0, #256
	bl	output
.L39:
	nop
	pop	{r4, r5, fp, pc}
.L41:
	.align	2
.L40:
	.word	in_count
	.word	checkpoint
	.word	bytes_out
	.word	ratio
	.word	hsize
	.word	free_ent
	.word	257
	.word	clear_flg
	.size	cl_block, .-cl_block
	.align	2
	.global	cl_hash
	.syntax unified
	.arm
	.fpu softvfp
	.type	cl_hash, %function
cl_hash:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	push	{r4, r5, r6, fp}
	add	fp, sp, #12
	sub	sp, sp, #8
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, .L46
	add	r4, r3, r2
	mvn	r5, #0
	ldr	r3, [fp, #-16]
	sub	r6, r3, #16
.L43:
	sub	r3, r4, #64
	str	r5, [r3]
	sub	r3, r4, #60
	str	r5, [r3]
	sub	r3, r4, #56
	str	r5, [r3]
	sub	r3, r4, #52
	str	r5, [r3]
	sub	r3, r4, #48
	str	r5, [r3]
	sub	r3, r4, #44
	str	r5, [r3]
	sub	r3, r4, #40
	str	r5, [r3]
	sub	r3, r4, #36
	str	r5, [r3]
	sub	r3, r4, #32
	str	r5, [r3]
	sub	r3, r4, #28
	str	r5, [r3]
	sub	r3, r4, #24
	str	r5, [r3]
	sub	r3, r4, #20
	str	r5, [r3]
	sub	r3, r4, #16
	str	r5, [r3]
	sub	r3, r4, #12
	str	r5, [r3]
	sub	r3, r4, #8
	str	r5, [r3]
	sub	r3, r4, #4
	str	r5, [r3]
	sub	r4, r4, #64
	sub	r6, r6, #16
	cmp	r6, #0
	bge	.L43
	add	r6, r6, #16
	b	.L44
.L45:
	sub	r4, r4, #4
	str	r5, [r4]
	sub	r6, r6, #1
.L44:
	cmp	r6, #0
	bgt	.L45
	nop
	nop
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, r6, fp}
	bx	lr
.L47:
	.align	2
.L46:
	.word	htab
	.size	cl_hash, .-cl_hash
	.align	2
	.global	getbyte
	.syntax unified
	.arm
	.fpu softvfp
	.type	getbyte, %function
getbyte:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	ldr	r3, .L51
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L49
	ldr	r3, .L51+4
	ldr	r3, [r3]
	sub	r2, r3, #1
	ldr	r1, .L51+4
	str	r2, [r1]
	cmp	r3, #0
	ble	.L49
	ldr	r3, .L51
	ldr	r3, [r3]
	sub	r3, r3, #1
	ldr	r2, .L51
	str	r3, [r2]
	ldr	r3, .L51+8
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L51+8
	str	r2, [r1]
	ldrb	r3, [r3]	@ zero_extendqisi2
	b	.L50
.L49:
	mvn	r3, #0
.L50:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L52:
	.align	2
.L51:
	.word	InCnt
	.word	apsim_InCnt
	.word	InBuff
	.size	getbyte, .-getbyte
	.align	2
	.global	putbyte
	.syntax unified
	.arm
	.fpu softvfp
	.type	putbyte, %function
putbyte:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	mov	r3, r0
	strb	r3, [fp, #-5]
	ldr	r3, .L54
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L54
	str	r2, [r1]
	ldrb	r2, [fp, #-5]
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L55:
	.align	2
.L54:
	.word	OutBuff
	.size	putbyte, .-putbyte
	.align	2
	.global	writebytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	writebytes, %function
writebytes:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L57
.L59:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L61
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L61
	str	r1, [r0]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L57:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	bge	.L60
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L59
.L60:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L62:
	.align	2
.L61:
	.word	OutBuff
	.size	writebytes, .-writebytes
	.global	lmask
	.data
	.align	2
	.type	lmask, %object
	.size	lmask, 9
lmask:
	.ascii	"\377\376\374\370\360\340\300\200\000"
	.global	rmask
	.align	2
	.type	rmask, %object
	.size	rmask, 9
rmask:
	.ascii	"\000\001\003\007\017\037?\177\377"
	.text
	.align	2
	.global	output
	.syntax unified
	.arm
	.fpu softvfp
	.type	output, %function
output:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #12
	str	r0, [fp, #-24]
	ldr	r3, .L77
	ldr	r6, [r3]
	ldr	r3, .L77+4
	ldr	r4, [r3]
	ldr	r5, .L77+8
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	blt	.L64
	asr	r3, r6, #3
	add	r5, r5, r3
	and	r6, r6, #7
	ldrb	r2, [r5]	@ zero_extendqisi2
	ldr	r3, .L77+12
	ldrb	r3, [r3, r6]	@ zero_extendqisi2
	and	r3, r3, r2
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-24]
	lsl	r3, r3, r6
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, .L77+16
	ldrb	r3, [r3, r6]	@ zero_extendqisi2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, r2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #255
	strb	r3, [r5]
	add	r5, r5, #1
	rsb	r3, r6, #8
	sub	r4, r4, r3
	rsb	r3, r6, #8
	ldr	r2, [fp, #-24]
	asr	r3, r2, r3
	str	r3, [fp, #-24]
	cmp	r4, #7
	ble	.L65
	mov	r3, r5
	add	r5, r3, #1
	ldr	r2, [fp, #-24]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-24]
	asr	r3, r3, #8
	str	r3, [fp, #-24]
	sub	r4, r4, #8
.L65:
	cmp	r4, #0
	beq	.L66
	ldr	r3, [fp, #-24]
	and	r3, r3, #255
	strb	r3, [r5]
.L66:
	ldr	r3, .L77
	ldr	r2, [r3]
	ldr	r3, .L77+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L77
	str	r3, [r2]
	ldr	r3, .L77+4
	ldr	r3, [r3]
	lsl	r2, r3, #3
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L67
	ldr	r5, .L77+8
	ldr	r3, .L77+4
	ldr	r4, [r3]
	ldr	r3, .L77+20
	ldr	r3, [r3]
	add	r3, r4, r3
	ldr	r2, .L77+20
	str	r3, [r2]
.L69:
	mov	r3, r5
	add	r5, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	putbyte
	sub	r4, r4, #1
	cmp	r4, #0
	beq	.L68
	ldr	r3, .L77+8
	sub	r3, r5, r3
	cmp	r3, #15
	ble	.L69
.L68:
	ldr	r3, .L77
	mov	r2, #0
	str	r2, [r3]
.L67:
	ldr	r3, .L77+24
	ldr	r2, [r3]
	ldr	r3, .L77+28
	ldr	r3, [r3]
	cmp	r2, r3
	bgt	.L70
	ldr	r3, .L77+32
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L76
.L70:
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L72
	ldr	r3, .L77+4
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L77+8
	bl	writebytes
	ldr	r3, .L77+20
	ldr	r2, [r3]
	ldr	r3, .L77+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L77+20
	str	r3, [r2]
.L72:
	ldr	r3, .L77
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L77+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L77+4
	mov	r2, #9
	str	r2, [r3]
	ldr	r3, .L77+4
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L77+28
	str	r3, [r2]
	ldr	r3, .L77+32
	mov	r2, #0
	str	r2, [r3]
	b	.L76
.L73:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L77+4
	str	r3, [r2]
	ldr	r3, .L77+4
	ldr	r2, [r3]
	ldr	r3, .L77+36
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L74
	ldr	r3, .L77+40
	ldr	r3, [r3]
	ldr	r2, .L77+28
	str	r3, [r2]
	b	.L76
.L74:
	ldr	r3, .L77+4
	ldr	r3, [r3]
	mov	r2, #1
	lsl	r3, r2, r3
	sub	r3, r3, #1
	ldr	r2, .L77+28
	str	r3, [r2]
	b	.L76
.L64:
	ldr	r3, .L77
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L75
	ldr	r3, .L77
	ldr	r3, [r3]
	add	r3, r3, #7
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r1, r3
	ldr	r0, .L77+8
	bl	writebytes
.L75:
	ldr	r3, .L77
	ldr	r3, [r3]
	add	r3, r3, #7
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	mov	r2, r3
	ldr	r3, .L77+20
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L77+20
	str	r3, [r2]
	ldr	r3, .L77
	mov	r2, #0
	str	r2, [r3]
.L76:
	nop
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L78:
	.align	2
.L77:
	.word	offset
	.word	n_bits
	.word	buf
	.word	rmask
	.word	lmask
	.word	bytes_out
	.word	free_ent
	.word	maxcode
	.word	clear_flg
	.word	maxbits
	.word	maxmaxcode
	.size	output, .-output
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
