	.file	"extr_matroxfb_base.c_matroxfb_crtc1_panpos.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	matroxfb_crtc1_panpos, @function
matroxfb_crtc1_panpos:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	eax, eax
	jns	.L13
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	xor	edi, edi
	call	matroxfb_DAC_lock_irqsave@PLT
	mov	r12d, DWORD PTR [rbx]
	test	r12d, r12d
	jns	.L14
.L4:
	pop	rbx
	.cfi_remember_state
	.cfi_restore 3
	.cfi_def_cfa_offset 24
	xor	edi, edi
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 8
	jmp	matroxfb_DAC_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	DWORD PTR [rbx], -1
	mov	edi, DWORD PTR M_EXTVGA_INDEX[rip]
	call	mga_inb@PLT
	mov	edi, DWORD PTR M_EXTVGA_INDEX[rip]
	xor	esi, esi
	mov	edx, r12d
	mov	ebp, eax
	call	mga_setr@PLT
	test	ebp, ebp
	je	.L4
	mov	edi, DWORD PTR M_EXTVGA_INDEX[rip]
	mov	esi, ebp
	call	mga_outb@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	matroxfb_crtc1_panpos, .-matroxfb_crtc1_panpos
	.comm	M_EXTVGA_INDEX,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_matroxfb_base.c_matroxfb_crtc1_panpos.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	matroxfb_crtc1_panpos, %function
matroxfb_crtc1_panpos:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	cmp	r3, #0
	bxlt	lr
	push	{r4, r5, r6, lr}
	mov	r4, r0
	mov	r0, #0
	bl	matroxfb_DAC_lock_irqsave
	ldr	r5, [r4]
	cmp	r5, #0
	bge	.L13
.L4:
	pop	{r4, r5, r6, lr}
	mov	r0, #0
	b	matroxfb_DAC_unlock_irqrestore
.L13:
	mvn	r3, #0
	ldr	r6, .L14
	str	r3, [r4]
	ldr	r0, [r6]
	bl	mga_inb
	mov	r4, r0
	mov	r2, r5
	mov	r1, #0
	ldr	r0, [r6]
	bl	mga_setr
	cmp	r4, #0
	beq	.L4
	mov	r1, r4
	ldr	r0, [r6]
	bl	mga_outb
	b	.L4
.L15:
	.align	2
.L14:
	.word	M_EXTVGA_INDEX
	.size	matroxfb_crtc1_panpos, .-matroxfb_crtc1_panpos
	.comm	M_EXTVGA_INDEX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
