	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keyboardHandleKey
_keyboardHandleKey:                     ## @keyboardHandleKey
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %r12
	movq	8(%r12), %r14
	testq	%r14, %r14
	je	LBB0_7
## %bb.1:
	movq	%r9, %r15
	movq	%r8, %rbx
	movq	%r8, %rdi
	callq	_toGLFWKeyCode
	movq	_WL_KEYBOARD_KEY_STATE_PRESSED@GOTPCREL(%rip), %rcx
	cmpq	%r15, (%rcx)
	jne	LBB0_2
## %bb.3:
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rcx
	jmp	LBB0_4
LBB0_2:
	movq	_GLFW_RELEASE@GOTPCREL(%rip), %rcx
LBB0_4:
	movl	(%rcx), %ecx
	movl	(%r12), %r8d
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%rbx, %rdx
	callq	__glfwInputKey
	addq	$8, %rbx
	movl	4(%r12), %edi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rsi
	callq	_xkb_key_get_syms
	cmpq	$1, %rax
	jne	LBB0_7
## %bb.5:
	movq	-40(%rbp), %rax
	movl	(%rax), %edi
	callq	__glfwKeySym2Unicode
	cmpq	$-1, %rax
	je	LBB0_7
## %bb.6:
	movq	_GLFW_MOD_CONTROL@GOTPCREL(%rip), %rcx
	movq	_GLFW_MOD_ALT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %esi
	orl	(%rcx), %esi
	movl	(%r12), %edx
	xorl	%ecx, %ecx
	testl	%edx, %esi
	sete	%cl
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	__glfwInputChar
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,16,3                     ## @_glfw
	.comm	_WL_KEYBOARD_KEY_STATE_PRESSED,8,3 ## @WL_KEYBOARD_KEY_STATE_PRESSED
	.comm	_GLFW_PRESS,4,2                 ## @GLFW_PRESS
	.comm	_GLFW_RELEASE,4,2               ## @GLFW_RELEASE
	.comm	_GLFW_MOD_CONTROL,4,2           ## @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_ALT,4,2               ## @GLFW_MOD_ALT
	.no_dead_strip	_keyboardHandleKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keyboardHandleKey
_keyboardHandleKey:                     ; @keyboardHandleKey
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
Lloh0:
	adrp	x22, __glfw@GOTPAGE
Lloh1:
	ldr	x22, [x22, __glfw@GOTPAGEOFF]
	ldr	x19, [x22, #8]
	cbz	x19, LBB0_4
; %bb.1:
	mov	x21, x5
	mov	x20, x4
	mov	x0, x4
	bl	_toGLFWKeyCode
	mov	x1, x0
Lloh2:
	adrp	x8, _WL_KEYBOARD_KEY_STATE_PRESSED@GOTPAGE
Lloh3:
	ldr	x8, [x8, _WL_KEYBOARD_KEY_STATE_PRESSED@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _GLFW_PRESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GLFW_PRESS@GOTPAGEOFF]
Lloh7:
	adrp	x10, _GLFW_RELEASE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _GLFW_RELEASE@GOTPAGEOFF]
	cmp	x8, x21
	csel	x8, x9, x10, eq
	ldr	w3, [x8]
	ldr	w4, [x22]
	mov	x0, x19
	mov	x2, x20
	bl	__glfwInputKey
	add	x1, x20, #8
	ldr	w0, [x22, #4]
	add	x2, sp, #8
	bl	_xkb_key_get_syms
	cmp	x0, #1
	b.ne	LBB0_4
; %bb.2:
	ldr	x8, [sp, #8]
	ldr	w0, [x8]
	bl	__glfwKeySym2Unicode
	cmn	x0, #1
	b.eq	LBB0_4
; %bb.3:
	mov	x1, x0
	ldr	w2, [x22]
Lloh9:
	adrp	x8, _GLFW_MOD_CONTROL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GLFW_MOD_CONTROL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _GLFW_MOD_ALT@GOTPAGE
Lloh13:
	ldr	x9, [x9, _GLFW_MOD_ALT@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w2
	cset	w3, eq
	mov	x0, x19
	bl	__glfwInputChar
LBB0_4:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,16,3                     ; @_glfw
	.comm	_WL_KEYBOARD_KEY_STATE_PRESSED,8,3 ; @WL_KEYBOARD_KEY_STATE_PRESSED
	.comm	_GLFW_PRESS,4,2                 ; @GLFW_PRESS
	.comm	_GLFW_RELEASE,4,2               ; @GLFW_RELEASE
	.comm	_GLFW_MOD_CONTROL,4,2           ; @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_ALT,4,2               ; @GLFW_MOD_ALT
	.no_dead_strip	_keyboardHandleKey
.subsections_via_symbols
