	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function domain_to_ttm
_domain_to_ttm:                         ## @domain_to_ttm
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %eax
	movq	_NOUVEAU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%esi, %ecx
	je	LBB0_2
## %bb.1:
	movq	_TTM_PL_FLAG_VRAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_2:
	movq	_NOUVEAU_GEM_DOMAIN_GART@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	je	LBB0_4
## %bb.3:
	movq	_TTM_PL_FLAG_TT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_4:
	orl	%ecx, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NOUVEAU_GEM_DOMAIN_VRAM,4,2    ## @NOUVEAU_GEM_DOMAIN_VRAM
	.comm	_TTM_PL_FLAG_VRAM,4,2           ## @TTM_PL_FLAG_VRAM
	.comm	_NOUVEAU_GEM_DOMAIN_GART,4,2    ## @NOUVEAU_GEM_DOMAIN_GART
	.comm	_TTM_PL_FLAG_TT,4,2             ## @TTM_PL_FLAG_TT
	.no_dead_strip	_domain_to_ttm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function domain_to_ttm
_domain_to_ttm:                         ; @domain_to_ttm
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NOUVEAU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NOUVEAU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _TTM_PL_FLAG_VRAM@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TTM_PL_FLAG_VRAM@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w8, w1
	csel	w8, wzr, w9, eq
Lloh6:
	adrp	x9, _NOUVEAU_GEM_DOMAIN_GART@GOTPAGE
Lloh7:
	ldr	x9, [x9, _NOUVEAU_GEM_DOMAIN_GART@GOTPAGEOFF]
Lloh8:
	adrp	x10, _TTM_PL_FLAG_TT@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TTM_PL_FLAG_TT@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
Lloh11:
	ldr	w10, [x10]
	tst	w9, w1
	csel	w9, wzr, w10, eq
	orr	w0, w9, w8
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NOUVEAU_GEM_DOMAIN_VRAM,4,2    ; @NOUVEAU_GEM_DOMAIN_VRAM
	.comm	_TTM_PL_FLAG_VRAM,4,2           ; @TTM_PL_FLAG_VRAM
	.comm	_NOUVEAU_GEM_DOMAIN_GART,4,2    ; @NOUVEAU_GEM_DOMAIN_GART
	.comm	_TTM_PL_FLAG_TT,4,2             ; @TTM_PL_FLAG_TT
	.no_dead_strip	_domain_to_ttm
.subsections_via_symbols
