	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adt7x10_remove                 ## -- Begin function adt7x10_remove
	.p2align	4, 0x90
_adt7x10_remove:                        ## @adt7x10_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	testl	%r15d, %r15d
	jle	LBB0_2
## %bb.1:
	movl	%r15d, %edi
	movq	%r14, %rsi
	callq	_free_irq
LBB0_2:
	movl	24(%rbx), %edi
	callq	_hwmon_device_unregister
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.3:
	movq	_dev_attr_name@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_device_remove_file
LBB0_4:
	movq	_adt7x10_group@GOTPCREL(%rip), %rsi
	movq	%r14, %rdi
	callq	_sysfs_remove_group
	movq	(%rbx), %rdx
	cmpq	8(%rbx), %rdx
	je	LBB0_6
## %bb.5:
	movq	_ADT7X10_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_adt7x10_write_byte
LBB0_6:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_name,4,2              ## @dev_attr_name
	.comm	_adt7x10_group,4,2              ## @adt7x10_group
	.comm	_ADT7X10_CONFIG,4,2             ## @ADT7X10_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_adt7x10_remove                 ; -- Begin function adt7x10_remove
	.p2align	2
_adt7x10_remove:                        ; @adt7x10_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x1
	mov	x19, x0
	bl	_dev_get_drvdata
	mov	x20, x0
	cmp	w21, #1
	b.lt	LBB0_2
; %bb.1:
	mov	x0, x21
	mov	x1, x19
	bl	_free_irq
LBB0_2:
	ldr	w0, [x20, #24]
	bl	_hwmon_device_unregister
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x1, _dev_attr_name@GOTPAGE
Lloh1:
	ldr	x1, [x1, _dev_attr_name@GOTPAGEOFF]
	mov	x0, x19
	bl	_device_remove_file
LBB0_4:
Lloh2:
	adrp	x1, _adt7x10_group@GOTPAGE
Lloh3:
	ldr	x1, [x1, _adt7x10_group@GOTPAGEOFF]
	mov	x0, x19
	bl	_sysfs_remove_group
	ldp	x2, x8, [x20]
	cmp	x2, x8
	b.eq	LBB0_6
; %bb.5:
Lloh4:
	adrp	x8, _ADT7X10_CONFIG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ADT7X10_CONFIG@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_adt7x10_write_byte
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_name,4,2              ; @dev_attr_name
	.comm	_adt7x10_group,4,2              ; @adt7x10_group
	.comm	_ADT7X10_CONFIG,4,2             ; @ADT7X10_CONFIG
.subsections_via_symbols
