	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cayman_dma_set_wptr            ## -- Begin function cayman_dma_set_wptr
	.p2align	4, 0x90
_cayman_dma_set_wptr:                   ## @cayman_dma_set_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	(%rsi), %rcx
	movq	_R600_RING_TYPE_DMA_INDEX@GOTPCREL(%rip), %rdx
	movq	_DMA_RB_WPTR@GOTPCREL(%rip), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	_DMA0_REGISTER_OFFSET@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_DMA1_REGISTER_OFFSET@GOTPCREL(%rip), %rcx
LBB0_3:
	movq	(%rcx), %rdi
	addq	(%rax), %rdi
	movl	8(%rsi), %eax
	movzwl	%ax, %esi
	shll	$2, %esi
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_R600_RING_TYPE_DMA_INDEX,8,3   ## @R600_RING_TYPE_DMA_INDEX
	.comm	_DMA_RB_WPTR,8,3                ## @DMA_RB_WPTR
	.comm	_DMA0_REGISTER_OFFSET,8,3       ## @DMA0_REGISTER_OFFSET
	.comm	_DMA1_REGISTER_OFFSET,8,3       ## @DMA1_REGISTER_OFFSET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cayman_dma_set_wptr            ; -- Begin function cayman_dma_set_wptr
	.p2align	2
_cayman_dma_set_wptr:                   ; @cayman_dma_set_wptr
	.cfi_startproc
; %bb.0:
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _R600_RING_TYPE_DMA_INDEX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _DMA_RB_WPTR@GOTPAGE
Lloh4:
	ldr	x10, [x10, _DMA_RB_WPTR@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
Lloh6:
	adrp	x11, _DMA0_REGISTER_OFFSET@GOTPAGE
Lloh7:
	ldr	x11, [x11, _DMA0_REGISTER_OFFSET@GOTPAGEOFF]
Lloh8:
	adrp	x12, _DMA1_REGISTER_OFFSET@GOTPAGE
Lloh9:
	ldr	x12, [x12, _DMA1_REGISTER_OFFSET@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x12, eq
	ldr	x8, [x8]
	add	x0, x8, x10
	ldr	w8, [x1, #8]
	ubfiz	w1, w8, #2, #16
	b	_WREG32
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_R600_RING_TYPE_DMA_INDEX,8,3   ; @R600_RING_TYPE_DMA_INDEX
	.comm	_DMA_RB_WPTR,8,3                ; @DMA_RB_WPTR
	.comm	_DMA0_REGISTER_OFFSET,8,3       ; @DMA0_REGISTER_OFFSET
	.comm	_DMA1_REGISTER_OFFSET,8,3       ; @DMA1_REGISTER_OFFSET
.subsections_via_symbols
