	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hvc_hangup
_hvc_hangup:                            ## @hvc_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
	testq	%r12, %r12
	je	LBB0_6
## %bb.1:
	movq	%rdi, %r14
	leaq	48(%r12), %rdi
	callq	_cancel_work_sync
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %ebx
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.2:
	movl	$0, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%r12)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	movq	16(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r12), %esi
	movq	%r12, %rdi
	callq	*%rax
LBB0_4:
	addq	$4, %r12
	movq	_destroy_hvc_struct@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_tty_kref_put
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_kref_put
	decl	%ebx
	jne	LBB0_5
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_destroy_hvc_struct,4,2         ## @destroy_hvc_struct
	.no_dead_strip	_hvc_hangup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hvc_hangup
_hvc_hangup:                            ; @hvc_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	x20, [x0]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
	add	x0, x20, #48
	bl	_cancel_work_sync
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w22, [x20]
	cmp	w22, #0
	b.le	LBB0_7
; %bb.2:
	str	wzr, [x20]
	stp	xzr, xzr, [x20, #32]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
	ldr	x8, [x20, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w1, [x20, #8]
	mov	x0, x20
	blr	x8
LBB0_4:
	add	x20, x20, #4
Lloh0:
	adrp	x21, _destroy_hvc_struct@GOTPAGE
Lloh1:
	ldr	x21, [x21, _destroy_hvc_struct@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	w22, w22, #1
	mov	x0, x19
	bl	_tty_kref_put
	ldr	w1, [x21]
	mov	x0, x20
	bl	_kref_put
	cbnz	w22, LBB0_5
LBB0_6:
	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
LBB0_7:
	mov	x0, x21
	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	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_destroy_hvc_struct,4,2         ; @destroy_hvc_struct
	.no_dead_strip	_hvc_hangup
.subsections_via_symbols
