	.file	"extr_fschmd.c_fschmd_remove.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"i2c client detached with watchdog open! Stopping watchdog.\n"
	.text
	.p2align 4
	.type	fschmd_remove, @function
fschmd_remove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	call	i2c_get_clientdata@PLT
	cmp	QWORD PTR 56[rax], 0
	mov	rbx, rax
	jne	.L22
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	jne	.L23
.L4:
	lea	rsi, dev_attr_alert_led[rip]
	mov	rdi, r12
	call	device_remove_file@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rcx, QWORD PTR FSCHMD_NO_VOLT_SENSORS[rip]
	mov	esi, DWORD PTR [rcx+rax*4]
	lea	rdx, 0[0+rax*4]
	test	esi, esi
	jle	.L5
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rax, QWORD PTR fschmd_attr[rip]
	mov	rdi, r12
	lea	rsi, [rax+rbp*4]
	add	rbp, 1
	call	device_remove_file@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rcx, QWORD PTR FSCHMD_NO_VOLT_SENSORS[rip]
	lea	rdx, 0[0+rax*4]
	cmp	DWORD PTR [rcx+rax*4], ebp
	jg	.L6
.L5:
	mov	rax, QWORD PTR FSCHMD_NO_TEMP_SENSORS[rip]
	mov	ecx, DWORD PTR [rax+rdx]
	test	ecx, ecx
	jle	.L7
	xor	ebp, ebp
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rax, QWORD PTR fschmd_temp_attr[rip]
	mov	rdi, r12
	lea	rsi, [rax+rbp*4]
	add	rbp, 1
	call	device_remove_file@PLT
	mov	rax, QWORD PTR [rbx]
	mov	rcx, QWORD PTR FSCHMD_NO_TEMP_SENSORS[rip]
	lea	rdx, 0[0+rax*4]
	mov	eax, DWORD PTR [rcx+rax*4]
	sal	eax, 2
	cmp	eax, ebp
	jg	.L8
.L7:
	mov	rax, QWORD PTR FSCHMD_NO_FAN_SENSORS[rip]
	xor	ebp, ebp
	mov	eax, DWORD PTR [rax+rdx]
	test	eax, eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR fschmd_fan_attr[rip]
	mov	rdi, r12
	lea	rsi, [rax+rbp*4]
	add	rbp, 1
	call	device_remove_file@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR FSCHMD_NO_FAN_SENSORS[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	eax, [rax+rax*4]
	cmp	eax, ebp
	jg	.L9
.L10:
	lea	rdi, watchdog_data_mutex[rip]
	call	mutex_lock@PLT
	mov	esi, DWORD PTR fschmd_release_resources[rip]
	lea	rdi, 8[rbx]
	call	kref_put@PLT
	lea	rdi, watchdog_data_mutex[rip]
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	lea	rdi, 56[rax]
	call	misc_deregister@PLT
	cmp	QWORD PTR 48[rbx], 0
	jne	.L24
.L3:
	lea	rdi, watchdog_data_mutex[rip]
	lea	rbp, 24[rbx]
	call	mutex_lock@PLT
	lea	rdi, 40[rbx]
	call	list_del@PLT
	lea	rdi, watchdog_data_mutex[rip]
	call	mutex_unlock@PLT
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	QWORD PTR 32[rbx], 0
	mov	rdi, rbp
	call	mutex_unlock@PLT
	mov	rdi, QWORD PTR 16[rbx]
	test	rdi, rdi
	je	.L4
.L23:
	call	hwmon_device_unregister@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L24:
	mov	rdi, r12
	lea	rsi, .LC0[rip]
	call	dev_warn@PLT
	mov	rdi, rbx
	call	watchdog_stop@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	fschmd_remove, .-fschmd_remove
	.comm	watchdog_data_mutex,4,4
	.comm	fschmd_temp_attr,8,8
	.comm	fschmd_release_resources,4,4
	.comm	fschmd_fan_attr,8,8
	.comm	fschmd_attr,8,8
	.comm	dev_attr_alert_led,4,4
	.comm	FSCHMD_NO_VOLT_SENSORS,8,8
	.comm	FSCHMD_NO_TEMP_SENSORS,8,8
	.comm	FSCHMD_NO_FAN_SENSORS,8,8
	.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_fschmd.c_fschmd_remove.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"i2c client detached with watchdog open! Stopping wa"
	.ascii	"tchdog.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fschmd_remove, %function
fschmd_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	bl	i2c_get_clientdata
	ldr	r3, [r0, #28]
	mov	r6, r0
	cmp	r3, #0
	bne	.L27
	ldr	r0, [r6, #8]
	cmp	r0, #0
	bne	.L28
.L4:
	ldr	r7, .L30
	mov	r0, r5
	ldr	r1, .L30+4
	bl	device_remove_file
	ldr	r3, [r6]
	ldr	r2, [r7]
	ldr	r2, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	cmp	r2, #0
	ble	.L5
	mov	r4, #0
	ldr	r8, .L30+8
.L6:
	ldr	r1, [r8]
	mov	r0, r5
	add	r1, r1, r4, lsl #2
	bl	device_remove_file
	ldr	r3, [r6]
	ldr	r2, [r7]
	add	r4, r4, #1
	ldr	r2, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	cmp	r2, r4
	bgt	.L6
.L5:
	ldr	r8, .L30+12
	ldr	r2, [r8]
	ldr	r2, [r2, r3]
	cmp	r2, #0
	ble	.L7
	mov	r4, #0
	ldr	r7, .L30+16
.L8:
	ldr	r1, [r7]
	mov	r0, r5
	add	r1, r1, r4, lsl #2
	bl	device_remove_file
	ldr	r3, [r6]
	ldr	r2, [r8]
	add	r4, r4, #1
	ldr	r2, [r2, r3, lsl #2]
	lsl	r3, r3, #2
	cmp	r4, r2, lsl #2
	blt	.L8
.L7:
	ldr	r7, .L30+20
	ldr	r2, [r7]
	ldr	r3, [r2, r3]
	cmp	r3, #0
	ble	.L10
	mov	r4, #0
	ldr	r8, .L30+24
.L9:
	ldr	r1, [r8]
	mov	r0, r5
	add	r1, r1, r4, lsl #2
	bl	device_remove_file
	ldr	r2, [r6]
	ldr	r3, [r7]
	add	r4, r4, #1
	ldr	r3, [r3, r2, lsl #2]
	add	r3, r3, r3, lsl #2
	cmp	r3, r4
	bgt	.L9
.L10:
	ldr	r0, .L30+28
	bl	mutex_lock
	ldr	r3, .L30+32
	add	r0, r6, #4
	ldr	r1, [r3]
	bl	kref_put
	ldr	r0, .L30+28
	bl	mutex_unlock
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L27:
	add	r0, r0, #28
	bl	misc_deregister
	ldr	r3, [r6, #24]
	cmp	r3, #0
	bne	.L29
.L3:
	ldr	r0, .L30+28
	bl	mutex_lock
	add	r0, r6, #20
	bl	list_del
	add	r4, r6, #12
	ldr	r0, .L30+28
	bl	mutex_unlock
	mov	r0, r4
	bl	mutex_lock
	mov	r3, #0
	mov	r0, r4
	str	r3, [r6, #16]
	bl	mutex_unlock
	ldr	r0, [r6, #8]
	cmp	r0, #0
	beq	.L4
.L28:
	bl	hwmon_device_unregister
	b	.L4
.L29:
	mov	r0, r5
	ldr	r1, .L30+36
	bl	dev_warn
	mov	r0, r6
	bl	watchdog_stop
	b	.L3
.L31:
	.align	2
.L30:
	.word	FSCHMD_NO_VOLT_SENSORS
	.word	dev_attr_alert_led
	.word	fschmd_attr
	.word	FSCHMD_NO_TEMP_SENSORS
	.word	fschmd_temp_attr
	.word	FSCHMD_NO_FAN_SENSORS
	.word	fschmd_fan_attr
	.word	watchdog_data_mutex
	.word	fschmd_release_resources
	.word	.LC0
	.size	fschmd_remove, .-fschmd_remove
	.comm	watchdog_data_mutex,4,4
	.comm	fschmd_temp_attr,4,4
	.comm	fschmd_release_resources,4,4
	.comm	fschmd_fan_attr,4,4
	.comm	fschmd_attr,4,4
	.comm	dev_attr_alert_led,4,4
	.comm	FSCHMD_NO_VOLT_SENSORS,4,4
	.comm	FSCHMD_NO_TEMP_SENSORS,4,4
	.comm	FSCHMD_NO_FAN_SENSORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
