	.file	"extr_amdgpu_object.h_amdgpu_bo_in_cpu_visible_vram.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	amdgpu_bo_in_cpu_visible_vram, @function
amdgpu_bo_in_cpu_visible_vram:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	mov	edi, DWORD PTR 24[rdi]
	call	amdgpu_ttm_adev@PLT
	mov	rsi, QWORD PTR TTM_PL_VRAM[rip]
	xor	r8d, r8d
	cmp	QWORD PTR [rbx], rsi
	jne	.L1
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	je	.L1
	mov	ecx, DWORD PTR PAGE_SHIFT[rip]
	mov	eax, DWORD PTR [rax]
	shr	eax, cl
	mov	ecx, eax
	mov	rax, QWORD PTR 16[rbx]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	sub	rdx, QWORD PTR 8[rax]
	add	rax, 16
	test	rdx, rdx
	je	.L10
.L3:
	cmp	DWORD PTR [rax], ecx
	jnb	.L11
	mov	r8d, 1
.L1:
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	xor	r8d, r8d
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	amdgpu_bo_in_cpu_visible_vram, .-amdgpu_bo_in_cpu_visible_vram
	.comm	TTM_PL_VRAM,8,8
	.comm	PAGE_SHIFT,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_amdgpu_object.h_amdgpu_bo_in_cpu_visible_vram.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	amdgpu_bo_in_cpu_visible_vram, %function
amdgpu_bo_in_cpu_visible_vram:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, [r0, #12]
	bl	amdgpu_ttm_adev
	ldr	r3, .L11
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L4
	ldr	r2, [r4, #4]
	cmp	r2, #0
	beq	.L4
	ldr	r1, .L11+4
	ldr	r0, [r0]
	ldr	r3, [r4, #8]
	ldr	r1, [r1]
	add	r3, r3, #8
	lsr	r0, r0, r1
	b	.L3
.L10:
	ldr	r1, [r3, #-4]
	add	r3, r3, #8
	subs	r2, r2, r1
	beq	.L4
.L3:
	ldr	r1, [r3, #-8]
	cmp	r1, r0
	bcs	.L10
	mov	r0, #1
	pop	{r4, pc}
.L4:
	mov	r0, #0
	pop	{r4, pc}
.L12:
	.align	2
.L11:
	.word	TTM_PL_VRAM
	.word	PAGE_SHIFT
	.size	amdgpu_bo_in_cpu_visible_vram, .-amdgpu_bo_in_cpu_visible_vram
	.comm	TTM_PL_VRAM,4,4
	.comm	PAGE_SHIFT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
