	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_WM_SysKeyDown
_EDIT_WM_SysKeyDown:                    ## @EDIT_WM_SysKeyDown
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	testl	$8192, %edx                     ## imm = 0x2000
	je	LBB0_4
## %bb.1:
	movq	_VK_BACK@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_4
## %bb.2:
	movq	%r14, %rdi
	callq	_EDIT_EM_CanUndo
	testq	%rax, %rax
	je	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_EDIT_EM_Undo
	jmp	LBB0_7
LBB0_4:
	movq	_VK_UP@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	je	LBB0_6
## %bb.5:
	movq	_VK_DOWN@GOTPCREL(%rip), %rax
	cmpq	%rbx, (%rax)
	jne	LBB0_8
LBB0_6:
	movq	_WM_SYSKEYDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_EDIT_CheckCombo
	testq	%rax, %rax
	je	LBB0_8
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movl	(%r14), %edi
	movq	_WM_SYSKEYDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DefWindowProcW                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_BACK,8,3                    ## @VK_BACK
	.comm	_VK_UP,8,3                      ## @VK_UP
	.comm	_VK_DOWN,8,3                    ## @VK_DOWN
	.comm	_WM_SYSKEYDOWN,4,2              ## @WM_SYSKEYDOWN
	.no_dead_strip	_EDIT_WM_SysKeyDown
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_WM_SysKeyDown
_EDIT_WM_SysKeyDown:                    ; @EDIT_WM_SysKeyDown
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	tbz	w2, #13, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _VK_BACK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_BACK@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_EDIT_EM_CanUndo
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_EDIT_EM_Undo
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _VK_UP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VK_UP@GOTPAGEOFF]
Lloh5:
	adrp	x9, _VK_DOWN@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VK_DOWN@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x21
	ccmp	x9, x21, #4, ne
Lloh9:
	adrp	x22, _WM_SYSKEYDOWN@GOTPAGE
Lloh10:
	ldr	x22, [x22, _WM_SYSKEYDOWN@GOTPAGEOFF]
	b.ne	LBB0_7
; %bb.5:
	ldr	w1, [x22]
	mov	x0, x19
	mov	x2, x21
	bl	_EDIT_CheckCombo
	cbz	x0, LBB0_7
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	w0, [x19]
	ldr	w1, [x22]
	mov	x2, x21
	mov	x3, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_DefWindowProcW
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_BACK,8,3                    ; @VK_BACK
	.comm	_VK_UP,8,3                      ; @VK_UP
	.comm	_VK_DOWN,8,3                    ; @VK_DOWN
	.comm	_WM_SYSKEYDOWN,4,2              ; @WM_SYSKEYDOWN
	.no_dead_strip	_EDIT_WM_SysKeyDown
.subsections_via_symbols
