	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv370_pcie_gart_get_page_entry ## -- Begin function rv370_pcie_gart_get_page_entry
	.p2align	4, 0x90
_rv370_pcie_gart_get_page_entry:        ## @rv370_pcie_gart_get_page_entry
	.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
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_lower_32_bits
	movl	%eax, %r15d
	sarl	$8, %r15d
	movl	%ebx, %edi
	callq	_upper_32_bits
	shll	$24, %eax
	movq	_RADEON_GART_PAGE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%r14d, %edx
	je	LBB0_2
## %bb.1:
	movq	_R300_PTE_READABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_2:
	orl	%r15d, %eax
	movq	_RADEON_GART_PAGE_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r14d, %ecx
	je	LBB0_4
## %bb.3:
	movq	_R300_PTE_WRITEABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%edx, %eax
	movq	_RADEON_GART_PAGE_SNOOP@GOTPCREL(%rip), %rsi
	xorl	%edx, %edx
	testl	%r14d, (%rsi)
	jne	LBB0_6
## %bb.5:
	movq	_R300_PTE_UNSNOOPED@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%edx, %ecx
	orl	%ecx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_GART_PAGE_READ,4,2      ## @RADEON_GART_PAGE_READ
	.comm	_R300_PTE_READABLE,4,2          ## @R300_PTE_READABLE
	.comm	_RADEON_GART_PAGE_WRITE,4,2     ## @RADEON_GART_PAGE_WRITE
	.comm	_R300_PTE_WRITEABLE,4,2         ## @R300_PTE_WRITEABLE
	.comm	_RADEON_GART_PAGE_SNOOP,4,2     ## @RADEON_GART_PAGE_SNOOP
	.comm	_R300_PTE_UNSNOOPED,4,2         ## @R300_PTE_UNSNOOPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv370_pcie_gart_get_page_entry ; -- Begin function rv370_pcie_gart_get_page_entry
	.p2align	2
_rv370_pcie_gart_get_page_entry:        ; @rv370_pcie_gart_get_page_entry
	.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
	bl	_lower_32_bits
	mov	x21, x0
	mov	x0, x20
	bl	_upper_32_bits
	lsl	w8, w0, #24
	orr	w8, w8, w21, asr #8
Lloh0:
	adrp	x9, _RADEON_GART_PAGE_READ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_GART_PAGE_READ@GOTPAGEOFF]
Lloh2:
	adrp	x10, _R300_PTE_READABLE@GOTPAGE
Lloh3:
	ldr	x10, [x10, _R300_PTE_READABLE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
Lloh6:
	adrp	x10, _RADEON_GART_PAGE_WRITE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RADEON_GART_PAGE_WRITE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh8:
	ldr	w9, [x10]
Lloh9:
	adrp	x10, _R300_PTE_WRITEABLE@GOTPAGE
Lloh10:
	ldr	x10, [x10, _R300_PTE_WRITEABLE@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh12:
	adrp	x9, _RADEON_GART_PAGE_SNOOP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RADEON_GART_PAGE_SNOOP@GOTPAGEOFF]
Lloh14:
	adrp	x10, _R300_PTE_UNSNOOPED@GOTPAGE
Lloh15:
	ldr	x10, [x10, _R300_PTE_UNSNOOPED@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w10, [x10]
	tst	w9, w19
	csel	w9, w10, wzr, eq
	orr	w0, w8, w9
	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
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh16
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_GART_PAGE_READ,4,2      ; @RADEON_GART_PAGE_READ
	.comm	_R300_PTE_READABLE,4,2          ; @R300_PTE_READABLE
	.comm	_RADEON_GART_PAGE_WRITE,4,2     ; @RADEON_GART_PAGE_WRITE
	.comm	_R300_PTE_WRITEABLE,4,2         ; @R300_PTE_WRITEABLE
	.comm	_RADEON_GART_PAGE_SNOOP,4,2     ; @RADEON_GART_PAGE_SNOOP
	.comm	_R300_PTE_UNSNOOPED,4,2         ; @R300_PTE_UNSNOOPED
.subsections_via_symbols
