	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_initiate_unload          ## -- Begin function vmbus_initiate_unload
	.p2align	4, 0x90
_vmbus_initiate_unload:                 ## @vmbus_initiate_unload
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_vmbus_proto_version@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_VERSION_WIN8_1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_4
## %bb.1:
	movl	%edi, %ebx
	movq	_vmbus_connection@GOTPCREL(%rip), %rdi
	callq	_init_completion
	leaq	-24(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_CHANNELMSG_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -24(%rbp)
	xorl	%edx, %edx
	testl	%ebx, %ebx
	sete	%dl
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_vmbus_post_msg
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	_vmbus_wait_for_unload
	jmp	LBB0_4
LBB0_2:
	movq	_vmbus_connection@GOTPCREL(%rip), %rdi
	callq	_wait_for_completion
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmbus_proto_version,8,3        ## @vmbus_proto_version
	.comm	_VERSION_WIN8_1,8,3             ## @VERSION_WIN8_1
	.comm	_vmbus_connection,4,2           ## @vmbus_connection
	.comm	_CHANNELMSG_UNLOAD,4,2          ## @CHANNELMSG_UNLOAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vmbus_initiate_unload          ; -- Begin function vmbus_initiate_unload
	.p2align	2
_vmbus_initiate_unload:                 ; @vmbus_initiate_unload
	.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	x8, _vmbus_proto_version@GOTPAGE
Lloh1:
	ldr	x8, [x8, _vmbus_proto_version@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _VERSION_WIN8_1@GOTPAGE
Lloh4:
	ldr	x9, [x9, _VERSION_WIN8_1@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_4
; %bb.1:
	mov	x19, x0
Lloh6:
	adrp	x0, _vmbus_connection@GOTPAGE
Lloh7:
	ldr	x0, [x0, _vmbus_connection@GOTPAGEOFF]
	bl	_init_completion
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh8:
	adrp	x8, _CHANNELMSG_UNLOAD@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CHANNELMSG_UNLOAD@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	cmp	w19, #0
	cset	w2, eq
	add	x0, sp, #8
	mov	w1, #4
	bl	_vmbus_post_msg
	cbz	w19, LBB0_3
; %bb.2:
	bl	_vmbus_wait_for_unload
	b	LBB0_4
LBB0_3:
Lloh11:
	adrp	x0, _vmbus_connection@GOTPAGE
Lloh12:
	ldr	x0, [x0, _vmbus_connection@GOTPAGEOFF]
	bl	_wait_for_completion
LBB0_4:
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_vmbus_proto_version,8,3        ; @vmbus_proto_version
	.comm	_VERSION_WIN8_1,8,3             ; @VERSION_WIN8_1
	.comm	_vmbus_connection,4,2           ; @vmbus_connection
	.comm	_CHANNELMSG_UNLOAD,4,2          ; @CHANNELMSG_UNLOAD
.subsections_via_symbols
