	.file	"extr_suspend.c_mpc83xx_suspend_enter.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	mpc83xx_suspend_enter, @function
mpc83xx_suspend_enter:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR wake_from_pci[rip], 0
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	je	.L2
	xor	eax, eax
	cmp	QWORD PTR deep_sleeping[rip], 0
	mov	rdi, QWORD PTR pmc_regs[rip]
	setne	al
	add	eax, 2
	cmp	DWORD PTR pci_pm_state[rip], eax
	je	.L4
	mov	r12d, DWORD PTR EAGAIN[rip]
	neg	r12d
.L5:
	call	in_be32@PLT
	mov	esi, DWORD PTR PMCCR1_PME_EN[rip]
	mov	rdi, QWORD PTR pmc_regs[rip]
	not	esi
	and	esi, eax
	call	out_be32@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	call	in_be32@PLT
	mov	rdi, QWORD PTR pmc_regs[rip]
	or	eax, DWORD PTR PMCCR1_PME_EN[rip]
	mov	esi, eax
	call	out_be32@PLT
.L2:
	mov	rax, QWORD PTR pmc_regs[rip]
	mov	esi, DWORD PTR PMCCR_SLPEN[rip]
	or	esi, DWORD PTR PMCCR_DLPEN[rip]
	lea	rdi, 8[rax]
	call	out_be32@PLT
	mov	rax, QWORD PTR pmc_regs[rip]
	cmp	QWORD PTR deep_sleeping[rip], 0
	lea	rdi, 4[rax]
	je	.L6
	mov	esi, DWORD PTR PMCER_ALL[rip]
	xor	r12d, r12d
	call	out_be32@PLT
	mov	rdi, QWORD PTR pmc_regs[rip]
	call	in_be32@PLT
	mov	rdi, QWORD PTR pmc_regs[rip]
	or	eax, DWORD PTR PMCCR1_POWER_OFF[rip]
	mov	esi, eax
	call	out_be32@PLT
	xor	eax, eax
	call	enable_kernel_fp@PLT
	mov	edi, DWORD PTR immrbase[rip]
	call	mpc83xx_enter_deep_sleep@PLT
	mov	rdi, QWORD PTR pmc_regs[rip]
	call	in_be32@PLT
	mov	esi, DWORD PTR PMCCR1_POWER_OFF[rip]
	mov	rdi, QWORD PTR pmc_regs[rip]
	not	esi
	and	esi, eax
	call	out_be32@PLT
	mov	rax, QWORD PTR pmc_regs[rip]
	mov	esi, DWORD PTR PMCER_PMCI[rip]
	lea	rdi, 4[rax]
	call	out_be32@PLT
	mov	rdi, QWORD PTR pmc_regs[rip]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	esi, DWORD PTR PMCER_PMCI[rip]
	xor	r12d, r12d
	call	out_be32@PLT
	xor	eax, eax
	call	mpc6xx_enter_standby@PLT
	mov	rdi, QWORD PTR pmc_regs[rip]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	mpc83xx_suspend_enter, .-mpc83xx_suspend_enter
	.comm	wake_from_pci,8,8
	.comm	pmc_regs,8,8
	.comm	pci_pm_state,4,4
	.comm	immrbase,4,4
	.comm	deep_sleeping,8,8
	.comm	PMCER_PMCI,4,4
	.comm	PMCER_ALL,4,4
	.comm	PMCCR_SLPEN,4,4
	.comm	PMCCR_DLPEN,4,4
	.comm	PMCCR1_POWER_OFF,4,4
	.comm	PMCCR1_PME_EN,4,4
	.comm	EAGAIN,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_mpc83xx_suspend_enter.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mpc83xx_suspend_enter, %function
mpc83xx_suspend_enter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L14
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	ldr	r5, .L14+4
	cmp	r3, #0
	beq	.L13
	ldr	r3, [r5]
	ldr	r2, .L14+8
	cmp	r3, #0
	movne	r3, #3
	moveq	r3, #2
	ldr	r2, [r2]
	ldr	r4, .L14+12
	cmp	r2, r3
	ldr	r6, [r4]
	beq	.L4
	ldr	r3, .L14+16
	ldr	r7, .L14+20
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L5:
	mov	r0, r6
	bl	in_be32
	mov	r3, r0
	ldr	r1, [r7]
	mov	r0, r6
	bic	r1, r3, r1
	bl	out_be32
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L4:
	mov	r0, r6
	bl	in_be32
	mov	r1, r0
	ldr	r7, .L14+20
	mov	r0, r6
	ldr	r3, [r7]
	orr	r1, r1, r3
	bl	out_be32
.L2:
	ldr	r2, .L14+24
	ldr	r3, .L14+28
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r0, [r4]
	orr	r1, r1, r3
	add	r0, r0, #8
	bl	out_be32
	ldr	r5, [r5]
	cmp	r5, #0
	beq	.L6
	ldr	r3, .L14+32
	ldr	r0, [r4]
	ldr	r1, [r3]
	add	r0, r0, #4
	bl	out_be32
	ldr	r5, [r4]
	ldr	r8, .L14+36
	mov	r0, r5
	bl	in_be32
	mov	r1, r0
	ldr	r3, [r8]
	mov	r0, r5
	orr	r1, r1, r3
	bl	out_be32
	bl	enable_kernel_fp
	ldr	r3, .L14+40
	mov	r5, #0
	ldr	r0, [r3]
	bl	mpc83xx_enter_deep_sleep
	ldr	r6, [r4]
	mov	r0, r6
	bl	in_be32
	mov	r3, r0
	ldr	r1, [r8]
	mov	r0, r6
	bic	r1, r3, r1
	bl	out_be32
	ldr	r3, .L14+44
	ldr	r0, [r4]
	ldr	r1, [r3]
	add	r0, r0, #4
	bl	out_be32
	ldr	r6, [r4]
	b	.L5
.L13:
	ldr	r4, .L14+12
	ldr	r7, .L14+20
	b	.L2
.L6:
	ldr	r3, .L14+44
	ldr	r0, [r4]
	ldr	r1, [r3]
	add	r0, r0, #4
	bl	out_be32
	bl	mpc6xx_enter_standby
	ldr	r6, [r4]
	b	.L5
.L15:
	.align	2
.L14:
	.word	wake_from_pci
	.word	deep_sleeping
	.word	pci_pm_state
	.word	pmc_regs
	.word	EAGAIN
	.word	PMCCR1_PME_EN
	.word	PMCCR_SLPEN
	.word	PMCCR_DLPEN
	.word	PMCER_ALL
	.word	PMCCR1_POWER_OFF
	.word	immrbase
	.word	PMCER_PMCI
	.size	mpc83xx_suspend_enter, .-mpc83xx_suspend_enter
	.comm	wake_from_pci,4,4
	.comm	pmc_regs,4,4
	.comm	pci_pm_state,4,4
	.comm	immrbase,4,4
	.comm	deep_sleeping,4,4
	.comm	PMCER_PMCI,4,4
	.comm	PMCER_ALL,4,4
	.comm	PMCCR_SLPEN,4,4
	.comm	PMCCR_DLPEN,4,4
	.comm	PMCCR1_POWER_OFF,4,4
	.comm	PMCCR1_PME_EN,4,4
	.comm	EAGAIN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
