	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function da9150_charger_remove
_da9150_charger_remove:                 ## @da9150_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movl	28(%rbx), %edi
	callq	_IS_ERR_OR_NULL
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	28(%rbx), %edi
	movq	%rbx, %rsi
	addq	$24, %rsi
	callq	_usb_unregister_notifier
LBB0_2:
	movl	20(%rbx), %edi
	callq	_power_supply_unregister
	movl	16(%rbx), %edi
	callq	_power_supply_unregister
	movl	12(%rbx), %edi
	callq	_iio_channel_release
	movl	8(%rbx), %edi
	callq	_iio_channel_release
	movl	4(%rbx), %edi
	callq	_iio_channel_release
	movl	(%rbx), %edi
	callq	_iio_channel_release
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CHG_VBUS"

L_.str.1:                               ## @.str.1
	.asciz	"CHG_VFAULT"

L_.str.2:                               ## @.str.2
	.asciz	"CHG_TJUNC"

L_.str.3:                               ## @.str.3
	.asciz	"CHG_STATUS"

	.no_dead_strip	_da9150_charger_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function da9150_charger_remove
_da9150_charger_remove:                 ; @da9150_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
	mov	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x1, x19
	bl	_free_irq
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x1, x19
	bl	_free_irq
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x1, x19
	bl	_free_irq
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	mov	x1, x19
	bl	_free_irq
	ldr	w0, [x19, #28]
	bl	_IS_ERR_OR_NULL
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w0, [x19, #28]
	add	x1, x19, #24
	bl	_usb_unregister_notifier
LBB0_2:
	ldr	w0, [x19, #20]
	bl	_power_supply_unregister
	ldr	w0, [x19, #16]
	bl	_power_supply_unregister
	ldr	w0, [x19, #12]
	bl	_iio_channel_release
	ldr	w0, [x19, #8]
	bl	_iio_channel_release
	ldr	w0, [x19, #4]
	bl	_iio_channel_release
	ldr	w0, [x19]
	bl	_iio_channel_release
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CHG_VBUS"

l_.str.1:                               ; @.str.1
	.asciz	"CHG_VFAULT"

l_.str.2:                               ; @.str.2
	.asciz	"CHG_TJUNC"

l_.str.3:                               ; @.str.3
	.asciz	"CHG_STATUS"

	.no_dead_strip	_da9150_charger_remove
.subsections_via_symbols
