	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumo_program_power_level
_sumo_program_power_level:              ## @sumo_program_power_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	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r13
	callq	_sumo_get_pi
	movq	%rax, %r12
	movq	_DEEP_SLEEP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movl	%eax, %ebx
	movq	_ENABLE_DS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movq	_COMPUTE_ENGINE_PLL_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	28(%r15), %edx
	leaq	-48(%rbp), %r8
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_radeon_atom_get_clock_dividers
	testl	%eax, %eax
	jne	LBB0_10
## %bb.1:
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sumo_set_divider_value
	movl	24(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sumo_set_vid
	movq	(%r15), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.2:
	cmpq	$0, 8(%r15)
	je	LBB0_3
## %bb.5:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sumo_set_ss_dividers
	movq	8(%r15), %rdx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sumo_set_ds_dividers
	testl	%ebx, %ebx
	jne	LBB0_8
## %bb.6:
	movq	_DEEP_SLEEP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENABLE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, %edx
	notl	%edx
	jmp	LBB0_7
LBB0_3:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.4:
	movq	_DEEP_SLEEP_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ENABLE_DS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%esi, %esi
LBB0_7:
	callq	_WREG32_P
LBB0_8:
	movl	20(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sumo_set_allos_gnb_slow
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:
	movl	16(%r15), %edx
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	_sumo_set_tdp_limit
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEEP_SLEEP_CNTL,4,2            ## @DEEP_SLEEP_CNTL
	.comm	_ENABLE_DS,4,2                  ## @ENABLE_DS
	.comm	_COMPUTE_ENGINE_PLL_PARAM,4,2   ## @COMPUTE_ENGINE_PLL_PARAM
	.no_dead_strip	_sumo_program_power_level
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sumo_program_power_level
_sumo_program_power_level:              ; @sumo_program_power_level
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
	bl	_sumo_get_pi
	mov	x22, x0
Lloh0:
	adrp	x24, _DEEP_SLEEP_CNTL@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DEEP_SLEEP_CNTL@GOTPAGEOFF]
	ldr	w0, [x24]
	bl	_RREG32
	mov	x23, x0
Lloh2:
	adrp	x25, _ENABLE_DS@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ENABLE_DS@GOTPAGEOFF]
	ldr	w26, [x25]
Lloh4:
	adrp	x8, _COMPUTE_ENGINE_PLL_PARAM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _COMPUTE_ENGINE_PLL_PARAM@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	ldr	w2, [x21, #28]
	add	x4, sp, #8
	mov	x0, x20
	mov	w3, #0
	bl	_radeon_atom_get_clock_dividers
	cbnz	w0, LBB0_10
; %bb.1:
	and	w23, w26, w23
	ldr	w2, [sp, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_sumo_set_divider_value
	ldr	w2, [x21, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_sumo_set_vid
	ldr	x2, [x21]
	cbz	x2, LBB0_5
; %bb.2:
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x20
	mov	x1, x19
	bl	_sumo_set_ss_dividers
	ldr	x2, [x21, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_sumo_set_ds_dividers
	cbnz	w23, LBB0_8
; %bb.4:
	ldr	w0, [x24]
	ldr	w1, [x25]
	mvn	w2, w1
	b	LBB0_7
LBB0_5:
	cbz	w23, LBB0_8
; %bb.6:
	ldr	w0, [x24]
	ldr	w8, [x25]
	mvn	w2, w8
	mov	w1, #0
LBB0_7:
	bl	_WREG32_P
LBB0_8:
	ldr	w2, [x21, #20]
	mov	x0, x20
	mov	x1, x19
	bl	_sumo_set_allos_gnb_slow
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
	ldr	w2, [x21, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_sumo_set_tdp_limit
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DEEP_SLEEP_CNTL,4,2            ; @DEEP_SLEEP_CNTL
	.comm	_ENABLE_DS,4,2                  ; @ENABLE_DS
	.comm	_COMPUTE_ENGINE_PLL_PARAM,4,2   ; @COMPUTE_ENGINE_PLL_PARAM
	.no_dead_strip	_sumo_program_power_level
.subsections_via_symbols
