	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sch5636_remove
_sch5636_remove:                        ## @sch5636_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, %r15
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	8(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_sch56xx_watchdog_unregister
LBB0_2:
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_hwmon_device_unregister
LBB0_4:
	movq	_sch5636_attr@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_7
## %bb.5:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rsi
	addq	%r12, %rsi
	movq	%r15, %rdi
	callq	_device_remove_file
	incq	%rbx
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	cltq
	addq	$4, %r12
	cmpq	%rax, %rbx
	jl	LBB0_6
LBB0_7:
	movq	_SCH5636_NO_TEMPS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_10
## %bb.8:
	xorl	%r13d, %r13d
	movq	_sch5636_temp_attr@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	callq	_device_remove_file
	incq	%rbx
	movslq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_9
LBB0_10:
	movq	_SCH5636_NO_FANS@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_13
## %bb.11:
	xorl	%r13d, %r13d
	movq	_sch5636_fan_attr@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rsi
	addq	%r13, %rsi
	movq	%r15, %rdi
	callq	_device_remove_file
	incq	%rbx
	movslq	(%r14), %rax
	leaq	(%rax,%rax,2), %rax
	addq	$4, %r13
	cmpq	%rax, %rbx
	jl	LBB0_12
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sch5636_attr,8,3               ## @sch5636_attr
	.comm	_SCH5636_NO_TEMPS,4,2           ## @SCH5636_NO_TEMPS
	.comm	_sch5636_temp_attr,8,3          ## @sch5636_temp_attr
	.comm	_SCH5636_NO_FANS,4,2            ## @SCH5636_NO_FANS
	.comm	_sch5636_fan_attr,8,3           ## @sch5636_fan_attr
	.no_dead_strip	_sch5636_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sch5636_remove
_sch5636_remove:                        ; @sch5636_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	x19, x0
	bl	_platform_get_drvdata
	mov	x20, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_sch56xx_watchdog_unregister
LBB0_2:
	ldr	x0, [x20]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_hwmon_device_unregister
LBB0_4:
Lloh0:
	adrp	x20, _sch5636_attr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _sch5636_attr@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
	mov	x22, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20]
	add	x1, x8, x21
	mov	x0, x19
	bl	_device_remove_file
	add	x22, x22, #1
	ldr	x0, [x20]
	bl	_ARRAY_SIZE
	add	x21, x21, #4
	cmp	x22, w0, sxtw
	b.lt	LBB0_6
LBB0_7:
Lloh2:
	adrp	x20, _SCH5636_NO_TEMPS@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SCH5636_NO_TEMPS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_10
; %bb.8:
	mov	x21, #0
	mov	x22, #0
Lloh4:
	adrp	x23, _sch5636_temp_attr@GOTPAGE
Lloh5:
	ldr	x23, [x23, _sch5636_temp_attr@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x21
	mov	x0, x19
	bl	_device_remove_file
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x8, x8, x8, lsl #1
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_9
LBB0_10:
Lloh6:
	adrp	x20, _SCH5636_NO_FANS@GOTPAGE
Lloh7:
	ldr	x20, [x20, _SCH5636_NO_FANS@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_13
; %bb.11:
	mov	x21, #0
	mov	x22, #0
Lloh8:
	adrp	x23, _sch5636_fan_attr@GOTPAGE
Lloh9:
	ldr	x23, [x23, _sch5636_fan_attr@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	add	x1, x8, x21
	mov	x0, x19
	bl	_device_remove_file
	add	x22, x22, #1
	ldrsw	x8, [x20]
	add	x8, x8, x8, lsl #1
	add	x21, x21, #4
	cmp	x22, x8
	b.lt	LBB0_12
LBB0_13:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_sch5636_attr,8,3               ; @sch5636_attr
	.comm	_SCH5636_NO_TEMPS,4,2           ; @SCH5636_NO_TEMPS
	.comm	_sch5636_temp_attr,8,3          ; @sch5636_temp_attr
	.comm	_SCH5636_NO_FANS,4,2            ; @SCH5636_NO_FANS
	.comm	_sch5636_fan_attr,8,3           ; @sch5636_fan_attr
	.no_dead_strip	_sch5636_remove
.subsections_via_symbols
