	.file	"extr_zlib.c_zlib_decompress_setup.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	zlib_decompress_setup, @function
zlib_decompress_setup:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	mov	r13d, edx
	push	r12
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbx
	sub	rsp, 16
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	call	crypto_pcomp_tfm@PLT
	mov	edi, eax
	call	crypto_tfm_ctx@PLT
	mov	esi, DWORD PTR ZLIB_DECOMP_MAX[rip]
	mov	rcx, rsp
	mov	rbx, rax
	lea	eax, 1[rsi]
	cdqe
	lea	rax, 15[0+rax*8]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L16:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L16
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L17
.L4:
	mov	r14, rsp
	mov	rdx, r12
	xor	r8d, r8d
	mov	ecx, r13d
	mov	rdi, r14
	call	nla_parse@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L18
.L1:
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L19
	lea	rsp, -32[rbp]
	mov	eax, r12d
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	rdi, rbx
	call	zlib_decomp_exit@PLT
	mov	rax, QWORD PTR ZLIB_DECOMP_WINDOWBITS[rip]
	mov	rdi, QWORD PTR [r14+rax*8]
	mov	eax, DWORD PTR DEF_WBITS[rip]
	test	rdi, rdi
	je	.L7
	call	nla_get_u32@PLT
.L7:
	mov	DWORD PTR [rbx], eax
	mov	r13d, DWORD PTR GFP_KERNEL[rip]
	xor	eax, eax
	call	zlib_inflate_workspacesize@PLT
	mov	esi, r13d
	mov	edi, eax
	call	kzalloc@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L20
	mov	esi, DWORD PTR [rbx]
	lea	rdi, 8[rbx]
	call	zlib_inflateInit2@PLT
	cmp	DWORD PTR Z_OK[rip], eax
	je	.L1
	mov	rdi, QWORD PTR 8[rbx]
	call	kfree@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	mov	QWORD PTR 8[rbx], 0
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	mov	r12d, DWORD PTR ENOMEM[rip]
	neg	r12d
	jmp	.L1
.L19:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	zlib_decompress_setup, .-zlib_decompress_setup
	.comm	Z_OK,4,4
	.comm	ZLIB_DECOMP_WINDOWBITS,8,8
	.comm	ZLIB_DECOMP_MAX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEF_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_zlib.c_zlib_decompress_setup.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zlib_decompress_setup, %function
zlib_decompress_setup:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #20
	ldr	r3, .L12
	mov	r4, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	bl	crypto_pcomp_tfm
	bl	crypto_tfm_ctx
	mov	lr, r0
	mov	r0, #0
	ldr	r2, .L12+4
	mov	r3, r5
	ldr	r1, [r2]
	mov	r2, r4
	lsl	ip, r1, #2
	add	ip, ip, #11
	bic	ip, ip, #7
	sub	sp, sp, ip
	add	r6, sp, #8
	str	r0, [sp]
	mov	r0, r6
	mov	r5, lr
	bl	nla_parse
	subs	r4, r0, #0
	beq	.L9
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-24]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r4
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, pc}
.L9:
	mov	r0, r5
	bl	zlib_decomp_exit
	ldr	r3, .L12+8
	ldr	r3, [r3]
	ldr	r0, [r6, r3, lsl #2]
	cmp	r0, #0
	beq	.L3
	bl	nla_get_u32
.L4:
	str	r0, [r5]
	bl	zlib_inflate_workspacesize
	ldr	r3, .L12+12
	ldr	r1, [r3]
	bl	kzalloc
	cmp	r0, #0
	str	r0, [r5, #4]
	beq	.L11
	mov	r0, r5
	ldr	r1, [r0], #4
	bl	zlib_inflateInit2
	ldr	r3, .L12+16
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L1
	ldr	r0, [r5, #4]
	bl	kfree
	mov	r2, #0
	ldr	r3, .L12+20
	str	r2, [r5, #4]
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L3:
	ldr	r3, .L12+24
	ldr	r0, [r3]
	b	.L4
.L11:
	ldr	r3, .L12+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC0
	.word	ZLIB_DECOMP_MAX
	.word	ZLIB_DECOMP_WINDOWBITS
	.word	GFP_KERNEL
	.word	Z_OK
	.word	EINVAL
	.word	DEF_WBITS
	.word	ENOMEM
	.size	zlib_decompress_setup, .-zlib_decompress_setup
	.comm	Z_OK,4,4
	.comm	ZLIB_DECOMP_WINDOWBITS,4,4
	.comm	ZLIB_DECOMP_MAX,4,4
	.comm	GFP_KERNEL,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	DEF_WBITS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
