	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_gfx_get_rptr               ## -- Begin function cik_gfx_get_rptr
	.p2align	4, 0x90
_cik_gfx_get_rptr:                      ## @cik_gfx_get_rptr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movl	(%rsi), %eax
	leal	3(%rax), %ecx
	testl	%eax, %eax
	cmovnsl	%eax, %ecx
	movq	(%rdi), %rax
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	movl	(%rax,%rcx,4), %eax
	popq	%rbp
	retq
LBB0_2:
	movq	_CP_RB0_RPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbp
	jmp	_RREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CP_RB0_RPTR,4,2                ## @CP_RB0_RPTR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cik_gfx_get_rptr               ; -- Begin function cik_gfx_get_rptr
	.p2align	2
_cik_gfx_get_rptr:                      ; @cik_gfx_get_rptr
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0]
	ldr	w9, [x1]
	add	w10, w9, #3
	cmp	w9, #0
	csel	w9, w10, w9, lt
	asr	w9, w9, #2
	ldr	w0, [x8, w9, sxtw #2]
	ret
LBB0_2:
Lloh0:
	adrp	x8, _CP_RB0_RPTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CP_RB0_RPTR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	b	_RREG32
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CP_RB0_RPTR,4,2                ; @CP_RB0_RPTR
.subsections_via_symbols
