	.file	"extr_kv_dpm.c_kv_enable_nb_dpm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	kv_enable_nb_dpm, @function
kv_enable_nb_dpm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	kv_get_pi@PLT
	mov	rbx, rax
	xor	eax, eax
	test	r12d, r12d
	je	.L2
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	edx, DWORD PTR [rbx]
	test	edx, edx
	je	.L12
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	cmp	QWORD PTR 8[rbx], 0
	je	.L1
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L1
	mov	esi, DWORD PTR PPSMC_MSG_NBDPM_Disable[rip]
	mov	rdi, rbp
	call	kv_notify_message_to_smu@PLT
	test	eax, eax
	jne	.L1
	mov	DWORD PTR [rbx], 0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	esi, DWORD PTR PPSMC_MSG_NBDPM_Enable[rip]
	mov	rdi, rbp
	call	kv_notify_message_to_smu@PLT
	test	eax, eax
	jne	.L1
	mov	DWORD PTR [rbx], 1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	kv_enable_nb_dpm, .-kv_enable_nb_dpm
	.comm	PPSMC_MSG_NBDPM_Enable,4,4
	.comm	PPSMC_MSG_NBDPM_Disable,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_kv_dpm.c_kv_enable_nb_dpm.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	kv_enable_nb_dpm, %function
kv_enable_nb_dpm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	kv_get_pi
	cmp	r4, #0
	mov	r4, r0
	ldr	r0, [r0, #4]
	beq	.L2
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r4]
	cmp	r3, #0
	beq	.L16
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r0, [r4]
	cmp	r0, #0
	popeq	{r4, r5, r6, pc}
	ldr	r3, .L17
	mov	r0, r5
	ldr	r1, [r3]
	bl	kv_notify_message_to_smu
	cmp	r0, #0
	streq	r0, [r4]
	pop	{r4, r5, r6, pc}
.L16:
	ldr	r3, .L17+4
	mov	r0, r5
	ldr	r1, [r3]
	bl	kv_notify_message_to_smu
	cmp	r0, #0
	moveq	r3, #1
	streq	r3, [r4]
	pop	{r4, r5, r6, pc}
.L18:
	.align	2
.L17:
	.word	PPSMC_MSG_NBDPM_Disable
	.word	PPSMC_MSG_NBDPM_Enable
	.size	kv_enable_nb_dpm, .-kv_enable_nb_dpm
	.comm	PPSMC_MSG_NBDPM_Enable,4,4
	.comm	PPSMC_MSG_NBDPM_Disable,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
