	.file	"extr_et61x251_core.c_et61x251_usb_disconnect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Disconnecting %s..."
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Device /dev/video%d is open! Deregistration and memory deallocation are deferred."
	.text
	.p2align 4
	.type	et61x251_usb_disconnect, @function
et61x251_usb_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	lea	rdi, et61x251_dev_lock[rip]
	call	down_write@PLT
	mov	rdi, rbp
	call	usb_get_intfdata@PLT
	lea	rsi, .LC0[rip]
	mov	edi, 2
	mov	rbp, rax
	mov	rax, QWORD PTR 24[rax]
	mov	edx, DWORD PTR 4[rax]
	call	DBG@PLT
	cmp	QWORD PTR 32[rbp], 0
	jne	.L6
	mov	eax, DWORD PTR DEV_DISCONNECTED[rip]
	or	DWORD PTR 8[rbp], eax
.L3:
	lea	rdi, 4[rbp]
	call	wake_up_interruptible_all@PLT
	mov	esi, DWORD PTR et61x251_release_resources[rip]
	mov	rdi, rbp
	call	kref_put@PLT
	lea	rdi, et61x251_dev_lock[rip]
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	up_write@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbp]
	lea	rsi, .LC1[rip]
	mov	edi, 2
	mov	edx, DWORD PTR [rax]
	call	DBG@PLT
	mov	eax, DWORD PTR DEV_MISCONFIGURED[rip]
	or	DWORD PTR 8[rbp], eax
	mov	rdi, rbp
	call	et61x251_stop_transfer@PLT
	mov	eax, DWORD PTR DEV_DISCONNECTED[rip]
	or	DWORD PTR 8[rbp], eax
	lea	rdi, 16[rbp]
	call	wake_up_interruptible@PLT
	lea	rdi, 12[rbp]
	call	wake_up@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	et61x251_usb_disconnect, .-et61x251_usb_disconnect
	.comm	et61x251_release_resources,4,4
	.comm	et61x251_dev_lock,4,4
	.comm	DEV_MISCONFIGURED,4,4
	.comm	DEV_DISCONNECTED,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_et61x251_core.c_et61x251_usb_disconnect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Disconnecting %s...\000"
	.align	2
.LC1:
	.ascii	"Device /dev/video%d is open! Deregistration and mem"
	.ascii	"ory deallocation are deferred.\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	et61x251_usb_disconnect, %function
et61x251_usb_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	ldr	r0, .L7
	bl	down_write
	mov	r0, r4
	bl	usb_get_intfdata
	mov	r4, r0
	ldr	r3, [r0, #20]
	ldr	r1, .L7+4
	ldr	r2, [r3, #4]
	mov	r0, #2
	bl	DBG
	ldr	r3, [r4, #24]
	cmp	r3, #0
	bne	.L6
	ldr	r2, .L7+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	orr	r3, r3, r2
	str	r3, [r4, #8]
.L3:
	add	r0, r4, #4
	bl	wake_up_interruptible_all
	ldr	r3, .L7+12
	mov	r0, r4
	ldr	r1, [r3]
	bl	kref_put
	pop	{r4, lr}
	ldr	r0, .L7
	b	up_write
.L6:
	ldr	r3, [r4, #20]
	ldr	r1, .L7+16
	ldr	r2, [r3]
	mov	r0, #2
	bl	DBG
	ldr	r2, .L7+20
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	mov	r0, r4
	orr	r3, r3, r2
	str	r3, [r4, #8]
	bl	et61x251_stop_transfer
	ldr	r2, .L7+8
	ldr	r3, [r4, #8]
	ldr	r2, [r2]
	add	r0, r4, #16
	orr	r3, r3, r2
	str	r3, [r4, #8]
	bl	wake_up_interruptible
	add	r0, r4, #12
	bl	wake_up
	b	.L3
.L8:
	.align	2
.L7:
	.word	et61x251_dev_lock
	.word	.LC0
	.word	DEV_DISCONNECTED
	.word	et61x251_release_resources
	.word	.LC1
	.word	DEV_MISCONFIGURED
	.size	et61x251_usb_disconnect, .-et61x251_usb_disconnect
	.comm	et61x251_release_resources,4,4
	.comm	et61x251_dev_lock,4,4
	.comm	DEV_MISCONFIGURED,4,4
	.comm	DEV_DISCONNECTED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
