	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_get_vm_context_id         ## -- Begin function vmci_get_vm_context_id
	.p2align	4, 0x90
_vmci_get_vm_context_id:                ## @vmci_get_vm_context_id
	.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	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_vm_context_id@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	_VMCI_INVALID_ID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_VMCI_HYPERVISOR_CONTEXT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_VMCI_GET_CONTEXT_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_vmci_make_handle
	movl	%eax, -12(%rbp)
	movq	_VMCI_ANON_SRC_HANDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	$0, -24(%rbp)
	leaq	-24(%rbp), %rdi
	callq	_vmci_send_datagram
	movq	%rax, (%rbx)
LBB0_2:
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_context_id,8,3              ## @vm_context_id
	.comm	_VMCI_INVALID_ID,8,3            ## @VMCI_INVALID_ID
	.comm	_VMCI_HYPERVISOR_CONTEXT_ID,4,2 ## @VMCI_HYPERVISOR_CONTEXT_ID
	.comm	_VMCI_GET_CONTEXT_ID,4,2        ## @VMCI_GET_CONTEXT_ID
	.comm	_VMCI_ANON_SRC_HANDLE,4,2       ## @VMCI_ANON_SRC_HANDLE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmci_get_vm_context_id         ; -- Begin function vmci_get_vm_context_id
	.p2align	2
_vmci_get_vm_context_id:                ; @vmci_get_vm_context_id
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
Lloh0:
	adrp	x19, _vm_context_id@GOTPAGE
Lloh1:
	ldr	x19, [x19, _vm_context_id@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x8, _VMCI_INVALID_ID@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VMCI_INVALID_ID@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _VMCI_HYPERVISOR_CONTEXT_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMCI_HYPERVISOR_CONTEXT_ID@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _VMCI_GET_CONTEXT_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VMCI_GET_CONTEXT_ID@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_vmci_make_handle
Lloh11:
	adrp	x8, _VMCI_ANON_SRC_HANDLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VMCI_ANON_SRC_HANDLE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #8]
	str	xzr, [sp]
	mov	x0, sp
	bl	_vmci_send_datagram
	str	x0, [x19]
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_context_id,8,3              ; @vm_context_id
	.comm	_VMCI_INVALID_ID,8,3            ; @VMCI_INVALID_ID
	.comm	_VMCI_HYPERVISOR_CONTEXT_ID,4,2 ; @VMCI_HYPERVISOR_CONTEXT_ID
	.comm	_VMCI_GET_CONTEXT_ID,4,2        ; @VMCI_GET_CONTEXT_ID
	.comm	_VMCI_ANON_SRC_HANDLE,4,2       ; @VMCI_ANON_SRC_HANDLE
.subsections_via_symbols
