	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_agp3_generic_configure         ## -- Begin function agp3_generic_configure
	.p2align	4, 0x90
_agp3_generic_configure:                ## @agp3_generic_configure
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_agp_bridge@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	20(%rax), %edi
	callq	_A_SIZE_16
	movq	%rax, %rbx
	movq	(%r15), %rax
	movl	16(%rax), %edi
	movq	_AGP_APBASE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	-28(%rbp), %r14
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movq	_PCI_BASE_ADDRESS_MEM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-28(%rbp), %eax
	movq	(%r15), %rcx
	movl	%eax, (%rcx)
	movl	16(%rcx), %edi
	movq	_AGPAPSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rcx), %rsi
	movl	(%rbx), %edx
	callq	_pci_write_config_word
	movq	(%r15), %rax
	movl	4(%rax), %edx
	movl	16(%rax), %edi
	movq	_AGPGARTLO@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	addq	8(%rax), %rsi
	callq	_pci_write_config_dword
	movq	(%r15), %rax
	movl	16(%rax), %edi
	movq	_AGPCTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	addq	8(%rax), %rsi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movq	(%r15), %rax
	movq	(%rbx), %rsi
	addq	8(%rax), %rsi
	movq	_AGPCTRL_APERENB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	-28(%rbp), %edx
	movl	16(%rax), %edi
	movq	_AGPCTRL_GTLBEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_pci_write_config_dword
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_agp_bridge,8,3                 ## @agp_bridge
	.comm	_AGP_APBASE,8,3                 ## @AGP_APBASE
	.comm	_PCI_BASE_ADDRESS_MEM_MASK,4,2  ## @PCI_BASE_ADDRESS_MEM_MASK
	.comm	_AGPAPSIZE,8,3                  ## @AGPAPSIZE
	.comm	_AGPGARTLO,8,3                  ## @AGPGARTLO
	.comm	_AGPCTRL,8,3                    ## @AGPCTRL
	.comm	_AGPCTRL_APERENB,4,2            ## @AGPCTRL_APERENB
	.comm	_AGPCTRL_GTLBEN,4,2             ## @AGPCTRL_GTLBEN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_agp3_generic_configure         ; -- Begin function agp3_generic_configure
	.p2align	2
_agp3_generic_configure:                ; @agp3_generic_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x20, _agp_bridge@GOTPAGE
Lloh1:
	ldr	x20, [x20, _agp_bridge@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8, #20]
	bl	_A_SIZE_16
	mov	x19, x0
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
Lloh2:
	adrp	x8, _AGP_APBASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AGP_APBASE@GOTPAGEOFF]
Lloh4:
	ldr	x1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
Lloh5:
	adrp	x8, _PCI_BASE_ADDRESS_MEM_MASK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PCI_BASE_ADDRESS_MEM_MASK@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w9
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	w0, [x9, #16]
	ldr	x8, [x9, #8]
Lloh8:
	adrp	x9, _AGPAPSIZE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AGPAPSIZE@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	add	x1, x9, x8
	ldr	w2, [x19]
	bl	_pci_write_config_word
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	ldr	x9, [x8, #8]
Lloh11:
	adrp	x10, _AGPGARTLO@GOTPAGE
Lloh12:
	ldr	x10, [x10, _AGPGARTLO@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	add	x1, x10, x9
	ldr	w2, [x8, #4]
	bl	_pci_write_config_dword
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	ldr	x8, [x8, #8]
Lloh14:
	adrp	x19, _AGPCTRL@GOTPAGE
Lloh15:
	ldr	x19, [x19, _AGPCTRL@GOTPAGEOFF]
	ldr	x9, [x19]
	add	x1, x9, x8
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	x8, [x20]
	ldr	w0, [x8, #16]
	ldr	x8, [x8, #8]
	ldr	x9, [x19]
	add	x1, x9, x8
	ldr	w8, [sp, #12]
Lloh16:
	adrp	x9, _AGPCTRL_APERENB@GOTPAGE
Lloh17:
	ldr	x9, [x9, _AGPCTRL_APERENB@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh19:
	adrp	x9, _AGPCTRL_GTLBEN@GOTPAGE
Lloh20:
	ldr	x9, [x9, _AGPCTRL_GTLBEN@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_pci_write_config_dword
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_agp_bridge,8,3                 ; @agp_bridge
	.comm	_AGP_APBASE,8,3                 ; @AGP_APBASE
	.comm	_PCI_BASE_ADDRESS_MEM_MASK,4,2  ; @PCI_BASE_ADDRESS_MEM_MASK
	.comm	_AGPAPSIZE,8,3                  ; @AGPAPSIZE
	.comm	_AGPGARTLO,8,3                  ; @AGPGARTLO
	.comm	_AGPCTRL,8,3                    ; @AGPCTRL
	.comm	_AGPCTRL_APERENB,4,2            ; @AGPCTRL_APERENB
	.comm	_AGPCTRL_GTLBEN,4,2             ; @AGPCTRL_GTLBEN
.subsections_via_symbols
