	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ali_configure
_ali_configure:                         ## @ali_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_agp_bridge@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movl	24(%rax), %edi
	callq	_A_SIZE_32
	movq	%rax, %rbx
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	movq	_ALI_ATTBASE@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	leaq	-36(%rbp), %r14
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	$4080, %eax                     ## imm = 0xFF0
	andl	-36(%rbp), %eax
	movq	(%r15), %rcx
	movl	$-4096, %esi                    ## imm = 0xF000
	andl	(%rcx), %esi
	orl	%eax, %esi
	movl	(%rbx), %edx
	andl	$15, %edx
	orl	%esi, %edx
	movl	%edx, -36(%rbp)
	movq	16(%rcx), %rdi
	movl	(%r12), %esi
	callq	_pci_write_config_dword
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	movq	_ALI_TLBCTRL@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	movl	(%rbx), %esi
	movl	$-256, %edx
	andl	-36(%rbp), %edx
	orl	$16, %edx
	callq	_pci_write_config_dword
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	movq	_AGP_APBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movq	_PCI_BASE_ADDRESS_MEM_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	-36(%rbp), %eax
	movq	(%r15), %rcx
	movl	%eax, 4(%rcx)
	movq	16(%rcx), %rdi
	movl	(%rbx), %esi
	movq	%r14, %rdx
	callq	_pci_read_config_dword
	movl	$-129, %edx
	andl	-36(%rbp), %edx
	movl	%edx, -36(%rbp)
	movq	(%r15), %rax
	movq	16(%rax), %rdi
	movl	(%rbx), %esi
	callq	_pci_write_config_dword
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_agp_bridge,8,3                 ## @agp_bridge
	.comm	_ALI_ATTBASE,4,2                ## @ALI_ATTBASE
	.comm	_ALI_TLBCTRL,4,2                ## @ALI_TLBCTRL
	.comm	_AGP_APBASE,4,2                 ## @AGP_APBASE
	.comm	_PCI_BASE_ADDRESS_MEM_MASK,4,2  ## @PCI_BASE_ADDRESS_MEM_MASK
	.comm	_ALI_M1541,8,3                  ## @ALI_M1541
	.no_dead_strip	_ali_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ali_configure
_ali_configure:                         ; @ali_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x20, _agp_bridge@GOTPAGE
Lloh1:
	ldr	x20, [x20, _agp_bridge@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	w0, [x8, #24]
	bl	_A_SIZE_32
	mov	x19, x0
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
Lloh2:
	adrp	x21, _ALI_ATTBASE@GOTPAGE
Lloh3:
	ldr	x21, [x21, _ALI_ATTBASE@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	ldr	x9, [x20]
	ldr	w2, [x9]
	bfxil	w2, w8, #0, #12
	ldr	w8, [x19]
	bfxil	w2, w8, #0, #4
	str	w2, [sp, #12]
	ldr	x0, [x9, #16]
	ldr	w1, [x21]
	bl	_pci_write_config_dword
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
Lloh4:
	adrp	x19, _ALI_TLBCTRL@GOTPAGE
Lloh5:
	ldr	x19, [x19, _ALI_TLBCTRL@GOTPAGEOFF]
	ldr	w1, [x19]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	ldr	w1, [x19]
	ldr	w8, [sp, #12]
	and	w8, w8, #0xffffff00
	orr	w2, w8, #0x10
	bl	_pci_write_config_dword
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
Lloh6:
	adrp	x8, _AGP_APBASE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AGP_APBASE@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _PCI_BASE_ADDRESS_MEM_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PCI_BASE_ADDRESS_MEM_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w8, w9, w8
	ldr	x9, [x20]
	str	w8, [x9, #4]
	ldr	x0, [x9, #16]
	ldr	w1, [x19]
	add	x2, sp, #12
	bl	_pci_read_config_dword
	ldr	w8, [sp, #12]
	and	w2, w8, #0xffffff7f
	str	w2, [sp, #12]
	ldr	x8, [x20]
	ldr	x0, [x8, #16]
	ldr	w1, [x19]
	bl	_pci_write_config_dword
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_agp_bridge,8,3                 ; @agp_bridge
	.comm	_ALI_ATTBASE,4,2                ; @ALI_ATTBASE
	.comm	_ALI_TLBCTRL,4,2                ; @ALI_TLBCTRL
	.comm	_AGP_APBASE,4,2                 ; @AGP_APBASE
	.comm	_PCI_BASE_ADDRESS_MEM_MASK,4,2  ; @PCI_BASE_ADDRESS_MEM_MASK
	.comm	_ALI_M1541,8,3                  ; @ALI_M1541
	.no_dead_strip	_ali_configure
.subsections_via_symbols
