	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs600_gart_get_page_entry      ## -- Begin function rs600_gart_get_page_entry
	.p2align	4, 0x90
_rs600_gart_get_page_entry:             ## @rs600_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
	movl	%edi, %eax
	andl	$-4096, %eax                    ## imm = 0xF000
	movq	_R600_PTE_SYSTEM@GOTPCREL(%rip), %rcx
	movq	_RADEON_GART_PAGE_VALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%esi, %edx
	je	LBB0_2
## %bb.1:
	movq	_R600_PTE_VALID@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	orl	(%rcx), %eax
	movq	_RADEON_GART_PAGE_READ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	je	LBB0_4
## %bb.3:
	movq	_R600_PTE_READABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_4:
	orl	%edx, %eax
	movq	_RADEON_GART_PAGE_WRITE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	andl	%esi, %edx
	je	LBB0_6
## %bb.5:
	movq	_R600_PTE_WRITEABLE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_6:
	orl	%edx, %ecx
	orl	%ecx, %eax
	movq	_RADEON_GART_PAGE_SNOOP@GOTPCREL(%rip), %rcx
	andl	(%rcx), %esi
	je	LBB0_8
## %bb.7:
	movq	_R600_PTE_SNOOPED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
LBB0_8:
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_PTE_SYSTEM,4,2            ## @R600_PTE_SYSTEM
	.comm	_RADEON_GART_PAGE_VALID,4,2     ## @RADEON_GART_PAGE_VALID
	.comm	_R600_PTE_VALID,4,2             ## @R600_PTE_VALID
	.comm	_RADEON_GART_PAGE_READ,4,2      ## @RADEON_GART_PAGE_READ
	.comm	_R600_PTE_READABLE,4,2          ## @R600_PTE_READABLE
	.comm	_RADEON_GART_PAGE_WRITE,4,2     ## @RADEON_GART_PAGE_WRITE
	.comm	_R600_PTE_WRITEABLE,4,2         ## @R600_PTE_WRITEABLE
	.comm	_RADEON_GART_PAGE_SNOOP,4,2     ## @RADEON_GART_PAGE_SNOOP
	.comm	_R600_PTE_SNOOPED,4,2           ## @R600_PTE_SNOOPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rs600_gart_get_page_entry      ; -- Begin function rs600_gart_get_page_entry
	.p2align	2
_rs600_gart_get_page_entry:             ; @rs600_gart_get_page_entry
	.cfi_startproc
; %bb.0:
	and	w8, w0, #0xfffff000
Lloh0:
	adrp	x9, _R600_PTE_SYSTEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R600_PTE_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
Lloh3:
	adrp	x10, _RADEON_GART_PAGE_VALID@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RADEON_GART_PAGE_VALID@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh5:
	ldr	w9, [x10]
Lloh6:
	adrp	x10, _R600_PTE_VALID@GOTPAGE
Lloh7:
	ldr	x10, [x10, _R600_PTE_VALID@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _RADEON_GART_PAGE_READ@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RADEON_GART_PAGE_READ@GOTPAGEOFF]
Lloh11:
	adrp	x10, _R600_PTE_READABLE@GOTPAGE
Lloh12:
	ldr	x10, [x10, _R600_PTE_READABLE@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
Lloh15:
	adrp	x10, _RADEON_GART_PAGE_WRITE@GOTPAGE
Lloh16:
	ldr	x10, [x10, _RADEON_GART_PAGE_WRITE@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh17:
	ldr	w9, [x10]
Lloh18:
	adrp	x10, _R600_PTE_WRITEABLE@GOTPAGE
Lloh19:
	ldr	x10, [x10, _R600_PTE_WRITEABLE@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w8, w8, w9
Lloh21:
	adrp	x9, _RADEON_GART_PAGE_SNOOP@GOTPAGE
Lloh22:
	ldr	x9, [x9, _RADEON_GART_PAGE_SNOOP@GOTPAGEOFF]
Lloh23:
	adrp	x10, _R600_PTE_SNOOPED@GOTPAGE
Lloh24:
	ldr	x10, [x10, _R600_PTE_SNOOPED@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
Lloh26:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w0, w8, w9
	ret
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh25
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_PTE_SYSTEM,4,2            ; @R600_PTE_SYSTEM
	.comm	_RADEON_GART_PAGE_VALID,4,2     ; @RADEON_GART_PAGE_VALID
	.comm	_R600_PTE_VALID,4,2             ; @R600_PTE_VALID
	.comm	_RADEON_GART_PAGE_READ,4,2      ; @RADEON_GART_PAGE_READ
	.comm	_R600_PTE_READABLE,4,2          ; @R600_PTE_READABLE
	.comm	_RADEON_GART_PAGE_WRITE,4,2     ; @RADEON_GART_PAGE_WRITE
	.comm	_R600_PTE_WRITEABLE,4,2         ; @R600_PTE_WRITEABLE
	.comm	_RADEON_GART_PAGE_SNOOP,4,2     ; @RADEON_GART_PAGE_SNOOP
	.comm	_R600_PTE_SNOOPED,4,2           ; @R600_PTE_SNOOPED
.subsections_via_symbols
