	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfx_v9_0_ring_get_wptr_gfx
_gfx_v9_0_ring_get_wptr_gfx:            ## @gfx_v9_0_ring_get_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	cmpq	$0, 8(%rdi)
	je	LBB0_2
## %bb.1:
	movq	(%rdi), %rax
	movq	16(%rdi), %rcx
	shlq	$2, %rax
	addq	(%rcx), %rax
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_atomic64_read                  ## TAILCALL
LBB0_2:
	movq	_GC@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_mmCP_RB0_WPTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_RREG32_SOC15
	movl	(%rbx), %edi
	movq	_mmCP_RB0_WPTR_HI@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_RREG32_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_get_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_get_wptr_gfx
_gfx_v9_0_ring_get_wptr_gfx:            ; @gfx_v9_0_ring_get_wptr_gfx
	.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
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0, #16]
	ldr	x8, [x8]
	ldr	x9, [x0]
	add	x0, x8, x9, lsl #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_atomic64_read
LBB0_2:
Lloh0:
	adrp	x19, _GC@GOTPAGE
Lloh1:
	ldr	x19, [x19, _GC@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _mmCP_RB0_WPTR@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmCP_RB0_WPTR@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_RREG32_SOC15
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _mmCP_RB0_WPTR_HI@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmCP_RB0_WPTR_HI@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_RREG32_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_get_wptr_gfx
.subsections_via_symbols
