	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_unblank_screen              ## -- Begin function do_unblank_screen
	.p2align	4, 0x90
_do_unblank_screen:                     ## @do_unblank_screen
	.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
	movl	%edi, %r14d
	movq	_oops_in_progress@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_might_sleep
LBB0_2:
	xorl	%eax, %eax
	callq	_WARN_CONSOLE_UNLOCKED
	movq	_ignore_poke@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_console_blanked@GOTPCREL(%rip), %r15
	cmpq	$0, (%r15)
	je	LBB0_12
## %bb.3:
	movq	_fg_console@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_vc_cons_allocated
	testl	%eax, %eax
	je	LBB0_13
## %bb.4:
	movq	_vc_cons@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	(%rbx), %rax
	movq	_KD_TEXT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	callq	_vt_force_oops_output
	testq	%rax, %rax
	je	LBB0_12
LBB0_6:
	movq	_blankinterval@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movq	_HZ@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	imulq	%rax, %rsi
	addq	(%rcx), %rsi
	movq	_console_timer@GOTPCREL(%rip), %rdi
	callq	_mod_timer
	movq	_blank_normal_wait@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_blank_state@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_8:
	movq	$0, (%r15)
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r14d, %edx
	callq	*(%rax)
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_vt_force_oops_output
	testq	%rax, %rax
	je	LBB0_11
LBB0_10:
	movq	%rbx, %rdi
	callq	_update_screen
LBB0_11:
	xorl	%edi, %edi
	callq	_console_blank_hook
	movq	%rbx, %rdi
	callq	_set_palette
	movq	%rbx, %rdi
	callq	_set_cursor
	movq	_VT_EVENT_UNBLANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %edx
	movl	%edx, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_vt_event_post                  ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movl	(%rbx), %esi
	incl	%esi
	leaq	L_.str(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_printk                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_oops_in_progress,4,2           ## @oops_in_progress
	.comm	_ignore_poke,8,3                ## @ignore_poke
	.comm	_console_blanked,8,3            ## @console_blanked
	.comm	_fg_console,4,2                 ## @fg_console
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unblank_screen: tty %d not allocated ??\n"

	.comm	_vc_cons,8,3                    ## @vc_cons
	.comm	_KD_TEXT,8,3                    ## @KD_TEXT
	.comm	_blankinterval,4,2              ## @blankinterval
	.comm	_console_timer,4,2              ## @console_timer
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_blank_normal_wait,4,2          ## @blank_normal_wait
	.comm	_blank_state,4,2                ## @blank_state
	.comm	_VT_EVENT_UNBLANK,4,2           ## @VT_EVENT_UNBLANK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_unblank_screen              ; -- Begin function do_unblank_screen
	.p2align	2
_do_unblank_screen:                     ; @do_unblank_screen
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _oops_in_progress@GOTPAGE
Lloh1:
	ldr	x8, [x8, _oops_in_progress@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbnz	w8, LBB0_2
; %bb.1:
	bl	_might_sleep
LBB0_2:
	bl	_WARN_CONSOLE_UNLOCKED
Lloh3:
	adrp	x8, _ignore_poke@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ignore_poke@GOTPAGEOFF]
Lloh5:
	str	xzr, [x8]
Lloh6:
	adrp	x21, _console_blanked@GOTPAGE
Lloh7:
	ldr	x21, [x21, _console_blanked@GOTPAGEOFF]
	ldr	x8, [x21]
	cbz	x8, LBB0_12
; %bb.3:
Lloh8:
	adrp	x19, _fg_console@GOTPAGE
Lloh9:
	ldr	x19, [x19, _fg_console@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_vc_cons_allocated
	cbz	w0, LBB0_13
; %bb.4:
Lloh10:
	adrp	x8, _vc_cons@GOTPAGE
Lloh11:
	ldr	x8, [x8, _vc_cons@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	ldrsw	x9, [x19]
	ldr	x19, [x8, x9, lsl #3]
	ldr	x8, [x19]
Lloh13:
	adrp	x9, _KD_TEXT@GOTPAGE
Lloh14:
	ldr	x9, [x9, _KD_TEXT@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_vt_force_oops_output
	cbz	x0, LBB0_12
LBB0_6:
Lloh16:
	adrp	x8, _blankinterval@GOTPAGE
Lloh17:
	ldr	x8, [x8, _blankinterval@GOTPAGEOFF]
Lloh18:
	ldrsw	x8, [x8]
	cbz	w8, LBB0_8
; %bb.7:
Lloh19:
	adrp	x9, _jiffies@GOTPAGE
Lloh20:
	ldr	x9, [x9, _jiffies@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
Lloh22:
	adrp	x10, _HZ@GOTPAGE
Lloh23:
	ldr	x10, [x10, _HZ@GOTPAGEOFF]
Lloh24:
	ldrsw	x10, [x10]
	madd	x1, x10, x8, x9
Lloh25:
	adrp	x0, _console_timer@GOTPAGE
Lloh26:
	ldr	x0, [x0, _console_timer@GOTPAGEOFF]
	bl	_mod_timer
Lloh27:
	adrp	x8, _blank_normal_wait@GOTPAGE
Lloh28:
	ldr	x8, [x8, _blank_normal_wait@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
Lloh30:
	adrp	x9, _blank_state@GOTPAGE
Lloh31:
	ldr	x9, [x9, _blank_state@GOTPAGEOFF]
Lloh32:
	str	w8, [x9]
LBB0_8:
	str	xzr, [x21]
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	blr	x8
	cbnz	x0, LBB0_10
; %bb.9:
	mov	x0, x19
	bl	_vt_force_oops_output
	cbz	x0, LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_update_screen
LBB0_11:
	mov	w0, #0
	bl	_console_blank_hook
	mov	x0, x19
	bl	_set_palette
	mov	x0, x19
	bl	_set_cursor
Lloh33:
	adrp	x8, _VT_EVENT_UNBLANK@GOTPAGE
Lloh34:
	ldr	x8, [x8, _VT_EVENT_UNBLANK@GOTPAGEOFF]
Lloh35:
	ldr	w0, [x8]
	ldr	w1, [x19, #8]
	mov	x2, x1
	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	_vt_event_post
LBB0_12:
	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_13:
	ldr	w8, [x19]
	add	w1, w8, #1
Lloh36:
	adrp	x0, l_.str@PAGE
Lloh37:
	add	x0, x0, l_.str@PAGEOFF
	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	_printk
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotStr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_oops_in_progress,4,2           ; @oops_in_progress
	.comm	_ignore_poke,8,3                ; @ignore_poke
	.comm	_console_blanked,8,3            ; @console_blanked
	.comm	_fg_console,4,2                 ; @fg_console
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unblank_screen: tty %d not allocated ??\n"

	.comm	_vc_cons,8,3                    ; @vc_cons
	.comm	_KD_TEXT,8,3                    ; @KD_TEXT
	.comm	_blankinterval,4,2              ; @blankinterval
	.comm	_console_timer,4,2              ; @console_timer
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_blank_normal_wait,4,2          ; @blank_normal_wait
	.comm	_blank_state,4,2                ; @blank_state
	.comm	_VT_EVENT_UNBLANK,4,2           ; @VT_EVENT_UNBLANK
.subsections_via_symbols
