	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function power_state_management
_power_state_management:                ## @power_state_management
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	8(%rbx), %r14
LBB0_2:
	movq	16(%rbx), %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_phm_apply_state_adjust_rules
	testq	%r15, %r15
	je	LBB0_4
## %bb.3:
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_phm_check_states_equal
	testq	%rax, %rax
	je	LBB0_5
LBB0_4:
	movl	$0, -28(%rbp)
LBB0_7:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_phm_set_power_state
	movq	16(%rbx), %rdi
	movq	8(%rbx), %rsi
	movl	(%rbx), %edx
	callq	_memcpy
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	cmpl	$0, -28(%rbp)
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_phm_check_smc_update_required_for_display_configuration
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_power_state_management
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function power_state_management
_power_state_management:                ; @power_state_management
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	cbnz	x1, LBB0_2
; %bb.1:
	ldr	x20, [x19, #8]
LBB0_2:
	ldr	x21, [x19, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_phm_apply_state_adjust_rules
	cbz	x21, LBB0_4
; %bb.3:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_phm_check_states_equal
	cbz	x0, LBB0_7
LBB0_4:
	str	wzr, [sp, #12]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_phm_set_power_state
	ldp	x1, x0, [x19, #8]
	ldr	w2, [x19]
	bl	_memcpy
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_7:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_5
; %bb.8:
	mov	x0, x19
	bl	_phm_check_smc_update_required_for_display_configuration
	cbnz	x0, LBB0_5
	b	LBB0_6
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_power_state_management
.subsections_via_symbols
