	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_select_caching
_ttm_bo_select_caching:                 ## @ttm_bo_select_caching
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TTM_PL_MASK_CACHING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %ecx
	andl	%edx, %ecx
	andl	%ecx, %esi
	jne	LBB0_5
## %bb.1:
	movl	(%rdi), %esi
	testl	%ecx, %esi
	jne	LBB0_5
## %bb.2:
	movq	_TTM_PL_FLAG_CACHED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%ecx, %esi
	jne	LBB0_5
## %bb.3:
	movq	_TTM_PL_FLAG_WC@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	testl	%ecx, %esi
	jne	LBB0_5
## %bb.4:
	movq	_TTM_PL_FLAG_UNCACHED@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	andl	%esi, %ecx
	cmovnel	%esi, %ecx
	movl	%ecx, %esi
LBB0_5:
	notl	%eax
	andl	%edx, %eax
	orl	%esi, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_MASK_CACHING,4,2        ## @TTM_PL_MASK_CACHING
	.comm	_TTM_PL_FLAG_CACHED,4,2         ## @TTM_PL_FLAG_CACHED
	.comm	_TTM_PL_FLAG_WC,4,2             ## @TTM_PL_FLAG_WC
	.comm	_TTM_PL_FLAG_UNCACHED,4,2       ## @TTM_PL_FLAG_UNCACHED
	.no_dead_strip	_ttm_bo_select_caching
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_select_caching
_ttm_bo_select_caching:                 ; @ttm_bo_select_caching
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TTM_PL_MASK_CACHING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TTM_PL_MASK_CACHING@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w10, w8, w2
	ands	w9, w10, w1
	b.ne	LBB0_5
; %bb.1:
	ldr	w9, [x0]
	tst	w9, w10
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x9, _TTM_PL_FLAG_CACHED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _TTM_PL_FLAG_CACHED@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w10
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, _TTM_PL_FLAG_WC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TTM_PL_FLAG_WC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w10
	b.ne	LBB0_5
; %bb.4:
Lloh9:
	adrp	x9, _TTM_PL_FLAG_UNCACHED@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TTM_PL_FLAG_UNCACHED@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w10
	csel	w9, wzr, w9, eq
LBB0_5:
	bic	w8, w2, w8
	orr	w0, w9, w8
	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_PL_MASK_CACHING,4,2        ; @TTM_PL_MASK_CACHING
	.comm	_TTM_PL_FLAG_CACHED,4,2         ; @TTM_PL_FLAG_CACHED
	.comm	_TTM_PL_FLAG_WC,4,2             ; @TTM_PL_FLAG_WC
	.comm	_TTM_PL_FLAG_UNCACHED,4,2       ; @TTM_PL_FLAG_UNCACHED
	.no_dead_strip	_ttm_bo_select_caching
.subsections_via_symbols
