	.file	"extr_ctcm_main.c_ctcm_remove_device.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"removing device %p, proto : %d"
	.text
	.p2align 4
	.type	ctcm_remove_device, @function
ctcm_remove_device:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	r13, 8[rdi]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	mov	rdi, r13
	call	dev_get_drvdata@PLT
	xor	edi, edi
	test	rax, rax
	mov	r12, rax
	sete	dil
	call	BUG_ON@PLT
	mov	r8d, DWORD PTR [r12]
	mov	esi, DWORD PTR CTC_DBF_INFO[rip]
	mov	rcx, rbp
	mov	edi, DWORD PTR SETUP[rip]
	lea	rdx, .LC0[rip]
	call	CTCM_DBF_TEXT_@PLT
	mov	rax, QWORD PTR CCWGROUP_ONLINE[rip]
	cmp	QWORD PTR 0[rbp], rax
	je	.L5
.L2:
	mov	rdi, r13
	call	ctcm_remove_files@PLT
	mov	rdi, r13
	xor	esi, esi
	call	dev_set_drvdata@PLT
	mov	rdi, r12
	call	kfree@PLT
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, r13
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	put_device@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	ctcm_shutdown_device@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ctcm_remove_device, .-ctcm_remove_device
	.comm	SETUP,4,4
	.comm	CTC_DBF_INFO,4,4
	.comm	CCWGROUP_ONLINE,8,8
	.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_ctcm_main.c_ctcm_remove_device.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"removing device %p, proto : %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ctcm_remove_device, %function
ctcm_remove_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	add	r6, r0, #4
	sub	sp, sp, #8
	mov	r4, r0
	mov	r0, r6
	bl	dev_get_drvdata
	mov	r5, r0
	clz	r0, r0
	lsr	r0, r0, #5
	bl	BUG_ON
	ldr	r3, [r5]
	ldr	r2, .L6
	ldr	r1, .L6+4
	str	r3, [sp]
	ldr	r0, [r2]
	mov	r3, r4
	ldr	r2, .L6+8
	ldr	r1, [r1]
	bl	CTCM_DBF_TEXT_
	ldr	r3, .L6+12
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
.L2:
	mov	r0, r6
	bl	ctcm_remove_files
	mov	r1, #0
	mov	r0, r6
	bl	dev_set_drvdata
	mov	r0, r5
	bl	kfree
	mov	r0, r6
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, lr}
	b	put_device
.L5:
	mov	r0, r4
	bl	ctcm_shutdown_device
	b	.L2
.L7:
	.align	2
.L6:
	.word	SETUP
	.word	CTC_DBF_INFO
	.word	.LC0
	.word	CCWGROUP_ONLINE
	.size	ctcm_remove_device, .-ctcm_remove_device
	.comm	SETUP,4,4
	.comm	CTC_DBF_INFO,4,4
	.comm	CCWGROUP_ONLINE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
