	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumo_program_acpi_power_level
_sumo_program_acpi_power_level:         ## @sumo_program_acpi_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_sumo_get_pi
	movq	_COMPUTE_ENGINE_PLL_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	leaq	-16(%rbp), %r8
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_radeon_atom_get_clock_dividers
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_CG_ACPI_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	-16(%rbp), %edi
	callq	_SCLK_ACPI_DIV
	movq	_SCLK_ACPI_DIV_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_WREG32_P
	movq	_CG_ACPI_VOLTAGE_CNTL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ACPI_VOLTAGE_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	notl	%edx
	xorl	%esi, %esi
	callq	_WREG32_P
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_COMPUTE_ENGINE_PLL_PARAM,4,2   ## @COMPUTE_ENGINE_PLL_PARAM
	.comm	_CG_ACPI_CNTL,4,2               ## @CG_ACPI_CNTL
	.comm	_SCLK_ACPI_DIV_MASK,4,2         ## @SCLK_ACPI_DIV_MASK
	.comm	_CG_ACPI_VOLTAGE_CNTL,4,2       ## @CG_ACPI_VOLTAGE_CNTL
	.comm	_ACPI_VOLTAGE_EN,4,2            ## @ACPI_VOLTAGE_EN
	.no_dead_strip	_sumo_program_acpi_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_acpi_power_level
_sumo_program_acpi_power_level:         ; @sumo_program_acpi_power_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
	mov	x19, x0
	bl	_sumo_get_pi
Lloh0:
	adrp	x8, _COMPUTE_ENGINE_PLL_PARAM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COMPUTE_ENGINE_PLL_PARAM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w2, [x0]
	add	x4, sp, #8
	mov	x0, x19
	mov	w3, #0
	bl	_radeon_atom_get_clock_dividers
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _CG_ACPI_CNTL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CG_ACPI_CNTL@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	ldr	w0, [sp, #8]
	bl	_SCLK_ACPI_DIV
	mov	x1, x0
Lloh6:
	adrp	x8, _SCLK_ACPI_DIV_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCLK_ACPI_DIV_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	x0, x19
	bl	_WREG32_P
Lloh9:
	adrp	x8, _CG_ACPI_VOLTAGE_CNTL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CG_ACPI_VOLTAGE_CNTL@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x8, _ACPI_VOLTAGE_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ACPI_VOLTAGE_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	mvn	w2, w8
	mov	w1, #0
	bl	_WREG32_P
LBB0_2:
	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	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_COMPUTE_ENGINE_PLL_PARAM,4,2   ; @COMPUTE_ENGINE_PLL_PARAM
	.comm	_CG_ACPI_CNTL,4,2               ; @CG_ACPI_CNTL
	.comm	_SCLK_ACPI_DIV_MASK,4,2         ; @SCLK_ACPI_DIV_MASK
	.comm	_CG_ACPI_VOLTAGE_CNTL,4,2       ; @CG_ACPI_VOLTAGE_CNTL
	.comm	_ACPI_VOLTAGE_EN,4,2            ; @ACPI_VOLTAGE_EN
	.no_dead_strip	_sumo_program_acpi_power_level
.subsections_via_symbols
