	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_dpm_set_power_state       ## -- Begin function sumo_dpm_set_power_state
	.p2align	4, 0x90
_sumo_dpm_set_power_state:              ## @sumo_dpm_set_power_state
	.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	%rdi, %rbx
	callq	_sumo_get_pi
	movq	%rax, %r12
	leaq	20(%rax), %r14
	leaq	16(%rax), %r15
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sumo_set_uvd_clock_before_set_eng_clock
LBB0_2:
	cmpq	$0, 8(%r12)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%edx, %edx
	callq	_sumo_enable_boost
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sumo_patch_boost_state
LBB0_4:
	cmpq	$0, (%r12)
	je	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sumo_pre_notify_alt_vddnb_change
	movq	%rbx, %rdi
	callq	_sumo_enable_power_level_0
	movq	%rbx, %rdi
	callq	_sumo_set_forced_level_0
	movq	%rbx, %rdi
	callq	_sumo_set_forced_mode_enabled
	movq	%rbx, %rdi
	callq	_sumo_wait_for_level_0
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sumo_program_power_levels_0_to_n
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sumo_program_wl
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sumo_program_bsp
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sumo_program_at
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_sumo_force_nbp_state
	movq	%rbx, %rdi
	callq	_sumo_set_forced_mode_disabled
	movq	%rbx, %rdi
	callq	_sumo_set_forced_mode_enabled
	movq	%rbx, %rdi
	callq	_sumo_set_forced_mode_disabled
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sumo_post_notify_alt_vddnb_change
LBB0_6:
	cmpq	$0, 8(%r12)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_sumo_enable_boost
LBB0_8:
	cmpq	$0, (%r12)
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_sumo_set_uvd_clock_after_set_eng_clock
LBB0_10:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sumo_dpm_set_power_state       ; -- Begin function sumo_dpm_set_power_state
	.p2align	2
_sumo_dpm_set_power_state:              ; @sumo_dpm_set_power_state
	.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, x0
	bl	_sumo_get_pi
	mov	x22, x0
	add	x20, x0, #20
	mov	x21, x0
	ldr	x8, [x21], #16
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sumo_set_uvd_clock_before_set_eng_clock
LBB0_2:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #0
	bl	_sumo_enable_boost
	mov	x0, x19
	mov	x1, x20
	bl	_sumo_patch_boost_state
LBB0_4:
	ldr	x8, [x22]
	cbz	x8, LBB0_6
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sumo_pre_notify_alt_vddnb_change
	mov	x0, x19
	bl	_sumo_enable_power_level_0
	mov	x0, x19
	bl	_sumo_set_forced_level_0
	mov	x0, x19
	bl	_sumo_set_forced_mode_enabled
	mov	x0, x19
	bl	_sumo_wait_for_level_0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sumo_program_power_levels_0_to_n
	mov	x0, x19
	mov	x1, x20
	bl	_sumo_program_wl
	mov	x0, x19
	mov	x1, x20
	bl	_sumo_program_bsp
	mov	x0, x19
	mov	x1, x20
	bl	_sumo_program_at
	mov	x0, x19
	mov	x1, x20
	bl	_sumo_force_nbp_state
	mov	x0, x19
	bl	_sumo_set_forced_mode_disabled
	mov	x0, x19
	bl	_sumo_set_forced_mode_enabled
	mov	x0, x19
	bl	_sumo_set_forced_mode_disabled
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sumo_post_notify_alt_vddnb_change
LBB0_6:
	ldr	x8, [x22, #8]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	mov	x1, x20
	mov	w2, #1
	bl	_sumo_enable_boost
LBB0_8:
	ldr	x8, [x22]
	cbz	x8, LBB0_10
; %bb.9:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_sumo_set_uvd_clock_after_set_eng_clock
LBB0_10:
	mov	w0, #0
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
