	.file	"extr_..inputdriverslinuxraw_input.c_linuxraw_input_poll.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	linuxraw_input_poll, @function
linuxraw_input_poll:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rbp, rsp
	lea	r12, 4[rsp]
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR STDIN_FILENO[rip]
	mov	edx, 1
	mov	rsi, rbp
	call	read@PLT
	test	rax, rax
	jle	.L15
	mov	edx, DWORD PTR [rsp]
	cmp	edx, DWORD PTR KEY_C[rip]
	je	.L16
.L3:
	mov	eax, edx
	and	al, 127
	mov	DWORD PTR [rsp], eax
	test	eax, eax
	je	.L17
.L5:
	and	edx, 128
	mov	rcx, QWORD PTR [rbx]
	cdqe
	sete	dl
	movzx	edx, dl
	mov	DWORD PTR [rcx+rax*4], edx
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rax, QWORD PTR [rbx]
	mov	rcx, QWORD PTR KEY_LEFTCTRL[rip]
	mov	ecx, DWORD PTR [rax+rcx*4]
	test	ecx, ecx
	jne	.L4
	mov	rcx, QWORD PTR KEY_RIGHTCTRL[rip]
	mov	eax, DWORD PTR [rax+rcx*4]
	test	eax, eax
	je	.L3
.L4:
	mov	r13d, DWORD PTR SIGINT[rip]
	xor	eax, eax
	call	getpid@PLT
	mov	edi, eax
	mov	esi, r13d
	call	kill@PLT
	mov	edx, DWORD PTR [rsp]
	mov	eax, edx
	and	al, 127
	mov	DWORD PTR [rsp], eax
	test	eax, eax
	jne	.L5
.L17:
	mov	edi, DWORD PTR STDIN_FILENO[rip]
	mov	edx, 2
	mov	rsi, r12
	call	read@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L15:
	mov	rdx, QWORD PTR 8[rbx]
	test	rdx, rdx
	je	.L1
	xor	eax, eax
	call	[QWORD PTR [rdx]]
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	linuxraw_input_poll, .-linuxraw_input_poll
	.comm	STDIN_FILENO,4,4
	.comm	SIGINT,4,4
	.comm	KEY_RIGHTCTRL,8,8
	.comm	KEY_LEFTCTRL,8,8
	.comm	KEY_C,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_..inputdriverslinuxraw_input.c_linuxraw_input_poll.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_input_poll, %function
linuxraw_input_poll:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L22
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	ldr	r4, .L22+4
	ldr	r6, .L22+8
	ldr	r7, .L22+12
	ldr	r9, .L22+16
	ldr	r8, .L22+20
.L2:
	mov	r2, #1
	ldr	r0, [r4]
	add	r1, sp, #4
	bl	read
	cmp	r0, #0
	ble	.L18
	ldr	r3, [sp, #4]
	ldr	r2, [r6]
	cmp	r3, r2
	beq	.L19
.L3:
	bic	r2, r3, #128
	cmp	r2, #0
	str	r2, [sp, #4]
	beq	.L20
.L5:
	tst	r3, #128
	moveq	r1, #1
	movne	r1, #0
	ldr	r3, [r5]
	str	r1, [r3, r2, lsl #2]
	b	.L2
.L19:
	ldr	r2, [r5]
	ldr	r1, [r7]
	ldr	r1, [r2, r1, lsl #2]
	cmp	r1, #0
	bne	.L4
	ldr	r1, [r8]
	ldr	r2, [r2, r1, lsl #2]
	cmp	r2, #0
	beq	.L3
.L4:
	bl	getpid
	ldr	r1, [r9]
	bl	kill
	ldr	r3, [sp, #4]
	bic	r2, r3, #128
	cmp	r2, #0
	str	r2, [sp, #4]
	bne	.L5
.L20:
	mov	r2, #2
	ldr	r0, [r4]
	add	r1, sp, #8
	bl	read
	b	.L2
.L18:
	ldr	r3, [r5, #4]
	cmp	r3, #0
	beq	.L1
	ldr	r3, [r3]
	blx	r3
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC0
	.word	STDIN_FILENO
	.word	KEY_C
	.word	KEY_LEFTCTRL
	.word	SIGINT
	.word	KEY_RIGHTCTRL
	.size	linuxraw_input_poll, .-linuxraw_input_poll
	.comm	STDIN_FILENO,4,4
	.comm	SIGINT,4,4
	.comm	KEY_RIGHTCTRL,4,4
	.comm	KEY_LEFTCTRL,4,4
	.comm	KEY_C,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
