	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qnx_handle_navigator_event
_qnx_handle_navigator_event:            ## @qnx_handle_navigator_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	$0, -24(%rbp)
	movq	%rsi, %rdi
	callq	_bps_event_get_code
                                        ## kill: def $eax killed $eax def $rax
	addl	$-129, %eax
	cmpl	$8, %eax
	ja	LBB0_10
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%rbx, %rdi
	callq	_navigator_event_get_window_state
	orl	$2, %eax
	cmpl	$130, %eax
	jne	LBB0_10
## %bb.6:
	leaq	-24(%rbp), %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_7 Depth=1
	cmpl	$137, %eax
	je	LBB0_9
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$-1, %esi
	callq	_bps_get_event
	movq	-24(%rbp), %rdi
	callq	_bps_event_get_code
	cmpl	$129, %eax
	jne	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	-24(%rbp), %rdi
	callq	_navigator_event_get_window_state
	cmpl	$131, %eax
	jne	LBB0_7
	jmp	LBB0_10
LBB0_9:
	movq	_RARCH_CTL_SET_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_rarch_ctl
	jmp	LBB0_10
LBB0_2:
	movq	%rbx, %rdi
	callq	_navigator_event_get_syskey_key
	cmpl	$135, %eax
	jne	LBB0_10
## %bb.3:
	movq	_RETROK_BACKSPACE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_RETRO_DEVICE_KEYBOARD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %r8d
	movl	$1, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_input_keyboard_event
	movl	(%r14), %esi
	movl	(%rbx), %r8d
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_input_keyboard_event           ## TAILCALL
LBB0_10:
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_CMD_EVENT_MENU_TOGGLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_command_event                  ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_4
	.long	L0_0_set_9
	.end_data_region
                                        ## -- End function
	.comm	_RETROK_BACKSPACE,4,2           ## @RETROK_BACKSPACE
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ## @RETRO_DEVICE_KEYBOARD
	.comm	_CMD_EVENT_MENU_TOGGLE,4,2      ## @CMD_EVENT_MENU_TOGGLE
	.comm	_RARCH_CTL_SET_SHUTDOWN,4,2     ## @RARCH_CTL_SET_SHUTDOWN
	.no_dead_strip	_qnx_handle_navigator_event
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qnx_handle_navigator_event
_qnx_handle_navigator_event:            ; @qnx_handle_navigator_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	x19, x1
	str	xzr, [sp, #8]
	mov	x0, x1
	bl	_bps_event_get_code
	sub	w8, w0, #129
	cmp	w8, #8
	b.hi	LBB0_9
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_navigator_event_get_window_state
	orr	w8, w0, #0x2
	cmp	w8, #130
	b.eq	LBB0_4
	b	LBB0_9
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w0, #137
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	mov	w1, #-1
	bl	_bps_get_event
	ldr	x0, [sp, #8]
	bl	_bps_event_get_code
	cmp	w0, #129
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_navigator_event_get_window_state
	cmp	w0, #131
	b.ne	LBB0_4
	b	LBB0_9
LBB0_6:
Lloh2:
	adrp	x8, _RARCH_CTL_SET_SHUTDOWN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RARCH_CTL_SET_SHUTDOWN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_rarch_ctl
	b	LBB0_9
LBB0_7:
	mov	x0, x19
	bl	_navigator_event_get_syskey_key
	cmp	w0, #135
	b.ne	LBB0_9
; %bb.8:
Lloh5:
	adrp	x19, _RETROK_BACKSPACE@GOTPAGE
Lloh6:
	ldr	x19, [x19, _RETROK_BACKSPACE@GOTPAGEOFF]
	ldr	w1, [x19]
Lloh7:
	adrp	x20, _RETRO_DEVICE_KEYBOARD@GOTPAGE
Lloh8:
	ldr	x20, [x20, _RETRO_DEVICE_KEYBOARD@GOTPAGEOFF]
	ldr	w4, [x20]
	mov	w0, #1
	mov	w2, #0
	mov	w3, #0
	bl	_input_keyboard_event
	ldr	w1, [x19]
	ldr	w4, [x20]
	mov	w0, #0
	mov	w2, #0
	mov	w3, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_input_keyboard_event
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_10:
Lloh9:
	adrp	x8, _CMD_EVENT_MENU_TOGGLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CMD_EVENT_MENU_TOGGLE@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	mov	x1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_command_event
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_10-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_RETROK_BACKSPACE,4,2           ; @RETROK_BACKSPACE
	.comm	_RETRO_DEVICE_KEYBOARD,4,2      ; @RETRO_DEVICE_KEYBOARD
	.comm	_CMD_EVENT_MENU_TOGGLE,4,2      ; @CMD_EVENT_MENU_TOGGLE
	.comm	_RARCH_CTL_SET_SHUTDOWN,4,2     ; @RARCH_CTL_SET_SHUTDOWN
	.no_dead_strip	_qnx_handle_navigator_event
.subsections_via_symbols
