	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9030_battery_remove
_da9030_battery_remove:                 ## @da9030_battery_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
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_da9030_bat_remove_debugfs
	movq	_DA9030_EVENT_CHDET@GOTPCREL(%rip), %rax
	movq	_DA9030_EVENT_VBATMON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movl	12(%rbx), %edi
	movq	_DA9030_EVENT_CHIOVER@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	leaq	8(%rbx), %rsi
	movq	_DA9030_EVENT_TBAT@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	callq	_da903x_unregister_notifier
	leaq	4(%rbx), %rdi
	callq	_cancel_delayed_work_sync
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_da9030_set_charge
	movl	(%rbx), %edi
	callq	_power_supply_unregister
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DA9030_EVENT_CHDET,4,2         ## @DA9030_EVENT_CHDET
	.comm	_DA9030_EVENT_VBATMON,4,2       ## @DA9030_EVENT_VBATMON
	.comm	_DA9030_EVENT_CHIOVER,4,2       ## @DA9030_EVENT_CHIOVER
	.comm	_DA9030_EVENT_TBAT,4,2          ## @DA9030_EVENT_TBAT
	.no_dead_strip	_da9030_battery_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9030_battery_remove
_da9030_battery_remove:                 ; @da9030_battery_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
	bl	_platform_get_drvdata
	mov	x19, x0
	bl	_da9030_bat_remove_debugfs
	ldr	w0, [x19, #12]
	add	x1, x19, #8
Lloh0:
	adrp	x8, _DA9030_EVENT_CHDET@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DA9030_EVENT_CHDET@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _DA9030_EVENT_VBATMON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DA9030_EVENT_VBATMON@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh6:
	adrp	x9, _DA9030_EVENT_CHIOVER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DA9030_EVENT_CHIOVER@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh9:
	adrp	x9, _DA9030_EVENT_TBAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DA9030_EVENT_TBAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w8, w9
	bl	_da903x_unregister_notifier
	add	x0, x19, #4
	bl	_cancel_delayed_work_sync
	mov	x0, x19
	mov	w1, #0
	bl	_da9030_set_charge
	ldr	w0, [x19]
	bl	_power_supply_unregister
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DA9030_EVENT_CHDET,4,2         ; @DA9030_EVENT_CHDET
	.comm	_DA9030_EVENT_VBATMON,4,2       ; @DA9030_EVENT_VBATMON
	.comm	_DA9030_EVENT_CHIOVER,4,2       ; @DA9030_EVENT_CHIOVER
	.comm	_DA9030_EVENT_TBAT,4,2          ; @DA9030_EVENT_TBAT
	.no_dead_strip	_da9030_battery_remove
.subsections_via_symbols
