	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pp_get_display_mode_validation_clocks
_pp_get_display_mode_validation_clocks: ## @pp_get_display_mode_validation_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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	movq	%rdi, %r15
	cmpl	$0, 8(%rdi)
	je	LBB0_3
## %bb.4:
	movq	_PP_DAL_POWERLEVEL_7@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	4(%r15), %edi
	movq	_PHM_PlatformCaps_DynamicPatchPowerState@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_phm_cap_enabled
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_phm_get_max_high_clocks
	movl	%eax, %ebx
	jmp	LBB0_7
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_8
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PP_DAL_POWERLEVEL_7,4,2        ## @PP_DAL_POWERLEVEL_7
	.comm	_PHM_PlatformCaps_DynamicPatchPowerState,4,2 ## @PHM_PlatformCaps_DynamicPatchPowerState
	.no_dead_strip	_pp_get_display_mode_validation_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_display_mode_validation_clocks
_pp_get_display_mode_validation_clocks: ; @pp_get_display_mode_validation_clocks
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_5
; %bb.3:
Lloh0:
	adrp	x8, _PP_DAL_POWERLEVEL_7@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PP_DAL_POWERLEVEL_7@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20]
	mov	x0, x19
	bl	_mutex_lock
	ldr	w0, [x19, #4]
Lloh3:
	adrp	x8, _PHM_PlatformCaps_DynamicPatchPowerState@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHM_PlatformCaps_DynamicPatchPowerState@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_phm_cap_enabled
	cbz	x0, LBB0_6
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	bl	_phm_get_max_high_clocks
	mov	x20, x0
	b	LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_8
LBB0_6:
	mov	w20, #0
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_8:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PP_DAL_POWERLEVEL_7,4,2        ; @PP_DAL_POWERLEVEL_7
	.comm	_PHM_PlatformCaps_DynamicPatchPowerState,4,2 ; @PHM_PlatformCaps_DynamicPatchPowerState
	.no_dead_strip	_pp_get_display_mode_validation_clocks
.subsections_via_symbols
