	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu10_print_clock_levels
_smu10_print_clock_levels:              ## @smu10_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	%rdi, %rbx
	movq	(%rdi), %r15
	xorl	%r13d, %r13d
	cmpl	$129, %esi
	je	LBB0_7
## %bb.1:
	cmpl	$128, %esi
	jne	LBB0_10
## %bb.2:
	movq	%rdx, %r12
	movq	_PPSMC_MSG_GetGfxclkFrequency@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smum_send_msg_to_smc
	movq	%rbx, %rdi
	callq	_smum_get_argument
	movl	%eax, %r14d
	movslq	(%r15), %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movslq	4(%r15), %rcx
	imulq	$1374389535, %rcx, %r15         ## imm = 0x51EB851F
	movq	%r15, %rcx
	shrq	$63, %rcx
	sarq	$37, %r15
	addl	%ecx, %r15d
	cmpl	%eax, %r14d
	jne	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rsi
	leaq	L_.str.2(%rip), %rcx
	movq	%r12, %rbx
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movl	%eax, %r13d
	movslq	%eax, %rdi
	addq	%r12, %rdi
	leaq	L_.str.1(%rip), %r15
	jmp	LBB0_5
LBB0_7:
	movq	%rdx, %r12
	movq	8(%r15), %r14
	movq	_PPSMC_MSG_GetFclkFrequency@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smum_send_msg_to_smc
	movq	%rbx, %rdi
	callq	_smum_get_argument
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.8:
	movl	%eax, %r15d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%r13d, %r13
	leaq	(%r12,%r13), %rdi
	movq	8(%r14), %rax
	movslq	(%rax,%rbx,4), %rax
	imulq	$1374389535, %rax, %rcx         ## imm = 0x51EB851F
	movq	%rcx, %rax
	shrq	$63, %rax
	sarq	$37, %rcx
	addl	%eax, %ecx
	cmpl	%r15d, %ecx
	leaq	L_.str.2(%rip), %r8
	leaq	L_.str.1(%rip), %rax
	cmoveq	%rax, %r8
	leaq	L_.str.5(%rip), %rsi
	movl	%ebx, %edx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %r13d
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_9
	jmp	LBB0_10
LBB0_4:
	cmpl	%r15d, %r14d
	leaq	L_.str.1(%rip), %r13
	leaq	L_.str.2(%rip), %rcx
	cmoveq	%r13, %rcx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rbx
	movq	%r12, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_sprintf
	movq	%r13, %rcx
	movslq	%eax, %r13
	leaq	(%r12,%r13), %rdi
	cmpl	%r15d, %r14d
	leaq	L_.str.2(%rip), %r15
	jne	LBB0_6
LBB0_5:
	movq	_SMU10_UMD_PSTATE_GFXCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leaq	L_.str.2(%rip), %rcx
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	xorl	%eax, %eax
	callq	_sprintf
	addl	%r13d, %eax
	movslq	%eax, %r13
	addq	%r13, %rbx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	imulq	$1374389535, %rax, %rdx         ## imm = 0x51EB851F
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$37, %rdx
	addl	%eax, %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	movq	%r15, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %r13d
LBB0_10:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_GetGfxclkFrequency,4,2 ## @PPSMC_MSG_GetGfxclkFrequency
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"0: %uMhz %s\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"1: %uMhz %s\n"

	.comm	_SMU10_UMD_PSTATE_GFXCLK,4,2    ## @SMU10_UMD_PSTATE_GFXCLK
L_.str.4:                               ## @.str.4
	.asciz	"2: %uMhz %s\n"

	.comm	_PPSMC_MSG_GetFclkFrequency,4,2 ## @PPSMC_MSG_GetFclkFrequency
L_.str.5:                               ## @.str.5
	.asciz	"%d: %uMhz %s\n"

	.no_dead_strip	_smu10_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 smu10_print_clock_levels
_smu10_print_clock_levels:              ; @smu10_print_clock_levels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x20, x0
	ldr	x23, [x0]
	cmp	w1, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _PPSMC_MSG_GetGfxclkFrequency@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_GetGfxclkFrequency@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_smum_send_msg_to_smc
	mov	x0, x20
	bl	_smum_get_argument
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	ldpsw	x9, x10, [x23]
	mul	x9, x9, x8
	lsr	x11, x9, #63
	asr	x9, x9, #37
	mul	x8, x10, x8
	lsr	x10, x8, #63
	asr	x8, x8, #37
	add	w22, w8, w10
	add	w8, w9, w11
	cmp	w0, w8
	b.ne	LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, l_.str.2@PAGE
Lloh4:
	add	x8, x8, l_.str.2@PAGEOFF
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_sprintf
	mov	x21, x0
	add	x0, x19, w0, sxtw
Lloh7:
	adrp	x24, l_.str.1@PAGE
Lloh8:
	add	x24, x24, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_4:
	ldr	x24, [x23, #8]
Lloh9:
	adrp	x8, _PPSMC_MSG_GetFclkFrequency@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PPSMC_MSG_GetFclkFrequency@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_smum_send_msg_to_smc
	mov	x0, x20
	bl	_smum_get_argument
	ldr	w8, [x24]
	cmp	w8, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, x0
	mov	x22, #0
	mov	w20, #0
	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	x23, l_.str.5@PAGE
Lloh17:
	add	x23, x23, l_.str.5@PAGEOFF
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, x19, w20, sxtw
	ldr	x8, [x24, #8]
	ldrsw	x8, [x8, x22, lsl #2]
	mul	x8, x8, x25
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	cmp	w8, w21
	csel	x9, x27, x26, eq
	stp	x8, x9, [sp]
	mov	x1, x23
	mov	x2, x22
	bl	_sprintf
	add	w20, w0, w20
	add	x22, x22, #1
	ldrsw	x8, [x24]
	cmp	x22, x8
	b.lt	LBB0_6
	b	LBB0_11
LBB0_7:
	mov	w20, #0
	b	LBB0_11
LBB0_8:
	mov	x20, x0
Lloh18:
	adrp	x24, l_.str.2@PAGE
Lloh19:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh20:
	adrp	x25, l_.str.1@PAGE
Lloh21:
	add	x25, x25, l_.str.1@PAGEOFF
	cmp	w0, w22
	csel	x8, x25, x24, eq
	str	x8, [sp]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, x22
	bl	_sprintf
	mov	x21, x0
	add	x0, x19, w0, sxtw
	cmp	w20, w22
	b.ne	LBB0_10
LBB0_9:
Lloh24:
	adrp	x8, _SMU10_UMD_PSTATE_GFXCLK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _SMU10_UMD_PSTATE_GFXCLK@GOTPAGEOFF]
Lloh26:
	ldr	w20, [x8]
Lloh27:
	adrp	x25, l_.str.2@PAGE
Lloh28:
	add	x25, x25, l_.str.2@PAGEOFF
LBB0_10:
	str	x25, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x2, x20
	bl	_sprintf
	add	w20, w0, w21
	add	x0, x19, w20, sxtw
	ldrsw	x8, [x23]
	mov	w9, #34079
	movk	w9, #20971, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w2, w8, w9
	str	x24, [sp]
Lloh31:
	adrp	x1, l_.str.4@PAGE
Lloh32:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sprintf
	add	w20, w0, w20
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_GetGfxclkFrequency,4,2 ; @PPSMC_MSG_GetGfxclkFrequency
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"0: %uMhz %s\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"1: %uMhz %s\n"

	.comm	_SMU10_UMD_PSTATE_GFXCLK,4,2    ; @SMU10_UMD_PSTATE_GFXCLK
l_.str.4:                               ; @.str.4
	.asciz	"2: %uMhz %s\n"

	.comm	_PPSMC_MSG_GetFclkFrequency,4,2 ; @PPSMC_MSG_GetFclkFrequency
l_.str.5:                               ; @.str.5
	.asciz	"%d: %uMhz %s\n"

	.no_dead_strip	_smu10_print_clock_levels
.subsections_via_symbols
