	.file	"262901.c"
	.intel_syntax noprefix
	.text
	.globl	ifp
	.bss
	.align 8
	.type	ifp, @object
	.size	ifp, 8
ifp:
	.zero	8
	.globl	ofp
	.align 8
	.type	ofp, @object
	.size	ofp, 8
ofp:
	.zero	8
	.globl	input_name
	.align 8
	.type	input_name, @object
	.size	input_name, 8
input_name:
	.zero	8
	.globl	output_name
	.align 8
	.type	output_name, @object
	.size	output_name, 8
output_name:
	.zero	8
	.globl	input_data
	.align 8
	.type	input_data, @object
	.size	input_data, 8
input_data:
	.zero	8
	.globl	output_data
	.align 8
	.type	output_data, @object
	.size	output_data, 8
output_data:
	.zero	8
	.globl	input_index
	.align 8
	.type	input_index, @object
	.size	input_index, 8
input_index:
	.zero	8
	.globl	output_index
	.align 8
	.type	output_index, @object
	.size	output_index, 8
output_index:
	.zero	8
	.globl	input_size
	.align 8
	.type	input_size, @object
	.size	input_size, 8
input_size:
	.zero	8
	.globl	output_size
	.align 8
	.type	output_size, @object
	.size	output_size, 8
output_size:
	.zero	8
	.globl	partial_counter
	.align 8
	.type	partial_counter, @object
	.size	partial_counter, 8
partial_counter:
	.zero	8
	.globl	bit_mask
	.align 4
	.type	bit_mask, @object
	.size	bit_mask, 4
bit_mask:
	.zero	4
	.globl	bit_value
	.align 4
	.type	bit_value, @object
	.size	bit_value, 4
bit_value:
	.zero	4
	.globl	backtrack
	.align 4
	.type	backtrack, @object
	.size	backtrack, 4
backtrack:
	.zero	4
	.globl	ahead_bit
	.align 4
	.type	ahead_bit, @object
	.size	ahead_bit, 4
ahead_bit:
	.zero	4
	.section	.rodata
	.align 8
.LC0:
	.string	"Error: Truncated input file %s\n"
.LC1:
	.string	"Error: Empty input file %s\n"
	.text
	.globl	read_byte
	.type	read_byte, @function
read_byte:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rdx, QWORD PTR input_index[rip]
	mov	rax, QWORD PTR partial_counter[rip]
	cmp	rdx, rax
	jne	.L2
	mov	QWORD PTR input_index[rip], 0
	mov	rdx, QWORD PTR ifp[rip]
	mov	rax, QWORD PTR input_data[rip]
	mov	rcx, rdx
	mov	edx, 65536
	mov	esi, 1
	mov	rdi, rax
	call	fread@PLT
	mov	QWORD PTR partial_counter[rip], rax
	mov	rdx, QWORD PTR input_size[rip]
	mov	rax, QWORD PTR partial_counter[rip]
	add	rax, rdx
	mov	QWORD PTR input_size[rip], rax
	mov	rax, QWORD PTR partial_counter[rip]
	test	rax, rax
	jne	.L2
	mov	rdx, QWORD PTR input_name[rip]
	mov	rax, QWORD PTR input_size[rip]
	test	rax, rax
	je	.L3
	lea	rax, .LC0[rip]
	jmp	.L4
.L3:
	lea	rax, .LC1[rip]
.L4:
	mov	rcx, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	rdi, rcx
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rcx, QWORD PTR input_data[rip]
	mov	rax, QWORD PTR input_index[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR input_index[rip], rdx
	add	rax, rcx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_byte, .-read_byte
	.globl	read_bit
	.type	read_bit, @function
read_bit:
.LFB7:
	.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 backtrack[rip]
	test	eax, eax
	je	.L7
	mov	DWORD PTR backtrack[rip], 0
	mov	eax, DWORD PTR ahead_bit[rip]
	jmp	.L8
.L7:
	mov	eax, DWORD PTR bit_mask[rip]
	sar	eax
	mov	DWORD PTR bit_mask[rip], eax
	mov	eax, DWORD PTR bit_mask[rip]
	test	eax, eax
	jne	.L9
	mov	DWORD PTR bit_mask[rip], 128
	mov	eax, 0
	call	read_byte
	mov	DWORD PTR bit_value[rip], eax
.L9:
	mov	edx, DWORD PTR bit_value[rip]
	mov	eax, DWORD PTR bit_mask[rip]
	and	eax, edx
	test	eax, eax
	setne	al
	movzx	eax, al
.L8:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_bit, .-read_bit
	.globl	read_interlaced_elias_gamma
	.type	read_interlaced_elias_gamma, @function
read_interlaced_elias_gamma:
.LFB8:
	.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, 40
	.cfi_offset 3, -24
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -20[rbp], 1
	jmp	.L11
.L12:
	mov	eax, DWORD PTR -20[rbp]
	lea	ebx, [rax+rax]
	mov	eax, 0
	call	read_bit
	xor	eax, DWORD PTR -36[rbp]
	or	eax, ebx
	mov	DWORD PTR -20[rbp], eax
.L11:
	mov	eax, 0
	call	read_bit
	test	eax, eax
	je	.L12
	mov	eax, DWORD PTR -20[rbp]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	read_interlaced_elias_gamma, .-read_interlaced_elias_gamma
	.section	.rodata
	.align 8
.LC2:
	.string	"Error: Cannot write output file %s\n"
	.text
	.globl	save_output
	.type	save_output, @function
save_output:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR output_index[rip]
	test	rax, rax
	je	.L17
	mov	rcx, QWORD PTR ofp[rip]
	mov	rdx, QWORD PTR output_index[rip]
	mov	rax, QWORD PTR output_data[rip]
	mov	esi, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	rdx, QWORD PTR output_index[rip]
	cmp	rax, rdx
	je	.L16
	mov	rdx, QWORD PTR output_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rdx, QWORD PTR output_size[rip]
	mov	rax, QWORD PTR output_index[rip]
	add	rax, rdx
	mov	QWORD PTR output_size[rip], rax
	mov	QWORD PTR output_index[rip], 0
.L17:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	save_output, .-save_output
	.globl	write_byte
	.type	write_byte, @function
write_byte:
.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	rcx, QWORD PTR output_data[rip]
	mov	rax, QWORD PTR output_index[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR output_index[rip], rdx
	add	rax, rcx
	mov	edx, DWORD PTR -4[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR output_index[rip]
	cmp	rax, 65536
	jne	.L20
	mov	eax, 0
	call	save_output
.L20:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	write_byte, .-write_byte
	.section	.rodata
	.align 8
.LC3:
	.string	"Error: Invalid data in input file %s\n"
	.text
	.globl	write_bytes
	.type	write_bytes, @function
write_bytes:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	DWORD PTR -24[rbp], esi
	mov	eax, DWORD PTR -20[rbp]
	cdqe
	mov	rcx, QWORD PTR output_size[rip]
	mov	rdx, QWORD PTR output_index[rip]
	add	rdx, rcx
	cmp	rax, rdx
	jbe	.L23
	mov	rdx, QWORD PTR input_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	rax, QWORD PTR output_index[rip]
	mov	edx, DWORD PTR -20[rbp]
	sub	eax, edx
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR output_data[rip]
	cmp	DWORD PTR -4[rbp], 0
	js	.L24
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	jmp	.L25
.L24:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 65536
	cdqe
.L25:
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	edi, eax
	call	write_byte
.L23:
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -24[rbp], edx
	test	eax, eax
	jg	.L26
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	write_bytes, .-write_bytes
	.section	.rodata
.LC4:
	.string	"Error: Insufficient memory\n"
	.align 8
.LC5:
	.string	"Error: Input file %s too long\n"
	.text
	.globl	decompress
	.type	decompress, @function
decompress:
.LFB12:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	DWORD PTR -36[rbp], 1
	mov	DWORD PTR -32[rbp], 0
	mov	DWORD PTR -28[rbp], 0
	mov	edi, 65536
	call	malloc@PLT
	mov	QWORD PTR input_data[rip], rax
	mov	edi, 65536
	call	malloc@PLT
	mov	QWORD PTR output_data[rip], rax
	mov	rax, QWORD PTR input_data[rip]
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR output_data[rip]
	test	rax, rax
	jne	.L29
.L28:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 27
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L29:
	mov	QWORD PTR input_size[rip], 0
	mov	QWORD PTR input_index[rip], 0
	mov	QWORD PTR partial_counter[rip], 0
	mov	QWORD PTR output_index[rip], 0
	mov	QWORD PTR output_size[rip], 0
	mov	DWORD PTR bit_mask[rip], 0
	mov	DWORD PTR backtrack[rip], 0
.L30:
	mov	edi, 0
	call	read_interlaced_elias_gamma
	mov	DWORD PTR -20[rbp], eax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L31
.L32:
	mov	eax, 0
	call	read_byte
	mov	edi, eax
	call	write_byte
	add	DWORD PTR -24[rbp], 1
.L31:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L32
	mov	eax, 0
	call	read_bit
	test	eax, eax
	jne	.L44
	mov	edi, 0
	call	read_interlaced_elias_gamma
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	write_bytes
	mov	eax, 0
	call	read_bit
	test	eax, eax
	jne	.L45
	jmp	.L30
.L44:
	nop
	jmp	.L43
.L45:
	nop
.L34:
.L43:
	mov	eax, 0
	call	read_bit
	test	eax, eax
	jne	.L35
	mov	eax, 0
	call	read_bit
	test	eax, eax
	jne	.L36
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -36[rbp], eax
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -28[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -24[rbp]
	mov	DWORD PTR -36[rbp], eax
.L37:
	mov	edi, 0
	call	read_interlaced_elias_gamma
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	write_bytes
	jmp	.L38
.L35:
	mov	eax, 0
	call	read_bit
	mov	DWORD PTR ahead_bit[rip], eax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR -36[rbp]
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	sete	al
	movzx	eax, al
	mov	edi, eax
	call	read_interlaced_elias_gamma
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 256
	jne	.L39
	mov	eax, 0
	call	save_output
	mov	rdx, QWORD PTR input_index[rip]
	mov	rax, QWORD PTR partial_counter[rip]
	cmp	rdx, rax
	je	.L46
	mov	rdx, QWORD PTR input_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L39:
	mov	eax, DWORD PTR -36[rbp]
	sal	eax, 8
	mov	ebx, eax
	mov	eax, 0
	call	read_byte
	mov	edx, eax
	mov	eax, ebx
	sub	eax, edx
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR backtrack[rip], 1
	mov	edi, 0
	call	read_interlaced_elias_gamma
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	edx, DWORD PTR -20[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, edx
	mov	edi, eax
	call	write_bytes
.L38:
	mov	eax, 0
	call	read_bit
	test	eax, eax
	je	.L30
	jmp	.L43
.L46:
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	decompress, .-decompress
	.section	.rodata
	.align 8
.LC6:
	.string	"DZX5 v2.0: Data decompressor by Einar Saukas"
.LC7:
	.string	"-f"
.LC8:
	.string	"-c"
.LC9:
	.string	"Error: Invalid parameter %s\n"
.LC10:
	.string	".zx5"
	.align 8
.LC11:
	.string	"Error: Cannot infer output filename\n"
	.align 8
.LC12:
	.string	"Usage: %s [-f] [-c] input.zx5 [output]\n  -f      Force overwrite of output file\n  -c      Classic file format (v1.*)\n"
.LC13:
	.string	"rb"
	.align 8
.LC14:
	.string	"Error: Cannot access input file %s\n"
	.align 8
.LC15:
	.string	"Error: Already existing output file %s\n"
.LC16:
	.string	"wb"
	.align 8
.LC17:
	.string	"Error: Cannot create output file %s\n"
	.align 8
.LC18:
	.string	"File decompressed from %lu to %lu bytes!\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	DWORD PTR -8[rbp], 0
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	DWORD PTR -4[rbp], 1
	jmp	.L48
.L53:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L49
	mov	DWORD PTR -12[rbp], 1
	jmp	.L50
.L49:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L51
	mov	DWORD PTR -8[rbp], 1
	jmp	.L50
.L51:
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L50:
	add	DWORD PTR -4[rbp], 1
.L48:
	mov	eax, DWORD PTR -4[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jge	.L52
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	je	.L53
.L52:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 1
	cmp	DWORD PTR -20[rbp], eax
	jne	.L54
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR input_name[rip], rax
	mov	rax, QWORD PTR input_name[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR input_size[rip], rax
	mov	rax, QWORD PTR input_size[rip]
	cmp	rax, 4
	jbe	.L55
	mov	rdx, QWORD PTR input_name[rip]
	mov	rax, QWORD PTR input_size[rip]
	sub	rax, 4
	add	rax, rdx
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L55
	mov	rax, QWORD PTR input_name[rip]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR input_size[rip], rax
	mov	rax, QWORD PTR input_size[rip]
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR output_name[rip], rax
	mov	rdx, QWORD PTR input_name[rip]
	mov	rax, QWORD PTR output_name[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	mov	rdx, QWORD PTR output_name[rip]
	mov	rax, QWORD PTR input_size[rip]
	sub	rax, 4
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L56
.L55:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC11[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	mov	eax, DWORD PTR -4[rbp]
	add	eax, 2
	cmp	DWORD PTR -20[rbp], eax
	jne	.L57
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR input_name[rip], rax
	mov	eax, DWORD PTR -4[rbp]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR output_name[rip], rax
	jmp	.L56
.L57:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	mov	rax, QWORD PTR input_name[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR ifp[rip], rax
	mov	rax, QWORD PTR ifp[rip]
	test	rax, rax
	jne	.L58
	mov	rdx, QWORD PTR input_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L58:
	cmp	DWORD PTR -12[rbp], 0
	jne	.L59
	mov	rax, QWORD PTR output_name[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	fopen@PLT
	test	rax, rax
	je	.L59
	mov	rdx, QWORD PTR output_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L59:
	mov	rax, QWORD PTR output_name[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR ofp[rip], rax
	mov	rax, QWORD PTR ofp[rip]
	test	rax, rax
	jne	.L60
	mov	rdx, QWORD PTR output_name[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L60:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	decompress
	mov	rax, QWORD PTR ifp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR ofp[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	rdx, QWORD PTR output_size[rip]
	mov	rax, QWORD PTR input_size[rip]
	mov	rsi, rax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"262901.c"
	.text
	.comm	ifp,4,4
	.comm	ofp,4,4
	.comm	input_name,4,4
	.comm	output_name,4,4
	.comm	input_data,4,4
	.comm	output_data,4,4
	.comm	input_index,4,4
	.comm	output_index,4,4
	.comm	input_size,4,4
	.comm	output_size,4,4
	.comm	partial_counter,4,4
	.comm	bit_mask,4,4
	.comm	bit_value,4,4
	.comm	backtrack,4,4
	.comm	ahead_bit,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Error: Truncated input file %s\012\000"
	.align	2
.LC1:
	.ascii	"Error: Empty input file %s\012\000"
	.text
	.align	2
	.global	read_byte
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_byte, %function
read_byte:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L2
	ldr	r3, .L6
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L6+8
	ldr	r0, [r3]
	ldr	r3, .L6+12
	ldr	r3, [r3]
	mov	r2, #65536
	mov	r1, #1
	bl	fread
	mov	r3, r0
	ldr	r2, .L6+4
	str	r3, [r2]
	ldr	r3, .L6+16
	ldr	r2, [r3]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L6+16
	str	r3, [r2]
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L6+20
	ldr	r0, [r3]
	ldr	r3, .L6+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L3
	ldr	r3, .L6+24
	b	.L4
.L3:
	ldr	r3, .L6+28
.L4:
	ldr	r2, .L6+32
	ldr	r2, [r2]
	mov	r1, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, .L6+8
	ldr	r2, [r3]
	ldr	r3, .L6
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L6
	str	r1, [r0]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	pop	{fp, pc}
.L7:
	.align	2
.L6:
	.word	input_index
	.word	partial_counter
	.word	input_data
	.word	ifp
	.word	input_size
	.word	stderr
	.word	.LC0
	.word	.LC1
	.word	input_name
	.size	read_byte, .-read_byte
	.align	2
	.global	read_bit
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_bit, %function
read_bit:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L9
	ldr	r3, .L12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L12+4
	ldr	r3, [r3]
	b	.L10
.L9:
	ldr	r3, .L12+8
	ldr	r3, [r3]
	asr	r3, r3, #1
	ldr	r2, .L12+8
	str	r3, [r2]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L11
	ldr	r3, .L12+8
	mov	r2, #128
	str	r2, [r3]
	bl	read_byte
	mov	r3, r0
	ldr	r2, .L12+12
	str	r3, [r2]
.L11:
	ldr	r3, .L12+12
	ldr	r2, [r3]
	ldr	r3, .L12+8
	ldr	r3, [r3]
	and	r3, r3, r2
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
.L10:
	mov	r0, r3
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	backtrack
	.word	ahead_bit
	.word	bit_mask
	.word	bit_value
	.size	read_bit, .-read_bit
	.align	2
	.global	read_interlaced_elias_gamma
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_interlaced_elias_gamma, %function
read_interlaced_elias_gamma:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #20
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L15
.L16:
	ldr	r3, [fp, #-16]
	lsl	r4, r3, #1
	bl	read_bit
	mov	r2, r0
	ldr	r3, [fp, #-24]
	eor	r3, r3, r2
	orr	r3, r4, r3
	str	r3, [fp, #-16]
.L15:
	bl	read_bit
	mov	r3, r0
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
	.size	read_interlaced_elias_gamma, .-read_interlaced_elias_gamma
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Error: Cannot write output file %s\012\000"
	.text
	.align	2
	.global	save_output
	.syntax unified
	.arm
	.fpu softvfp
	.type	save_output, %function
save_output:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L22
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r3, .L22+4
	ldr	r0, [r3]
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, .L22+8
	ldr	r3, [r3]
	mov	r1, #1
	bl	fwrite
	mov	r2, r0
	ldr	r3, .L22
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L20
	ldr	r3, .L22+12
	ldr	r3, [r3]
	ldr	r2, .L22+16
	ldr	r2, [r2]
	ldr	r1, .L22+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L20:
	ldr	r3, .L22+24
	ldr	r2, [r3]
	ldr	r3, .L22
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, .L22+24
	str	r3, [r2]
	ldr	r3, .L22
	mov	r2, #0
	str	r2, [r3]
.L21:
	nop
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	output_index
	.word	output_data
	.word	ofp
	.word	stderr
	.word	output_name
	.word	.LC2
	.word	output_size
	.size	save_output, .-save_output
	.align	2
	.global	write_byte
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_byte, %function
write_byte:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, .L27+4
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r0, .L27+4
	str	r1, [r0]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	and	r2, r2, #255
	strb	r2, [r3]
	ldr	r3, .L27+4
	ldr	r3, [r3]
	cmp	r3, #65536
	bne	.L26
	bl	save_output
.L26:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	output_data
	.word	output_index
	.size	write_byte, .-write_byte
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Error: Invalid data in input file %s\012\000"
	.text
	.align	2
	.global	write_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_bytes, %function
write_bytes:
	@ 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]
	str	r1, [fp, #-20]
	ldr	r3, .L35
	ldr	r2, [r3]
	ldr	r3, .L35+4
	ldr	r3, [r3]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	bcs	.L31
	ldr	r3, .L35+8
	ldr	r3, [r3]
	ldr	r2, .L35+12
	ldr	r2, [r2]
	ldr	r1, .L35+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L34:
	ldr	r3, .L35+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, .L35+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L32
	ldr	r3, [fp, #-8]
	add	r3, r3, #65536
	b	.L33
.L32:
	ldr	r3, [fp, #-8]
.L33:
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	bl	write_byte
.L31:
	ldr	r3, [fp, #-20]
	sub	r2, r3, #1
	str	r2, [fp, #-20]
	cmp	r3, #0
	bgt	.L34
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L36:
	.align	2
.L35:
	.word	output_size
	.word	output_index
	.word	stderr
	.word	input_name
	.word	.LC3
	.word	output_data
	.size	write_bytes, .-write_bytes
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Error: Insufficient memory\012\000"
	.align	2
.LC5:
	.ascii	"Error: Input file %s too long\012\000"
	.text
	.align	2
	.global	decompress
	.syntax unified
	.arm
	.fpu softvfp
	.type	decompress, %function
decompress:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r0, #65536
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L57
	str	r2, [r3]
	mov	r0, #65536
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L57+4
	str	r2, [r3]
	ldr	r3, .L57
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L38
	ldr	r3, .L57+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L39
.L38:
	ldr	r3, .L57+8
	ldr	r3, [r3]
	mov	r2, #27
	mov	r1, #1
	ldr	r0, .L57+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L39:
	ldr	r3, .L57+16
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+20
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+24
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+28
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+32
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+36
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L57+40
	mov	r2, #0
	str	r2, [r3]
.L40:
	mov	r0, #0
	bl	read_interlaced_elias_gamma
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L41
.L42:
	bl	read_byte
	mov	r3, r0
	mov	r0, r3
	bl	write_byte
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L41:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L42
	bl	read_bit
	mov	r3, r0
	cmp	r3, #0
	bne	.L54
	mov	r0, #0
	bl	read_interlaced_elias_gamma
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	write_bytes
	bl	read_bit
	mov	r3, r0
	cmp	r3, #0
	bne	.L55
	b	.L40
.L54:
	nop
	b	.L53
.L55:
	nop
.L44:
.L53:
	bl	read_bit
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	bl	read_bit
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-32]
	b	.L47
.L46:
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-32]
.L47:
	mov	r0, #0
	bl	read_interlaced_elias_gamma
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	write_bytes
	b	.L48
.L45:
	bl	read_bit
	mov	r3, r0
	ldr	r2, .L57+44
	str	r3, [r2]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	bl	read_interlaced_elias_gamma
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #256
	bne	.L49
	bl	save_output
	ldr	r3, .L57+20
	ldr	r2, [r3]
	ldr	r3, .L57+24
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L56
	ldr	r3, .L57+8
	ldr	r3, [r3]
	ldr	r2, .L57+48
	ldr	r2, [r2]
	ldr	r1, .L57+52
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L49:
	ldr	r3, [fp, #-32]
	lsl	r4, r3, #8
	bl	read_byte
	mov	r3, r0
	sub	r3, r4, r3
	str	r3, [fp, #-32]
	ldr	r3, .L57+40
	mov	r2, #1
	str	r2, [r3]
	mov	r0, #0
	bl	read_interlaced_elias_gamma
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-32]
	bl	write_bytes
.L48:
	bl	read_bit
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	b	.L53
.L56:
	nop
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L58:
	.align	2
.L57:
	.word	input_data
	.word	output_data
	.word	stderr
	.word	.LC4
	.word	input_size
	.word	input_index
	.word	partial_counter
	.word	output_index
	.word	output_size
	.word	bit_mask
	.word	backtrack
	.word	ahead_bit
	.word	input_name
	.word	.LC5
	.size	decompress, .-decompress
	.section	.rodata
	.align	2
.LC6:
	.ascii	"DZX5 v2.0: Data decompressor by Einar Saukas\000"
	.align	2
.LC7:
	.ascii	"-f\000"
	.align	2
.LC8:
	.ascii	"-c\000"
	.align	2
.LC9:
	.ascii	"Error: Invalid parameter %s\012\000"
	.align	2
.LC10:
	.ascii	".zx5\000"
	.align	2
.LC11:
	.ascii	"Error: Cannot infer output filename\012\000"
	.align	2
.LC12:
	.ascii	"Usage: %s [-f] [-c] input.zx5 [output]\012  -f     "
	.ascii	" Force overwrite of output file\012  -c      Classi"
	.ascii	"c file format (v1.*)\012\000"
	.align	2
.LC13:
	.ascii	"rb\000"
	.align	2
.LC14:
	.ascii	"Error: Cannot access input file %s\012\000"
	.align	2
.LC15:
	.ascii	"Error: Already existing output file %s\012\000"
	.align	2
.LC16:
	.ascii	"wb\000"
	.align	2
.LC17:
	.ascii	"Error: Cannot create output file %s\012\000"
	.align	2
.LC18:
	.ascii	"File decompressed from %lu to %lu bytes!\012\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, .L74
	bl	puts
	mov	r3, #1
	str	r3, [fp, #-8]
	b	.L60
.L65:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L74+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L62
.L61:
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L74+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L63
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L62
.L63:
	ldr	r3, .L74+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L74+16
	bl	fprintf
	mov	r0, #1
	bl	exit
.L62:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L60:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L64
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L65
.L64:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L66
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L74+20
	str	r3, [r2]
	ldr	r3, .L74+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r2, .L74+24
	str	r3, [r2]
	ldr	r3, .L74+24
	ldr	r3, [r3]
	cmp	r3, #4
	bls	.L67
	ldr	r3, .L74+20
	ldr	r2, [r3]
	ldr	r3, .L74+24
	ldr	r3, [r3]
	sub	r3, r3, #4
	add	r3, r2, r3
	ldr	r1, .L74+28
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L67
	ldr	r3, .L74+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	ldr	r2, .L74+24
	str	r3, [r2]
	ldr	r3, .L74+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L74+32
	str	r2, [r3]
	ldr	r3, .L74+32
	ldr	r3, [r3]
	ldr	r2, .L74+20
	ldr	r2, [r2]
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r3, .L74+32
	ldr	r2, [r3]
	ldr	r3, .L74+24
	ldr	r3, [r3]
	sub	r3, r3, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L68
.L67:
	ldr	r3, .L74+12
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L74+36
	bl	fwrite
	mov	r0, #1
	bl	exit
.L66:
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L69
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L74+20
	str	r3, [r2]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r2, .L74+32
	str	r3, [r2]
	b	.L68
.L69:
	ldr	r3, .L74+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L74+40
	bl	fprintf
	mov	r0, #1
	bl	exit
.L68:
	ldr	r3, .L74+20
	ldr	r3, [r3]
	ldr	r1, .L74+44
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L74+48
	str	r3, [r2]
	ldr	r3, .L74+48
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L70
	ldr	r3, .L74+12
	ldr	r3, [r3]
	ldr	r2, .L74+20
	ldr	r2, [r2]
	ldr	r1, .L74+52
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L70:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L71
	ldr	r3, .L74+32
	ldr	r3, [r3]
	ldr	r1, .L74+44
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	cmp	r3, #0
	beq	.L71
	ldr	r3, .L74+12
	ldr	r3, [r3]
	ldr	r2, .L74+32
	ldr	r2, [r2]
	ldr	r1, .L74+56
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L71:
	ldr	r3, .L74+32
	ldr	r3, [r3]
	ldr	r1, .L74+60
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L74+64
	str	r3, [r2]
	ldr	r3, .L74+64
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L72
	ldr	r3, .L74+12
	ldr	r3, [r3]
	ldr	r2, .L74+32
	ldr	r2, [r2]
	ldr	r1, .L74+68
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L72:
	ldr	r0, [fp, #-12]
	bl	decompress
	ldr	r3, .L74+48
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L74+64
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	ldr	r3, .L74+24
	ldr	r3, [r3]
	ldr	r2, .L74+72
	ldr	r2, [r2]
	mov	r1, r3
	ldr	r0, .L74+76
	bl	printf
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	stderr
	.word	.LC9
	.word	input_name
	.word	input_size
	.word	.LC10
	.word	output_name
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	ifp
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	ofp
	.word	.LC17
	.word	output_size
	.word	.LC18
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
