	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_set_cpu_power_state
_smu8_set_cpu_power_state:              ## @smu8_set_cpu_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %r15
	cmpl	$0, (%r15)
	je	LBB0_2
## %bb.1:
	movq	%rdi, %r14
	movl	$0, (%r15)
	movq	%r15, %rdi
	callq	_smu8_hw_print_display_cfg
	movq	_PWRMGT_SEPARATION_TIME_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	4(%r15), %eax
	movq	_PWRMGT_SEPARATION_TIME_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	xorl	%edx, %edx
	cmpq	$0, 16(%r15)
	setne	%dl
	movq	_PWRMGT_DISABLE_CPU_CSTATES_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edx
	orl	%eax, %edx
	xorl	%ebx, %ebx
	cmpq	$0, 8(%r15)
	setne	%bl
	movq	_PWRMGT_DISABLE_CPU_PSTATES_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%edx, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_PP_DBG_LOG
	movq	_PPSMC_MSG_SetDisplaySizePowerParams@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%ebx, %edx
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_2:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PWRMGT_SEPARATION_TIME_MASK,4,2 ## @PWRMGT_SEPARATION_TIME_MASK
	.comm	_PWRMGT_SEPARATION_TIME_SHIFT,4,2 ## @PWRMGT_SEPARATION_TIME_SHIFT
	.comm	_PWRMGT_DISABLE_CPU_CSTATES_SHIFT,4,2 ## @PWRMGT_DISABLE_CPU_CSTATES_SHIFT
	.comm	_PWRMGT_DISABLE_CPU_PSTATES_SHIFT,4,2 ## @PWRMGT_DISABLE_CPU_PSTATES_SHIFT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"SetDisplaySizePowerParams data: 0x%X\n"

	.comm	_PPSMC_MSG_SetDisplaySizePowerParams,4,2 ## @PPSMC_MSG_SetDisplaySizePowerParams
	.no_dead_strip	_smu8_set_cpu_power_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_set_cpu_power_state
_smu8_set_cpu_power_state:              ; @smu8_set_cpu_power_state
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x20, [x0]
	ldr	w8, [x20]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x19, x0
	str	wzr, [x20]
	mov	x0, x20
	bl	_smu8_hw_print_display_cfg
	ldr	w8, [x20, #4]
Lloh0:
	adrp	x9, _PWRMGT_SEPARATION_TIME_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PWRMGT_SEPARATION_TIME_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _PWRMGT_SEPARATION_TIME_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PWRMGT_SEPARATION_TIME_SHIFT@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	ldp	x10, x9, [x20, #8]
	cmp	x9, #0
	cset	w9, ne
Lloh6:
	adrp	x11, _PWRMGT_DISABLE_CPU_CSTATES_SHIFT@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PWRMGT_DISABLE_CPU_CSTATES_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w11, [x11]
	lsl	w9, w9, w11
	orr	w8, w9, w8
	cmp	x10, #0
	cset	w9, ne
Lloh9:
	adrp	x10, _PWRMGT_DISABLE_CPU_PSTATES_SHIFT@GOTPAGE
Lloh10:
	ldr	x10, [x10, _PWRMGT_DISABLE_CPU_PSTATES_SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	lsl	w9, w9, w10
	orr	w20, w8, w9
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_PP_DBG_LOG
Lloh14:
	adrp	x8, _PPSMC_MSG_SetDisplaySizePowerParams@GOTPAGE
Lloh15:
	ldr	x8, [x8, _PPSMC_MSG_SetDisplaySizePowerParams@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PWRMGT_SEPARATION_TIME_MASK,4,2 ; @PWRMGT_SEPARATION_TIME_MASK
	.comm	_PWRMGT_SEPARATION_TIME_SHIFT,4,2 ; @PWRMGT_SEPARATION_TIME_SHIFT
	.comm	_PWRMGT_DISABLE_CPU_CSTATES_SHIFT,4,2 ; @PWRMGT_DISABLE_CPU_CSTATES_SHIFT
	.comm	_PWRMGT_DISABLE_CPU_PSTATES_SHIFT,4,2 ; @PWRMGT_DISABLE_CPU_PSTATES_SHIFT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"SetDisplaySizePowerParams data: 0x%X\n"

	.comm	_PPSMC_MSG_SetDisplaySizePowerParams,4,2 ; @PPSMC_MSG_SetDisplaySizePowerParams
	.no_dead_strip	_smu8_set_cpu_power_state
.subsections_via_symbols
