	.file	"extr_pxa168fb.c_pxa168fb_check_var.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	pxa168fb_check_var, @function
pxa168fb_check_var:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 8[rsi]
	call	determine_best_pix_fmt@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L1
	mov	esi, eax
	mov	rdi, rbx
	call	set_pix_fmt@PLT
	mov	eax, DWORD PTR 4[rbx]
	mov	edx, DWORD PTR [rbx]
	mov	DWORD PTR 0[r13], r12d
	mov	ecx, DWORD PTR 8[rbx]
	add	edx, eax
	cmp	edx, ecx
	jg	.L4
	mov	edx, DWORD PTR 16[rbx]
	mov	edi, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 20[rbx]
	add	edi, edx
	cmp	edi, esi
	jg	.L4
	add	eax, DWORD PTR 24[rbx]
	add	eax, DWORD PTR 28[rbx]
	add	eax, DWORD PTR 32[rbx]
	cmp	eax, 2048
	jg	.L4
	add	edx, DWORD PTR 36[rbx]
	add	edx, DWORD PTR 40[rbx]
	add	edx, DWORD PTR 44[rbx]
	cmp	edx, 2048
	jg	.L4
	imul	ecx, esi
	mov	eax, DWORD PTR 48[rbx]
	sar	eax, 3
	imul	ecx, eax
	cmp	ecx, DWORD PTR 0[rbp]
	jg	.L4
	xor	r12d, r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	pxa168fb_check_var, .-pxa168fb_check_var
	.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_pxa168fb.c_pxa168fb_check_var.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pxa168fb_check_var, %function
pxa168fb_check_var:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r1
	mov	r4, r0
	ldr	r7, [r1, #4]
	bl	determine_best_pix_fmt
	subs	r5, r0, #0
	blt	.L1
	mov	r1, r5
	mov	r0, r4
	bl	set_pix_fmt
	ldm	r4, {r2, r3}
	ldr	r1, [r4, #8]
	add	r2, r3, r2
	cmp	r2, r1
	str	r5, [r7]
	bgt	.L4
	add	r0, r4, #12
	ldm	r0, {r0, r2, ip}
	add	r0, r2, r0
	cmp	r0, ip
	bgt	.L4
	ldr	r0, [r4, #24]
	ldr	lr, [r4, #28]
	add	r3, r3, r0
	ldr	r0, [r4, #32]
	add	r3, r3, lr
	add	r3, r3, r0
	cmp	r3, #2048
	bgt	.L4
	ldr	r3, [r4, #36]
	ldr	r0, [r4, #40]
	add	r2, r2, r3
	ldr	r3, [r4, #44]
	add	r2, r2, r0
	add	r2, r2, r3
	cmp	r2, #2048
	bgt	.L4
	mul	r1, ip, r1
	ldr	r3, [r4, #48]
	ldr	r2, [r6]
	asr	r3, r3, #3
	mul	r1, r3, r1
	cmp	r1, r2
	movle	r5, #0
	ble	.L1
.L4:
	ldr	r3, .L7
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	EINVAL
	.size	pxa168fb_check_var, .-pxa168fb_check_var
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
