	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handleKeyEvent
_handleKeyEvent:                        ## @handleKeyEvent
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_mir_keyboard_event_action
	movl	%eax, %r13d
	movq	%rbx, %rdi
	callq	_mir_keyboard_event_scan_code
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mir_keyboard_event_key_code
	movl	%eax, %r12d
	movq	%rbx, %rdi
	callq	_mir_keyboard_event_modifiers
	movq	_mir_keyboard_action_up@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	jne	LBB0_1
## %bb.2:
	movq	%r14, %r13
	movq	_GLFW_RELEASE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	%r14, %r13
	movq	_GLFW_PRESS@GOTPCREL(%rip), %rcx
LBB0_3:
	movl	(%rcx), %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%eax, %edi
	callq	_mirModToGLFWMod
	movl	%eax, %ebx
	movl	%r12d, %edi
	callq	__glfwKeySym2Unicode
	movq	%rax, %r12
	movq	_GLFW_MOD_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	_GLFW_MOD_ALT@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r15d, %edi
	callq	_toGLFWKeyCode
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ebx, %r8d
	callq	__glfwInputKey
	cmpq	$-1, %r12
	je	LBB0_4
## %bb.5:
	orl	-44(%rbp), %r14d                ## 4-byte Folded Reload
	xorl	%ecx, %ecx
	testl	%ebx, %r14d
	sete	%cl
	movq	%r13, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	__glfwInputChar                 ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mir_keyboard_action_up,4,2     ## @mir_keyboard_action_up
	.comm	_GLFW_RELEASE,4,2               ## @GLFW_RELEASE
	.comm	_GLFW_PRESS,4,2                 ## @GLFW_PRESS
	.comm	_GLFW_MOD_CONTROL,4,2           ## @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_ALT,4,2               ## @GLFW_MOD_ALT
	.no_dead_strip	_handleKeyEvent
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handleKeyEvent
_handleKeyEvent:                        ; @handleKeyEvent
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
	bl	_mir_keyboard_event_action
	mov	x21, x0
	mov	x0, x20
	bl	_mir_keyboard_event_scan_code
	mov	x22, x0
	mov	x0, x20
	bl	_mir_keyboard_event_key_code
	mov	x23, x0
	mov	x0, x20
	bl	_mir_keyboard_event_modifiers
Lloh0:
	adrp	x8, _mir_keyboard_action_up@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mir_keyboard_action_up@GOTPAGEOFF]
Lloh2:
	adrp	x9, _GLFW_RELEASE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _GLFW_RELEASE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _GLFW_PRESS@GOTPAGE
Lloh6:
	ldr	x10, [x10, _GLFW_PRESS@GOTPAGEOFF]
	cmp	w21, w8
	csel	x8, x9, x10, eq
	ldr	w24, [x8]
	bl	_mirModToGLFWMod
	mov	x20, x0
	mov	x0, x23
	bl	__glfwKeySym2Unicode
	mov	x21, x0
Lloh7:
	adrp	x8, _GLFW_MOD_CONTROL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GLFW_MOD_CONTROL@GOTPAGEOFF]
Lloh9:
	ldr	w23, [x8]
Lloh10:
	adrp	x8, _GLFW_MOD_ALT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GLFW_MOD_ALT@GOTPAGEOFF]
Lloh12:
	ldr	w25, [x8]
	mov	x0, x22
	bl	_toGLFWKeyCode
	mov	x1, x0
	mov	x0, x19
	mov	x2, x22
	mov	x3, x24
	mov	x4, x20
	bl	__glfwInputKey
	cmn	x21, #1
	b.eq	LBB0_2
; %bb.1:
	orr	w8, w25, w23
	tst	w8, w20
	cset	w3, eq
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	__glfwInputChar
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_mir_keyboard_action_up,4,2     ; @mir_keyboard_action_up
	.comm	_GLFW_RELEASE,4,2               ; @GLFW_RELEASE
	.comm	_GLFW_PRESS,4,2                 ; @GLFW_PRESS
	.comm	_GLFW_MOD_CONTROL,4,2           ; @GLFW_MOD_CONTROL
	.comm	_GLFW_MOD_ALT,4,2               ; @GLFW_MOD_ALT
	.no_dead_strip	_handleKeyEvent
.subsections_via_symbols
