	.file	"extr_i810_main.c_i810fb_check_var.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	i810fb_check_var, @function
i810fb_check_var:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR IS_DVT[rip], 0
	mov	eax, DWORD PTR [rdi]
	je	.L2
	mov	edx, DWORD PTR FB_VMODE_MASK[rip]
	not	edx
	and	eax, edx
	mov	DWORD PTR [rdi], eax
	or	eax, DWORD PTR FB_VMODE_NONINTERLACED[rip]
	mov	DWORD PTR [rdi], eax
.L2:
	test	DWORD PTR FB_VMODE_DOUBLE[rip], eax
	je	.L3
	mov	edx, DWORD PTR FB_VMODE_MASK[rip]
	not	edx
	and	eax, edx
	mov	DWORD PTR 0[rbp], eax
	or	eax, DWORD PTR FB_VMODE_NONINTERLACED[rip]
	mov	DWORD PTR 0[rbp], eax
.L3:
	mov	rdi, rbp
	call	i810_round_off@PLT
	mov	rsi, r12
	mov	rdi, rbp
	call	i810_check_params@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdi, rbp
	call	i810fb_fill_var_timings@PLT
	mov	rdi, rbp
	call	set_color_bitfields@PLT
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	i810fb_check_var, .-i810fb_check_var
	.comm	IS_DVT,8,8
	.comm	FB_VMODE_NONINTERLACED,4,4
	.comm	FB_VMODE_MASK,4,4
	.comm	FB_VMODE_DOUBLE,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_i810_main.c_i810fb_check_var.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	i810fb_check_var, %function
i810fb_check_var:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L13
	push	{r4, r5, r6, lr}
	ldr	r2, [r3]
	mov	r4, r0
	cmp	r2, #0
	mov	r5, r1
	ldr	r3, [r0]
	beq	.L2
	ldr	r1, .L13+4
	ldr	r2, .L13+8
	ldr	r1, [r1]
	bic	r3, r3, r1
	str	r3, [r0]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r0]
.L2:
	ldr	r2, .L13+12
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L3
	ldr	r1, .L13+4
	ldr	r2, .L13+8
	ldr	r1, [r1]
	bic	r3, r3, r1
	str	r3, [r4]
	ldr	r2, [r2]
	orr	r3, r2, r3
	str	r3, [r4]
.L3:
	mov	r0, r4
	bl	i810_round_off
	mov	r1, r5
	mov	r0, r4
	bl	i810_check_params
	subs	r5, r0, #0
	bne	.L1
	mov	r0, r4
	bl	i810fb_fill_var_timings
	mov	r0, r4
	bl	set_color_bitfields
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	IS_DVT
	.word	FB_VMODE_MASK
	.word	FB_VMODE_NONINTERLACED
	.word	FB_VMODE_DOUBLE
	.size	i810fb_check_var, .-i810fb_check_var
	.comm	IS_DVT,4,4
	.comm	FB_VMODE_NONINTERLACED,4,4
	.comm	FB_VMODE_MASK,4,4
	.comm	FB_VMODE_DOUBLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
