	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmci_host_close
_vmci_host_close:                       ## @vmci_host_close
	.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, %r14
	movq	(%rsi), %rbx
	movq	(%rbx), %rax
	movq	_VMCIOBJ_CONTEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %rdi
	callq	_vmci_ctx_destroy
	movq	$0, 8(%rbx)
	movq	_vmci_host_active_users@GOTPCREL(%rip), %rdi
	callq	_atomic_dec
LBB0_2:
	movq	_VMCIOBJ_NOT_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movq	%rbx, %rdi
	callq	_kfree
	movq	$0, (%r14)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VMCIOBJ_CONTEXT,8,3            ## @VMCIOBJ_CONTEXT
	.comm	_vmci_host_active_users,4,2     ## @vmci_host_active_users
	.comm	_VMCIOBJ_NOT_SET,8,3            ## @VMCIOBJ_NOT_SET
	.no_dead_strip	_vmci_host_close
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmci_host_close
_vmci_host_close:                       ; @vmci_host_close
	.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
	ldr	x20, [x1]
	ldr	x8, [x20]
Lloh0:
	adrp	x9, _VMCIOBJ_CONTEXT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VMCIOBJ_CONTEXT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
	ldr	x0, [x20, #8]
	bl	_vmci_ctx_destroy
	str	xzr, [x20, #8]
Lloh3:
	adrp	x0, _vmci_host_active_users@GOTPAGE
Lloh4:
	ldr	x0, [x0, _vmci_host_active_users@GOTPAGEOFF]
	bl	_atomic_dec
LBB0_2:
Lloh5:
	adrp	x8, _VMCIOBJ_NOT_SET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VMCIOBJ_NOT_SET@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	str	x8, [x20]
	mov	x0, x20
	bl	_kfree
	str	xzr, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VMCIOBJ_CONTEXT,8,3            ; @VMCIOBJ_CONTEXT
	.comm	_vmci_host_active_users,4,2     ; @vmci_host_active_users
	.comm	_VMCIOBJ_NOT_SET,8,3            ; @VMCIOBJ_NOT_SET
	.no_dead_strip	_vmci_host_close
.subsections_via_symbols
