	.file	"extr_pm.c_bfin_pm_suspend_mem_enter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"bf53x_suspend_l1_mem malloc failed"
	.text
	.p2align 4
	.globl	bfin_pm_suspend_mem_enter
	.type	bfin_pm_suspend_mem_enter, @function
bfin_pm_suspend_mem_enter:
.LFB0:
	.cfi_startproc
	endbr64
	mov	esi, DWORD PTR GFP_KERNEL[rip]
	mov	rdi, QWORD PTR L1_DATA_A_LENGTH[rip]
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	add	rdi, QWORD PTR L1_CODE_LENGTH[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	add	rdi, QWORD PTR L1_DATA_B_LENGTH[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	add	rdi, QWORD PTR L1_SCRATCH_LENGTH[rip]
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	kmalloc@PLT
	test	rax, rax
	je	.L8
	mov	rbp, rax
	xor	eax, eax
	call	bfin_read_VR_CTL@PLT
	xor	edi, edi
	mov	ebx, DWORD PTR FREQ[rip]
	mov	r13d, DWORD PTR SCKELOW[rip]
	mov	r14d, eax
	call	local_irq_save_hw@PLT
	xor	eax, eax
	call	blackfin_dma_suspend@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	xor	eax, eax
	not	ebx
	call	bfin_gpio_pm_hibernate_suspend@PLT
	xor	eax, eax
	call	_disable_dcplb@PLT
	xor	eax, eax
	call	_disable_icplb@PLT
	mov	rdi, rbp
	call	bf53x_suspend_l1_mem@PLT
	mov	edi, ebx
	or	r13d, DWORD PTR vr_wakeup[rip]
	and	edi, r14d
	or	edi, r13d
	call	do_hibernate@PLT
	mov	rdi, rbp
	call	bf53x_resume_l1_mem@PLT
	xor	eax, eax
	call	_enable_icplb@PLT
	xor	eax, eax
	call	_enable_dcplb@PLT
	xor	eax, eax
	call	bfin_gpio_pm_hibernate_restore@PLT
	xor	eax, eax
	call	blackfin_dma_resume@PLT
.L6:
	xor	edi, edi
	call	local_irq_restore_hw@PLT
	mov	rdi, rbp
	call	kfree@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	panic@PLT
	mov	r12d, DWORD PTR ENOMEM[rip]
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bfin_pm_suspend_mem_enter, .-bfin_pm_suspend_mem_enter
	.comm	vr_wakeup,4,4
	.comm	SCKELOW,4,4
	.comm	PHYWE,4,4
	.comm	L1_SCRATCH_LENGTH,8,8
	.comm	L1_DATA_B_LENGTH,8,8
	.comm	L1_DATA_A_LENGTH,8,8
	.comm	L1_CODE_LENGTH,8,8
	.comm	GPWE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FREQ,4,4
	.comm	ENOMEM,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_pm.c_bfin_pm_suspend_mem_enter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"bf53x_suspend_l1_mem malloc failed\000"
	.text
	.align	2
	.global	bfin_pm_suspend_mem_enter
	.syntax unified
	.arm
	.fpu softvfp
	.type	bfin_pm_suspend_mem_enter, %function
bfin_pm_suspend_mem_enter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r1, .L9+8
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, .L9+12
	ldr	r1, [r1]
	add	r3, r3, r0
	ldr	r0, [r2]
	ldr	r2, .L9+16
	add	r3, r3, r1
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r2]
	add	r0, r3, r0
	bl	kmalloc
	subs	r5, r0, #0
	beq	.L8
	bl	bfin_read_VR_CTL
	ldr	r2, .L9+20
	ldr	r3, .L9+24
	mov	r7, r0
	mov	r0, #0
	ldr	r8, [r2]
	ldr	r6, [r3]
	bl	local_irq_save_hw
	bl	blackfin_dma_suspend
	subs	r4, r0, #0
	bne	.L6
	bl	bfin_gpio_pm_hibernate_suspend
	bl	_disable_dcplb
	bl	_disable_icplb
	mov	r0, r5
	bl	bf53x_suspend_l1_mem
	ldr	r3, .L9+28
	bic	r0, r7, r8
	ldr	r3, [r3]
	orr	r6, r6, r3
	orr	r0, r0, r6
	bl	do_hibernate
	mov	r0, r5
	bl	bf53x_resume_l1_mem
	bl	_enable_icplb
	bl	_enable_dcplb
	bl	bfin_gpio_pm_hibernate_restore
	bl	blackfin_dma_resume
.L6:
	mov	r0, #0
	bl	local_irq_restore_hw
	mov	r0, r5
	bl	kfree
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r0, .L9+32
	bl	panic
	ldr	r3, .L9+36
	ldr	r0, [r3]
	rsb	r4, r0, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	L1_DATA_A_LENGTH
	.word	L1_CODE_LENGTH
	.word	L1_DATA_B_LENGTH
	.word	L1_SCRATCH_LENGTH
	.word	GFP_KERNEL
	.word	FREQ
	.word	SCKELOW
	.word	vr_wakeup
	.word	.LC0
	.word	ENOMEM
	.size	bfin_pm_suspend_mem_enter, .-bfin_pm_suspend_mem_enter
	.comm	vr_wakeup,4,4
	.comm	SCKELOW,4,4
	.comm	PHYWE,4,4
	.comm	L1_SCRATCH_LENGTH,4,4
	.comm	L1_DATA_B_LENGTH,4,4
	.comm	L1_DATA_A_LENGTH,4,4
	.comm	L1_CODE_LENGTH,4,4
	.comm	GPWE,4,4
	.comm	GFP_KERNEL,4,4
	.comm	FREQ,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
