	.file	"extr_pm2fb.c_pm2fb_check_var.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"depth not supported: %u\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"virtual x resolution != physical x resolution not supported\n"
	.align 8
.LC2:
	.string	"virtual y resolution < physical y resolution not possible\n"
	.section	.rodata.str1.1
.LC3:
	.string	"xoffset not supported\n"
.LC4:
	.string	"interlace not supported\n"
.LC5:
	.string	"width not supported: %u\n"
.LC6:
	.string	"height not supported: %u\n"
	.section	.rodata.str1.8
	.align 8
.LC7:
	.string	"no memory for screen (%ux%ux%u)\n"
	.section	.rodata.str1.1
.LC8:
	.string	"pixclock too high (%ldKHz)\n"
	.section	.rodata.str1.8
	.align 8
.LC9:
	.string	"Checking graphics mode at %dx%d depth %d\n"
	.text
	.p2align 4
	.type	pm2fb_check_var, @function
pm2fb_check_var:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	ecx, DWORD PTR [rdi]
	mov	rbx, rdi
	mov	rdx, rsi
	lea	eax, -16[rcx]
	and	eax, -17
	je	.L2
	mov	eax, ecx
	and	eax, -17
	cmp	eax, 8
	jne	.L27
.L2:
	mov	eax, DWORD PTR 4[rbx]
	cmp	eax, DWORD PTR 8[rbx]
	jne	.L28
	mov	r8d, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 16[rbx]
	cmp	r8d, esi
	jg	.L29
	cmp	esi, 2047
	jle	.L6
	mov	DWORD PTR 16[rbx], 2047
.L6:
	cmp	QWORD PTR 80[rbx], 0
	jne	.L30
	mov	esi, DWORD PTR 20[rbx]
	and	esi, DWORD PTR FB_VMODE_MASK[rip]
	cmp	esi, DWORD PTR FB_VMODE_INTERLACED[rip]
	je	.L31
	lea	esi, 15[rax]
	and	esi, -16
	lea	eax, -320[rsi]
	mov	DWORD PTR 4[rbx], esi
	cmp	eax, 1280
	ja	.L32
	lea	eax, -200[r8]
	cmp	eax, 1000
	ja	.L33
	lea	eax, 7[rcx]
	mov	r8d, DWORD PTR 16[rbx]
	sar	eax, 3
	imul	eax, esi
	imul	eax, r8d
	cmp	eax, DWORD PTR [rdx]
	jg	.L34
	mov	edi, DWORD PTR 72[rbx]
	call	PICOS2KHZ@PLT
	cmp	eax, DWORD PTR PM2_MAX_PIXCLOCK[rip]
	jg	.L35
	mov	ecx, DWORD PTR [rbx]
	mov	QWORD PTR 64[rbx], 0
	cmp	ecx, 24
	je	.L13
	jg	.L14
	cmp	ecx, 8
	je	.L15
	cmp	ecx, 16
	jne	.L17
	movabs	rax, 21474836486
	mov	QWORD PTR 40[rbx], 5
	mov	QWORD PTR 48[rbx], rax
	movabs	rax, 47244640261
	mov	QWORD PTR 56[rbx], rax
.L17:
	mov	edx, DWORD PTR 12[rbx]
	mov	esi, DWORD PTR 4[rbx]
	mov	QWORD PTR 24[rbx], -1
	xor	eax, eax
	mov	QWORD PTR 32[rbx], 0
	lea	rdi, .LC9[rip]
	call	DPRINTK@PLT
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L28:
	.cfi_restore_state
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L29:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	mov	esi, ecx
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L34:
	.cfi_restore_state
	mov	edx, r8d
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	cmp	ecx, 32
	jne	.L17
	movabs	rax, 34359738376
	mov	QWORD PTR 40[rbx], 8
	mov	QWORD PTR 48[rbx], rax
	movabs	rax, 68719476744
	mov	QWORD PTR 56[rbx], rax
	movabs	rax, 34359738392
	mov	QWORD PTR 64[rbx], rax
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L30:
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	lea	rdi, .LC5[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore_state
	mov	esi, r8d
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_restore_state
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	edi, DWORD PTR 72[rbx]
	call	PICOS2KHZ@PLT
	lea	rdi, .LC8[rip]
	mov	esi, eax
	xor	eax, eax
	call	DPRINTK@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	DWORD PTR 56[rbx], 8
	mov	DWORD PTR 48[rbx], 8
	mov	DWORD PTR 40[rbx], 8
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L13:
	movabs	rax, 34359738376
	mov	QWORD PTR 40[rbx], 8
	mov	QWORD PTR 48[rbx], rax
	movabs	rax, 68719476744
	mov	QWORD PTR 56[rbx], rax
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	pm2fb_check_var, .-pm2fb_check_var
	.comm	PM2_MAX_PIXCLOCK,4,4
	.comm	FB_VMODE_MASK,4,4
	.comm	FB_VMODE_INTERLACED,4,4
	.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_pm2fb.c_pm2fb_check_var.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"depth not supported: %u\012\000"
	.align	2
.LC1:
	.ascii	"virtual x resolution != physical x resolution not s"
	.ascii	"upported\012\000"
	.align	2
.LC2:
	.ascii	"virtual y resolution < physical y resolution not po"
	.ascii	"ssible\012\000"
	.align	2
.LC3:
	.ascii	"xoffset not supported\012\000"
	.align	2
.LC4:
	.ascii	"interlace not supported\012\000"
	.align	2
.LC5:
	.ascii	"width not supported: %u\012\000"
	.align	2
.LC6:
	.ascii	"height not supported: %u\012\000"
	.align	2
.LC7:
	.ascii	"no memory for screen (%ux%ux%u)\012\000"
	.align	2
.LC8:
	.ascii	"pixclock too high (%ldKHz)\012\000"
	.align	2
.LC9:
	.ascii	"Checking graphics mode at %dx%d depth %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pm2fb_check_var, %function
pm2fb_check_var:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, r5, r6, lr}
	sub	r2, r3, #16
	mov	r4, r0
	bic	r2, r2, #16
	bic	r0, r3, #16
	cmp	r0, #8
	cmpne	r2, #0
	bne	.L21
	ldr	r2, [r4, #4]
	ldr	r0, [r4, #8]
	cmp	r2, r0
	bne	.L22
	ldr	ip, [r4, #12]
	ldr	r0, [r4, #16]
	cmp	ip, r0
	bgt	.L23
	cmp	r0, #2048
	ldrge	r0, .L30
	ldr	r5, [r4, #72]
	strge	r0, [r4, #16]
	cmp	r5, #0
	bne	.L24
	ldr	r0, .L30+4
	ldr	lr, .L30+8
	ldr	r6, [r0]
	ldr	r0, [r4, #20]
	ldr	lr, [lr]
	and	r0, r0, r6
	cmp	r0, lr
	beq	.L25
	add	r2, r2, #15
	bic	r0, r2, #15
	sub	r2, r0, #320
	cmp	r2, #1280
	str	r0, [r4, #4]
	bhi	.L26
	sub	r2, ip, #200
	cmp	r2, #1000
	bhi	.L27
	add	ip, r3, #7
	asr	ip, ip, #3
	mul	ip, r0, ip
	ldr	r2, [r4, #16]
	ldr	lr, [r1]
	mul	r1, r2, ip
	cmp	r1, lr
	bgt	.L28
	ldr	r0, [r4, #68]
	bl	PICOS2KHZ
	ldr	r3, .L30+12
	ldr	r3, [r3]
	cmp	r0, r3
	bgt	.L29
	ldr	r3, [r4]
	str	r5, [r4, #60]
	sub	r2, r3, #8
	str	r5, [r4, #64]
	cmp	r2, #24
	ldrls	pc, [pc, r2, asl #2]
	b	.L13
.L15:
	.word	.L18
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L17
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L16
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L13
	.word	.L14
.L22:
	ldr	r0, .L30+16
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r0, .L30+24
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L16:
	mov	r2, #8
	mov	r0, #16
	mov	r1, #0
	str	r0, [r4, #56]
	str	r1, [r4, #40]
	str	r2, [r4, #48]
	str	r2, [r4, #52]
	str	r2, [r4, #44]
	str	r2, [r4, #36]
.L13:
	mvn	r2, #0
	mov	r1, #0
	str	r2, [r4, #24]
	str	r2, [r4, #28]
	str	r1, [r4, #32]
	ldr	r2, [r4, #12]
	ldr	r1, [r4, #4]
	ldr	r0, .L30+28
	bl	DPRINTK
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L28:
	mov	r1, r0
	ldr	r0, .L30+32
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L21:
	mov	r1, r3
	ldr	r0, .L30+36
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L24:
	ldr	r0, .L30+40
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L26:
	mov	r1, r0
	ldr	r0, .L30+44
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L27:
	mov	r1, ip
	ldr	r0, .L30+48
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L14:
	mov	r2, #8
	mov	ip, #24
	mov	r0, #16
	mov	r1, #0
	str	ip, [r4, #60]
	str	r2, [r4, #64]
	str	r2, [r4, #48]
	str	r2, [r4, #52]
	str	r2, [r4, #44]
	str	r2, [r4, #36]
	str	r0, [r4, #56]
	str	r1, [r4, #40]
	b	.L13
.L17:
	mov	r2, #5
	mov	ip, #11
	mov	r0, #6
	mov	r1, #0
	str	ip, [r4, #56]
	str	r2, [r4, #52]
	str	r2, [r4, #48]
	str	r2, [r4, #36]
	str	r0, [r4, #44]
	str	r1, [r4, #40]
	b	.L13
.L18:
	mov	r2, #8
	str	r2, [r4, #52]
	str	r2, [r4, #44]
	str	r2, [r4, #36]
	b	.L13
.L25:
	ldr	r0, .L30+52
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L29:
	ldr	r0, [r4, #68]
	bl	PICOS2KHZ
	mov	r1, r0
	ldr	r0, .L30+56
	bl	DPRINTK
	ldr	r3, .L30+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
	b	.L1
.L31:
	.align	2
.L30:
	.word	2047
	.word	FB_VMODE_MASK
	.word	FB_VMODE_INTERLACED
	.word	PM2_MAX_PIXCLOCK
	.word	.LC1
	.word	EINVAL
	.word	.LC2
	.word	.LC9
	.word	.LC7
	.word	.LC0
	.word	.LC3
	.word	.LC5
	.word	.LC6
	.word	.LC4
	.word	.LC8
	.size	pm2fb_check_var, .-pm2fb_check_var
	.comm	PM2_MAX_PIXCLOCK,4,4
	.comm	FB_VMODE_MASK,4,4
	.comm	FB_VMODE_INTERLACED,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
