	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_mask_set
_hotkey_mask_set:                       ## @hotkey_mask_set
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_hotkey_source_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_tp_features@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_hkey_handle@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %r12
	leaq	L_.str.1(%rip), %r13
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$32, %ecx
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edi
	leal	1(%rcx), %r14d
	xorl	%r9d, %r9d
	btl	%ecx, %ebx
	setb	%r9b
	xorl	%esi, %esi
	movq	%r12, %rdx
	movq	%r13, %rcx
	movl	%r14d, %r8d
	callq	_acpi_evalf
	movl	%r14d, %ecx
	testl	%eax, %eax
	jne	LBB0_3
## %bb.6:
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_4:
	xorl	%r14d, %r14d
LBB0_7:
	movl	-44(%rbp), %r15d                ## 4-byte Reload
LBB0_8:
	xorl	%eax, %eax
	callq	_hotkey_mask_get
	orl	%r14d, %eax
	jne	LBB0_11
## %bb.9:
	notl	%r15d
	andl	%ebx, %r15d
	movq	_hotkey_acpi_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %eax
	notl	%eax
	testl	%eax, %r15d
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rdi
	movl	%r15d, %esi
	callq	_pr_notice
LBB0_11:
	movq	_tpacpi_lifecycle@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_TPACPI_LIFE_EXITING@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.12:
	xorl	%eax, %eax
	callq	_hotkey_mask_warn_incomplete_mask
LBB0_13:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hotkey_source_mask,4,2         ## @hotkey_source_mask
	.comm	_tp_features,8,3                ## @tp_features
	.comm	_hkey_handle,4,2                ## @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"MHKM"

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

	.comm	_EIO,4,2                        ## @EIO
	.comm	_hotkey_acpi_mask,4,2           ## @hotkey_acpi_mask
L_.str.2:                               ## @.str.2
	.asciz	"asked for hotkey mask 0x%08x, but firmware forced it to 0x%08x\n"

	.comm	_tpacpi_lifecycle,8,3           ## @tpacpi_lifecycle
	.comm	_TPACPI_LIFE_EXITING,8,3        ## @TPACPI_LIFE_EXITING
	.no_dead_strip	_hotkey_mask_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_mask_set
_hotkey_mask_set:                       ; @hotkey_mask_set
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _hotkey_source_mask@GOTPAGE
Lloh1:
	ldr	x8, [x8, _hotkey_source_mask@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
Lloh3:
	adrp	x8, _tp_features@GOTPAGE
Lloh4:
	ldr	x8, [x8, _tp_features@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_5
; %bb.1:
	mov	w8, #0
Lloh6:
	adrp	x24, _hkey_handle@GOTPAGE
Lloh7:
	ldr	x24, [x24, _hkey_handle@GOTPAGEOFF]
Lloh8:
	adrp	x20, l_.str@PAGE
Lloh9:
	add	x20, x20, l_.str@PAGEOFF
Lloh10:
	adrp	x21, l_.str.1@PAGE
Lloh11:
	add	x21, x21, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #32
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w0, [x24]
	add	w22, w8, #1
	lsr	w8, w19, w8
	and	w5, w8, #0x1
	mov	x1, #0
	mov	x2, x20
	mov	x3, x21
	mov	x4, x22
	bl	_acpi_evalf
	mov	x8, x22
	cbnz	w0, LBB0_2
; %bb.4:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_6
LBB0_5:
	mov	w20, #0
LBB0_6:
	bl	_hotkey_mask_get
	orr	w8, w0, w20
	cbnz	w8, LBB0_9
; %bb.7:
	bic	w1, w19, w23
Lloh15:
	adrp	x8, _hotkey_acpi_mask@GOTPAGE
Lloh16:
	ldr	x8, [x8, _hotkey_acpi_mask@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bics	wzr, w1, w2
	b.eq	LBB0_9
; %bb.8:
Lloh18:
	adrp	x0, l_.str.2@PAGE
Lloh19:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_notice
LBB0_9:
Lloh20:
	adrp	x8, _tpacpi_lifecycle@GOTPAGE
Lloh21:
	ldr	x8, [x8, _tpacpi_lifecycle@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
Lloh23:
	adrp	x9, _TPACPI_LIFE_EXITING@GOTPAGE
Lloh24:
	ldr	x9, [x9, _TPACPI_LIFE_EXITING@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_11
; %bb.10:
	bl	_hotkey_mask_warn_incomplete_mask
LBB0_11:
	mov	x0, x20
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_hotkey_source_mask,4,2         ; @hotkey_source_mask
	.comm	_tp_features,8,3                ; @tp_features
	.comm	_hkey_handle,4,2                ; @hkey_handle
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"MHKM"

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

	.comm	_EIO,4,2                        ; @EIO
	.comm	_hotkey_acpi_mask,4,2           ; @hotkey_acpi_mask
l_.str.2:                               ; @.str.2
	.asciz	"asked for hotkey mask 0x%08x, but firmware forced it to 0x%08x\n"

	.comm	_tpacpi_lifecycle,8,3           ; @tpacpi_lifecycle
	.comm	_TPACPI_LIFE_EXITING,8,3        ; @TPACPI_LIFE_EXITING
	.no_dead_strip	_hotkey_mask_set
.subsections_via_symbols
