	.file	"861268.c"
	.intel_syntax noprefix
	.text
	.globl	prog
	.bss
	.align 8
	.type	prog, @object
	.size	prog, 8
prog:
	.zero	8
	.section	.rodata
.LC0:
	.string	"%s: %s\n"
	.text
	.globl	error
	.type	error, @function
error:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
.LC1:
	.string	"fread"
.LC2:
	.string	"failed gzclose"
	.text
	.globl	gz_compress
	.type	gz_compress, @function
gz_compress:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L7:
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	edx, 4096
	mov	esi, 1
	lea	rdi, buf.3[rip]
	call	fread@PLT
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	ferror@PLT
	test	eax, eax
	je	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	cmp	DWORD PTR -12[rbp], 0
	je	.L11
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, buf.3[rip]
	mov	rdi, rax
	call	gzwrite@PLT
	cmp	DWORD PTR -12[rbp], eax
	je	.L7
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gzerror@PLT
	mov	rdi, rax
	call	error
	jmp	.L7
.L11:
	nop
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	test	eax, eax
	je	.L12
	lea	rdi, .LC2[rip]
	call	error
.L12:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gz_compress, .-gz_compress
	.section	.rodata
.LC3:
	.string	"failed fwrite"
.LC4:
	.string	"failed fclose"
	.text
	.globl	gz_uncompress
	.type	gz_uncompress, @function
gz_uncompress:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, 4096
	lea	rsi, buf.2[rip]
	mov	rdi, rax
	call	gzread@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L14
	lea	rdx, -16[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gzerror@PLT
	mov	rdi, rax
	call	error
.L14:
	cmp	DWORD PTR -12[rbp], 0
	je	.L23
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rcx, rax
	mov	esi, 1
	lea	rdi, buf.2[rip]
	call	fwrite@PLT
	cmp	DWORD PTR -12[rbp], eax
	je	.L18
	lea	rdi, .LC3[rip]
	call	error
	jmp	.L18
.L23:
	nop
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L19
	lea	rdi, .LC4[rip]
	call	error
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	gzclose@PLT
	test	eax, eax
	je	.L24
	lea	rdi, .LC2[rip]
	call	error
.L24:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	gz_uncompress, .-gz_uncompress
	.section	.rodata
.LC5:
	.string	"rb"
.LC6:
	.string	"wb"
.LC7:
	.string	"%s: can't gzopen %s\n"
	.text
	.globl	file_compress
	.type	file_compress, @function
file_compress:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rax
	lea	rdi, outfile.1[rip]
	call	strcpy@PLT
	lea	rdi, outfile.1[rip]
	call	strlen@PLT
	mov	rdx, rax
	lea	rax, outfile.1[rip]
	add	rax, rdx
	mov	DWORD PTR [rax], 8021806
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	lea	rsi, .LC6[rip]
	lea	rdi, outfile.1[rip]
	call	gzopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L27
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rcx, outfile.1[rip]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gz_compress
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	unlink@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	file_compress, .-file_compress
	.section	.rodata
.LC8:
	.string	".gz"
	.text
	.globl	file_uncompress
	.type	file_uncompress, @function
file_uncompress:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	DWORD PTR -36[rbp], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, buf.0[rip]
	call	strcpy@PLT
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 4
	jbe	.L29
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, -4[rax]
	mov	rax, QWORD PTR -56[rbp]
	add	rax, rdx
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, buf.0[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	cdqe
	lea	rdx, -3[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	lea	rax, buf.0[rip]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	DWORD PTR [rax], 8021806
.L30:
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	gzopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L31
	mov	rdx, QWORD PTR prog[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -32[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L32:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gz_uncompress
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	unlink@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	file_uncompress, .-file_uncompress
	.section	.rodata
.LC9:
	.string	"-d"
.LC10:
	.string	"can't gzdopen stdin"
.LC11:
	.string	"can't gzdopen stdout"
	.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR prog[rip], rax
	sub	DWORD PTR -20[rbp], 1
	add	QWORD PTR -32[rbp], 8
	cmp	DWORD PTR -20[rbp], 0
	jle	.L34
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	sete	al
	movzx	eax, al
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	je	.L34
	sub	DWORD PTR -20[rbp], 1
	add	QWORD PTR -32[rbp], 8
.L34:
	cmp	DWORD PTR -20[rbp], 0
	jne	.L35
	cmp	DWORD PTR -12[rbp], 0
	je	.L36
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	fileno@PLT
	lea	rsi, .LC5[rip]
	mov	edi, eax
	call	gzdopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L37
	lea	rdi, .LC10[rip]
	call	error
.L37:
	mov	rdx, QWORD PTR stdout[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gz_uncompress
	jmp	.L38
.L36:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fileno@PLT
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	gzdopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L39
	lea	rdi, .LC11[rip]
	call	error
.L39:
	mov	rax, QWORD PTR stdin[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	gz_compress
	jmp	.L38
.L35:
	cmp	DWORD PTR -12[rbp], 0
	je	.L40
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	file_uncompress
	jmp	.L41
.L40:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	file_compress
.L41:
	add	QWORD PTR -32[rbp], 8
	sub	DWORD PTR -20[rbp], 1
	cmp	DWORD PTR -20[rbp], 0
	jne	.L35
.L38:
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.local	buf.3
	.comm	buf.3,4096,32
	.local	buf.2
	.comm	buf.2,4096,32
	.local	outfile.1
	.comm	outfile.1,1024,32
	.local	buf.0
	.comm	buf.0,1024,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	"861268.c"
	.text
	.comm	prog,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%s: %s\012\000"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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, .L2
	ldr	r0, [r3]
	ldr	r3, .L2+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, .L2+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	prog
	.word	.LC0
	.size	error, .-error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"fread\000"
	.align	2
.LC2:
	.ascii	"failed gzclose\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gz_compress
	.syntax unified
	.arm
	.fpu softvfp
	.type	gz_compress, %function
gz_compress:
	@ 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	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L9:
	ldr	r3, [fp, #-24]
	mov	r2, #4096
	mov	r1, #1
	ldr	r0, .L15+4
	bl	fread
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	ferror
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, .L15+8
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [fp, #-12]
	mov	r2, r3
	ldr	r1, .L15+4
	ldr	r0, [fp, #-28]
	bl	gzwrite
	mov	r2, r0
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L9
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	gzerror
	mov	r3, r0
	mov	r0, r3
	bl	error
	b	.L9
.L13:
	nop
	ldr	r0, [fp, #-24]
	bl	fclose
	ldr	r0, [fp, #-28]
	bl	gzclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L14
	ldr	r0, .L15+12
	bl	error
.L14:
	nop
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC3
	.word	buf.6261
	.word	.LC1
	.word	.LC2
	.size	gz_compress, .-gz_compress
	.section	.rodata
	.align	2
.LC4:
	.ascii	"failed fwrite\000"
	.align	2
.LC5:
	.ascii	"failed fclose\000"
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gz_uncompress
	.syntax unified
	.arm
	.fpu softvfp
	.type	gz_uncompress, %function
gz_uncompress:
	@ 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	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L22:
	mov	r2, #4096
	ldr	r1, .L29+4
	ldr	r0, [fp, #-24]
	bl	gzread
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L18
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	gzerror
	mov	r3, r0
	mov	r0, r3
	bl	error
.L18:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L27
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-28]
	mov	r1, #1
	ldr	r0, .L29+4
	bl	fwrite
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-12]
	cmp	r3, r2
	beq	.L22
	ldr	r0, .L29+8
	bl	error
	b	.L22
.L27:
	nop
	ldr	r0, [fp, #-28]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L23
	ldr	r0, .L29+12
	bl	error
.L23:
	ldr	r0, [fp, #-24]
	bl	gzclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L28
	ldr	r0, .L29+16
	bl	error
.L28:
	nop
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC6
	.word	buf.6270
	.word	.LC4
	.word	.LC5
	.word	.LC2
	.size	gz_uncompress, .-gz_uncompress
	.section	.rodata
	.align	2
.LC7:
	.ascii	".gz\000"
	.align	2
.LC8:
	.ascii	"rb\000"
	.align	2
.LC9:
	.ascii	"wb\000"
	.align	2
.LC10:
	.ascii	"%s: can't gzopen %s\012\000"
	.text
	.align	2
	.global	file_compress
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_compress, %function
file_compress:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r1, [fp, #-16]
	ldr	r0, .L34
	bl	strcpy
	ldr	r0, .L34
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L34
	add	r3, r2, r3
	ldr	r2, .L34+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #4
	mov	r2, r3
	bl	memcpy
	ldr	r1, .L34+8
	ldr	r0, [fp, #-16]
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L32
	ldr	r0, [fp, #-16]
	bl	perror
	mov	r0, #1
	bl	exit
.L32:
	ldr	r1, .L34+12
	ldr	r0, .L34
	bl	gzopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L33
	ldr	r3, .L34+16
	ldr	r0, [r3]
	ldr	r3, .L34+20
	ldr	r2, [r3]
	ldr	r3, .L34
	ldr	r1, .L34+24
	bl	fprintf
	mov	r0, #1
	bl	exit
.L33:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	gz_compress
	ldr	r0, [fp, #-16]
	bl	unlink
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	outfile.6278
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	stderr
	.word	prog
	.word	.LC10
	.size	file_compress, .-file_compress
	.align	2
	.global	file_uncompress
	.syntax unified
	.arm
	.fpu softvfp
	.type	file_uncompress, %function
file_uncompress:
	@ 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]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r3, r0
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-32]
	ldr	r0, .L41
	bl	strcpy
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	bls	.L37
	ldr	r3, [fp, #-16]
	sub	r3, r3, #4
	ldr	r2, [fp, #-32]
	add	r3, r2, r3
	ldr	r1, .L41+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, .L41
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #3
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	b	.L38
.L37:
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-20]
	ldr	r3, .L41
	str	r3, [fp, #-24]
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	add	r3, r3, r2
	ldr	r2, .L41+4
	mov	r0, r3
	mov	r1, r2
	mov	r3, #4
	mov	r2, r3
	bl	memcpy
.L38:
	ldr	r1, .L41+8
	ldr	r0, [fp, #-24]
	bl	gzopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L39
	ldr	r3, .L41+12
	ldr	r0, [r3]
	ldr	r3, .L41+16
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r1, .L41+20
	bl	fprintf
	mov	r0, #1
	bl	exit
.L39:
	ldr	r1, .L41+24
	ldr	r0, [fp, #-20]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L40
	ldr	r0, [fp, #-32]
	bl	perror
	mov	r0, #1
	bl	exit
.L40:
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	gz_uncompress
	ldr	r0, [fp, #-24]
	bl	unlink
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	buf.6284
	.word	.LC7
	.word	.LC8
	.word	stderr
	.word	prog
	.word	.LC10
	.word	.LC9
	.size	file_uncompress, .-file_uncompress
	.section	.rodata
	.align	2
.LC11:
	.ascii	"-d\000"
	.align	2
.LC12:
	.ascii	"can't gzdopen stdin\000"
	.align	2
.LC13:
	.ascii	"can't gzdopen stdout\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r2, .L52
	str	r3, [r2]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	ble	.L44
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	ldr	r1, .L52+4
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L44
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
.L44:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L45
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L52+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	ldr	r1, .L52+12
	mov	r0, r3
	bl	gzdopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L47
	ldr	r0, .L52+16
	bl	error
.L47:
	ldr	r3, .L52+20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	gz_uncompress
	b	.L48
.L46:
	ldr	r3, .L52+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	fileno
	mov	r3, r0
	ldr	r1, .L52+24
	mov	r0, r3
	bl	gzdopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L49
	ldr	r0, .L52+28
	bl	error
.L49:
	ldr	r3, .L52+8
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	gz_compress
	b	.L48
.L45:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L50
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	file_uncompress
	b	.L51
.L50:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	file_compress
.L51:
	ldr	r3, [fp, #-20]
	add	r3, r3, #4
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L45
.L48:
	mov	r0, #0
	bl	exit
.L53:
	.align	2
.L52:
	.word	prog
	.word	.LC11
	.word	stdin
	.word	.LC8
	.word	.LC12
	.word	stdout
	.word	.LC9
	.word	.LC13
	.size	main, .-main
	.local	buf.6261
	.comm	buf.6261,4096,4
	.local	buf.6270
	.comm	buf.6270,4096,4
	.local	outfile.6278
	.comm	outfile.6278,1024,4
	.local	buf.6284
	.comm	buf.6284,1024,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
