	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_vc                       ## -- Begin function reset_vc
	.p2align	4, 0x90
_reset_vc:                              ## @reset_vc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_KD_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%rdi)
	movq	_default_utf8@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_1
## %bb.2:
	movq	_VC_XLATE@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_VC_UNICODE@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	_kbd_table@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rbx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movq	_VT_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 56(%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rbx)
	movups	%xmm0, 40(%rbx)
	movq	16(%rbx), %rdi
	callq	_put_pid
	movq	$0, 16(%rbx)
	movl	$-1, 8(%rbx)
	xorl	%eax, %eax
	callq	_in_interrupt
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_reset_palette                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KD_TEXT,4,2                    ## @KD_TEXT
	.comm	_default_utf8,8,3               ## @default_utf8
	.comm	_VC_UNICODE,4,2                 ## @VC_UNICODE
	.comm	_VC_XLATE,4,2                   ## @VC_XLATE
	.comm	_kbd_table,8,3                  ## @kbd_table
	.comm	_VT_AUTO,4,2                    ## @VT_AUTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reset_vc                       ; -- Begin function reset_vc
	.p2align	2
_reset_vc:                              ; @reset_vc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _KD_TEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _KD_TEXT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0, #64]
Lloh3:
	adrp	x8, _default_utf8@GOTPAGE
Lloh4:
	ldr	x8, [x8, _default_utf8@GOTPAGEOFF]
Lloh5:
	adrp	x9, _VC_UNICODE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VC_UNICODE@GOTPAGEOFF]
Lloh7:
	adrp	x10, _VC_XLATE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _VC_XLATE@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, #0
	csel	x8, x10, x9, eq
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _kbd_table@GOTPAGE
Lloh11:
	ldr	x9, [x9, _kbd_table@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	ldr	x10, [x0]
	str	w8, [x9, x10, lsl #2]
Lloh13:
	adrp	x8, _VT_AUTO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VT_AUTO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [x0, #56]
	movi.2d	v0, #0000000000000000
	stur	q0, [x0, #24]
	stur	q0, [x0, #40]
	ldr	x0, [x0, #16]
	bl	_put_pid
	str	xzr, [x19, #16]
	mov	w8, #-1
	str	w8, [x19, #8]
	bl	_in_interrupt
	cbz	w0, LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_reset_palette
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh9
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_KD_TEXT,4,2                    ; @KD_TEXT
	.comm	_default_utf8,8,3               ; @default_utf8
	.comm	_VC_UNICODE,4,2                 ; @VC_UNICODE
	.comm	_VC_XLATE,4,2                   ; @VC_XLATE
	.comm	_kbd_table,8,3                  ; @kbd_table
	.comm	_VT_AUTO,4,2                    ; @VT_AUTO
.subsections_via_symbols
