	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmbus_close_internal
_vmbus_close_internal:                  ## @vmbus_close_internal
	.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	%rdi, %rbx
	movq	_CHANNEL_OPEN_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rdi)
	movq	$0, 48(%rdi)
	leaq	36(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	$0, 40(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	leaq	28(%rbx), %rdi
	movq	_CHANNELMSG_CLOSECHANNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movl	24(%rbx), %eax
	movl	%eax, 28(%rbx)
	movl	$8, %esi
	callq	_vmbus_post_msg
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_BUG_ON
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	callq	_vmbus_teardown_gpadl
LBB0_2:
	movq	8(%rbx), %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	imull	(%rbx), %edi
	callq	_get_order
	movq	%r14, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free_pages                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CHANNEL_OPEN_STATE,4,2         ## @CHANNEL_OPEN_STATE
	.comm	_CHANNELMSG_CLOSECHANNEL,4,2    ## @CHANNELMSG_CLOSECHANNEL
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_vmbus_close_internal
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmbus_close_internal
_vmbus_close_internal:                  ; @vmbus_close_internal
	.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, x0
Lloh0:
	adrp	x8, _CHANNEL_OPEN_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHANNEL_OPEN_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	str	xzr, [x0, #48]
	add	x20, x0, #36
	mov	x0, x20
	bl	_spin_lock_irqsave
	str	xzr, [x19, #40]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh3:
	adrp	x8, _CHANNELMSG_CLOSECHANNEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CHANNELMSG_CLOSECHANNEL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #24]
	mov	x20, x19
	stp	w9, w8, [x20, #28]!
	mov	x0, x20
	mov	w1, #8
	bl	_vmbus_post_msg
	cmp	w0, #0
	cset	w0, ne
	bl	_BUG_ON
	ldur	x1, [x20, #-12]
	cbz	x1, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_vmbus_teardown_gpadl
LBB0_2:
	ldr	x20, [x19, #8]
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	mul	w0, w9, w8
	bl	_get_order
	mov	x1, x0
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free_pages
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_CHANNEL_OPEN_STATE,4,2         ; @CHANNEL_OPEN_STATE
	.comm	_CHANNELMSG_CLOSECHANNEL,4,2    ; @CHANNELMSG_CLOSECHANNEL
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_vmbus_close_internal
.subsections_via_symbols
