	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function query_current_values_with_pending_wait
_query_current_values_with_pending_wait: ## @query_current_values_with_pending_wait
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_cpu_family@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_CPU_HW_PSTATE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	_MSR_PSTATE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movl	$0, (%rbx)
	movq	_boot_cpu_data@GOTPCREL(%rip), %rax
	cmpl	$17, (%rax)
	jne	LBB0_5
## %bb.2:
	cmpl	$0, 4(%rbx)
	jg	LBB0_5
## %bb.3:
	movq	_HW_PSTATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_5
LBB0_4:
	movq	_MSR_FIDVID_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_rdmsr
	movq	$0, 8(%rbx)
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_family,8,3                 ## @cpu_family
	.comm	_CPU_HW_PSTATE,8,3              ## @CPU_HW_PSTATE
	.comm	_MSR_PSTATE_STATUS,4,2          ## @MSR_PSTATE_STATUS
	.comm	_HW_PSTATE_MASK,4,2             ## @HW_PSTATE_MASK
	.comm	_boot_cpu_data,4,2              ## @boot_cpu_data
	.comm	_HW_PSTATE_0,4,2                ## @HW_PSTATE_0
	.comm	_MSR_FIDVID_STATUS,4,2          ## @MSR_FIDVID_STATUS
	.comm	_MSR_S_LO_CHANGE_PENDING,4,2    ## @MSR_S_LO_CHANGE_PENDING
	.comm	_MSR_S_HI_CURRENT_VID,4,2       ## @MSR_S_HI_CURRENT_VID
	.comm	_MSR_S_LO_CURRENT_FID,4,2       ## @MSR_S_LO_CURRENT_FID
	.no_dead_strip	_query_current_values_with_pending_wait
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function query_current_values_with_pending_wait
_query_current_values_with_pending_wait: ; @query_current_values_with_pending_wait
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _cpu_family@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_family@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _CPU_HW_PSTATE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CPU_HW_PSTATE@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x8, _MSR_PSTATE_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MSR_PSTATE_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_rdmsr
	str	wzr, [x19]
Lloh9:
	adrp	x8, _boot_cpu_data@GOTPAGE
Lloh10:
	ldr	x8, [x8, _boot_cpu_data@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, #17
	b.ne	LBB0_5
; %bb.2:
	ldr	w8, [x19, #4]
	cmp	w8, #0
	b.gt	LBB0_5
; %bb.3:
Lloh12:
	adrp	x8, _HW_PSTATE_0@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HW_PSTATE_0@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_5
LBB0_4:
Lloh15:
	adrp	x8, _MSR_FIDVID_STATUS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MSR_FIDVID_STATUS@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_rdmsr
	str	xzr, [x19, #8]
LBB0_5:
	mov	w0, #0
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_family,8,3                 ; @cpu_family
	.comm	_CPU_HW_PSTATE,8,3              ; @CPU_HW_PSTATE
	.comm	_MSR_PSTATE_STATUS,4,2          ; @MSR_PSTATE_STATUS
	.comm	_HW_PSTATE_MASK,4,2             ; @HW_PSTATE_MASK
	.comm	_boot_cpu_data,4,2              ; @boot_cpu_data
	.comm	_HW_PSTATE_0,4,2                ; @HW_PSTATE_0
	.comm	_MSR_FIDVID_STATUS,4,2          ; @MSR_FIDVID_STATUS
	.comm	_MSR_S_LO_CHANGE_PENDING,4,2    ; @MSR_S_LO_CHANGE_PENDING
	.comm	_MSR_S_HI_CURRENT_VID,4,2       ; @MSR_S_HI_CURRENT_VID
	.comm	_MSR_S_LO_CURRENT_FID,4,2       ; @MSR_S_LO_CURRENT_FID
	.no_dead_strip	_query_current_values_with_pending_wait
.subsections_via_symbols
