	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ee1004_remove
_ee1004_remove:                         ## @ee1004_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_eeprom_attr@GOTPCREL(%rip), %rsi
	callq	_sysfs_remove_bin_file
	movq	_ee1004_bus_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ee1004_dev_count@GOTPCREL(%rip), %rax
	decq	(%rax)
	jne	LBB0_2
## %bb.1:
	movq	_ee1004_set_page@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	(%rax), %rdi
	callq	_i2c_unregister_device
	movq	(%rbx), %rax
	movq	$0, (%rax)
	movq	(%rbx), %rax
	movq	8(%rax), %rdi
	callq	_i2c_unregister_device
	movq	(%rbx), %rax
	movq	$0, 8(%rax)
LBB0_2:
	movq	_ee1004_bus_lock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_eeprom_attr,4,2                ## @eeprom_attr
	.comm	_ee1004_bus_lock,4,2            ## @ee1004_bus_lock
	.comm	_ee1004_dev_count,8,3           ## @ee1004_dev_count
	.comm	_ee1004_set_page,8,3            ## @ee1004_set_page
	.no_dead_strip	_ee1004_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ee1004_remove
_ee1004_remove:                         ; @ee1004_remove
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x1, _eeprom_attr@GOTPAGE
Lloh1:
	ldr	x1, [x1, _eeprom_attr@GOTPAGEOFF]
	bl	_sysfs_remove_bin_file
Lloh2:
	adrp	x0, _ee1004_bus_lock@GOTPAGE
Lloh3:
	ldr	x0, [x0, _ee1004_bus_lock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh4:
	adrp	x8, _ee1004_dev_count@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ee1004_dev_count@GOTPAGEOFF]
	ldr	x9, [x8]
	subs	x9, x9, #1
	str	x9, [x8]
	b.ne	LBB0_2
; %bb.1:
Lloh6:
	adrp	x19, _ee1004_set_page@GOTPAGE
Lloh7:
	ldr	x19, [x19, _ee1004_set_page@GOTPAGEOFF]
	ldr	x8, [x19]
	ldr	x0, [x8]
	bl	_i2c_unregister_device
	ldr	x8, [x19]
	str	xzr, [x8]
	ldr	x8, [x19]
	ldr	x0, [x8, #8]
	bl	_i2c_unregister_device
	ldr	x8, [x19]
	str	xzr, [x8, #8]
LBB0_2:
Lloh8:
	adrp	x0, _ee1004_bus_lock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ee1004_bus_lock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_eeprom_attr,4,2                ; @eeprom_attr
	.comm	_ee1004_bus_lock,4,2            ; @ee1004_bus_lock
	.comm	_ee1004_dev_count,8,3           ; @ee1004_dev_count
	.comm	_ee1004_set_page,8,3            ; @ee1004_set_page
	.no_dead_strip	_ee1004_remove
.subsections_via_symbols
