	.file	"extr_....bootvideo-mode.c_raw_set_mode.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	raw_set_mode, @function
raw_set_mode:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	edx, DWORD PTR VIDEO_RECALC[rip]
	mov	rbx, QWORD PTR video_cards[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	r12, QWORD PTR video_cards_end[rip]
	not	edx
	and	edx, edi
	cmp	rbx, r12
	jnb	.L14
	mov	rbp, rsi
	xor	r11d, r11d
	mov	rsi, rbx
.L10:
	mov	eax, DWORD PTR [rsi]
	mov	rdi, QWORD PTR 24[rsi]
	test	eax, eax
	jle	.L3
	sub	eax, 1
	lea	rax, 3[rax+rax*2]
	lea	r10, [rdi+rax*4]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L15:
	mov	r8d, 1
.L5:
	mov	r9d, DWORD PTR 8[rdi]
	cmp	r9d, edx
	je	.L6
	mov	eax, DWORD PTR 4[rdi]
	sal	eax, 8
	add	eax, ecx
	cmp	eax, edx
	je	.L26
	cmp	r8d, 1
	sbb	r11d, -1
	add	rdi, 12
	cmp	rdi, r10
	je	.L3
.L9:
	mov	ecx, DWORD PTR [rdi]
	test	ecx, ecx
	jne	.L4
	mov	r8d, DWORD PTR 4[rdi]
	test	r8d, r8d
	je	.L5
.L4:
	cmp	edx, r11d
	jne	.L15
	mov	edx, DWORD PTR 8[rdi]
.L6:
	mov	DWORD PTR 0[rbp], edx
	call	[QWORD PTR 8[rsi]]
.L1:
	mov	rbx, QWORD PTR 24[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L27
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsi, 32
	cmp	rsi, r12
	jb	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 16[rbx]
	cmp	eax, edx
	jg	.L11
	add	eax, DWORD PTR 20[rbx]
	cmp	eax, edx
	jg	.L28
.L11:
	add	rbx, 32
	cmp	rbx, r12
	jb	.L12
.L14:
	mov	eax, -1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	edx, r9d
	jmp	.L6
.L28:
	mov	DWORD PTR 20[rsp], edx
	lea	rdi, 12[rsp]
	mov	DWORD PTR 0[rbp], edx
	mov	QWORD PTR 12[rsp], 0
	call	[QWORD PTR 8[rbx]]
	jmp	.L1
.L27:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	raw_set_mode, .-raw_set_mode
	.comm	video_cards_end,8,8
	.comm	video_cards,8,8
	.comm	VIDEO_RECALC,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_....bootvideo-mode.c_raw_set_mode.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	raw_set_mode, %function
raw_set_mode:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L30
	ldr	ip, .L30+4
	ldr	r3, .L30+8
	ldr	r10, [r2]
	ldr	r9, [ip]
	ldr	r2, [r3]
	ldr	r3, .L30+12
	sub	sp, sp, #16
	cmp	r9, r10
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bic	r2, r0, r2
	bcs	.L14
	mov	r8, r9
	mov	r6, #0
.L10:
	ldr	r7, [r8]
	ldr	r0, [r8, #16]
	cmp	r7, #0
	ble	.L3
	mov	ip, #0
	b	.L9
.L15:
	mov	lr, #1
.L5:
	ldr	r4, [r0, #8]
	cmp	r4, r2
	beq	.L6
	ldr	r5, [r0, #4]
	add	r3, r3, r5, lsl #8
	cmp	r3, r2
	beq	.L27
	cmp	lr, #0
	add	ip, ip, #1
	addne	r6, r6, #1
	cmp	ip, r7
	add	r0, r0, #12
	beq	.L3
.L9:
	ldr	r3, [r0]
	cmp	r3, #0
	bne	.L4
	ldr	lr, [r0, #4]
	cmp	lr, #0
	beq	.L5
.L4:
	cmp	r2, r6
	bne	.L15
	ldr	r2, [r0, #8]
.L6:
	ldr	r3, [r8, #4]
	str	r2, [r1]
	blx	r3
.L1:
	ldr	r3, .L30+12
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L3:
	add	r8, r8, #20
	cmp	r8, r10
	bcc	.L10
.L12:
	ldr	r3, [r9, #8]
	cmp	r3, r2
	bgt	.L11
	ldr	r0, [r9, #12]
	add	r3, r3, r0
	cmp	r3, r2
	bgt	.L29
.L11:
	add	r9, r9, #20
	cmp	r9, r10
	bcc	.L12
.L14:
	mvn	r0, #0
	b	.L1
.L27:
	mov	r2, r4
	b	.L6
.L29:
	mov	r3, #0
	str	r2, [sp, #8]
	str	r2, [r1]
	mov	r0, sp
	ldr	r2, [r9, #4]
	str	r3, [sp]
	str	r3, [sp, #4]
	blx	r2
	b	.L1
.L28:
	bl	__stack_chk_fail
.L31:
	.align	2
.L30:
	.word	video_cards_end
	.word	video_cards
	.word	VIDEO_RECALC
	.word	.LC0
	.size	raw_set_mode, .-raw_set_mode
	.comm	video_cards_end,4,4
	.comm	video_cards,4,4
	.comm	VIDEO_RECALC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
