	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_acpi_notify
_toshiba_acpi_notify:                   ## @toshiba_acpi_notify
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_acpi_driver_data
	movq	%rax, %r15
	leal	-128(%r14), %eax
	cmpl	$18, %eax
	ja	LBB0_13
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_14
LBB0_4:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_14
LBB0_18:
	movq	_TOSHIBA_WMI_EVENT_GUID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_wmi_has_guid
	testl	%eax, %eax
	je	LBB0_16
## %bb.19:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str.4(%rip), %rdi
LBB0_14:
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_pr_info
LBB0_15:
	movl	4(%r12), %ebx
	movq	%r12, %rdi
	callq	_dev_name
	xorl	%ecx, %ecx
LBB0_17:
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	%r14d, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acpi_bus_generate_netlink_event ## TAILCALL
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_info
	jmp	LBB0_15
LBB0_5:
	movl	$1, (%r15)
	movq	_toshiba_attr_group@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	callq	_sysfs_update_group
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	callq	_pr_err
LBB0_7:
	cmpl	$2, 4(%r15)
	jne	LBB0_15
## %bb.8:
	movl	12(%r15), %eax
	movq	_SCI_KBD_MODE_AUTO@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_15
## %bb.9:
	addq	$16, %r15
	movq	_SCI_KBD_MODE_ON@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.11:
	movq	_LED_FULL@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_16:
	movq	%r15, %rdi
	callq	_toshiba_acpi_process_hotkeys
	movl	4(%r12), %ebx
	movq	%r12, %rdi
	callq	_dev_name
	movl	8(%r15), %ecx
	jmp	LBB0_17
LBB0_10:
	movq	_LED_OFF@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_led_classdev_notify_brightness_hw_changed
	jmp	LBB0_15
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_2
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_3
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_15
	.long	L0_0_set_15
	.long	L0_0_set_13
	.long	L0_0_set_5
	.end_data_region
                                        ## -- End function
	.comm	_TOSHIBA_WMI_EVENT_GUID,4,2     ## @TOSHIBA_WMI_EVENT_GUID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Dock event received %x\n"

L_.str.1:                               ## @.str.1
	.asciz	"Thermal event received\n"

L_.str.2:                               ## @.str.2
	.asciz	"SATA power event received %x\n"

	.comm	_toshiba_attr_group,4,2         ## @toshiba_attr_group
L_.str.3:                               ## @.str.3
	.asciz	"Unable to update sysfs entries\n"

	.comm	_SCI_KBD_MODE_AUTO,4,2          ## @SCI_KBD_MODE_AUTO
	.comm	_SCI_KBD_MODE_ON,4,2            ## @SCI_KBD_MODE_ON
	.comm	_LED_FULL,4,2                   ## @LED_FULL
	.comm	_LED_OFF,4,2                    ## @LED_OFF
L_.str.4:                               ## @.str.4
	.asciz	"Unknown event received %x\n"

	.no_dead_strip	_toshiba_acpi_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_acpi_notify
_toshiba_acpi_notify:                   ; @toshiba_acpi_notify
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x20, x0
	bl	_acpi_driver_data
	sub	w8, w19, #128
	cmp	w8, #18
	b.hi	LBB0_6
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x8, x19
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_8
LBB0_3:
	mov	x8, x19
	str	x8, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_4:
Lloh6:
	adrp	x8, _TOSHIBA_WMI_EVENT_GUID@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TOSHIBA_WMI_EVENT_GUID@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_wmi_has_guid
	cbz	w0, LBB0_16
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	str	x19, [sp]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_8:
	bl	_pr_info
LBB0_9:
	ldr	w22, [x20, #4]
	mov	x0, x20
	bl	_dev_name
	mov	x1, x0
	mov	w3, #0
LBB0_10:
	mov	x0, x22
	mov	x2, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_acpi_bus_generate_netlink_event
LBB0_11:
	mov	w8, #1
	str	w8, [x21]
Lloh13:
	adrp	x1, _toshiba_attr_group@GOTPAGE
Lloh14:
	ldr	x1, [x1, _toshiba_attr_group@GOTPAGEOFF]
	mov	x0, x20
	bl	_sysfs_update_group
	cbz	w0, LBB0_13
; %bb.12:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_pr_err
LBB0_13:
	ldr	w8, [x21, #4]
	cmp	w8, #2
	b.ne	LBB0_9
; %bb.14:
	ldr	w8, [x21, #12]
Lloh17:
	adrp	x9, _SCI_KBD_MODE_AUTO@GOTPAGE
Lloh18:
	ldr	x9, [x9, _SCI_KBD_MODE_AUTO@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	cmp	w8, w9
	b.eq	LBB0_9
; %bb.15:
	add	x0, x21, #16
Lloh20:
	adrp	x9, _SCI_KBD_MODE_ON@GOTPAGE
Lloh21:
	ldr	x9, [x9, _SCI_KBD_MODE_ON@GOTPAGEOFF]
Lloh22:
	adrp	x10, _LED_FULL@GOTPAGE
Lloh23:
	ldr	x10, [x10, _LED_FULL@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x11, _LED_OFF@GOTPAGE
Lloh26:
	ldr	x11, [x11, _LED_OFF@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, eq
	ldr	w1, [x8]
	bl	_led_classdev_notify_brightness_hw_changed
	b	LBB0_9
LBB0_16:
	mov	x0, x21
	bl	_toshiba_acpi_process_hotkeys
	ldr	w22, [x20, #4]
	mov	x0, x20
	bl	_dev_name
	mov	x1, x0
	ldr	w3, [x21, #8]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
                                        ; -- End function
	.comm	_TOSHIBA_WMI_EVENT_GUID,4,2     ; @TOSHIBA_WMI_EVENT_GUID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Dock event received %x\n"

l_.str.1:                               ; @.str.1
	.asciz	"Thermal event received\n"

l_.str.2:                               ; @.str.2
	.asciz	"SATA power event received %x\n"

	.comm	_toshiba_attr_group,4,2         ; @toshiba_attr_group
l_.str.3:                               ; @.str.3
	.asciz	"Unable to update sysfs entries\n"

	.comm	_SCI_KBD_MODE_AUTO,4,2          ; @SCI_KBD_MODE_AUTO
	.comm	_SCI_KBD_MODE_ON,4,2            ; @SCI_KBD_MODE_ON
	.comm	_LED_FULL,4,2                   ; @LED_FULL
	.comm	_LED_OFF,4,2                    ; @LED_OFF
l_.str.4:                               ; @.str.4
	.asciz	"Unknown event received %x\n"

	.no_dead_strip	_toshiba_acpi_notify
.subsections_via_symbols
