	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function translateKey
_translateKey:                          ## @translateKey
	.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
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	_VK_CONTROL@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_3
## %bb.1:
	movl	%esi, %edi
	callq	_HIWORD
	movq	_KF_EXTENDED@GOTPCREL(%rip), %rbx
	testl	%eax, (%rbx)
	je	LBB0_6
## %bb.2:
	movq	_GLFW_KEY_RIGHT_CONTROL@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_3:
	movq	_VK_PROCESSKEY@GOTPCREL(%rip), %rax
	cmpq	%rdi, (%rax)
	jne	LBB0_5
LBB0_14:
	movq	__GLFW_KEY_INVALID@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_5:
	movq	__glfw@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	%esi, %edi
	callq	_HIWORD
                                        ## kill: def $eax killed $eax def $rax
	andl	$511, %eax                      ## imm = 0x1FF
	movl	(%rbx,%rax,4), %eax
	jmp	LBB0_17
LBB0_6:
	xorl	%eax, %eax
	callq	_GetMessageTime
	movq	%rax, %r14
	movq	_PM_NOREMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_PeekMessageW
	testq	%rax, %rax
	je	LBB0_15
## %bb.7:
	movq	-48(%rbp), %rax
	movq	_WM_KEYDOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.8:
	movq	_WM_SYSKEYDOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.9:
	movq	_WM_KEYUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_11
## %bb.10:
	movq	_WM_SYSKEYUP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
LBB0_11:
	movq	-40(%rbp), %rax
	movq	_VK_MENU@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_15
## %bb.12:
	movl	-24(%rbp), %edi
	callq	_HIWORD
	testl	%eax, (%rbx)
	je	LBB0_15
## %bb.13:
	cmpq	%r14, -32(%rbp)
	je	LBB0_14
LBB0_15:
	movq	_GLFW_KEY_LEFT_CONTROL@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
LBB0_17:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VK_CONTROL,8,3                 ## @VK_CONTROL
	.comm	_KF_EXTENDED,4,2                ## @KF_EXTENDED
	.comm	_GLFW_KEY_RIGHT_CONTROL,4,2     ## @GLFW_KEY_RIGHT_CONTROL
	.comm	_PM_NOREMOVE,4,2                ## @PM_NOREMOVE
	.comm	_WM_KEYDOWN,8,3                 ## @WM_KEYDOWN
	.comm	_WM_SYSKEYDOWN,8,3              ## @WM_SYSKEYDOWN
	.comm	_WM_KEYUP,8,3                   ## @WM_KEYUP
	.comm	_WM_SYSKEYUP,8,3                ## @WM_SYSKEYUP
	.comm	_VK_MENU,8,3                    ## @VK_MENU
	.comm	__GLFW_KEY_INVALID,4,2          ## @_GLFW_KEY_INVALID
	.comm	_GLFW_KEY_LEFT_CONTROL,4,2      ## @GLFW_KEY_LEFT_CONTROL
	.comm	_VK_PROCESSKEY,8,3              ## @VK_PROCESSKEY
	.comm	__glfw,8,3                      ## @_glfw
	.no_dead_strip	_translateKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function translateKey
_translateKey:                          ; @translateKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, _VK_CONTROL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VK_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x1
	bl	_HIWORD
Lloh3:
	adrp	x20, _KF_EXTENDED@GOTPAGE
Lloh4:
	ldr	x20, [x20, _KF_EXTENDED@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
Lloh5:
	adrp	x8, _GLFW_KEY_RIGHT_CONTROL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GLFW_KEY_RIGHT_CONTROL@GOTPAGEOFF]
	b	LBB0_12
LBB0_3:
Lloh7:
	adrp	x8, _VK_PROCESSKEY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _VK_PROCESSKEY@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	cmp	x8, x0
	b.ne	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, __GLFW_KEY_INVALID@GOTPAGE
Lloh11:
	ldr	x8, [x8, __GLFW_KEY_INVALID@GOTPAGEOFF]
	b	LBB0_12
LBB0_5:
Lloh12:
	adrp	x8, __glfw@GOTPAGE
Lloh13:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh14:
	ldr	x19, [x8]
	mov	x0, x1
	bl	_HIWORD
	and	w8, w0, #0x1ff
	ldr	w0, [x19, w8, uxtw #2]
	b	LBB0_13
LBB0_6:
	bl	_GetMessageTime
	mov	x19, x0
Lloh15:
	adrp	x8, _PM_NOREMOVE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PM_NOREMOVE@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, sp
	mov	x1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_PeekMessageW
	cbz	x0, LBB0_11
; %bb.7:
	ldr	x8, [sp]
Lloh18:
	adrp	x9, _WM_KEYDOWN@GOTPAGE
Lloh19:
	ldr	x9, [x9, _WM_KEYDOWN@GOTPAGEOFF]
Lloh20:
	adrp	x10, _WM_SYSKEYDOWN@GOTPAGE
Lloh21:
	ldr	x10, [x10, _WM_SYSKEYDOWN@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
Lloh23:
	ldr	x10, [x10]
Lloh24:
	adrp	x11, _WM_KEYUP@GOTPAGE
Lloh25:
	ldr	x11, [x11, _WM_KEYUP@GOTPAGEOFF]
Lloh26:
	adrp	x12, _WM_SYSKEYUP@GOTPAGE
Lloh27:
	ldr	x12, [x12, _WM_SYSKEYUP@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
Lloh29:
	ldr	x12, [x12]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	ccmp	x8, x11, #4, ne
	ccmp	x8, x12, #4, ne
	b.ne	LBB0_11
; %bb.8:
	ldr	x8, [sp, #8]
Lloh30:
	adrp	x9, _VK_MENU@GOTPAGE
Lloh31:
	ldr	x9, [x9, _VK_MENU@GOTPAGEOFF]
Lloh32:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.9:
	ldr	w0, [sp, #24]
	bl	_HIWORD
	ldr	w8, [x20]
	tst	w8, w0
	b.eq	LBB0_11
; %bb.10:
	ldr	x8, [sp, #16]
	cmp	x8, x19
	b.eq	LBB0_4
LBB0_11:
Lloh33:
	adrp	x8, _GLFW_KEY_LEFT_CONTROL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _GLFW_KEY_LEFT_CONTROL@GOTPAGEOFF]
LBB0_12:
	ldr	w0, [x8]
LBB0_13:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh22
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_VK_CONTROL,8,3                 ; @VK_CONTROL
	.comm	_KF_EXTENDED,4,2                ; @KF_EXTENDED
	.comm	_GLFW_KEY_RIGHT_CONTROL,4,2     ; @GLFW_KEY_RIGHT_CONTROL
	.comm	_PM_NOREMOVE,4,2                ; @PM_NOREMOVE
	.comm	_WM_KEYDOWN,8,3                 ; @WM_KEYDOWN
	.comm	_WM_SYSKEYDOWN,8,3              ; @WM_SYSKEYDOWN
	.comm	_WM_KEYUP,8,3                   ; @WM_KEYUP
	.comm	_WM_SYSKEYUP,8,3                ; @WM_SYSKEYUP
	.comm	_VK_MENU,8,3                    ; @VK_MENU
	.comm	__GLFW_KEY_INVALID,4,2          ; @_GLFW_KEY_INVALID
	.comm	_GLFW_KEY_LEFT_CONTROL,4,2      ; @GLFW_KEY_LEFT_CONTROL
	.comm	_VK_PROCESSKEY,8,3              ; @VK_PROCESSKEY
	.comm	__glfw,8,3                      ; @_glfw
	.no_dead_strip	_translateKey
.subsections_via_symbols
