	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_force_dpm_highest
_smu7_force_dpm_highest:                ## @smu7_force_dpm_highest
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	(%rdi), %rbx
	cmpl	$0, 20(%rbx)
	jne	LBB0_5
## %bb.1:
	movl	(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_5
## %bb.2:
	xorl	%edx, %edx
	movl	%eax, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%ecx
	incl	%edx
	cmpl	$3, %eax
	movl	%ecx, %eax
	ja	LBB0_3
## %bb.4:
	movq	_PPSMC_MSG_PCIeDPM_ForceLevel@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_5:
	cmpl	$0, 16(%rbx)
	jne	LBB0_10
## %bb.6:
	movl	4(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_10
## %bb.7:
	movl	$-1, %ecx
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%edx
	incl	%ecx
	cmpl	$3, %eax
	movl	%edx, %eax
	ja	LBB0_8
## %bb.9:
	movq	_PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_10:
	cmpl	$0, 12(%rbx)
	jne	LBB0_15
## %bb.11:
	movl	8(%rbx), %eax
	cmpl	$2, %eax
	jb	LBB0_15
## %bb.12:
	movl	$-1, %ecx
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	sarl	%edx
	incl	%ecx
	cmpl	$3, %eax
	movl	%edx, %eax
	ja	LBB0_13
## %bb.14:
	movq	_PPSMC_MSG_MCLKDPM_SetEnabledMask@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$2, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	movq	%r14, %rdi
	callq	_smum_send_msg_to_smc_with_parameter
LBB0_15:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_PCIeDPM_ForceLevel,4,2 ## @PPSMC_MSG_PCIeDPM_ForceLevel
	.comm	_PPSMC_MSG_SCLKDPM_SetEnabledMask,4,2 ## @PPSMC_MSG_SCLKDPM_SetEnabledMask
	.comm	_PPSMC_MSG_MCLKDPM_SetEnabledMask,4,2 ## @PPSMC_MSG_MCLKDPM_SetEnabledMask
	.no_dead_strip	_smu7_force_dpm_highest
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_force_dpm_highest
_smu7_force_dpm_highest:                ; @smu7_force_dpm_highest
	.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
	mov	x19, x0
	ldr	x20, [x0]
	ldr	w8, [x20, #20]
	cbnz	w8, LBB0_5
; %bb.1:
	ldr	w8, [x20]
	cmp	w8, #2
	b.lo	LBB0_5
; %bb.2:
	mov	w2, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	asr	w9, w8, #1
	add	w2, w2, #1
	cmp	w8, #3
	mov	x8, x9
	b.hi	LBB0_3
; %bb.4:
Lloh0:
	adrp	x8, _PPSMC_MSG_PCIeDPM_ForceLevel@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_PCIeDPM_ForceLevel@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_5:
	ldr	w8, [x20, #16]
	cbnz	w8, LBB0_10
; %bb.6:
	ldr	w9, [x20, #4]
	cmp	w9, #2
	b.lo	LBB0_10
; %bb.7:
	mov	w8, #-1
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	asr	w10, w9, #1
	add	w8, w8, #1
	cmp	w9, #3
	mov	x9, x10
	b.hi	LBB0_8
; %bb.9:
Lloh3:
	adrp	x9, _PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PPSMC_MSG_SCLKDPM_SetEnabledMask@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	w9, #2
	lsl	w2, w9, w8
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_10:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_15
; %bb.11:
	ldr	w9, [x20, #8]
	cmp	w9, #2
	b.lo	LBB0_15
; %bb.12:
	mov	w8, #-1
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	asr	w10, w9, #1
	add	w8, w8, #1
	cmp	w9, #3
	mov	x9, x10
	b.hi	LBB0_13
; %bb.14:
Lloh6:
	adrp	x9, _PPSMC_MSG_MCLKDPM_SetEnabledMask@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PPSMC_MSG_MCLKDPM_SetEnabledMask@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	mov	w9, #2
	lsl	w2, w9, w8
	mov	x0, x19
	bl	_smum_send_msg_to_smc_with_parameter
LBB0_15:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_PCIeDPM_ForceLevel,4,2 ; @PPSMC_MSG_PCIeDPM_ForceLevel
	.comm	_PPSMC_MSG_SCLKDPM_SetEnabledMask,4,2 ; @PPSMC_MSG_SCLKDPM_SetEnabledMask
	.comm	_PPSMC_MSG_MCLKDPM_SetEnabledMask,4,2 ; @PPSMC_MSG_MCLKDPM_SetEnabledMask
	.no_dead_strip	_smu7_force_dpm_highest
.subsections_via_symbols
