	.file	"extr_driver.c_line6_disconnect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"usb_device"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"driver bug: inconsistent usb device\n"
	.section	.rodata.str1.1
.LC2:
	.string	"Line6 %s now disconnected\n"
	.text
	.p2align 4
	.type	line6_disconnect, @function
line6_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	test	rdi, rdi
	je	.L35
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	interface_to_usbdev@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	sysfs_remove_link@PLT
	mov	rax, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	r13d, DWORD PTR [rax]
	call	usb_get_intfdata@PLT
	mov	rbx, rax
	test	rax, rax
	je	.L14
	mov	rdi, QWORD PTR 24[rax]
	test	rdi, rdi
	je	.L6
	call	usb_kill_urb@PLT
.L6:
	mov	rax, r12
	cmp	QWORD PTR 8[rbx], r12
	je	.L7
	mov	edi, DWORD PTR 16[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	rax, QWORD PTR 8[rbx]
.L7:
	mov	eax, DWORD PTR [rax]
	sub	eax, 130
	cmp	eax, 13
	ja	.L8
	lea	rdx, .L10[rip]
	movsx	rax, DWORD PTR [rdx+rax*4]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L10:
	.long	.L13-.L10
	.long	.L11-.L10
	.long	.L11-.L10
	.long	.L11-.L10
	.long	.L9-.L10
	.long	.L12-.L10
	.long	.L9-.L10
	.long	.L9-.L10
	.long	.L9-.L10
	.long	.L9-.L10
	.long	.L11-.L10
	.long	.L9-.L10
	.long	.L9-.L10
	.long	.L9-.L10
	.text
	.p2align 4,,10
	.p2align 3
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, rbp
	call	line6_destruct@PLT
	mov	rdi, rbp
	call	usb_put_intf@PLT
	mov	rdi, r12
	call	usb_put_dev@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_restore 3
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_restore 6
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_restore 12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_restore 13
	.cfi_def_cfa_offset 8
	jmp	line6_list_devices@PLT
.L12:
	.cfi_restore_state
	cmp	r13d, 128
	je	.L13
	cmp	r13d, 129
	jne	.L8
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, rbp
	call	pod_disconnect@PLT
.L8:
	mov	rax, QWORD PTR [rbx]
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR [rax]
	call	dev_info@PLT
	mov	eax, DWORD PTR LINE6_MAX_DEVICES[rip]
	lea	ecx, -1[rax]
	test	eax, eax
	je	.L14
	mov	rsi, QWORD PTR line6_devices[rip]
	movsx	rdx, ecx
	mov	ecx, ecx
	sal	rdx, 3
	sal	rcx, 3
	lea	rax, [rsi+rdx]
	lea	rdx, -8[rsi+rdx]
	sub	rdx, rcx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L15:
	sub	rax, 8
	cmp	rax, rdx
	je	.L14
.L16:
	cmp	QWORD PTR [rax], rbx
	jne	.L15
	mov	QWORD PTR [rax], 0
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rdi, rbp
	call	toneport_disconnect@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdi, rbp
	call	variax_disconnect@PLT
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	line6_disconnect, .-line6_disconnect
	.comm	line6_devices,8,8
	.comm	MISSING_CASE,4,4
	.comm	LINE6_MAX_DEVICES,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_driver.c_line6_disconnect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"usb_device\000"
	.align	2
.LC1:
	.ascii	"driver bug: inconsistent usb device\012\000"
	.align	2
.LC2:
	.ascii	"Line6 %s now disconnected\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	line6_disconnect, %function
line6_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	subs	r4, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	bl	interface_to_usbdev
	subs	r6, r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r1, .L36
	mov	r0, r4
	bl	sysfs_remove_link
	ldr	r3, [r4, #4]
	mov	r0, r4
	ldr	r7, [r3]
	bl	usb_get_intfdata
	subs	r5, r0, #0
	beq	.L14
	ldr	r0, [r5, #12]
	cmp	r0, #0
	beq	.L6
	bl	usb_kill_urb
.L6:
	ldr	r3, [r5, #4]
	cmp	r3, r6
	moveq	r3, r6
	beq	.L7
	ldr	r1, .L36+4
	ldr	r0, [r5, #8]
	bl	dev_err
	ldr	r3, [r5, #4]
.L7:
	ldr	r3, [r3]
	sub	r3, r3, #130
	cmp	r3, #13
	ldrls	pc, [pc, r3, asl #2]
	b	.L8
.L10:
	.word	.L13
	.word	.L11
	.word	.L11
	.word	.L11
	.word	.L9
	.word	.L12
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L9
	.word	.L11
	.word	.L9
	.word	.L9
	.word	.L9
.L12:
	cmp	r7, #128
	beq	.L13
	cmp	r7, #129
	bne	.L8
.L9:
	mov	r0, r4
	bl	pod_disconnect
.L8:
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r2, [r3]
	ldr	r1, .L36+8
	bl	dev_info
	ldr	r3, .L36+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L14
	mov	r0, #0
	ldr	r2, .L36+16
	ldr	r1, [r2]
	add	r3, r1, r3, lsl #2
.L16:
	ldr	r2, [r3, #-4]!
	cmp	r2, r5
	streq	r0, [r3]
	cmp	r1, r3
	bne	.L16
.L14:
	mov	r0, r4
	bl	line6_destruct
	mov	r0, r4
	bl	usb_put_intf
	mov	r0, r6
	bl	usb_put_dev
	pop	{r4, r5, r6, r7, r8, lr}
	b	line6_list_devices
.L11:
	mov	r0, r4
	bl	toneport_disconnect
	b	.L8
.L13:
	mov	r0, r4
	bl	variax_disconnect
	b	.L8
.L37:
	.align	2
.L36:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	LINE6_MAX_DEVICES
	.word	line6_devices
	.size	line6_disconnect, .-line6_disconnect
	.comm	line6_devices,4,4
	.comm	MISSING_CASE,4,4
	.comm	LINE6_MAX_DEVICES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
