	.file	"extr_unzip_stream.c_zip2gz.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Wrong uncompressed size in store compression"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Version too new"
.LC2:
	.string	"OS not supported"
.LC3:
	.string	"Cannot span disks"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Compression method unsupported"
	.text
	.p2align 4
	.globl	zip2gz
	.type	zip2gz, @function
zip2gz:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	rdi, rdi
	je	.L25
	test	rsi, rsi
	je	.L25
	mov	eax, DWORD PTR [rsi]
	mov	rbx, rdi
	test	eax, eax
	je	.L30
	cmp	eax, 8
	jne	.L7
	cmp	DWORD PTR 24[rsi], 20
	jg	.L31
	mov	r13d, DWORD PTR 28[rsi]
	test	r13d, r13d
	jne	.L32
	mov	rax, QWORD PTR 8[rdi]
	cmp	QWORD PTR 32[rsi], rax
	jne	.L33
.L6:
	mov	rdi, rbx
	call	seekcompresszip@PLT
	test	rax, rax
	jne	.L25
	mov	edi, 144
	mov	r14, QWORD PTR [rbx]
	call	ALLOC@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L11
.L26:
	mov	r12, QWORD PTR Z_NULL[rip]
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r12
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L30:
	.cfi_restore_state
	mov	rax, QWORD PTR 16[rsi]
	mov	r13d, 1
	cmp	QWORD PTR 8[rsi], rax
	je	.L6
	mov	rdx, QWORD PTR [rdi]
	mov	esi, DWORD PTR ERROR_CORRUPT[rip]
	lea	rdi, .LC0[rip]
	call	errormsg@PLT
.L25:
	xor	r12d, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	QWORD PTR 64[rax], 0
	mov	r12, rax
	xor	edx, edx
	xor	edi, edi
	mov	rsi, QWORD PTR Z_NULL[rip]
	mov	QWORD PTR 56[rax], 0
	mov	QWORD PTR 48[rax], 0
	mov	QWORD PTR 88[rax], rsi
	mov	QWORD PTR 32[rax], rsi
	mov	QWORD PTR 136[rax], rsi
	mov	QWORD PTR 40[rax], rsi
	mov	QWORD PTR 24[rax], 0
	mov	QWORD PTR 72[rax], 0
	mov	eax, DWORD PTR Z_OK[rip]
	mov	QWORD PTR 128[rbp], 0
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR EOF[rip]
	mov	QWORD PTR 120[rbp], 0
	mov	QWORD PTR 112[rbp], 0
	mov	DWORD PTR 108[rbp], eax
	call	crc32@PLT
	mov	QWORD PTR 96[rbp], 0
	mov	rdi, r14
	mov	DWORD PTR 104[rbp], eax
	mov	DWORD PTR 4[rbp], r13d
	mov	BYTE PTR 8[rbp], 114
	call	strlen@PLT
	lea	edi, 1[rax]
	call	ALLOC@PLT
	mov	QWORD PTR 16[rbp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L28
	mov	rsi, r14
	call	strcpy@PLT
	mov	edi, DWORD PTR Z_BUFSIZE[rip]
	call	ALLOC@PLT
	mov	esi, DWORD PTR MAX_WBITS[rip]
	lea	rdi, 24[rbp]
	mov	QWORD PTR 88[rbp], rax
	mov	QWORD PTR 32[rbp], rax
	neg	esi
	call	inflateInit2@PLT
	cmp	DWORD PTR Z_OK[rip], eax
	jne	.L27
	mov	rdi, QWORD PTR 88[rbp]
	cmp	rdi, QWORD PTR Z_NULL[rip]
	je	.L27
	mov	edx, DWORD PTR Z_BUFSIZE[rip]
	mov	rcx, QWORD PTR 16[rbx]
	mov	QWORD PTR errno[rip], 0
	mov	DWORD PTR 28[rbp], edx
	mov	QWORD PTR 72[rbp], rcx
	test	rcx, rcx
	je	.L28
	mov	esi, 1
	call	fread@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L34
.L17:
	mov	rax, QWORD PTR 88[rbp]
	add	ebx, DWORD PTR 24[rbp]
	mov	DWORD PTR 24[rbp], ebx
	mov	QWORD PTR 32[rbp], rax
	cmp	ebx, 1
	jle	.L27
	mov	rdi, QWORD PTR 72[rbp]
	call	ftell@PLT
	movsx	rdx, DWORD PTR 24[rbp]
	sub	rax, rdx
	mov	QWORD PTR 80[rbp], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	rdi, rbp
	call	destroy@PLT
	mov	r12, QWORD PTR Z_NULL[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdx, QWORD PTR [rdi]
	mov	esi, DWORD PTR ERROR_UNSUPPORTED[rip]
	lea	rdi, .LC4[rip]
	xor	r12d, r12d
	call	errormsg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, r12
	call	destroy@PLT
	jmp	.L26
	.p2align 4,,10
	.p2align 3
.L34:
	mov	rdi, QWORD PTR 72[rbp]
	call	ferror@PLT
	test	rax, rax
	je	.L17
	mov	eax, DWORD PTR Z_ERRNO[rip]
	mov	DWORD PTR 0[rbp], eax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rdx, QWORD PTR [rdi]
	mov	esi, DWORD PTR ERROR_UNSUPPORTED[rip]
	lea	rdi, .LC3[rip]
	xor	r12d, r12d
	call	errormsg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rdx, QWORD PTR [rdi]
	mov	esi, DWORD PTR ERROR_UNSUPPORTED[rip]
	lea	rdi, .LC1[rip]
	xor	r12d, r12d
	call	errormsg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L32:
	mov	rdx, QWORD PTR [rdi]
	mov	esi, DWORD PTR ERROR_UNSUPPORTED[rip]
	lea	rdi, .LC2[rip]
	xor	r12d, r12d
	call	errormsg@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	zip2gz, .-zip2gz
	.comm	errno,8,8
	.comm	Z_OK,4,4
	.comm	Z_NULL,8,8
	.comm	Z_ERRNO,4,4
	.comm	Z_BUFSIZE,4,4
	.comm	MAX_WBITS,4,4
	.comm	ERROR_UNSUPPORTED,4,4
	.comm	ERROR_CORRUPT,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_unzip_stream.c_zip2gz.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Wrong uncompressed size in store compression\000"
	.align	2
.LC1:
	.ascii	"Version too new\000"
	.align	2
.LC2:
	.ascii	"OS not supported\000"
	.align	2
.LC3:
	.ascii	"Cannot span disks\000"
	.align	2
.LC4:
	.ascii	"Compression method unsupported\000"
	.text
	.align	2
	.global	zip2gz
	.syntax unified
	.arm
	.fpu softvfp
	.type	zip2gz, %function
zip2gz:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	clz	r4, r1
	cmp	r0, #0
	lsr	r4, r4, #5
	moveq	r4, #1
	cmp	r4, #0
	bne	.L9
	ldr	r3, [r1]
	mov	r6, r0
	cmp	r3, #0
	beq	.L27
	cmp	r3, #8
	bne	.L6
	ldr	r3, [r1, #12]
	cmp	r3, #20
	bgt	.L28
	ldr	r7, [r1, #16]
	cmp	r7, #0
	bne	.L29
	ldr	r2, [r1, #20]
	ldr	r3, [r0, #4]
	cmp	r2, r3
	bne	.L30
.L5:
	mov	r0, r6
	bl	seekcompresszip
	subs	r5, r0, #0
	bne	.L9
	mov	r0, #84
	ldr	r9, [r6]
	bl	ALLOC
	subs	r8, r0, #0
	bne	.L10
	ldr	r3, .L32
	ldr	r4, [r3]
.L1:
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L27:
	ldmib	r1, {r0, r2}
	cmp	r0, r2
	moveq	r7, #1
	beq	.L5
	ldr	r1, .L32+4
	ldr	r2, [r6]
	ldr	r1, [r1]
	ldr	r0, .L32+8
	mov	r4, r3
	bl	errormsg
	b	.L1
.L9:
	mov	r4, #0
	mov	r0, r4
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	ldr	r10, .L32
	ldr	fp, .L32+12
	ldr	r3, .L32+16
	ldr	r1, [r10]
	ldr	r3, [r3]
	ldr	r2, [fp]
	str	r1, [r8, #52]
	str	r1, [r8, #24]
	str	r1, [r8, #80]
	str	r1, [r8, #28]
	str	r2, [r8]
	str	r3, [r8, #64]
	mov	r2, r5
	mov	r0, r5
	str	r5, [r8, #40]
	str	r5, [r8, #36]
	str	r5, [r8, #32]
	str	r5, [r8, #20]
	str	r5, [r8, #16]
	str	r5, [r8, #44]
	str	r5, [r8, #76]
	str	r5, [r8, #72]
	str	r5, [r8, #68]
	bl	crc32
	mov	r3, #114
	str	r0, [r8, #60]
	strb	r3, [r8, #8]
	mov	r0, r9
	str	r5, [r8, #56]
	str	r7, [r8, #4]
	bl	strlen
	add	r0, r0, #1
	bl	ALLOC
	cmp	r0, #0
	mov	r4, r8
	str	r0, [r8, #12]
	beq	.L24
	ldr	r7, .L32+20
	mov	r1, r9
	bl	strcpy
	ldr	r0, [r7]
	bl	ALLOC
	ldr	r3, .L32+24
	str	r0, [r8, #52]
	ldr	r1, [r3]
	str	r0, [r8, #24]
	rsb	r1, r1, #0
	add	r0, r8, #16
	bl	inflateInit2
	ldr	r3, [fp]
	cmp	r3, r0
	bne	.L25
	ldr	r0, [r8, #52]
	ldr	r3, [r10]
	cmp	r0, r3
	beq	.L25
	ldr	r3, [r6, #8]
	ldr	r2, [r7]
	ldr	r1, .L32+28
	cmp	r3, #0
	str	r3, [r8, #44]
	str	r2, [r8, #20]
	str	r5, [r1]
	beq	.L24
	mov	r1, #1
	bl	fread
	subs	r5, r0, #0
	beq	.L31
.L16:
	ldr	r0, [r8, #16]
	ldr	r3, [r8, #52]
	add	r0, r5, r0
	cmp	r0, #1
	str	r0, [r8, #16]
	str	r3, [r8, #24]
	ble	.L25
	ldr	r0, [r8, #44]
	bl	ftell
	ldr	r3, [r8, #16]
	sub	r0, r0, r3
	str	r0, [r8, #48]
	b	.L1
.L25:
	mov	r0, r8
	bl	destroy
	ldr	r4, [r10]
	b	.L1
.L6:
	ldr	r3, .L32+32
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r0, .L32+36
	bl	errormsg
	b	.L1
.L24:
	mov	r0, r4
	bl	destroy
	ldr	r4, [r10]
	b	.L1
.L31:
	ldr	r0, [r8, #44]
	bl	ferror
	cmp	r0, #0
	ldrne	r3, .L32+40
	ldrne	r3, [r3]
	strne	r3, [r8]
	b	.L16
.L30:
	ldr	r3, .L32+32
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r0, .L32+44
	mov	r4, r7
	bl	errormsg
	b	.L1
.L28:
	ldr	r3, .L32+32
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r0, .L32+48
	bl	errormsg
	b	.L1
.L29:
	ldr	r3, .L32+32
	ldr	r2, [r0]
	ldr	r1, [r3]
	ldr	r0, .L32+52
	bl	errormsg
	b	.L1
.L33:
	.align	2
.L32:
	.word	Z_NULL
	.word	ERROR_CORRUPT
	.word	.LC0
	.word	Z_OK
	.word	EOF
	.word	Z_BUFSIZE
	.word	MAX_WBITS
	.word	errno
	.word	ERROR_UNSUPPORTED
	.word	.LC4
	.word	Z_ERRNO
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.size	zip2gz, .-zip2gz
	.comm	errno,4,4
	.comm	Z_OK,4,4
	.comm	Z_NULL,4,4
	.comm	Z_ERRNO,4,4
	.comm	Z_BUFSIZE,4,4
	.comm	MAX_WBITS,4,4
	.comm	ERROR_UNSUPPORTED,4,4
	.comm	ERROR_CORRUPT,4,4
	.comm	EOF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
