	.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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movb	(%rsi), %al
	cmpb	$119, %al
	je	LBB0_2
## %bb.1:
	cmpb	$114, %al
	jne	LBB0_5
LBB0_2:
	testl	%ebx, %ebx
	js	LBB0_5
## %bb.3:
	cmpb	$0, 1(%r12)
	jne	LBB0_5
## %bb.4:
	movq	_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	cmpl	%ebx, %r13d
	jl	LBB0_5
## %bb.6:
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	%rax, %r14
	testl	%ebx, %ebx
	cmovnel	%ebx, %r13d
	movslq	%r13d, %rcx
	movq	_maxbits@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	movq	_maxmaxcode@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_HSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_hsize@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_free_ent@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_BLOCK_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_block_compress@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_clear_flg@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_ratio@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_CHECK_GAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_checkpoint@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_in_count@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_out_count@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_S_START@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_roffset@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_size@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_fopen
	movq	_fp@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_8
## %bb.10:
	movsbl	(%r12), %eax
	cmpl	$119, %eax
	je	LBB0_14
## %bb.11:
	cmpl	$114, %eax
	jne	LBB0_9
## %bb.12:
	movq	_zmode@GOTPCREL(%rip), %rax
	movb	$114, (%rax)
	movq	_zread@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_zclose@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	jmp	LBB0_13
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r14, %rdi
	callq	_free
	jmp	LBB0_9
LBB0_14:
	movq	_zmode@GOTPCREL(%rip), %rax
	movb	$119, (%rax)
	movq	_zwrite@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_zclose@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%esi, %esi
LBB0_13:
	xorl	%ecx, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_funopen                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BITS,4,2                       ## @BITS
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_maxbits,8,3                    ## @maxbits
	.comm	_maxmaxcode,8,3                 ## @maxmaxcode
	.comm	_HSIZE,4,2                      ## @HSIZE
	.comm	_hsize,4,2                      ## @hsize
	.comm	_free_ent,8,3                   ## @free_ent
	.comm	_BLOCK_MASK,4,2                 ## @BLOCK_MASK
	.comm	_block_compress,4,2             ## @block_compress
	.comm	_clear_flg,8,3                  ## @clear_flg
	.comm	_ratio,8,3                      ## @ratio
	.comm	_CHECK_GAP,4,2                  ## @CHECK_GAP
	.comm	_checkpoint,4,2                 ## @checkpoint
	.comm	_in_count,4,2                   ## @in_count
	.comm	_out_count,8,3                  ## @out_count
	.comm	_S_START,4,2                    ## @S_START
	.comm	_state,4,2                      ## @state
	.comm	_roffset,8,3                    ## @roffset
	.comm	_size,8,3                       ## @size
	.comm	_fp,8,3                         ## @fp
	.comm	_zmode,1,0                      ## @zmode
	.comm	_zread,8,3                      ## @zread
	.comm	_zclose,4,2                     ## @zclose
	.comm	_zwrite,8,3                     ## @zwrite
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x2
	mov	x19, x1
	mov	x21, x0
	ldrb	w8, [x1]
	cmp	w8, #119
	b.eq	LBB0_2
; %bb.1:
	cmp	w8, #114
	b.ne	LBB0_9
LBB0_2:
	tbnz	w22, #31, LBB0_9
; %bb.3:
	ldrb	w8, [x19, #1]
Lloh0:
	adrp	x9, _BITS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BITS@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x9]
	cmp	w8, #0
	ccmp	w24, w22, #8, eq
	b.lt	LBB0_9
; %bb.4:
	mov	w23, #1
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	cbz	x0, LBB0_10
; %bb.5:
	mov	x20, x0
Lloh3:
	adrp	x8, _maxbits@GOTPAGE
Lloh4:
	ldr	x8, [x8, _maxbits@GOTPAGEOFF]
	cmp	w22, #0
	csel	w9, w24, w22, eq
	lsl	x10, x23, x9
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	sxtw	x9, w9
Lloh5:
	str	x9, [x8]
Lloh6:
	adrp	x8, _maxmaxcode@GOTPAGE
Lloh7:
	ldr	x8, [x8, _maxmaxcode@GOTPAGEOFF]
Lloh8:
	str	x10, [x8]
Lloh9:
	adrp	x8, _HSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HSIZE@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _hsize@GOTPAGE
Lloh13:
	ldr	x9, [x9, _hsize@GOTPAGEOFF]
Lloh14:
	str	w8, [x9]
Lloh15:
	adrp	x8, _free_ent@GOTPAGE
Lloh16:
	ldr	x8, [x8, _free_ent@GOTPAGEOFF]
Lloh17:
	str	xzr, [x8]
Lloh18:
	adrp	x8, _BLOCK_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _BLOCK_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _block_compress@GOTPAGE
Lloh22:
	ldr	x9, [x9, _block_compress@GOTPAGEOFF]
Lloh23:
	str	w8, [x9]
Lloh24:
	adrp	x8, _clear_flg@GOTPAGE
Lloh25:
	ldr	x8, [x8, _clear_flg@GOTPAGEOFF]
Lloh26:
	str	xzr, [x8]
Lloh27:
	adrp	x8, _ratio@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ratio@GOTPAGEOFF]
Lloh29:
	str	xzr, [x8]
Lloh30:
	adrp	x8, _CHECK_GAP@GOTPAGE
Lloh31:
	ldr	x8, [x8, _CHECK_GAP@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
Lloh33:
	adrp	x9, _checkpoint@GOTPAGE
Lloh34:
	ldr	x9, [x9, _checkpoint@GOTPAGEOFF]
Lloh35:
	str	w8, [x9]
Lloh36:
	adrp	x8, _in_count@GOTPAGE
Lloh37:
	ldr	x8, [x8, _in_count@GOTPAGEOFF]
Lloh38:
	str	w23, [x8]
Lloh39:
	adrp	x8, _out_count@GOTPAGE
Lloh40:
	ldr	x8, [x8, _out_count@GOTPAGEOFF]
Lloh41:
	str	xzr, [x8]
Lloh42:
	adrp	x8, _S_START@GOTPAGE
Lloh43:
	ldr	x8, [x8, _S_START@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
Lloh45:
	adrp	x9, _state@GOTPAGE
Lloh46:
	ldr	x9, [x9, _state@GOTPAGEOFF]
Lloh47:
	str	w8, [x9]
Lloh48:
	adrp	x8, _roffset@GOTPAGE
Lloh49:
	ldr	x8, [x8, _roffset@GOTPAGEOFF]
Lloh50:
	str	xzr, [x8]
Lloh51:
	adrp	x8, _size@GOTPAGE
Lloh52:
	ldr	x8, [x8, _size@GOTPAGEOFF]
Lloh53:
	str	xzr, [x8]
	mov	x0, x21
	mov	x1, x19
	bl	_fopen
Lloh54:
	adrp	x8, _fp@GOTPAGE
Lloh55:
	ldr	x8, [x8, _fp@GOTPAGEOFF]
Lloh56:
	str	x0, [x8]
	cbz	x0, LBB0_11
; %bb.6:
	ldrsb	w8, [x19]
	cmp	w8, #119
	b.eq	LBB0_12
; %bb.7:
	cmp	w8, #114
	b.ne	LBB0_10
; %bb.8:
Lloh57:
	adrp	x8, _zmode@GOTPAGE
Lloh58:
	ldr	x8, [x8, _zmode@GOTPAGEOFF]
	mov	w9, #114
Lloh59:
	strb	w9, [x8]
Lloh60:
	adrp	x8, _zread@GOTPAGE
Lloh61:
	ldr	x8, [x8, _zread@GOTPAGEOFF]
Lloh62:
	ldr	x1, [x8]
Lloh63:
	adrp	x8, _zclose@GOTPAGE
Lloh64:
	ldr	x8, [x8, _zclose@GOTPAGEOFF]
Lloh65:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x2, #0
	b	LBB0_13
LBB0_9:
Lloh66:
	adrp	x8, _EINVAL@GOTPAGE
Lloh67:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh68:
	ldr	w8, [x8]
Lloh69:
	adrp	x9, _errno@GOTPAGE
Lloh70:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh71:
	str	w8, [x9]
LBB0_10:
	mov	x0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x0, x20
	bl	_free
	b	LBB0_10
LBB0_12:
Lloh72:
	adrp	x8, _zmode@GOTPAGE
Lloh73:
	ldr	x8, [x8, _zmode@GOTPAGEOFF]
	mov	w9, #119
Lloh74:
	strb	w9, [x8]
Lloh75:
	adrp	x8, _zwrite@GOTPAGE
Lloh76:
	ldr	x8, [x8, _zwrite@GOTPAGEOFF]
Lloh77:
	ldr	x2, [x8]
Lloh78:
	adrp	x8, _zclose@GOTPAGE
Lloh79:
	ldr	x8, [x8, _zclose@GOTPAGEOFF]
Lloh80:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, #0
LBB0_13:
	mov	x3, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_funopen
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotStr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotStr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotStr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotStr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotStr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotStr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotStr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh63, Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotStr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGotStr	Lloh69, Lloh70, Lloh71
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh78, Lloh79, Lloh80
	.loh AdrpLdrGotLdr	Lloh75, Lloh76, Lloh77
	.loh AdrpLdrGotStr	Lloh72, Lloh73, Lloh74
	.cfi_endproc
                                        ; -- End function
	.comm	_BITS,4,2                       ; @BITS
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_maxbits,8,3                    ; @maxbits
	.comm	_maxmaxcode,8,3                 ; @maxmaxcode
	.comm	_HSIZE,4,2                      ; @HSIZE
	.comm	_hsize,4,2                      ; @hsize
	.comm	_free_ent,8,3                   ; @free_ent
	.comm	_BLOCK_MASK,4,2                 ; @BLOCK_MASK
	.comm	_block_compress,4,2             ; @block_compress
	.comm	_clear_flg,8,3                  ; @clear_flg
	.comm	_ratio,8,3                      ; @ratio
	.comm	_CHECK_GAP,4,2                  ; @CHECK_GAP
	.comm	_checkpoint,4,2                 ; @checkpoint
	.comm	_in_count,4,2                   ; @in_count
	.comm	_out_count,8,3                  ; @out_count
	.comm	_S_START,4,2                    ; @S_START
	.comm	_state,4,2                      ; @state
	.comm	_roffset,8,3                    ; @roffset
	.comm	_size,8,3                       ; @size
	.comm	_fp,8,3                         ; @fp
	.comm	_zmode,1,0                      ; @zmode
	.comm	_zread,8,3                      ; @zread
	.comm	_zclose,4,2                     ; @zclose
	.comm	_zwrite,8,3                     ; @zwrite
.subsections_via_symbols
