	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fschmd_remove
_fschmd_remove:                         ## @fschmd_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	cmpq	$0, 56(%rax)
	je	LBB0_4
## %bb.1:
	leaq	56(%r12), %rdi
	callq	_misc_deregister
	cmpq	$0, 48(%r12)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_warn
	movq	%r12, %rdi
	callq	_watchdog_stop
LBB0_3:
	movq	_watchdog_data_mutex@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	40(%r12), %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_mutex_unlock
	leaq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	$0, 32(%r12)
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_4:
	movq	16(%r12), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_hwmon_device_unregister
LBB0_6:
	movq	_dev_attr_alert_led@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	movq	_FSCHMD_NO_VOLT_SENSORS@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	(%r12), %rax
	cmpl	$0, (%rcx,%rax,4)
	jle	LBB0_9
## %bb.7:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_fschmd_attr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	incq	%r15
	movq	(%r13), %rcx
	movq	(%r12), %rax
	movslq	(%rcx,%rax,4), %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r15
	jl	LBB0_8
LBB0_9:
	movq	_FSCHMD_NO_TEMP_SENSORS@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpl	$0, (%rcx,%rax,4)
	jle	LBB0_12
## %bb.10:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	_fschmd_temp_attr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	incq	%r15
	movq	(%r13), %rcx
	movq	(%r12), %rax
	movslq	(%rcx,%rax,4), %rcx
	shlq	$2, %rcx
	addq	$4, %rbx
	cmpq	%rcx, %r15
	jl	LBB0_11
LBB0_12:
	movq	_FSCHMD_NO_FAN_SENSORS@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	cmpl	$0, (%rcx,%rax,4)
	jle	LBB0_15
## %bb.13:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	_fschmd_fan_attr@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
	incq	%r15
	movq	(%r13), %rax
	movq	(%r12), %rcx
	movslq	(%rax,%rcx,4), %rax
	leaq	(%rax,%rax,4), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_14
LBB0_15:
	movq	_watchdog_data_mutex@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	addq	$8, %r12
	movq	_fschmd_release_resources@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_kref_put
	movq	%r14, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c client detached with watchdog open! Stopping watchdog.\n"

	.comm	_watchdog_data_mutex,4,2        ## @watchdog_data_mutex
	.comm	_dev_attr_alert_led,4,2         ## @dev_attr_alert_led
	.comm	_FSCHMD_NO_VOLT_SENSORS,8,3     ## @FSCHMD_NO_VOLT_SENSORS
	.comm	_fschmd_attr,8,3                ## @fschmd_attr
	.comm	_FSCHMD_NO_TEMP_SENSORS,8,3     ## @FSCHMD_NO_TEMP_SENSORS
	.comm	_fschmd_temp_attr,8,3           ## @fschmd_temp_attr
	.comm	_FSCHMD_NO_FAN_SENSORS,8,3      ## @FSCHMD_NO_FAN_SENSORS
	.comm	_fschmd_fan_attr,8,3            ## @fschmd_fan_attr
	.comm	_fschmd_release_resources,4,2   ## @fschmd_release_resources
	.no_dead_strip	_fschmd_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fschmd_remove
_fschmd_remove:                         ; @fschmd_remove
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x19, x0
	ldr	x8, [x0, #56]!
	cbz	x8, LBB0_4
; %bb.1:
	bl	_misc_deregister
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_3
; %bb.2:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
	mov	x0, x19
	bl	_watchdog_stop
LBB0_3:
Lloh2:
	adrp	x21, _watchdog_data_mutex@GOTPAGE
Lloh3:
	ldr	x21, [x21, _watchdog_data_mutex@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	add	x0, x19, #40
	bl	_list_del
	mov	x0, x21
	bl	_mutex_unlock
	add	x21, x19, #24
	mov	x0, x21
	bl	_mutex_lock
	str	xzr, [x19, #32]
	mov	x0, x21
	bl	_mutex_unlock
LBB0_4:
	ldr	x0, [x19, #16]
	cbz	x0, LBB0_6
; %bb.5:
	bl	_hwmon_device_unregister
LBB0_6:
Lloh4:
	adrp	x1, _dev_attr_alert_led@GOTPAGE
Lloh5:
	ldr	x1, [x1, _dev_attr_alert_led@GOTPAGEOFF]
	mov	x0, x20
	bl	_device_remove_file
Lloh6:
	adrp	x21, _FSCHMD_NO_VOLT_SENSORS@GOTPAGE
Lloh7:
	ldr	x21, [x21, _FSCHMD_NO_VOLT_SENSORS@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	x8, [x19]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x22, #0
	mov	x23, #0
Lloh8:
	adrp	x24, _fschmd_attr@GOTPAGE
Lloh9:
	ldr	x24, [x24, _fschmd_attr@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x1, x8, x22
	mov	x0, x20
	bl	_device_remove_file
	add	x23, x23, #1
	ldr	x9, [x21]
	ldr	x8, [x19]
	ldrsw	x9, [x9, x8, lsl #2]
	add	x22, x22, #4
	cmp	x23, x9
	b.lt	LBB0_8
LBB0_9:
Lloh10:
	adrp	x21, _FSCHMD_NO_TEMP_SENSORS@GOTPAGE
Lloh11:
	ldr	x21, [x21, _FSCHMD_NO_TEMP_SENSORS@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w9, [x9, x8, lsl #2]
	cmp	w9, #1
	b.lt	LBB0_12
; %bb.10:
	mov	x22, #0
	mov	x23, #0
Lloh12:
	adrp	x24, _fschmd_temp_attr@GOTPAGE
Lloh13:
	ldr	x24, [x24, _fschmd_temp_attr@GOTPAGEOFF]
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x1, x8, x22
	mov	x0, x20
	bl	_device_remove_file
	add	x23, x23, #1
	ldr	x9, [x21]
	ldr	x8, [x19]
	ldrsw	x9, [x9, x8, lsl #2]
	add	x22, x22, #4
	cmp	x23, x9, lsl #2
	b.lt	LBB0_11
LBB0_12:
Lloh14:
	adrp	x21, _FSCHMD_NO_FAN_SENSORS@GOTPAGE
Lloh15:
	ldr	x21, [x21, _FSCHMD_NO_FAN_SENSORS@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w8, [x9, x8, lsl #2]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	mov	x22, #0
	mov	x23, #0
Lloh16:
	adrp	x24, _fschmd_fan_attr@GOTPAGE
Lloh17:
	ldr	x24, [x24, _fschmd_fan_attr@GOTPAGEOFF]
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x1, x8, x22
	mov	x0, x20
	bl	_device_remove_file
	add	x23, x23, #1
	ldr	x8, [x21]
	ldr	x9, [x19]
	ldrsw	x8, [x8, x9, lsl #2]
	add	x8, x8, x8, lsl #2
	add	x22, x22, #4
	cmp	x23, x8
	b.lt	LBB0_14
LBB0_15:
Lloh18:
	adrp	x20, _watchdog_data_mutex@GOTPAGE
Lloh19:
	ldr	x20, [x20, _watchdog_data_mutex@GOTPAGEOFF]
	mov	x0, x20
	bl	_mutex_lock
	add	x0, x19, #8
Lloh20:
	adrp	x8, _fschmd_release_resources@GOTPAGE
Lloh21:
	ldr	x8, [x8, _fschmd_release_resources@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	bl	_kref_put
	mov	x0, x20
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c client detached with watchdog open! Stopping watchdog.\n"

	.comm	_watchdog_data_mutex,4,2        ; @watchdog_data_mutex
	.comm	_dev_attr_alert_led,4,2         ; @dev_attr_alert_led
	.comm	_FSCHMD_NO_VOLT_SENSORS,8,3     ; @FSCHMD_NO_VOLT_SENSORS
	.comm	_fschmd_attr,8,3                ; @fschmd_attr
	.comm	_FSCHMD_NO_TEMP_SENSORS,8,3     ; @FSCHMD_NO_TEMP_SENSORS
	.comm	_fschmd_temp_attr,8,3           ; @fschmd_temp_attr
	.comm	_FSCHMD_NO_FAN_SENSORS,8,3      ; @FSCHMD_NO_FAN_SENSORS
	.comm	_fschmd_fan_attr,8,3            ; @fschmd_fan_attr
	.comm	_fschmd_release_resources,4,2   ; @fschmd_release_resources
	.no_dead_strip	_fschmd_remove
.subsections_via_symbols
