	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_ttm_tt_is_readonly      ## -- Begin function radeon_ttm_tt_is_readonly
	.p2align	4, 0x90
_radeon_ttm_tt_is_readonly:             ## @radeon_ttm_tt_is_readonly
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	callq	_radeon_ttm_tt_to_gtt
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rcx
	movq	_RADEON_GEM_USERPTR_READONLY@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%eax, %eax
	testl	%edx, (%rcx)
	setne	%al
	popq	%rbp
	retq
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_GEM_USERPTR_READONLY,4,2 ## @RADEON_GEM_USERPTR_READONLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_ttm_tt_is_readonly      ; -- Begin function radeon_ttm_tt_is_readonly
	.p2align	2
_radeon_ttm_tt_is_readonly:             ; @radeon_ttm_tt_is_readonly
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	bl	_radeon_ttm_tt_to_gtt
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RADEON_GEM_USERPTR_READONLY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_GEM_USERPTR_READONLY@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, ne
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_GEM_USERPTR_READONLY,4,2 ; @RADEON_GEM_USERPTR_READONLY
.subsections_via_symbols
