	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_mem_reg_is_pci             ## -- Begin function ttm_mem_reg_is_pci
	.p2align	4, 0x90
_ttm_mem_reg_is_pci:                    ## @ttm_mem_reg_is_pci
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rax
	movq	(%rsi), %rdx
	movl	(%rax,%rdx,4), %ecx
	movq	_TTM_MEMTYPE_FLAG_FIXED@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_1
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_5
LBB0_1:
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rdi
	xorl	%eax, %eax
	cmpq	(%rdi), %rdx
	je	LBB0_5
## %bb.2:
	movq	_TTM_MEMTYPE_FLAG_CMA@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_5
## %bb.3:
	movq	_TTM_PL_FLAG_CACHED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, 8(%rsi)
	je	LBB0_4
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_MEMTYPE_FLAG_FIXED,4,2     ## @TTM_MEMTYPE_FLAG_FIXED
	.comm	_TTM_PL_SYSTEM,8,3              ## @TTM_PL_SYSTEM
	.comm	_TTM_MEMTYPE_FLAG_CMA,4,2       ## @TTM_MEMTYPE_FLAG_CMA
	.comm	_TTM_PL_FLAG_CACHED,4,2         ## @TTM_PL_FLAG_CACHED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ttm_mem_reg_is_pci             ; -- Begin function ttm_mem_reg_is_pci
	.p2align	2
_ttm_mem_reg_is_pci:                    ; @ttm_mem_reg_is_pci
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
	ldr	x9, [x1]
	ldr	w8, [x8, x9, lsl #2]
Lloh0:
	adrp	x10, _TTM_MEMTYPE_FLAG_FIXED@GOTPAGE
Lloh1:
	ldr	x10, [x10, _TTM_MEMTYPE_FLAG_FIXED@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	tst	w10, w8
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #1
	ret
LBB0_2:
Lloh3:
	adrp	x10, _TTM_PL_SYSTEM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TTM_PL_SYSTEM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_4
; %bb.3:
	mov	w0, #0
	ret
LBB0_4:
Lloh6:
	adrp	x9, _TTM_MEMTYPE_FLAG_CMA@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TTM_MEMTYPE_FLAG_CMA@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	mov	w0, #0
	ret
LBB0_6:
	ldr	w8, [x1, #8]
Lloh9:
	adrp	x9, _TTM_PL_FLAG_CACHED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TTM_PL_FLAG_CACHED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.7:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_MEMTYPE_FLAG_FIXED,4,2     ; @TTM_MEMTYPE_FLAG_FIXED
	.comm	_TTM_PL_SYSTEM,8,3              ; @TTM_PL_SYSTEM
	.comm	_TTM_MEMTYPE_FLAG_CMA,4,2       ; @TTM_MEMTYPE_FLAG_CMA
	.comm	_TTM_PL_FLAG_CACHED,4,2         ; @TTM_PL_FLAG_CACHED
.subsections_via_symbols
