	.file	"extr_zip_source_deflate.c_deflate_compress.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	deflate_compress, @function
deflate_compress:
.LFB0:
	.cfi_startproc
	endbr64
	add	r8d, -128
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	cmp	r8d, 5
	ja	.L2
	mov	r9, rdx
	lea	rdx, .L4[rip]
	movsx	rax, DWORD PTR [rdx+r8*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rsi, QWORD PTR [rsi]
	mov	edx, 8
	mov	rdi, r9
	call	memcpy@PLT
	mov	eax, 8
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rdi, 16[rsi]
	call	deflateEnd@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR ZIP_CM_DEFLATE[rip]
	mov	edx, DWORD PTR [r9]
	mov	ecx, DWORD PTR ZIP_STAT_COMP_SIZE[rip]
	or	edx, DWORD PTR ZIP_STAT_COMP_METHOD[rip]
	mov	DWORD PTR 8[r9], eax
	mov	eax, DWORD PTR 12[rsi]
	test	eax, eax
	je	.L11
	mov	eax, DWORD PTR 8[rsi]
	or	edx, ecx
	mov	DWORD PTR [r9], edx
	mov	DWORD PTR 4[r9], eax
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdx, r9
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	compress_read@PLT
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	QWORD PTR 48[rsi], 0
	mov	r8d, DWORD PTR 72[rsi]
	lea	rdi, 16[rsi]
	mov	rax, QWORD PTR Z_NULL[rip]
	mov	DWORD PTR 40[rsi], 0
	mov	QWORD PTR 32[rsi], 0
	mov	ecx, DWORD PTR MAX_WBITS[rip]
	mov	QWORD PTR 64[rsi], rax
	mov	r9d, DWORD PTR Z_DEFAULT_STRATEGY[rip]
	mov	QWORD PTR 56[rsi], rax
	mov	edx, DWORD PTR Z_DEFLATED[rip]
	neg	ecx
	mov	DWORD PTR 24[rsi], 0
	mov	QWORD PTR 16[rsi], 0
	mov	esi, DWORD PTR Z_BEST_COMPRESSION[rip]
	call	deflateInit2@PLT
	cmp	DWORD PTR Z_OK[rip], eax
	jne	.L15
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rdi, rsi
	call	deflate_free@PLT
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L2:
	.cfi_restore_state
	mov	rax, QWORD PTR [rsi]
	mov	edx, DWORD PTR ZIP_ER_INVAL[rip]
	mov	DWORD PTR 4[rax], 0
	mov	DWORD PTR [rax], edx
	mov	eax, -1
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	not	ecx
	and	edx, ecx
	mov	DWORD PTR [r9], edx
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L15:
	.cfi_restore_state
	mov	rdx, QWORD PTR 0[rbp]
	mov	ecx, DWORD PTR ZIP_ER_ZLIB[rip]
	mov	DWORD PTR 4[rdx], eax
	mov	eax, -1
	mov	DWORD PTR [rdx], ecx
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	deflate_compress, .-deflate_compress
	.comm	Z_OK,4,4
	.comm	Z_NULL,8,8
	.comm	Z_DEFLATED,4,4
	.comm	Z_DEFAULT_STRATEGY,4,4
	.comm	Z_BEST_COMPRESSION,4,4
	.comm	ZIP_STAT_COMP_SIZE,4,4
	.comm	ZIP_STAT_COMP_METHOD,4,4
	.comm	ZIP_ER_ZLIB,4,4
	.comm	ZIP_ER_INVAL,4,4
	.comm	ZIP_CM_DEFLATE,4,4
	.comm	MAX_WBITS,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_zip_source_deflate.c_deflate_compress.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	deflate_compress, %function
deflate_compress:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	sub	sp, sp, #8
	ldr	ip, [sp, #24]
	mov	r4, r1
	sub	ip, ip, #128
	cmp	ip, #5
	ldrls	pc, [pc, ip, asl #2]
	b	.L2
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	add	r0, r1, #12
	bl	deflateEnd
	mov	r0, #0
.L1:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L9:
	ldr	r0, [r4, #8]
	ldr	r1, .L15
	cmp	r0, #0
	ldrne	r0, [r4, #4]
	ldr	r1, [r1]
	strne	r0, [r2, #4]
	movne	r0, #0
	ldr	r3, .L15+4
	str	r1, [r2, #8]
	ldr	r1, .L15+8
	ldr	ip, [r3]
	ldr	r3, [r2]
	ldr	r1, [r1]
	orr	r3, r3, ip
	orrne	r3, r3, r1
	biceq	r3, r3, r1
	strne	r3, [r2]
	streq	r3, [r2]
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	compress_read
.L7:
	mov	r5, #0
	mov	r0, r1
	ldr	r2, .L15+12
	ldr	r1, .L15+16
	ldr	r3, .L15+20
	ldr	r2, [r2]
	ldr	r6, [r1]
	ldr	r3, [r3]
	ldr	ip, [r4, #40]
	ldr	lr, .L15+24
	ldr	r1, .L15+28
	str	r2, [r4, #36]
	str	r2, [r4, #32]
	str	r5, [r4, #28]
	str	r5, [r4, #24]
	str	r5, [r4, #20]
	str	r5, [r4, #16]
	str	r5, [r0, #12]!
	str	r6, [sp, #4]
	ldr	r2, [lr]
	ldr	r1, [r1]
	rsb	r3, r3, #0
	str	ip, [sp]
	bl	deflateInit2
	ldr	r3, .L15+32
	ldr	r3, [r3]
	cmp	r3, r0
	moveq	r0, r5
	beq	.L1
	ldr	r2, .L15+36
	ldr	r3, [r4]
	ldr	r2, [r2]
	str	r0, [r3, #4]
	str	r2, [r3]
	mvn	r0, #0
	b	.L1
.L6:
	mov	r0, r1
	bl	deflate_free
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L5:
	mov	r0, r2
	ldr	r1, [r1]
	mov	r2, #8
	bl	memcpy
	mov	r0, #8
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r1, #0
	ldr	r2, .L15+40
	ldr	r3, [r4]
	ldr	r2, [r2]
	mvn	r0, #0
	str	r1, [r3, #4]
	str	r2, [r3]
	b	.L1
.L16:
	.align	2
.L15:
	.word	ZIP_CM_DEFLATE
	.word	ZIP_STAT_COMP_METHOD
	.word	ZIP_STAT_COMP_SIZE
	.word	Z_NULL
	.word	Z_DEFAULT_STRATEGY
	.word	MAX_WBITS
	.word	Z_DEFLATED
	.word	Z_BEST_COMPRESSION
	.word	Z_OK
	.word	ZIP_ER_ZLIB
	.word	ZIP_ER_INVAL
	.size	deflate_compress, .-deflate_compress
	.comm	Z_OK,4,4
	.comm	Z_NULL,4,4
	.comm	Z_DEFLATED,4,4
	.comm	Z_DEFAULT_STRATEGY,4,4
	.comm	Z_BEST_COMPRESSION,4,4
	.comm	ZIP_STAT_COMP_SIZE,4,4
	.comm	ZIP_STAT_COMP_METHOD,4,4
	.comm	ZIP_ER_ZLIB,4,4
	.comm	ZIP_ER_INVAL,4,4
	.comm	ZIP_CM_DEFLATE,4,4
	.comm	MAX_WBITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
