	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_read_ring_rptr          ## -- Begin function radeon_read_ring_rptr
	.p2align	4, 0x90
_radeon_read_ring_rptr:                 ## @radeon_read_ring_rptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdi, %rax
	movq	_RADEON_IS_AGP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	8(%rdi), %rdi
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	popq	%rbp
	jmp	_DRM_READ32                     ## TAILCALL
LBB0_2:
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	andq	$-4, %rcx
	movl	(%rax,%rcx), %edi
	popq	%rbp
	jmp	_le32_to_cpu                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_IS_AGP,4,2              ## @RADEON_IS_AGP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_radeon_read_ring_rptr          ; -- Begin function radeon_read_ring_rptr
	.p2align	2
_radeon_read_ring_rptr:                 ; @radeon_read_ring_rptr
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RADEON_IS_AGP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_IS_AGP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	ldr	x0, [x0, #8]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
                                        ; kill: def $w1 killed $w1 killed $x1
	b	_DRM_READ32
LBB0_2:
	ldr	x8, [x0]
	sxtw	x9, w1
	and	x9, x9, #0xfffffffffffffffc
	ldr	w0, [x8, x9]
	b	_le32_to_cpu
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_IS_AGP,4,2              ; @RADEON_IS_AGP
.subsections_via_symbols
