	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amdgpu_mem_visible
_amdgpu_mem_visible:                    ## @amdgpu_mem_visible
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rsi), %rcx
	movq	_TTM_PL_SYSTEM@GOTPCREL(%rip), %rdx
	movl	$1, %eax
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.1:
	movq	_TTM_PL_TT@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_5
## %bb.2:
	movq	_TTM_PL_VRAM@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_5
## %bb.3:
	movq	16(%rsi), %rcx
	movl	(%rcx), %edx
	cmpl	8(%rsi), %edx
	jne	LBB0_5
## %bb.4:
	addl	4(%rcx), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %edx
	xorl	%eax, %eax
	cmpl	(%rdi), %edx
	setle	%al
LBB0_5:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ## @TTM_PL_SYSTEM
	.comm	_TTM_PL_TT,8,3                  ## @TTM_PL_TT
	.comm	_TTM_PL_VRAM,8,3                ## @TTM_PL_VRAM
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_amdgpu_mem_visible
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amdgpu_mem_visible
_amdgpu_mem_visible:                    ; @amdgpu_mem_visible
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _TTM_PL_SYSTEM@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTM_PL_SYSTEM@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _TTM_PL_TT@GOTPAGE
Lloh4:
	ldr	x10, [x10, _TTM_PL_TT@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #1
	ret
LBB0_2:
Lloh6:
	adrp	x9, _TTM_PL_VRAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TTM_PL_VRAM@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
	ldr	x9, [x1, #16]
	ldr	w8, [x9]
	ldr	w10, [x1, #8]
	cmp	w8, w10
	b.ne	LBB0_5
; %bb.4:
	ldr	w9, [x9, #4]
Lloh9:
	adrp	x10, _PAGE_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PAGE_SHIFT@GOTPAGEOFF]
	add	w8, w9, w8
Lloh11:
	ldr	w9, [x10]
	lsl	w8, w8, w9
	ldr	w9, [x0]
	cmp	w8, w9
	cset	w0, le
	ret
LBB0_5:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_SYSTEM,8,3              ; @TTM_PL_SYSTEM
	.comm	_TTM_PL_TT,8,3                  ; @TTM_PL_TT
	.comm	_TTM_PL_VRAM,8,3                ; @TTM_PL_VRAM
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_amdgpu_mem_visible
.subsections_via_symbols
