	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_dpm_force_performance_level ## -- Begin function rv770_dpm_force_performance_level
	.p2align	4, 0x90
_rv770_dpm_force_performance_level:     ## @rv770_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_RADEON_DPM_FORCED_LEVEL_HIGH@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jne	LBB0_3
## %bb.1:
	movq	_PPSMC_MSG_ZeroLevelsDisabled@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_rv770_send_msg_to_smc
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.2:
	movq	_PPSMC_MSG_ForceHigh@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_3:
	movq	_RADEON_DPM_FORCED_LEVEL_LOW@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_PPSMC_MSG_NoForcedLevel@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_rv770_send_msg_to_smc
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpl	%r14d, %r15d
	jne	LBB0_6
## %bb.4:
	cmpq	%rcx, %rax
	jne	LBB0_9
## %bb.5:
	movq	_PPSMC_MSG_TwoLevelsDisabled@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	cmpq	%rcx, %rax
	jne	LBB0_9
## %bb.7:
	movq	_PPSMC_MSG_ZeroLevelsDisabled@GOTPCREL(%rip), %rax
LBB0_8:
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_rv770_send_msg_to_smc
	movq	_PPSMC_Result_OK@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.10:
	movl	%r14d, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_11
LBB0_9:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	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_ZeroLevelsDisabled,8,3 ## @PPSMC_MSG_ZeroLevelsDisabled
	.comm	_PPSMC_Result_OK,8,3            ## @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PPSMC_MSG_ForceHigh,8,3        ## @PPSMC_MSG_ForceHigh
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ## @RADEON_DPM_FORCED_LEVEL_LOW
	.comm	_PPSMC_MSG_NoForcedLevel,8,3    ## @PPSMC_MSG_NoForcedLevel
	.comm	_PPSMC_MSG_TwoLevelsDisabled,8,3 ## @PPSMC_MSG_TwoLevelsDisabled
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rv770_dpm_force_performance_level ; -- Begin function rv770_dpm_force_performance_level
	.p2align	2
_rv770_dpm_force_performance_level:     ; @rv770_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]
Lloh3:
	adrp	x21, _PPSMC_Result_OK@GOTPAGE
Lloh4:
	ldr	x21, [x21, _PPSMC_Result_OK@GOTPAGEOFF]
	cmp	w8, w1
	b.ne	LBB0_3
; %bb.1:
Lloh5:
	adrp	x8, _PPSMC_MSG_ZeroLevelsDisabled@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PPSMC_MSG_ZeroLevelsDisabled@GOTPAGEOFF]
Lloh7:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_rv770_send_msg_to_smc
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.2:
Lloh8:
	adrp	x8, _PPSMC_MSG_ForceHigh@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PPSMC_MSG_ForceHigh@GOTPAGEOFF]
	b	LBB0_8
LBB0_3:
Lloh10:
	adrp	x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGE
Lloh11:
	ldr	x8, [x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGEOFF]
Lloh12:
	ldr	w22, [x8]
Lloh13:
	adrp	x8, _PPSMC_MSG_NoForcedLevel@GOTPAGE
Lloh14:
	ldr	x8, [x8, _PPSMC_MSG_NoForcedLevel@GOTPAGEOFF]
Lloh15:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_rv770_send_msg_to_smc
	ldr	x8, [x21]
	cmp	w22, w19
	b.ne	LBB0_6
; %bb.4:
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.5:
Lloh16:
	adrp	x8, _PPSMC_MSG_TwoLevelsDisabled@GOTPAGE
Lloh17:
	ldr	x8, [x8, _PPSMC_MSG_TwoLevelsDisabled@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
Lloh18:
	adrp	x8, _PPSMC_MSG_ZeroLevelsDisabled@GOTPAGE
Lloh19:
	ldr	x8, [x8, _PPSMC_MSG_ZeroLevelsDisabled@GOTPAGEOFF]
LBB0_8:
	ldr	x1, [x8]
	mov	x0, x20
	bl	_rv770_send_msg_to_smc
	ldr	x8, [x21]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	mov	w0, #0
	str	w19, [x20]
	b	LBB0_11
LBB0_10:
Lloh20:
	adrp	x8, _EINVAL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_DPM_FORCED_LEVEL_HIGH,4,2 ; @RADEON_DPM_FORCED_LEVEL_HIGH
	.comm	_PPSMC_MSG_ZeroLevelsDisabled,8,3 ; @PPSMC_MSG_ZeroLevelsDisabled
	.comm	_PPSMC_Result_OK,8,3            ; @PPSMC_Result_OK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PPSMC_MSG_ForceHigh,8,3        ; @PPSMC_MSG_ForceHigh
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ; @RADEON_DPM_FORCED_LEVEL_LOW
	.comm	_PPSMC_MSG_NoForcedLevel,8,3    ; @PPSMC_MSG_NoForcedLevel
	.comm	_PPSMC_MSG_TwoLevelsDisabled,8,3 ; @PPSMC_MSG_TwoLevelsDisabled
.subsections_via_symbols
