	.file	"extr_hgafb.c_hgafb_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hgafb_remove, @function
hgafb_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	call	platform_get_drvdata@PLT
	mov	rbp, rax
	xor	eax, eax
	call	hga_txt_mode@PLT
	xor	eax, eax
	call	hga_clear_screen@PLT
	test	rbp, rbp
	je	.L2
	mov	rdi, rbp
	call	unregister_framebuffer@PLT
	mov	rdi, rbp
	call	framebuffer_release@PLT
.L2:
	mov	edi, DWORD PTR hga_vram[rip]
	call	iounmap@PLT
	cmp	QWORD PTR release_io_ports[rip], 0
	jne	.L10
	cmp	QWORD PTR release_io_port[rip], 0
	jne	.L11
.L4:
	xor	eax, eax
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, 12
	mov	edi, 944
	call	release_region@PLT
	cmp	QWORD PTR release_io_port[rip], 0
	je	.L4
.L11:
	mov	esi, 1
	mov	edi, 959
	call	release_region@PLT
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hgafb_remove, .-hgafb_remove
	.comm	release_io_ports,8,8
	.comm	release_io_port,8,8
	.comm	hga_vram,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_hgafb.c_hgafb_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hgafb_remove, %function
hgafb_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	platform_get_drvdata
	mov	r4, r0
	bl	hga_txt_mode
	bl	hga_clear_screen
	cmp	r4, #0
	beq	.L2
	mov	r0, r4
	bl	unregister_framebuffer
	mov	r0, r4
	bl	framebuffer_release
.L2:
	ldr	r3, .L18
	ldr	r0, [r3]
	bl	iounmap
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L16
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L17
.L4:
	mov	r0, #0
	pop	{r4, pc}
.L16:
	mov	r1, #12
	mov	r0, #944
	bl	release_region
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L4
.L17:
	mov	r1, #1
	ldr	r0, .L18+12
	bl	release_region
	mov	r0, #0
	pop	{r4, pc}
.L19:
	.align	2
.L18:
	.word	hga_vram
	.word	release_io_ports
	.word	release_io_port
	.word	959
	.size	hgafb_remove, .-hgafb_remove
	.comm	release_io_ports,4,4
	.comm	release_io_port,4,4
	.comm	hga_vram,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
