	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rid_lookup
_rid_lookup:                            ## @rid_lookup
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_EINVAL@GOTPCREL(%rip), %rax
	testl	%edi, %edi
	js	LBB0_5
## %bb.1:
	movq	_nrids@GOTPCREL(%rip), %rcx
	cmpl	%edi, (%rcx)
	jle	LBB0_5
## %bb.2:
	movq	_ridtbl@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%edi, %ecx
	cmpl	$-1, (%rax,%rcx,4)
	je	LBB0_4
## %bb.3:
	leaq	(%rax,%rcx,4), %rax
	popq	%rbp
	retq
LBB0_4:
	movq	_ENXIO@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_nrids,4,2                      ## @nrids
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	_ridtbl,8,3                     ## @ridtbl
	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_rid_lookup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rid_lookup
_rid_lookup:                            ; @rid_lookup
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	tbnz	w0, #31, LBB0_5
; %bb.1:
Lloh2:
	adrp	x9, _nrids@GOTPAGE
Lloh3:
	ldr	x9, [x9, _nrids@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w0
	b.le	LBB0_5
; %bb.2:
Lloh5:
	adrp	x8, _ridtbl@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ridtbl@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	add	x0, x8, w0, uxtw #2
	ldr	w8, [x0]
	cmn	w8, #1
	b.eq	LBB0_4
; %bb.3:
	ret
LBB0_4:
Lloh8:
	adrp	x8, _ENXIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_5:
	mov	x0, #0
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_nrids,4,2                      ; @nrids
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	_ridtbl,8,3                     ; @ridtbl
	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_rid_lookup
.subsections_via_symbols
