	.file	"extr_tmiofb.c_tmiofb_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	tmiofb_remove, @function
tmiofb_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	call	mfd_get_cell@PLT
	mov	rdi, rbp
	mov	rbx, rax
	call	platform_get_drvdata@PLT
	xor	esi, esi
	mov	rdi, rbp
	mov	r12, rax
	call	platform_get_irq@PLT
	test	r12, r12
	je	.L2
	mov	rdi, r12
	mov	r14, QWORD PTR 8[r12]
	mov	r13d, eax
	call	unregister_framebuffer@PLT
	mov	rdi, rbp
	call	tmiofb_hw_stop@PLT
	mov	rax, QWORD PTR [rbx]
	test	rax, rax
	je	.L3
	mov	rdi, rbp
	call	rax
.L3:
	mov	rsi, r12
	mov	edi, r13d
	call	free_irq@PLT
	mov	edi, DWORD PTR [r12]
	call	iounmap@PLT
	mov	edi, DWORD PTR 4[r14]
	call	iounmap@PLT
	mov	edi, DWORD PTR [r14]
	call	iounmap@PLT
	mov	rdi, r12
	call	framebuffer_release@PLT
.L2:
	pop	rbx
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	tmiofb_remove, .-tmiofb_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_tmiofb.c_tmiofb_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	tmiofb_remove, %function
tmiofb_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	mfd_get_cell
	mov	r7, r0
	mov	r0, r5
	bl	platform_get_drvdata
	mov	r4, r0
	mov	r1, #0
	mov	r0, r5
	bl	platform_get_irq
	cmp	r4, #0
	beq	.L2
	mov	r6, r0
	mov	r0, r4
	ldr	r8, [r4, #4]
	bl	unregister_framebuffer
	mov	r0, r5
	bl	tmiofb_hw_stop
	ldr	r3, [r7]
	cmp	r3, #0
	beq	.L3
	mov	r0, r5
	blx	r3
.L3:
	mov	r1, r4
	mov	r0, r6
	bl	free_irq
	ldr	r0, [r4]
	bl	iounmap
	ldr	r0, [r8, #4]
	bl	iounmap
	ldr	r0, [r8]
	bl	iounmap
	mov	r0, r4
	bl	framebuffer_release
.L2:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
	.size	tmiofb_remove, .-tmiofb_remove
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
