	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_get_current_clocks
_pp_get_current_clocks:                 ## @pp_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	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	%rdi, %rbx
	cmpl	$0, 20(%rdi)
	je	LBB0_2
## %bb.3:
	movq	%rsi, %r14
	movq	%rbx, %rdi
	callq	_mutex_lock
	leaq	-64(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_phm_get_dal_power_level
	movl	16(%rbx), %edi
	movq	_PHM_PlatformCaps_PowerContainment@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	movq	8(%rbx), %rsi
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:
	movq	_PHM_PerformanceLevelDesignation_Activity@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_PHM_PerformanceLevelDesignation_PowerContainment@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %ecx
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_phm_get_clock_info
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	leaq	L_.str(%rip), %rdi
	callq	_pr_debug
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_13:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_8:
	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_10
## %bb.9:
	movq	_PP_DAL_POWERLEVEL_7@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_10:
	movq	%rax, (%r14)
	movq	8(%rbx), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_phm_get_current_shallow_sleep_clocks
	testq	%rax, %rax
	jne	LBB0_12
## %bb.11:
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r14)
	movl	-48(%rbp), %eax
	movl	%eax, 8(%r14)
LBB0_12:
	movq	%rbx, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PHM_PlatformCaps_PowerContainment,4,2 ## @PHM_PlatformCaps_PowerContainment
	.comm	_PHM_PerformanceLevelDesignation_PowerContainment,4,2 ## @PHM_PerformanceLevelDesignation_PowerContainment
	.comm	_PHM_PerformanceLevelDesignation_Activity,4,2 ## @PHM_PerformanceLevelDesignation_Activity
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Error in phm_get_clock_info \n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pp_get_current_clocks
_pp_get_current_clocks:                 ; @pp_get_current_clocks
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	stp	xzr, xzr, [sp, #32]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #20]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x20, x1
	mov	x0, x19
	bl	_mutex_lock
	add	x1, sp, #32
	mov	x0, x19
	bl	_phm_get_dal_power_level
	ldr	w0, [x19, #16]
Lloh0:
	adrp	x8, _PHM_PlatformCaps_PowerContainment@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_PowerContainment@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_phm_cap_enabled
Lloh3:
	adrp	x8, _PHM_PerformanceLevelDesignation_Activity@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHM_PerformanceLevelDesignation_Activity@GOTPAGEOFF]
	ldr	x1, [x19, #8]
Lloh5:
	adrp	x9, _PHM_PerformanceLevelDesignation_PowerContainment@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PHM_PerformanceLevelDesignation_PowerContainment@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x8, x9, eq
	ldr	w3, [x8]
	mov	x2, sp
	mov	x0, x19
	bl	_phm_get_clock_info
	cbz	w0, LBB0_6
; %bb.3:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_mutex_unlock
LBB0_4:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	ldr	d0, [sp, #16]
	str	d0, [x20, #24]
	ldr	q0, [sp]
	rev64.2s	v1, v0
	str	d1, [x20, #32]
	stur	q0, [x20, #8]
Lloh12:
	adrp	x8, _PP_DAL_POWERLEVEL_7@GOTPAGE
Lloh13:
	ldr	x8, [x8, _PP_DAL_POWERLEVEL_7@GOTPAGEOFF]
	ldr	x9, [sp, #32]
Lloh14:
	ldr	x8, [x8]
	cmp	x9, #0
	csel	x8, x8, x9, eq
	str	x8, [x20]
	ldr	x1, [x19, #8]
	mov	x2, sp
	mov	x0, x19
	bl	_phm_get_current_shallow_sleep_clocks
	cbnz	x0, LBB0_8
; %bb.7:
	ldr	d0, [sp]
	str	d0, [x20, #8]
LBB0_8:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PHM_PlatformCaps_PowerContainment,4,2 ; @PHM_PlatformCaps_PowerContainment
	.comm	_PHM_PerformanceLevelDesignation_PowerContainment,4,2 ; @PHM_PerformanceLevelDesignation_PowerContainment
	.comm	_PHM_PerformanceLevelDesignation_Activity,4,2 ; @PHM_PerformanceLevelDesignation_Activity
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Error in phm_get_clock_info \n"

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