	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vce_v4_0_ring_get_wptr
_vce_v4_0_ring_get_wptr:                ## @vce_v4_0_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
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.7:
	movq	(%rdi), %rax
	movq	24(%rdi), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rax,4), %eax
	popq	%rbp
	retq
LBB0_1:
	movl	8(%rdi), %eax
	cmpl	$1, %eax
	je	LBB0_5
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	_VCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmVCE_RB_WPTR@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_5:
	movq	_VCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmVCE_RB_WPTR2@GOTPCREL(%rip), %rax
	jmp	LBB0_4
LBB0_6:
	movq	_VCE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmVCE_RB_WPTR3@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	popq	%rbp
	jmp	_RREG32                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VCE,4,2                        ## @VCE
	.comm	_mmVCE_RB_WPTR,4,2              ## @mmVCE_RB_WPTR
	.comm	_mmVCE_RB_WPTR2,4,2             ## @mmVCE_RB_WPTR2
	.comm	_mmVCE_RB_WPTR3,4,2             ## @mmVCE_RB_WPTR3
	.no_dead_strip	_vce_v4_0_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 vce_v4_0_ring_get_wptr
_vce_v4_0_ring_get_wptr:                ; @vce_v4_0_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, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w0, [x8, x9, lsl #2]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x0, #8]
	cmp	w8, #1
	b.eq	LBB0_5
; %bb.3:
	cbnz	w8, LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _VCE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VCE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mmVCE_RB_WPTR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmVCE_RB_WPTR@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:
Lloh5:
	adrp	x8, _VCE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _VCE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x8, _mmVCE_RB_WPTR2@GOTPAGE
Lloh9:
	ldr	x8, [x8, _mmVCE_RB_WPTR2@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _VCE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _VCE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x8, _mmVCE_RB_WPTR3@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mmVCE_RB_WPTR3@GOTPAGEOFF]
LBB0_7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_RREG32
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_VCE,4,2                        ; @VCE
	.comm	_mmVCE_RB_WPTR,4,2              ; @mmVCE_RB_WPTR
	.comm	_mmVCE_RB_WPTR2,4,2             ; @mmVCE_RB_WPTR2
	.comm	_mmVCE_RB_WPTR3,4,2             ; @mmVCE_RB_WPTR3
	.no_dead_strip	_vce_v4_0_ring_get_wptr
.subsections_via_symbols
