	.file	"extr_x11_input.c_x_input_state.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	x_input_state, @function
x_input_state:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	eax, -128[r8]
	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, 24
	.cfi_def_cfa_offset 80
	mov	r15d, DWORD PTR 80[rsp]
	cmp	eax, 24
	ja	.L32
	mov	r12d, ecx
	lea	rcx, .L4[rip]
	mov	rbp, rdi
	mov	r13d, esi
	movsx	rax, DWORD PTR [rcx+rax*4]
	mov	r14d, r9d
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L5-.L4
	.long	.L10-.L4
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L32-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L32:
	xor	ebx, ebx
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, ebx
	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
.L9:
	.cfi_restore_state
	lea	eax, -133[r15]
	cmp	eax, 16
	ja	.L33
	lea	rcx, .L17[rip]
	movsx	rax, DWORD PTR [rcx+rax*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L31-.L17
	.long	.L30-.L17
	.long	.L29-.L17
	.long	.L25-.L17
	.long	.L27-.L17
	.long	.L24-.L17
	.long	.L24-.L17
	.long	.L26-.L17
	.long	.L25-.L17
	.long	.L24-.L17
	.long	.L23-.L17
	.long	.L22-.L17
	.long	.L21-.L17
	.long	.L20-.L17
	.long	.L19-.L17
	.long	.L18-.L17
	.long	.L16-.L17
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	test	r9d, r9d
	je	.L44
.L15:
	xor	ebx, ebx
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L10:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, r15d
	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
	jmp	x_mouse_state@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	cmp	DWORD PTR RETROK_LAST[rip], r15d
	jbe	.L15
	mov	esi, r15d
	xor	ebx, ebx
	call	x_keyboard_pressed@PLT
	test	eax, eax
	setne	bl
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	cmp	DWORD PTR RETRO_DEVICE_ID_JOYPAD_MASK[rip], r15d
	je	.L45
	cmp	DWORD PTR RARCH_BIND_LIST_END[rip], r15d
	jbe	.L15
	mov	eax, r12d
	mov	r8d, r15d
	mov	ecx, r12d
	xor	ebx, ebx
	mov	rdx, QWORD PTR [rdx+rax*8]
	call	x_is_pressed@PLT
	test	eax, eax
	setne	bl
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, r12d
	mov	ecx, r15d
	lea	r8, [rdx+rax*8]
	mov	edx, r9d
	mov	rsi, QWORD PTR [r8]
	mov	QWORD PTR 8[rsp], r8
	call	x_pressed_analog@PLT
	mov	ebx, eax
	test	eax, eax
	jne	.L1
	mov	r8, QWORD PTR 8[rsp]
	mov	r9, QWORD PTR [r8]
	test	r9, r9
	je	.L15
	mov	edi, DWORD PTR 16[rbp]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	r8d, r15d
	mov	ecx, r14d
	pop	rbx
	.cfi_def_cfa_offset 48
	mov	edx, r12d
	pop	rbp
	.cfi_def_cfa_offset 40
	mov	esi, r13d
	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
	jmp	input_joypad_analog@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	esi, r15d
	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
	jmp	x_mouse_state_screen@PLT
.L25:
	.cfi_restore_state
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_START[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
.L42:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	ecx, r12d
	mov	esi, r13d
	mov	rdi, rbp
	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
	jmp	x_is_pressed@PLT
.L26:
	.cfi_restore_state
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_RELOAD[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L24:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	edx, r15d
	mov	esi, r9d
	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
	jmp	x_lightgun_aiming_state@PLT
.L27:
	.cfi_restore_state
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_SELECT[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L18:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_AUX_B[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L29:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_TRIGGER[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L30:
	mov	ebx, DWORD PTR [rdi]
	sub	ebx, DWORD PTR 4[rdi]
	jmp	.L1
.L31:
	mov	ebx, DWORD PTR 8[rdi]
	sub	ebx, DWORD PTR 12[rdi]
	jmp	.L1
.L16:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_AUX_A[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L19:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_AUX_C[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L20:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_DPAD_DOWN[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L21:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_DPAD_LEFT[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L22:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_DPAD_RIGHT[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
.L23:
	mov	eax, r12d
	mov	r8d, DWORD PTR RARCH_LIGHTGUN_DPAD_UP[rip]
	mov	rdx, QWORD PTR [rdx+rax*8]
	jmp	.L42
	.p2align 4,,10
	.p2align 3
.L44:
	xor	ecx, ecx
	cmp	r8d, 151
	mov	edx, r15d
	sete	cl
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	esi, esi
	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
	jmp	x_pointer_state@PLT
	.p2align 4,,10
	.p2align 3
.L45:
	.cfi_restore_state
	mov	eax, DWORD PTR RARCH_FIRST_CUSTOM_BIND[rip]
	test	eax, eax
	je	.L15
	mov	eax, r12d
	xor	ebx, ebx
	xor	r14d, r14d
	lea	r15, [rdx+rax*8]
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rdx, QWORD PTR [r15]
	mov	r8d, r14d
	mov	ecx, r12d
	mov	esi, r13d
	mov	rdi, rbp
	call	x_is_pressed@PLT
	mov	ecx, r14d
	mov	edx, ebx
	mov	r9d, eax
	mov	eax, 1
	sal	eax, cl
	or	ebx, eax
	test	r9d, r9d
	cmove	ebx, edx
	add	r14d, 1
	cmp	DWORD PTR RARCH_FIRST_CUSTOM_BIND[rip], r14d
	ja	.L14
	jmp	.L1
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	x_input_state.cold, @function
x_input_state.cold:
.LFSB0:
.L33:
	.cfi_def_cfa_offset 80
	.cfi_offset 3, -56
	.cfi_offset 6, -48
	.cfi_offset 12, -40
	.cfi_offset 13, -32
	.cfi_offset 14, -24
	.cfi_offset 15, -16
	xor	ebx, ebx
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	x_input_state, .-x_input_state
	.section	.text.unlikely
	.size	x_input_state.cold, .-x_input_state.cold
.LCOLDE0:
	.text
.LHOTE0:
	.comm	RETRO_DEVICE_ID_JOYPAD_MASK,4,4
	.comm	RETROK_LAST,4,4
	.comm	RARCH_LIGHTGUN_TRIGGER,4,4
	.comm	RARCH_LIGHTGUN_START,4,4
	.comm	RARCH_LIGHTGUN_SELECT,4,4
	.comm	RARCH_LIGHTGUN_RELOAD,4,4
	.comm	RARCH_LIGHTGUN_DPAD_UP,4,4
	.comm	RARCH_LIGHTGUN_DPAD_RIGHT,4,4
	.comm	RARCH_LIGHTGUN_DPAD_LEFT,4,4
	.comm	RARCH_LIGHTGUN_DPAD_DOWN,4,4
	.comm	RARCH_LIGHTGUN_AUX_C,4,4
	.comm	RARCH_LIGHTGUN_AUX_B,4,4
	.comm	RARCH_LIGHTGUN_AUX_A,4,4
	.comm	RARCH_FIRST_CUSTOM_BIND,4,4
	.comm	RARCH_BIND_LIST_END,4,4
	.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_x11_input.c_x_input_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	x_input_state, %function
x_input_state:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	ip, [sp, #48]
	mov	r4, r0
	sub	r0, ip, #128
	mov	r7, r1
	mov	r6, r2
	mov	r5, r3
	ldr	r9, [sp, #52]
	ldr	r8, [sp, #56]
	cmp	r0, #24
	ldrls	pc, [pc, r0, asl #2]
	b	.L33
.L4:
	.word	.L5
	.word	.L10
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L33
	.word	.L6
	.word	.L5
	.word	.L3
.L5:
	cmp	r9, #0
	beq	.L44
.L33:
	mov	r10, #0
.L1:
	mov	r0, r10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	sub	r3, r8, #133
	cmp	r3, #16
	ldrls	pc, [pc, r3, asl #2]
	b	.L33
.L17:
	.word	.L31
	.word	.L30
	.word	.L29
	.word	.L25
	.word	.L27
	.word	.L24
	.word	.L24
	.word	.L26
	.word	.L25
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L16
.L8:
	ldr	r3, .L46
	ldr	r3, [r3]
	cmp	r3, r8
	bls	.L33
	mov	r1, r8
	mov	r0, r4
	bl	x_keyboard_pressed
	subs	r10, r0, #0
	movne	r10, #1
	b	.L1
.L7:
	ldr	r3, .L46+4
	ldr	r3, [r3]
	cmp	r3, r8
	beq	.L45
	ldr	r3, .L46+8
	ldr	r3, [r3]
	cmp	r3, r8
	bls	.L33
	str	r8, [sp]
	mov	r3, r5
	mov	r0, r4
	ldr	r2, [r2, r5, lsl #2]
	bl	x_is_pressed
	subs	r10, r0, #0
	movne	r10, #1
	b	.L1
.L6:
	mov	r3, r8
	mov	r2, r9
	mov	r0, r4
	ldr	r1, [r6, r5, lsl #2]
	bl	x_pressed_analog
	subs	r10, r0, #0
	bne	.L1
	ldr	r3, [r6, r5, lsl #2]
	cmp	r3, #0
	beq	.L33
	str	r3, [sp, #52]
	mov	r2, r5
	mov	r3, r9
	mov	r1, r7
	str	r8, [sp, #48]
	ldr	r0, [r4, #16]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	input_joypad_analog
.L3:
	mov	r1, r8
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	x_mouse_state_screen
.L10:
	mov	r1, r8
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	x_mouse_state
.L25:
	ldr	r3, .L46+12
.L42:
	ldr	ip, [r3]
	mov	r1, r7
	mov	r3, r5
	mov	r0, r4
	ldr	r2, [r6, r5, lsl #2]
	str	ip, [sp, #48]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	x_is_pressed
.L26:
	ldr	r3, .L46+16
	b	.L42
.L24:
	mov	r2, r8
	mov	r1, r9
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	x_lightgun_aiming_state
.L27:
	ldr	r3, .L46+20
	b	.L42
.L16:
	ldr	r3, .L46+24
	b	.L42
.L29:
	ldr	r3, .L46+28
	b	.L42
.L30:
	ldr	r10, [r4]
	ldr	r3, [r4, #4]
	sub	r10, r10, r3
	b	.L1
.L31:
	ldr	r10, [r4, #8]
	ldr	r3, [r4, #12]
	sub	r10, r10, r3
	b	.L1
.L18:
	ldr	r3, .L46+32
	b	.L42
.L19:
	ldr	r3, .L46+36
	b	.L42
.L20:
	ldr	r3, .L46+40
	b	.L42
.L21:
	ldr	r3, .L46+44
	b	.L42
.L22:
	ldr	r3, .L46+48
	b	.L42
.L23:
	ldr	r3, .L46+52
	b	.L42
.L44:
	sub	r3, ip, #151
	clz	r3, r3
	mov	r2, r8
	mov	r1, r9
	mov	r0, r4
	lsr	r3, r3, #5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	x_pointer_state
.L45:
	ldr	r9, .L46+56
	ldr	r3, [r9]
	cmp	r3, #0
	movne	r10, #0
	movne	fp, #1
	movne	r8, r10
	addne	r6, r2, r5, lsl #2
	beq	.L33
.L14:
	str	r8, [sp]
	mov	r3, r5
	mov	r1, r7
	mov	r0, r4
	ldr	r2, [r6]
	bl	x_is_pressed
	ldr	r3, [r9]
	cmp	r0, #0
	orrne	r10, r10, fp, lsl r8
	add	r8, r8, #1
	cmp	r3, r8
	bhi	.L14
	b	.L1
.L47:
	.align	2
.L46:
	.word	RETROK_LAST
	.word	RETRO_DEVICE_ID_JOYPAD_MASK
	.word	RARCH_BIND_LIST_END
	.word	RARCH_LIGHTGUN_START
	.word	RARCH_LIGHTGUN_RELOAD
	.word	RARCH_LIGHTGUN_SELECT
	.word	RARCH_LIGHTGUN_AUX_A
	.word	RARCH_LIGHTGUN_TRIGGER
	.word	RARCH_LIGHTGUN_AUX_B
	.word	RARCH_LIGHTGUN_AUX_C
	.word	RARCH_LIGHTGUN_DPAD_DOWN
	.word	RARCH_LIGHTGUN_DPAD_LEFT
	.word	RARCH_LIGHTGUN_DPAD_RIGHT
	.word	RARCH_LIGHTGUN_DPAD_UP
	.word	RARCH_FIRST_CUSTOM_BIND
	.size	x_input_state, .-x_input_state
	.comm	RETRO_DEVICE_ID_JOYPAD_MASK,4,4
	.comm	RETROK_LAST,4,4
	.comm	RARCH_LIGHTGUN_TRIGGER,4,4
	.comm	RARCH_LIGHTGUN_START,4,4
	.comm	RARCH_LIGHTGUN_SELECT,4,4
	.comm	RARCH_LIGHTGUN_RELOAD,4,4
	.comm	RARCH_LIGHTGUN_DPAD_UP,4,4
	.comm	RARCH_LIGHTGUN_DPAD_RIGHT,4,4
	.comm	RARCH_LIGHTGUN_DPAD_LEFT,4,4
	.comm	RARCH_LIGHTGUN_DPAD_DOWN,4,4
	.comm	RARCH_LIGHTGUN_AUX_C,4,4
	.comm	RARCH_LIGHTGUN_AUX_B,4,4
	.comm	RARCH_LIGHTGUN_AUX_A,4,4
	.comm	RARCH_FIRST_CUSTOM_BIND,4,4
	.comm	RARCH_BIND_LIST_END,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
