	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_idle                       ## -- Begin function cpu_idle
	.p2align	4, 0x90
_cpu_idle:                              ## @cpu_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_KTR_SPARE2@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_curcpu@GOTPCREL(%rip), %r15
	movl	(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_CTR2
	testl	%ebx, %ebx
	je	LBB0_1
## %bb.2:
	movl	$-1, %edi
	callq	_cpu_idle_hook
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
	callq	_critical_enter
	xorl	%eax, %eax
	callq	_cpu_idleclock
	movl	%eax, %edi
	callq	_cpu_idle_hook
	xorl	%eax, %eax
	callq	_cpu_activeclock
	xorl	%eax, %eax
	callq	_critical_exit
LBB0_3:
	movl	(%r14), %edi
	movl	(%r15), %ecx
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_CTR2                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_KTR_SPARE2,4,2                 ## @KTR_SPARE2
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cpu_idle(%d) at %d"

	.comm	_curcpu,4,2                     ## @curcpu
L_.str.1:                               ## @.str.1
	.asciz	"cpu_idle(%d) at %d done"

	.comm	_PSL_EE,4,2                     ## @PSL_EE
	.comm	_curthread,8,3                  ## @curthread
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_idle                       ; -- Begin function cpu_idle
	.p2align	2
_cpu_idle:                              ; @cpu_idle
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
Lloh0:
	adrp	x20, _KTR_SPARE2@GOTPAGE
Lloh1:
	ldr	x20, [x20, _KTR_SPARE2@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x21, _curcpu@GOTPAGE
Lloh3:
	ldr	x21, [x21, _curcpu@GOTPAGEOFF]
	ldr	w3, [x21]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_CTR2
	cbz	w19, LBB0_2
; %bb.1:
	mov	w0, #-1
	bl	_cpu_idle_hook
	b	LBB0_3
LBB0_2:
	bl	_critical_enter
	bl	_cpu_idleclock
	bl	_cpu_idle_hook
	bl	_cpu_activeclock
	bl	_critical_exit
LBB0_3:
	ldr	w0, [x20]
	ldr	w3, [x21]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_CTR2
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_KTR_SPARE2,4,2                 ; @KTR_SPARE2
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cpu_idle(%d) at %d"

	.comm	_curcpu,4,2                     ; @curcpu
l_.str.1:                               ; @.str.1
	.asciz	"cpu_idle(%d) at %d done"

	.comm	_PSL_EE,4,2                     ; @PSL_EE
	.comm	_curthread,8,3                  ; @curthread
.subsections_via_symbols
