	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function deflate_comp_init
_deflate_comp_init:                     ## @deflate_comp_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%r15d, %r15d
	xorl	%eax, %eax
	callq	_zlib_deflate_workspacesize
	movl	%eax, %edi
	callq	_vmalloc
	movl	%eax, (%r14)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_zlib_deflate_workspacesize
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movq	_DEFLATE_DEF_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_Z_DEFLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DEFLATE_DEF_WINBITS@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	movq	_DEFLATE_DEF_MEMLEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_Z_DEFAULT_STRATEGY@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	%r14, %rdi
	movl	%r15d, %ecx
	callq	_zlib_deflateInit2
	movl	%eax, %r15d
	movq	_Z_OK@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	movl	(%r14), %edi
	callq	_vfree
	jmp	LBB0_4
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_4:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_DEFLATE_DEF_LEVEL,4,2          ## @DEFLATE_DEF_LEVEL
	.comm	_Z_DEFLATED,4,2                 ## @Z_DEFLATED
	.comm	_DEFLATE_DEF_WINBITS,4,2        ## @DEFLATE_DEF_WINBITS
	.comm	_DEFLATE_DEF_MEMLEVEL,4,2       ## @DEFLATE_DEF_MEMLEVEL
	.comm	_Z_DEFAULT_STRATEGY,4,2         ## @Z_DEFAULT_STRATEGY
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_deflate_comp_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function deflate_comp_init
_deflate_comp_init:                     ; @deflate_comp_init
	.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
	mov	x19, x0
	bl	_zlib_deflate_workspacesize
	bl	_vmalloc
	str	w0, [x19]
	cbz	w0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_zlib_deflate_workspacesize
	mov	x2, x0
	mov	x0, x20
	mov	w1, #0
	bl	_memset
Lloh0:
	adrp	x8, _DEFLATE_DEF_LEVEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFLATE_DEF_LEVEL@GOTPAGEOFF]
Lloh2:
	adrp	x9, _Z_DEFLATED@GOTPAGE
Lloh3:
	ldr	x9, [x9, _Z_DEFLATED@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w2, [x9]
Lloh6:
	adrp	x8, _DEFLATE_DEF_WINBITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _DEFLATE_DEF_WINBITS@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w3, w8
Lloh9:
	adrp	x8, _DEFLATE_DEF_MEMLEVEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEFLATE_DEF_MEMLEVEL@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
Lloh12:
	adrp	x8, _Z_DEFAULT_STRATEGY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Z_DEFAULT_STRATEGY@GOTPAGEOFF]
Lloh14:
	ldr	w5, [x8]
	mov	x0, x19
	bl	_zlib_deflateInit2
	mov	x20, x0
Lloh15:
	adrp	x8, _Z_OK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.2:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w20, w8
	ldr	w0, [x19]
	bl	_vfree
	b	LBB0_4
LBB0_3:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_DEFLATE_DEF_LEVEL,4,2          ; @DEFLATE_DEF_LEVEL
	.comm	_Z_DEFLATED,4,2                 ; @Z_DEFLATED
	.comm	_DEFLATE_DEF_WINBITS,4,2        ; @DEFLATE_DEF_WINBITS
	.comm	_DEFLATE_DEF_MEMLEVEL,4,2       ; @DEFLATE_DEF_MEMLEVEL
	.comm	_Z_DEFAULT_STRATEGY,4,2         ; @Z_DEFAULT_STRATEGY
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_deflate_comp_init
.subsections_via_symbols
