	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ni_dpm_force_performance_level ## -- Begin function ni_dpm_force_performance_level
	.p2align	4, 0x90
_ni_dpm_force_performance_level:        ## @ni_dpm_force_performance_level
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_RADEON_DPM_FORCED_LEVEL_HIGH@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_PPSMC_MSG_SetEnabledLevels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ni_send_msg_to_smc_with_parameter
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.2:
	movq	_PPSMC_MSG_SetForcedLevels@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	movq	_RADEON_DPM_FORCED_LEVEL_LOW@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_8
## %bb.4:
	movq	_PPSMC_MSG_SetForcedLevels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ni_send_msg_to_smc_with_parameter
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.5:
	movq	_PPSMC_MSG_SetEnabledLevels@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_ni_send_msg_to_smc_with_parameter
	cmpq	(%r12), %rax
	je	LBB0_11
## %bb.7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_8:
	movq	_RADEON_DPM_FORCED_LEVEL_AUTO@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jne	LBB0_11
## %bb.9:
	movq	_PPSMC_MSG_SetForcedLevels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ni_send_msg_to_smc_with_parameter
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %r12
	cmpq	(%r12), %rax
	jne	LBB0_12
## %bb.10:
	movq	_PPSMC_MSG_SetEnabledLevels@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_ni_send_msg_to_smc_with_parameter
	cmpq	(%r12), %rax
	jne	LBB0_12
LBB0_11:
	movl	%r15d, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_12:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_DPM_FORCED_LEVEL_HIGH,4,2 ## @RADEON_DPM_FORCED_LEVEL_HIGH
	.comm	_PPSMC_MSG_SetEnabledLevels,4,2 ## @PPSMC_MSG_SetEnabledLevels
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPSMC_MSG_SetForcedLevels,4,2  ## @PPSMC_MSG_SetForcedLevels
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ## @RADEON_DPM_FORCED_LEVEL_LOW
	.comm	_RADEON_DPM_FORCED_LEVEL_AUTO,4,2 ## @RADEON_DPM_FORCED_LEVEL_AUTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ni_dpm_force_performance_level ; -- Begin function ni_dpm_force_performance_level
	.p2align	2
_ni_dpm_force_performance_level:        ; @ni_dpm_force_performance_level
	.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	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _RADEON_DPM_FORCED_LEVEL_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RADEON_DPM_FORCED_LEVEL_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _PPSMC_MSG_SetEnabledLevels@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_SetEnabledLevels@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ni_send_msg_to_smc_with_parameter
Lloh6:
	adrp	x21, _PPSMC_Result_OK@GOTPAGE
Lloh7:
	ldr	x21, [x21, _PPSMC_Result_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.2:
Lloh8:
	adrp	x8, _PPSMC_MSG_SetForcedLevels@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PPSMC_MSG_SetForcedLevels@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh10:
	adrp	x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_8
; %bb.4:
Lloh13:
	adrp	x8, _PPSMC_MSG_SetForcedLevels@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PPSMC_MSG_SetForcedLevels@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ni_send_msg_to_smc_with_parameter
Lloh16:
	adrp	x21, _PPSMC_Result_OK@GOTPAGE
Lloh17:
	ldr	x21, [x21, _PPSMC_Result_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.5:
Lloh18:
	adrp	x8, _PPSMC_MSG_SetEnabledLevels@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PPSMC_MSG_SetEnabledLevels@GOTPAGEOFF]
LBB0_6:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #1
LBB0_7:
	bl	_ni_send_msg_to_smc_with_parameter
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
	b	LBB0_12
LBB0_8:
Lloh20:
	adrp	x8, _RADEON_DPM_FORCED_LEVEL_AUTO@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RADEON_DPM_FORCED_LEVEL_AUTO@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_12
; %bb.9:
Lloh23:
	adrp	x8, _PPSMC_MSG_SetForcedLevels@GOTPAGE
Lloh24:
	ldr	x8, [x8, _PPSMC_MSG_SetForcedLevels@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_ni_send_msg_to_smc_with_parameter
Lloh26:
	adrp	x21, _PPSMC_Result_OK@GOTPAGE
Lloh27:
	ldr	x21, [x21, _PPSMC_Result_OK@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_11
; %bb.10:
Lloh28:
	adrp	x8, _PPSMC_MSG_SetEnabledLevels@GOTPAGE
Lloh29:
	ldr	x8, [x8, _PPSMC_MSG_SetEnabledLevels@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x20
	mov	w2, #0
	b	LBB0_7
LBB0_11:
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_12:
	mov	w0, #0
	str	w19, [x20]
LBB0_13:
	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 AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_DPM_FORCED_LEVEL_HIGH,4,2 ; @RADEON_DPM_FORCED_LEVEL_HIGH
	.comm	_PPSMC_MSG_SetEnabledLevels,4,2 ; @PPSMC_MSG_SetEnabledLevels
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPSMC_MSG_SetForcedLevels,4,2  ; @PPSMC_MSG_SetForcedLevels
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ; @RADEON_DPM_FORCED_LEVEL_LOW
	.comm	_RADEON_DPM_FORCED_LEVEL_AUTO,4,2 ; @RADEON_DPM_FORCED_LEVEL_AUTO
.subsections_via_symbols
