	.file	"extr_spi-sprd.c_sprd_spi_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to resume SPI controller\n"
	.text
	.p2align 4
	.type	sprd_spi_remove, @function
sprd_spi_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	platform_get_drvdata@PLT
	mov	rdi, rax
	mov	r13, rax
	call	spi_controller_get_devdata@PLT
	mov	edi, DWORD PTR 16[rax]
	mov	rbx, rax
	call	pm_runtime_get_sync@PLT
	test	eax, eax
	js	.L7
	mov	rdi, r13
	call	spi_controller_suspend@PLT
	cmp	QWORD PTR 8[rbx], 0
	jne	.L8
.L4:
	mov	edi, DWORD PTR [rbx]
	xor	r12d, r12d
	call	clk_disable_unprepare@PLT
	mov	rdi, rbp
	call	pm_runtime_put_noidle@PLT
	mov	rdi, rbp
	call	pm_runtime_disable@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	rdi, rbx
	call	sprd_spi_dma_release@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, .LC0[rip]
	mov	r12d, eax
	call	dev_err@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sprd_spi_remove, .-sprd_spi_remove
	.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_spi-sprd.c_sprd_spi_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to resume SPI controller\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sprd_spi_remove, %function
sprd_spi_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	bl	platform_get_drvdata
	mov	r7, r0
	bl	spi_controller_get_devdata
	mov	r4, r0
	ldr	r0, [r0, #8]
	bl	pm_runtime_get_sync
	subs	r5, r0, #0
	blt	.L10
	mov	r0, r7
	bl	spi_controller_suspend
	ldr	r3, [r4, #4]
	cmp	r3, #0
	bne	.L11
.L4:
	mov	r5, #0
	ldr	r0, [r4]
	bl	clk_disable_unprepare
	mov	r0, r6
	bl	pm_runtime_put_noidle
	mov	r0, r6
	bl	pm_runtime_disable
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	mov	r0, r4
	bl	sprd_spi_dma_release
	b	.L4
.L10:
	ldr	r0, [r4, #8]
	ldr	r1, .L12
	bl	dev_err
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	.LC0
	.size	sprd_spi_remove, .-sprd_spi_remove
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
