	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qnx_joypad_axis
_qnx_joypad_axis:                       ## @qnx_joypad_axis
	.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, %r13
	movl	%edi, %r15d
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_input_driver_get_data
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movq	%rax, %r12
	movq	_AXIS_NONE@GOTPCREL(%rip), %rax
	cmpq	%r13, (%rax)
	je	LBB0_17
## %bb.2:
	movq	_DEFAULT_MAX_PADS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jbe	LBB0_17
## %bb.3:
	movq	%r13, %rdi
	callq	_AXIS_NEG_GET
	movl	%eax, %r14d
	cmpl	$3, %eax
	jg	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_AXIS_NEG_GET
	jmp	LBB0_7
LBB0_5:
	movq	%r13, %rdi
	callq	_AXIS_POS_GET
	xorl	%ecx, %ecx
	movl	$0, %edx
	cmpl	$3, %eax
	jg	LBB0_16
## %bb.6:
	movq	%r13, %rdi
	callq	_AXIS_POS_GET
LBB0_7:
	cmpl	$4, %r14d
	setge	%cl
	cmpl	$3, %eax
	ja	LBB0_8
## %bb.9:
	movq	(%r12), %rdx
	movl	%r15d, %esi
	movl	%eax, %eax
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rax,4), %rax
	addq	%rdi, %rax
	jmpq	*%rax
LBB0_10:
	movq	(%rdx,%rsi,4), %rax
	jmp	LBB0_15
LBB0_8:
	xorl	%edx, %edx
	jmp	LBB0_16
LBB0_11:
	movq	(%rdx,%rsi,4), %rax
	jmp	LBB0_14
LBB0_12:
	movq	8(%rdx,%rsi,4), %rax
	jmp	LBB0_15
LBB0_13:
	movq	8(%rdx,%rsi,4), %rax
LBB0_14:
	addq	$4, %rax
LBB0_15:
	movl	(%rax), %edx
LBB0_16:
	xorl	%ebx, %ebx
	testl	%edx, %edx
	movl	%edx, %eax
	cmovsl	%ebx, %eax
	testb	%cl, %cl
	cmovel	%edx, %eax
	testl	%edx, %edx
	cmovlel	%eax, %ebx
	cmpl	$4, %r14d
	cmovgel	%eax, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$8, %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_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.long	L0_0_set_13
	.end_data_region
                                        ## -- End function
	.comm	_AXIS_NONE,8,3                  ## @AXIS_NONE
	.comm	_DEFAULT_MAX_PADS,4,2           ## @DEFAULT_MAX_PADS
	.no_dead_strip	_qnx_joypad_axis
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qnx_joypad_axis
_qnx_joypad_axis:                       ; @qnx_joypad_axis
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x22, x1
	mov	x20, x0
	bl	_input_driver_get_data
	mov	x21, x0
	mov	w0, #0
	cbz	x21, LBB0_16
; %bb.1:
Lloh0:
	adrp	x8, _AXIS_NONE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AXIS_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _DEFAULT_MAX_PADS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DEFAULT_MAX_PADS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	x8, x22
	ccmp	w9, w20, #0, ne
	b.ls	LBB0_16
; %bb.2:
	mov	x0, x22
	bl	_AXIS_NEG_GET
	mov	x19, x0
	cmp	w0, #3
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x22
	bl	_AXIS_NEG_GET
	b	LBB0_6
LBB0_4:
	mov	x0, x22
	bl	_AXIS_POS_GET
	cmp	w0, #3
	b.gt	LBB0_9
; %bb.5:
	mov	x0, x22
	bl	_AXIS_POS_GET
LBB0_6:
	cmp	w19, #3
	cset	w8, gt
	cmp	w0, #3
	b.hi	LBB0_17
; %bb.7:
	ldr	x9, [x21]
	add	x9, x9, w20, uxtw #2
	mov	w10, w0
Lloh6:
	adrp	x11, lJTI0_0@PAGE
Lloh7:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x12, LBB0_8
	ldrb	w13, [x11, x10]
	add	x12, x12, x13, lsl #2
	br	x12
LBB0_8:
	ldr	x9, [x9]
	b	LBB0_14
LBB0_9:
	mov	w8, #0
	mov	w9, #0
	b	LBB0_15
LBB0_10:
	ldr	x9, [x9]
	b	LBB0_13
LBB0_11:
	ldr	x9, [x9, #8]
	b	LBB0_14
LBB0_12:
	ldr	x9, [x9, #8]
LBB0_13:
	add	x9, x9, #4
LBB0_14:
	ldr	w9, [x9]
LBB0_15:
	cmp	w19, #4
	cset	w10, lt
	cmp	w9, #0
	cset	w11, gt
	and	w10, w10, w11
	cset	w11, lt
	and	w8, w8, w11
	orr	w8, w10, w8
	cmp	w8, #0
	csel	w0, wzr, w9, ne
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_17:
	mov	w9, #0
	b	LBB0_15
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_8-LBB0_8)>>2
	.byte	(LBB0_10-LBB0_8)>>2
	.byte	(LBB0_11-LBB0_8)>>2
	.byte	(LBB0_12-LBB0_8)>>2
                                        ; -- End function
	.comm	_AXIS_NONE,8,3                  ; @AXIS_NONE
	.comm	_DEFAULT_MAX_PADS,4,2           ; @DEFAULT_MAX_PADS
	.no_dead_strip	_qnx_joypad_axis
.subsections_via_symbols
