	.file	"extr_mir_window.c_handleKeyEvent.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	handleKeyEvent, @function
handleKeyEvent:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	mir_keyboard_event_action@PLT
	mov	rdi, rbp
	mov	r13d, eax
	call	mir_keyboard_event_scan_code@PLT
	mov	rdi, rbp
	mov	r12d, eax
	call	mir_keyboard_event_key_code@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	mir_keyboard_event_modifiers@PLT
	cmp	DWORD PTR mir_keyboard_action_up[rip], r13d
	mov	ebx, DWORD PTR GLFW_PRESS[rip]
	mov	edi, eax
	jne	.L3
	mov	ebx, DWORD PTR GLFW_RELEASE[rip]
.L3:
	call	mirModToGLFWMod@PLT
	mov	edi, r15d
	mov	r13d, eax
	call	_glfwKeySym2Unicode@PLT
	mov	edi, r12d
	mov	rbp, rax
	call	toGLFWKeyCode@PLT
	mov	r8d, r13d
	mov	ecx, ebx
	mov	edx, r12d
	mov	esi, eax
	mov	rdi, r14
	call	_glfwInputKey@PLT
	cmp	rbp, -1
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR GLFW_MOD_ALT[rip]
	xor	ecx, ecx
	mov	edx, r13d
	mov	rsi, rbp
	or	eax, DWORD PTR GLFW_MOD_CONTROL[rip]
	mov	rdi, r14
	test	eax, r13d
	sete	cl
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	_glfwInputChar@PLT
	.cfi_endproc
.LFE0:
	.size	handleKeyEvent, .-handleKeyEvent
	.comm	mir_keyboard_action_up,4,4
	.comm	GLFW_RELEASE,4,4
	.comm	GLFW_PRESS,4,4
	.comm	GLFW_MOD_CONTROL,4,4
	.comm	GLFW_MOD_ALT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_mir_window.c_handleKeyEvent.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handleKeyEvent, %function
handleKeyEvent:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	sub	sp, sp, #16
	mov	r6, r1
	mov	r4, r0
	bl	mir_keyboard_event_action
	mov	r8, r0
	mov	r0, r4
	bl	mir_keyboard_event_scan_code
	mov	r5, r0
	mov	r0, r4
	bl	mir_keyboard_event_key_code
	mov	r7, r0
	mov	r0, r4
	bl	mir_keyboard_event_modifiers
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, r8
	ldreq	r3, .L8+4
	ldrne	r3, .L8+8
	ldr	r8, [r3]
	bl	mirModToGLFWMod
	mov	r4, r0
	mov	r0, r7
	bl	_glfwKeySym2Unicode
	ldr	r2, .L8+12
	ldr	r3, .L8+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	mov	r7, r0
	mov	r0, r5
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	bl	toGLFWKeyCode
	mov	r3, r8
	mov	r1, r0
	mov	r2, r5
	mov	r0, r6
	str	r4, [sp]
	bl	_glfwInputKey
	cmn	r7, #1
	bne	.L7
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L7:
	ldr	r2, [sp, #12]
	ldr	r3, [sp, #8]
	mov	r1, r7
	orr	r3, r3, r2
	tst	r3, r4
	mov	r2, r4
	mov	r0, r6
	moveq	r3, #1
	movne	r3, #0
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, lr}
	b	_glfwInputChar
.L9:
	.align	2
.L8:
	.word	mir_keyboard_action_up
	.word	GLFW_RELEASE
	.word	GLFW_PRESS
	.word	GLFW_MOD_CONTROL
	.word	GLFW_MOD_ALT
	.size	handleKeyEvent, .-handleKeyEvent
	.comm	mir_keyboard_action_up,4,4
	.comm	GLFW_RELEASE,4,4
	.comm	GLFW_PRESS,4,4
	.comm	GLFW_MOD_CONTROL,4,4
	.comm	GLFW_MOD_ALT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
