	.file	"extr_usb-serial.c_usb_serial_disconnect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"device disconnected\n"
	.text
	.p2align 4
	.type	usb_serial_disconnect, @function
usb_serial_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	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	usb_get_intfdata@PLT
	mov	r13, rax
	mov	rdi, rax
	call	usb_serial_console_disconnect@PLT
	lea	rbp, 24[r13]
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	DWORD PTR 0[r13], 1
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	eax, DWORD PTR 4[r13]
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	DWORD PTR 4[r13], ebx
	jle	.L2
.L5:
	mov	rax, QWORD PTR 16[r13]
	mov	rbp, QWORD PTR [rax+rbx*8]
	lea	r14, 8[rbp]
	mov	rdi, r14
	call	tty_port_tty_get@PLT
	mov	r12, rax
	test	rax, rax
	je	.L3
	mov	rdi, rax
	call	tty_vhangup@PLT
	mov	rdi, r12
	call	tty_kref_put@PLT
.L3:
	mov	rdi, rbp
	call	usb_serial_port_poison_urbs@PLT
	mov	rdi, r14
	call	wake_up_interruptible@PLT
	lea	rdi, 4[rbp]
	call	cancel_work_sync@PLT
	mov	rdi, rbp
	call	device_is_registered@PLT
	test	rax, rax
	je	.L4
	mov	rdi, rbp
	add	rbx, 1
	call	device_del@PLT
	cmp	DWORD PTR 4[r13], ebx
	jg	.L5
.L2:
	mov	rax, QWORD PTR 8[r13]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L6
	mov	rdi, r13
	call	rax
.L6:
	mov	rdi, r13
	call	usb_serial_put@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, r15
	lea	rsi, .LC0[rip]
	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
	jmp	dev_info@PLT
	.cfi_endproc
.LFE0:
	.size	usb_serial_disconnect, .-usb_serial_disconnect
	.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_usb-serial.c_usb_serial_disconnect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"device disconnected\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_serial_disconnect, %function
usb_serial_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r9, r0
	bl	usb_get_intfdata
	add	r4, r0, #16
	mov	r7, r0
	bl	usb_serial_console_disconnect
	mov	r0, r4
	bl	mutex_lock
	mov	r3, #1
	mov	r0, r4
	str	r3, [r7]
	bl	mutex_unlock
	ldr	r3, [r7, #4]
	cmp	r3, #0
	ble	.L2
	mov	r6, #0
	b	.L5
.L4:
	ldr	r3, [r7, #4]
	cmp	r3, r6
	ble	.L2
.L5:
	ldr	r3, [r7, #12]
	ldr	r4, [r3, r6, lsl #2]
	add	r6, r6, #1
	add	r8, r4, #8
	mov	r0, r8
	bl	tty_port_tty_get
	subs	r5, r0, #0
	beq	.L3
	bl	tty_vhangup
	mov	r0, r5
	bl	tty_kref_put
.L3:
	mov	r0, r4
	bl	usb_serial_port_poison_urbs
	mov	r0, r8
	bl	wake_up_interruptible
	add	r0, r4, #4
	bl	cancel_work_sync
	mov	r0, r4
	bl	device_is_registered
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	device_del
	ldr	r3, [r7, #4]
	cmp	r3, r6
	bgt	.L5
.L2:
	ldr	r3, [r7, #8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L6
	mov	r0, r7
	blx	r3
.L6:
	mov	r0, r7
	bl	usb_serial_put
	mov	r0, r9
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, .L19
	b	dev_info
.L20:
	.align	2
.L19:
	.word	.LC0
	.size	usb_serial_disconnect, .-usb_serial_disconnect
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
