	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function IN_JoyMove
LCPI0_0:
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.long	0x80000000                      ## float -0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_IN_JoyMove
	.p2align	4, 0x90
_IN_JoyMove:                            ## @IN_JoyMove
	.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
	movq	_joy@GOTPCREL(%rip), %r12
	cmpl	$0, 72(%r12)
	je	LBB0_31
## %bb.1:
	leaq	8(%r12), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_Com_Memset
	movl	$48, 8(%r12)
	movq	_JOY_RETURNALL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 48(%r12)
	movl	68(%r12), %edi
	movq	%rbx, %rsi
	callq	_joyGetPosEx
	movq	_JOYERR_NOERROR@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_31
## %bb.2:
	movq	_in_debugJoystick@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movl	12(%r12), %r15d
	movq	16(%r12), %r14
	movl	32(%r12), %edi
	callq	_JoyToF
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	movl	44(%r12), %edi
	callq	_JoyToF
	movss	%xmm0, -52(%rbp)                ## 4-byte Spill
	movl	40(%r12), %edi
	callq	_JoyToF
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movl	36(%r12), %edi
	callq	_JoyToF
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movl	28(%r12), %edi
	callq	_JoyToI
	movl	%eax, %ebx
	movl	24(%r12), %edi
	callq	_JoyToI
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	-44(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_Com_Printf
LBB0_4:
	movl	12(%r12), %r14d
	cmpl	$0, 56(%r12)
	jle	LBB0_11
## %bb.5:
	xorl	%ebx, %ebx
	movq	_K_JOY1@GOTPCREL(%rip), %r13
	movq	_qtrue@GOTPCREL(%rip), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rax
	testl	%edx, %ecx
	je	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	_g_wv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_SE_KEY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%r13), %edx
	addl	%ebx, %edx
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	incl	%ebx
	cmpl	56(%r12), %ebx
	jge	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edx
	movl	%ebx, %ecx
	shll	%cl, %edx
	btl	%ebx, %r14d
	movl	(%r12), %ecx
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rax
	testl	%edx, %ecx
	jne	LBB0_10
	jmp	LBB0_9
LBB0_11:
	movl	%r14d, (%r12)
	cmpl	$0, 60(%r12)
	jle	LBB0_12
## %bb.13:
	xorl	%r13d, %r13d
	movq	_joy_threshold@GOTPCREL(%rip), %r15
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	32(%r12,%rbx,4), %edi
	callq	_JoyToF
	movq	(%r15), %rax
	movss	(%rax), %xmm1                   ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	xorps	LCPI0_0(%rip), %xmm2
	ucomiss	%xmm0, %xmm2
	jbe	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	btsl	%r13d, %r14d
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	ucomiss	%xmm1, %xmm0
	jbe	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	leal	1(%r13), %eax
	btsl	%eax, %r14d
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	cmpq	$2, %rbx
	ja	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	60(%r12), %rax
	addl	$2, %r13d
	cmpq	%rax, %rbx
	jl	LBB0_14
	jmp	LBB0_20
LBB0_12:
	xorl	%r14d, %r14d
LBB0_20:
	movq	_JOYCAPS_HASPOV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 64(%r12)
	je	LBB0_23
## %bb.21:
	movq	16(%r12), %rax
	movq	_JOY_POVCENTERED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_23
## %bb.22:
	movq	_JOY_POVFORWARD@GOTPCREL(%rip), %rcx
	movl	%r14d, %edx
	orl	$4096, %edx                     ## imm = 0x1000
	cmpq	(%rcx), %rax
	cmovnel	%r14d, %edx
	movq	_JOY_POVBACKWARD@GOTPCREL(%rip), %rcx
	movl	%edx, %esi
	orl	$8192, %esi                     ## imm = 0x2000
	cmpq	(%rcx), %rax
	cmovnel	%edx, %esi
	movq	_JOY_POVRIGHT@GOTPCREL(%rip), %rcx
	movl	%esi, %edx
	orl	$16384, %edx                    ## imm = 0x4000
	cmpq	(%rcx), %rax
	cmovnel	%esi, %edx
	movq	_JOY_POVLEFT@GOTPCREL(%rip), %rcx
	movl	%edx, %r14d
	orl	$32768, %r14d                   ## imm = 0x8000
	cmpq	(%rcx), %rax
	cmovnel	%edx, %r14d
LBB0_23:
	xorl	%ebx, %ebx
	movq	_joyDirectionKeys@GOTPCREL(%rip), %r13
	movq	_qtrue@GOTPCREL(%rip), %r15
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_26:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_qfalse@GOTPCREL(%rip), %rcx
	testl	%eax, %edx
	je	LBB0_28
LBB0_27:                                ##   in Loop: Header=BB0_24 Depth=1
	movq	_g_wv@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SE_KEY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edx
	movl	(%rcx), %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_Sys_QueEvent
LBB0_28:                                ##   in Loop: Header=BB0_24 Depth=1
	incq	%rbx
	cmpq	$16, %rbx
	je	LBB0_29
LBB0_24:                                ## =>This Inner Loop Header: Depth=1
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	btl	%ebx, %r14d
	movl	4(%r12), %edx
	jae	LBB0_26
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=1
	movq	%r15, %rcx
	testl	%eax, %edx
	jne	LBB0_28
	jmp	LBB0_27
LBB0_29:
	movl	%r14d, 4(%r12)
	cmpl	$6, 60(%r12)
	jl	LBB0_31
## %bb.30:
	movl	28(%r12), %edi
	callq	_JoyToI
	movl	%eax, %ebx
	movq	_in_joyBallScale@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	imull	(%rax), %ebx
	movl	24(%r12), %edi
	callq	_JoyToI
	movq	(%r14), %rcx
	imull	(%rcx), %eax
	movl	%ebx, %ecx
	orl	%eax, %ecx
	je	LBB0_31
## %bb.32:
	movq	_g_wv@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_SE_MOUSE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%ebx, %edx
	movl	%eax, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Sys_QueEvent                   ## TAILCALL
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_joy,80,3                       ## @joy
	.comm	_JOY_RETURNALL,4,2              ## @JOY_RETURNALL
	.comm	_JOYERR_NOERROR,8,3             ## @JOYERR_NOERROR
	.comm	_in_debugJoystick,8,3           ## @in_debugJoystick
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%8x %5i %5.2f %5.2f %5.2f %5.2f %6i %6i\n"

	.comm	_g_wv,4,2                       ## @g_wv
	.comm	_SE_KEY,4,2                     ## @SE_KEY
	.comm	_K_JOY1,4,2                     ## @K_JOY1
	.comm	_qtrue,4,2                      ## @qtrue
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_joy_threshold,8,3              ## @joy_threshold
	.comm	_JOYCAPS_HASPOV,4,2             ## @JOYCAPS_HASPOV
	.comm	_JOY_POVCENTERED,8,3            ## @JOY_POVCENTERED
	.comm	_JOY_POVFORWARD,8,3             ## @JOY_POVFORWARD
	.comm	_JOY_POVBACKWARD,8,3            ## @JOY_POVBACKWARD
	.comm	_JOY_POVRIGHT,8,3               ## @JOY_POVRIGHT
	.comm	_JOY_POVLEFT,8,3                ## @JOY_POVLEFT
	.comm	_joyDirectionKeys,8,3           ## @joyDirectionKeys
	.comm	_in_joyBallScale,8,3            ## @in_joyBallScale
	.comm	_SE_MOUSE,4,2                   ## @SE_MOUSE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_IN_JoyMove                     ; -- Begin function IN_JoyMove
	.p2align	2
_IN_JoyMove:                            ; @IN_JoyMove
	.cfi_startproc
; %bb.0:
	stp	d11, d10, [sp, #-128]!          ; 16-byte Folded Spill
	.cfi_def_cfa_offset 128
	stp	d9, d8, [sp, #16]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
Lloh0:
	adrp	x22, _joy@GOTPAGE
Lloh1:
	ldr	x22, [x22, _joy@GOTPAGEOFF]
	ldr	w8, [x22, #72]
	cbz	w8, LBB0_47
; %bb.1:
	add	x19, x22, #8
	mov	w20, #48
	mov	x0, x19
	mov	w1, #0
	mov	w2, #48
	bl	_Com_Memset
	str	w20, [x22, #8]
Lloh2:
	adrp	x8, _JOY_RETURNALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _JOY_RETURNALL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x22, #48]
	ldr	w0, [x22, #68]
	mov	x1, x19
	bl	_joyGetPosEx
Lloh5:
	adrp	x8, _JOYERR_NOERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _JOYERR_NOERROR@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_47
; %bb.2:
Lloh8:
	adrp	x8, _in_debugJoystick@GOTPAGE
Lloh9:
	ldr	x8, [x8, _in_debugJoystick@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	w19, [x22, #12]
	ldr	x20, [x22, #16]
	ldr	w0, [x22, #32]
	bl	_JoyToF
	fmov	s8, s0
	ldr	w0, [x22, #44]
	bl	_JoyToF
	fmov	s9, s0
	ldr	w0, [x22, #40]
	bl	_JoyToF
	fmov	s10, s0
	ldr	w0, [x22, #36]
	bl	_JoyToF
	fmov	s11, s0
	ldr	w0, [x22, #28]
	bl	_JoyToI
	mov	x21, x0
	ldr	w0, [x22, #24]
	bl	_JoyToI
	mov	x4, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	fmov	s0, s8
	fmov	s1, s9
	fmov	s2, s10
	fmov	s3, s11
	mov	x3, x21
	bl	_Com_Printf
LBB0_4:
	ldr	w21, [x22, #12]
	ldr	w8, [x22, #56]
Lloh13:
	adrp	x20, _g_wv@GOTPAGE
Lloh14:
	ldr	x20, [x20, _g_wv@GOTPAGEOFF]
Lloh15:
	adrp	x19, _SE_KEY@GOTPAGE
Lloh16:
	ldr	x19, [x19, _SE_KEY@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.5:
	mov	w23, #0
	mov	w24, #1
Lloh17:
	adrp	x25, _qfalse@GOTPAGE
Lloh18:
	ldr	x25, [x25, _qfalse@GOTPAGEOFF]
Lloh19:
	adrp	x26, _K_JOY1@GOTPAGE
Lloh20:
	ldr	x26, [x26, _K_JOY1@GOTPAGEOFF]
Lloh21:
	adrp	x27, _qtrue@GOTPAGE
Lloh22:
	ldr	x27, [x27, _qtrue@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x25
	cbz	w9, LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	w9, [x26]
	add	w2, w23, w9
	ldr	w3, [x8]
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w23, w23, #1
	ldr	w8, [x22, #56]
	cmp	w23, w8
	b.ge	LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w24, w23
	ldr	w9, [x22]
	and	w9, w9, w8
	tst	w8, w21
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cbnz	w9, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x27
	b	LBB0_7
LBB0_12:
	str	w21, [x22]
	ldr	w8, [x22, #60]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.13:
	ldr	w0, [x22, #32]
	bl	_JoyToF
Lloh23:
	adrp	x23, _joy_threshold@GOTPAGE
Lloh24:
	ldr	x23, [x23, _joy_threshold@GOTPAGEOFF]
	ldr	x8, [x23]
	ldr	s1, [x8]
	fneg	s2, s1
	fcmp	s0, s2
	b.pl	LBB0_16
; %bb.14:
	mov	w21, #1
	b	LBB0_19
LBB0_15:
	mov	w21, #0
	b	LBB0_34
LBB0_16:
	fcmp	s0, s1
	b.le	LBB0_18
; %bb.17:
	mov	w21, #2
	b	LBB0_19
LBB0_18:
	mov	w21, #0
LBB0_19:
	ldr	w8, [x22, #60]
	cmp	w8, #2
	b.lt	LBB0_34
; %bb.20:
	ldr	w0, [x22, #36]
	bl	_JoyToF
	ldr	x8, [x23]
	ldr	s1, [x8]
	fneg	s2, s1
	fcmp	s0, s2
	b.pl	LBB0_22
; %bb.21:
	orr	w21, w21, #0x4
	b	LBB0_24
LBB0_22:
	fcmp	s0, s1
	b.le	LBB0_24
; %bb.23:
	orr	w21, w21, #0x8
LBB0_24:
	ldr	w8, [x22, #60]
	cmp	w8, #3
	b.lt	LBB0_34
; %bb.25:
	ldr	w0, [x22, #40]
	bl	_JoyToF
	ldr	x8, [x23]
	ldr	s1, [x8]
	fneg	s2, s1
	fcmp	s0, s2
	b.pl	LBB0_27
; %bb.26:
	orr	w21, w21, #0x10
	b	LBB0_29
LBB0_27:
	fcmp	s0, s1
	b.le	LBB0_29
; %bb.28:
	orr	w21, w21, #0x20
LBB0_29:
	ldr	w8, [x22, #60]
	cmp	w8, #4
	b.lt	LBB0_34
; %bb.30:
	ldr	w0, [x22, #44]
	bl	_JoyToF
	ldr	x8, [x23]
	ldr	s1, [x8]
	fneg	s2, s1
	fcmp	s0, s2
	b.pl	LBB0_32
; %bb.31:
	orr	w21, w21, #0x40
	b	LBB0_34
LBB0_32:
	fcmp	s0, s1
	b.le	LBB0_34
; %bb.33:
	orr	w21, w21, #0x80
LBB0_34:
	ldr	w8, [x22, #64]
Lloh25:
	adrp	x9, _JOYCAPS_HASPOV@GOTPAGE
Lloh26:
	ldr	x9, [x9, _JOYCAPS_HASPOV@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_37
; %bb.35:
	ldr	x8, [x22, #16]
Lloh28:
	adrp	x9, _JOY_POVCENTERED@GOTPAGE
Lloh29:
	ldr	x9, [x9, _JOY_POVCENTERED@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_37
; %bb.36:
Lloh31:
	adrp	x9, _JOY_POVFORWARD@GOTPAGE
Lloh32:
	ldr	x9, [x9, _JOY_POVFORWARD@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	orr	w10, w21, #0x1000
	cmp	x8, x9
	csel	w9, w10, w21, eq
Lloh34:
	adrp	x10, _JOY_POVBACKWARD@GOTPAGE
Lloh35:
	ldr	x10, [x10, _JOY_POVBACKWARD@GOTPAGEOFF]
Lloh36:
	ldr	x10, [x10]
	orr	w11, w9, #0x2000
	cmp	x8, x10
	csel	w9, w11, w9, eq
Lloh37:
	adrp	x10, _JOY_POVRIGHT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _JOY_POVRIGHT@GOTPAGEOFF]
Lloh39:
	ldr	x10, [x10]
	orr	w11, w9, #0x4000
	cmp	x8, x10
	csel	w9, w11, w9, eq
Lloh40:
	adrp	x10, _JOY_POVLEFT@GOTPAGE
Lloh41:
	ldr	x10, [x10, _JOY_POVLEFT@GOTPAGEOFF]
Lloh42:
	ldr	x10, [x10]
	orr	w11, w9, #0x8000
	cmp	x8, x10
	csel	w21, w11, w9, eq
LBB0_37:
	mov	x23, #0
	mov	w24, #1
Lloh43:
	adrp	x25, _qfalse@GOTPAGE
Lloh44:
	ldr	x25, [x25, _qfalse@GOTPAGEOFF]
Lloh45:
	adrp	x26, _joyDirectionKeys@GOTPAGE
Lloh46:
	ldr	x26, [x26, _joyDirectionKeys@GOTPAGEOFF]
Lloh47:
	adrp	x27, _qtrue@GOTPAGE
Lloh48:
	ldr	x27, [x27, _qtrue@GOTPAGEOFF]
	b	LBB0_41
LBB0_38:                                ;   in Loop: Header=BB0_41 Depth=1
	mov	x8, x25
	cbz	w9, LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w0, [x20]
	ldr	w1, [x19]
	ldr	x9, [x26]
	ldr	w2, [x9, x23, lsl #2]
	ldr	w3, [x8]
	mov	w4, #0
	mov	x5, #0
	bl	_Sys_QueEvent
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	add	x23, x23, #1
	cmp	x23, #16
	b.eq	LBB0_44
LBB0_41:                                ; =>This Inner Loop Header: Depth=1
	lsl	w8, w24, w23
	ldr	w9, [x22, #4]
	and	w9, w9, w8
	tst	w8, w21
	b.eq	LBB0_38
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	cbnz	w9, LBB0_40
; %bb.43:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x8, x27
	b	LBB0_39
LBB0_44:
	str	w21, [x22, #4]
	ldr	w8, [x22, #60]
	cmp	w8, #6
	b.lt	LBB0_47
; %bb.45:
	ldr	w0, [x22, #28]
	bl	_JoyToI
Lloh49:
	adrp	x21, _in_joyBallScale@GOTPAGE
Lloh50:
	ldr	x21, [x21, _in_joyBallScale@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	w8, [x8]
	mul	w19, w8, w0
	ldr	w0, [x22, #24]
	bl	_JoyToI
	ldr	x8, [x21]
	ldr	w8, [x8]
	mul	w3, w8, w0
	orr	w8, w19, w3
	cbz	w8, LBB0_47
; %bb.46:
	ldr	w0, [x20]
Lloh51:
	adrp	x8, _SE_MOUSE@GOTPAGE
Lloh52:
	ldr	x8, [x8, _SE_MOUSE@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
	mov	x2, x19
	mov	w4, #0
	mov	x5, #0
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	b	_Sys_QueEvent
LBB0_47:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #16]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp], #128            ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.comm	_joy,80,3                       ; @joy
	.comm	_JOY_RETURNALL,4,2              ; @JOY_RETURNALL
	.comm	_JOYERR_NOERROR,8,3             ; @JOYERR_NOERROR
	.comm	_in_debugJoystick,8,3           ; @in_debugJoystick
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%8x %5i %5.2f %5.2f %5.2f %5.2f %6i %6i\n"

	.comm	_g_wv,4,2                       ; @g_wv
	.comm	_SE_KEY,4,2                     ; @SE_KEY
	.comm	_K_JOY1,4,2                     ; @K_JOY1
	.comm	_qtrue,4,2                      ; @qtrue
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_joy_threshold,8,3              ; @joy_threshold
	.comm	_JOYCAPS_HASPOV,4,2             ; @JOYCAPS_HASPOV
	.comm	_JOY_POVCENTERED,8,3            ; @JOY_POVCENTERED
	.comm	_JOY_POVFORWARD,8,3             ; @JOY_POVFORWARD
	.comm	_JOY_POVBACKWARD,8,3            ; @JOY_POVBACKWARD
	.comm	_JOY_POVRIGHT,8,3               ; @JOY_POVRIGHT
	.comm	_JOY_POVLEFT,8,3                ; @JOY_POVLEFT
	.comm	_joyDirectionKeys,8,3           ; @joyDirectionKeys
	.comm	_in_joyBallScale,8,3            ; @in_joyBallScale
	.comm	_SE_MOUSE,4,2                   ; @SE_MOUSE
.subsections_via_symbols
