	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function parisc_agp_enable
_parisc_agp_enable:                     ## @parisc_agp_enable
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_parisc_agp_info@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	addq	8(%r12), %rax
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_PCI_AGP_STATUS@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, %rdi
	callq	_readl
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_agp_collect_device_status
	movl	%eax, %ebx
	movq	(%r12), %rsi
	addq	8(%r12), %rsi
	orl	$256, %ebx                      ## imm = 0x100
	movq	_PCI_AGP_COMMAND@GOTPCREL(%rip), %rax
	addq	(%rax), %rsi
	movl	%ebx, %edi
	callq	_writel
	movq	_AGP8X_MODE@GOTPCREL(%rip), %rax
	xorl	%esi, %esi
	andl	(%rax), %r15d
	setne	%sil
	movl	%ebx, %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_agp_device_command             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_parisc_agp_info,16,3           ## @parisc_agp_info
	.comm	_PCI_AGP_STATUS,8,3             ## @PCI_AGP_STATUS
	.comm	_PCI_AGP_COMMAND,8,3            ## @PCI_AGP_COMMAND
	.comm	_AGP8X_MODE,4,2                 ## @AGP8X_MODE
	.no_dead_strip	_parisc_agp_enable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function parisc_agp_enable
_parisc_agp_enable:                     ; @parisc_agp_enable
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x21, _parisc_agp_info@GOTPAGE
Lloh1:
	ldr	x21, [x21, _parisc_agp_info@GOTPAGEOFF]
	ldp	x9, x8, [x21]
Lloh2:
	adrp	x10, _PCI_AGP_STATUS@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PCI_AGP_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x0, x8, x10
	bl	_readl
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_agp_collect_device_status
	orr	w20, w0, #0x100
	ldp	x9, x8, [x21]
Lloh5:
	adrp	x10, _PCI_AGP_COMMAND@GOTPAGE
Lloh6:
	ldr	x10, [x10, _PCI_AGP_COMMAND@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	add	x8, x9, x8
	add	x1, x8, x10
	mov	x0, x20
	bl	_writel
Lloh8:
	adrp	x8, _AGP8X_MODE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AGP8X_MODE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	cset	w1, ne
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_agp_device_command
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_parisc_agp_info,16,3           ; @parisc_agp_info
	.comm	_PCI_AGP_STATUS,8,3             ; @PCI_AGP_STATUS
	.comm	_PCI_AGP_COMMAND,8,3            ; @PCI_AGP_COMMAND
	.comm	_AGP8X_MODE,4,2                 ; @AGP8X_MODE
	.no_dead_strip	_parisc_agp_enable
.subsections_via_symbols
