	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function z_decomp_alloc
_z_decomp_alloc:                        ## @z_decomp_alloc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_CILEN_DEFLATE@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_12
## %bb.1:
	movq	%rdi, %rbx
	movb	(%rdi), %al
	movq	_CI_DEFLATE@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	je	LBB0_3
## %bb.2:
	movq	_CI_DEFLATE_DRAFT@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_12
LBB0_3:
	movzbl	1(%rbx), %eax
	cmpl	%esi, %eax
	jne	LBB0_12
## %bb.4:
	movzbl	2(%rbx), %edi
	callq	_DEFLATE_METHOD
	movq	_DEFLATE_METHOD_VAL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.5:
	movb	3(%rbx), %al
	movq	_DEFLATE_CHK_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpb	(%rcx), %al
	jne	LBB0_12
## %bb.6:
	movzbl	2(%rbx), %edi
	callq	_DEFLATE_SIZE
	movl	%eax, %r14d
	movq	_DEFLATE_MIN_SIZE@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %r14d
	jl	LBB0_13
## %bb.7:
	movq	_DEFLATE_MAX_SIZE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jg	LBB0_13
## %bb.8:
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$24, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	%rax, %rbx
	movl	%r14d, (%rax)
	movq	$0, 16(%rax)
	xorl	%eax, %eax
	callq	_zlib_inflate_workspacesize
	movl	%eax, %edi
	callq	_vmalloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movq	%rbx, %rdi
	addq	$8, %rdi
	negl	%r14d
	movl	%r14d, %esi
	callq	_zlib_inflateInit2
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
LBB0_11:
	movq	%rbx, %rdi
	callq	_z_decomp_free
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CILEN_DEFLATE,4,2              ## @CILEN_DEFLATE
	.comm	_CI_DEFLATE,1,0                 ## @CI_DEFLATE
	.comm	_CI_DEFLATE_DRAFT,1,0           ## @CI_DEFLATE_DRAFT
	.comm	_DEFLATE_METHOD_VAL,8,3         ## @DEFLATE_METHOD_VAL
	.comm	_DEFLATE_CHK_SEQUENCE,1,0       ## @DEFLATE_CHK_SEQUENCE
	.comm	_DEFLATE_MIN_SIZE,4,2           ## @DEFLATE_MIN_SIZE
	.comm	_DEFLATE_MAX_SIZE,4,2           ## @DEFLATE_MAX_SIZE
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_Z_OK,8,3                       ## @Z_OK
	.no_dead_strip	_z_decomp_alloc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function z_decomp_alloc
_z_decomp_alloc:                        ; @z_decomp_alloc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _CILEN_DEFLATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CILEN_DEFLATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_10
; %bb.1:
	mov	x19, x0
	ldrb	w8, [x0]
Lloh3:
	adrp	x9, _CI_DEFLATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CI_DEFLATE@GOTPAGEOFF]
	ldrb	w9, [x9]
Lloh5:
	adrp	x10, _CI_DEFLATE_DRAFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _CI_DEFLATE_DRAFT@GOTPAGEOFF]
	ldrb	w10, [x10]
	cmp	w8, w9
	ccmp	w8, w10, #4, ne
	b.ne	LBB0_10
; %bb.2:
	ldrb	w8, [x19, #1]
	cmp	w8, w1
	b.ne	LBB0_10
; %bb.3:
	ldrb	w0, [x19, #2]
	bl	_DEFLATE_METHOD
Lloh7:
	adrp	x8, _DEFLATE_METHOD_VAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DEFLATE_METHOD_VAL@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.4:
	ldrb	w8, [x19, #3]
Lloh10:
	adrp	x9, _DEFLATE_CHK_SEQUENCE@GOTPAGE
Lloh11:
	ldr	x9, [x9, _DEFLATE_CHK_SEQUENCE@GOTPAGEOFF]
	ldrb	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.5:
	ldrb	w0, [x19, #2]
	bl	_DEFLATE_SIZE
Lloh12:
	adrp	x8, _DEFLATE_MIN_SIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DEFLATE_MIN_SIZE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _DEFLATE_MAX_SIZE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DEFLATE_MAX_SIZE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #0, ge
	b.gt	LBB0_10
; %bb.6:
	mov	x20, x0
Lloh18:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	mov	w0, #24
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_11
; %bb.7:
	str	w20, [x19]
	str	xzr, [x19, #16]
	bl	_zlib_inflate_workspacesize
	bl	_vmalloc
	mov	x8, x0
	mov	x0, x19
	str	x8, [x0, #8]!
	cbz	x8, LBB0_9
; %bb.8:
	neg	w1, w20
	bl	_zlib_inflateInit2
Lloh21:
	adrp	x8, _Z_OK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_11
LBB0_9:
	mov	x0, x19
	bl	_z_decomp_free
LBB0_10:
	mov	x19, #0
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_CILEN_DEFLATE,4,2              ; @CILEN_DEFLATE
	.comm	_CI_DEFLATE,1,0                 ; @CI_DEFLATE
	.comm	_CI_DEFLATE_DRAFT,1,0           ; @CI_DEFLATE_DRAFT
	.comm	_DEFLATE_METHOD_VAL,8,3         ; @DEFLATE_METHOD_VAL
	.comm	_DEFLATE_CHK_SEQUENCE,1,0       ; @DEFLATE_CHK_SEQUENCE
	.comm	_DEFLATE_MIN_SIZE,4,2           ; @DEFLATE_MIN_SIZE
	.comm	_DEFLATE_MAX_SIZE,4,2           ; @DEFLATE_MAX_SIZE
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_Z_OK,8,3                       ; @Z_OK
	.no_dead_strip	_z_decomp_alloc
.subsections_via_symbols
