	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hvutil_transport_destroy       ## -- Begin function hvutil_transport_destroy
	.p2align	4, 0x90
_hvutil_transport_destroy:              ## @hvutil_transport_destroy
	.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, %rbx
	leaq	28(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%rbx), %r15d
	movq	_HVUTIL_TRANSPORT_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	leaq	32(%rbx), %rdi
	callq	_wake_up_interruptible
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	_hvt_list_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	leaq	24(%rbx), %rdi
	callq	_list_del
	movq	%r14, %rdi
	callq	_spin_unlock
	cmpq	$0, 8(%rbx)
	jle	LBB0_3
## %bb.1:
	cmpq	$0, 16(%rbx)
	jle	LBB0_3
## %bb.2:
	leaq	8(%rbx), %rdi
	callq	_cn_del_callback
LBB0_3:
	movq	_HVUTIL_TRANSPORT_CHARDEV@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_5
## %bb.4:
	leaq	4(%rbx), %rdi
	callq	_wait_for_completion
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_hvt_transport_free             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HVUTIL_TRANSPORT_DESTROY,4,2   ## @HVUTIL_TRANSPORT_DESTROY
	.comm	_hvt_list_lock,4,2              ## @hvt_list_lock
	.comm	_HVUTIL_TRANSPORT_CHARDEV,4,2   ## @HVUTIL_TRANSPORT_CHARDEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hvutil_transport_destroy       ; -- Begin function hvutil_transport_destroy
	.p2align	2
_hvutil_transport_destroy:              ; @hvutil_transport_destroy
	.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
	add	x20, x0, #28
	mov	x0, x20
	bl	_mutex_lock
	mov	x0, x19
	ldr	w22, [x0], #32
Lloh0:
	adrp	x8, _HVUTIL_TRANSPORT_DESTROY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HVUTIL_TRANSPORT_DESTROY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	x21, x19
	str	w8, [x21], #24
	bl	_wake_up_interruptible
	mov	x0, x20
	bl	_mutex_unlock
Lloh3:
	adrp	x20, _hvt_list_lock@GOTPAGE
Lloh4:
	ldr	x20, [x20, _hvt_list_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x21
	bl	_list_del
	mov	x0, x20
	bl	_spin_unlock
	mov	x0, x19
	ldr	x8, [x0, #8]!
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x8, [x19, #16]
	cmp	x8, #1
	b.lt	LBB0_3
; %bb.2:
	bl	_cn_del_callback
LBB0_3:
Lloh5:
	adrp	x8, _HVUTIL_TRANSPORT_CHARDEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HVUTIL_TRANSPORT_CHARDEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_5
; %bb.4:
	add	x0, x19, #4
	bl	_wait_for_completion
LBB0_5:
	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	_hvt_transport_free
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_HVUTIL_TRANSPORT_DESTROY,4,2   ; @HVUTIL_TRANSPORT_DESTROY
	.comm	_hvt_list_lock,4,2              ; @hvt_list_lock
	.comm	_HVUTIL_TRANSPORT_CHARDEV,4,2   ; @HVUTIL_TRANSPORT_CHARDEV
.subsections_via_symbols
