	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trinity_program_power_level
_trinity_program_power_level:           ## @trinity_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_trinity_get_pi
	movq	%rax, %r15
	movq	_SUMO_MAX_HARDWARE_POWERLEVELS@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jbe	LBB0_1
## %bb.2:
	movl	28(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_divider_value
	movl	24(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_vid
	movl	20(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_ss_dividers
	movl	16(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_ds_dividers
	movl	12(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_allos_gnb_slow
	movl	8(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_force_nbp_state
	movl	4(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_display_wm
	movl	(%r12), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_trinity_set_vce_wm
	movq	(%r15), %rax
	movl	(%rax,%rbx,4), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_trinity_set_at                 ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,8,3 ## @SUMO_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_trinity_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 trinity_program_power_level
_trinity_program_power_level:           ; @trinity_program_power_level
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_trinity_get_pi
Lloh0:
	adrp	x8, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SUMO_MAX_HARDWARE_POWERLEVELS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ls	LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	w2, [x22, #28]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_divider_value
	ldr	w2, [x22, #24]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_vid
	ldr	w2, [x22, #20]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_ss_dividers
	ldr	w2, [x22, #16]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_ds_dividers
	ldr	w2, [x22, #12]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_allos_gnb_slow
	ldr	w2, [x22, #8]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_force_nbp_state
	ldr	w2, [x22, #4]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_display_wm
	ldr	w2, [x22]
	mov	x0, x20
	mov	x1, x19
	bl	_trinity_set_vce_wm
	ldr	x8, [x21]
	ldr	w2, [x8, x19, lsl #2]
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_trinity_set_at
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SUMO_MAX_HARDWARE_POWERLEVELS,8,3 ; @SUMO_MAX_HARDWARE_POWERLEVELS
	.no_dead_strip	_trinity_program_power_level
.subsections_via_symbols
