	.file	"extr_ltq_atm.c_ltq_atm_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ltq_atm_remove, @function
ltq_atm_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	platform_get_drvdata@PLT
	mov	QWORD PTR ifx_mei_atm_showtime_enter[rip], 0
	mov	QWORD PTR ifx_mei_atm_showtime_exit[rip], 0
	mov	rbp, rax
	xor	eax, eax
	call	invalidate_oam_htu_entry@PLT
	xor	edi, edi
	call	[QWORD PTR 8[rbp]]
	mov	edi, DWORD PTR PPE_MAILBOX_IGU1_INT[rip]
	lea	rsi, g_atm_priv_data[rip]
	call	free_irq@PLT
	mov	eax, DWORD PTR ATM_PORT_NUMBER[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR g_atm_priv_data[rip]
	mov	edi, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	atm_dev_deregister@PLT
	cmp	DWORD PTR ATM_PORT_NUMBER[rip], ebx
	jg	.L3
.L2:
	xor	eax, eax
	call	[QWORD PTR 0[rbp]]
	xor	eax, eax
	call	clear_priv_data@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ltq_atm_remove, .-ltq_atm_remove
	.comm	ifx_mei_atm_showtime_exit,8,8
	.comm	ifx_mei_atm_showtime_enter,8,8
	.comm	g_atm_priv_data,8,8
	.comm	PPE_MAILBOX_IGU1_INT,4,4
	.comm	ATM_PORT_NUMBER,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_ltq_atm.c_ltq_atm_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ltq_atm_remove, %function
ltq_atm_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	bl	platform_get_drvdata
	mov	r4, #0
	mov	r7, r0
	ldr	r2, .L7
	ldr	r3, .L7+4
	str	r4, [r2]
	str	r4, [r3]
	bl	invalidate_oam_htu_entry
	ldr	r3, [r7, #4]
	mov	r0, r4
	blx	r3
	ldr	r3, .L7+8
	ldr	r5, .L7+12
	ldr	r0, [r3]
	ldr	r1, .L7+16
	bl	free_irq
	ldr	r3, [r5]
	cmp	r3, r4
	ble	.L2
	ldr	r6, .L7+16
.L3:
	ldr	r3, [r6]
	ldr	r0, [r3, r4, lsl #2]
	bl	atm_dev_deregister
	ldr	r3, [r5]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r3, [r7]
	blx	r3
	bl	clear_priv_data
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	ifx_mei_atm_showtime_enter
	.word	ifx_mei_atm_showtime_exit
	.word	PPE_MAILBOX_IGU1_INT
	.word	ATM_PORT_NUMBER
	.word	g_atm_priv_data
	.size	ltq_atm_remove, .-ltq_atm_remove
	.comm	ifx_mei_atm_showtime_exit,4,4
	.comm	ifx_mei_atm_showtime_enter,4,4
	.comm	g_atm_priv_data,4,4
	.comm	PPE_MAILBOX_IGU1_INT,4,4
	.comm	ATM_PORT_NUMBER,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
