	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_get_dirent                ## -- Begin function _zip_get_dirent
	.p2align	4, 0x90
__zip_get_dirent:                       ## @_zip_get_dirent
	.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	%rdi, %rax
	addq	$16, %rdi
	testq	%rcx, %rcx
	cmovneq	%rcx, %rdi
	movq	_ZIP_ER_INVAL@GOTPCREL(%rip), %rcx
	cmpq	%rsi, (%rax)
	jbe	LBB0_7
## %bb.1:
	movq	_ZIP_FL_UNCHANGED@GOTPCREL(%rip), %rbx
	movq	8(%rax), %rax
	leaq	(%rsi,%rsi,2), %rsi
	andl	(%rbx), %edx
	je	LBB0_2
LBB0_3:
	movq	8(%rax,%rsi,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.4:
	cmpq	$0, 16(%rax,%rsi,8)
	je	LBB0_8
## %bb.5:
	testl	%edx, %edx
	jne	LBB0_8
## %bb.6:
	movq	_ZIP_ER_DELETED@GOTPCREL(%rip), %rcx
LBB0_7:
	movl	(%rcx), %esi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	callq	__zip_error_set
LBB0_8:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	(%rax,%rsi,8), %rbx
	testq	%rbx, %rbx
	jne	LBB0_8
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_ZIP_ER_INVAL,4,2               ## @ZIP_ER_INVAL
	.comm	_ZIP_FL_UNCHANGED,4,2           ## @ZIP_FL_UNCHANGED
	.comm	_ZIP_ER_DELETED,4,2             ## @ZIP_ER_DELETED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__zip_get_dirent                ; -- Begin function _zip_get_dirent
	.p2align	2
__zip_get_dirent:                       ; @_zip_get_dirent
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	mov	x8, x0
	mov	x9, x0
	ldr	x10, [x9], #16
	cmp	x3, #0
	csel	x0, x9, x3, eq
	cmp	x10, x1
	b.ls	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, _ZIP_FL_UNCHANGED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ZIP_FL_UNCHANGED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x10, [x8, #8]
	ands	w9, w9, w2
	b.eq	LBB0_8
LBB0_2:
	mov	w8, #24
	madd	x8, x1, x8, x10
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	w11, #24
	madd	x10, x1, x11, x10
	ldr	x10, [x10, #16]
	cmp	x10, #0
	ccmp	w9, #0, #0, ne
	b.ne	LBB0_7
; %bb.4:
Lloh3:
	adrp	x8, _ZIP_ER_DELETED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ZIP_ER_DELETED@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh5:
	adrp	x8, _ZIP_ER_INVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ZIP_ER_INVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	w2, #0
	bl	__zip_error_set
	mov	x8, #0
LBB0_7:
	mov	x0, x8
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	w8, #24
	mul	x8, x1, x8
	ldr	x8, [x10, x8]
	cbnz	x8, LBB0_7
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_ZIP_ER_INVAL,4,2               ; @ZIP_ER_INVAL
	.comm	_ZIP_FL_UNCHANGED,4,2           ; @ZIP_FL_UNCHANGED
	.comm	_ZIP_ER_DELETED,4,2             ; @ZIP_ER_DELETED
.subsections_via_symbols
