	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vce_v4_0_stop
_vce_v4_0_stop:                         ## @vce_v4_0_stop
	.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
	movq	_VCE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_mmVCE_VCPU_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	$-2097154, %edx                 ## imm = 0xFFDFFFFE
	callq	_WREG32_P
	movl	(%rbx), %edi
	movq	_mmVCE_SOFT_RESET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movq	_VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%esi, %edx
	notl	%edx
	movl	%eax, %edi
	callq	_WREG32_P
	movl	(%rbx), %edi
	movq	_mmVCE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_SOC15_REG_OFFSET
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_WREG32
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VCE,4,2                        ## @VCE
	.comm	_mmVCE_VCPU_CNTL,4,2            ## @mmVCE_VCPU_CNTL
	.comm	_mmVCE_SOFT_RESET,4,2           ## @mmVCE_SOFT_RESET
	.comm	_VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK,4,2 ## @VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK
	.comm	_mmVCE_STATUS,4,2               ## @mmVCE_STATUS
	.no_dead_strip	_vce_v4_0_stop
.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_stop
_vce_v4_0_stop:                         ; @vce_v4_0_stop
	.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
Lloh0:
	adrp	x19, _VCE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _VCE@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh2:
	adrp	x8, _mmVCE_VCPU_CNTL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _mmVCE_VCPU_CNTL@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	w1, #0
	mov	w2, #65534
	movk	w2, #65503, lsl #16
	bl	_WREG32_P
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _mmVCE_SOFT_RESET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _mmVCE_SOFT_RESET@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
Lloh8:
	adrp	x8, _VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	mvn	w2, w1
	bl	_WREG32_P
	ldr	w0, [x19]
Lloh11:
	adrp	x8, _mmVCE_STATUS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _mmVCE_STATUS@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	mov	w1, #0
	bl	_SOC15_REG_OFFSET
	mov	w1, #0
	bl	_WREG32
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VCE,4,2                        ; @VCE
	.comm	_mmVCE_VCPU_CNTL,4,2            ; @mmVCE_VCPU_CNTL
	.comm	_mmVCE_SOFT_RESET,4,2           ; @mmVCE_SOFT_RESET
	.comm	_VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK,4,2 ; @VCE_SOFT_RESET__ECPU_SOFT_RESET_MASK
	.comm	_mmVCE_STATUS,4,2               ; @mmVCE_STATUS
	.no_dead_strip	_vce_v4_0_stop
.subsections_via_symbols
