	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_ctx_rcv_notifications_get ## -- Begin function vmci_ctx_rcv_notifications_get
	.p2align	4, 0x90
_vmci_ctx_rcv_notifications_get:        ## @vmci_ctx_rcv_notifications_get
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	callq	_vmci_ctx_get
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock
	movq	8(%rbx), %rax
	movq	%rax, (%r12)
	movq	_VMCI_MAX_GUEST_DOORBELL_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_vmci_handle_arr_create
	movq	%rax, 8(%rbx)
	testq	%rax, %rax
	jne	LBB0_4
## %bb.3:
	movq	(%r12), %rax
	movq	%rax, 8(%rbx)
	movq	$0, (%r12)
	movq	_VMCI_ERROR_NO_MEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_4:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	%rbx, %rdi
	callq	_vmci_ctx_put
	jmp	LBB0_5
LBB0_1:
	movq	_VMCI_ERROR_NOT_FOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.comm	_VMCI_ERROR_NOT_FOUND,4,2       ## @VMCI_ERROR_NOT_FOUND
	.comm	_VMCI_MAX_GUEST_DOORBELL_COUNT,4,2 ## @VMCI_MAX_GUEST_DOORBELL_COUNT
	.comm	_VMCI_ERROR_NO_MEM,4,2          ## @VMCI_ERROR_NO_MEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_ctx_rcv_notifications_get ; -- Begin function vmci_ctx_rcv_notifications_get
	.p2align	2
_vmci_ctx_rcv_notifications_get:        ; @vmci_ctx_rcv_notifications_get
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_vmci_ctx_get
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	bl	_spin_lock
	ldr	x8, [x21, #8]
	str	x8, [x22]
Lloh3:
	adrp	x8, _VMCI_MAX_GUEST_DOORBELL_COUNT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCI_MAX_GUEST_DOORBELL_COUNT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_vmci_handle_arr_create
	str	x0, [x21, #8]
	cbnz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x22]
	str	x8, [x21, #8]
	str	xzr, [x22]
Lloh6:
	adrp	x8, _VMCI_ERROR_NO_MEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMCI_ERROR_NO_MEM@GOTPAGEOFF]
Lloh8:
	ldr	w19, [x8]
LBB0_3:
	str	xzr, [x20]
	mov	x0, x21
	bl	_spin_unlock
	mov	x0, x21
	bl	_vmci_ctx_put
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x8, _VMCI_ERROR_NOT_FOUND@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMCI_ERROR_NOT_FOUND@GOTPAGEOFF]
Lloh11:
	ldr	w19, [x8]
LBB0_5:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.comm	_VMCI_ERROR_NOT_FOUND,4,2       ; @VMCI_ERROR_NOT_FOUND
	.comm	_VMCI_MAX_GUEST_DOORBELL_COUNT,4,2 ; @VMCI_MAX_GUEST_DOORBELL_COUNT
	.comm	_VMCI_ERROR_NO_MEM,4,2          ; @VMCI_ERROR_NO_MEM
.subsections_via_symbols
