	.file	"extr_common.c_cleanup_cs.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"could not allocate channel %d data\n"
	.text
	.p2align 4
	.type	cleanup_cs, @function
cleanup_cs:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	r12, 40[rdi]
	xor	esi, esi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	rdi, r12
	lea	rbp, 120[rbx]
	call	spin_lock_irqsave@PLT
	mov	eax, DWORD PTR M_UNKNOWN[rip]
	mov	rdi, rbp
	mov	DWORD PTR 128[rbx], eax
	mov	eax, DWORD PTR MS_UNINITIALIZED[rip]
	mov	DWORD PTR 124[rbx], eax
	call	clear_at_state@PLT
	mov	rdi, rbx
	call	dealloc_at_states@PLT
	mov	rdi, rbp
	call	free_strings@PLT
	mov	rdx, rbx
	mov	rdi, rbp
	xor	ecx, ecx
	xor	esi, esi
	call	gigaset_at_init@PLT
	mov	rax, QWORD PTR 112[rbx]
	mov	rdi, QWORD PTR 24[rax]
	call	kfree@PLT
	mov	rax, QWORD PTR 112[rbx]
	mov	edx, DWORD PTR INS_command[rip]
	mov	rbp, QWORD PTR 104[rbx]
	mov	QWORD PTR 24[rax], 0
	mov	DWORD PTR 16[rax], edx
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
	test	rbp, rbp
	je	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, rbp
	mov	rbp, QWORD PTR 0[rbp]
	call	kfree@PLT
	test	rbp, rbp
	jne	.L3
.L2:
	mov	QWORD PTR 96[rbx], 0
	xor	esi, esi
	mov	rdi, r12
	mov	QWORD PTR 104[rbx], 0
	mov	QWORD PTR 88[rbx], 0
	mov	QWORD PTR 80[rbx], 0
	mov	DWORD PTR [rbx], -1
	mov	QWORD PTR 72[rbx], 0
	mov	QWORD PTR 64[rbx], 0
	mov	QWORD PTR 56[rbx], 0
	mov	QWORD PTR 48[rbx], 0
	call	spin_unlock_irqrestore@PLT
	mov	eax, DWORD PTR 4[rbx]
	test	eax, eax
	jle	.L4
	xor	ebp, ebp
	lea	r12, .LC0[rip]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	rbp, 1
	cmp	DWORD PTR 4[rbx], ebp
	jle	.L4
.L6:
	mov	rdi, QWORD PTR 32[rbx]
	add	rdi, rbp
	call	gigaset_freebcs@PLT
	mov	rdi, QWORD PTR 32[rbx]
	mov	edx, ebp
	mov	rsi, rbx
	add	rdi, rbp
	call	gigaset_initbcs@PLT
	test	eax, eax
	jne	.L5
	mov	esi, ebp
	mov	rdi, r12
	add	rbp, 1
	call	pr_err@PLT
	cmp	DWORD PTR 4[rbx], ebp
	jg	.L6
.L4:
	cmp	QWORD PTR 16[rbx], 0
	jne	.L15
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	eax, DWORD PTR ENODEV[rip]
	mov	QWORD PTR 16[rbx], 0
	lea	rdi, 8[rbx]
	neg	eax
	mov	DWORD PTR 24[rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	wake_up_interruptible@PLT
	.cfi_endproc
.LFE0:
	.size	cleanup_cs, .-cleanup_cs
	.comm	M_UNKNOWN,4,4
	.comm	MS_UNINITIALIZED,4,4
	.comm	INS_command,4,4
	.comm	ENODEV,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_common.c_cleanup_cs.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"could not allocate channel %d data\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cleanup_cs, %function
cleanup_cs:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	add	r6, r0, #24
	mov	r1, #0
	mov	r0, r6
	bl	spin_lock_irqsave
	ldr	r2, .L15
	ldr	r3, .L15+4
	ldr	r2, [r2]
	ldr	r3, [r3]
	add	r4, r5, #64
	str	r2, [r5, #72]
	str	r3, [r5, #68]
	mov	r0, r4
	bl	clear_at_state
	mov	r0, r5
	bl	dealloc_at_states
	mov	r0, r4
	bl	free_strings
	mov	r3, #0
	mov	r2, r5
	mov	r1, r3
	mov	r0, r4
	bl	gigaset_at_init
	ldr	r3, [r5, #60]
	ldr	r0, [r3, #12]
	bl	kfree
	mov	r2, #0
	ldr	r1, .L15+8
	ldr	r4, [r5, #56]
	ldr	r3, [r5, #60]
	ldr	r1, [r1]
	cmp	r4, r2
	str	r1, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #4]
	str	r2, [r3]
	beq	.L2
.L3:
	mov	r0, r4
	ldr	r4, [r4]
	bl	kfree
	cmp	r4, #0
	bne	.L3
.L2:
	mov	r4, #0
	mvn	r3, #0
	mov	r0, r6
	str	r3, [r5]
	mov	r1, r4
	str	r4, [r5, #52]
	str	r4, [r5, #56]
	str	r4, [r5, #48]
	str	r4, [r5, #44]
	str	r4, [r5, #40]
	str	r4, [r5, #36]
	str	r4, [r5, #32]
	str	r4, [r5, #28]
	bl	spin_unlock_irqrestore
	ldr	r3, [r5, #4]
	cmp	r3, r4
	ble	.L4
	ldr	r6, .L15+12
	b	.L6
.L5:
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	ble	.L4
.L6:
	ldr	r0, [r5, #20]
	add	r0, r4, r0
	bl	gigaset_freebcs
	ldr	r0, [r5, #20]
	mov	r2, r4
	mov	r1, r5
	add	r0, r4, r0
	bl	gigaset_initbcs
	cmp	r0, #0
	bne	.L5
	mov	r1, r4
	mov	r0, r6
	bl	pr_err
	ldr	r3, [r5, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L6
.L4:
	ldr	r3, [r5, #12]
	cmp	r3, #0
	popeq	{r4, r5, r6, pc}
	mov	r2, #0
	ldr	r3, .L15+16
	str	r2, [r5, #12]
	ldr	r3, [r3]
	add	r0, r5, #8
	rsb	r3, r3, #0
	str	r3, [r5, #16]
	pop	{r4, r5, r6, lr}
	b	wake_up_interruptible
.L16:
	.align	2
.L15:
	.word	M_UNKNOWN
	.word	MS_UNINITIALIZED
	.word	INS_command
	.word	.LC0
	.word	ENODEV
	.size	cleanup_cs, .-cleanup_cs
	.comm	M_UNKNOWN,4,4
	.comm	MS_UNINITIALIZED,4,4
	.comm	INS_command,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
