	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_idle_wakeup                ## -- Begin function cpu_idle_wakeup
	.p2align	4, 0x90
_cpu_idle_wakeup:                       ## @cpu_idle_wakeup
	.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
	callq	_pcpu_find
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_atomic_load_int
	cmpl	$128, %eax
	je	LBB0_1
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_6
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_5
## %bb.4:
	movq	%rbx, %rdi
	movl	$129, %esi
	callq	_atomic_store_int
	movq	_cpu_idle_apl31_workaround@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	cmpl	$0, (%rcx)
	sete	%al
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_6:
	movl	$1, %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cpu_idle_apl31_workaround,4,2  ## @cpu_idle_apl31_workaround
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad monitor state"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cpu_idle_wakeup                ; -- Begin function cpu_idle_wakeup
	.p2align	2
_cpu_idle_wakeup:                       ; @cpu_idle_wakeup
	.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	_pcpu_find
	mov	x19, x0
	bl	_atomic_load_int
	cmp	w0, #128
	b.eq	LBB0_4
; %bb.1:
	cmp	w0, #129
	b.eq	LBB0_6
; %bb.2:
	cmp	w0, #130
	b.ne	LBB0_5
; %bb.3:
	mov	x0, x19
	mov	w1, #129
	bl	_atomic_store_int
Lloh0:
	adrp	x8, _cpu_idle_apl31_workaround@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cpu_idle_apl31_workaround@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w0, eq
	b	LBB0_7
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_6:
	mov	w0, #1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_cpu_idle_apl31_workaround,4,2  ; @cpu_idle_apl31_workaround
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad monitor state"

.subsections_via_symbols
