	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_io_zip_open_archive          ## -- Begin function r_io_zip_open_archive
	.p2align	4, 0x90
_r_io_zip_open_archive:                 ## @r_io_zip_open_archive
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.1:
	leaq	-4(%rbp), %rdx
	callq	_zip_open
	testq	%rax, %rax
	jne	LBB0_15
## %bb.2:
	movl	-4(%rbp), %eax
	movq	_ZIP_ER_INVAL@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_13
LBB0_4:
	movq	_ZIP_ER_OPEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_13
LBB0_6:
	movq	_ZIP_ER_NOENT@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_13
LBB0_8:
	movq	_ZIP_ER_READ@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_13
LBB0_10:
	movq	_ZIP_ER_NOZIP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_12
## %bb.11:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_13
LBB0_12:
	movq	_ZIP_ER_INCONS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.6(%rip), %rdi
	cmoveq	%rax, %rdi
LBB0_13:
	callq	_eprintf
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_ER_INVAL,4,2               ## @ZIP_ER_INVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ZIP File Error: Invalid file name (NULL).\n"

	.comm	_ZIP_ER_OPEN,4,2                ## @ZIP_ER_OPEN
L_.str.1:                               ## @.str.1
	.asciz	"ZIP File Error: File could not be opened file name.\n"

	.comm	_ZIP_ER_NOENT,4,2               ## @ZIP_ER_NOENT
L_.str.2:                               ## @.str.2
	.asciz	"ZIP File Error: File does not exist.\n"

	.comm	_ZIP_ER_READ,4,2                ## @ZIP_ER_READ
L_.str.3:                               ## @.str.3
	.asciz	"ZIP File Error: Read error occurred.\n"

	.comm	_ZIP_ER_NOZIP,4,2               ## @ZIP_ER_NOZIP
L_.str.4:                               ## @.str.4
	.asciz	"ZIP File Error: File is not a valid ZIP archive.\n"

	.comm	_ZIP_ER_INCONS,4,2              ## @ZIP_ER_INCONS
L_.str.5:                               ## @.str.5
	.asciz	"ZIP File Error: ZIP file had some inconsistencies archive.\n"

L_.str.6:                               ## @.str.6
	.asciz	"ZIP File Error: Something bad happened, get your debug on.\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_r_io_zip_open_archive          ; -- Begin function r_io_zip_open_archive
	.p2align	2
_r_io_zip_open_archive:                 ; @r_io_zip_open_archive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	cbz	x0, LBB0_14
; %bb.1:
	sub	x2, x29, #4
	bl	_zip_open
	cbnz	x0, LBB0_14
; %bb.2:
	ldur	w8, [x29, #-4]
Lloh0:
	adrp	x9, _ZIP_ER_INVAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZIP_ER_INVAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.3:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_13
LBB0_4:
Lloh5:
	adrp	x9, _ZIP_ER_OPEN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _ZIP_ER_OPEN@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_13
LBB0_6:
Lloh10:
	adrp	x9, _ZIP_ER_NOENT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ZIP_ER_NOENT@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.7:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_13
LBB0_8:
Lloh15:
	adrp	x9, _ZIP_ER_READ@GOTPAGE
Lloh16:
	ldr	x9, [x9, _ZIP_ER_READ@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_10
; %bb.9:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_13
LBB0_10:
Lloh20:
	adrp	x9, _ZIP_ER_NOZIP@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ZIP_ER_NOZIP@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_12
; %bb.11:
Lloh23:
	adrp	x0, l_.str.4@PAGE
Lloh24:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_13
LBB0_12:
Lloh25:
	adrp	x9, _ZIP_ER_INCONS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _ZIP_ER_INCONS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x10, l_.str.6@PAGE
Lloh29:
	add	x10, x10, l_.str.6@PAGEOFF
Lloh30:
	adrp	x11, l_.str.5@PAGE
Lloh31:
	add	x11, x11, l_.str.5@PAGEOFF
	cmp	w8, w9
	csel	x0, x11, x10, eq
LBB0_13:
	bl	_eprintf
	mov	x0, #0
LBB0_14:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_ER_INVAL,4,2               ; @ZIP_ER_INVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ZIP File Error: Invalid file name (NULL).\n"

	.comm	_ZIP_ER_OPEN,4,2                ; @ZIP_ER_OPEN
l_.str.1:                               ; @.str.1
	.asciz	"ZIP File Error: File could not be opened file name.\n"

	.comm	_ZIP_ER_NOENT,4,2               ; @ZIP_ER_NOENT
l_.str.2:                               ; @.str.2
	.asciz	"ZIP File Error: File does not exist.\n"

	.comm	_ZIP_ER_READ,4,2                ; @ZIP_ER_READ
l_.str.3:                               ; @.str.3
	.asciz	"ZIP File Error: Read error occurred.\n"

	.comm	_ZIP_ER_NOZIP,4,2               ; @ZIP_ER_NOZIP
l_.str.4:                               ; @.str.4
	.asciz	"ZIP File Error: File is not a valid ZIP archive.\n"

	.comm	_ZIP_ER_INCONS,4,2              ; @ZIP_ER_INCONS
l_.str.5:                               ; @.str.5
	.asciz	"ZIP File Error: ZIP file had some inconsistencies archive.\n"

l_.str.6:                               ; @.str.6
	.asciz	"ZIP File Error: Something bad happened, get your debug on.\n"

.subsections_via_symbols
