	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pm2xxx_wall_charger_remove
_pm2xxx_wall_charger_remove:            ## @pm2xxx_wall_charger_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	_i2c_get_clientdata
	movq	%rax, %rbx
	movl	24(%rax), %edi
	callq	_pm_runtime_disable
	leaq	4(%rbx), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_pm2xxx_charger_ac_en
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	callq	_disable_irq_wake
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	12(%rbx), %edi
	callq	_destroy_workqueue
	xorl	%eax, %eax
	callq	_flush_scheduled_work
	movl	8(%rbx), %edi
	callq	_regulator_put
	movl	4(%rbx), %edi
	callq	_power_supply_unregister
	movl	(%rbx), %edi
	callq	_gpio_is_valid
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%rbx), %edi
	callq	_gpio_free
LBB0_2:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pm2xxx_wall_charger_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pm2xxx_wall_charger_remove
_pm2xxx_wall_charger_remove:            ; @pm2xxx_wall_charger_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	_i2c_get_clientdata
	mov	x19, x0
	ldr	w0, [x0, #24]
	bl	_pm_runtime_disable
	add	x0, x19, #4
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_pm2xxx_charger_ac_en
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	bl	_disable_irq_wake
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_gpio_to_irq
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x19, #12]
	bl	_destroy_workqueue
	bl	_flush_scheduled_work
	ldr	w0, [x19, #8]
	bl	_regulator_put
	ldr	w0, [x19, #4]
	bl	_power_supply_unregister
	ldr	w0, [x19]
	bl	_gpio_is_valid
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w0, [x19]
	bl	_gpio_free
LBB0_2:
	mov	x0, x19
	bl	_kfree
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pm2xxx_wall_charger_remove
.subsections_via_symbols
