	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_dpm_force_performance_level
_pp_dpm_force_performance_level:        ## @pp_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, -28(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	cmpl	$0, 12(%rdi)
	je	LBB0_2
## %bb.3:
	xorl	%ebx, %ebx
	cmpl	%esi, (%r14)
	je	LBB0_5
## %bb.4:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	-28(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pp_dpm_en_umd_pstate
	movl	-28(%rbp), %eax
	movl	%eax, 4(%r14)
	movq	_AMD_PP_TASK_READJUST_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_hwmgr_handle_task
	movq	%r15, %rdi
	callq	_mutex_unlock
	jmp	LBB0_5
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AMD_PP_TASK_READJUST_POWER_STATE,4,2 ## @AMD_PP_TASK_READJUST_POWER_STATE
	.no_dead_strip	_pp_dpm_force_performance_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_dpm_force_performance_level
_pp_dpm_force_performance_level:        ; @pp_dpm_force_performance_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	str	w1, [sp, #12]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #12]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cmp	w8, w1
	b.eq	LBB0_4
; %bb.3:
	add	x20, x19, #8
	mov	x0, x20
	bl	_mutex_lock
	add	x1, sp, #12
	mov	x0, x19
	bl	_pp_dpm_en_umd_pstate
	ldr	w8, [sp, #12]
	str	w8, [x19, #4]
Lloh0:
	adrp	x8, _AMD_PP_TASK_READJUST_POWER_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AMD_PP_TASK_READJUST_POWER_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	bl	_hwmgr_handle_task
	mov	x0, x20
	bl	_mutex_unlock
LBB0_4:
	mov	w0, #0
	b	LBB0_6
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AMD_PP_TASK_READJUST_POWER_STATE,4,2 ; @AMD_PP_TASK_READJUST_POWER_STATE
	.no_dead_strip	_pp_dpm_force_performance_level
.subsections_via_symbols
