	.file	"extr_suspend.c_s2idle_enter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"machine_suspend"
	.text
	.p2align 4
	.type	s2idle_enter, @function
s2idle_enter:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	lea	rdi, .LC0[rip]
	mov	ebp, DWORD PTR PM_SUSPEND_TO_IDLE[rip]
	call	TPS@PLT
	mov	edx, 1
	mov	esi, ebp
	mov	edi, eax
	call	trace_suspend_resume@PLT
	lea	rdi, s2idle_lock[rip]
	call	raw_spin_lock_irq@PLT
	xor	eax, eax
	call	pm_wakeup_pending@PLT
	test	rax, rax
	jne	.L2
	mov	rax, QWORD PTR S2IDLE_STATE_ENTER[rip]
	lea	rdi, s2idle_lock[rip]
	mov	QWORD PTR s2idle_state[rip], rax
	call	raw_spin_unlock_irq@PLT
	xor	eax, eax
	call	get_online_cpus@PLT
	xor	eax, eax
	call	cpuidle_resume@PLT
	xor	eax, eax
	call	wake_up_all_idle_cpus@PLT
	mov	edi, DWORD PTR s2idle_wait_head[rip]
	mov	rax, QWORD PTR S2IDLE_STATE_WAKE[rip]
	xor	esi, esi
	cmp	QWORD PTR s2idle_state[rip], rax
	sete	sil
	call	swait_event_exclusive@PLT
	xor	eax, eax
	call	cpuidle_pause@PLT
	xor	eax, eax
	call	put_online_cpus@PLT
	lea	rdi, s2idle_lock[rip]
	call	raw_spin_lock_irq@PLT
.L2:
	mov	rax, QWORD PTR S2IDLE_STATE_NONE[rip]
	lea	rdi, s2idle_lock[rip]
	mov	QWORD PTR s2idle_state[rip], rax
	call	raw_spin_unlock_irq@PLT
	mov	ebp, DWORD PTR PM_SUSPEND_TO_IDLE[rip]
	lea	rdi, .LC0[rip]
	call	TPS@PLT
	xor	edx, edx
	mov	esi, ebp
	mov	edi, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	trace_suspend_resume@PLT
	.cfi_endproc
.LFE0:
	.size	s2idle_enter, .-s2idle_enter
	.comm	s2idle_wait_head,4,4
	.comm	s2idle_state,8,8
	.comm	s2idle_lock,4,4
	.comm	S2IDLE_STATE_WAKE,8,8
	.comm	S2IDLE_STATE_NONE,8,8
	.comm	S2IDLE_STATE_ENTER,8,8
	.comm	PM_SUSPEND_TO_IDLE,4,4
	.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_suspend.c_s2idle_enter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"machine_suspend\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s2idle_enter, %function
s2idle_enter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r4, .L7
	ldr	r0, .L7+4
	bl	TPS
	mov	r2, #1
	ldr	r1, [r4]
	bl	trace_suspend_resume
	ldr	r0, .L7+8
	bl	raw_spin_lock_irq
	bl	pm_wakeup_pending
	cmp	r0, #0
	beq	.L4
	ldr	r5, .L7+12
.L2:
	ldr	r3, .L7+16
	ldr	r0, .L7+8
	ldr	r3, [r3]
	str	r3, [r5]
	bl	raw_spin_unlock_irq
	ldr	r0, .L7+4
	bl	TPS
	ldr	r1, [r4]
	mov	r2, #0
	pop	{r4, r5, r6, lr}
	b	trace_suspend_resume
.L4:
	ldr	r3, .L7+20
	ldr	r5, .L7+12
	ldr	r3, [r3]
	ldr	r0, .L7+8
	str	r3, [r5]
	bl	raw_spin_unlock_irq
	bl	get_online_cpus
	bl	cpuidle_resume
	bl	wake_up_all_idle_cpus
	ldr	r3, .L7+24
	ldr	r1, [r5]
	ldr	r2, [r3]
	ldr	r3, .L7+28
	sub	r1, r1, r2
	clz	r1, r1
	ldr	r0, [r3]
	lsr	r1, r1, #5
	bl	swait_event_exclusive
	bl	cpuidle_pause
	bl	put_online_cpus
	ldr	r0, .L7+8
	bl	raw_spin_lock_irq
	b	.L2
.L8:
	.align	2
.L7:
	.word	PM_SUSPEND_TO_IDLE
	.word	.LC0
	.word	s2idle_lock
	.word	s2idle_state
	.word	S2IDLE_STATE_NONE
	.word	S2IDLE_STATE_ENTER
	.word	S2IDLE_STATE_WAKE
	.word	s2idle_wait_head
	.size	s2idle_enter, .-s2idle_enter
	.comm	s2idle_wait_head,4,4
	.comm	s2idle_state,4,4
	.comm	s2idle_lock,4,4
	.comm	S2IDLE_STATE_WAKE,4,4
	.comm	S2IDLE_STATE_NONE,4,4
	.comm	S2IDLE_STATE_ENTER,4,4
	.comm	PM_SUSPEND_TO_IDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
