	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qnx_input_state
_qnx_input_state:                       ## @qnx_input_state
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $r8d killed $r8d def $r8
	movl	%ecx, %r10d
	leal	-128(%r8), %ecx
	cmpl	$3, %ecx
	ja	LBB0_9
## %bb.1:
	movq	%rdx, %r13
	movq	%rdi, %r12
	movl	16(%rbp), %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_7:
	xorl	%ecx, %ecx
	cmpl	$131, %r8d
	sete	%cl
	movq	%r12, %rdi
	movl	%r9d, %esi
	movl	%eax, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qnx_pointer_input_state        ## TAILCALL
LBB0_6:
	movq	%r12, %rdi
	movl	%eax, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_qnx_keyboard_pressed           ## TAILCALL
LBB0_2:
	movl	%esi, %r14d
	movq	_RETRO_DEVICE_ID_JOYPAD_MASK@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_8
## %bb.3:
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_9
## %bb.4:
	movl	%r10d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movl	%r10d, -44(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	(%r13,%rax,8), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r10d, %edx
	movl	%r15d, %r8d
	callq	_qnx_is_pressed
	movl	-44(%rbp), %r10d                ## 4-byte Reload
	movl	$1, %edx
	movl	%r15d, %ecx
	shll	%cl, %edx
	testl	%eax, %eax
	cmovel	%eax, %edx
	movq	_RARCH_FIRST_CUSTOM_BIND@GOTPCREL(%rip), %rax
	orl	%edx, %ebx
	incl	%r15d
	cmpl	(%rax), %r15d
	jb	LBB0_5
	jmp	LBB0_10
LBB0_8:
	movl	%r10d, %ecx
	movq	(%r13,%rcx,8), %rcx
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r10d, %edx
	movl	%eax, %r8d
	callq	_qnx_is_pressed
	movl	$1, %ebx
	testl	%eax, %eax
	jne	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_6
	.long	L0_0_set_2
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ## @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ## @RARCH_FIRST_CUSTOM_BIND
	.no_dead_strip	_qnx_input_state
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qnx_input_state
_qnx_input_state:                       ; @qnx_input_state
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	w8, w4, #128
	cmp	w8, #3
	b.hi	LBB0_10
; %bb.1:
	mov	x20, x0
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:
	cmp	w4, #131
	cset	w3, eq
	mov	x0, x20
	mov	x1, x5
	mov	x2, x6
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_qnx_pointer_input_state
LBB0_3:
	mov	x0, x20
	mov	x1, x6
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_qnx_keyboard_pressed
LBB0_4:
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
Lloh2:
	adrp	x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RETRO_DEVICE_ID_JOYPAD_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w6
	b.ne	LBB0_8
; %bb.5:
Lloh5:
	adrp	x25, _RARCH_FIRST_CUSTOM_BIND@GOTPAGE
Lloh6:
	ldr	x25, [x25, _RARCH_FIRST_CUSTOM_BIND@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_10
; %bb.6:
	mov	w23, #0
	mov	w24, #0
	mov	w26, #1
	mov	w27, w19
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x3, [x22, x27, lsl #3]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x4, x24
	bl	_qnx_is_pressed
	lsl	w8, w26, w24
	cmp	w0, #0
	csel	w8, wzr, w8, eq
	orr	w23, w8, w23
	add	w24, w24, #1
	ldr	w8, [x25]
	cmp	w24, w8
	b.lo	LBB0_7
	b	LBB0_11
LBB0_8:
	ldr	x3, [x22, w19, uxtw #3]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	mov	x4, x6
	bl	_qnx_is_pressed
	cbz	w0, LBB0_10
; %bb.9:
	mov	w23, #1
	b	LBB0_11
LBB0_10:
	mov	w23, #0
LBB0_11:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
                                        ; -- End function
	.comm	_RETRO_DEVICE_ID_JOYPAD_MASK,4,2 ; @RETRO_DEVICE_ID_JOYPAD_MASK
	.comm	_RARCH_FIRST_CUSTOM_BIND,4,2    ; @RARCH_FIRST_CUSTOM_BIND
	.no_dead_strip	_qnx_input_state
.subsections_via_symbols
