	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzclose_w                      ## -- Begin function gzclose_w
	.p2align	4, 0x90
_gzclose_w:                             ## @gzclose_w
	.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
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_GZ_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	_Z_OK@GOTPCREL(%rip), %r15
	movl	(%r15), %r14d
	cmpq	$0, 64(%rbx)
	je	LBB0_6
## %bb.4:
	movq	$0, 64(%rbx)
	movl	56(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gz_zero
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:
	movl	8(%rbx), %r14d
LBB0_6:
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_gz_comp
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:
	movl	8(%rbx), %r14d
LBB0_8:
	cmpq	$0, 48(%rbx)
	je	LBB0_12
## %bb.9:
	cmpl	$0, 44(%rbx)
	jne	LBB0_11
## %bb.10:
	leaq	40(%rbx), %rdi
	callq	_deflateEnd
	movq	32(%rbx), %rdi
	callq	_free
LBB0_11:
	movq	24(%rbx), %rdi
	callq	_free
LBB0_12:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_gz_error
	movq	16(%rbx), %rdi
	callq	_free
	movl	12(%rbx), %edi
	callq	_close
	cmpl	$-1, %eax
	jne	LBB0_14
## %bb.13:
	movq	_Z_ERRNO@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_14:
	movq	%rbx, %rdi
	callq	_free
	jmp	LBB0_15
LBB0_1:
	movq	_Z_STREAM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_15:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_Z_OK,4,2                       ## @Z_OK
	.comm	_Z_STREAM_ERROR,4,2             ## @Z_STREAM_ERROR
	.comm	_GZ_WRITE,8,3                   ## @GZ_WRITE
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
	.comm	_Z_ERRNO,4,2                    ## @Z_ERRNO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzclose_w                      ; -- Begin function gzclose_w
	.p2align	2
_gzclose_w:                             ; @gzclose_w
	.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
	cbz	x0, LBB0_12
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GZ_WRITE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GZ_WRITE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.2:
Lloh3:
	adrp	x21, _Z_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _Z_OK@GOTPAGEOFF]
	ldr	w20, [x21]
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_5
; %bb.3:
	str	xzr, [x19, #64]
	ldr	w1, [x19, #56]
	mov	x0, x19
	bl	_gz_zero
	cmn	w0, #1
	b.ne	LBB0_5
; %bb.4:
	ldr	w20, [x19, #8]
LBB0_5:
Lloh5:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_gz_comp
	cmn	w0, #1
	b.ne	LBB0_7
; %bb.6:
	ldr	w20, [x19, #8]
LBB0_7:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.8:
	ldr	w8, [x19, #44]
	cbnz	w8, LBB0_10
; %bb.9:
	add	x0, x19, #40
	bl	_deflateEnd
	ldr	x0, [x19, #32]
	bl	_free
LBB0_10:
	ldr	x0, [x19, #24]
	bl	_free
LBB0_11:
	ldr	w1, [x21]
	mov	x0, x19
	mov	x2, #0
	bl	_gz_error
	ldr	x0, [x19, #16]
	bl	_free
	ldr	w0, [x19, #12]
	bl	_close
Lloh8:
	adrp	x8, _Z_ERRNO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _Z_ERRNO@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmn	w0, #1
	csel	w20, w8, w20, eq
	mov	x0, x19
	bl	_free
	b	LBB0_13
LBB0_12:
Lloh11:
	adrp	x8, _Z_STREAM_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
LBB0_13:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_Z_OK,4,2                       ; @Z_OK
	.comm	_Z_STREAM_ERROR,4,2             ; @Z_STREAM_ERROR
	.comm	_GZ_WRITE,8,3                   ; @GZ_WRITE
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
	.comm	_Z_ERRNO,4,2                    ; @Z_ERRNO
.subsections_via_symbols
