	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sumo_program_power_levels_0_to_n
_sumo_program_power_levels_0_to_n:      ## @sumo_program_power_levels_0_to_n
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_sumo_get_pi
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_sumo_get_ps
	movq	%rax, %r15
	movq	%r13, %rdi
	callq	_sumo_get_ps
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movslq	(%rax), %r13
	cmpl	$0, (%r15)
	je	LBB0_4
LBB0_10:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	callq	_sumo_program_power_level
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_sumo_power_level_enable
	incq	%r13
	movslq	(%r15), %rbx
	addq	$4, %r14
	cmpq	%rbx, %r13
	jb	LBB0_11
## %bb.5:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	cmpq	%rbx, %r13
	jbe	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sumo_power_level_enable
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_7
LBB0_8:
	movq	_SUMO_POWERSTATE_FLAGS_BOOST_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	je	LBB0_12
## %bb.9:
	movq	_BOOST_DPM_LEVEL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r12, %rdi
	movq	%r14, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sumo_program_power_level       ## TAILCALL
LBB0_1:
	movl	$1, %r13d
	cmpl	$0, (%r15)
	jne	LBB0_10
LBB0_4:
	xorl	%ebx, %ebx
	cmpq	%rbx, %r13
	ja	LBB0_7
	jmp	LBB0_8
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUMO_POWERSTATE_FLAGS_BOOST_STATE,4,2 ## @SUMO_POWERSTATE_FLAGS_BOOST_STATE
	.comm	_BOOST_DPM_LEVEL,8,3            ## @BOOST_DPM_LEVEL
	.no_dead_strip	_sumo_program_power_levels_0_to_n
.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_levels_0_to_n
_sumo_program_power_levels_0_to_n:      ; @sumo_program_power_levels_0_to_n
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_sumo_get_pi
	mov	x20, x0
	mov	x0, x21
	bl	_sumo_get_ps
	mov	x21, x0
	mov	x0, x22
	bl	_sumo_get_ps
	cbz	x0, LBB0_8
; %bb.1:
	ldrsw	x24, [x0]
	ldr	w8, [x21]
	cbz	w8, LBB0_9
LBB0_2:
	mov	x25, #0
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	add	x1, x8, x25
	mov	x0, x19
	mov	x2, x23
	bl	_sumo_program_power_level
	mov	x0, x19
	mov	x1, x23
	mov	w2, #1
	bl	_sumo_power_level_enable
	add	x23, x23, #1
	ldrsw	x22, [x21]
	add	x25, x25, #4
	cmp	x23, x22
	b.lo	LBB0_3
; %bb.4:
	cmp	x24, x22
	b.ls	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	w2, #0
	bl	_sumo_power_level_enable
	add	x22, x22, #1
	cmp	x24, x22
	b.ne	LBB0_5
LBB0_6:
	ldr	w8, [x21, #4]
Lloh0:
	adrp	x9, _SUMO_POWERSTATE_FLAGS_BOOST_STATE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _SUMO_POWERSTATE_FLAGS_BOOST_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.7:
Lloh3:
	adrp	x8, _BOOST_DPM_LEVEL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BOOST_DPM_LEVEL@GOTPAGEOFF]
Lloh5:
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_sumo_program_power_level
LBB0_8:
	mov	w24, #1
	ldr	w8, [x21]
	cbnz	w8, LBB0_2
LBB0_9:
	mov	x22, #0
	cmp	x24, x22
	b.hi	LBB0_5
	b	LBB0_6
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SUMO_POWERSTATE_FLAGS_BOOST_STATE,4,2 ; @SUMO_POWERSTATE_FLAGS_BOOST_STATE
	.comm	_BOOST_DPM_LEVEL,8,3            ; @BOOST_DPM_LEVEL
	.no_dead_strip	_sumo_program_power_levels_0_to_n
.subsections_via_symbols
