	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_dbell_register_notification_bitmap ## -- Begin function vmci_dbell_register_notification_bitmap
	.p2align	4, 0x90
_vmci_dbell_register_notification_bitmap: ## @vmci_dbell_register_notification_bitmap
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_VMCI_HYPERVISOR_CONTEXT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VMCI_SET_NOTIFY_BITMAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vmci_make_handle
	movl	%eax, -28(%rbp)
	movq	_VMCI_ANON_SRC_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movq	_VMCI_DG_HEADERSIZE@GOTPCREL(%rip), %rax
	movl	$32, %ecx
	subq	(%rax), %rcx
	movq	%rcx, -40(%rbp)
	xorl	%eax, %eax
	callq	_vmci_use_ppn64
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	movq	%rbx, -24(%rbp,%rcx,8)
	leaq	-40(%rbp), %rdi
	callq	_vmci_send_datagram
	movq	_VMCI_SUCCESS@GOTPCREL(%rip), %rdx
	movl	$1, %ecx
	cmpl	(%rdx), %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_pr_devel
	xorl	%ecx, %ecx
LBB0_2:
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCI_HYPERVISOR_CONTEXT_ID,4,2 ## @VMCI_HYPERVISOR_CONTEXT_ID
	.comm	_VMCI_SET_NOTIFY_BITMAP,4,2     ## @VMCI_SET_NOTIFY_BITMAP
	.comm	_VMCI_ANON_SRC_HANDLE,4,2       ## @VMCI_ANON_SRC_HANDLE
	.comm	_VMCI_DG_HEADERSIZE,8,3         ## @VMCI_DG_HEADERSIZE
	.comm	_VMCI_SUCCESS,4,2               ## @VMCI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to register (PPN=%llu) as notification bitmap (error=%d)\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_dbell_register_notification_bitmap ; -- Begin function vmci_dbell_register_notification_bitmap
	.p2align	2
_vmci_dbell_register_notification_bitmap: ; @vmci_dbell_register_notification_bitmap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x8, _VMCI_HYPERVISOR_CONTEXT_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMCI_HYPERVISOR_CONTEXT_ID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _VMCI_SET_NOTIFY_BITMAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VMCI_SET_NOTIFY_BITMAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_vmci_make_handle
Lloh6:
	adrp	x8, _VMCI_ANON_SRC_HANDLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _VMCI_ANON_SRC_HANDLE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #8]
Lloh9:
	adrp	x8, _VMCI_DG_HEADERSIZE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _VMCI_DG_HEADERSIZE@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mov	w9, #32
	sub	x8, x9, x8
	str	x8, [sp]
	bl	_vmci_use_ppn64
	mov	w8, #24
	mov	w9, #16
	cmp	x0, #0
	csel	x8, x9, x8, eq
	mov	x9, sp
	str	x19, [x9, x8]
	mov	x0, sp
	bl	_vmci_send_datagram
Lloh12:
	adrp	x8, _VMCI_SUCCESS@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VMCI_SUCCESS@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	mov	x2, x0
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_devel
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCI_HYPERVISOR_CONTEXT_ID,4,2 ; @VMCI_HYPERVISOR_CONTEXT_ID
	.comm	_VMCI_SET_NOTIFY_BITMAP,4,2     ; @VMCI_SET_NOTIFY_BITMAP
	.comm	_VMCI_ANON_SRC_HANDLE,4,2       ; @VMCI_ANON_SRC_HANDLE
	.comm	_VMCI_DG_HEADERSIZE,8,3         ; @VMCI_DG_HEADERSIZE
	.comm	_VMCI_SUCCESS,4,2               ; @VMCI_SUCCESS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to register (PPN=%llu) as notification bitmap (error=%d)\n"

.subsections_via_symbols
