	.file	"extr_vt.c_do_blank_screen.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	do_blank_screen
	.type	do_blank_screen, @function
do_blank_screen:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR vc_cons[rip]
	mov	rdx, QWORD PTR fg_console[rip]
	mov	rbp, QWORD PTR [rax+rdx*8]
	xor	eax, eax
	call	WARN_CONSOLE_UNLOCKED@PLT
	mov	ecx, DWORD PTR console_blanked[rip]
	test	ecx, ecx
	jne	.L20
	test	ebx, ebx
	jne	.L21
	mov	rax, QWORD PTR blank_normal_wait[rip]
	cmp	QWORD PTR blank_state[rip], rax
	je	.L22
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	rax, QWORD PTR blank_off[rip]
	mov	QWORD PTR blank_state[rip], rax
	mov	rax, QWORD PTR KD_TEXT[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L7
	mov	eax, DWORD PTR fg_console[rip]
	add	eax, 1
	mov	DWORD PTR console_blanked[rip], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rax, QWORD PTR blank_vesa_wait[rip]
	cmp	QWORD PTR blank_state[rip], rax
	jne	.L1
	mov	rax, QWORD PTR blank_off[rip]
	mov	rdi, rbp
	xor	edx, edx
	mov	QWORD PTR blank_state[rip], rax
	mov	eax, DWORD PTR vesa_blank_mode[rip]
	lea	esi, 1[rax]
	mov	rax, QWORD PTR 16[rbp]
	mov	rax, QWORD PTR [rax]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	rax
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rdi, rbp
	call	hide_cursor@PLT
	lea	rdi, console_timer[rip]
	call	del_timer_sync@PLT
	mov	rdi, rbp
	mov	QWORD PTR blank_timer_expired[rip], 0
	call	save_screen@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	esi, 1
	cmp	QWORD PTR vesa_off_interval[rip], 0
	mov	rax, QWORD PTR [rax]
	je	.L23
.L8:
	xor	edx, edx
	mov	rdi, rbp
	call	rax
	mov	r8d, eax
	mov	eax, DWORD PTR fg_console[rip]
	add	eax, 1
	mov	DWORD PTR console_blanked[rip], eax
	test	r8d, r8d
	jne	.L24
.L9:
	mov	edi, 1
	call	console_blank_hook@PLT
	test	rax, rax
	jne	.L1
	mov	rax, QWORD PTR vesa_off_interval[rip]
	test	rax, rax
	je	.L10
	mov	edx, DWORD PTR vesa_blank_mode[rip]
	test	edx, edx
	je	.L10
	mov	rdx, QWORD PTR blank_vesa_wait[rip]
	add	rax, QWORD PTR jiffies[rip]
	lea	rdi, console_timer[rip]
	mov	rsi, rax
	mov	QWORD PTR blank_state[rip], rdx
	call	mod_timer@PLT
.L10:
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR VT_EVENT_BLANK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	mov	edx, esi
	jmp	vt_event_post@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, rbp
	call	hide_cursor@PLT
	mov	rdi, rbp
	call	save_screen@PLT
	mov	rax, QWORD PTR 16[rbp]
	mov	rdi, rbp
	mov	edx, 1
	mov	esi, -1
	call	[QWORD PTR [rax]]
	mov	eax, DWORD PTR fg_console[rip]
	mov	rdi, rbp
	add	eax, 1
	mov	DWORD PTR console_blanked[rip], eax
	mov	rax, QWORD PTR blank_off[rip]
	mov	QWORD PTR blank_state[rip], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	set_origin@PLT
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	ecx, DWORD PTR vesa_blank_mode[rip]
	lea	esi, 1[rcx]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, rbp
	call	set_origin@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	do_blank_screen, .-do_blank_screen
	.comm	vesa_off_interval,8,8
	.comm	vesa_blank_mode,4,4
	.comm	vc_cons,8,8
	.comm	jiffies,8,8
	.comm	fg_console,8,8
	.comm	console_timer,4,4
	.comm	console_blanked,4,4
	.comm	blank_vesa_wait,8,8
	.comm	blank_timer_expired,8,8
	.comm	blank_state,8,8
	.comm	blank_off,8,8
	.comm	blank_normal_wait,8,8
	.comm	VT_EVENT_BLANK,4,4
	.comm	KD_TEXT,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vt.c_do_blank_screen.c"
	.text
	.align	2
	.global	do_blank_screen
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_blank_screen, %function
do_blank_screen:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, .L26
	ldr	r7, .L26+4
	ldr	r3, [r3]
	ldr	r2, [r7]
	ldr	r5, .L26+8
	ldr	r4, [r3, r2, lsl #2]
	mov	r6, r0
	bl	WARN_CONSOLE_UNLOCKED
	ldr	r3, [r5]
	cmp	r3, #0
	bne	.L23
	cmp	r6, #0
	bne	.L24
	ldr	r8, .L26+12
	ldr	r3, .L26+16
	ldr	r2, [r8]
	ldr	r3, [r3]
	cmp	r2, r3
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r2, .L26+20
	ldr	r3, .L26+24
	ldr	r1, [r4]
	ldr	r2, [r2]
	ldr	r3, [r3]
	cmp	r1, r2
	str	r3, [r8]
	beq	.L7
	ldr	r3, [r7]
	add	r3, r3, #1
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L23:
	ldr	r3, .L26+12
	ldr	r2, .L26+28
	ldr	r1, [r3]
	ldr	r2, [r2]
	cmp	r1, r2
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r1, .L26+24
	ldr	r2, .L26+32
	ldr	r0, [r1]
	ldr	r1, [r2]
	ldr	r2, [r4, #8]
	str	r0, [r3]
	add	r1, r1, #1
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r3, [r2]
	mov	r2, #0
	bx	r3
.L7:
	mov	r0, r4
	bl	hide_cursor
	ldr	r0, .L26+36
	bl	del_timer_sync
	ldr	r3, .L26+40
	mov	r0, r4
	str	r6, [r3]
	bl	save_screen
	ldr	r9, .L26+44
	ldr	r3, [r4, #8]
	ldr	r2, [r9]
	ldr	r3, [r3]
	cmp	r2, #0
	ldreq	r2, .L26+32
	movne	r1, #1
	ldreq	r1, [r2]
	mov	r0, r4
	addeq	r1, r1, #1
	mov	r2, #0
	blx	r3
	ldr	r3, [r7]
	cmp	r0, #0
	add	r3, r3, #1
	str	r3, [r5]
	bne	.L25
.L9:
	mov	r0, #1
	bl	console_blank_hook
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, [r9]
	cmp	r3, #0
	beq	.L10
	ldr	r2, .L26+32
	ldr	r2, [r2]
	cmp	r2, #0
	beq	.L10
	ldr	r1, .L26+48
	ldr	r2, .L26+28
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, .L26+36
	add	r1, r3, r1
	str	r2, [r8]
	bl	mod_timer
.L10:
	ldr	r2, [r4, #4]
	ldr	r3, .L26+52
	mov	r1, r2
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r0, [r3]
	b	vt_event_post
.L24:
	mov	r0, r4
	bl	hide_cursor
	mov	r0, r4
	bl	save_screen
	ldr	r3, [r4, #8]
	mov	r2, #1
	mvn	r1, #0
	mov	r0, r4
	ldr	r3, [r3]
	blx	r3
	ldr	r2, .L26+24
	ldr	r3, [r7]
	ldr	r1, [r2]
	add	r3, r3, #1
	ldr	r2, .L26+12
	mov	r0, r4
	str	r3, [r5]
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	str	r1, [r2]
	b	set_origin
.L25:
	mov	r0, r4
	bl	set_origin
	b	.L9
.L27:
	.align	2
.L26:
	.word	vc_cons
	.word	fg_console
	.word	console_blanked
	.word	blank_state
	.word	blank_normal_wait
	.word	KD_TEXT
	.word	blank_off
	.word	blank_vesa_wait
	.word	vesa_blank_mode
	.word	console_timer
	.word	blank_timer_expired
	.word	vesa_off_interval
	.word	jiffies
	.word	VT_EVENT_BLANK
	.size	do_blank_screen, .-do_blank_screen
	.comm	vesa_off_interval,4,4
	.comm	vesa_blank_mode,4,4
	.comm	vc_cons,4,4
	.comm	jiffies,4,4
	.comm	fg_console,4,4
	.comm	console_timer,4,4
	.comm	console_blanked,4,4
	.comm	blank_vesa_wait,4,4
	.comm	blank_timer_expired,4,4
	.comm	blank_state,4,4
	.comm	blank_off,4,4
	.comm	blank_normal_wait,4,4
	.comm	VT_EVENT_BLANK,4,4
	.comm	KD_TEXT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
