	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function console_callback
_console_callback:                      ## @console_callback
	.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
	xorl	%eax, %eax
	callq	_acquire_console_sem
	movq	_want_console@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_fg_console@GOTPCREL(%rip), %r14
	cmpq	(%r14), %rdi
	je	LBB0_3
## %bb.1:
	callq	_vc_cons_allocated
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	_vc_cons@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_hide_cursor
	movq	(%r15), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_change_console
LBB0_3:
	movq	$-1, (%rbx)
	movq	_do_poke_blanked_console@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	$0, (%rax)
	xorl	%eax, %eax
	callq	_poke_blanked_console
LBB0_5:
	movq	_scrollback_delta@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.6:
	movq	_vc_cons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rbx
	xorl	%eax, %eax
	callq	_clear_selection
	movq	(%rbx), %rax
	movq	_KD_TEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	8(%rbx), %rax
	movq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_8:
	movq	$0, (%r15)
LBB0_9:
	movq	_blank_timer_expired@GOTPCREL(%rip), %rbx
	cmpq	$0, (%rbx)
	je	LBB0_11
## %bb.10:
	xorl	%edi, %edi
	callq	_do_blank_screen
	movq	$0, (%rbx)
LBB0_11:
	movq	_vc_cons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r14), %rcx
	movq	(%rax,%rcx,8), %rdi
	callq	_notify_update
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_release_console_sem            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_want_console,8,3               ## @want_console
	.comm	_fg_console,8,3                 ## @fg_console
	.comm	_vc_cons,8,3                    ## @vc_cons
	.comm	_do_poke_blanked_console,8,3    ## @do_poke_blanked_console
	.comm	_scrollback_delta,8,3           ## @scrollback_delta
	.comm	_KD_TEXT,8,3                    ## @KD_TEXT
	.comm	_blank_timer_expired,8,3        ## @blank_timer_expired
	.no_dead_strip	_console_callback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function console_callback
_console_callback:                      ; @console_callback
	.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
	bl	_acquire_console_sem
Lloh0:
	adrp	x19, _want_console@GOTPAGE
Lloh1:
	ldr	x19, [x19, _want_console@GOTPAGEOFF]
	ldr	x0, [x19]
Lloh2:
	adrp	x20, _fg_console@GOTPAGE
Lloh3:
	ldr	x20, [x20, _fg_console@GOTPAGEOFF]
	ldr	x8, [x20]
Lloh4:
	adrp	x21, _vc_cons@GOTPAGE
Lloh5:
	ldr	x21, [x21, _vc_cons@GOTPAGEOFF]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.1:
	bl	_vc_cons_allocated
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_hide_cursor
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldr	x0, [x8, x9, lsl #3]
	bl	_change_console
LBB0_3:
	mov	x8, #-1
	str	x8, [x19]
Lloh6:
	adrp	x8, _do_poke_blanked_console@GOTPAGE
Lloh7:
	ldr	x8, [x8, _do_poke_blanked_console@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_5
; %bb.4:
	str	xzr, [x8]
	bl	_poke_blanked_console
LBB0_5:
Lloh8:
	adrp	x22, _scrollback_delta@GOTPAGE
Lloh9:
	ldr	x22, [x22, _scrollback_delta@GOTPAGEOFF]
	ldr	x8, [x22]
	cbz	x8, LBB0_9
; %bb.6:
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x19, [x8, x9, lsl #3]
	bl	_clear_selection
	ldr	x8, [x19]
Lloh10:
	adrp	x9, _KD_TEXT@GOTPAGE
Lloh11:
	ldr	x9, [x9, _KD_TEXT@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x1, [x22]
	mov	x0, x19
	blr	x8
LBB0_8:
	str	xzr, [x22]
LBB0_9:
Lloh13:
	adrp	x19, _blank_timer_expired@GOTPAGE
Lloh14:
	ldr	x19, [x19, _blank_timer_expired@GOTPAGEOFF]
	ldr	x8, [x19]
	cbz	x8, LBB0_11
; %bb.10:
	mov	w0, #0
	bl	_do_blank_screen
	str	xzr, [x19]
LBB0_11:
	ldr	x8, [x21]
	ldr	x9, [x20]
	ldr	x0, [x8, x9, lsl #3]
	bl	_notify_update
	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	_release_console_sem
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_want_console,8,3               ; @want_console
	.comm	_fg_console,8,3                 ; @fg_console
	.comm	_vc_cons,8,3                    ; @vc_cons
	.comm	_do_poke_blanked_console,8,3    ; @do_poke_blanked_console
	.comm	_scrollback_delta,8,3           ; @scrollback_delta
	.comm	_KD_TEXT,8,3                    ; @KD_TEXT
	.comm	_blank_timer_expired,8,3        ; @blank_timer_expired
	.no_dead_strip	_console_callback
.subsections_via_symbols
