	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_suspend
_hotkey_suspend:                        ## @hotkey_suspend
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TP_ACPI_WAKEUP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_hotkey_wakeup_reason@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movq	_hotkey_autosleep_ack@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_adaptive_keyboard_prev_mode@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rdx
	leaq	L_.str.1(%rip), %rcx
	xorl	%r8d, %r8d
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_3
LBB0_2:
	popq	%rbp
	retq
LBB0_3:
	leaq	L_.str.2(%rip), %rdi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_ACPI_WAKEUP_NONE,4,2        ## @TP_ACPI_WAKEUP_NONE
	.comm	_hotkey_wakeup_reason,4,2       ## @hotkey_wakeup_reason
	.comm	_hotkey_autosleep_ack,8,3       ## @hotkey_autosleep_ack
	.comm	_tp_features,8,3                ## @tp_features
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.comm	_adaptive_keyboard_prev_mode,4,2 ## @adaptive_keyboard_prev_mode
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GTRW"

L_.str.1:                               ## @.str.1
	.asciz	"dd"

L_.str.2:                               ## @.str.2
	.asciz	"Cannot read adaptive keyboard mode.\n"

	.no_dead_strip	_hotkey_suspend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_suspend
_hotkey_suspend:                        ; @hotkey_suspend
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _TP_ACPI_WAKEUP_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TP_ACPI_WAKEUP_NONE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _hotkey_wakeup_reason@GOTPAGE
Lloh4:
	ldr	x9, [x9, _hotkey_wakeup_reason@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
Lloh6:
	adrp	x8, _hotkey_autosleep_ack@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hotkey_autosleep_ack@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
Lloh9:
	adrp	x8, _tp_features@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh13:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
Lloh15:
	adrp	x1, _adaptive_keyboard_prev_mode@GOTPAGE
Lloh16:
	ldr	x1, [x1, _adaptive_keyboard_prev_mode@GOTPAGEOFF]
Lloh17:
	adrp	x2, l_.str@PAGE
Lloh18:
	add	x2, x2, l_.str@PAGEOFF
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w4, #0
	bl	_acpi_evalf
	cbz	w0, LBB0_3
LBB0_2:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_3:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_ACPI_WAKEUP_NONE,4,2        ; @TP_ACPI_WAKEUP_NONE
	.comm	_hotkey_wakeup_reason,4,2       ; @hotkey_wakeup_reason
	.comm	_hotkey_autosleep_ack,8,3       ; @hotkey_autosleep_ack
	.comm	_tp_features,8,3                ; @tp_features
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.comm	_adaptive_keyboard_prev_mode,4,2 ; @adaptive_keyboard_prev_mode
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GTRW"

l_.str.1:                               ; @.str.1
	.asciz	"dd"

l_.str.2:                               ; @.str.2
	.asciz	"Cannot read adaptive keyboard mode.\n"

	.no_dead_strip	_hotkey_suspend
.subsections_via_symbols
