	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v3_0_ring_set_wptr
_sdma_v3_0_ring_set_wptr:               ## @sdma_v3_0_ring_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
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	48(%rdi), %rax
	cmpq	$0, 40(%rdi)
	je	LBB0_1
## %bb.3:
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	16(%rbx), %edi
	callq	_lower_32_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %esi
	movl	%r14d, %edi
	callq	_WRITE_ONCE
	movl	16(%rbx), %edi
	movl	32(%rbx), %ebx
	callq	_lower_32_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %esi
	movl	%ebx, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WDOORBELL32                    ## TAILCALL
LBB0_1:
	cmpq	$0, 24(%rbx)
	je	LBB0_2
## %bb.4:
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %r14d
	movl	16(%rbx), %edi
	callq	_lower_32_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %esi
	movl	%r14d, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WRITE_ONCE                     ## TAILCALL
LBB0_2:
	movq	_mmSDMA0_GFX_RB_WPTR@GOTPCREL(%rip), %rax
	movq	_sdma_offsets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	8(%rbx), %rdx
	movq	(%rcx,%rdx,8), %r14
	addq	(%rax), %r14
	movl	16(%rbx), %edi
	callq	_lower_32_bits
                                        ## kill: def $eax killed $eax def $rax
	leal	(,%rax,4), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_WREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSDMA0_GFX_RB_WPTR,8,3        ## @mmSDMA0_GFX_RB_WPTR
	.comm	_sdma_offsets,8,3               ## @sdma_offsets
	.no_dead_strip	_sdma_v3_0_ring_set_wptr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_v3_0_ring_set_wptr
_sdma_v3_0_ring_set_wptr:               ; @sdma_v3_0_ring_set_wptr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldp	x9, x8, [x0, #40]
	cbz	x9, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w20, [x8, x9, lsl #2]
	ldr	w0, [x19, #16]
	bl	_lower_32_bits
	lsl	w1, w0, #2
	mov	x0, x20
	bl	_WRITE_ONCE
	ldr	w20, [x19, #32]
	ldr	w0, [x19, #16]
	bl	_lower_32_bits
	lsl	w1, w0, #2
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WDOORBELL32
LBB0_2:
	ldr	x9, [x19, #24]
	cbz	x9, LBB0_4
; %bb.3:
	ldr	x8, [x8]
	ldr	x9, [x19]
	ldr	w20, [x8, x9, lsl #2]
	ldr	w0, [x19, #16]
	bl	_lower_32_bits
	lsl	w1, w0, #2
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WRITE_ONCE
LBB0_4:
Lloh0:
	adrp	x8, _mmSDMA0_GFX_RB_WPTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSDMA0_GFX_RB_WPTR@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _sdma_offsets@GOTPAGE
Lloh4:
	ldr	x9, [x9, _sdma_offsets@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x10, [x19, #8]
	ldr	x9, [x9, x10, lsl #3]
	add	x20, x9, x8
	ldr	w0, [x19, #16]
	bl	_lower_32_bits
	lsl	w1, w0, #2
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_WREG32
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSDMA0_GFX_RB_WPTR,8,3        ; @mmSDMA0_GFX_RB_WPTR
	.comm	_sdma_offsets,8,3               ; @sdma_offsets
	.no_dead_strip	_sdma_v3_0_ring_set_wptr
.subsections_via_symbols
