	.file	"extr_fbcon.c_fbcon_takeover.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fbcon_takeover, @function
fbcon_takeover:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR num_registered_fb[rip]
	test	eax, eax
	je	.L18
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	test	edi, edi
	je	.L19
.L4:
	movsx	rsi, DWORD PTR first_fb_vc[rip]
	mov	edx, DWORD PTR last_fb_vc[rip]
	cmp	esi, edx
	jg	.L5
	mov	rcx, QWORD PTR con2fb_map[rip]
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR info_idx[rip]
	mov	DWORD PTR [rcx+rsi*4], eax
	mov	edx, DWORD PTR last_fb_vc[rip]
	add	rsi, 1
	cmp	edx, esi
	jge	.L6
	mov	esi, DWORD PTR first_fb_vc[rip]
.L5:
	mov	ecx, DWORD PTR fbcon_is_default[rip]
	lea	rdi, fb_con[rip]
	call	take_over_console@PLT
	test	eax, eax
	je	.L7
	movsx	rdx, DWORD PTR first_fb_vc[rip]
	cmp	edx, DWORD PTR last_fb_vc[rip]
	mov	rcx, QWORD PTR con2fb_map[rip]
	jg	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	mov	DWORD PTR [rcx+rdx*4], -1
	add	rdx, 1
	cmp	DWORD PTR last_fb_vc[rip], edx
	jge	.L9
.L10:
	mov	DWORD PTR info_idx[rip], -1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	DWORD PTR fbcon_has_console_bind[rip], 1
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR FBCON_LOGO_DONTSHOW[rip]
	mov	DWORD PTR logo_shown[rip], eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_def_cfa_offset 8
	mov	eax, DWORD PTR ENODEV[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	fbcon_takeover, .-fbcon_takeover
	.comm	num_registered_fb,4,4
	.comm	logo_shown,4,4
	.comm	last_fb_vc,4,4
	.comm	info_idx,4,4
	.comm	first_fb_vc,4,4
	.comm	fbcon_is_default,4,4
	.comm	fbcon_has_console_bind,4,4
	.comm	fb_con,4,4
	.comm	con2fb_map,8,8
	.comm	FBCON_LOGO_DONTSHOW,4,4
	.comm	ENODEV,4,4
	.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_fbcon.c_fbcon_takeover.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fbcon_takeover, %function
fbcon_takeover:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L18
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L17
	cmp	r0, #0
	ldreq	r2, .L18+4
	push	{r4, r5, r6, lr}
	ldreq	r2, [r2]
	ldreq	r3, .L18+8
	ldr	r5, .L18+12
	ldr	r4, .L18+16
	streq	r2, [r3]
	ldr	r1, [r5]
	ldr	r2, [r4]
	cmp	r1, r2
	bgt	.L5
	ldr	r2, .L18+20
	sub	r3, r1, #-1073741823
	ldr	r2, [r2]
	ldr	r0, .L18+24
	add	r3, r2, r3, lsl #2
.L6:
	ldr	r2, [r0]
	add	r1, r1, #1
	str	r2, [r3, #4]!
	ldr	r2, [r4]
	cmp	r2, r1
	bge	.L6
	ldr	r1, [r5]
.L5:
	ldr	r3, .L18+28
	ldr	r0, .L18+32
	ldr	r3, [r3]
	bl	take_over_console
	cmp	r0, #0
	beq	.L7
	ldr	r3, [r5]
	ldr	r2, [r4]
	cmp	r3, r2
	bgt	.L10
	mvn	ip, #0
	ldr	r1, .L18+20
	sub	r2, r3, #-1073741823
	ldr	r1, [r1]
	add	r2, r1, r2, lsl #2
.L9:
	str	ip, [r2, #4]!
	ldr	r1, [r4]
	add	r3, r3, #1
	cmp	r1, r3
	bge	.L9
.L10:
	mvn	r2, #0
	ldr	r3, .L18+24
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L7:
	mov	r2, #1
	ldr	r3, .L18+36
	str	r2, [r3]
	pop	{r4, r5, r6, pc}
.L17:
	ldr	r3, .L18+40
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L19:
	.align	2
.L18:
	.word	num_registered_fb
	.word	FBCON_LOGO_DONTSHOW
	.word	logo_shown
	.word	first_fb_vc
	.word	last_fb_vc
	.word	con2fb_map
	.word	info_idx
	.word	fbcon_is_default
	.word	fb_con
	.word	fbcon_has_console_bind
	.word	ENODEV
	.size	fbcon_takeover, .-fbcon_takeover
	.comm	num_registered_fb,4,4
	.comm	logo_shown,4,4
	.comm	last_fb_vc,4,4
	.comm	info_idx,4,4
	.comm	first_fb_vc,4,4
	.comm	fbcon_is_default,4,4
	.comm	fbcon_has_console_bind,4,4
	.comm	fb_con,4,4
	.comm	con2fb_map,4,4
	.comm	FBCON_LOGO_DONTSHOW,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
