	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function renoir_print_clk_levels
_renoir_print_clk_levels:               ## @renoir_print_clk_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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	$0, -48(%rbp)
	movl	$0, -44(%rbp)
	movq	(%rdi), %rdx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -80(%rbp)
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movl	%esi, %r14d
	movq	_SMU_CLK_COUNT@GOTPCREL(%rip), %rax
	cmpl	%esi, (%rax)
	jbe	LBB0_2
## %bb.3:
	movq	%rdi, %r13
	movq	_SMU_TABLE_SMU_METRICS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rcx
	movq	%rdx, %r15
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_smu_update_table
	movq	%rbx, %rcx
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_18
## %bb.4:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	leal	-128(%r14), %eax
	cmpl	$5, %eax
	ja	LBB0_2
## %bb.5:
	movq	%r15, %rsi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_6:
	movq	-80(%rbp), %rax
	movq	_CLOCK_GFXCLK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %r15d
	leaq	-48(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	$131, %esi
	callq	_smu_get_dpm_freq_range
	xorl	%ebx, %ebx
	testl	%eax, %eax
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_18
## %bb.7:
	movl	-48(%rbp), %edx
	cmpl	%edx, %r15d
	sete	%al
	leaq	L_.str.1(%rip), %rbx
	leaq	L_.str.2(%rip), %rdi
	movq	%rdi, %rcx
	cmoveq	%rbx, %rcx
	cmpl	-44(%rbp), %r15d
	movq	%rdi, %rsi
	cmoveq	%rbx, %rsi
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	sete	%r13b
	cmoveq	%rdi, %rcx
	orb	%al, %r13b
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movq	%rax, %r14
	movslq	%r14d, %rdi
	addq	%r12, %rdi
	testb	%r13b, %r13b
	je	LBB0_9
## %bb.8:
	movq	_RENOIR_UMD_PSTATE_GFXCLK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	leaq	L_.str.2(%rip), %rbx
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	movl	%r15d, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_sprintf
	addq	%r14, %rax
	movslq	%eax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	%rbx, %rdi
	movl	-44(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %ebx
	jmp	LBB0_18
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_18:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	movq	_NUM_SOCCLK_DPM_LEVELS@GOTPCREL(%rip), %rcx
	movq	_CLOCK_SOCCLK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_10:
	movq	_NUM_MEMCLK_DPM_LEVELS@GOTPCREL(%rip), %rcx
	movq	_CLOCK_UMCCLK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_12:
	movq	_NUM_FCLK_DPM_LEVELS@GOTPCREL(%rip), %rcx
	movq	_CLOCK_FCLK@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_11:
	movq	_NUM_DCFCLK_DPM_LEVELS@GOTPCREL(%rip), %rcx
	movq	_CLOCK_DCFCLK@GOTPCREL(%rip), %rax
LBB0_14:
	movq	-80(%rbp), %rdx
	movl	(%rcx), %r15d
	testl	%r15d, %r15d
	jle	LBB0_15
## %bb.16:
	movq	(%rax), %rax
	cmpl	$0, (%rdx,%rax,4)
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %rdx
	cmoveq	%rax, %rdx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -88(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%rsi, %r13
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	callq	_GET_DPM_CUR_FREQ
	movslq	%ebx, %rbx
	leaq	(%r12,%rbx), %rdi
	leaq	L_.str.5(%rip), %rsi
	movl	%r14d, %edx
	xorl	%ecx, %ecx
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, %ebx
	incl	%r14d
	cmpl	%r14d, %r15d
	jne	LBB0_17
	jmp	LBB0_18
LBB0_15:
	xorl	%ebx, %ebx
	jmp	LBB0_18
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_6
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_SMU_CLK_COUNT,4,2              ## @SMU_CLK_COUNT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SMU_TABLE_SMU_METRICS,4,2      ## @SMU_TABLE_SMU_METRICS
	.comm	_CLOCK_GFXCLK,8,3               ## @CLOCK_GFXCLK
	.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	_RENOIR_UMD_PSTATE_GFXCLK,4,2   ## @RENOIR_UMD_PSTATE_GFXCLK
L_.str.4:                               ## @.str.4
	.asciz	"2: %uMhz %s\n"

	.comm	_NUM_SOCCLK_DPM_LEVELS,4,2      ## @NUM_SOCCLK_DPM_LEVELS
	.comm	_CLOCK_SOCCLK,8,3               ## @CLOCK_SOCCLK
	.comm	_NUM_MEMCLK_DPM_LEVELS,4,2      ## @NUM_MEMCLK_DPM_LEVELS
	.comm	_CLOCK_UMCCLK,8,3               ## @CLOCK_UMCCLK
	.comm	_NUM_DCFCLK_DPM_LEVELS,4,2      ## @NUM_DCFCLK_DPM_LEVELS
	.comm	_CLOCK_DCFCLK,8,3               ## @CLOCK_DCFCLK
	.comm	_NUM_FCLK_DPM_LEVELS,4,2        ## @NUM_FCLK_DPM_LEVELS
	.comm	_CLOCK_FCLK,8,3                 ## @CLOCK_FCLK
L_.str.5:                               ## @.str.5
	.asciz	"%d: %uMhz %s\n"

	.no_dead_strip	_renoir_print_clk_levels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function renoir_print_clk_levels
_renoir_print_clk_levels:               ; @renoir_print_clk_levels
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	stp	xzr, xzr, [sp, #32]
	ldr	x21, [x0]
	str	xzr, [sp, #24]
Lloh0:
	adrp	x8, _SMU_CLK_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU_CLK_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	x21, #0
	ccmp	w8, w1, #0, ne
	b.hi	LBB0_2
LBB0_1:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x2
	mov	x20, x1
	mov	x23, x0
Lloh6:
	adrp	x8, _SMU_TABLE_SMU_METRICS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SMU_TABLE_SMU_METRICS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x3, sp, #24
	mov	w2, #0
	mov	w4, #0
	bl	_smu_update_table
	mov	x22, x0
	cbz	w0, LBB0_4
LBB0_3:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_4:
	sub	w8, w20, #128
	cmp	w8, #5
	b.hi	LBB0_1
; %bb.5:
Lloh9:
	adrp	x9, lJTI0_0@PAGE
Lloh10:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:
	ldr	x8, [sp, #24]
Lloh11:
	adrp	x9, _CLOCK_GFXCLK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _CLOCK_GFXCLK@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	w21, [x8, x9, lsl #2]
	add	x2, sp, #44
	add	x3, sp, #40
	mov	x0, x23
	mov	w1, #131
	bl	_smu_get_dpm_freq_range
	cbnz	w0, LBB0_15
; %bb.7:
	ldp	w8, w2, [sp, #40]
	cmp	w21, w2
	cset	w9, eq
Lloh14:
	adrp	x22, l_.str.2@PAGE
Lloh15:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh16:
	adrp	x23, l_.str.1@PAGE
Lloh17:
	add	x23, x23, l_.str.1@PAGEOFF
	csel	x10, x23, x22, eq
	cmp	w21, w8
	cset	w8, eq
	csel	x24, x23, x22, eq
	csel	x10, x22, x10, eq
	orr	w25, w8, w9
	str	x10, [sp]
Lloh18:
	adrp	x1, l_.str@PAGE
Lloh19:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	mov	x20, x0
	add	x0, x19, w20, sxtw
Lloh20:
	adrp	x8, _RENOIR_UMD_PSTATE_GFXCLK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RENOIR_UMD_PSTATE_GFXCLK@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w25, #0
	csel	w2, w8, w21, ne
	csel	x8, x22, x23, ne
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	add	x20, x0, x20
	add	x0, x19, w20, sxtw
	ldr	w2, [sp, #40]
	str	x24, [sp]
Lloh25:
	adrp	x1, l_.str.4@PAGE
Lloh26:
	add	x1, x1, l_.str.4@PAGEOFF
	bl	_sprintf
	add	w22, w0, w20
	b	LBB0_3
LBB0_8:
Lloh27:
	adrp	x8, _NUM_SOCCLK_DPM_LEVELS@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NUM_SOCCLK_DPM_LEVELS@GOTPAGEOFF]
Lloh29:
	adrp	x9, _CLOCK_SOCCLK@GOTPAGE
Lloh30:
	ldr	x9, [x9, _CLOCK_SOCCLK@GOTPAGEOFF]
	b	LBB0_12
LBB0_9:
Lloh31:
	adrp	x8, _NUM_MEMCLK_DPM_LEVELS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _NUM_MEMCLK_DPM_LEVELS@GOTPAGEOFF]
Lloh33:
	adrp	x9, _CLOCK_UMCCLK@GOTPAGE
Lloh34:
	ldr	x9, [x9, _CLOCK_UMCCLK@GOTPAGEOFF]
	b	LBB0_12
LBB0_10:
Lloh35:
	adrp	x8, _NUM_FCLK_DPM_LEVELS@GOTPAGE
Lloh36:
	ldr	x8, [x8, _NUM_FCLK_DPM_LEVELS@GOTPAGEOFF]
Lloh37:
	adrp	x9, _CLOCK_FCLK@GOTPAGE
Lloh38:
	ldr	x9, [x9, _CLOCK_FCLK@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:
Lloh39:
	adrp	x8, _NUM_DCFCLK_DPM_LEVELS@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NUM_DCFCLK_DPM_LEVELS@GOTPAGEOFF]
Lloh41:
	adrp	x9, _CLOCK_DCFCLK@GOTPAGE
Lloh42:
	ldr	x9, [x9, _CLOCK_DCFCLK@GOTPAGEOFF]
LBB0_12:
	ldr	x10, [sp, #24]
	ldr	w25, [x8]
	cmp	w25, #1
	b.lt	LBB0_15
; %bb.13:
	mov	w23, #0
	mov	w22, #0
	ldr	x8, [x9]
	ldr	w8, [x10, x8, lsl #2]
Lloh43:
	adrp	x9, l_.str.2@PAGE
Lloh44:
	add	x9, x9, l_.str.2@PAGEOFF
Lloh45:
	adrp	x10, l_.str.1@PAGE
Lloh46:
	add	x10, x10, l_.str.1@PAGEOFF
	cmp	w8, #0
	csel	x26, x10, x9, eq
Lloh47:
	adrp	x24, l_.str.5@PAGE
Lloh48:
	add	x24, x24, l_.str.5@PAGEOFF
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	w3, #0
	bl	_GET_DPM_CUR_FREQ
	add	x0, x19, w22, sxtw
	stp	xzr, x26, [sp]
	mov	x1, x24
	mov	x2, x23
	bl	_sprintf
	add	w22, w22, w0
	add	w23, w23, #1
	cmp	w25, w23
	b.ne	LBB0_14
	b	LBB0_3
LBB0_15:
	mov	w22, #0
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
                                        ; -- End function
	.comm	_SMU_CLK_COUNT,4,2              ; @SMU_CLK_COUNT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SMU_TABLE_SMU_METRICS,4,2      ; @SMU_TABLE_SMU_METRICS
	.comm	_CLOCK_GFXCLK,8,3               ; @CLOCK_GFXCLK
	.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	_RENOIR_UMD_PSTATE_GFXCLK,4,2   ; @RENOIR_UMD_PSTATE_GFXCLK
l_.str.4:                               ; @.str.4
	.asciz	"2: %uMhz %s\n"

	.comm	_NUM_SOCCLK_DPM_LEVELS,4,2      ; @NUM_SOCCLK_DPM_LEVELS
	.comm	_CLOCK_SOCCLK,8,3               ; @CLOCK_SOCCLK
	.comm	_NUM_MEMCLK_DPM_LEVELS,4,2      ; @NUM_MEMCLK_DPM_LEVELS
	.comm	_CLOCK_UMCCLK,8,3               ; @CLOCK_UMCCLK
	.comm	_NUM_DCFCLK_DPM_LEVELS,4,2      ; @NUM_DCFCLK_DPM_LEVELS
	.comm	_CLOCK_DCFCLK,8,3               ; @CLOCK_DCFCLK
	.comm	_NUM_FCLK_DPM_LEVELS,4,2        ; @NUM_FCLK_DPM_LEVELS
	.comm	_CLOCK_FCLK,8,3                 ; @CLOCK_FCLK
l_.str.5:                               ; @.str.5
	.asciz	"%d: %uMhz %s\n"

	.no_dead_strip	_renoir_print_clk_levels
.subsections_via_symbols
