	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_get_mclks
_smu7_get_mclks:                        ## @smu7_get_mclks
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	(%rdi), %rcx
	movq	_PP_TABLE_V1@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_7
## %bb.1:
	movq	16(%r14), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	(%rax), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rax
	movl	(%rax,%rbx,4), %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	movq	(%r15), %rdx
	movl	%ecx, (%rdx,%rbx,4)
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_smu7_get_mem_latency
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r12), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_6:
	movl	%eax, 8(%r15)
	xorl	%eax, %eax
	jmp	LBB0_12
LBB0_7:
	movq	_PP_TABLE_V0@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_12
## %bb.8:
	movq	8(%r14), %rcx
	movl	(%rcx), %ebx
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.9:
	movq	8(%rcx), %rdx
	movq	(%r15), %rsi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rdi,4), %ebx
	addl	%ebx, %ebx
	leal	(%rbx,%rbx,4), %ebx
	movl	%ebx, (%rsi,%rdi,4)
	incq	%rdi
	movslq	(%rcx), %rbx
	cmpq	%rbx, %rdi
	jl	LBB0_10
LBB0_11:
	movl	%ebx, 8(%r15)
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_mclks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_get_mclks
_smu7_get_mclks:                        ; @smu7_get_mclks
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	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, [x20, #16]
	cbz	x8, LBB0_12
; %bb.2:
	ldr	x21, [x8]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	lsl	x23, x22, #2
	ldr	w9, [x8, x23]
	add	w9, w9, w9, lsl #2
	lsl	w9, w9, #1
	ldr	x10, [x19]
	str	w9, [x10, x23]
	ldr	w1, [x8, x23]
	mov	x0, x20
	bl	_smu7_get_mem_latency
	ldr	x8, [x19, #16]
	str	w0, [x8, x23]
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_4
LBB0_5:
	mov	w0, #0
	str	w8, [x19, #8]
	b	LBB0_13
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_11
; %bb.7:
	ldr	x8, [x20, #8]
	ldr	w12, [x8]
	cmp	w12, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x9, #0
	ldr	x10, [x8, #8]
	ldr	x11, [x19]
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, [x19, #8]
	b	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_13
LBB0_12:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	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_mclks
.subsections_via_symbols
