	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HOTKEY_KeyDown
_HOTKEY_KeyDown:                        ## @HOTKEY_KeyDown
	.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	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %rbx
	movq	32(%rdi), %rdi
	movq	_GWL_STYLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetWindowLongW
	movq	_WS_DISABLED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
LBB0_12:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	callq	_TRACE
	movq	(%rbx), %r13
	movq	8(%rbx), %r12
	movq	$0, (%rbx)
	leal	-128(%r15), %eax
	cmpl	$8, %eax
	ja	LBB0_8
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	32(%rbx), %rdi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
	movq	32(%rbx), %rdi
	movq	_WM_KEYDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DefWindowProcW                 ## TAILCALL
LBB0_8:
	movq	%rbx, %rdi
	callq	_HOTKEY_IsCombInv
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movq	8(%rbx,%rcx,8), %rsi
	movl	%r15d, %edi
	callq	_MAKEWORD
	movq	%rax, (%rbx)
	movl	%r14d, 24(%rbx)
	cmpq	%rax, %r13
	je	LBB0_10
	jmp	LBB0_11
LBB0_4:
	movq	_HOTKEYF_SHIFT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	_HOTKEYF_ALT@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_6:
	movq	_HOTKEYF_CONTROL@GOTPCREL(%rip), %rax
LBB0_5:
	movq	(%rax), %rax
	orq	%r12, %rax
	movq	%rax, 8(%rbx)
	xorl	%eax, %eax
	cmpq	%rax, %r13
	jne	LBB0_11
LBB0_10:
	cmpq	8(%rbx), %r12
	je	LBB0_12
LBB0_11:
	movq	32(%rbx), %rdi
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	callq	_InvalidateRect
	movl	40(%rbx), %r14d
	movq	_WM_COMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	32(%rbx), %rdi
	callq	_GetDlgCtrlID
	movq	_EN_CHANGE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_MAKEWPARAM
	movl	32(%rbx), %ecx
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_SendMessageW
	jmp	LBB0_12
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_7
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_3
	.end_data_region
                                        ## -- End function
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_WS_DISABLED,4,2                ## @WS_DISABLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"() Key: %d\n"

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_WM_KEYDOWN,4,2                 ## @WM_KEYDOWN
	.comm	_HOTKEYF_SHIFT,8,3              ## @HOTKEYF_SHIFT
	.comm	_HOTKEYF_CONTROL,8,3            ## @HOTKEYF_CONTROL
	.comm	_HOTKEYF_ALT,8,3                ## @HOTKEYF_ALT
	.comm	_WM_COMMAND,4,2                 ## @WM_COMMAND
	.comm	_EN_CHANGE,4,2                  ## @EN_CHANGE
	.no_dead_strip	_HOTKEY_KeyDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HOTKEY_KeyDown
_HOTKEY_KeyDown:                        ; @HOTKEY_KeyDown
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x0, [x0, #32]
Lloh0:
	adrp	x8, _GWL_STYLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GWL_STYLE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetWindowLongW
Lloh3:
	adrp	x8, _WS_DISABLED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _WS_DISABLED@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_2
LBB0_1:
	mov	w0, #0
	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
LBB0_2:
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	ldp	x23, x22, [x19]
	str	xzr, [x19]
	sub	w8, w21, #128
	cmp	w8, #8
	b.hi	LBB0_5
; %bb.3:
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_4
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_4:
	ldr	x0, [x19, #32]
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_InvalidateRect
Lloh13:
	adrp	x8, _WM_KEYDOWN@GOTPAGE
Lloh14:
	ldr	x8, [x8, _WM_KEYDOWN@GOTPAGEOFF]
	ldr	x0, [x19, #32]
Lloh15:
	ldr	w1, [x8]
	mov	x2, x21
	mov	x3, 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
	b	_DefWindowProcW
LBB0_5:
	mov	x0, x19
	bl	_HOTKEY_IsCombInv
	cmp	w0, #0
	mov	w8, #16
	mov	w9, #8
	csel	x8, x9, x8, eq
	ldr	x1, [x19, x8]
	mov	x0, x21
	bl	_MAKEWORD
	str	x0, [x19]
	str	w20, [x19, #24]
	cmp	x23, x0
	b.eq	LBB0_10
	b	LBB0_11
LBB0_6:
	mov	x0, #0
Lloh16:
	adrp	x8, _HOTKEYF_SHIFT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HOTKEYF_SHIFT@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:
	mov	x0, #0
Lloh18:
	adrp	x8, _HOTKEYF_ALT@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HOTKEYF_ALT@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	mov	x0, #0
Lloh20:
	adrp	x8, _HOTKEYF_CONTROL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HOTKEYF_CONTROL@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	orr	x8, x8, x22
	str	x8, [x19, #8]
	cmp	x23, x0
	b.ne	LBB0_11
LBB0_10:
	ldr	x8, [x19, #8]
	cmp	x22, x8
	b.eq	LBB0_1
LBB0_11:
	ldr	x0, [x19, #32]
Lloh22:
	adrp	x8, _TRUE@GOTPAGE
Lloh23:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh24:
	ldr	w2, [x8]
	mov	x1, #0
	bl	_InvalidateRect
	ldr	w20, [x19, #40]
Lloh25:
	adrp	x8, _WM_COMMAND@GOTPAGE
Lloh26:
	ldr	x8, [x8, _WM_COMMAND@GOTPAGEOFF]
Lloh27:
	ldr	w21, [x8]
	ldr	x0, [x19, #32]
	bl	_GetDlgCtrlID
Lloh28:
	adrp	x8, _EN_CHANGE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EN_CHANGE@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	bl	_MAKEWPARAM
	mov	x2, x0
	ldr	w3, [x19, #32]
	mov	x0, x20
	mov	x1, x21
	bl	_SendMessageW
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_6-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_7-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_8-LBB0_4)>>2
	.byte	(LBB0_4-LBB0_4)>>2
                                        ; -- End function
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_WS_DISABLED,4,2                ; @WS_DISABLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"() Key: %d\n"

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_WM_KEYDOWN,4,2                 ; @WM_KEYDOWN
	.comm	_HOTKEYF_SHIFT,8,3              ; @HOTKEYF_SHIFT
	.comm	_HOTKEYF_CONTROL,8,3            ; @HOTKEYF_CONTROL
	.comm	_HOTKEYF_ALT,8,3                ; @HOTKEYF_ALT
	.comm	_WM_COMMAND,4,2                 ; @WM_COMMAND
	.comm	_EN_CHANGE,4,2                  ; @EN_CHANGE
	.no_dead_strip	_HOTKEY_KeyDown
.subsections_via_symbols
