	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_ring_set_wptr_gfx
_gfx_v9_0_ring_set_wptr_gfx:            ## @gfx_v9_0_ring_set_wptr_gfx
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	24(%rbx), %rax
	movq	(%rbx), %rdi
	shlq	$2, %rdi
	addq	(%rax), %rdi
	movl	8(%rbx), %esi
	callq	_atomic64_set
	movl	8(%rbx), %esi
	movl	12(%rbx), %edi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WDOORBELL64                    ## TAILCALL
LBB0_2:
	movq	_GC@GOTPCREL(%rip), %r12
	movl	(%r12), %r14d
	movq	_mmCP_RB0_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_lower_32_bits
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_WREG32_SOC15
	movl	(%r12), %r14d
	movq	_mmCP_RB0_WPTR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	8(%rbx), %edi
	callq	_upper_32_bits
	movl	%r14d, %edi
	xorl	%esi, %esi
	movl	%r15d, %edx
	movl	%eax, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_WREG32_SOC15                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GC,4,2                         ## @GC
	.comm	_mmCP_RB0_WPTR,4,2              ## @mmCP_RB0_WPTR
	.comm	_mmCP_RB0_WPTR_HI,4,2           ## @mmCP_RB0_WPTR_HI
	.no_dead_strip	_gfx_v9_0_ring_set_wptr_gfx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfx_v9_0_ring_set_wptr_gfx
_gfx_v9_0_ring_set_wptr_gfx:            ; @gfx_v9_0_ring_set_wptr_gfx
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	ldr	x9, [x19]
	add	x0, x8, x9, lsl #2
	ldr	w1, [x19, #8]
	bl	_atomic64_set
	ldp	w1, w0, [x19, #8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WDOORBELL64
LBB0_2:
Lloh0:
	adrp	x22, _GC@GOTPAGE
Lloh1:
	ldr	x22, [x22, _GC@GOTPAGEOFF]
	ldr	w20, [x22]
Lloh2:
	adrp	x8, _mmCP_RB0_WPTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCP_RB0_WPTR@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	ldr	w0, [x19, #8]
	bl	_lower_32_bits
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	bl	_WREG32_SOC15
	ldr	w20, [x22]
Lloh5:
	adrp	x8, _mmCP_RB0_WPTR_HI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmCP_RB0_WPTR_HI@GOTPAGEOFF]
Lloh7:
	ldr	w21, [x8]
	ldr	w0, [x19, #8]
	bl	_upper_32_bits
	mov	x3, x0
	mov	x0, x20
	mov	w1, #0
	mov	x2, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_WREG32_SOC15
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GC,4,2                         ; @GC
	.comm	_mmCP_RB0_WPTR,4,2              ; @mmCP_RB0_WPTR
	.comm	_mmCP_RB0_WPTR_HI,4,2           ; @mmCP_RB0_WPTR_HI
	.no_dead_strip	_gfx_v9_0_ring_set_wptr_gfx
.subsections_via_symbols
