	.file	"extr_ipoctal.c___ipoctal_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	__ipoctal_remove, @function
__ipoctal_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rdi, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR [rax]]
	mov	eax, DWORD PTR NR_CHANNELS[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rax, QWORD PTR 8[r12]
	mov	edi, DWORD PTR [r12]
	mov	esi, ebx
	lea	rbp, [rax+rbx*4]
	add	rbx, 1
	call	tty_unregister_device@PLT
	mov	rdi, rbp
	call	tty_port_free_xmit_buf@PLT
	mov	rdi, rbp
	call	tty_port_destroy@PLT
	cmp	DWORD PTR NR_CHANNELS[rip], ebx
	jg	.L3
.L2:
	mov	edi, DWORD PTR [r12]
	call	tty_unregister_driver@PLT
	mov	edi, DWORD PTR [r12]
	call	put_tty_driver@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, r12
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	kfree@PLT
	.cfi_endproc
.LFE0:
	.size	__ipoctal_remove, .-__ipoctal_remove
	.comm	NR_CHANNELS,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_ipoctal.c___ipoctal_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__ipoctal_remove, %function
__ipoctal_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r0
	ldr	r0, [r0, #8]
	ldr	r7, .L7
	ldr	r3, [r0]
	ldr	r3, [r3]
	ldr	r3, [r3]
	blx	r3
	ldr	r3, [r7]
	cmp	r3, #0
	ble	.L2
	mov	r4, #0
.L3:
	ldr	r5, [r6, #4]
	mov	r1, r4
	add	r5, r5, r4, lsl #2
	ldr	r0, [r6]
	bl	tty_unregister_device
	mov	r0, r5
	bl	tty_port_free_xmit_buf
	mov	r0, r5
	bl	tty_port_destroy
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L3
.L2:
	ldr	r0, [r6]
	bl	tty_unregister_driver
	ldr	r0, [r6]
	bl	put_tty_driver
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, lr}
	b	kfree
.L8:
	.align	2
.L7:
	.word	NR_CHANNELS
	.size	__ipoctal_remove, .-__ipoctal_remove
	.comm	NR_CHANNELS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
