	.file	"extr_intel-agp.c_intel_configure.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_configure, @function
intel_configure:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 24
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR agp_bridge[rip]
	mov	edi, DWORD PTR 12[rax]
	call	A_SIZE_16@PLT
	mov	rdx, QWORD PTR agp_bridge[rip]
	mov	esi, DWORD PTR INTEL_APSIZE[rip]
	mov	edi, DWORD PTR 8[rdx]
	mov	edx, DWORD PTR [rax]
	call	pci_write_config_word@PLT
	mov	rax, QWORD PTR agp_bridge[rip]
	mov	esi, DWORD PTR AGP_APBASE[rip]
	mov	rdx, rsp
	mov	edi, DWORD PTR 8[rax]
	call	pci_read_config_dword@PLT
	mov	rax, QWORD PTR agp_bridge[rip]
	mov	edx, DWORD PTR [rsp]
	and	edx, DWORD PTR PCI_BASE_ADDRESS_MEM_MASK[rip]
	mov	esi, DWORD PTR INTEL_ATTBASE[rip]
	mov	DWORD PTR [rax], edx
	mov	edi, DWORD PTR 8[rax]
	mov	edx, DWORD PTR 4[rax]
	call	pci_write_config_dword@PLT
	mov	esi, DWORD PTR INTEL_AGPCTRL[rip]
	mov	edx, 8832
	mov	rax, QWORD PTR agp_bridge[rip]
	mov	edi, DWORD PTR 8[rax]
	call	pci_write_config_dword@PLT
	mov	esi, DWORD PTR INTEL_NBXCFG[rip]
	lea	rdx, 4[rsp]
	mov	rax, QWORD PTR agp_bridge[rip]
	mov	edi, DWORD PTR 8[rax]
	call	pci_read_config_word@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	rax, QWORD PTR agp_bridge[rip]
	mov	esi, DWORD PTR INTEL_NBXCFG[rip]
	mov	edi, DWORD PTR 8[rax]
	and	dh, -7
	or	dh, 2
	call	pci_write_config_word@PLT
	mov	rax, QWORD PTR INTEL_ERRSTS[rip]
	mov	edx, 7
	lea	rsi, 1[rax]
	mov	rax, QWORD PTR agp_bridge[rip]
	mov	edi, DWORD PTR 8[rax]
	call	pci_write_config_byte@PLT
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	xor	eax, eax
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	intel_configure, .-intel_configure
	.comm	agp_bridge,8,8
	.comm	PCI_BASE_ADDRESS_MEM_MASK,4,4
	.comm	INTEL_NBXCFG,4,4
	.comm	INTEL_ERRSTS,8,8
	.comm	INTEL_ATTBASE,4,4
	.comm	INTEL_APSIZE,4,4
	.comm	INTEL_AGPCTRL,4,4
	.comm	AGP_APBASE,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_intel-agp.c_intel_configure.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_configure, %function
intel_configure:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	ldr	r3, .L6
	ldr	r4, .L6+4
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	ldr	r3, [r4]
	ldr	r5, .L6+8
	ldr	r0, [r3, #12]
	bl	A_SIZE_16
	ldr	r1, [r4]
	ldr	r3, .L6+12
	ldr	r2, [r0]
	ldr	r0, [r1, #8]
	ldr	r1, [r3]
	bl	pci_write_config_word
	ldr	r2, [r4]
	ldr	r3, .L6+16
	ldr	r0, [r2, #8]
	ldr	r1, [r3]
	add	r2, sp, #4
	bl	pci_read_config_dword
	ldr	r3, .L6+20
	ldr	r2, [sp, #4]
	ldr	r0, [r3]
	ldr	r1, .L6+24
	ldr	r3, [r4]
	and	r2, r2, r0
	str	r2, [r3]
	ldr	r0, [r3, #8]
	ldr	r2, [r3, #4]
	ldr	r1, [r1]
	bl	pci_write_config_dword
	ldr	r2, [r4]
	ldr	r3, .L6+28
	ldr	r0, [r2, #8]
	ldr	r1, [r3]
	mov	r2, #8832
	bl	pci_write_config_dword
	ldr	r3, [r4]
	ldr	r1, [r5]
	ldr	r0, [r3, #8]
	add	r2, sp, #8
	bl	pci_read_config_word
	ldr	r2, [sp, #8]
	ldr	r3, [r4]
	bic	r2, r2, #1536
	ldr	r1, [r5]
	ldr	r0, [r3, #8]
	orr	r2, r2, #512
	bl	pci_write_config_word
	ldr	r2, .L6+32
	ldr	r3, [r4]
	ldr	r1, [r2]
	ldr	r0, [r3, #8]
	mov	r2, #7
	add	r1, r1, #1
	bl	pci_write_config_byte
	ldr	r3, .L6
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	mov	r0, #0
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC0
	.word	agp_bridge
	.word	INTEL_NBXCFG
	.word	INTEL_APSIZE
	.word	AGP_APBASE
	.word	PCI_BASE_ADDRESS_MEM_MASK
	.word	INTEL_ATTBASE
	.word	INTEL_AGPCTRL
	.word	INTEL_ERRSTS
	.size	intel_configure, .-intel_configure
	.comm	agp_bridge,4,4
	.comm	PCI_BASE_ADDRESS_MEM_MASK,4,4
	.comm	INTEL_NBXCFG,4,4
	.comm	INTEL_ERRSTS,4,4
	.comm	INTEL_ATTBASE,4,4
	.comm	INTEL_APSIZE,4,4
	.comm	INTEL_AGPCTRL,4,4
	.comm	AGP_APBASE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
