	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwait_idle
_mwait_idle:                            ## @mwait_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_need_resched
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movq	_POWER_CSTATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	xorl	%eax, %eax
	callq	_smp_processor_id
	movl	%ebx, %edi
	movl	$1, %esi
	movl	%eax, %edx
	callq	_trace_power_start
	movq	_X86_FEATURE_CLFLUSH_MONITOR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_current_cpu_data@GOTPCREL(%rip), %rdi
	callq	_cpu_has
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_current_thread_info
	movq	%rax, %rdi
	callq	_clflush
LBB0_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
	je	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_local_irq_enable               ## TAILCALL
LBB0_5:
	xorl	%edi, %edi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	___sti_mwait                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_POWER_CSTATE,4,2               ## @POWER_CSTATE
	.comm	_current_cpu_data,4,2           ## @current_cpu_data
	.comm	_X86_FEATURE_CLFLUSH_MONITOR,4,2 ## @X86_FEATURE_CLFLUSH_MONITOR
	.no_dead_strip	_mwait_idle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwait_idle
_mwait_idle:                            ; @mwait_idle
	.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
	bl	_need_resched
	cbnz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _POWER_CSTATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _POWER_CSTATE@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	bl	_smp_processor_id
	mov	x2, x0
	mov	x0, x19
	mov	w1, #1
	bl	_trace_power_start
Lloh3:
	adrp	x8, _X86_FEATURE_CLFLUSH_MONITOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _X86_FEATURE_CLFLUSH_MONITOR@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x0, _current_cpu_data@GOTPAGE
Lloh7:
	ldr	x0, [x0, _current_cpu_data@GOTPAGEOFF]
	bl	_cpu_has
	cbz	x0, LBB0_3
; %bb.2:
	bl	_current_thread_info
	bl	_clflush
LBB0_3:
	bl	_current_thread_info
	mov	w1, #0
	mov	w2, #0
	bl	___monitor
	bl	_smp_mb
	bl	_need_resched
	cbz	w0, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_local_irq_enable
LBB0_5:
	mov	w1, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___sti_mwait
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_POWER_CSTATE,4,2               ; @POWER_CSTATE
	.comm	_current_cpu_data,4,2           ; @current_cpu_data
	.comm	_X86_FEATURE_CLFLUSH_MONITOR,4,2 ; @X86_FEATURE_CLFLUSH_MONITOR
	.no_dead_strip	_mwait_idle
.subsections_via_symbols
