	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_deallocate                  ## -- Begin function vc_deallocate
	.p2align	4, 0x90
_vc_deallocate:                         ## @vc_deallocate
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	xorl	%eax, %eax
	callq	_WARN_CONSOLE_UNLOCKED
	movl	%r14d, %edi
	callq	_vc_cons_allocated
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	_vc_cons@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	%r14d, %r12d
	movq	(%rax,%r12,8), %rbx
	movq	%rbx, -40(%rbp)
	movq	_VT_DEALLOCATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_vt_notifier_list@GOTPCREL(%rip), %rdi
	leaq	-40(%rbp), %rdx
	callq	_atomic_notifier_call_chain
	movl	%r14d, %edi
	callq	_vcs_remove_sysfs
	movq	8(%rbx), %rax
	movq	%rbx, %rdi
	callq	*8(%rax)
	movl	16(%rbx), %edi
	callq	_put_pid
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_module_put
	movq	(%rbx), %rdi
	callq	_kfree
	movq	_MIN_NR_CONSOLES@GOTPCREL(%rip), %rax
	cmpl	%r14d, (%rax)
	ja	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_kfree
LBB0_3:
	movq	(%r15), %rax
	movq	$0, (%rax,%r12,8)
LBB0_4:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vc_cons,8,3                    ## @vc_cons
	.comm	_vt_notifier_list,4,2           ## @vt_notifier_list
	.comm	_VT_DEALLOCATE,4,2              ## @VT_DEALLOCATE
	.comm	_MIN_NR_CONSOLES,4,2            ## @MIN_NR_CONSOLES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vc_deallocate                  ; -- Begin function vc_deallocate
	.p2align	2
_vc_deallocate:                         ; @vc_deallocate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	bl	_WARN_CONSOLE_UNLOCKED
	mov	x0, x19
	bl	_vc_cons_allocated
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x22, _vc_cons@GOTPAGE
Lloh1:
	ldr	x22, [x22, _vc_cons@GOTPAGEOFF]
	ldr	x8, [x22]
	mov	w21, w19
	ldr	x20, [x8, w19, uxtw #3]
	str	x20, [sp, #8]
Lloh2:
	adrp	x8, _VT_DEALLOCATE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VT_DEALLOCATE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x0, _vt_notifier_list@GOTPAGE
Lloh6:
	ldr	x0, [x0, _vt_notifier_list@GOTPAGEOFF]
	add	x2, sp, #8
	bl	_atomic_notifier_call_chain
	mov	x0, x19
	bl	_vcs_remove_sysfs
	ldr	x8, [x20, #8]
	ldr	x8, [x8, #8]
	mov	x0, x20
	blr	x8
	ldr	w0, [x20, #16]
	bl	_put_pid
	ldr	x8, [x20, #8]
	ldr	w0, [x8]
	bl	_module_put
	ldr	x0, [x20]
	bl	_kfree
Lloh7:
	adrp	x8, _MIN_NR_CONSOLES@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MIN_NR_CONSOLES@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w8, w19
	b.hi	LBB0_3
; %bb.2:
	mov	x0, x20
	bl	_kfree
LBB0_3:
	ldr	x8, [x22]
	str	xzr, [x8, x21, lsl #3]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_vc_cons,8,3                    ; @vc_cons
	.comm	_vt_notifier_list,4,2           ; @vt_notifier_list
	.comm	_VT_DEALLOCATE,4,2              ; @VT_DEALLOCATE
	.comm	_MIN_NR_CONSOLES,4,2            ; @MIN_NR_CONSOLES
.subsections_via_symbols
