	.file	"extr_mbxfb.c_mbxfb_check_var.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mbxfb_check_var, @function
mbxfb_check_var:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 112[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	lea	rsi, 4[rsp]
	call	mbxfb_get_pixclock@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	DWORD PTR 112[rbx], eax
	mov	rax, QWORD PTR MIN_XRES[rip]
	cmp	rsi, rax
	jge	.L2
	mov	QWORD PTR [rbx], rax
	mov	rsi, rax
.L2:
	mov	rax, QWORD PTR MIN_YRES[rip]
	cmp	QWORD PTR 8[rbx], rax
	jge	.L3
	mov	QWORD PTR 8[rbx], rax
.L3:
	cmp	QWORD PTR MAX_XRES[rip], rsi
	jl	.L6
	mov	rax, QWORD PTR MAX_YRES[rip]
	cmp	QWORD PTR 8[rbx], rax
	jle	.L20
.L6:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L21
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rdi, QWORD PTR 104[rbx]
	call	max@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	rdi, QWORD PTR 96[rbx]
	mov	QWORD PTR 104[rbx], rax
	call	max@PLT
	mov	edx, DWORD PTR 16[rbx]
	mov	QWORD PTR 96[rbx], rax
	cmp	edx, 16
	je	.L7
	jle	.L22
	sub	edx, 24
	test	edx, -9
	je	.L23
.L10:
	mov	QWORD PTR 88[rbx], 0
	xor	eax, eax
	mov	QWORD PTR 72[rbx], 0
	mov	QWORD PTR 48[rbx], 0
	mov	QWORD PTR 32[rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	cmp	edx, 8
	je	.L1
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, DWORD PTR 64[rbx]
	cmp	eax, 5
	je	.L15
	xor	edx, edx
	mov	ecx, 11
	xor	esi, esi
	mov	eax, 6
.L12:
	mov	DWORD PTR 64[rbx], eax
	mov	DWORD PTR 80[rbx], 5
	mov	DWORD PTR 40[rbx], 5
	mov	DWORD PTR 24[rbx], esi
	mov	DWORD PTR 56[rbx], 0
	mov	DWORD PTR 68[rbx], 5
	mov	DWORD PTR 84[rbx], ecx
	mov	DWORD PTR 28[rbx], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L23:
	movabs	rax, 68719476744
	test	edx, edx
	mov	DWORD PTR 24[rbx], edx
	mov	QWORD PTR 80[rbx], rax
	movabs	rax, 34359738376
	mov	QWORD PTR 64[rbx], rax
	mov	eax, 24
	cmovne	edx, eax
	mov	DWORD PTR 56[rbx], 0
	mov	DWORD PTR 40[rbx], 8
	mov	DWORD PTR 28[rbx], edx
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edx, 15
	mov	ecx, 10
	mov	esi, 1
	jmp	.L12
.L21:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	mbxfb_check_var, .-mbxfb_check_var
	.comm	MIN_YRES,8,8
	.comm	MIN_XRES,8,8
	.comm	MAX_YRES,8,8
	.comm	MAX_XRES,8,8
	.comm	EINVAL,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_mbxfb.c_mbxfb_check_var.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mbxfb_check_var, %function
mbxfb_check_var:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r3, .L21
	sub	sp, sp, #8
	mov	r1, sp
	ldr	r0, [r0, #68]
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	mbxfb_get_pixclock
	ldr	r3, .L21+4
	ldr	r1, [r4]
	ldr	r3, [r3]
	ldr	r2, [r4, #4]
	cmp	r1, r3
	movlt	r1, r3
	strlt	r3, [r4]
	ldr	r3, .L21+8
	str	r0, [r4, #68]
	ldr	r3, [r3]
	cmp	r2, r3
	strlt	r3, [r4, #4]
	ldr	r3, .L21+12
	ldr	r3, [r3]
	cmp	r3, r1
	blt	.L11
	ldr	r3, .L21+16
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	cmp	r2, r3
	ble	.L19
.L11:
	ldr	r3, .L21+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L21
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L19:
	ldr	r0, [r4, #64]
	bl	max
	ldr	r1, [r4, #4]
	str	r0, [r4, #64]
	ldr	r0, [r4, #60]
	bl	max
	ldr	r3, [r4, #8]
	str	r0, [r4, #60]
	sub	r2, r3, #8
	cmp	r2, #24
	ldrls	pc, [pc, r2, asl #2]
	b	.L7
.L9:
	.word	.L11
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L10
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L8
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L7
	.word	.L8
.L8:
	sub	r3, r3, #24
	cmp	r3, #0
	mov	r2, #8
	mov	r0, #16
	mov	r1, #0
	str	r3, [r4, #12]
	movne	r3, #24
	str	r0, [r4, #52]
	str	r3, [r4, #16]
	str	r2, [r4, #48]
	str	r2, [r4, #40]
	str	r2, [r4, #36]
	str	r2, [r4, #24]
	str	r1, [r4, #32]
.L7:
	mov	r3, #0
	mov	r0, r3
	str	r3, [r4, #56]
	str	r3, [r4, #44]
	str	r3, [r4, #28]
	str	r3, [r4, #20]
	b	.L1
.L10:
	ldr	r2, [r4, #36]
	mov	r3, #5
	cmp	r2, #5
	movne	r1, #0
	movne	ip, #11
	movne	lr, r1
	movne	r2, #6
	moveq	r1, #15
	moveq	ip, #10
	moveq	lr, #1
	mov	r0, #0
	str	r2, [r4, #36]
	str	lr, [r4, #12]
	str	ip, [r4, #52]
	str	r1, [r4, #16]
	str	r3, [r4, #48]
	str	r3, [r4, #24]
	str	r3, [r4, #40]
	str	r0, [r4, #32]
	b	.L7
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	.LC0
	.word	MIN_XRES
	.word	MIN_YRES
	.word	MAX_XRES
	.word	MAX_YRES
	.word	EINVAL
	.size	mbxfb_check_var, .-mbxfb_check_var
	.comm	MIN_YRES,4,4
	.comm	MIN_XRES,4,4
	.comm	MAX_YRES,4,4
	.comm	MAX_XRES,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
