	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_get_sclks
_smu7_get_sclks:                        ## @smu7_get_sclks
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_PP_TABLE_V1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.1:
	movq	16(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_13
## %bb.3:
	movl	(%r8), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movq	8(%r8), %rcx
	movq	(%rsi), %rdx
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdi,4), %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, (%rdx,%rdi,4)
	incq	%rdi
	movslq	(%r8), %rax
	cmpq	%rax, %rdi
	jl	LBB0_5
LBB0_6:
	movl	%eax, 8(%rsi)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_7:
	movq	_PP_TABLE_V0@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.8:
	movq	8(%rdi), %r8
	movl	(%r8), %edx
	testl	%edx, %edx
	jle	LBB0_11
## %bb.9:
	movq	8(%r8), %r9
	movq	(%rsi), %rdi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rcx,4), %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	movl	%edx, (%rdi,%rcx,4)
	incq	%rcx
	movslq	(%r8), %rdx
	cmpq	%rdx, %rcx
	jl	LBB0_10
LBB0_11:
	movl	%edx, 8(%rsi)
LBB0_12:
	popq	%rbp
	retq
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PP_TABLE_V1,8,3                ## @PP_TABLE_V1
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PP_TABLE_V0,8,3                ## @PP_TABLE_V0
	.no_dead_strip	_smu7_get_sclks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_get_sclks
_smu7_get_sclks:                        ; @smu7_get_sclks
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _PP_TABLE_V1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PP_TABLE_V1@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_11
; %bb.2:
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.3:
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_10
; %bb.4:
	mov	x9, #0
	ldr	x10, [x8, #8]
	ldr	x11, [x1]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	add	w13, w13, w13, lsl #2
	lsl	w13, w13, #1
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_5
	b	LBB0_10
LBB0_6:
Lloh3:
	adrp	x9, _PP_TABLE_V0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PP_TABLE_V0@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_12
; %bb.7:
	ldr	x8, [x0, #8]
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x9, #0
	ldr	x10, [x8, #8]
	ldr	x11, [x1]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x12, x9, #2
	ldr	w13, [x10, x12]
	add	w13, w13, w13, lsl #2
	lsl	w13, w13, #1
	str	w13, [x11, x12]
	add	x9, x9, #1
	ldrsw	x12, [x8]
	cmp	x9, x12
	b.lt	LBB0_9
LBB0_10:
	mov	w0, #0
	str	w12, [x1, #8]
	ret
LBB0_11:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
	ret
LBB0_12:
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PP_TABLE_V1,8,3                ; @PP_TABLE_V1
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PP_TABLE_V0,8,3                ; @PP_TABLE_V0
	.no_dead_strip	_smu7_get_sclks
.subsections_via_symbols
