	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_dpm_force_performance_level ## -- Begin function sumo_dpm_force_performance_level
	.p2align	4, 0x90
_sumo_dpm_force_performance_level:      ## @sumo_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r15
	callq	_sumo_get_pi
	movq	%rax, %r13
	leaq	8(%rax), %r12
	movq	%r12, %rdi
	callq	_sumo_get_ps
	movl	(%rax), %esi
	cmpl	$2, %esi
	jl	LBB0_14
## %bb.1:
	movq	%rax, %r14
	movq	_RADEON_DPM_FORCED_LEVEL_HIGH@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_8
## %bb.2:
	cmpq	$0, (%r13)
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sumo_enable_boost
	movl	(%r14), %esi
LBB0_4:
	decl	%esi
	movq	%r15, %rdi
	movl	$1, %edx
	callq	_sumo_power_level_enable
	movl	(%r14), %esi
	decl	%esi
	movq	%r15, %rdi
	callq	_sumo_set_forced_level
	movq	%r15, %rdi
	callq	_sumo_set_forced_mode_enabled
	cmpl	$2, (%r14)
	jl	LBB0_7
## %bb.5:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_sumo_power_level_enable
	incl	%ebx
	movl	(%r14), %eax
	decl	%eax
	cmpl	%eax, %ebx
	jl	LBB0_6
	jmp	LBB0_7
LBB0_8:
	movq	_RADEON_DPM_FORCED_LEVEL_LOW@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
## %bb.15:
	cmpq	$0, (%r13)
	je	LBB0_17
## %bb.16:
	movq	%r15, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_sumo_enable_boost
LBB0_17:
	movl	$1, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$1, %edx
	callq	_sumo_power_level_enable
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sumo_set_forced_level
	movq	%r15, %rdi
	callq	_sumo_set_forced_mode_enabled
	cmpl	$2, (%r14)
	jl	LBB0_7
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_sumo_power_level_enable
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_18
LBB0_7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sumo_set_forced_mode
	movq	%r15, %rdi
	callq	_sumo_set_forced_mode_enabled
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_sumo_set_forced_mode
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_13:
	movl	%ebx, (%r15)
LBB0_14:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_sumo_power_level_enable
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_10
## %bb.11:
	cmpq	$0, (%r13)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_13
## %bb.12:
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	$1, %edx
	callq	_sumo_enable_boost
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_RADEON_DPM_FORCED_LEVEL_HIGH,4,2 ## @RADEON_DPM_FORCED_LEVEL_HIGH
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ## @RADEON_DPM_FORCED_LEVEL_LOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_dpm_force_performance_level ; -- Begin function sumo_dpm_force_performance_level
	.p2align	2
_sumo_dpm_force_performance_level:      ; @sumo_dpm_force_performance_level
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
	bl	_sumo_get_pi
	mov	x23, x0
	add	x22, x0, #8
	mov	x0, x22
	bl	_sumo_get_ps
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_15
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x9, _RADEON_DPM_FORCED_LEVEL_HIGH@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RADEON_DPM_FORCED_LEVEL_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w19
	b.ne	LBB0_7
; %bb.2:
	ldr	x9, [x23]
	cbz	x9, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_sumo_enable_boost
	ldr	w8, [x21]
LBB0_4:
	sub	w1, w8, #1
	mov	x0, x20
	mov	w2, #1
	bl	_sumo_power_level_enable
	ldr	w8, [x21]
	sub	w1, w8, #1
	mov	x0, x20
	bl	_sumo_set_forced_level
	mov	x0, x20
	bl	_sumo_set_forced_mode_enabled
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.5:
	mov	w22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_sumo_power_level_enable
	add	w22, w22, #1
	ldr	w8, [x21]
	sub	w8, w8, #1
	cmp	w22, w8
	b.lt	LBB0_6
	b	LBB0_13
LBB0_7:
Lloh3:
	adrp	x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RADEON_DPM_FORCED_LEVEL_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_16
; %bb.8:
	ldr	x8, [x23]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_sumo_enable_boost
LBB0_10:
	mov	x0, x20
	mov	w1, #0
	mov	w2, #1
	bl	_sumo_power_level_enable
	mov	x0, x20
	mov	w1, #0
	bl	_sumo_set_forced_level
	mov	x0, x20
	bl	_sumo_set_forced_mode_enabled
	ldr	w8, [x21]
	cmp	w8, #2
	b.lt	LBB0_13
; %bb.11:
	mov	w22, #1
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_sumo_power_level_enable
	add	w22, w22, #1
	ldr	w8, [x21]
	cmp	w22, w8
	b.lt	LBB0_12
LBB0_13:
	mov	x0, x20
	mov	w1, #0
	bl	_sumo_set_forced_mode
	mov	x0, x20
	bl	_sumo_set_forced_mode_enabled
	mov	x0, x20
	mov	w1, #0
	bl	_sumo_set_forced_mode
LBB0_14:
	str	w19, [x20]
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_16:
	mov	w24, #0
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x24
	mov	w2, #1
	bl	_sumo_power_level_enable
	add	w24, w24, #1
	ldr	w8, [x21]
	cmp	w24, w8
	b.lt	LBB0_17
; %bb.18:
	ldr	x8, [x23]
	cbz	x8, LBB0_14
; %bb.19:
	mov	x0, x20
	mov	x1, x22
	mov	w2, #1
	bl	_sumo_enable_boost
	b	LBB0_14
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RADEON_DPM_FORCED_LEVEL_HIGH,4,2 ; @RADEON_DPM_FORCED_LEVEL_HIGH
	.comm	_RADEON_DPM_FORCED_LEVEL_LOW,4,2 ; @RADEON_DPM_FORCED_LEVEL_LOW
.subsections_via_symbols
