	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zlib_decompress_setup
_zlib_decompress_setup:                 ## @zlib_decompress_setup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_crypto_pcomp_tfm
	movl	%eax, %edi
	callq	_crypto_tfm_ctx
	movq	%rax, %r14
	movq	_ZLIB_DECOMP_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leal	1(%rbx), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_nla_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	%r14, %rdi
	callq	_zlib_decomp_exit
	movq	_ZLIB_DECOMP_WINDOWBITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r12,%rax,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_nla_get_u32
	jmp	LBB0_4
LBB0_3:
	movq	_DEF_WBITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_zlib_inflate_workspacesize
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_kzalloc
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r14, %r15
	addq	$8, %r15
	movl	(%r14), %esi
	movq	%r15, %rdi
	callq	_zlib_inflateInit2
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_9
## %bb.7:
	movq	(%r15), %rdi
	callq	_kfree
	movq	$0, (%r15)
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_8:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_ZLIB_DECOMP_MAX,4,2            ## @ZLIB_DECOMP_MAX
	.comm	_ZLIB_DECOMP_WINDOWBITS,8,3     ## @ZLIB_DECOMP_WINDOWBITS
	.comm	_DEF_WBITS,4,2                  ## @DEF_WBITS
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_zlib_decompress_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function zlib_decompress_setup
_zlib_decompress_setup:                 ; @zlib_decompress_setup
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #16
	mov	x21, x2
	mov	x22, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
	bl	_crypto_pcomp_tfm
	bl	_crypto_tfm_ctx
	mov	x19, x0
Lloh3:
	adrp	x8, _ZLIB_DECOMP_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZLIB_DECOMP_MAX@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	w8, w1, #1
	lsl	x8, x8, #3
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x20, x9, x8
	mov	sp, x20
	mov	x0, x20
	mov	x2, x22
	mov	x3, x21
	mov	x4, #0
	bl	_nla_parse
	cbnz	w0, LBB0_10
; %bb.1:
	mov	x0, x19
	bl	_zlib_decomp_exit
Lloh8:
	adrp	x8, _ZLIB_DECOMP_WINDOWBITS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ZLIB_DECOMP_WINDOWBITS@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x0, [x20, x8, lsl #3]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_nla_get_u32
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x8, _DEF_WBITS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DEF_WBITS@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
LBB0_4:
	str	w0, [x19]
	bl	_zlib_inflate_workspacesize
Lloh14:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_kzalloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_7
; %bb.5:
	add	x20, x19, #8
	ldr	w1, [x19]
	mov	x0, x20
	bl	_zlib_inflateInit2
Lloh17:
	adrp	x8, _Z_OK@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh20:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x0, [x20]
	bl	_kfree
	str	xzr, [x20]
Lloh22:
	adrp	x8, _EINVAL@GOTPAGE
Lloh23:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldur	x8, [x29, #-40]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_ZLIB_DECOMP_MAX,4,2            ; @ZLIB_DECOMP_MAX
	.comm	_ZLIB_DECOMP_WINDOWBITS,8,3     ; @ZLIB_DECOMP_WINDOWBITS
	.comm	_DEF_WBITS,4,2                  ; @DEF_WBITS
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_zlib_decompress_setup
.subsections_via_symbols
