	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ttm_tt_pde_flags        ## -- Begin function amdgpu_ttm_tt_pde_flags
	.p2align	4, 0x90
_amdgpu_ttm_tt_pde_flags:               ## @amdgpu_ttm_tt_pde_flags
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	(%rsi), %rcx
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:
	movq	_AMDGPU_PTE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	movq	_TTM_PL_TT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.5:
	movq	_AMDGPU_PTE_SYSTEM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%rdi), %rcx
	movq	_tt_cached@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_7
## %bb.6:
	movq	_AMDGPU_PTE_SNOOPED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
LBB0_7:
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ## @TTM_PL_SYSTEM
	.comm	_AMDGPU_PTE_VALID,4,2           ## @AMDGPU_PTE_VALID
	.comm	_TTM_PL_TT,8,3                  ## @TTM_PL_TT
	.comm	_AMDGPU_PTE_SYSTEM,4,2          ## @AMDGPU_PTE_SYSTEM
	.comm	_tt_cached,8,3                  ## @tt_cached
	.comm	_AMDGPU_PTE_SNOOPED,4,2         ## @AMDGPU_PTE_SNOOPED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_ttm_tt_pde_flags        ; -- Begin function amdgpu_ttm_tt_pde_flags
	.p2align	2
_amdgpu_ttm_tt_pde_flags:               ; @amdgpu_ttm_tt_pde_flags
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_5
; %bb.1:
	mov	x8, x0
	ldr	x9, [x1]
Lloh0:
	adrp	x10, _TTM_PL_SYSTEM@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TTM_PL_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
Lloh3:
	adrp	x11, _AMDGPU_PTE_VALID@GOTPAGE
Lloh4:
	ldr	x11, [x11, _AMDGPU_PTE_VALID@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	cmp	x9, x10
	csel	w0, wzr, w11, eq
Lloh6:
	adrp	x10, _TTM_PL_TT@GOTPAGE
Lloh7:
	ldr	x10, [x10, _TTM_PL_TT@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.2:
Lloh9:
	adrp	x9, _AMDGPU_PTE_SYSTEM@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AMDGPU_PTE_SYSTEM@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w0
	ldr	x8, [x8]
Lloh12:
	adrp	x9, _tt_cached@GOTPAGE
Lloh13:
	ldr	x9, [x9, _tt_cached@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _AMDGPU_PTE_SNOOPED@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AMDGPU_PTE_SNOOPED@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w0, w8, w0
LBB0_4:
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ; @TTM_PL_SYSTEM
	.comm	_AMDGPU_PTE_VALID,4,2           ; @AMDGPU_PTE_VALID
	.comm	_TTM_PL_TT,8,3                  ; @TTM_PL_TT
	.comm	_AMDGPU_PTE_SYSTEM,4,2          ; @AMDGPU_PTE_SYSTEM
	.comm	_tt_cached,8,3                  ; @tt_cached
	.comm	_AMDGPU_PTE_SNOOPED,4,2         ; @AMDGPU_PTE_SNOOPED
.subsections_via_symbols
