	.file	"extr_acpi_wakeup.c_acpi_wakeup_machdep.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	acpi_wakeup_machdep
	.type	acpi_wakeup_machdep, @function
acpi_wakeup_machdep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12d, edx
	cmp	edx, -1
	je	.L2
	test	ecx, ecx
	jne	.L3
	cmp	edx, 1
	je	.L16
.L4:
	xor	eax, eax
	call	mca_resume@PLT
	xor	eax, eax
	call	vmm_resume_p@PLT
	xor	edi, edi
	call	intr_resume@PLT
	xor	esi, esi
	xor	edi, edi
	call	AcpiSetFirmwareWakingVector@PLT
.L2:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	cmp	edx, 1
	jne	.L2
	mov	rax, QWORD PTR mem_range_softc[rip]
	test	rax, rax
	je	.L2
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L2
	lea	rdi, mem_range_softc[rip]
	call	rax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	xor	eax, eax
	call	ucode_reload@PLT
	xor	eax, eax
	call	pmap_init_pat@PLT
	xor	eax, eax
	call	initializecpu@PLT
	mov	edi, DWORD PTR switchtime[rip]
	xor	esi, esi
	call	PCPU_SET@PLT
	mov	esi, DWORD PTR ticks[rip]
	mov	edi, DWORD PTR switchticks[rip]
	call	PCPU_SET@PLT
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	acpi_wakeup_machdep, .-acpi_wakeup_machdep
	.comm	ticks,4,4
	.comm	switchtime,4,4
	.comm	switchticks,4,4
	.comm	suspcpus,4,4
	.comm	mem_range_softc,8,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_acpi_wakeup.c_acpi_wakeup_machdep.c"
	.text
	.align	2
	.global	acpi_wakeup_machdep
	.syntax unified
	.arm
	.fpu softvfp
	.type	acpi_wakeup_machdep, %function
acpi_wakeup_machdep:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	cmn	r2, #1
	mov	r4, r2
	sub	sp, sp, #8
	beq	.L2
	cmp	r3, #0
	bne	.L3
	cmp	r2, #1
	beq	.L16
.L4:
	bl	mca_resume
	mov	r0, #0
	bl	intr_resume
	mov	r1, #0
	mov	r0, r1
	bl	AcpiSetFirmwareWakingVector
.L2:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, pc}
.L3:
	cmp	r2, #1
	bne	.L2
	ldr	r0, .L17
	ldr	r3, [r0]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L2
	blx	r3
	b	.L2
.L16:
	str	r3, [sp, #4]
	bl	ucode_reload
	bl	pmap_init_pat
	bl	initializecpu
	ldr	r3, [sp, #4]
	ldr	r2, .L17+4
	mov	r1, r3
	ldr	r0, [r2]
	bl	PCPU_SET
	ldr	r2, .L17+8
	ldr	r3, .L17+12
	ldr	r1, [r2]
	ldr	r0, [r3]
	bl	PCPU_SET
	b	.L4
.L18:
	.align	2
.L17:
	.word	mem_range_softc
	.word	switchtime
	.word	ticks
	.word	switchticks
	.size	acpi_wakeup_machdep, .-acpi_wakeup_machdep
	.comm	ticks,4,4
	.comm	switchtime,4,4
	.comm	switchticks,4,4
	.comm	suspcpus,4,4
	.comm	mem_range_softc,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
