	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_mem                     ## -- Begin function lookup_mem
	.p2align	4, 0x90
_lookup_mem:                            ## @lookup_mem
	.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	%ecx, %r13d
	movl	%edx, %r12d
	movl	%esi, %r14d
	movq	%rdi, %r15
	movl	(%rdi), %edi
	callq	_to_rdev
	movl	%r12d, %esi
	sarl	$8, %esi
	movq	%rax, %rdi
	callq	_rxe_pool_get_index
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %rbx
	movq	_lookup_local@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_3
## %bb.2:
	movl	$1, %edi
	cmpl	%r12d, (%rbx)
	jne	LBB0_9
LBB0_3:
	movq	_lookup_remote@GOTPCREL(%rip), %rax
	cmpl	%r13d, (%rax)
	jne	LBB0_5
## %bb.4:
	movl	$1, %edi
	cmpl	%r12d, 4(%rbx)
	jne	LBB0_9
LBB0_5:
	movl	$1, %edi
	cmpq	%r15, 24(%rbx)
	jne	LBB0_9
## %bb.6:
	testl	%r14d, %r14d
	je	LBB0_8
## %bb.7:
	testl	%r14d, 8(%rbx)
	je	LBB0_9
LBB0_8:
	movq	16(%rbx), %rax
	movq	_RXE_MEM_STATE_VALID@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpq	(%rcx), %rax
	setne	%dil
LBB0_9:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	movq	%rbx, %rdi
	callq	_rxe_drop_ref
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_lookup_local,4,2               ## @lookup_local
	.comm	_lookup_remote,4,2              ## @lookup_remote
	.comm	_RXE_MEM_STATE_VALID,8,3        ## @RXE_MEM_STATE_VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lookup_mem                     ; -- Begin function lookup_mem
	.p2align	2
_lookup_mem:                            ; @lookup_mem
	.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	x23, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	bl	_to_rdev
	asr	w1, w22, #8
	bl	_rxe_pool_get_index
	mov	x19, x0
	cbz	x0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _lookup_local@GOTPAGE
Lloh1:
	ldr	x8, [x8, _lookup_local@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_3
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w22
	b.ne	LBB0_6
LBB0_3:
Lloh3:
	adrp	x8, _lookup_remote@GOTPAGE
Lloh4:
	ldr	x8, [x8, _lookup_remote@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w23
	b.ne	LBB0_5
; %bb.4:
	ldr	w8, [x19, #4]
	cmp	w8, w22
	b.ne	LBB0_6
LBB0_5:
	ldr	x8, [x19, #24]
	cmp	x8, x21
	b.eq	LBB0_9
LBB0_6:
	mov	w0, #1
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_rxe_drop_ref
	mov	x19, #0
LBB0_8:
	mov	x0, x19
	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_9:
	cbz	w20, LBB0_11
; %bb.10:
	ldr	w8, [x19, #8]
	tst	w8, w20
	b.eq	LBB0_6
LBB0_11:
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _RXE_MEM_STATE_VALID@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RXE_MEM_STATE_VALID@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_lookup_local,4,2               ; @lookup_local
	.comm	_lookup_remote,4,2              ; @lookup_remote
	.comm	_RXE_MEM_STATE_VALID,8,3        ; @RXE_MEM_STATE_VALID
.subsections_via_symbols
