	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_enable_nb_dpm
_kv_enable_nb_dpm:                      ## @kv_enable_nb_dpm
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_kv_get_pi
	movq	%rax, %r14
	movq	8(%rax), %rcx
	xorl	%eax, %eax
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.1:
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.2:
	cmpl	$0, (%r14)
	jne	LBB0_10
## %bb.3:
	movq	_PPSMC_MSG_NBDPM_Enable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kv_notify_message_to_smu
	testl	%eax, %eax
	jne	LBB0_10
## %bb.4:
	movl	$1, (%r14)
	jmp	LBB0_9
LBB0_5:
	testq	%rcx, %rcx
	je	LBB0_10
## %bb.6:
	cmpl	$0, (%r14)
	je	LBB0_10
## %bb.7:
	movq	_PPSMC_MSG_NBDPM_Disable@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kv_notify_message_to_smu
	testl	%eax, %eax
	jne	LBB0_10
## %bb.8:
	movl	$0, (%r14)
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_NBDPM_Enable,4,2     ## @PPSMC_MSG_NBDPM_Enable
	.comm	_PPSMC_MSG_NBDPM_Disable,4,2    ## @PPSMC_MSG_NBDPM_Disable
	.no_dead_strip	_kv_enable_nb_dpm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_enable_nb_dpm
_kv_enable_nb_dpm:                      ; @kv_enable_nb_dpm
	.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	x21, x1
	mov	x20, x0
	bl	_kv_get_pi
	mov	x19, x0
	ldr	x8, [x0, #8]
	cbz	w21, LBB0_5
; %bb.1:
	cbz	x8, LBB0_9
; %bb.2:
	ldr	w8, [x19]
	cbnz	w8, LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _PPSMC_MSG_NBDPM_Enable@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_NBDPM_Enable@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kv_notify_message_to_smu
	cbnz	w0, LBB0_10
; %bb.4:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_10
LBB0_5:
	cbz	x8, LBB0_9
; %bb.6:
	ldr	w8, [x19]
	cbz	w8, LBB0_9
; %bb.7:
Lloh3:
	adrp	x8, _PPSMC_MSG_NBDPM_Disable@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_NBDPM_Disable@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_kv_notify_message_to_smu
	cbnz	w0, LBB0_10
; %bb.8:
	str	wzr, [x19]
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_NBDPM_Enable,4,2     ; @PPSMC_MSG_NBDPM_Enable
	.comm	_PPSMC_MSG_NBDPM_Disable,4,2    ; @PPSMC_MSG_NBDPM_Disable
	.no_dead_strip	_kv_enable_nb_dpm
.subsections_via_symbols
