	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_acpi_remove
_toshiba_acpi_remove:                   ## @toshiba_acpi_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	_acpi_driver_data
	movq	%rax, %rbx
	leaq	120(%rax), %rdi
	callq	_misc_deregister
	movq	%rbx, %rdi
	callq	_remove_toshiba_proc_entries
	cmpq	$0, 112(%rbx)
	je	LBB0_3
## %bb.1:
	movq	104(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_iio_device_unregister
	movq	104(%rbx), %rdi
	callq	_iio_device_free
LBB0_3:
	cmpq	$0, 96(%rbx)
	je	LBB0_5
## %bb.4:
	movq	88(%rbx), %rdi
	movq	_toshiba_attr_group@GOTPCREL(%rip), %rsi
	callq	_sysfs_remove_group
LBB0_5:
	cmpq	$0, 80(%rbx)
	je	LBB0_7
## %bb.6:
	movq	_toshiba_acpi_i8042_filter@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_i8042_remove_filter
	leaq	72(%rbx), %rdi
	callq	_cancel_work_sync
LBB0_7:
	movq	64(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:
	callq	_input_unregister_device
LBB0_9:
	movl	56(%rbx), %edi
	callq	_backlight_device_unregister
	cmpq	$0, 48(%rbx)
	je	LBB0_11
## %bb.10:
	leaq	40(%rbx), %rdi
	callq	_led_classdev_unregister
LBB0_11:
	cmpq	$0, 32(%rbx)
	je	LBB0_13
## %bb.12:
	leaq	24(%rbx), %rdi
	callq	_led_classdev_unregister
LBB0_13:
	cmpq	$0, 16(%rbx)
	je	LBB0_15
## %bb.14:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_led_classdev_unregister
LBB0_15:
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_17
## %bb.16:
	callq	_rfkill_unregister
	movq	(%rbx), %rdi
	callq	_rfkill_destroy
LBB0_17:
	movq	_toshiba_acpi@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_19
## %bb.18:
	movq	$0, (%rax)
LBB0_19:
	movq	%rbx, %rdi
	callq	_kfree
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_toshiba_attr_group,4,2         ## @toshiba_attr_group
	.comm	_toshiba_acpi_i8042_filter,4,2  ## @toshiba_acpi_i8042_filter
	.comm	_toshiba_acpi,8,3               ## @toshiba_acpi
	.no_dead_strip	_toshiba_acpi_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_acpi_remove
_toshiba_acpi_remove:                   ; @toshiba_acpi_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	_acpi_driver_data
	mov	x19, x0
	add	x0, x0, #120
	bl	_misc_deregister
	mov	x0, x19
	bl	_remove_toshiba_proc_entries
	ldr	x8, [x19, #112]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x0, [x19, #104]
	cbz	x0, LBB0_3
; %bb.2:
	bl	_iio_device_unregister
	ldr	x0, [x19, #104]
	bl	_iio_device_free
LBB0_3:
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	x0, [x19, #88]
Lloh0:
	adrp	x1, _toshiba_attr_group@GOTPAGE
Lloh1:
	ldr	x1, [x1, _toshiba_attr_group@GOTPAGEOFF]
	bl	_sysfs_remove_group
LBB0_5:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_7
; %bb.6:
Lloh2:
	adrp	x8, _toshiba_acpi_i8042_filter@GOTPAGE
Lloh3:
	ldr	x8, [x8, _toshiba_acpi_i8042_filter@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_i8042_remove_filter
	add	x0, x19, #72
	bl	_cancel_work_sync
LBB0_7:
	ldr	x0, [x19, #64]
	cbz	x0, LBB0_9
; %bb.8:
	bl	_input_unregister_device
LBB0_9:
	ldr	w0, [x19, #56]
	bl	_backlight_device_unregister
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_11
; %bb.10:
	add	x0, x19, #40
	bl	_led_classdev_unregister
LBB0_11:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_13
; %bb.12:
	add	x0, x19, #24
	bl	_led_classdev_unregister
LBB0_13:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.14:
	add	x0, x19, #8
	bl	_led_classdev_unregister
LBB0_15:
	ldr	x0, [x19]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_rfkill_unregister
	ldr	x0, [x19]
	bl	_rfkill_destroy
LBB0_17:
Lloh5:
	adrp	x8, _toshiba_acpi@GOTPAGE
Lloh6:
	ldr	x8, [x8, _toshiba_acpi@GOTPAGEOFF]
	ldr	x9, [x8]
	cbz	x9, LBB0_19
; %bb.18:
	str	xzr, [x8]
LBB0_19:
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_toshiba_attr_group,4,2         ; @toshiba_attr_group
	.comm	_toshiba_acpi_i8042_filter,4,2  ; @toshiba_acpi_i8042_filter
	.comm	_toshiba_acpi,8,3               ; @toshiba_acpi
	.no_dead_strip	_toshiba_acpi_remove
.subsections_via_symbols
