	.file	"44561.c"
	.intel_syntax noprefix
	.text
	.globl	MiniLZ_Decode
	.type	MiniLZ_Decode, @function
MiniLZ_Decode:
.LFB6:
	.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 -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	DWORD PTR -32[rbp], 0
.L14:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 256
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	ah, -1
	mov	DWORD PTR -32[rbp], eax
.L2:
	mov	eax, DWORD PTR -32[rbp]
	and	eax, 1
	test	eax, eax
	je	.L3
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 192
	test	eax, eax
	jne	.L4
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -40[rbp]
	sal	eax, 4
	and	eax, 768
	or	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 15
	add	eax, 3
	mov	DWORD PTR -40[rbp], eax
	jmp	.L5
.L4:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 192
	cmp	eax, 64
	jne	.L6
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	add	QWORD PTR -24[rbp], 2
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, 0[0+rax*4]
	mov	eax, DWORD PTR -36[rbp]
	sar	eax, 14
	or	eax, edx
	movzx	eax, al
	add	eax, 3
	mov	DWORD PTR -40[rbp], eax
	and	DWORD PTR -36[rbp], 16383
	jmp	.L5
.L6:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 192
	cmp	eax, 128
	jne	.L7
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -28[rbp]
	sal	eax, 4
	and	eax, 768
	or	eax, edx
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 15
	mov	DWORD PTR -36[rbp], eax
	jmp	.L5
.L7:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 240
	cmp	eax, 192
	jne	.L8
	mov	eax, DWORD PTR -40[rbp]
	sal	eax, 24
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, edx
	mov	DWORD PTR -28[rbp], eax
	add	QWORD PTR -24[rbp], 3
	mov	eax, DWORD PTR -28[rbp]
	sar	eax, 18
	and	eax, 1023
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	and	eax, 262143
	mov	DWORD PTR -36[rbp], eax
	jmp	.L5
.L8:
	mov	eax, DWORD PTR -40[rbp]
	and	eax, 240
	cmp	eax, 208
	jne	.L5
	mov	eax, DWORD PTR -40[rbp]
	sal	eax, 8
	and	eax, 3840
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -24[rbp], rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	or	eax, ecx
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 16
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sal	eax, 8
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	mov	DWORD PTR -36[rbp], eax
	add	QWORD PTR -24[rbp], 3
.L5:
	cmp	DWORD PTR -40[rbp], 0
	je	.L17
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	neg	rax
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	jmp	.L11
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -16[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
.L11:
	mov	eax, DWORD PTR -40[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -40[rbp], edx
	test	eax, eax
	jne	.L12
	sar	DWORD PTR -32[rbp]
	jmp	.L13
.L3:
	mov	rdx, QWORD PTR -24[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -16[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	sar	DWORD PTR -32[rbp]
.L13:
	jmp	.L14
.L17:
	nop
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -64[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	MiniLZ_Decode, .-MiniLZ_Decode
	.globl	MiniLZ_Lookup
	.type	MiniLZ_Lookup, @function
MiniLZ_Lookup:
.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, 8
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -100[rbp], edx
	mov	QWORD PTR -112[rbp], rcx
	mov	QWORD PTR -120[rbp], r8
	mov	QWORD PTR -128[rbp], r9
	mov	DWORD PTR -56[rbp], 18
	mov	DWORD PTR -52[rbp], 256
	mov	DWORD PTR -48[rbp], 64
	mov	DWORD PTR -44[rbp], 64
	mov	DWORD PTR -40[rbp], 258
	mov	DWORD PTR -36[rbp], 16
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	edx, eax, 251
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	imul	edx, eax, 251
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	and	eax, 4095
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -112[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	DWORD PTR -68[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -60[rbp], 1024
	jmp	.L19
.L28:
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, 1023
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jnb	.L21
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L21
.L23:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
.L21:
	mov	rax, QWORD PTR -16[rbp]
	cmp	rax, QWORD PTR -8[rbp]
	jnb	.L22
	mov	rax, QWORD PTR -24[rbp]
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	dl, al
	je	.L23
.L22:
	mov	rax, QWORD PTR -16[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -68[rbp]
	jg	.L24
	cmp	DWORD PTR -68[rbp], 0
	jne	.L25
.L24:
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -56[rbp]
	jl	.L26
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -52[rbp]
	jle	.L26
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -48[rbp]
	jl	.L26
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jle	.L26
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -28[rbp]
	cmp	eax, DWORD PTR -40[rbp]
	jl	.L26
	mov	eax, DWORD PTR -60[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jle	.L26
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -60[rbp], eax
.L26:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -64[rbp], eax
.L25:
	mov	eax, DWORD PTR -100[rbp]
	sub	eax, DWORD PTR -72[rbp]
	cdqe
	movzx	eax, ax
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -120[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -72[rbp], eax
.L19:
	cmp	QWORD PTR -24[rbp], 0
	je	.L27
	cmp	DWORD PTR -72[rbp], 65535
	jg	.L27
	mov	eax, DWORD PTR -60[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -60[rbp], edx
	test	eax, eax
	jne	.L28
.L27:
	mov	rax, QWORD PTR -128[rbp]
	mov	edx, DWORD PTR -68[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR 16[rbp]
	mov	edx, DWORD PTR -64[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	MiniLZ_Lookup, .-MiniLZ_Lookup
	.globl	MiniLZ_Encode
	.type	MiniLZ_Encode, @function
MiniLZ_Encode:
.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, 112
	mov	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	DWORD PTR -100[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -56[rbp], 0
	jmp	.L30
.L31:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, chain.1[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -56[rbp], 1
.L30:
	cmp	DWORD PTR -56[rbp], 65535
	jle	.L31
	mov	DWORD PTR -56[rbp], 0
	jmp	.L32
.L33:
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, hash.0[rip]
	mov	QWORD PTR [rdx+rax], 0
	add	DWORD PTR -56[rbp], 1
.L32:
	cmp	DWORD PTR -56[rbp], 4095
	jle	.L33
	mov	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -100[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -88[rbp]
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -44[rbp], 0
	mov	DWORD PTR -72[rbp], 0
	mov	DWORD PTR -68[rbp], 0
	jmp	.L34
.L45:
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rdi, 1[rax]
	lea	rsi, -64[rbp]
	mov	edx, DWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, -60[rbp]
	push	rcx
	mov	r9, rsi
	lea	r8, chain.1[rip]
	lea	rcx, hash.0[rip]
	mov	rsi, rax
	call	MiniLZ_Lookup
	add	rsp, 8
	mov	eax, DWORD PTR -72[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -64[rbp]
	cmp	edx, eax
	jge	.L35
	mov	DWORD PTR -72[rbp], 0
.L35:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 2
	jle	.L36
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 16383
	jle	.L37
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 7
	jle	.L36
.L37:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 18
	jg	.L38
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 1023
	jg	.L38
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -68[rbp]
	sar	eax, 4
	and	eax, 48
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ecx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 15
	jg	.L40
	mov	eax, DWORD PTR -68[rbp]
	or	eax, -128
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	sar	eax, 4
	and	eax, 48
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ecx, DWORD PTR -72[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L39
.L40:
	mov	eax, DWORD PTR -72[rbp]
	cmp	eax, 258
	jg	.L41
	mov	eax, DWORD PTR -68[rbp]
	cmp	eax, 16383
	jg	.L41
	mov	eax, DWORD PTR -72[rbp]
	sub	eax, 3
	mov	DWORD PTR -52[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	sar	eax, 2
	and	eax, 63
	or	eax, 64
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -68[rbp]
	sar	eax, 8
	and	eax, 63
	mov	edx, eax
	mov	eax, DWORD PTR -52[rbp]
	sal	eax, 6
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ecx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	jmp	.L39
.L41:
	mov	eax, DWORD PTR -72[rbp]
	sar	eax, 6
	and	eax, 15
	or	eax, -64
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -68[rbp]
	sar	eax, 16
	and	eax, 3
	mov	edx, eax
	mov	eax, DWORD PTR -72[rbp]
	sal	eax, 2
	mov	ecx, edx
	or	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -68[rbp]
	sar	eax, 8
	mov	ecx, eax
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
	mov	ecx, DWORD PTR -68[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	edx, ecx
	mov	BYTE PTR [rax], dl
.L39:
	mov	eax, DWORD PTR -72[rbp]
	mov	DWORD PTR -52[rbp], eax
	jmp	.L42
.L43:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	edx, eax, 251
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	imul	edx, eax, 251
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	and	eax, 4095
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -48[rbp], edx
	movzx	edx, ax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, hash.0[rip]
	mov	rax, QWORD PTR [rcx+rax]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, chain.1[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -40[rbp], rdx
	mov	edx, DWORD PTR -56[rbp]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, hash.0[rip]
	mov	QWORD PTR [rcx+rdx], rax
.L42:
	mov	eax, DWORD PTR -52[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -52[rbp], edx
	test	eax, eax
	jne	.L43
	mov	rax, QWORD PTR -40[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	edi, eax
	lea	rcx, -72[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -68[rbp]
	push	rdx
	mov	r9, rcx
	lea	r8, chain.1[rip]
	lea	rcx, hash.0[rip]
	mov	edx, edi
	mov	rdi, rax
	call	MiniLZ_Lookup
	add	rsp, 8
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	ecx, eax
	mov	eax, edx
	or	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	cmp	DWORD PTR -44[rbp], 7
	jle	.L34
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L34
.L36:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	imul	edx, eax, 251
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	imul	edx, eax, 251
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	add	eax, edx
	and	eax, 4095
	mov	DWORD PTR -56[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	movzx	edx, ax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rax, hash.0[rip]
	mov	rax, QWORD PTR [rcx+rax]
	movsx	rdx, edx
	lea	rcx, 0[0+rdx*8]
	lea	rdx, chain.1[rip]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -56[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	lea	rdx, hash.0[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rcx+rdx], rax
	mov	eax, DWORD PTR -64[rbp]
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -60[rbp]
	mov	DWORD PTR -68[rbp], eax
	mov	rdx, QWORD PTR -40[rbp]
	lea	rax, 1[rdx]
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	lea	rcx, 1[rax]
	mov	QWORD PTR -32[rbp], rcx
	movzx	edx, BYTE PTR [rdx]
	mov	BYTE PTR [rax], dl
	add	DWORD PTR -44[rbp], 1
	cmp	DWORD PTR -44[rbp], 7
	jle	.L34
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -44[rbp], 0
.L34:
	mov	rax, QWORD PTR -40[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jb	.L45
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	BYTE PTR [rax], -128
	mov	rax, QWORD PTR -32[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -32[rbp], rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -44[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -44[rbp], edx
	mov	edx, 1
	mov	ecx, eax
	sal	edx, cl
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	ecx, eax
	mov	eax, edx
	or	eax, ecx
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -96[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	MiniLZ_Encode, .-MiniLZ_Encode
	.globl	MiniLZ_DataAdler32
	.type	MiniLZ_DataAdler32, @function
MiniLZ_DataAdler32:
.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 -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	DWORD PTR -48[rbp], edx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -48[rbp]
	and	eax, 65535
	mov	DWORD PTR -16[rbp], eax
	mov	eax, DWORD PTR -48[rbp]
	shr	eax, 16
	mov	DWORD PTR -12[rbp], eax
	mov	DWORD PTR -20[rbp], 0
	jmp	.L49
.L50:
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2146992015
	shr	rdx, 32
	add	edx, eax
	sar	edx, 15
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -16[rbp], edx
	mov	edx, DWORD PTR -16[rbp]
	imul	edx, edx, 65521
	sub	eax, edx
	mov	DWORD PTR -16[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	add	eax, edx
	movsx	rdx, eax
	imul	rdx, rdx, -2146992015
	shr	rdx, 32
	add	edx, eax
	sar	edx, 15
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	mov	DWORD PTR -12[rbp], edx
	mov	edx, DWORD PTR -12[rbp]
	imul	edx, edx, 65521
	sub	eax, edx
	mov	DWORD PTR -12[rbp], eax
	add	DWORD PTR -20[rbp], 1
.L49:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, DWORD PTR -44[rbp]
	jl	.L50
	mov	eax, DWORD PTR -12[rbp]
	sal	eax, 16
	mov	edx, eax
	mov	eax, DWORD PTR -16[rbp]
	add	eax, edx
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	MiniLZ_DataAdler32, .-MiniLZ_DataAdler32
	.section	.rodata
.LC0:
	.string	"rb"
	.text
	.globl	MiniLZ_LoadFile
	.type	MiniLZ_LoadFile, @function
MiniLZ_LoadFile:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L53
	mov	eax, 0
	jmp	.L54
.L53:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	ftell@PLT
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	fseek@PLT
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 16
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	eax, DWORD PTR -20[rbp]
	add	eax, 16
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
	cmp	QWORD PTR -48[rbp], 0
	je	.L55
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L55:
	mov	rax, QWORD PTR -8[rbp]
.L54:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	MiniLZ_LoadFile, .-MiniLZ_LoadFile
	.section	.rodata
	.align 8
.LC1:
	.string	"usage: %s mode infile outfile\n"
.LC2:
	.string	"\tmode:"
.LC3:
	.string	"\t-c compress"
.LC4:
	.string	"\t-d decompress"
.LC5:
	.string	"-c"
.LC6:
	.string	"load %d %08X\n"
.LC7:
	.string	"%d -> %d\n"
.LC8:
	.string	"%d -> %d  %08X\n"
.LC9:
	.string	"-d"
	.text
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -52[rbp], 2
	jg	.L57
	mov	rax, QWORD PTR -64[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC2[rip]
	call	puts@PLT
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, -1
	call	exit@PLT
.L57:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L58
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -36[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	MiniLZ_LoadFile
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	MiniLZ_DataAdler32
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -32[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -36[rbp]
	add	eax, eax
	mov	eax, eax
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rcx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	MiniLZ_Encode
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	MiniLZ_Decode
	mov	DWORD PTR -36[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	esi, ecx
	mov	rdi, rax
	call	MiniLZ_DataAdler32
	mov	DWORD PTR -32[rbp], eax
	mov	edx, DWORD PTR -36[rbp]
	mov	ecx, DWORD PTR -32[rbp]
	mov	eax, DWORD PTR -28[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	jmp	.L60
.L58:
	mov	rax, QWORD PTR -64[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	mov	eax, 0
.L60:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.local	chain.1
	.comm	chain.1,524288,32
	.local	hash.0
	.comm	hash.0,32768,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	"44561.c"
	.text
	.align	2
	.global	MiniLZ_Decode
	.syntax unified
	.arm
	.fpu softvfp
	.type	MiniLZ_Decode, %function
MiniLZ_Decode:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-12]
.L14:
	ldr	r3, [fp, #-12]
	and	r3, r3, #256
	cmp	r3, #0
	bne	.L2
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r3, #65280
	str	r3, [fp, #-12]
.L2:
	ldr	r3, [fp, #-12]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L3
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	and	r3, r3, #192
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #4
	and	r3, r3, #768
	orr	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	and	r3, r3, #15
	add	r3, r3, #3
	str	r3, [fp, #-20]
	b	.L5
.L4:
	ldr	r3, [fp, #-20]
	and	r3, r3, #192
	cmp	r3, #64
	bne	.L6
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldr	r2, [fp, #-32]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	add	r3, r3, #2
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #2
	ldr	r3, [fp, #-16]
	asr	r3, r3, #14
	orr	r3, r2, r3
	and	r3, r3, #255
	add	r3, r3, #3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #18
	lsr	r3, r3, #18
	str	r3, [fp, #-16]
	b	.L5
.L6:
	ldr	r3, [fp, #-20]
	and	r3, r3, #192
	cmp	r3, #128
	bne	.L7
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r2, r3, #1
	str	r2, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #4
	and	r3, r3, #768
	orr	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	and	r3, r3, #15
	str	r3, [fp, #-16]
	b	.L5
.L7:
	ldr	r3, [fp, #-20]
	and	r3, r3, #240
	cmp	r3, #192
	bne	.L8
	ldr	r3, [fp, #-20]
	lsl	r2, r3, #24
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #16
	orr	r2, r2, r3
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	orr	r3, r3, r2
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	add	r3, r3, #3
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-8]
	asr	r3, r3, #18
	lsl	r3, r3, #22
	lsr	r3, r3, #22
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	bic	r3, r3, #-16777216
	bic	r3, r3, #16515072
	str	r3, [fp, #-16]
	b	.L5
.L8:
	ldr	r3, [fp, #-20]
	and	r3, r3, #240
	cmp	r3, #208
	bne	.L5
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #8
	and	r2, r3, #3840
	ldr	r3, [fp, #-32]
	add	r1, r3, #1
	str	r1, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	orr	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r2, r3, #16
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsl	r3, r3, #8
	add	r3, r2, r3
	ldr	r2, [fp, #-32]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	add	r3, r3, #3
	str	r3, [fp, #-32]
.L5:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L17
	ldr	r3, [fp, #-16]
	rsb	r3, r3, #0
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	str	r3, [fp, #-24]
	b	.L11
.L12:
	ldr	r2, [fp, #-24]
	add	r3, r2, #1
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
.L11:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-12]
	asr	r3, r3, #1
	str	r3, [fp, #-12]
	b	.L13
.L3:
	ldr	r2, [fp, #-32]
	add	r3, r2, #1
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-28]
	add	r1, r3, #1
	str	r1, [fp, #-28]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-12]
	asr	r3, r3, #1
	str	r3, [fp, #-12]
.L13:
	b	.L14
.L17:
	nop
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-44]
	sub	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	MiniLZ_Decode, .-MiniLZ_Decode
	.align	2
	.global	MiniLZ_Lookup
	.syntax unified
	.arm
	.fpu softvfp
	.type	MiniLZ_Lookup, %function
MiniLZ_Lookup:
	@ args = 12, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #84
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	str	r3, [fp, #-84]
	mov	r3, #18
	str	r3, [fp, #-36]
	mov	r3, #256
	str	r3, [fp, #-32]
	mov	r3, #64
	str	r3, [fp, #-28]
	mov	r3, #64
	str	r3, [fp, #-24]
	ldr	r3, .L29
	str	r3, [fp, #-20]
	mov	r3, #16
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-72]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-72]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-72]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #1024
	str	r3, [fp, #-40]
	b	.L19
.L28:
	ldr	r3, [fp, #-72]
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1020
	add	r3, r3, #3
	str	r3, [fp, #-56]
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bcs	.L21
	ldr	r3, [fp, #-76]
	str	r3, [fp, #-56]
	b	.L21
.L23:
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L21:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-56]
	cmp	r2, r3
	bcs	.L22
	ldr	r3, [fp, #-64]
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-60]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r2, r3
	beq	.L23
.L22:
	ldr	r2, [fp, #-60]
	ldr	r3, [fp, #-72]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bgt	.L24
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bne	.L25
.L24:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-36]
	cmp	r2, r3
	blt	.L26
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-32]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L26
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-40]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	blt	.L26
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	ble	.L26
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-40]
.L26:
	ldr	r3, [fp, #-8]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	str	r3, [fp, #-44]
.L25:
	ldr	r2, [fp, #-80]
	ldr	r3, [fp, #-52]
	sub	r3, r2, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	lsl	r3, r3, #2
	ldr	r2, [fp, #4]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-52]
.L19:
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-52]
	cmp	r3, #65536
	bge	.L27
	ldr	r3, [fp, #-40]
	sub	r2, r3, #1
	str	r2, [fp, #-40]
	cmp	r3, #0
	bne	.L28
.L27:
	ldr	r3, [fp, #8]
	ldr	r2, [fp, #-48]
	str	r2, [r3]
	ldr	r3, [fp, #12]
	ldr	r2, [fp, #-44]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L30:
	.align	2
.L29:
	.word	258
	.size	MiniLZ_Lookup, .-MiniLZ_Lookup
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	MiniLZ_Encode
	.syntax unified
	.arm
	.fpu softvfp
	.type	MiniLZ_Encode, %function
MiniLZ_Encode:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	str	r2, [fp, #-72]
	ldr	r3, .L50
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L32
.L33:
	ldr	r2, .L50+4
	ldr	r3, [fp, #-28]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L32:
	ldr	r3, [fp, #-28]
	cmp	r3, #65536
	blt	.L33
	mov	r3, #0
	str	r3, [fp, #-28]
	b	.L34
.L35:
	ldr	r2, .L50+8
	ldr	r3, [fp, #-28]
	mov	r1, #0
	str	r1, [r2, r3, lsl #2]
	ldr	r3, [fp, #-28]
	add	r3, r3, #1
	str	r3, [fp, #-28]
.L34:
	ldr	r3, [fp, #-28]
	cmp	r3, #4096
	blt	.L35
	ldr	r3, [fp, #-64]
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	b	.L36
.L47:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	add	r0, r3, #1
	sub	r3, fp, #44
	str	r3, [sp, #8]
	sub	r3, fp, #48
	str	r3, [sp, #4]
	ldr	r3, .L50+4
	str	r3, [sp]
	ldr	r3, .L50+8
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	bl	MiniLZ_Lookup
	ldr	r3, [fp, #-56]
	add	r2, r3, #1
	ldr	r3, [fp, #-48]
	cmp	r2, r3
	bge	.L37
	mov	r3, #0
	str	r3, [fp, #-56]
.L37:
	ldr	r3, [fp, #-56]
	cmp	r3, #2
	ble	.L38
	ldr	r3, [fp, #-52]
	cmp	r3, #16384
	blt	.L39
	ldr	r3, [fp, #-56]
	cmp	r3, #7
	ble	.L38
.L39:
	ldr	r3, [fp, #-56]
	cmp	r3, #18
	bgt	.L40
	ldr	r3, [fp, #-52]
	cmp	r3, #1024
	bge	.L40
	ldr	r3, [fp, #-56]
	and	r3, r3, #255
	sub	r3, r3, #3
	and	r3, r3, #255
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-52]
	asr	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #48
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L41
.L40:
	ldr	r3, [fp, #-52]
	cmp	r3, #15
	bgt	.L42
	ldr	r3, [fp, #-52]
	lsl	r3, r3, #24
	asr	r3, r3, #24
	mvn	r3, r3, lsl #25
	mvn	r3, r3, lsr #25
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-56]
	asr	r3, r3, #4
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #48
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-56]
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L41
.L42:
	ldr	r3, [fp, #-56]
	ldr	r2, .L50+12
	cmp	r3, r2
	bgt	.L43
	ldr	r3, [fp, #-52]
	cmp	r3, #16384
	bge	.L43
	ldr	r3, [fp, #-56]
	sub	r3, r3, #3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	asr	r3, r3, #2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #63
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r3, #64
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	asr	r3, r3, #8
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #63
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-24]
	lsl	r3, r3, #6
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	b	.L41
.L43:
	ldr	r3, [fp, #-56]
	asr	r3, r3, #6
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #15
	lsl	r3, r3, #24
	asr	r3, r3, #24
	mvn	r3, r3, lsl #26
	mvn	r3, r3, lsr #26
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	asr	r3, r3, #16
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r3, r3, #3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-56]
	lsl	r3, r3, #2
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r2, r3, #24
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, [fp, #-52]
	asr	r2, r3, #8
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r2, [fp, #-52]
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	and	r2, r2, #255
	strb	r2, [r3]
.L41:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-24]
	b	.L44
.L45:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	add	r2, r3, #1
	str	r2, [fp, #-20]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r1, .L50+8
	ldr	r2, [fp, #-28]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L50+4
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-40]
	add	r2, r3, #1
	str	r2, [fp, #-40]
	ldr	r1, .L50+8
	ldr	r2, [fp, #-28]
	str	r3, [r1, r2, lsl #2]
.L44:
	ldr	r3, [fp, #-24]
	sub	r2, r3, #1
	str	r2, [fp, #-24]
	cmp	r3, #0
	bne	.L45
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-64]
	sub	r2, r2, r3
	sub	r3, fp, #52
	str	r3, [sp, #8]
	sub	r3, fp, #56
	str	r3, [sp, #4]
	ldr	r3, .L50+4
	str	r3, [sp]
	ldr	r3, .L50+8
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-40]
	bl	MiniLZ_Lookup
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-32]
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #24
	asr	r2, r2, #24
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L36
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L36
.L38:
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r2, r2, #1
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r2, r3, r2
	mov	r3, r2
	lsl	r3, r3, #6
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r3, r3, r2
	ldr	r2, [fp, #-40]
	add	r2, r2, #2
	ldrb	r2, [r2]	@ zero_extendqisi2
	add	r3, r3, r2
	lsl	r3, r3, #20
	lsr	r3, r3, #20
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r1, .L50+8
	ldr	r2, [fp, #-28]
	ldr	r2, [r1, r2, lsl #2]
	ldr	r1, .L50+4
	str	r2, [r1, r3, lsl #2]
	ldr	r1, .L50+8
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	str	r2, [r1, r3, lsl #2]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-52]
	ldr	r2, [fp, #-40]
	add	r3, r2, #1
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-36]
	add	r1, r3, #1
	str	r1, [fp, #-36]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #7
	ble	.L36
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-16]
.L36:
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L47
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	mvn	r2, #127
	strb	r2, [r3]
	ldr	r3, [fp, #-36]
	add	r2, r3, #1
	str	r2, [fp, #-36]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	mov	r2, #1
	lsl	r3, r2, r3
	ldr	r2, [fp, #-32]
	ldrb	r2, [r2]	@ zero_extendqisi2
	lsl	r2, r2, #24
	asr	r2, r2, #24
	lsl	r3, r3, #24
	asr	r3, r3, #24
	orr	r3, r2, r3
	lsl	r3, r3, #24
	asr	r3, r3, #24
	and	r2, r3, #255
	ldr	r3, [fp, #-32]
	strb	r2, [r3]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-68]
	sub	r3, r2, r3
	ldr	r2, .L50
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	.LC0
	.word	chain.5459
	.word	hash.5460
	.word	258
	.size	MiniLZ_Encode, .-MiniLZ_Encode
	.align	2
	.global	MiniLZ_DataAdler32
	.syntax unified
	.arm
	.fpu softvfp
	.type	MiniLZ_DataAdler32, %function
MiniLZ_DataAdler32:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #36
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	lsr	r3, r3, #16
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L53
.L54:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	add	r2, r2, r3
	ldr	r3, .L56
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #15
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #12
	sub	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, .L56
	smull	r1, r3, r2, r3
	add	r3, r3, r2
	asr	r1, r3, #15
	asr	r3, r2, #31
	sub	r1, r1, r3
	mov	r3, r1
	lsl	r3, r3, #12
	sub	r3, r3, r1
	lsl	r3, r3, #4
	add	r3, r3, r1
	sub	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L53:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-28]
	cmp	r2, r3
	blt	.L54
	ldr	r3, [fp, #-12]
	lsl	r2, r3, #16
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L57:
	.align	2
.L56:
	.word	-2146992015
	.size	MiniLZ_DataAdler32, .-MiniLZ_DataAdler32
	.section	.rodata
	.align	2
.LC1:
	.ascii	"rb\000"
	.text
	.align	2
	.global	MiniLZ_LoadFile
	.syntax unified
	.arm
	.fpu softvfp
	.type	MiniLZ_LoadFile, %function
MiniLZ_LoadFile:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r1, .L62
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L59
	mov	r3, #0
	b	.L60
.L59:
	mov	r2, #2
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r0, [fp, #-16]
	bl	ftell
	str	r0, [fp, #-12]
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	fseek
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	mov	r2, r3
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	fread
	ldr	r0, [fp, #-16]
	bl	fclose
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L61
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L61:
	ldr	r3, [fp, #-8]
.L60:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC1
	.size	MiniLZ_LoadFile, .-MiniLZ_LoadFile
	.section	.rodata
	.align	2
.LC2:
	.ascii	"usage: %s mode infile outfile\012\000"
	.align	2
.LC3:
	.ascii	"\011mode:\000"
	.align	2
.LC4:
	.ascii	"\011-c compress\000"
	.align	2
.LC5:
	.ascii	"\011-d decompress\000"
	.align	2
.LC6:
	.ascii	"-c\000"
	.align	2
.LC7:
	.ascii	"load %d %08X\012\000"
	.align	2
.LC8:
	.ascii	"%d -> %d\012\000"
	.align	2
.LC9:
	.ascii	"%d -> %d  %08X\012\000"
	.align	2
.LC10:
	.ascii	"-d\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #2
	bgt	.L65
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L70+4
	bl	printf
	ldr	r0, .L70+8
	bl	puts
	ldr	r0, .L70+12
	bl	puts
	ldr	r0, .L70+16
	bl	puts
	mvn	r0, #0
	bl	exit
.L65:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L70+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L66
	ldr	r3, [fp, #-36]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #28
	mov	r1, r2
	mov	r0, r3
	bl	MiniLZ_LoadFile
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	MiniLZ_DataAdler32
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, .L70+24
	bl	printf
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-24]
	bl	MiniLZ_Encode
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L70+28
	bl	printf
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	MiniLZ_Decode
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	MiniLZ_DataAdler32
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-28]
	ldr	r3, [fp, #-20]
	ldr	r1, [fp, #-12]
	ldr	r0, .L70+32
	bl	printf
	mov	r3, #0
	b	.L68
.L66:
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldr	r1, .L70+36
	mov	r0, r3
	bl	strcmp
	mov	r3, #0
.L68:
	ldr	r2, .L70
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC11
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.local	chain.5459
	.comm	chain.5459,262144,4
	.local	hash.5460
	.comm	hash.5460,16384,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
