	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function si_dma_ring_get_wptr
_si_dma_ring_get_wptr:                  ## @si_dma_ring_get_wptr
	.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
	xorl	%ecx, %ecx
	cmpq	%rdi, (%rax)
	setne	%cl
	movq	_DMA_RB_WPTR@GOTPCREL(%rip), %rax
	movq	_sdma_offsets@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rdx,%rcx,8), %rdi
	addq	(%rax), %rdi
	callq	_RREG32
	shrl	$2, %eax
	movzwl	%ax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_RB_WPTR,8,3                ## @DMA_RB_WPTR
	.comm	_sdma_offsets,8,3               ## @sdma_offsets
	.no_dead_strip	_si_dma_ring_get_wptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function si_dma_ring_get_wptr
_si_dma_ring_get_wptr:                  ; @si_dma_ring_get_wptr
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w8, ne
Lloh0:
	adrp	x9, _DMA_RB_WPTR@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DMA_RB_WPTR@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _sdma_offsets@GOTPAGE
Lloh4:
	ldr	x10, [x10, _sdma_offsets@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	x8, [x10, w8, uxtw #3]
	add	x0, x8, x9
	bl	_RREG32
	ubfx	w0, w0, #2, #16
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_RB_WPTR,8,3                ; @DMA_RB_WPTR
	.comm	_sdma_offsets,8,3               ; @sdma_offsets
	.no_dead_strip	_si_dma_ring_get_wptr
.subsections_via_symbols
