	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_dpm_powergate_vce
_kv_dpm_powergate_vce:                  ## @kv_dpm_powergate_vce
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_kv_get_pi
	cmpl	%ebx, (%rax)
	jne	LBB0_1
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movl	%ebx, (%rax)
	movq	8(%rax), %rax
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.2:
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_PPSMC_MSG_VCEPowerOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_kv_notify_message_to_smu       ## TAILCALL
LBB0_4:
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_PPSMC_MSG_VCEPowerON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_kv_notify_message_to_smu
	movq	%r14, %rdi
	callq	_vce_v2_0_resume
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_vce_v1_0_start                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_VCEPowerOFF,4,2      ## @PPSMC_MSG_VCEPowerOFF
	.comm	_PPSMC_MSG_VCEPowerON,4,2       ## @PPSMC_MSG_VCEPowerON
	.no_dead_strip	_kv_dpm_powergate_vce
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_dpm_powergate_vce
_kv_dpm_powergate_vce:                  ; @kv_dpm_powergate_vce
	.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	x20, x1
	mov	x19, x0
	bl	_kv_get_pi
	ldr	w8, [x0]
	cmp	w8, w20
	b.ne	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	str	w20, [x0]
	ldr	x8, [x0, #8]
	cbz	w20, LBB0_5
; %bb.3:
	cbz	x8, LBB0_1
; %bb.4:
Lloh0:
	adrp	x8, _PPSMC_MSG_VCEPowerOFF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_VCEPowerOFF@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_kv_notify_message_to_smu
LBB0_5:
	cbz	x8, LBB0_1
; %bb.6:
Lloh3:
	adrp	x8, _PPSMC_MSG_VCEPowerON@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_VCEPowerON@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_kv_notify_message_to_smu
	mov	x0, x19
	bl	_vce_v2_0_resume
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_vce_v1_0_start
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_VCEPowerOFF,4,2      ; @PPSMC_MSG_VCEPowerOFF
	.comm	_PPSMC_MSG_VCEPowerON,4,2       ; @PPSMC_MSG_VCEPowerON
	.no_dead_strip	_kv_dpm_powergate_vce
.subsections_via_symbols
