	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hvcs_hangup
_hvcs_hangup:                           ## @hvcs_hangup
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r12
	leaq	8(%r12), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %ebx
	movq	16(%r12), %rdi
	callq	_vio_disable_interrupts
	movq	$0, 48(%r12)
	movq	40(%r12), %rax
	movq	$0, (%rax)
	movq	$0, 40(%r12)
	movl	$0, (%r12)
	movq	32(%r12), %rdi
	movq	_HVCS_BUFF_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_memset
	movq	$0, 24(%r12)
	movq	16(%r12), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %edi
	movq	%r12, %rsi
	callq	_free_irq
	testl	%ebx, %ebx
	je	LBB0_3
## %bb.1:
	addq	$4, %r12
	movq	_destroy_hvcs_struct@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_kref_put
	decl	%ebx
	jne	LBB0_2
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NO_IRQ,4,2                     ## @NO_IRQ
	.comm	_HVCS_BUFF_LEN,4,2              ## @HVCS_BUFF_LEN
	.comm	_destroy_hvcs_struct,4,2        ## @destroy_hvcs_struct
	.no_dead_strip	_hvcs_hangup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hvcs_hangup
_hvcs_hangup:                           ; @hvcs_hangup
	.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
	ldr	x19, [x0]
	add	x20, x19, #8
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	w22, [x19]
	ldr	x0, [x19, #16]
	bl	_vio_disable_interrupts
	ldp	x0, x8, [x19, #32]
	str	xzr, [x8]
	stp	xzr, xzr, [x19, #40]
	str	wzr, [x19]
Lloh0:
	adrp	x8, _HVCS_BUFF_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HVCS_BUFF_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_memset
	str	xzr, [x19, #24]
	ldr	x8, [x19, #16]
	ldr	w21, [x8]
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	mov	x0, x21
	mov	x1, x19
	bl	_free_irq
	cbz	w22, LBB0_3
; %bb.1:
	add	x19, x19, #4
Lloh3:
	adrp	x20, _destroy_hvcs_struct@GOTPAGE
Lloh4:
	ldr	x20, [x20, _destroy_hvcs_struct@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	ldr	w1, [x20]
	mov	x0, x19
	bl	_kref_put
	cbnz	w22, LBB0_2
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_NO_IRQ,4,2                     ; @NO_IRQ
	.comm	_HVCS_BUFF_LEN,4,2              ; @HVCS_BUFF_LEN
	.comm	_destroy_hvcs_struct,4,2        ; @destroy_hvcs_struct
	.no_dead_strip	_hvcs_hangup
.subsections_via_symbols
