	.file	"extr_tridentfb.c_disable_mmio.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	disable_mmio, @function
disable_mmio:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	edi, DWORD PTR [rdi]
	mov	esi, 11
	call	vga_mm_rseq@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR NewMode1[rip]
	mov	edx, 128
	call	vga_mm_wseq@PLT
	mov	edi, DWORD PTR 4[rbp]
	call	is_oldprotect@PLT
	test	eax, eax
	je	.L5
.L2:
	mov	esi, DWORD PTR PCIReg[rip]
	mov	edx, 980
	mov	rdi, rbp
	call	t_outb@PLT
	mov	rdi, rbp
	mov	esi, 981
	call	t_inb@PLT
	mov	rdi, rbp
	mov	edx, 981
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	and	eax, -2
	mov	esi, eax
	jmp	t_outb@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	esi, DWORD PTR Protection[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	edx, 146
	call	vga_mm_wseq@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	disable_mmio, .-disable_mmio
	.comm	Protection,4,4
	.comm	PCIReg,4,4
	.comm	NewMode1,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_tridentfb.c_disable_mmio.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	disable_mmio, %function
disable_mmio:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	mov	r1, #11
	ldr	r0, [r0]
	bl	vga_mm_rseq
	ldr	r3, .L6
	mov	r2, #128
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	vga_mm_wseq
	ldr	r0, [r4, #4]
	bl	is_oldprotect
	cmp	r0, #0
	beq	.L5
.L2:
	ldr	r3, .L6+4
	mov	r2, #980
	ldr	r1, [r3]
	mov	r0, r4
	bl	t_outb
	mov	r0, r4
	ldr	r1, .L6+8
	bl	t_inb
	ldr	r2, .L6+8
	bic	r1, r0, #1
	mov	r0, r4
	pop	{r4, lr}
	b	t_outb
.L5:
	ldr	r3, .L6+12
	mov	r2, #146
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	vga_mm_wseq
	b	.L2
.L7:
	.align	2
.L6:
	.word	NewMode1
	.word	PCIReg
	.word	981
	.word	Protection
	.size	disable_mmio, .-disable_mmio
	.comm	Protection,4,4
	.comm	PCIReg,4,4
	.comm	NewMode1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
