	.file	"extr_..inputdrivers_joypadlinuxraw_joypad.c_linuxraw_poll_pad.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	linuxraw_poll_pad, @function
linuxraw_poll_pad:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR 12[rbx]
	mov	edx, 24
	mov	rsi, rbp
	call	read@PLT
	cmp	rax, 24
	jne	.L11
	mov	eax, DWORD PTR JS_EVENT_INIT[rip]
	not	eax
	and	eax, DWORD PTR [rsp]
	cmp	eax, 128
	je	.L3
	cmp	eax, 129
	jne	.L2
	mov	rax, QWORD PTR 8[rsp]
	cmp	rax, QWORD PTR NUM_AXES[rip]
	jnb	.L2
	mov	rdx, QWORD PTR [rbx]
	mov	ecx, DWORD PTR 16[rsp]
	mov	DWORD PTR [rdx+rax*4], ecx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rsi, QWORD PTR 8[rsp]
	cmp	rsi, QWORD PTR NUM_BUTTONS[rip]
	jnb	.L2
	mov	eax, DWORD PTR 16[rsp]
	mov	edi, DWORD PTR 8[rbx]
	test	eax, eax
	je	.L6
	call	BIT32_SET@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L11:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L12
	add	rsp, 40
	.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
.L6:
	.cfi_restore_state
	call	BIT32_CLEAR@PLT
	jmp	.L2
.L12:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	linuxraw_poll_pad, .-linuxraw_poll_pad
	.comm	NUM_BUTTONS,8,8
	.comm	NUM_AXES,8,8
	.comm	JS_EVENT_INIT,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_..inputdrivers_joypadlinuxraw_joypad.c_linuxraw_poll_pad.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	linuxraw_poll_pad, %function
linuxraw_poll_pad:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L13
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r4, r0
	ldr	r5, .L13+4
	ldr	r7, .L13+8
	ldr	r6, .L13+12
.L2:
	mov	r2, #12
	mov	r1, sp
	ldr	r0, [r4, #8]
	bl	read
	cmp	r0, #12
	bne	.L11
	ldr	r2, [r5]
	ldr	r3, [sp]
	bic	r3, r3, r2
	cmp	r3, #128
	beq	.L3
	cmp	r3, #129
	bne	.L2
	ldr	r2, [r6]
	ldr	r3, [sp, #4]
	cmp	r3, r2
	ldrcc	r1, [sp, #8]
	ldrcc	r2, [r4]
	strcc	r1, [r2, r3, lsl #2]
	b	.L2
.L3:
	ldr	r1, [sp, #4]
	ldr	r3, [r7]
	cmp	r1, r3
	bcs	.L2
	ldr	r3, [sp, #8]
	ldr	r0, [r4, #4]
	cmp	r3, #0
	beq	.L6
	bl	BIT32_SET
	b	.L2
.L11:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L12
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	bl	BIT32_CLEAR
	b	.L2
.L12:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	JS_EVENT_INIT
	.word	NUM_BUTTONS
	.word	NUM_AXES
	.size	linuxraw_poll_pad, .-linuxraw_poll_pad
	.comm	NUM_BUTTONS,4,4
	.comm	NUM_AXES,4,4
	.comm	JS_EVENT_INIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
