	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmci_host_poll
_vmci_host_poll:                        ## @vmci_host_poll
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rdx
	movq	(%rdi), %rax
	movq	(%rax), %rcx
	movq	_VMCIOBJ_CONTEXT@GOTPCREL(%rip), %rsi
	xorl	%ebx, %ebx
	cmpq	(%rsi), %rcx
	jne	LBB0_8
## %bb.1:
	movq	8(%rax), %rbx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	leaq	16(%rbx), %rsi
	callq	_poll_wait
LBB0_3:
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	cmpq	$0, (%rbx)
	jg	LBB0_6
## %bb.4:
	movl	12(%rbx), %edi
	callq	_vmci_handle_arr_get_size
	testq	%rax, %rax
	jle	LBB0_5
LBB0_6:
	movq	_EPOLLIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCIOBJ_CONTEXT,8,3            ## @VMCIOBJ_CONTEXT
	.comm	_EPOLLIN,4,2                    ## @EPOLLIN
	.no_dead_strip	_vmci_host_poll
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmci_host_poll
_vmci_host_poll:                        ; @vmci_host_poll
	.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
	ldr	x8, [x0]
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _VMCIOBJ_CONTEXT@GOTPAGE
Lloh1:
	ldr	x10, [x10, _VMCIOBJ_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_7
; %bb.1:
	mov	x2, x1
	ldr	x20, [x8, #8]
	cbz	x1, LBB0_3
; %bb.2:
	add	x1, x20, #16
	bl	_poll_wait
LBB0_3:
	add	x19, x20, #8
	mov	x0, x19
	bl	_spin_lock
	ldr	x8, [x20]
	cmp	x8, #0
	b.gt	LBB0_5
; %bb.4:
	ldr	w0, [x20, #12]
	bl	_vmci_handle_arr_get_size
	cmp	x0, #1
	b.lt	LBB0_9
LBB0_5:
Lloh3:
	adrp	x8, _EPOLLIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EPOLLIN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
LBB0_6:
	mov	x0, x19
	bl	_spin_unlock
	b	LBB0_8
LBB0_7:
	mov	w20, #0
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w20, #0
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCIOBJ_CONTEXT,8,3            ; @VMCIOBJ_CONTEXT
	.comm	_EPOLLIN,4,2                    ; @EPOLLIN
	.no_dead_strip	_vmci_host_poll
.subsections_via_symbols
