	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qnx_process_keyboard_event
_qnx_process_keyboard_event:            ## @qnx_process_keyboard_event
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	$0, -36(%rbp)
	movq	_SCREEN_PROPERTY_KEY_FLAGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	callq	_screen_get_event_property_iv
	movl	$0, -28(%rbp)
	movq	_SCREEN_PROPERTY_KEY_CAP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-28(%rbp), %rdx
	movl	%ebx, %edi
	callq	_screen_get_event_property_iv
	movl	$0, -32(%rbp)
	movq	_SCREEN_PROPERTY_KEY_MODIFIERS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdx
	movl	%ebx, %edi
	callq	_screen_get_event_property_iv
	movl	-28(%rbp), %edi
	callq	_input_keymaps_translate_keysym_to_rk
	movl	-36(%rbp), %ebx
	movq	_KEY_REPEAT@GOTPCREL(%rip), %rcx
	testl	%ebx, (%rcx)
	jne	LBB0_4
## %bb.1:
	movq	_KEY_DOWN@GOTPCREL(%rip), %rdx
	movl	-32(%rbp), %ecx
	movq	_RETRO_DEVICE_KEYBOARD@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	movl	(%rdx), %r15d
	movl	%ebx, %edi
	andl	%r15d, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_input_keyboard_event
	movl	(%r14), %edi
	movl	-28(%rbp), %esi
	andl	%r15d, %ebx
	je	LBB0_3
## %bb.2:
	callq	_BIT_SET
	jmp	LBB0_4
LBB0_3:
	callq	_BIT_CLEAR
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCREEN_PROPERTY_KEY_FLAGS,4,2  ## @SCREEN_PROPERTY_KEY_FLAGS
	.comm	_SCREEN_PROPERTY_KEY_CAP,4,2    ## @SCREEN_PROPERTY_KEY_CAP
	.comm	_SCREEN_PROPERTY_KEY_MODIFIERS,4,2 ## @SCREEN_PROPERTY_KEY_MODIFIERS
	.comm	_KEY_DOWN,4,2                   ## @KEY_DOWN
	.comm	_KEY_REPEAT,4,2                 ## @KEY_REPEAT
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ## @RETRO_DEVICE_KEYBOARD
	.no_dead_strip	_qnx_process_keyboard_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qnx_process_keyboard_event
_qnx_process_keyboard_event:            ; @qnx_process_keyboard_event
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x1
	mov	x19, x0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x8, _SCREEN_PROPERTY_KEY_FLAGS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCREEN_PROPERTY_KEY_FLAGS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x20
	bl	_screen_get_event_property_iv
	str	wzr, [sp, #8]
Lloh3:
	adrp	x8, _SCREEN_PROPERTY_KEY_CAP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SCREEN_PROPERTY_KEY_CAP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_screen_get_event_property_iv
	str	wzr, [sp, #4]
Lloh6:
	adrp	x8, _SCREEN_PROPERTY_KEY_MODIFIERS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SCREEN_PROPERTY_KEY_MODIFIERS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #4
	mov	x0, x20
	bl	_screen_get_event_property_iv
	ldr	w0, [sp, #8]
	bl	_input_keymaps_translate_keysym_to_rk
	ldr	w8, [sp, #12]
Lloh9:
	adrp	x9, _KEY_REPEAT@GOTPAGE
Lloh10:
	ldr	x9, [x9, _KEY_REPEAT@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_4
; %bb.1:
	mov	x1, x0
Lloh12:
	adrp	x9, _KEY_DOWN@GOTPAGE
Lloh13:
	ldr	x9, [x9, _KEY_DOWN@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	and	w20, w9, w8
	ldr	w3, [sp, #4]
Lloh15:
	adrp	x8, _RETRO_DEVICE_KEYBOARD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RETRO_DEVICE_KEYBOARD@GOTPAGEOFF]
Lloh17:
	ldr	w4, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_input_keyboard_event
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
	cbz	w20, LBB0_3
; %bb.2:
	bl	_BIT_SET
	b	LBB0_4
LBB0_3:
	bl	_BIT_CLEAR
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_SCREEN_PROPERTY_KEY_FLAGS,4,2  ; @SCREEN_PROPERTY_KEY_FLAGS
	.comm	_SCREEN_PROPERTY_KEY_CAP,4,2    ; @SCREEN_PROPERTY_KEY_CAP
	.comm	_SCREEN_PROPERTY_KEY_MODIFIERS,4,2 ; @SCREEN_PROPERTY_KEY_MODIFIERS
	.comm	_KEY_DOWN,4,2                   ; @KEY_DOWN
	.comm	_KEY_REPEAT,4,2                 ; @KEY_REPEAT
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ; @RETRO_DEVICE_KEYBOARD
	.no_dead_strip	_qnx_process_keyboard_event
.subsections_via_symbols
