	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_bo_in_cpu_visible_vram
_amdgpu_bo_in_cpu_visible_vram:         ## @amdgpu_bo_in_cpu_visible_vram
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	24(%rdi), %edi
	callq	_amdgpu_ttm_adev
	movl	(%rax), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shrl	%cl, %edx
	movq	(%rbx), %rcx
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rcx
	jne	LBB0_6
## %bb.1:
	movq	8(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_6
## %bb.2:
	movq	16(%rbx), %rsi
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	%edx, (%rsi)
	jb	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	16(%rsi), %rdi
	subq	8(%rsi), %rcx
	movq	%rdi, %rsi
	jne	LBB0_3
	jmp	LBB0_6
LBB0_4:
	movl	$1, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_TTM_PL_VRAM,8,3                ## @TTM_PL_VRAM
	.no_dead_strip	_amdgpu_bo_in_cpu_visible_vram
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_bo_in_cpu_visible_vram
_amdgpu_bo_in_cpu_visible_vram:         ; @amdgpu_bo_in_cpu_visible_vram
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_amdgpu_ttm_adev
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _TTM_PL_VRAM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTM_PL_VRAM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	w9, [x0]
Lloh3:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	lsr	w9, w9, w10
	ldr	x10, [x19, #16]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10]
	cmp	w11, w9
	b.lo	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x10, #8]
	add	x10, x10, #16
	subs	x8, x8, x11
	b.ne	LBB0_3
LBB0_5:
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w0, #1
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_TTM_PL_VRAM,8,3                ; @TTM_PL_VRAM
	.no_dead_strip	_amdgpu_bo_in_cpu_visible_vram
.subsections_via_symbols
