	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zopen                          ## -- Begin function zopen
	.p2align	4, 0x90
_zopen:                                 ## @zopen
	.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	%rsi, %rbx
	callq	_gzopen
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%esi, %esi
	cmpb	$114, (%rbx)
	movq	_xgzwrite@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	cmoveq	%rsi, %rdx
	movq	_xgzread@GOTPCREL(%rip), %rcx
	cmoveq	(%rcx), %rsi
	movq	_xgzseek@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	_xgzclose@GOTPCREL(%rip), %rdi
	movl	(%rdi), %r8d
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_funopen                        ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xgzread,8,3                    ## @xgzread
	.comm	_xgzseek,4,2                    ## @xgzseek
	.comm	_xgzclose,4,2                   ## @xgzclose
	.comm	_xgzwrite,8,3                   ## @xgzwrite
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_zopen                          ; -- Begin function zopen
	.p2align	2
_zopen:                                 ; @zopen
	.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, x1
	bl	_gzopen
	cbz	x0, LBB0_2
; %bb.1:
	ldrb	w8, [x19]
Lloh0:
	adrp	x9, _xgzwrite@GOTPAGE
Lloh1:
	ldr	x9, [x9, _xgzwrite@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _xgzread@GOTPAGE
Lloh4:
	ldr	x10, [x10, _xgzread@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	w8, #114
	csel	x2, xzr, x9, eq
	csel	x1, x10, xzr, eq
Lloh6:
	adrp	x8, _xgzseek@GOTPAGE
Lloh7:
	ldr	x8, [x8, _xgzseek@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _xgzclose@GOTPAGE
Lloh10:
	ldr	x8, [x8, _xgzclose@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_funopen
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_xgzread,8,3                    ; @xgzread
	.comm	_xgzseek,4,2                    ; @xgzseek
	.comm	_xgzclose,4,2                   ; @xgzclose
	.comm	_xgzwrite,8,3                   ; @xgzwrite
.subsections_via_symbols
