	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_exit
_hotkey_exit:                           ## @hotkey_exit
	.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
	movq	_hotkey_dev_attributes@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	movq	_tpacpi_pdev@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	callq	_delete_attr_set
LBB0_2:
	movq	_TPACPI_DBG_EXIT@GOTPCREL(%rip), %rax
	movq	_TPACPI_DBG_HKEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dbg_printk
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.4:
	movq	_hotkey_orig_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_hotkey_mask_set
	xorl	%ebx, %ebx
	testq	%rax, %rax
	setne	%bl
	jmp	LBB0_5
LBB0_3:
	xorl	%ebx, %ebx
LBB0_5:
	xorl	%edi, %edi
	callq	_hotkey_status_set
	orl	%ebx, %eax
	je	LBB0_6
## %bb.7:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_pr_err                         ## TAILCALL
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hotkey_dev_attributes,8,3      ## @hotkey_dev_attributes
	.comm	_tpacpi_pdev,8,3                ## @tpacpi_pdev
	.comm	_TPACPI_DBG_EXIT,4,2            ## @TPACPI_DBG_EXIT
	.comm	_TPACPI_DBG_HKEY,4,2            ## @TPACPI_DBG_HKEY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"restoring original HKEY status and mask\n"

	.comm	_tp_features,8,3                ## @tp_features
	.comm	_hotkey_orig_mask,4,2           ## @hotkey_orig_mask
L_.str.1:                               ## @.str.1
	.asciz	"failed to restore hot key mask to BIOS defaults\n"

	.comm	_hotkey_mutex,4,2               ## @hotkey_mutex
	.no_dead_strip	_hotkey_exit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_exit
_hotkey_exit:                           ; @hotkey_exit
	.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
Lloh0:
	adrp	x8, _hotkey_dev_attributes@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hotkey_dev_attributes@GOTPAGEOFF]
Lloh2:
	ldr	x0, [x8]
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _tpacpi_pdev@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tpacpi_pdev@GOTPAGEOFF]
Lloh5:
	ldr	x1, [x8]
	bl	_delete_attr_set
LBB0_2:
Lloh6:
	adrp	x8, _TPACPI_DBG_EXIT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TPACPI_DBG_EXIT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _TPACPI_DBG_HKEY@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TPACPI_DBG_HKEY@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w0, w9, w8
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dbg_printk
Lloh14:
	adrp	x8, _tp_features@GOTPAGE
Lloh15:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh17:
	adrp	x8, _hotkey_orig_mask@GOTPAGE
Lloh18:
	ldr	x8, [x8, _hotkey_orig_mask@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	bl	_hotkey_mask_set
	cmp	x0, #0
	cset	w19, ne
	b	LBB0_5
LBB0_4:
	mov	w19, #0
LBB0_5:
	mov	w0, #0
	bl	_hotkey_status_set
	orr	w8, w0, w19
	cbz	w8, LBB0_7
; %bb.6:
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pr_err
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_hotkey_dev_attributes,8,3      ; @hotkey_dev_attributes
	.comm	_tpacpi_pdev,8,3                ; @tpacpi_pdev
	.comm	_TPACPI_DBG_EXIT,4,2            ; @TPACPI_DBG_EXIT
	.comm	_TPACPI_DBG_HKEY,4,2            ; @TPACPI_DBG_HKEY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"restoring original HKEY status and mask\n"

	.comm	_tp_features,8,3                ; @tp_features
	.comm	_hotkey_orig_mask,4,2           ; @hotkey_orig_mask
l_.str.1:                               ; @.str.1
	.asciz	"failed to restore hot key mask to BIOS defaults\n"

	.comm	_hotkey_mutex,4,2               ; @hotkey_mutex
	.no_dead_strip	_hotkey_exit
.subsections_via_symbols
