	.file	"extr_pcwd_usb.c_usb_pcwd_disconnect.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"USB PC Watchdog disconnected\n"
	.text
	.p2align 4
	.type	usb_pcwd_disconnect, @function
usb_pcwd_disconnect:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	lea	rdi, disconnect_mutex[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	mutex_lock@PLT
	mov	rdi, r12
	call	usb_get_intfdata@PLT
	xor	esi, esi
	mov	rdi, r12
	mov	rbp, rax
	call	usb_set_intfdata@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	eax, DWORD PTR nowayout[rip]
	test	eax, eax
	je	.L5
.L2:
	mov	QWORD PTR 8[rbp], 0
	lea	rdi, usb_pcwd_miscdev[rip]
	call	misc_deregister@PLT
	lea	rdi, usb_pcwd_temperature_miscdev[rip]
	call	misc_deregister@PLT
	lea	rdi, usb_pcwd_notifier[rip]
	call	unregister_reboot_notifier@PLT
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	usb_pcwd_delete@PLT
	sub	DWORD PTR cards_found[rip], 1
	lea	rdi, disconnect_mutex[rip]
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rdi, .LC0[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	pr_info@PLT
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rdi, rbp
	call	usb_pcwd_stop@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	usb_pcwd_disconnect, .-usb_pcwd_disconnect
	.comm	usb_pcwd_temperature_miscdev,4,4
	.comm	usb_pcwd_notifier,4,4
	.comm	usb_pcwd_miscdev,4,4
	.comm	nowayout,4,4
	.comm	disconnect_mutex,4,4
	.comm	cards_found,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_pcwd_usb.c_usb_pcwd_disconnect.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"USB PC Watchdog disconnected\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usb_pcwd_disconnect, %function
usb_pcwd_disconnect:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, .L6
	bl	mutex_lock
	mov	r0, r5
	bl	usb_get_intfdata
	mov	r4, r0
	mov	r1, #0
	mov	r0, r5
	bl	usb_set_intfdata
	mov	r0, r4
	bl	mutex_lock
	ldr	r3, .L6+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L5
.L2:
	mov	r3, #0
	ldr	r0, .L6+8
	str	r3, [r4, #4]
	bl	misc_deregister
	ldr	r0, .L6+12
	bl	misc_deregister
	ldr	r0, .L6+16
	bl	unregister_reboot_notifier
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, r4
	bl	usb_pcwd_delete
	ldr	r2, .L6+20
	ldr	r0, .L6
	ldr	r3, [r2]
	sub	r3, r3, #1
	str	r3, [r2]
	bl	mutex_unlock
	pop	{r4, r5, r6, lr}
	ldr	r0, .L6+24
	b	pr_info
.L5:
	mov	r0, r4
	bl	usb_pcwd_stop
	b	.L2
.L7:
	.align	2
.L6:
	.word	disconnect_mutex
	.word	nowayout
	.word	usb_pcwd_miscdev
	.word	usb_pcwd_temperature_miscdev
	.word	usb_pcwd_notifier
	.word	cards_found
	.word	.LC0
	.size	usb_pcwd_disconnect, .-usb_pcwd_disconnect
	.comm	usb_pcwd_temperature_miscdev,4,4
	.comm	usb_pcwd_notifier,4,4
	.comm	usb_pcwd_miscdev,4,4
	.comm	nowayout,4,4
	.comm	disconnect_mutex,4,4
	.comm	cards_found,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
