	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mzap_rlookup
_mzap_rlookup:                          ## @mzap_rlookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rdi
	movslq	(%rsi), %rax
	shlq	$9, %rax
	movq	_MZAP_ENT_LEN@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rsi
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_3
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_3:
	decl	%eax
	testl	%eax, %eax
	jle	LBB0_8
## %bb.4:
	movq	_zap_scratch@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx), %rdx
	movl	%eax, %eax
	addq	$8, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, -8(%rdx)
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rsi
	addq	$16, %rdx
	cmpq	%rax, %rsi
	jne	LBB0_5
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
LBB0_6:
	movl	(%rdx), %esi
	callq	_strcpy
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_zap_scratch,8,3                ## @zap_scratch
	.comm	_MZAP_ENT_LEN,8,3               ## @MZAP_ENT_LEN
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_mzap_rlookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mzap_rlookup
_mzap_rlookup:                          ; @mzap_rlookup
	.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
	ldrsw	x8, [x1]
	lsl	x8, x8, #9
Lloh0:
	adrp	x9, _MZAP_ENT_LEN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MZAP_ENT_LEN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	udiv	x8, x8, x9
	sub	w8, w8, #1
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x9, #0
Lloh3:
	adrp	x10, _zap_scratch@GOTPAGE
Lloh4:
	ldr	x10, [x10, _zap_scratch@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x10, [x10]
	add	x10, x10, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x11, [x10, #-8]
	cmp	x11, x3
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x9, x9, #1
	add	x10, x10, #16
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_4:
Lloh6:
	adrp	x8, _ENOENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	w1, [x10]
	mov	x0, x2
	bl	_strcpy
	mov	w0, #0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_zap_scratch,8,3                ; @zap_scratch
	.comm	_MZAP_ENT_LEN,8,3               ; @MZAP_ENT_LEN
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_mzap_rlookup
.subsections_via_symbols
