	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_get_current_clocks         ## -- Begin function smu_get_current_clocks
	.p2align	4, 0x90
_smu_get_current_clocks:                ## @smu_get_current_clocks
	.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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	16(%rdi), %edi
	callq	_is_support_sw_smu
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_mutex_lock
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_smu_get_dal_power_level
	cmpq	$0, 8(%rbx)
	jne	LBB0_3
## %bb.4:
	movq	_PERF_LEVEL_ACTIVITY@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_12
LBB0_3:
	movq	_PERF_LEVEL_POWER_CONTAINMENT@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_smu_get_clock_info
	movl	%eax, %r15d
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	jmp	LBB0_11
LBB0_7:
	movl	-28(%rbp), %eax
	movl	%eax, 28(%r14)
	movl	-32(%rbp), %eax
	movl	%eax, 24(%r14)
	movaps	-48(%rbp), %xmm0
	movss	%xmm0, 36(%r14)
	extractps	$1, %xmm0, 32(%r14)
	movups	%xmm0, 8(%r14)
	movq	-64(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_PP_DAL_POWERLEVEL_7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_9:
	movq	%rax, (%r14)
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_smu_get_current_shallow_sleep_clocks
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r14)
	movl	-48(%rbp), %eax
	movl	%eax, 8(%r14)
LBB0_11:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r15d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PERF_LEVEL_POWER_CONTAINMENT,4,2 ## @PERF_LEVEL_POWER_CONTAINMENT
	.comm	_PERF_LEVEL_ACTIVITY,4,2        ## @PERF_LEVEL_ACTIVITY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in smu_get_clock_info\n"

	.comm	_PP_DAL_POWERLEVEL_7,8,3        ## @PP_DAL_POWERLEVEL_7
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu_get_current_clocks         ; -- Begin function smu_get_current_clocks
	.p2align	2
_smu_get_current_clocks:                ; @smu_get_current_clocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x20, x1
	mov	x19, x0
	stp	xzr, xzr, [sp, #32]
	ldr	w0, [x0, #16]
	bl	_is_support_sw_smu
	cbz	w0, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	add	x1, sp, #32
	mov	x0, x19
	bl	_smu_get_dal_power_level
Lloh0:
	adrp	x8, _PERF_LEVEL_ACTIVITY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PERF_LEVEL_ACTIVITY@GOTPAGEOFF]
	ldr	x9, [x19, #8]
Lloh2:
	adrp	x10, _PERF_LEVEL_POWER_CONTAINMENT@GOTPAGE
Lloh3:
	ldr	x10, [x10, _PERF_LEVEL_POWER_CONTAINMENT@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x8, x10, eq
	ldr	w2, [x8]
	mov	x1, sp
	mov	x0, x19
	bl	_smu_get_clock_info
	mov	x21, x0
	cbz	w0, LBB0_4
; %bb.2:
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	b	LBB0_6
LBB0_3:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_7
LBB0_4:
	ldr	d0, [sp, #16]
	str	d0, [x20, #24]
	ldr	q0, [sp]
	rev64.2s	v1, v0
	str	d1, [x20, #32]
	stur	q0, [x20, #8]
	ldr	x8, [sp, #32]
Lloh9:
	adrp	x9, _PP_DAL_POWERLEVEL_7@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PP_DAL_POWERLEVEL_7@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, #0
	csel	x8, x9, x8, eq
	str	x8, [x20]
	mov	x1, sp
	mov	x0, x19
	bl	_smu_get_current_shallow_sleep_clocks
	cbnz	w0, LBB0_6
; %bb.5:
	ldr	d0, [sp]
	str	d0, [x20, #8]
LBB0_6:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_7:
	mov	x0, x21
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PERF_LEVEL_POWER_CONTAINMENT,4,2 ; @PERF_LEVEL_POWER_CONTAINMENT
	.comm	_PERF_LEVEL_ACTIVITY,4,2        ; @PERF_LEVEL_ACTIVITY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in smu_get_clock_info\n"

	.comm	_PP_DAL_POWERLEVEL_7,8,3        ; @PP_DAL_POWERLEVEL_7
.subsections_via_symbols
