	.file	"extr_cal.c_cal_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Removing %s\n"
.LC1:
	.string	"unregistering %s\n"
	.text
	.p2align 4
	.type	cal_remove, @function
cal_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	platform_get_drvdata@PLT
	mov	ecx, DWORD PTR CAL_MODULE_NAME[rip]
	mov	edi, 1
	lea	rdx, .LC0[rip]
	mov	r14, rax
	mov	rsi, rax
	call	cal_dbg@PLT
	mov	rdi, r14
	call	cal_runtime_get@PLT
	mov	eax, DWORD PTR CAL_NUM_CONTEXT[rip]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	lea	r12, .LC1[rip]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR [r14]
	mov	rbp, QWORD PTR [rax+rbx*8]
	test	rbp, rbp
	je	.L3
	mov	rdi, rbp
	lea	r15, 12[rbp]
	call	video_device_node_name@PLT
	mov	rdx, r12
	mov	rsi, rbp
	mov	edi, 1
	mov	ecx, eax
	call	ctx_dbg@PLT
	mov	rdi, rbp
	call	camerarx_phy_disable@PLT
	mov	rdi, r15
	call	v4l2_async_notifier_unregister@PLT
	mov	rdi, r15
	call	v4l2_async_notifier_cleanup@PLT
	lea	rdi, 8[rbp]
	call	v4l2_ctrl_handler_free@PLT
	lea	rdi, 4[rbp]
	call	v4l2_device_unregister@PLT
	mov	rdi, rbp
	call	video_unregister_device@PLT
.L3:
	add	rbx, 1
	cmp	DWORD PTR CAL_NUM_CONTEXT[rip], ebx
	jg	.L4
.L2:
	mov	rdi, r14
	call	cal_runtime_put@PLT
	mov	rdi, r13
	call	pm_runtime_disable@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cal_remove, .-cal_remove
	.comm	CAL_NUM_CONTEXT,4,4
	.comm	CAL_MODULE_NAME,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_cal.c_cal_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Removing %s\012\000"
	.align	2
.LC1:
	.ascii	"unregistering %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cal_remove, %function
cal_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r10, r0
	bl	platform_get_drvdata
	mov	r7, r0
	ldr	r3, .L11
	mov	r1, r0
	ldr	r3, [r3]
	ldr	r2, .L11+4
	mov	r0, #1
	ldr	r8, .L11+8
	bl	cal_dbg
	mov	r0, r7
	bl	cal_runtime_get
	ldr	r3, [r8]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	ldr	r9, .L11+12
.L4:
	ldr	r3, [r7]
	ldr	r4, [r3, r5, lsl #2]
	add	r5, r5, #1
	cmp	r4, #0
	add	r6, r4, #12
	beq	.L3
	mov	r0, r4
	bl	video_device_node_name
	mov	r2, r9
	mov	r3, r0
	mov	r1, r4
	mov	r0, #1
	bl	ctx_dbg
	mov	r0, r4
	bl	camerarx_phy_disable
	mov	r0, r6
	bl	v4l2_async_notifier_unregister
	mov	r0, r6
	bl	v4l2_async_notifier_cleanup
	add	r0, r4, #8
	bl	v4l2_ctrl_handler_free
	add	r0, r4, #4
	bl	v4l2_device_unregister
	mov	r0, r4
	bl	video_unregister_device
.L3:
	ldr	r3, [r8]
	cmp	r3, r5
	bgt	.L4
.L2:
	mov	r0, r7
	bl	cal_runtime_put
	mov	r0, r10
	bl	pm_runtime_disable
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L12:
	.align	2
.L11:
	.word	CAL_MODULE_NAME
	.word	.LC0
	.word	CAL_NUM_CONTEXT
	.word	.LC1
	.size	cal_remove, .-cal_remove
	.comm	CAL_NUM_CONTEXT,4,4
	.comm	CAL_MODULE_NAME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
