	.file	"extr_si_dpm.c_si_dpm_force_performance_level.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	si_dpm_force_performance_level
	.type	si_dpm_force_performance_level, @function
si_dpm_force_performance_level:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	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
	mov	rdi, QWORD PTR 8[rdi]
	mov	ebx, esi
	call	ni_get_ps@PLT
	cmp	DWORD PTR RADEON_DPM_FORCED_LEVEL_HIGH[rip], ebx
	mov	r12d, DWORD PTR [rax]
	je	.L14
	cmp	DWORD PTR RADEON_DPM_FORCED_LEVEL_LOW[rip], ebx
	je	.L15
	cmp	DWORD PTR RADEON_DPM_FORCED_LEVEL_AUTO[rip], ebx
	je	.L16
.L5:
	mov	DWORD PTR 0[rbp], ebx
	xor	eax, eax
	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
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR PPSMC_MSG_SetEnabledLevels[rip]
	mov	edx, r12d
	mov	rdi, rbp
	call	si_send_msg_to_smc_with_parameter@PLT
	cmp	rax, QWORD PTR PPSMC_Result_OK[rip]
	je	.L3
.L10:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR PPSMC_MSG_SetForcedLevels[rip]
	mov	edx, 1
	mov	rdi, rbp
	call	si_send_msg_to_smc_with_parameter@PLT
	cmp	rax, QWORD PTR PPSMC_Result_OK[rip]
	je	.L5
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L15:
	mov	esi, DWORD PTR PPSMC_MSG_SetForcedLevels[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	si_send_msg_to_smc_with_parameter@PLT
	cmp	rax, QWORD PTR PPSMC_Result_OK[rip]
	jne	.L10
	mov	edx, 1
.L12:
	mov	esi, DWORD PTR PPSMC_MSG_SetEnabledLevels[rip]
	mov	rdi, rbp
	call	si_send_msg_to_smc_with_parameter@PLT
	cmp	rax, QWORD PTR PPSMC_Result_OK[rip]
	je	.L5
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR PPSMC_MSG_SetForcedLevels[rip]
	xor	edx, edx
	mov	rdi, rbp
	call	si_send_msg_to_smc_with_parameter@PLT
	cmp	rax, QWORD PTR PPSMC_Result_OK[rip]
	jne	.L10
	mov	edx, r12d
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	si_dpm_force_performance_level, .-si_dpm_force_performance_level
	.comm	RADEON_DPM_FORCED_LEVEL_LOW,4,4
	.comm	RADEON_DPM_FORCED_LEVEL_HIGH,4,4
	.comm	RADEON_DPM_FORCED_LEVEL_AUTO,4,4
	.comm	PPSMC_Result_OK,8,8
	.comm	PPSMC_MSG_SetForcedLevels,4,4
	.comm	PPSMC_MSG_SetEnabledLevels,4,4
	.comm	EINVAL,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_si_dpm.c_si_dpm_force_performance_level.c"
	.text
	.align	2
	.global	si_dpm_force_performance_level
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_dpm_force_performance_level, %function
si_dpm_force_performance_level:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r1
	mov	r5, r0
	ldr	r0, [r0, #4]
	bl	ni_get_ps
	ldr	r3, .L18
	ldr	r6, [r0]
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L15
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L16
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L17
.L5:
	mov	r0, #0
	str	r4, [r5]
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	ldr	r3, .L18+12
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r5
	bl	si_send_msg_to_smc_with_parameter
	ldr	r6, .L18+16
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L3
.L11:
	ldr	r3, .L18+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r3, .L18+24
.L13:
	ldr	r1, [r3]
	mov	r2, #1
	mov	r0, r5
	bl	si_send_msg_to_smc_with_parameter
	ldr	r3, [r6]
	cmp	r0, r3
	beq	.L5
	b	.L11
.L16:
	ldr	r3, .L18+24
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	si_send_msg_to_smc_with_parameter
	ldr	r6, .L18+16
	ldr	r3, [r6]
	cmp	r0, r3
	bne	.L11
	ldr	r3, .L18+12
	b	.L13
.L17:
	ldr	r3, .L18+24
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r5
	bl	si_send_msg_to_smc_with_parameter
	ldr	r7, .L18+16
	ldr	r3, [r7]
	cmp	r0, r3
	bne	.L11
	ldr	r3, .L18+12
	mov	r2, r6
	ldr	r1, [r3]
	mov	r0, r5
	bl	si_send_msg_to_smc_with_parameter
	ldr	r3, [r7]
	cmp	r0, r3
	beq	.L5
	b	.L11
.L19:
	.align	2
.L18:
	.word	RADEON_DPM_FORCED_LEVEL_HIGH
	.word	RADEON_DPM_FORCED_LEVEL_LOW
	.word	RADEON_DPM_FORCED_LEVEL_AUTO
	.word	PPSMC_MSG_SetEnabledLevels
	.word	PPSMC_Result_OK
	.word	EINVAL
	.word	PPSMC_MSG_SetForcedLevels
	.size	si_dpm_force_performance_level, .-si_dpm_force_performance_level
	.comm	RADEON_DPM_FORCED_LEVEL_LOW,4,4
	.comm	RADEON_DPM_FORCED_LEVEL_HIGH,4,4
	.comm	RADEON_DPM_FORCED_LEVEL_AUTO,4,4
	.comm	PPSMC_Result_OK,4,4
	.comm	PPSMC_MSG_SetForcedLevels,4,4
	.comm	PPSMC_MSG_SetEnabledLevels,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
