	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hotkey_notify_hotkey
_hotkey_notify_hotkey:                  ## @hotkey_notify_hotkey
	.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
	movl	%edi, %ecx
	andl	$4095, %edi                     ## imm = 0xFFF
	movl	$1, (%rsi)
	movl	$0, (%rdx)
	shrl	$8, %ecx
	andl	$15, %ecx
	xorl	%eax, %eax
	cmpl	$3, %ecx
	je	LBB0_9
## %bb.1:
	cmpl	$1, %ecx
	je	LBB0_8
## %bb.2:
	testl	%ecx, %ecx
	jne	LBB0_13
## %bb.3:
	testl	%edi, %edi
	je	LBB0_13
## %bb.4:
	movq	_TP_ACPI_HOTKEYSCAN_ADAPTIVE_START@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	ja	LBB0_13
## %bb.5:
	decl	%edi
	movq	_hotkey_source_mask@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	btl	%edi, %eax
	jae	LBB0_6
## %bb.7:
	movl	$1, (%rdx)
	jmp	LBB0_12
LBB0_9:
	movq	_TP_ACPI_HOTKEYSCAN_EXTENDED_START@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %edi
	addl	$-768, %edi                     ## imm = 0xFD00
	cmpl	%ecx, %edi
	jb	LBB0_13
## %bb.10:
	movq	_TPACPI_HOTKEY_MAP_LEN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	jae	LBB0_13
## %bb.11:
	callq	_tpacpi_input_send_key
	jmp	LBB0_12
LBB0_8:
                                        ## kill: def $edi killed $edi killed $rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_adaptive_keyboard_hotkey_notify_hotkey ## TAILCALL
LBB0_6:
	movq	%rsi, %rbx
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_tpacpi_input_send_key_masked
	movl	$0, (%rbx)
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TP_ACPI_HOTKEYSCAN_ADAPTIVE_START,4,2 ## @TP_ACPI_HOTKEYSCAN_ADAPTIVE_START
	.comm	_hotkey_source_mask,4,2         ## @hotkey_source_mask
	.comm	_TP_ACPI_HOTKEYSCAN_EXTENDED_START,4,2 ## @TP_ACPI_HOTKEYSCAN_EXTENDED_START
	.comm	_TPACPI_HOTKEY_MAP_LEN,4,2      ## @TPACPI_HOTKEY_MAP_LEN
	.no_dead_strip	_hotkey_notify_hotkey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hotkey_notify_hotkey
_hotkey_notify_hotkey:                  ; @hotkey_notify_hotkey
	.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
	mov	x8, x0
	and	w0, w0, #0xfff
	mov	w9, #1
	str	w9, [x1]
	str	wzr, [x2]
	ubfx	w9, w8, #8, #4
	cmp	w9, #3
	b.eq	LBB0_7
; %bb.1:
	cmp	w9, #1
	b.eq	LBB0_9
; %bb.2:
	mov	w8, #0
	cbnz	w9, LBB0_13
; %bb.3:
	mov	w8, #0
	cbz	w0, LBB0_13
; %bb.4:
Lloh0:
	adrp	x9, _TP_ACPI_HOTKEYSCAN_ADAPTIVE_START@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TP_ACPI_HOTKEYSCAN_ADAPTIVE_START@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w0, w9
	b.hi	LBB0_13
; %bb.5:
	sub	w0, w0, #1
Lloh3:
	adrp	x8, _hotkey_source_mask@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hotkey_source_mask@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	lsr	w8, w8, w0
	tbz	w8, #0, LBB0_11
; %bb.6:
	mov	w8, #1
	str	w8, [x2]
	b	LBB0_13
LBB0_7:
Lloh6:
	adrp	x8, _TP_ACPI_HOTKEYSCAN_EXTENDED_START@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TP_ACPI_HOTKEYSCAN_EXTENDED_START@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	add	w9, w0, w8
	sub	w0, w9, #768
Lloh9:
	adrp	x9, _TPACPI_HOTKEY_MAP_LEN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TPACPI_HOTKEY_MAP_LEN@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	cmp	w0, w8
	ccmp	w0, w9, #2, hs
	b.lo	LBB0_10
; %bb.8:
	mov	w8, #0
	b	LBB0_13
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_adaptive_keyboard_hotkey_notify_hotkey
LBB0_10:
	bl	_tpacpi_input_send_key
	b	LBB0_12
LBB0_11:
	mov	x19, x1
	bl	_tpacpi_input_send_key_masked
	str	wzr, [x19]
LBB0_12:
	mov	w8, #1
LBB0_13:
	mov	x0, x8
	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	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_TP_ACPI_HOTKEYSCAN_ADAPTIVE_START,4,2 ; @TP_ACPI_HOTKEYSCAN_ADAPTIVE_START
	.comm	_hotkey_source_mask,4,2         ; @hotkey_source_mask
	.comm	_TP_ACPI_HOTKEYSCAN_EXTENDED_START,4,2 ; @TP_ACPI_HOTKEYSCAN_EXTENDED_START
	.comm	_TPACPI_HOTKEY_MAP_LEN,4,2      ; @TPACPI_HOTKEY_MAP_LEN
	.no_dead_strip	_hotkey_notify_hotkey
.subsections_via_symbols
