	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function toshiba_acpi_enable_hotkeys
_toshiba_acpi_enable_hotkeys:           ## @toshiba_acpi_enable_hotkeys
	.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
	movq	%rdi, %r14
	movq	16(%rdi), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_acpi_evaluate_object
	movl	%eax, %edi
	callq	_ACPI_FAILURE
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_2:
	cmpq	$0, 8(%r14)
	je	LBB0_5
## %bb.3:
	cmpq	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movq	_HCI_HOTKEY_SPECIAL_FUNCTIONS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_5:
	movq	_HCI_HOTKEY_ENABLE@GOTPCREL(%rip), %rax
LBB0_6:
	movq	_HCI_HOTKEY_EVENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %edx
	movq	%r14, %rdi
	callq	_hci_write
	movq	_TOS_FAILURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_EIO@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	_TOS_NOT_SUPPORTED@GOTPCREL(%rip), %rcx
	xorl	%ebx, %ebx
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.9:
	movq	_ENODEV@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	subl	(%rax), %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ENAB"

	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_HCI_HOTKEY_EVENT,4,2           ## @HCI_HOTKEY_EVENT
	.comm	_HCI_HOTKEY_SPECIAL_FUNCTIONS,4,2 ## @HCI_HOTKEY_SPECIAL_FUNCTIONS
	.comm	_HCI_HOTKEY_ENABLE,4,2          ## @HCI_HOTKEY_ENABLE
	.comm	_TOS_FAILURE,8,3                ## @TOS_FAILURE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_TOS_NOT_SUPPORTED,8,3          ## @TOS_NOT_SUPPORTED
	.no_dead_strip	_toshiba_acpi_enable_hotkeys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function toshiba_acpi_enable_hotkeys
_toshiba_acpi_enable_hotkeys:           ; @toshiba_acpi_enable_hotkeys
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	mov	x3, #0
	bl	_acpi_evaluate_object
	bl	_ACPI_FAILURE
	cbz	x0, LBB0_2
LBB0_1:
Lloh2:
	adrp	x8, _ENODEV@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_8
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19]
	cbz	x8, LBB0_5
; %bb.4:
Lloh4:
	adrp	x8, _HCI_HOTKEY_SPECIAL_FUNCTIONS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HCI_HOTKEY_SPECIAL_FUNCTIONS@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _HCI_HOTKEY_ENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCI_HOTKEY_ENABLE@GOTPAGEOFF]
LBB0_6:
Lloh8:
	adrp	x9, _HCI_HOTKEY_EVENT@GOTPAGE
Lloh9:
	ldr	x9, [x9, _HCI_HOTKEY_EVENT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x9]
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hci_write
Lloh11:
	adrp	x8, _TOS_FAILURE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TOS_FAILURE@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.7:
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_10:
Lloh16:
	adrp	x8, _TOS_NOT_SUPPORTED@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TOS_NOT_SUPPORTED@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_1
; %bb.11:
	mov	w0, #0
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ENAB"

	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_HCI_HOTKEY_EVENT,4,2           ; @HCI_HOTKEY_EVENT
	.comm	_HCI_HOTKEY_SPECIAL_FUNCTIONS,4,2 ; @HCI_HOTKEY_SPECIAL_FUNCTIONS
	.comm	_HCI_HOTKEY_ENABLE,4,2          ; @HCI_HOTKEY_ENABLE
	.comm	_TOS_FAILURE,8,3                ; @TOS_FAILURE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_TOS_NOT_SUPPORTED,8,3          ; @TOS_NOT_SUPPORTED
	.no_dead_strip	_toshiba_acpi_enable_hotkeys
.subsections_via_symbols
