	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu8_print_clock_levels
_smu8_print_clock_levels:               ## @smu8_print_clock_levels
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	xorl	%r13d, %r13d
	cmpl	$129, %esi
	je	LBB0_6
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_5
## %bb.2:
	movq	8(%rdi), %r12
	movl	(%rdi), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cgs_read_ind_register
	movq	_TARGET_AND_CURRENT_PROFILE_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CURR_SCLK_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_PHM_GET_FIELD
	cmpl	$0, (%r12)
	jle	LBB0_5
## %bb.3:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r13
	leaq	(%r14,%r13), %rdi
	movq	8(%r12), %rax
	movslq	(%rax,%rbx,4), %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	cmpq	%rbx, %r15
	leaq	L_.str.2(%rip), %r8
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_sprintf
	addl	%eax, %r13d
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_4
	jmp	LBB0_5
LBB0_6:
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_cgs_read_ind_register
	movq	_TARGET_AND_CURRENT_PROFILE_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_CURR_MCLK_INDEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %edi
	callq	_PHM_GET_FIELD
	movl	%eax, %r15d
	movq	_SMU8_NUM_NBPMEMORYCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_5
## %bb.7:
	negl	%r15d
	movl	%edx, %r12d
	negl	%r12d
	xorl	%r13d, %r13d
	movq	%rdx, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r13
	leaq	(%r14,%r13), %rdi
	leal	(%r15,%rdx), %eax
	addl	%r12d, %edx
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	leal	-1(%rbx), %esi
	movslq	(%rcx,%rsi,4), %rcx
	imulq	$1374389535, %rcx, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$37, %rcx
	addl	%esi, %ecx
	cmpl	%ebx, %eax
	leaq	L_.str.2(%rip), %r8
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_sprintf
	addl	%eax, %r13d
	cmpq	$2, %rbx
	jl	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	_SMU8_NUM_NBPMEMORYCLOCK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	incq	%r12
	decq	%rbx
	jmp	LBB0_8
LBB0_5:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_ixTARGET_AND_CURRENT_PROFILE_INDEX,4,2 ## @ixTARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX,4,2 ## @TARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_CURR_SCLK_INDEX,4,2            ## @CURR_SCLK_INDEX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d: %uMhz %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"*"

L_.str.2:                               ## @.str.2
	.space	1

	.comm	_CURR_MCLK_INDEX,4,2            ## @CURR_MCLK_INDEX
	.comm	_SMU8_NUM_NBPMEMORYCLOCK,4,2    ## @SMU8_NUM_NBPMEMORYCLOCK
	.no_dead_strip	_smu8_print_clock_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu8_print_clock_levels
_smu8_print_clock_levels:               ; @smu8_print_clock_levels
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	cmp	w1, #129
	b.eq	LBB0_5
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_9
; %bb.2:
	ldr	x23, [x0, #8]
	ldr	w0, [x0]
Lloh0:
	adrp	x8, _CGS_IND_REG__SMC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CGS_IND_REG__SMC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_cgs_read_ind_register
Lloh6:
	adrp	x8, _TARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _CURR_SCLK_INDEX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CURR_SCLK_INDEX@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_PHM_GET_FIELD
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.3:
	mov	x21, #0
	mov	w20, #0
	mov	w24, w0
	mov	w25, #34079
	movk	w25, #20971, lsl #16
Lloh12:
	adrp	x26, l_.str.2@PAGE
Lloh13:
	add	x26, x26, l_.str.2@PAGEOFF
Lloh14:
	adrp	x27, l_.str.1@PAGE
Lloh15:
	add	x27, x27, l_.str.1@PAGEOFF
Lloh16:
	adrp	x22, l_.str@PAGE
Lloh17:
	add	x22, x22, l_.str@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, w20, sxtw
	ldr	x8, [x23, #8]
	ldrsw	x8, [x8, x21, lsl #2]
	mul	x8, x8, x25
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w3, w8, w9
	cmp	x24, x21
	csel	x4, x27, x26, eq
	mov	x1, x22
	mov	x2, x21
	bl	_sprintf
	add	w20, w0, w20
	add	x21, x21, #1
	ldrsw	x8, [x23]
	cmp	x21, x8
	b.lt	LBB0_4
	b	LBB0_10
LBB0_5:
	ldr	x22, [x0, #16]
	ldr	w0, [x0]
Lloh18:
	adrp	x8, _CGS_IND_REG__SMC@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CGS_IND_REG__SMC@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ixTARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
	bl	_cgs_read_ind_register
Lloh24:
	adrp	x8, _TARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TARGET_AND_CURRENT_PROFILE_INDEX@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
Lloh27:
	adrp	x8, _CURR_MCLK_INDEX@GOTPAGE
Lloh28:
	ldr	x8, [x8, _CURR_MCLK_INDEX@GOTPAGEOFF]
Lloh29:
	ldr	w2, [x8]
	bl	_PHM_GET_FIELD
Lloh30:
	adrp	x8, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGEOFF]
Lloh32:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.6:
	mov	w20, #0
	neg	w24, w0
	neg	w25, w8
Lloh33:
	adrp	x26, l_.str.2@PAGE
Lloh34:
	add	x26, x26, l_.str.2@PAGEOFF
	mov	w27, #34079
	movk	w27, #20971, lsl #16
Lloh35:
	adrp	x28, l_.str.1@PAGE
Lloh36:
	add	x28, x28, l_.str.1@PAGEOFF
	mov	x23, x8
Lloh37:
	adrp	x21, l_.str@PAGE
Lloh38:
	add	x21, x21, l_.str@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, w20, sxtw
	add	w2, w25, w8
	ldr	x9, [x22]
	sub	w10, w23, #1
	ldrsw	x9, [x9, w10, uxtw #2]
	mul	x9, x9, x27
	lsr	x10, x9, #63
	asr	x9, x9, #37
	add	w3, w9, w10
	add	w8, w24, w8
	cmp	w8, w23
	csel	x4, x28, x26, eq
	mov	x1, x21
	bl	_sprintf
	add	w20, w0, w20
	cmp	x23, #2
	b.lt	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh39:
	adrp	x8, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGE
Lloh40:
	ldr	x8, [x8, _SMU8_NUM_NBPMEMORYCLOCK@GOTPAGEOFF]
Lloh41:
	ldr	w8, [x8]
	add	x25, x25, #1
	sub	x23, x23, #1
	b	LBB0_7
LBB0_9:
	mov	w20, #0
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_ixTARGET_AND_CURRENT_PROFILE_INDEX,4,2 ; @ixTARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_TARGET_AND_CURRENT_PROFILE_INDEX,4,2 ; @TARGET_AND_CURRENT_PROFILE_INDEX
	.comm	_CURR_SCLK_INDEX,4,2            ; @CURR_SCLK_INDEX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d: %uMhz %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"*"

l_.str.2:                               ; @.str.2
	.space	1

	.comm	_CURR_MCLK_INDEX,4,2            ; @CURR_MCLK_INDEX
	.comm	_SMU8_NUM_NBPMEMORYCLOCK,4,2    ; @SMU8_NUM_NBPMEMORYCLOCK
	.no_dead_strip	_smu8_print_clock_levels
.subsections_via_symbols
