	.file	"936817.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/uinput"
.LC1:
	.string	"Cannot open /dev/uinput: %s.\n"
	.align 8
.LC2:
	.string	"Cannot set ev key bits, key: %s.\n"
	.align 8
.LC3:
	.string	"Cannot set ev syn bits, syn: %s.\n"
.LC4:
	.string	"Cannot set ev bits: %s.\n"
.LC5:
	.string	"Cannot setup device: %s.\n"
.LC6:
	.string	"Cannot create device: %s.\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -112[rbp]
	mov	edx, 92
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -112[rbp], 3
	mov	WORD PTR -110[rbp], 4660
	mov	WORD PTR -108[rbp], 22136
	lea	rax, -112[rbp]
	add	rax, 8
	movabs	rcx, 2334391211988711493
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rax], 1769366884
	mov	WORD PTR 12[rax], 25955
	mov	BYTE PTR 14[rax], 0
	mov	esi, 2049
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L2:
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 1
	mov	esi, 1074025828
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L4:
	mov	eax, DWORD PTR -116[rbp]
	mov	edx, 0
	mov	esi, 1074025828
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L5
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L5:
	mov	DWORD PTR -120[rbp], 0
	jmp	.L6
.L8:
	mov	edx, DWORD PTR -120[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 1074025829
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L7:
	add	DWORD PTR -120[rbp], 1
.L6:
	cmp	DWORD PTR -120[rbp], 574
	jle	.L8
	lea	rdx, -112[rbp]
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 1079792899
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L9
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L9:
	mov	eax, DWORD PTR -116[rbp]
	mov	esi, 21761
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L10
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"936817.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Example device\000"
	.align	2
.LC1:
	.ascii	"/dev/uinput\000"
	.align	2
.LC2:
	.ascii	"Cannot open /dev/uinput: %s.\012\000"
	.align	2
.LC3:
	.ascii	"Cannot set ev key bits, key: %s.\012\000"
	.align	2
.LC4:
	.ascii	"Cannot set ev syn bits, syn: %s.\012\000"
	.align	2
.LC5:
	.ascii	"Cannot set ev bits: %s.\012\000"
	.align	2
.LC6:
	.ascii	"Cannot setup device: %s.\012\000"
	.align	2
.LC7:
	.ascii	"Cannot create device: %s.\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #108
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #108
	mov	r2, #92
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #3
	strh	r3, [fp, #-108]	@ movhi
	ldr	r3, .L13+4
	strh	r3, [fp, #-106]	@ movhi
	ldr	r3, .L13+8
	strh	r3, [fp, #-104]	@ movhi
	sub	r3, fp, #108
	add	r3, r3, #8
	ldr	r2, .L13+12
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	add	ip, ip, #2
	lsr	r3, r3, #16
	strb	r3, [ip]
	ldr	r1, .L13+16
	ldr	r0, .L13+20
	bl	open
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L13+24
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L11
.L2:
	mov	r2, #1
	ldr	r1, .L13+32
	ldr	r0, [fp, #-112]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L4
	ldr	r3, .L13+24
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+36
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L11
.L4:
	mov	r2, #0
	ldr	r1, .L13+32
	ldr	r0, [fp, #-112]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r3, .L13+24
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+40
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L11
.L5:
	mov	r3, #0
	str	r3, [fp, #-116]
	b	.L6
.L8:
	ldr	r2, [fp, #-116]
	ldr	r1, .L13+44
	ldr	r0, [fp, #-112]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L13+24
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+48
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L11
.L7:
	ldr	r3, [fp, #-116]
	add	r3, r3, #1
	str	r3, [fp, #-116]
.L6:
	ldr	r3, [fp, #-116]
	ldr	r2, .L13+52
	cmp	r3, r2
	ble	.L8
	sub	r3, fp, #108
	mov	r2, r3
	ldr	r1, .L13+56
	ldr	r0, [fp, #-112]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L13+24
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+60
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L11
.L9:
	ldr	r1, .L13+64
	ldr	r0, [fp, #-112]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L13+24
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L13+68
	mov	r0, r4
	bl	fprintf
	mov	r3, #1
	b	.L11
.L10:
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	4660
	.word	22136
	.word	.LC0
	.word	2049
	.word	.LC1
	.word	stderr
	.word	.LC2
	.word	1074025828
	.word	.LC3
	.word	.LC4
	.word	1074025829
	.word	.LC5
	.word	574
	.word	1079792899
	.word	.LC6
	.word	21761
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
