	.file	"extr_sdl_input.c_IN_JoyMove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	IN_JoyMove, @function
IN_JoyMove:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	cmp	QWORD PTR gamepad[rip], 0
	mov	DWORD PTR 28[rsp], 0
	jne	.L87
	mov	eax, DWORD PTR stick[rip]
	test	eax, eax
	jne	.L88
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L89
	add	rsp, 56
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L88:
	.cfi_restore_state
	xor	eax, eax
	call	SDL_JoystickUpdate@PLT
	mov	edi, DWORD PTR stick[rip]
	call	SDL_JoystickNumBalls@PLT
	mov	ebp, eax
	test	eax, eax
	jle	.L5
	xor	r13d, r13d
	xor	r12d, r12d
	lea	r15, 36[rsp]
	xor	ebx, ebx
	lea	r14, 32[rsp]
	.p2align 4,,10
	.p2align 3
.L4:
	mov	edi, DWORD PTR stick[rip]
	mov	esi, ebx
	mov	rcx, r15
	mov	rdx, r14
	add	ebx, 1
	mov	DWORD PTR 32[rsp], 0
	mov	DWORD PTR 36[rsp], 0
	call	SDL_JoystickGetBall@PLT
	add	r12d, DWORD PTR 32[rsp]
	add	r13d, DWORD PTR 36[rsp]
	cmp	ebp, ebx
	jne	.L4
	mov	eax, r12d
	or	eax, r13d
	jne	.L90
.L5:
	mov	edi, DWORD PTR stick[rip]
	call	SDL_JoystickNumButtons@PLT
	mov	r13d, eax
	test	eax, eax
	jg	.L9
.L13:
	mov	edi, DWORD PTR stick[rip]
	xor	r14d, r14d
	call	SDL_JoystickNumHats@PLT
	test	eax, eax
	jle	.L11
	cmp	eax, 4
	mov	r12d, 4
	lea	rbp, 28[rsp]
	cmovle	r12d, eax
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L16:
	mov	edi, DWORD PTR stick[rip]
	mov	esi, ebx
	call	SDL_JoystickGetHat@PLT
	mov	DWORD PTR 0[rbp+rbx*4], eax
	add	rbx, 1
	cmp	r12d, ebx
	jg	.L16
	mov	r14d, DWORD PTR 28[rsp]
.L11:
	xor	r15d, r15d
	cmp	DWORD PTR stick_state[rip+8], r14d
	lea	rbp, 28[rsp]
	lea	r13, stick_state[rip+8]
	lea	r12, .L32[rip]
	lea	rbx, .L23[rip]
	je	.L40
.L17:
	mov	r10d, DWORD PTR 0[rbp+r15]
	mov	eax, DWORD PTR 0[r13+r15]
	cmp	r10d, eax
	je	.L20
	add	eax, -128
	cmp	eax, 7
	ja	.L21
	movsx	rax, DWORD PTR [rbx+rax*4]
	add	rax, rbx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L23:
	.long	.L30-.L23
	.long	.L29-.L23
	.long	.L28-.L23
	.long	.L27-.L23
	.long	.L26-.L23
	.long	.L25-.L23
	.long	.L24-.L23
	.long	.L22-.L23
	.text
	.p2align 4,,10
	.p2align 3
.L39:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	edx, DWORD PTR [rax+r15*4]
	.p2align 4,,10
	.p2align 3
.L82:
	mov	ecx, DWORD PTR qtrue[rip]
	mov	esi, DWORD PTR SE_KEY[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR in_eventTime[rip]
	call	Com_QueueEvent@PLT
.L20:
	add	r15, 4
	cmp	r15, 16
	jne	.L17
.L40:
	mov	edi, DWORD PTR stick[rip]
	mov	DWORD PTR stick_state[rip+8], r14d
	call	SDL_JoystickNumAxes@PLT
	test	eax, eax
	jle	.L19
	mov	rdx, QWORD PTR in_joystickUseAnalog[rip]
	cmp	QWORD PTR [rdx], 0
	je	.L42
	cmp	DWORD PTR MAX_JOYSTICK_AXIS[rip], eax
	cmovle	eax, DWORD PTR MAX_JOYSTICK_AXIS[rip]
	test	eax, eax
	jle	.L19
	movss	xmm6, DWORD PTR .LC0[rip]
	lea	r13d, -1[rax]
	xor	ebp, ebp
	xor	r12d, r12d
	movss	DWORD PTR [rsp], xmm6
	jmp	.L46
	.p2align 4,,10
	.p2align 3
.L61:
	mov	rbp, rax
.L46:
	mov	edi, DWORD PTR stick[rip]
	mov	esi, ebp
	call	SDL_JoystickGetAxis@PLT
	pxor	xmm0, xmm0
	mov	edx, eax
	mov	ebx, eax
	sar	edx, 31
	mov	eax, edx
	xor	eax, ebx
	sub	eax, edx
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR in_joystickThreshold[rip]
	divss	xmm0, DWORD PTR [rsp]
	movss	xmm1, DWORD PTR [rax]
	mov	rax, QWORD PTR stick_state[rip+16]
	ucomiss	xmm1, xmm0
	cmova	ebx, r12d
	cmp	DWORD PTR [rax+rbp*4], ebx
	je	.L45
	mov	esi, DWORD PTR SE_JOYSTICK_AXIS[rip]
	mov	edi, DWORD PTR in_eventTime[rip]
	mov	ecx, ebx
	mov	edx, ebp
	xor	r9d, r9d
	xor	r8d, r8d
	call	Com_QueueEvent@PLT
	mov	rax, QWORD PTR stick_state[rip+16]
	mov	DWORD PTR [rax+rbp*4], ebx
.L45:
	lea	rax, 1[rbp]
	cmp	rbp, r13
	jne	.L61
.L19:
	xor	ebp, ebp
.L41:
	mov	eax, DWORD PTR stick_state[rip+24]
	cmp	eax, ebp
	je	.L52
	xor	ebx, ebx
	mov	r12d, 1
	jmp	.L55
	.p2align 4,,10
	.p2align 3
.L92:
	test	eax, eax
	je	.L91
.L54:
	add	rbx, 1
	cmp	rbx, 16
	je	.L52
.L93:
	mov	eax, DWORD PTR stick_state[rip+24]
.L55:
	mov	edx, r12d
	mov	ecx, ebx
	sal	edx, cl
	and	eax, edx
	test	edx, ebp
	jne	.L92
	test	eax, eax
	je	.L54
	mov	rax, QWORD PTR joy_keys[rip]
	mov	ecx, DWORD PTR qfalse[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, DWORD PTR SE_KEY[rip]
	mov	edi, DWORD PTR in_eventTime[rip]
	mov	edx, DWORD PTR [rax+rbx*4]
	add	rbx, 1
	call	Com_QueueEvent@PLT
	cmp	rbx, 16
	jne	.L93
	.p2align 4,,10
	.p2align 3
.L52:
	mov	DWORD PTR stick_state[rip+24], ebp
	jmp	.L1
.L25:
	lea	r11, 0[0+r15*4]
	mov	rax, QWORD PTR hat_keys[rip]
	mov	DWORD PTR 12[rsp], r10d
	mov	QWORD PTR [rsp], r11
	mov	edx, DWORD PTR 8[rax+r11]
.L80:
	mov	ecx, DWORD PTR qfalse[rip]
	mov	esi, DWORD PTR SE_KEY[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR in_eventTime[rip]
	call	Com_QueueEvent@PLT
	mov	rax, QWORD PTR hat_keys[rip]
	mov	r11, QWORD PTR [rsp]
	mov	edx, DWORD PTR 12[rax+r11]
.L81:
	mov	ecx, DWORD PTR qfalse[rip]
	mov	esi, DWORD PTR SE_KEY[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR in_eventTime[rip]
	call	Com_QueueEvent@PLT
	mov	r10d, DWORD PTR 12[rsp]
.L21:
	add	r10d, -128
	cmp	r10d, 7
	ja	.L20
	movsx	rax, DWORD PTR [r12+r10*4]
	add	rax, r12
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L32:
	.long	.L39-.L32
	.long	.L38-.L32
	.long	.L37-.L32
	.long	.L36-.L32
	.long	.L35-.L32
	.long	.L34-.L32
	.long	.L33-.L32
	.long	.L31-.L32
	.text
	.p2align 4,,10
	.p2align 3
.L91:
	mov	rax, QWORD PTR joy_keys[rip]
	mov	ecx, DWORD PTR qtrue[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	esi, DWORD PTR SE_KEY[rip]
	mov	edi, DWORD PTR in_eventTime[rip]
	mov	edx, DWORD PTR [rax+rbx*4]
	call	Com_QueueEvent@PLT
	jmp	.L54
	.p2align 4,,10
	.p2align 3
.L87:
	call	IN_GamepadMove@PLT
	jmp	.L1
.L24:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	DWORD PTR [rsp], r10d
	mov	edx, DWORD PTR 12[rax+r15*4]
.L79:
	mov	ecx, DWORD PTR qfalse[rip]
	mov	esi, DWORD PTR SE_KEY[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR in_eventTime[rip]
	call	Com_QueueEvent@PLT
	mov	r10d, DWORD PTR [rsp]
	jmp	.L21
.L26:
	mov	rax, QWORD PTR hat_keys[rip]
	lea	r11, 0[0+r15*4]
	mov	DWORD PTR 12[rsp], r10d
	mov	QWORD PTR [rsp], r11
	mov	edx, DWORD PTR [rax+r15*4]
	jmp	.L80
.L27:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	DWORD PTR [rsp], r10d
	mov	edx, DWORD PTR 4[rax+r15*4]
	jmp	.L79
.L28:
	lea	r11, 0[0+r15*4]
	mov	rax, QWORD PTR hat_keys[rip]
	mov	DWORD PTR 12[rsp], r10d
	mov	QWORD PTR [rsp], r11
	mov	edx, DWORD PTR 8[rax+r11]
.L84:
	mov	ecx, DWORD PTR qfalse[rip]
	mov	esi, DWORD PTR SE_KEY[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR in_eventTime[rip]
	call	Com_QueueEvent@PLT
	mov	rax, QWORD PTR hat_keys[rip]
	mov	r11, QWORD PTR [rsp]
	mov	edx, DWORD PTR 4[rax+r11]
	jmp	.L81
.L29:
	mov	rax, QWORD PTR hat_keys[rip]
	lea	r11, 0[0+r15*4]
	mov	DWORD PTR 12[rsp], r10d
	mov	QWORD PTR [rsp], r11
	mov	edx, DWORD PTR [rax+r15*4]
	jmp	.L84
.L30:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	DWORD PTR [rsp], r10d
	mov	edx, DWORD PTR [rax+r15*4]
	jmp	.L79
.L22:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	DWORD PTR [rsp], r10d
	mov	edx, DWORD PTR 8[rax+r15*4]
	jmp	.L79
	.p2align 4,,10
	.p2align 3
.L90:
	mov	edx, r12d
	mov	esi, DWORD PTR SE_MOUSE[rip]
	mov	edi, DWORD PTR in_eventTime[rip]
	sar	edx, 31
	mov	eax, edx
	xor	eax, r12d
	sub	eax, edx
	lea	edx, [r12+r12]
	cmp	eax, 1
	cmovg	r12d, edx
	mov	edx, r13d
	sar	edx, 31
	mov	eax, edx
	xor	eax, r13d
	sub	eax, edx
	lea	edx, [r13+r13]
	cmp	eax, 1
	cmovg	r13d, edx
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edx, r12d
	mov	ecx, r13d
	call	Com_QueueEvent@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L42:
	cmp	eax, 16
	movss	xmm5, DWORD PTR .LC0[rip]
	mov	r12d, 16
	mov	r13d, 1
	cmovle	r12d, eax
	xor	ebx, ebx
	xor	ebp, ebp
	movss	DWORD PTR [rsp], xmm5
	jmp	.L51
	.p2align 4,,10
	.p2align 3
.L94:
	lea	ecx, [rbx+rbx]
	mov	eax, r13d
	sal	eax, cl
	or	ebp, eax
.L49:
	add	ebx, 1
	cmp	r12d, ebx
	je	.L41
.L51:
	mov	edi, DWORD PTR stick[rip]
	mov	esi, ebx
	call	SDL_JoystickGetAxis@PLT
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR in_joystickThreshold[rip]
	divss	xmm0, DWORD PTR [rsp]
	movss	xmm1, DWORD PTR [rax]
	movaps	xmm2, xmm1
	xorps	xmm2, XMMWORD PTR .LC1[rip]
	comiss	xmm2, xmm0
	ja	.L94
	comiss	xmm0, xmm1
	jbe	.L49
	lea	ecx, 1[rbx+rbx]
	mov	eax, r13d
	sal	eax, cl
	or	ebp, eax
	jmp	.L49
	.p2align 4,,10
	.p2align 3
.L31:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	edx, DWORD PTR 8[rax+r15*4]
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L33:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	edx, DWORD PTR 12[rax+r15*4]
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L34:
	lea	r10, 0[0+r15*4]
	mov	rax, QWORD PTR hat_keys[rip]
	mov	QWORD PTR [rsp], r10
	mov	edx, DWORD PTR 8[rax+r10]
.L83:
	mov	ecx, DWORD PTR qtrue[rip]
	mov	esi, DWORD PTR SE_KEY[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR in_eventTime[rip]
	call	Com_QueueEvent@PLT
	mov	rax, QWORD PTR hat_keys[rip]
	mov	r10, QWORD PTR [rsp]
	mov	edx, DWORD PTR 12[rax+r10]
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L35:
	mov	rax, QWORD PTR hat_keys[rip]
	lea	r10, 0[0+r15*4]
	mov	QWORD PTR [rsp], r10
	mov	edx, DWORD PTR [rax+r15*4]
	jmp	.L83
	.p2align 4,,10
	.p2align 3
.L36:
	mov	rax, QWORD PTR hat_keys[rip]
	mov	edx, DWORD PTR 4[rax+r15*4]
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L37:
	lea	r10, 0[0+r15*4]
	mov	rax, QWORD PTR hat_keys[rip]
	mov	QWORD PTR [rsp], r10
	mov	edx, DWORD PTR 8[rax+r10]
.L85:
	mov	ecx, DWORD PTR qtrue[rip]
	mov	esi, DWORD PTR SE_KEY[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	edi, DWORD PTR in_eventTime[rip]
	call	Com_QueueEvent@PLT
	mov	rax, QWORD PTR hat_keys[rip]
	mov	r10, QWORD PTR [rsp]
	mov	edx, DWORD PTR 4[rax+r10]
	jmp	.L82
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rax, QWORD PTR hat_keys[rip]
	lea	r10, 0[0+r15*4]
	mov	QWORD PTR [rsp], r10
	mov	edx, DWORD PTR [rax+r15*4]
	jmp	.L85
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, QWORD PTR stick_state[rip]
	call	ARRAY_LEN@PLT
	cmp	eax, r13d
	jl	.L95
.L12:
	xor	ebx, ebx
	lea	r12, stick_state[rip]
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR stick[rip]
	mov	esi, ebx
	xor	ebp, ebp
	call	SDL_JoystickGetButton@PLT
	test	rax, rax
	mov	rax, QWORD PTR [r12]
	setne	bpl
	cmp	DWORD PTR [rax+rbx*4], ebp
	je	.L14
	mov	edx, DWORD PTR K_JOY1[rip]
	xor	r9d, r9d
	xor	r8d, r8d
	mov	ecx, ebp
	mov	esi, DWORD PTR SE_KEY[rip]
	mov	edi, DWORD PTR in_eventTime[rip]
	add	edx, ebx
	call	Com_QueueEvent@PLT
	mov	rax, QWORD PTR [r12]
	mov	DWORD PTR [rax+rbx*4], ebp
.L14:
	add	rbx, 1
	cmp	r13d, ebx
	jg	.L15
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L95:
	mov	rdi, QWORD PTR stick_state[rip]
	call	ARRAY_LEN@PLT
	mov	r13d, eax
	test	eax, eax
	jg	.L12
	jmp	.L13
.L89:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	IN_JoyMove, .-IN_JoyMove
	.comm	stick_state,32,32
	.comm	stick,4,4
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	joy_keys,8,8
	.comm	in_joystickUseAnalog,8,8
	.comm	in_joystickThreshold,8,8
	.comm	in_eventTime,4,4
	.comm	hat_keys,8,8
	.comm	gamepad,8,8
	.comm	SE_MOUSE,4,4
	.comm	SE_KEY,4,4
	.comm	SE_JOYSTICK_AXIS,4,4
	.comm	MAX_JOYSTICK_AXIS,4,4
	.comm	K_JOY1,4,4
	.section	.rodata.cst4,"aM",@progbits,4
	.align 4
.LC0:
	.long	1191181824
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC1:
	.long	2147483648
	.long	0
	.long	0
	.long	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_sdl_input.c_IN_JoyMove.c"
	.text
	.global	__aeabi_i2f
	.global	__aeabi_fdiv
	.global	__aeabi_fcmpgt
	.global	__aeabi_fcmplt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	IN_JoyMove, %function
IN_JoyMove:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, .L101
	ldr	r1, .L101+4
	ldr	r4, [r2]
	sub	sp, sp, #36
	cmp	r4, r3
	ldr	r1, [r1]
	str	r1, [sp, #28]
	mov	r1,#0
	str	r3, [sp, #16]
	bne	.L91
	ldr	r9, .L101+8
	ldr	r3, [r9]
	cmp	r3, #0
	bne	.L92
.L1:
	ldr	r3, .L101+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L93
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L92:
	bl	SDL_JoystickUpdate
	ldr	r0, [r9]
	bl	SDL_JoystickNumBalls
	subs	r10, r0, #0
	ble	.L5
	mov	r7, r4
	mov	r6, r4
	mov	r5, r4
	mov	r8, r4
.L4:
	mov	r1, r5
	add	r3, sp, #24
	add	r2, sp, #20
	ldr	r0, [r9]
	str	r8, [sp, #20]
	str	r8, [sp, #24]
	add	r5, r5, #1
	bl	SDL_JoystickGetBall
	ldr	r2, [sp, #20]
	ldr	r3, [sp, #24]
	cmp	r10, r5
	add	r6, r6, r2
	add	r7, r7, r3
	bne	.L4
	orrs	r3, r6, r7
	bne	.L94
.L5:
	ldr	r0, [r9]
	bl	SDL_JoystickNumButtons
	subs	r6, r0, #0
	ldr	r8, .L101+12
	bgt	.L9
.L13:
	ldr	r0, [r9]
	bl	SDL_JoystickNumHats
	cmp	r0, #0
	movle	r3, #0
	strle	r3, [sp, #8]
	ble	.L11
	cmp	r0, #4
	movlt	r6, r0
	movge	r6, #4
	mov	r5, #0
	add	r7, sp, #16
.L16:
	mov	r1, r5
	ldr	r0, [r9]
	bl	SDL_JoystickGetHat
	add	r5, r5, #1
	cmp	r6, r5
	str	r0, [r7], #4
	bne	.L16
	ldr	r3, [sp, #16]
	str	r3, [sp, #8]
.L11:
	ldr	r3, [r8, #4]
	ldr	r2, [sp, #8]
	cmp	r3, r2
	beq	.L41
	mov	r5, #0
	mov	r7, r5
	ldr	r6, .L101+16
	ldr	fp, .L101+20
	add	r10, sp, #16
	str	r4, [sp, #12]
.L40:
	ldr	r4, [r10], #4
	ldr	r3, [r6], #4
	cmp	r4, r3
	beq	.L20
	sub	r3, r3, #128
	cmp	r3, #7
	ldrls	pc, [pc, r3, asl #2]
	b	.L21
.L23:
	.word	.L30
	.word	.L29
	.word	.L28
	.word	.L27
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L22
.L38:
	ldr	r2, [fp]
	ldr	r4, .L101+24
	ldr	r2, [r2, r5, lsl #4]
	ldr	r3, [r4]
.L89:
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r1, [r1]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	ldr	r3, [fp]
	lsl	r2, r5, #4
	add	r3, r3, r2
	ldr	r2, [r3, #4]
.L87:
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r3, [r4]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	Com_QueueEvent
.L20:
	add	r5, r5, #1
	cmp	r5, #4
	bne	.L40
	ldr	r4, [sp, #12]
.L41:
	ldr	r3, [sp, #8]
	ldr	r0, [r9]
	str	r3, [r8, #4]
	bl	SDL_JoystickNumAxes
	cmp	r0, #0
	ble	.L19
	ldr	r3, .L101+36
	ldr	r3, [r3]
	ldr	r10, [r3]
	cmp	r10, #0
	beq	.L43
	ldr	r3, .L101+40
	ldr	r6, [r3]
	cmp	r0, r6
	movlt	r6, r0
	cmp	r6, #0
	ble	.L19
	mov	fp, #0
	ldr	r7, .L101+44
	ldr	r10, .L101+48
	str	r4, [sp, #8]
.L47:
	mov	r1, fp
	ldr	r0, [r9]
	bl	SDL_JoystickGetAxis
	mov	r5, r0
	eor	r0, r0, r0, asr #31
	sub	r0, r0, r5, asr #31
	bl	__aeabi_i2f
	mov	r1, r10
	bl	__aeabi_fdiv
	ldr	r4, [r7]
	mov	r1, r0
	ldr	r0, [r4]	@ float
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	movne	r5, #0
	ldr	r3, [r8, #8]
	ldr	r3, [r3, fp, lsl #2]
	cmp	r3, r5
	beq	.L46
	mov	r2, #0
	ldr	r1, .L101+52
	ldr	r0, .L101+32
	str	r2, [sp, #4]
	str	r2, [sp]
	mov	r3, r5
	mov	r2, fp
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	ldr	r3, [r8, #8]
	str	r5, [r3, fp, lsl #2]
.L46:
	add	fp, fp, #1
	cmp	r6, fp
	bne	.L47
	ldr	r4, [sp, #8]
.L19:
	mov	r5, #0
.L42:
	ldr	r3, [r8, #12]
	cmp	r3, r5
	beq	.L53
	mov	r6, #1
	mov	r0, r3
	ldr	fp, .L101+56
	ldr	r9, .L101+60
	ldr	r10, .L101+28
	ldr	r7, .L101+32
	b	.L56
.L96:
	cmp	r0, #0
	beq	.L95
.L55:
	add	r4, r4, #1
	cmp	r4, #16
	beq	.L53
.L97:
	ldr	r0, [r8, #12]
.L56:
	lsl	r3, r6, r4
	ands	ip, r3, r5
	and	r0, r0, r3
	bne	.L96
	cmp	r0, #0
	beq	.L55
	ldr	r2, [r9]
	ldr	r3, [fp]
	ldr	r2, [r2, r4, lsl #2]
	ldr	r1, [r10]
	str	ip, [sp, #4]
	str	ip, [sp]
	ldr	r0, [r7]
	add	r4, r4, #1
	bl	Com_QueueEvent
	cmp	r4, #16
	bne	.L97
.L53:
	str	r5, [r8, #12]
	b	.L1
.L25:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #8]
.L83:
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r1, [r1]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	ldr	r3, [fp]
	lsl	r2, r5, #4
	add	r3, r3, r2
	ldr	r2, [r3, #12]
.L84:
	ldr	r3, .L101+56
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r3, [r3]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r1, [r1]
	ldr	r0, [r0]
	bl	Com_QueueEvent
.L21:
	sub	r4, r4, #128
	cmp	r4, #7
	ldrls	pc, [pc, r4, asl #2]
	b	.L20
.L32:
	.word	.L39
	.word	.L38
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L34
	.word	.L33
	.word	.L31
.L95:
	ldr	r2, [r9]
	ldr	r3, .L101+24
	ldr	r2, [r2, r4, lsl #2]
	ldr	r3, [r3]
	ldr	r1, [r10]
	str	r0, [sp, #4]
	str	r0, [sp]
	ldr	r0, [r7]
	bl	Com_QueueEvent
	b	.L55
.L91:
	bl	IN_GamepadMove
	b	.L1
.L22:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #8]
.L82:
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r1, [r1]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	b	.L21
.L24:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #12]
	b	.L82
.L26:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	ldr	r2, [r2, r5, lsl #4]
	ldr	r3, [r3]
	b	.L83
.L27:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #4]
	b	.L82
.L28:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #8]
.L88:
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r1, [r1]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	ldr	r3, [fp]
	lsl	r2, r5, #4
	add	r3, r3, r2
	ldr	r2, [r3, #4]
	b	.L84
.L29:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	ldr	r2, [r2, r5, lsl #4]
	ldr	r3, [r3]
	b	.L88
.L30:
	ldr	r2, [fp]
	ldr	r3, .L101+56
	ldr	r2, [r2, r5, lsl #4]
	ldr	r3, [r3]
	b	.L82
.L94:
	mov	r1, #0
	eor	r3, r6, r6, asr #31
	sub	r3, r3, r6, asr #31
	cmp	r3, #1
	eor	r3, r7, r7, asr #31
	sub	r3, r3, r7, asr #31
	lslgt	r6, r6, #1
	ldr	ip, .L101+64
	cmp	r3, #1
	ldr	r0, .L101+32
	str	r1, [sp, #4]
	str	r1, [sp]
	lslgt	r7, r7, #1
	mov	r3, r7
	mov	r2, r6
	ldr	r1, [ip]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	b	.L5
.L43:
	cmp	r0, #16
	movlt	r3, r0
	movge	r3, #16
	mov	r5, r10
	mov	fp, r3
	ldr	r7, .L101+44
	str	r4, [sp, #8]
	b	.L52
.L99:
	mov	r2, #1
	lsl	r3, r10, #1
	add	r10, r10, #1
	cmp	fp, r10
	orr	r5, r5, r2, lsl r3
	beq	.L98
.L52:
	mov	r1, r10
	ldr	r0, [r9]
	bl	SDL_JoystickGetAxis
	bl	__aeabi_i2f
	ldr	r1, .L101+48
	bl	__aeabi_fdiv
	ldr	r3, [r7]
	mov	r1, r0
	ldr	r4, [r3]	@ float
	mov	r6, r0
	add	r0, r4, #-2147483648
	bl	__aeabi_fcmpgt
	cmp	r0, #0
	bne	.L99
	mov	r1, r6
	mov	r0, r4
	bl	__aeabi_fcmplt
	cmp	r0, #0
	movne	r2, #1
	lslne	r3, r10, #1
	addne	r3, r3, #1
	add	r10, r10, #1
	orrne	r5, r5, r2, lsl r3
	cmp	fp, r10
	bne	.L52
.L98:
	ldr	r4, [sp, #8]
	b	.L42
.L39:
	ldr	r2, [fp]
	ldr	r3, .L101+24
	ldr	r2, [r2, r5, lsl #4]
	ldr	r3, [r3]
.L85:
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r1, [r1]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	b	.L20
.L31:
	ldr	r2, [fp]
	ldr	r3, .L101+24
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #8]
	b	.L85
.L33:
	ldr	r2, [fp]
	ldr	r3, .L101+24
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #12]
	b	.L85
.L34:
	ldr	r2, [fp]
	ldr	r4, .L101+24
	add	r2, r2, r5, lsl #4
	ldr	r3, [r4]
	ldr	r2, [r2, #8]
.L86:
	ldr	r1, .L101+28
	ldr	r0, .L101+32
	ldr	r1, [r1]
	str	r7, [sp, #4]
	str	r7, [sp]
	ldr	r0, [r0]
	bl	Com_QueueEvent
	ldr	r3, [fp]
	lsl	r2, r5, #4
	add	r3, r3, r2
	ldr	r2, [r3, #12]
	b	.L87
.L35:
	ldr	r2, [fp]
	ldr	r4, .L101+24
	ldr	r2, [r2, r5, lsl #4]
	ldr	r3, [r4]
	b	.L86
.L36:
	ldr	r2, [fp]
	ldr	r3, .L101+24
	add	r2, r2, r5, lsl #4
	ldr	r3, [r3]
	ldr	r2, [r2, #4]
	b	.L85
.L37:
	ldr	r2, [fp]
	ldr	r4, .L101+24
	add	r2, r2, r5, lsl #4
	ldr	r3, [r4]
	ldr	r2, [r2, #8]
	b	.L89
.L9:
	ldr	r0, [r8]
	bl	ARRAY_LEN
	cmp	r0, r6
	blt	.L100
.L12:
	mov	r5, #0
	ldr	r7, .L101+68
	ldr	fp, .L101+28
.L15:
	mov	r1, r5
	ldr	r0, [r9]
	bl	SDL_JoystickGetButton
	subs	r10, r0, #0
	movne	r10, #1
	ldr	r3, [r8]
	ldr	r3, [r3, r5, lsl #2]
	cmp	r3, r10
	beq	.L14
	mov	r3, #0
	ldr	r2, [r7]
	ldr	r0, .L101+32
	str	r3, [sp, #4]
	str	r3, [sp]
	ldr	r1, [fp]
	mov	r3, r10
	ldr	r0, [r0]
	add	r2, r5, r2
	bl	Com_QueueEvent
	ldr	r3, [r8]
	str	r10, [r3, r5, lsl #2]
.L14:
	add	r5, r5, #1
	cmp	r6, r5
	bgt	.L15
	b	.L13
.L100:
	ldr	r0, [r8]
	bl	ARRAY_LEN
	subs	r6, r0, #0
	bgt	.L12
	b	.L13
.L93:
	bl	__stack_chk_fail
.L102:
	.align	2
.L101:
	.word	gamepad
	.word	.LC0
	.word	stick
	.word	stick_state
	.word	stick_state+4
	.word	hat_keys
	.word	qtrue
	.word	SE_KEY
	.word	in_eventTime
	.word	in_joystickUseAnalog
	.word	MAX_JOYSTICK_AXIS
	.word	in_joystickThreshold
	.word	1191181824
	.word	SE_JOYSTICK_AXIS
	.word	qfalse
	.word	joy_keys
	.word	SE_MOUSE
	.word	K_JOY1
	.size	IN_JoyMove, .-IN_JoyMove
	.comm	stick_state,16,4
	.comm	stick,4,4
	.comm	qtrue,4,4
	.comm	qfalse,4,4
	.comm	joy_keys,4,4
	.comm	in_joystickUseAnalog,4,4
	.comm	in_joystickThreshold,4,4
	.comm	in_eventTime,4,4
	.comm	hat_keys,4,4
	.comm	gamepad,4,4
	.comm	SE_MOUSE,4,4
	.comm	SE_KEY,4,4
	.comm	SE_JOYSTICK_AXIS,4,4
	.comm	MAX_JOYSTICK_AXIS,4,4
	.comm	K_JOY1,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
