	.file	"extr_xinput_joypad.c_xinput_joypad_axis.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	xinput_joypad_axis, @function
xinput_joypad_axis:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR AXIS_NONE[rip], rsi
	je	.L31
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	pad_index_to_xuser_index@PLT
	movsx	rdx, eax
	lea	rax, 0[0+rdx*8]
	sub	rax, rdx
	mov	rdx, QWORD PTR g_xinput_states[rip]
	lea	rbx, 0[0+rax*4]
	mov	eax, DWORD PTR 24[rdx+rax*4]
	test	eax, eax
	jne	.L32
.L4:
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L32:
	.cfi_restore_state
	mov	rdi, rbp
	call	AXIS_NEG_GET@PLT
	mov	rdi, rbp
	cmp	eax, 3
	jle	.L33
	call	AXIS_POS_GET@PLT
	mov	r8d, eax
	xor	eax, eax
	cmp	r8d, 5
	jg	.L1
	mov	rdi, rbp
	call	AXIS_POS_GET@PLT
	mov	ecx, 1
	xor	edx, edx
.L6:
	add	rbx, QWORD PTR g_xinput_states[rip]
	cmp	eax, 5
	ja	.L20
	lea	rsi, .L17[rip]
	mov	eax, eax
	movsx	rax, DWORD PTR [rsi+rax*4]
	add	rax, rsi
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L8-.L17
	.long	.L10-.L17
	.long	.L11-.L17
	.long	.L12-.L17
	.long	.L13-.L17
	.long	.L14-.L17
	.text
	.p2align 4,,10
	.p2align 3
.L31:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	call	AXIS_NEG_GET@PLT
	xor	ecx, ecx
	mov	edx, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L13:
	mov	eax, DWORD PTR 16[rbx]
.L29:
	mov	esi, eax
	sal	esi, 15
	sub	esi, eax
	movsx	rax, esi
	imul	rax, rax, -2139062143
	shr	rax, 32
	add	eax, esi
	sar	esi, 31
	sar	eax, 7
	sub	eax, esi
.L9:
	test	eax, eax
	jle	.L21
	test	edx, edx
	jne	.L4
.L21:
	test	eax, eax
	jns	.L22
	test	ecx, ecx
	jne	.L4
.L22:
	cmp	eax, -32768
	mov	edx, -32767
	cmove	eax, edx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	eax, DWORD PTR 12[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR 8[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, DWORD PTR 4[rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR [rbx]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR 20[rbx]
	jmp	.L29
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	xinput_joypad_axis.cold, @function
xinput_joypad_axis.cold:
.LFSB0:
.L20:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	xinput_joypad_axis, .-xinput_joypad_axis
	.section	.text.unlikely
	.size	xinput_joypad_axis.cold, .-xinput_joypad_axis.cold
.LCOLDE0:
	.text
.LHOTE0:
	.comm	g_xinput_states,8,8
	.comm	dinput_joypad,8,8
	.comm	AXIS_NONE,8,8
	.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_xinput_joypad.c_xinput_joypad_axis.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xinput_joypad_axis, %function
xinput_joypad_axis:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L30
	ldr	r3, [r3]
	cmp	r3, r1
	beq	.L27
	push	{r4, r5, r6, lr}
	mov	r4, r1
	bl	pad_index_to_xuser_index
	ldr	r5, .L30+4
	rsb	r0, r0, r0, lsl #3
	ldr	r3, [r5]
	lsl	r6, r0, #2
	add	r0, r3, r0, lsl #2
	ldr	r3, [r0, #24]
	cmp	r3, #0
	bne	.L28
.L18:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L28:
	mov	r0, r4
	bl	AXIS_NEG_GET
	cmp	r0, #3
	mov	r0, r4
	ble	.L29
	bl	AXIS_POS_GET
	cmp	r0, #5
	bgt	.L18
	mov	r0, r4
	bl	AXIS_POS_GET
	mov	ip, #1
	mov	r3, #0
.L6:
	ldr	r2, [r5]
	add	r1, r2, r6
	cmp	r0, #5
	ldrls	pc, [pc, r0, asl #2]
	b	.L18
.L15:
	.word	.L8
	.word	.L10
	.word	.L11
	.word	.L12
	.word	.L13
	.word	.L14
.L27:
	mov	r0, #0
	bx	lr
.L29:
	bl	AXIS_NEG_GET
	mov	ip, #0
	mov	r3, #1
	b	.L6
.L14:
	ldr	r2, [r1, #20]
.L25:
	ldr	r1, .L30+8
	rsb	r2, r2, r2, lsl #15
	smull	r0, r1, r2, r1
	asr	r0, r2, #31
	add	r2, r1, r2
	rsb	r0, r0, r2, asr #7
.L9:
	cmp	r0, #0
	movle	r3, #0
	andgt	r3, r3, #1
	cmp	r3, #0
	bne	.L18
	ands	r3, ip, r0, lsr #31
	bne	.L18
	ldr	r3, .L30+12
	cmn	r0, #32768
	moveq	r0, r3
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r2, [r1, #16]
	b	.L25
.L12:
	ldr	r0, [r1, #12]
	b	.L9
.L11:
	ldr	r0, [r1, #8]
	b	.L9
.L10:
	ldr	r0, [r1, #4]
	b	.L9
.L8:
	ldr	r0, [r2, r6]
	b	.L9
.L31:
	.align	2
.L30:
	.word	AXIS_NONE
	.word	g_xinput_states
	.word	-2139062143
	.word	-32767
	.size	xinput_joypad_axis, .-xinput_joypad_axis
	.comm	g_xinput_states,4,4
	.comm	dinput_joypad,4,4
	.comm	AXIS_NONE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
