	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function collie_bat_remove
_collie_bat_remove:                     ## @collie_bat_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	_COLLIE_GPIO_CO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_gpio_to_irq
	movq	_collie_bat_main@GOTPCREL(%rip), %rbx
	movl	%eax, %edi
	movq	%rbx, %rsi
	callq	_free_irq
	movq	_collie_bat_bu@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_power_supply_unregister
	movl	(%rbx), %edi
	callq	_power_supply_unregister
	movq	_bat_work@GOTPCREL(%rip), %rdi
	callq	_cancel_work_sync
	movq	_collie_batt_gpios@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movl	%ebx, %edi
	movl	%eax, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gpio_free_array                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_COLLIE_GPIO_CO,4,2             ## @COLLIE_GPIO_CO
	.comm	_collie_bat_main,4,2            ## @collie_bat_main
	.comm	_collie_bat_bu,4,2              ## @collie_bat_bu
	.comm	_bat_work,4,2                   ## @bat_work
	.comm	_collie_batt_gpios,4,2          ## @collie_batt_gpios
	.no_dead_strip	_collie_bat_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function collie_bat_remove
_collie_bat_remove:                     ; @collie_bat_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	x8, _COLLIE_GPIO_CO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _COLLIE_GPIO_CO@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_gpio_to_irq
Lloh3:
	adrp	x19, _collie_bat_main@GOTPAGE
Lloh4:
	ldr	x19, [x19, _collie_bat_main@GOTPAGEOFF]
	mov	x1, x19
	bl	_free_irq
Lloh5:
	adrp	x8, _collie_bat_bu@GOTPAGE
Lloh6:
	ldr	x8, [x8, _collie_bat_bu@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	bl	_power_supply_unregister
	ldr	w0, [x19]
	bl	_power_supply_unregister
Lloh8:
	adrp	x0, _bat_work@GOTPAGE
Lloh9:
	ldr	x0, [x0, _bat_work@GOTPAGEOFF]
	bl	_cancel_work_sync
Lloh10:
	adrp	x8, _collie_batt_gpios@GOTPAGE
Lloh11:
	ldr	x8, [x8, _collie_batt_gpios@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
	mov	x0, x19
	bl	_ARRAY_SIZE
	mov	x1, x0
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gpio_free_array
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_COLLIE_GPIO_CO,4,2             ; @COLLIE_GPIO_CO
	.comm	_collie_bat_main,4,2            ; @collie_bat_main
	.comm	_collie_bat_bu,4,2              ; @collie_bat_bu
	.comm	_bat_work,4,2                   ; @bat_work
	.comm	_collie_batt_gpios,4,2          ; @collie_batt_gpios
	.no_dead_strip	_collie_bat_remove
.subsections_via_symbols
