	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_user_mask_set
_hotkey_user_mask_set:                  ## @hotkey_user_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	movq	_tp_warned@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jne	LBB0_5
## %bb.1:
	cmpl	$-1, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$16777215, %ebx                 ## imm = 0xFFFFFF
	je	LBB0_4
## %bb.3:
	cmpl	$65535, %ebx                    ## imm = 0xFFFF
	jne	LBB0_5
LBB0_4:
	movl	$1, (%rax)
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_pr_notice
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_notice
LBB0_5:
	movq	_hotkey_driver_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%ebx, %eax
	movq	_hotkey_source_mask@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	notl	%edi
	andl	%eax, %edi
	callq	_hotkey_mask_set
	movq	_hotkey_acpi_mask@GOTPCREL(%rip), %rcx
	movl	(%r14), %edx
	orl	(%rcx), %edx
	andl	%ebx, %edx
	movq	_hotkey_user_mask@GOTPCREL(%rip), %rcx
	movl	%edx, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tp_warned,4,2                  ## @tp_warned
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"setting the hotkey mask to 0x%08x is likely not the best way to go about it\n"

L_.str.1:                               ## @.str.1
	.asciz	"please consider using the driver defaults, and refer to up-to-date thinkpad-acpi documentation\n"

	.comm	_hotkey_driver_mask,4,2         ## @hotkey_driver_mask
	.comm	_hotkey_source_mask,4,2         ## @hotkey_source_mask
	.comm	_hotkey_acpi_mask,4,2           ## @hotkey_acpi_mask
	.comm	_hotkey_user_mask,4,2           ## @hotkey_user_mask
	.no_dead_strip	_hotkey_user_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_user_mask_set
_hotkey_user_mask_set:                  ; @hotkey_user_mask_set
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _tp_warned@GOTPAGE
Lloh1:
	ldr	x8, [x8, _tp_warned@GOTPAGEOFF]
	ldr	w9, [x8]
	cbnz	w9, LBB0_5
; %bb.1:
	cmn	w19, #1
	b.eq	LBB0_4
; %bb.2:
	mov	w9, #16777215
	cmp	w19, w9
	b.eq	LBB0_4
; %bb.3:
	mov	w9, #65535
	cmp	w19, w9
	b.ne	LBB0_5
LBB0_4:
	mov	w9, #1
	str	w9, [x8]
	str	x19, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_notice
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_notice
LBB0_5:
Lloh6:
	adrp	x8, _hotkey_driver_mask@GOTPAGE
Lloh7:
	ldr	x8, [x8, _hotkey_driver_mask@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w8, w8, w19
Lloh9:
	adrp	x20, _hotkey_source_mask@GOTPAGE
Lloh10:
	ldr	x20, [x20, _hotkey_source_mask@GOTPAGEOFF]
	ldr	w9, [x20]
	bic	w0, w8, w9
	bl	_hotkey_mask_set
Lloh11:
	adrp	x8, _hotkey_acpi_mask@GOTPAGE
Lloh12:
	ldr	x8, [x8, _hotkey_acpi_mask@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	and	w8, w8, w19
Lloh14:
	adrp	x9, _hotkey_user_mask@GOTPAGE
Lloh15:
	ldr	x9, [x9, _hotkey_user_mask@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_tp_warned,4,2                  ; @tp_warned
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"setting the hotkey mask to 0x%08x is likely not the best way to go about it\n"

l_.str.1:                               ; @.str.1
	.asciz	"please consider using the driver defaults, and refer to up-to-date thinkpad-acpi documentation\n"

	.comm	_hotkey_driver_mask,4,2         ; @hotkey_driver_mask
	.comm	_hotkey_source_mask,4,2         ; @hotkey_source_mask
	.comm	_hotkey_acpi_mask,4,2           ; @hotkey_acpi_mask
	.comm	_hotkey_user_mask,4,2           ; @hotkey_user_mask
	.no_dead_strip	_hotkey_user_mask_set
.subsections_via_symbols
