	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function twl4030_bci_remove
_twl4030_bci_remove:                    ## @twl4030_bci_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
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	xorl	%esi, %esi
	callq	_twl4030_charger_enable_ac
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_twl4030_charger_enable_usb
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_twl4030_charger_enable_backup
	movq	8(%rbx), %rdi
	movq	_dev_attr_mode@GOTPCREL(%rip), %r14
	movq	%r14, %rsi
	callq	_device_remove_file
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_device_remove_file
	movq	_TWL4030_MODULE_INTERRUPTS@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_TWL4030_INTERRUPTS_BCIIMR1A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, %esi
	callq	_twl_i2c_write_u8
	movl	(%rbx), %edi
	movq	_TWL4030_INTERRUPTS_BCIIMR2A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$255, %esi
	callq	_twl_i2c_write_u8
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dev_attr_mode,4,2              ## @dev_attr_mode
	.comm	_TWL4030_MODULE_INTERRUPTS,4,2  ## @TWL4030_MODULE_INTERRUPTS
	.comm	_TWL4030_INTERRUPTS_BCIIMR1A,4,2 ## @TWL4030_INTERRUPTS_BCIIMR1A
	.comm	_TWL4030_INTERRUPTS_BCIIMR2A,4,2 ## @TWL4030_INTERRUPTS_BCIIMR2A
	.no_dead_strip	_twl4030_bci_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function twl4030_bci_remove
_twl4030_bci_remove:                    ; @twl4030_bci_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
	mov	w1, #0
	bl	_twl4030_charger_enable_ac
	mov	x0, x19
	mov	w1, #0
	bl	_twl4030_charger_enable_usb
	mov	w0, #0
	mov	w1, #0
	bl	_twl4030_charger_enable_backup
	ldr	x0, [x19, #8]
Lloh0:
	adrp	x20, _dev_attr_mode@GOTPAGE
Lloh1:
	ldr	x20, [x20, _dev_attr_mode@GOTPAGEOFF]
	mov	x1, x20
	bl	_device_remove_file
	ldr	x0, [x19]
	mov	x1, x20
	bl	_device_remove_file
Lloh2:
	adrp	x19, _TWL4030_MODULE_INTERRUPTS@GOTPAGE
Lloh3:
	ldr	x19, [x19, _TWL4030_MODULE_INTERRUPTS@GOTPAGEOFF]
	ldr	w0, [x19]
Lloh4:
	adrp	x8, _TWL4030_INTERRUPTS_BCIIMR1A@GOTPAGE
Lloh5:
	ldr	x8, [x8, _TWL4030_INTERRUPTS_BCIIMR1A@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	mov	w1, #255
	bl	_twl_i2c_write_u8
	ldr	w0, [x19]
Lloh7:
	adrp	x8, _TWL4030_INTERRUPTS_BCIIMR2A@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TWL4030_INTERRUPTS_BCIIMR2A@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	w1, #255
	bl	_twl_i2c_write_u8
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_dev_attr_mode,4,2              ; @dev_attr_mode
	.comm	_TWL4030_MODULE_INTERRUPTS,4,2  ; @TWL4030_MODULE_INTERRUPTS
	.comm	_TWL4030_INTERRUPTS_BCIIMR1A,4,2 ; @TWL4030_INTERRUPTS_BCIIMR1A
	.comm	_TWL4030_INTERRUPTS_BCIIMR2A,4,2 ; @TWL4030_INTERRUPTS_BCIIMR2A
	.no_dead_strip	_twl4030_bci_remove
.subsections_via_symbols
