	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_wakeup_machdep            ## -- Begin function acpi_wakeup_machdep
	.p2align	4, 0x90
_acpi_wakeup_machdep:                   ## @acpi_wakeup_machdep
	.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
	movl	%edx, %ebx
	cmpl	$-1, %edx
	je	LBB0_9
## %bb.1:
	testl	%ecx, %ecx
	je	LBB0_2
## %bb.5:
	cmpl	$1, %ebx
	jne	LBB0_9
## %bb.6:
	movq	_mem_range_softc@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.7:
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	_mem_range_softc@GOTPCREL(%rip), %rdi
	callq	*%rax
	jmp	LBB0_9
LBB0_2:
	cmpl	$1, %ebx
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	callq	_ucode_reload
	xorl	%eax, %eax
	callq	_pmap_init_pat
	xorl	%eax, %eax
	callq	_initializecpu
	movq	_switchtime@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_PCPU_SET
	movq	_switchticks@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ticks@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PCPU_SET
LBB0_4:
	xorl	%eax, %eax
	callq	_mca_resume
	xorl	%eax, %eax
	callq	_vmm_resume_p
	xorl	%edi, %edi
	callq	_intr_resume
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_AcpiSetFirmwareWakingVector
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_switchtime,4,2                 ## @switchtime
	.comm	_switchticks,4,2                ## @switchticks
	.comm	_ticks,4,2                      ## @ticks
	.comm	_mem_range_softc,8,3            ## @mem_range_softc
	.comm	_suspcpus,4,2                   ## @suspcpus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_acpi_wakeup_machdep            ; -- Begin function acpi_wakeup_machdep
	.p2align	2
_acpi_wakeup_machdep:                   ; @acpi_wakeup_machdep
	.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
	mov	x19, x2
	cmn	w2, #1
	b.eq	LBB0_9
; %bb.1:
	cmp	w19, #1
	cbz	w3, LBB0_6
; %bb.2:
	b.ne	LBB0_9
; %bb.3:
Lloh0:
	adrp	x8, _mem_range_softc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mem_range_softc@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.4:
	ldr	x8, [x8]
	cbz	x8, LBB0_9
; %bb.5:
Lloh3:
	adrp	x0, _mem_range_softc@GOTPAGE
Lloh4:
	ldr	x0, [x0, _mem_range_softc@GOTPAGEOFF]
	blr	x8
	b	LBB0_9
LBB0_6:
	b.ne	LBB0_8
; %bb.7:
	bl	_ucode_reload
	bl	_pmap_init_pat
	bl	_initializecpu
Lloh5:
	adrp	x8, _switchtime@GOTPAGE
Lloh6:
	ldr	x8, [x8, _switchtime@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	mov	w1, #0
	bl	_PCPU_SET
Lloh8:
	adrp	x8, _switchticks@GOTPAGE
Lloh9:
	ldr	x8, [x8, _switchticks@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _ticks@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ticks@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_PCPU_SET
LBB0_8:
	bl	_mca_resume
	mov	w0, #0
	bl	_intr_resume
	mov	w0, #0
	mov	w1, #0
	bl	_AcpiSetFirmwareWakingVector
LBB0_9:
	mov	x0, x19
	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 AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_switchtime,4,2                 ; @switchtime
	.comm	_switchticks,4,2                ; @switchticks
	.comm	_ticks,4,2                      ; @ticks
	.comm	_mem_range_softc,8,3            ; @mem_range_softc
	.comm	_suspcpus,4,2                   ; @suspcpus
.subsections_via_symbols
