	.file	"extr_ttm_bo.c_ttm_bo_select_caching.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ttm_bo_select_caching, @function
ttm_bo_select_caching:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR TTM_PL_MASK_CACHING[rip]
	mov	ecx, eax
	not	eax
	and	ecx, edx
	and	eax, edx
	and	esi, ecx
	je	.L2
	or	eax, esi
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edx, DWORD PTR [rdi]
	test	edx, ecx
	je	.L4
.L10:
	or	eax, edx
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edx, DWORD PTR TTM_PL_FLAG_CACHED[rip]
	test	edx, ecx
	jne	.L10
	mov	edx, DWORD PTR TTM_PL_FLAG_WC[rip]
	test	edx, ecx
	jne	.L10
	mov	edx, DWORD PTR TTM_PL_FLAG_UNCACHED[rip]
	mov	esi, eax
	or	esi, edx
	test	edx, ecx
	cmovne	eax, esi
	ret
	.cfi_endproc
.LFE0:
	.size	ttm_bo_select_caching, .-ttm_bo_select_caching
	.comm	TTM_PL_MASK_CACHING,4,4
	.comm	TTM_PL_FLAG_WC,4,4
	.comm	TTM_PL_FLAG_UNCACHED,4,4
	.comm	TTM_PL_FLAG_CACHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_ttm_bo.c_ttm_bo_select_caching.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ttm_bo_select_caching, %function
ttm_bo_select_caching:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	@ link register save eliminated.
	ldr	r3, .L12
	mov	ip, r0
	ldr	r0, [r3]
	and	r3, r0, r2
	ands	r1, r3, r1
	bic	r0, r2, r0
	beq	.L2
	orr	r0, r0, r1
	bx	lr
.L2:
	ldr	r2, [ip]
	tst	r2, r3
	beq	.L4
.L10:
	orr	r0, r0, r2
	bx	lr
.L4:
	ldr	r2, .L12+4
	ldr	r2, [r2]
	tst	r2, r3
	bne	.L10
	ldr	r2, .L12+8
	ldr	r2, [r2]
	tst	r2, r3
	bne	.L10
	ldr	r2, .L12+12
	ldr	r2, [r2]
	tst	r2, r3
	bxeq	lr
	b	.L10
.L13:
	.align	2
.L12:
	.word	TTM_PL_MASK_CACHING
	.word	TTM_PL_FLAG_CACHED
	.word	TTM_PL_FLAG_WC
	.word	TTM_PL_FLAG_UNCACHED
	.size	ttm_bo_select_caching, .-ttm_bo_select_caching
	.comm	TTM_PL_MASK_CACHING,4,4
	.comm	TTM_PL_FLAG_WC,4,4
	.comm	TTM_PL_FLAG_UNCACHED,4,4
	.comm	TTM_PL_FLAG_CACHED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
