	.file	"extr_deflate.c_deflate_comp_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	deflate_comp_init, @function
deflate_comp_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	esi, DWORD PTR MAX_MEM_LEVEL[rip]
	mov	edi, DWORD PTR MAX_WBITS[rip]
	call	zlib_deflate_workspacesize@PLT
	mov	edi, eax
	call	vzalloc@PLT
	mov	DWORD PTR [rbx], eax
	test	eax, eax
	je	.L8
	test	r12d, r12d
	jne	.L9
	mov	ecx, DWORD PTR DEFLATE_DEF_WINBITS[rip]
	mov	r9d, DWORD PTR Z_DEFAULT_STRATEGY[rip]
	mov	rdi, rbx
	mov	r8d, DWORD PTR DEFLATE_DEF_MEMLEVEL[rip]
	mov	edx, DWORD PTR Z_DEFLATED[rip]
	mov	esi, DWORD PTR DEFLATE_DEF_LEVEL[rip]
	neg	ecx
	call	zlib_deflateInit2@PLT
	mov	r12d, eax
	cmp	DWORD PTR Z_OK[rip], r12d
	jne	.L10
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	esi, 3
	mov	rdi, rbx
	call	zlib_deflateInit@PLT
	mov	r12d, eax
	cmp	DWORD PTR Z_OK[rip], r12d
	je	.L1
.L10:
.L3:
	endbr64
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	edi, DWORD PTR [rbx]
	call	vfree@PLT
	neg	r12d
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	r12d, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	deflate_comp_init, .-deflate_comp_init
	.comm	Z_OK,4,4
	.comm	Z_DEFLATED,4,4
	.comm	Z_DEFAULT_STRATEGY,4,4
	.comm	MAX_WBITS,4,4
	.comm	MAX_MEM_LEVEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEFLATE_DEF_WINBITS,4,4
	.comm	DEFLATE_DEF_MEMLEVEL,4,4
	.comm	DEFLATE_DEF_LEVEL,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_deflate.c_deflate_comp_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	deflate_comp_init, %function
deflate_comp_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r2, .L11
	mov	r4, r1
	ldr	r1, .L11+4
	mov	r5, r0
	ldr	r1, [r1]
	ldr	r0, [r2]
	sub	sp, sp, #12
	bl	zlib_deflate_workspacesize
	bl	vzalloc
	cmp	r0, #0
	str	r0, [r5]
	beq	.L8
	cmp	r4, #0
	bne	.L9
	ldr	r1, .L11+8
	ldr	r2, .L11+12
	ldr	ip, [r1]
	ldr	r0, [r2]
	ldr	r3, .L11+16
	ldr	r2, .L11+20
	ldr	r3, [r3]
	stm	sp, {r0, ip}
	ldr	r1, .L11+24
	rsb	r3, r3, #0
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	zlib_deflateInit2
	mov	r4, r0
	ldr	r3, .L11+28
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L10
.L1:
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L9:
	mov	r1, #3
	mov	r0, r5
	bl	zlib_deflateInit
	mov	r4, r0
	ldr	r3, .L11+28
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L1
.L10:
.L3:
	ldr	r3, .L11+32
	ldr	r0, [r5]
	ldr	r4, [r3]
	bl	vfree
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	ldr	r3, .L11+36
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L12:
	.align	2
.L11:
	.word	MAX_WBITS
	.word	MAX_MEM_LEVEL
	.word	Z_DEFAULT_STRATEGY
	.word	DEFLATE_DEF_MEMLEVEL
	.word	DEFLATE_DEF_WINBITS
	.word	Z_DEFLATED
	.word	DEFLATE_DEF_LEVEL
	.word	Z_OK
	.word	EINVAL
	.word	ENOMEM
	.size	deflate_comp_init, .-deflate_comp_init
	.comm	Z_OK,4,4
	.comm	Z_DEFLATED,4,4
	.comm	Z_DEFAULT_STRATEGY,4,4
	.comm	MAX_WBITS,4,4
	.comm	MAX_MEM_LEVEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEFLATE_DEF_WINBITS,4,4
	.comm	DEFLATE_DEF_MEMLEVEL,4,4
	.comm	DEFLATE_DEF_LEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
