	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_process_channel_removal     ## -- Begin function hv_process_channel_removal
	.p2align	4, 0x90
_hv_process_channel_removal:            ## @hv_process_channel_removal
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_vmbus_connection@GOTPCREL(%rip), %rdi
	callq	_mutex_is_locked
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_BUG_ON
	xorl	%edi, %edi
	cmpl	$0, 52(%r14)
	sete	%dil
	callq	_BUG_ON
	movq	(%r14), %rbx
	xorl	%eax, %eax
	callq	_get_cpu
	cmpq	%rax, %rbx
	jne	LBB0_1
## %bb.2:
	movq	%r14, %rdi
	callq	_percpu_channel_deq
	xorl	%eax, %eax
	callq	_put_cpu
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_put_cpu
	movq	(%r14), %rdi
	movq	_percpu_channel_deq@GOTPCREL(%rip), %rsi
	movq	%r14, %rdx
	movl	$1, %ecx
	callq	_smp_call_function_single
LBB0_3:
	movq	40(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.5:
	leaq	28(%rbx), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	32(%r14), %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_6
LBB0_4:
	leaq	48(%r14), %rdi
	callq	_list_del
	movq	%r14, %rbx
LBB0_6:
	movq	8(%r14), %rax
	movq	_HV_LOCALIZED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	addq	$24, %rbx
	movq	%rbx, %rsi
	callq	_cpumask_clear_cpu
LBB0_8:
	movq	16(%r14), %rdi
	movq	_INVALID_RELID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_10
## %bb.9:
	callq	_vmbus_release_relid
LBB0_10:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_channel                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vmbus_connection,4,2           ## @vmbus_connection
	.comm	_HV_LOCALIZED,8,3               ## @HV_LOCALIZED
	.comm	_INVALID_RELID,8,3              ## @INVALID_RELID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hv_process_channel_removal     ; -- Begin function hv_process_channel_removal
	.p2align	2
_hv_process_channel_removal:            ; @hv_process_channel_removal
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x0, _vmbus_connection@GOTPAGE
Lloh1:
	ldr	x0, [x0, _vmbus_connection@GOTPAGEOFF]
	bl	_mutex_is_locked
	cmp	w0, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	w8, [x19, #52]
	cmp	w8, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x20, [x19]
	bl	_get_cpu
	cmp	x20, x0
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_percpu_channel_deq
	bl	_put_cpu
	ldr	x21, [x19, #40]
	cbz	x21, LBB0_4
LBB0_2:
	add	x20, x21, #28
	mov	x0, x20
	bl	_spin_lock_irqsave
	add	x0, x19, #32
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_5
LBB0_3:
	bl	_put_cpu
	ldr	x0, [x19]
Lloh2:
	adrp	x1, _percpu_channel_deq@GOTPAGE
Lloh3:
	ldr	x1, [x1, _percpu_channel_deq@GOTPAGEOFF]
	mov	x2, x19
	mov	w3, #1
	bl	_smp_call_function_single
	ldr	x21, [x19, #40]
	cbnz	x21, LBB0_2
LBB0_4:
	add	x0, x19, #48
	bl	_list_del
	mov	x21, x19
LBB0_5:
	ldr	x8, [x19, #8]
Lloh4:
	adrp	x9, _HV_LOCALIZED@GOTPAGE
Lloh5:
	ldr	x9, [x9, _HV_LOCALIZED@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
	ldr	x0, [x19]
	add	x1, x21, #24
	bl	_cpumask_clear_cpu
LBB0_7:
	ldr	x0, [x19, #16]
Lloh7:
	adrp	x8, _INVALID_RELID@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INVALID_RELID@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_9
; %bb.8:
	bl	_vmbus_release_relid
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_free_channel
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_vmbus_connection,4,2           ; @vmbus_connection
	.comm	_HV_LOCALIZED,8,3               ; @HV_LOCALIZED
	.comm	_INVALID_RELID,8,3              ; @INVALID_RELID
.subsections_via_symbols
