	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzbuffer                       ## -- Begin function gzbuffer
	.p2align	4, 0x90
_gzbuffer:                              ## @gzbuffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-1, %eax
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	(%rdi), %rcx
	movq	_GZ_READ@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
## %bb.2:
	movq	_GZ_WRITE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_3
LBB0_5:
	popq	%rbp
	retq
LBB0_3:
	cmpq	$0, 8(%rdi)
	jne	LBB0_5
## %bb.4:
	cmpl	$3, %esi
	movl	$2, %eax
	cmovael	%esi, %eax
	movl	%eax, 16(%rdi)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GZ_READ,8,3                    ## @GZ_READ
	.comm	_GZ_WRITE,8,3                   ## @GZ_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gzbuffer                       ; -- Begin function gzbuffer
	.p2align	2
_gzbuffer:                              ; @gzbuffer
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_3
; %bb.1:
	mov	x8, x0
	ldr	x9, [x0]
Lloh0:
	adrp	x10, _GZ_READ@GOTPAGE
Lloh1:
	ldr	x10, [x10, _GZ_READ@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _GZ_WRITE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _GZ_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	cmp	x9, x10
	ccmp	x9, x11, #4, ne
	b.ne	LBB0_3
; %bb.2:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_4
LBB0_3:
	mov	w0, #-1
	ret
LBB0_4:
	mov	w0, #0
	mov	w9, #2
	cmp	w1, #2
	csel	w9, w1, w9, hi
	str	w9, [x8, #16]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GZ_READ,8,3                    ; @GZ_READ
	.comm	_GZ_WRITE,8,3                   ; @GZ_WRITE
.subsections_via_symbols
