	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gz_init
_gz_init:                               ## @gz_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	32(%rdi), %edi
	callq	_malloc
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$0, 28(%rbx)
	movl	32(%rbx), %edi
	je	LBB0_4
## %bb.3:
	movl	%edi, 24(%rbx)
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_4:
	callq	_malloc
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	leaq	48(%rbx), %rdi
	movq	_Z_NULL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 80(%rbx)
	movq	%rax, 72(%rbx)
	movq	%rax, 64(%rbx)
	movl	36(%rbx), %r9d
	movl	40(%rbx), %esi
	movq	_Z_DEFLATED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MAX_WBITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$16, %rcx
	movq	_DEF_MEM_LEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_deflateInit2
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_7
## %bb.8:
	movl	32(%rbx), %ecx
	movl	%ecx, 24(%rbx)
	xorl	%eax, %eax
	cmpl	$0, 28(%rbx)
	jne	LBB0_10
## %bb.9:
	movl	%ecx, 56(%rbx)
	movq	8(%rbx), %rcx
	movq	%rcx, 48(%rbx)
	movq	%rcx, 16(%rbx)
	jmp	LBB0_10
LBB0_7:
	movq	8(%rbx), %rdi
	callq	_free
LBB0_5:
	movq	(%rbx), %rdi
	callq	_free
LBB0_1:
	movq	_Z_MEM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_gz_error
	movl	$-1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_MEM_ERROR,4,2                ## @Z_MEM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"out of memory"

	.comm	_Z_NULL,8,3                     ## @Z_NULL
	.comm	_Z_DEFLATED,4,2                 ## @Z_DEFLATED
	.comm	_MAX_WBITS,8,3                  ## @MAX_WBITS
	.comm	_DEF_MEM_LEVEL,4,2              ## @DEF_MEM_LEVEL
	.comm	_Z_OK,4,2                       ## @Z_OK
	.no_dead_strip	_gz_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gz_init
_gz_init:                               ; @gz_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
	ldr	w0, [x0, #32]
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_9
; %bb.1:
	ldp	w9, w8, [x19, #28]
	cbz	w9, LBB0_3
; %bb.2:
	mov	w0, #0
	str	w8, [x19, #24]
	b	LBB0_10
LBB0_3:
	mov	x0, x8
	bl	_malloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_8
; %bb.4:
	add	x0, x19, #48
Lloh0:
	adrp	x8, _Z_NULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _Z_NULL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x8, [x19, #72]
	str	x8, [x19, #64]
Lloh3:
	adrp	x8, _Z_DEFLATED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _Z_DEFLATED@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _MAX_WBITS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAX_WBITS@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x3, x8, #16
Lloh9:
	adrp	x8, _DEF_MEM_LEVEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DEF_MEM_LEVEL@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	ldp	w5, w1, [x19, #36]
	bl	_deflateInit2
Lloh12:
	adrp	x8, _Z_OK@GOTPAGE
Lloh13:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.5:
	ldp	w9, w8, [x19, #28]
	str	w8, [x19, #24]
	mov	w0, #0
	cbnz	w9, LBB0_10
; %bb.6:
	str	w8, [x19, #56]
	ldr	x8, [x19, #8]
	str	x8, [x19, #48]
	str	x8, [x19, #16]
	b	LBB0_10
LBB0_7:
	ldr	x0, [x19, #8]
	bl	_free
LBB0_8:
	ldr	x0, [x19]
	bl	_free
LBB0_9:
Lloh15:
	adrp	x8, _Z_MEM_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _Z_MEM_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_gz_error
	mov	w0, #-1
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_MEM_ERROR,4,2                ; @Z_MEM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"out of memory"

	.comm	_Z_NULL,8,3                     ; @Z_NULL
	.comm	_Z_DEFLATED,4,2                 ; @Z_DEFLATED
	.comm	_MAX_WBITS,8,3                  ; @MAX_WBITS
	.comm	_DEF_MEM_LEVEL,4,2              ; @DEF_MEM_LEVEL
	.comm	_Z_OK,4,2                       ; @Z_OK
	.no_dead_strip	_gz_init
.subsections_via_symbols
