	.file	"extr_olpc-xo1-pm.c_xo1_power_state_enter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xo1_power_state_enter, @function
xo1_power_state_enter:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR PM_SUSPEND_MEM[rip], rdi
	je	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rdi, QWORD PTR CS5536_PM1_STS[rip]
	add	rdi, QWORD PTR acpi_base[rip]
	call	inl@PLT
	mov	rbx, rax
	xor	eax, eax
	call	do_olpc_suspend_lowlevel@PLT
	and	ebx, 4294901760
	mov	rsi, QWORD PTR CS5536_PM1_STS[rip]
	add	rsi, QWORD PTR acpi_base[rip]
	mov	rdi, rbx
	call	outl@PLT
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xo1_power_state_enter, .-xo1_power_state_enter
	.comm	acpi_base,8,8
	.comm	PM_SUSPEND_MEM,8,8
	.comm	EINVAL,4,4
	.comm	CS5536_PM1_STS,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_olpc-xo1-pm.c_xo1_power_state_enter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xo1_power_state_enter, %function
xo1_power_state_enter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
	ldr	r3, .L8+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L2:
	push	{r4, r5, r6, lr}
	ldr	r6, .L8+8
	ldr	r5, .L8+12
	ldr	r0, [r6]
	ldr	r3, [r5]
	add	r0, r0, r3
	bl	inl
	mov	r4, r0
	bl	do_olpc_suspend_lowlevel
	ldr	r1, [r6]
	ldr	r3, [r5]
	lsr	r0, r4, #16
	add	r1, r1, r3
	lsl	r0, r0, #16
	bl	outl
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	PM_SUSPEND_MEM
	.word	EINVAL
	.word	acpi_base
	.word	CS5536_PM1_STS
	.size	xo1_power_state_enter, .-xo1_power_state_enter
	.comm	acpi_base,4,4
	.comm	PM_SUSPEND_MEM,4,4
	.comm	EINVAL,4,4
	.comm	CS5536_PM1_STS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
