	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzflush                        ## -- Begin function gzflush
	.p2align	4, 0x90
_gzflush:                               ## @gzflush
	.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
	movl	$-1, %r14d
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	_GZ_WRITE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	movq	8(%rbx), %rax
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.4:
	movl	%esi, %r15d
	testl	%esi, %esi
	js	LBB0_3
## %bb.5:
	movq	_Z_FINISH@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jl	LBB0_3
## %bb.6:
	cmpq	$0, 24(%rbx)
	je	LBB0_8
## %bb.7:
	movq	$0, 24(%rbx)
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_gz_zero
	cmpl	$-1, %eax
	je	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_gz_comp
	movl	8(%rbx), %r14d
	jmp	LBB0_9
LBB0_3:
	movq	_Z_STREAM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GZ_WRITE,8,3                   ## @GZ_WRITE
	.comm	_Z_OK,8,3                       ## @Z_OK
	.comm	_Z_STREAM_ERROR,4,2             ## @Z_STREAM_ERROR
	.comm	_Z_FINISH,4,2                   ## @Z_FINISH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzflush                        ; -- Begin function gzflush
	.p2align	2
_gzflush:                               ; @gzflush
	.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
	cbz	x0, LBB0_9
; %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_8
; %bb.2:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _Z_OK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _Z_OK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.3:
	mov	x20, x1
	tbnz	w1, #31, LBB0_8
; %bb.4:
Lloh6:
	adrp	x8, _Z_FINISH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _Z_FINISH@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, w20
	b.lt	LBB0_8
; %bb.5:
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_7
; %bb.6:
	str	xzr, [x19, #24]
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_gz_zero
	cmn	w0, #1
	b.eq	LBB0_10
LBB0_7:
	mov	x0, x19
	mov	x1, x20
	bl	_gz_comp
	ldr	w0, [x19, #8]
	b	LBB0_10
LBB0_8:
Lloh9:
	adrp	x8, _Z_STREAM_ERROR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _Z_STREAM_ERROR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	b	LBB0_10
LBB0_9:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GZ_WRITE,8,3                   ; @GZ_WRITE
	.comm	_Z_OK,8,3                       ; @Z_OK
	.comm	_Z_STREAM_ERROR,4,2             ; @Z_STREAM_ERROR
	.comm	_Z_FINISH,4,2                   ; @Z_FINISH
.subsections_via_symbols
