	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_resume
_hotkey_resume:                         ## @hotkey_resume
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	xorl	%eax, %eax
	callq	_tpacpi_disable_brightness_delay
	movl	$1, %edi
	callq	_hotkey_status_set
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movq	_hotkey_acpi_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hotkey_mask_set
	testq	%rax, %rax
	jns	LBB0_3
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
LBB0_3:
	xorl	%eax, %eax
	callq	_tpacpi_send_radiosw_update
	xorl	%eax, %eax
	callq	_hotkey_tablet_mode_notify_change
	xorl	%eax, %eax
	callq	_hotkey_wakeup_reason_notify_change
	xorl	%eax, %eax
	callq	_hotkey_wakeup_hotunplug_complete_notify_change
	xorl	%edi, %edi
	callq	_hotkey_poll_setup_safe
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_hkey_handle@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_adaptive_keyboard_prev_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str.1(%rip), %rdx
	leaq	L_.str.2(%rip), %rcx
	xorl	%esi, %esi
	callq	_acpi_evalf
	testl	%eax, %eax
	je	LBB0_6
LBB0_5:
	popq	%rbp
	retq
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_hotkey_acpi_mask,4,2           ## @hotkey_acpi_mask
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error while attempting to reset the event firmware interface\n"

	.comm	_tp_features,8,3                ## @tp_features
	.comm	_hkey_handle,4,2                ## @hkey_handle
L_.str.1:                               ## @.str.1
	.asciz	"STRW"

L_.str.2:                               ## @.str.2
	.asciz	"vd"

	.comm	_adaptive_keyboard_prev_mode,4,2 ## @adaptive_keyboard_prev_mode
L_.str.3:                               ## @.str.3
	.asciz	"Cannot set adaptive keyboard mode.\n"

	.no_dead_strip	_hotkey_resume
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_resume
_hotkey_resume:                         ; @hotkey_resume
	.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
	bl	_tpacpi_disable_brightness_delay
	mov	w0, #1
	bl	_hotkey_status_set
	tbnz	x0, #63, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _hotkey_acpi_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hotkey_acpi_mask@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_hotkey_mask_set
	tbz	x0, #63, LBB0_3
LBB0_2:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
LBB0_3:
	bl	_tpacpi_send_radiosw_update
	bl	_hotkey_tablet_mode_notify_change
	bl	_hotkey_wakeup_reason_notify_change
	bl	_hotkey_wakeup_hotunplug_complete_notify_change
	mov	w0, #0
	bl	_hotkey_poll_setup_safe
Lloh5:
	adrp	x8, _tp_features@GOTPAGE
Lloh6:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _hkey_handle@GOTPAGE
Lloh9:
	ldr	x8, [x8, _hkey_handle@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _adaptive_keyboard_prev_mode@GOTPAGE
Lloh12:
	ldr	x8, [x8, _adaptive_keyboard_prev_mode@GOTPAGEOFF]
Lloh13:
	ldr	w4, [x8]
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
Lloh16:
	adrp	x3, l_.str.2@PAGE
Lloh17:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x1, #0
	bl	_acpi_evalf
	cbz	w0, LBB0_6
LBB0_5:
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	b	_pr_err
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_hotkey_acpi_mask,4,2           ; @hotkey_acpi_mask
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error while attempting to reset the event firmware interface\n"

	.comm	_tp_features,8,3                ; @tp_features
	.comm	_hkey_handle,4,2                ; @hkey_handle
l_.str.1:                               ; @.str.1
	.asciz	"STRW"

l_.str.2:                               ; @.str.2
	.asciz	"vd"

	.comm	_adaptive_keyboard_prev_mode,4,2 ; @adaptive_keyboard_prev_mode
l_.str.3:                               ; @.str.3
	.asciz	"Cannot set adaptive keyboard mode.\n"

	.no_dead_strip	_hotkey_resume
.subsections_via_symbols
