	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_cst_has_changed ## -- Begin function acpi_processor_cst_has_changed
	.p2align	4, 0x90
_acpi_processor_cst_has_changed:        ## @acpi_processor_cst_has_changed
	.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
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_boot_option_idle_override@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpq	$0, (%rax)
	jne	LBB0_10
## %bb.1:
	movq	%rdi, %r14
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.4:
	movq	_nocst@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
LBB0_5:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_3:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	cmpl	$0, 16(%r14)
	je	LBB0_5
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_cpuidle_pause_and_lock
	movq	%r14, %rdi
	callq	_cpuidle_disable_device
	movq	%r14, %rdi
	callq	_acpi_processor_get_power_info
	cmpq	$0, 8(%r14)
	je	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_acpi_processor_setup_cpuidle
	movq	%r14, %rdi
	callq	_cpuidle_enable_device
	movl	%eax, %ebx
LBB0_9:
	xorl	%eax, %eax
	callq	_cpuidle_resume_and_unlock
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_boot_option_idle_override,8,3  ## @boot_option_idle_override
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_nocst,8,3                      ## @nocst
	.comm	_ENODEV,4,2                     ## @ENODEV
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_processor_cst_has_changed ; -- Begin function acpi_processor_cst_has_changed
	.p2align	2
_acpi_processor_cst_has_changed:        ; @acpi_processor_cst_has_changed
	.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
Lloh0:
	adrp	x8, _boot_option_idle_override@GOTPAGE
Lloh1:
	ldr	x8, [x8, _boot_option_idle_override@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	w19, #0
	b	LBB0_7
LBB0_2:
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.3:
Lloh3:
	adrp	x8, _nocst@GOTPAGE
Lloh4:
	ldr	x8, [x8, _nocst@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _ENODEV@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_4
; %bb.9:
	bl	_cpuidle_pause_and_lock
	mov	x0, x19
	bl	_cpuidle_disable_device
	mov	x0, x19
	bl	_acpi_processor_get_power_info
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_acpi_processor_setup_cpuidle
	mov	x0, x19
	bl	_cpuidle_enable_device
	mov	x19, x0
	b	LBB0_12
LBB0_11:
	mov	w19, #0
LBB0_12:
	bl	_cpuidle_resume_and_unlock
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_boot_option_idle_override,8,3  ; @boot_option_idle_override
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_nocst,8,3                      ; @nocst
	.comm	_ENODEV,4,2                     ; @ENODEV
.subsections_via_symbols
