	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_patch_compute_profile_mode
_smu7_patch_compute_profile_mode:       ## @smu7_patch_compute_profile_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	8(%rdi), %rax
	movq	_PP_SMC_POWER_PROFILE_COMPUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%esi, %ecx
	jne	LBB0_5
## %bb.1:
	movl	(%rax), %eax
	cmpl	$2, %eax
	jb	LBB0_6
## %bb.2:
	movl	$-1, %ecx
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%edx
	incl	%ecx
	cmpl	$3, %eax
	movl	%edx, %eax
	ja	LBB0_3
## %bb.4:
	movq	_PP_SCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$3, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	popq	%rbp
	jmp	_smu7_force_clock_level         ## TAILCALL
LBB0_5:
	cmpl	%ecx, (%rdi)
	jne	LBB0_6
## %bb.7:
	movq	_PP_SCLK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	popq	%rbp
	jmp	_smu7_force_clock_level         ## TAILCALL
LBB0_6:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_SMC_POWER_PROFILE_COMPUTE,4,2 ## @PP_SMC_POWER_PROFILE_COMPUTE
	.comm	_PP_SCLK,4,2                    ## @PP_SCLK
	.no_dead_strip	_smu7_patch_compute_profile_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_patch_compute_profile_mode
_smu7_patch_compute_profile_mode:       ; @smu7_patch_compute_profile_mode
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PP_SMC_POWER_PROFILE_COMPUTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PP_SMC_POWER_PROFILE_COMPUTE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w9, w1
	b.ne	LBB0_5
; %bb.1:
	ldr	w9, [x8]
	cmp	w9, #2
	b.lo	LBB0_7
; %bb.2:
	mov	w8, #-1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	asr	w10, w9, #1
	add	w8, w8, #1
	cmp	w9, #3
	mov	x9, x10
	b.hi	LBB0_3
; %bb.4:
Lloh3:
	adrp	x9, _PP_SCLK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PP_SCLK@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x9]
	mov	w9, #3
	lsl	w2, w9, w8
	b	_smu7_force_clock_level
LBB0_5:
	ldr	w10, [x0]
	cmp	w10, w9
	b.ne	LBB0_7
; %bb.6:
Lloh6:
	adrp	x9, _PP_SCLK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PP_SCLK@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	ldr	w2, [x8]
	b	_smu7_force_clock_level
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_SMC_POWER_PROFILE_COMPUTE,4,2 ; @PP_SMC_POWER_PROFILE_COMPUTE
	.comm	_PP_SCLK,4,2                    ; @PP_SCLK
	.no_dead_strip	_smu7_patch_compute_profile_mode
.subsections_via_symbols
