	.file	"extr_68328fb.c_mc68x328fb_pan_display.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mc68x328fb_pan_display, @function
mc68x328fb_pan_display:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR FB_VMODE_YWRAP[rip]
	mov	eax, edx
	and	eax, DWORD PTR [rdi]
	je	.L2
	mov	rax, QWORD PTR 8[rdi]
	test	rax, rax
	js	.L3
	cmp	rax, QWORD PTR [rsi]
	jge	.L3
	cmp	QWORD PTR 16[rdi], 0
	jne	.L3
	mov	QWORD PTR 40[rsi], rax
	xor	eax, eax
	or	DWORD PTR 48[rsi], edx
	mov	QWORD PTR 32[rsi], 0
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	rcx, QWORD PTR 16[rdi]
	mov	r8, QWORD PTR 8[rsi]
	add	r8, rcx
	cmp	r8, QWORD PTR 16[rsi]
	jg	.L3
	mov	rdi, QWORD PTR 8[rdi]
	mov	r8, QWORD PTR 24[rsi]
	add	r8, rdi
	cmp	r8, QWORD PTR [rsi]
	jg	.L3
	not	edx
	mov	QWORD PTR 32[rsi], rcx
	and	DWORD PTR 48[rsi], edx
	mov	QWORD PTR 40[rsi], rdi
	ret
	.cfi_endproc
.LFE0:
	.size	mc68x328fb_pan_display, .-mc68x328fb_pan_display
	.comm	FB_VMODE_YWRAP,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_68328fb.c_mc68x328fb_pan_display.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mc68x328fb_pan_display, %function
mc68x328fb_pan_display:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L13
	mov	r3, r0
	ldr	ip, [r2]
	ldr	r0, [r0]
	ands	r0, ip, r0
	beq	.L2
	ldr	r2, [r3, #4]
	cmp	r2, #0
	blt	.L9
	ldr	r0, [r1]
	cmp	r2, r0
	bge	.L9
	ldr	r0, [r3, #8]
	cmp	r0, #0
	bne	.L9
	ldr	r3, [r1, #24]
	str	r0, [r1, #16]
	orr	ip, r3, ip
	str	r2, [r1, #20]
	str	ip, [r1, #24]
	bx	lr
.L9:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	push	{r4, lr}
	ldmib	r1, {r2, r4}
	ldr	lr, [r3, #8]
	add	r2, lr, r2
	cmp	r2, r4
	bgt	.L3
	ldr	r2, [r3, #4]
	ldr	r3, [r1, #12]
	ldr	r4, [r1]
	add	r3, r2, r3
	cmp	r3, r4
	bgt	.L3
	ldr	r3, [r1, #24]
	str	lr, [r1, #16]
	bic	ip, r3, ip
	str	r2, [r1, #20]
	str	ip, [r1, #24]
	pop	{r4, pc}
.L3:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L14:
	.align	2
.L13:
	.word	FB_VMODE_YWRAP
	.word	EINVAL
	.size	mc68x328fb_pan_display, .-mc68x328fb_pan_display
	.comm	FB_VMODE_YWRAP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
