	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_resource_by_handle        ## -- Begin function vmci_resource_by_handle
	.p2align	4, 0x90
_vmci_resource_by_handle:               ## @vmci_resource_by_handle
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movl	%edi, %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_vmci_resource_lookup
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpl	%ebx, (%rax)
	je	LBB0_4
## %bb.2:
	movq	_VMCI_RESOURCE_TYPE_ANY@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	jmp	LBB0_5
LBB0_4:
	movq	%rax, %rdi
	callq	_vmci_resource_get
	movq	%rax, %r14
LBB0_5:
	xorl	%eax, %eax
	callq	_rcu_read_unlock
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_RESOURCE_TYPE_ANY,4,2     ## @VMCI_RESOURCE_TYPE_ANY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_resource_by_handle        ; -- Begin function vmci_resource_by_handle
	.p2align	2
_vmci_resource_by_handle:               ; @vmci_resource_by_handle
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_rcu_read_lock
	and	x0, x20, #0xffffffff
	mov	x1, x19
	bl	_vmci_resource_lookup
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _VMCI_RESOURCE_TYPE_ANY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMCI_RESOURCE_TYPE_ANY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w19
	ccmp	w9, w19, #4, ne
	b.ne	LBB0_3
; %bb.2:
	bl	_vmci_resource_get
	mov	x19, x0
	b	LBB0_4
LBB0_3:
	mov	x19, #0
LBB0_4:
	bl	_rcu_read_unlock
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_RESOURCE_TYPE_ANY,4,2     ; @VMCI_RESOURCE_TYPE_ANY
.subsections_via_symbols
