	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function intel_idle
_intel_idle:                            ## @intel_idle
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rdi
	callq	_cpuidle_get_statedata
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_smp_processor_id
	movq	_MWAIT_SUBSTATE_SIZE@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	%r15, %rbx
	shrq	%cl, %rbx
	movl	%eax, -44(%rbp)
	movq	_MWAIT_CSTATE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_local_irq_disable
	incb	%bl
	movl	$1, %r12d
	movl	%ebx, %ecx
	shll	%cl, %r12d
	movq	_lapic_timer_reliable_states@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movzbl	%bl, %ecx
	btl	%ecx, %eax
	jb	LBB0_2
## %bb.1:
	movq	_CLOCK_EVT_NOTIFY_BROADCAST_ENTER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_clockevents_notify
LBB0_2:
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_stop_critical_timings
	movq	_POWER_CSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	shrq	$4, %rsi
	incq	%rsi
	movl	-44(%rbp), %edx
	callq	_trace_power_start
	xorl	%eax, %eax
	callq	_need_resched
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_current_thread_info
	movq	%rax, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	___monitor
	xorl	%eax, %eax
	callq	_smp_mb
	xorl	%eax, %eax
	callq	_need_resched
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movl	$1, %esi
	movq	%r15, %rdi
	callq	___mwait
LBB0_5:
	xorl	%eax, %eax
	callq	_start_critical_timings
	xorl	%eax, %eax
	callq	_ktime_get_real
	movl	%eax, %edi
	movl	%r14d, %esi
	callq	_ktime_sub
	movl	%eax, %edi
	callq	_ktime_to_us
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_local_irq_enable
	testl	%r12d, (%r13)
	jne	LBB0_7
## %bb.6:
	movq	_CLOCK_EVT_NOTIFY_BROADCAST_EXIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-44(%rbp), %rsi
	callq	_clockevents_notify
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWAIT_SUBSTATE_SIZE,8,3        ## @MWAIT_SUBSTATE_SIZE
	.comm	_MWAIT_CSTATE_MASK,8,3          ## @MWAIT_CSTATE_MASK
	.comm	_lapic_timer_reliable_states,4,2 ## @lapic_timer_reliable_states
	.comm	_CLOCK_EVT_NOTIFY_BROADCAST_ENTER,4,2 ## @CLOCK_EVT_NOTIFY_BROADCAST_ENTER
	.comm	_POWER_CSTATE,4,2               ## @POWER_CSTATE
	.comm	_CLOCK_EVT_NOTIFY_BROADCAST_EXIT,4,2 ## @CLOCK_EVT_NOTIFY_BROADCAST_EXIT
	.no_dead_strip	_intel_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function intel_idle
_intel_idle:                            ; @intel_idle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x0, x1
	bl	_cpuidle_get_statedata
	mov	x19, x0
	bl	_smp_processor_id
	str	w0, [sp, #12]
Lloh0:
	adrp	x8, _MWAIT_SUBSTATE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWAIT_SUBSTATE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	lsr	x8, x19, x8
Lloh3:
	adrp	x9, _MWAIT_CSTATE_MASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MWAIT_CSTATE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w8, w9
	add	w20, w8, #1
	bl	_local_irq_disable
Lloh6:
	adrp	x21, _lapic_timer_reliable_states@GOTPAGE
Lloh7:
	ldr	x21, [x21, _lapic_timer_reliable_states@GOTPAGEOFF]
	ldr	w8, [x21]
	mov	w9, #1
	lsl	w22, w9, w20
	tst	w22, w8
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _CLOCK_EVT_NOTIFY_BROADCAST_ENTER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CLOCK_EVT_NOTIFY_BROADCAST_ENTER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_clockevents_notify
LBB0_2:
	bl	_ktime_get_real
	mov	x20, x0
	bl	_stop_critical_timings
Lloh11:
	adrp	x8, _POWER_CSTATE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _POWER_CSTATE@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	lsr	x8, x19, #4
	add	x1, x8, #1
	ldr	w2, [sp, #12]
	bl	_trace_power_start
	bl	_need_resched
	cbnz	w0, LBB0_5
; %bb.3:
	bl	_current_thread_info
	mov	w1, #0
	mov	w2, #0
	bl	___monitor
	bl	_smp_mb
	bl	_need_resched
	cbnz	w0, LBB0_5
; %bb.4:
	mov	x0, x19
	mov	w1, #1
	bl	___mwait
LBB0_5:
	bl	_start_critical_timings
	bl	_ktime_get_real
	mov	x1, x20
	bl	_ktime_sub
	bl	_ktime_to_us
	mov	x19, x0
	bl	_local_irq_enable
	ldr	w8, [x21]
	tst	w8, w22
	b.ne	LBB0_7
; %bb.6:
Lloh14:
	adrp	x8, _CLOCK_EVT_NOTIFY_BROADCAST_EXIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CLOCK_EVT_NOTIFY_BROADCAST_EXIT@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	add	x1, sp, #12
	bl	_clockevents_notify
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_MWAIT_SUBSTATE_SIZE,8,3        ; @MWAIT_SUBSTATE_SIZE
	.comm	_MWAIT_CSTATE_MASK,8,3          ; @MWAIT_CSTATE_MASK
	.comm	_lapic_timer_reliable_states,4,2 ; @lapic_timer_reliable_states
	.comm	_CLOCK_EVT_NOTIFY_BROADCAST_ENTER,4,2 ; @CLOCK_EVT_NOTIFY_BROADCAST_ENTER
	.comm	_POWER_CSTATE,4,2               ; @POWER_CSTATE
	.comm	_CLOCK_EVT_NOTIFY_BROADCAST_EXIT,4,2 ; @CLOCK_EVT_NOTIFY_BROADCAST_EXIT
	.no_dead_strip	_intel_idle
.subsections_via_symbols
