	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apanel_remove
_apanel_remove:                         ## @apanel_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
	movq	_device_chip@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_APANEL_DEV_LED@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	movq	_CHIP_NONE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	addq	$4, %rdi
	callq	_led_classdev_unregister
LBB0_2:
	movl	(%rbx), %edi
	callq	_input_unregister_polled_device
	movl	(%rbx), %edi
	callq	_input_free_polled_device
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_device_chip,8,3                ## @device_chip
	.comm	_APANEL_DEV_LED,8,3             ## @APANEL_DEV_LED
	.comm	_CHIP_NONE,8,3                  ## @CHIP_NONE
	.no_dead_strip	_apanel_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apanel_remove
_apanel_remove:                         ; @apanel_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
Lloh0:
	adrp	x8, _device_chip@GOTPAGE
Lloh1:
	ldr	x8, [x8, _device_chip@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _APANEL_DEV_LED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _APANEL_DEV_LED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
Lloh6:
	adrp	x9, _CHIP_NONE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CHIP_NONE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.1:
	add	x0, x19, #4
	bl	_led_classdev_unregister
LBB0_2:
	ldr	w0, [x19]
	bl	_input_unregister_polled_device
	ldr	w0, [x19]
	bl	_input_free_polled_device
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_device_chip,8,3                ; @device_chip
	.comm	_APANEL_DEV_LED,8,3             ; @APANEL_DEV_LED
	.comm	_CHIP_NONE,8,3                  ; @CHIP_NONE
	.no_dead_strip	_apanel_remove
.subsections_via_symbols
