	.file	"951073.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	ts_fd, @object
	.size	ts_fd, 4
ts_fd:
	.long	-1
	.section	.rodata
.LC0:
	.string	"/dev/input/event2"
.LC1:
	.string	"Error open %s\n"
	.text
	.type	init_device, @function
init_device:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR ts_fd[rip], eax
	mov	eax, DWORD PTR ts_fd[rip]
	test	eax, eax
	jns	.L2
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR ts_fd[rip]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	init_device, .-init_device
	.section	.rodata
.LC2:
	.string	"BTN_TOUCH"
.LC3:
	.string	"Unkown"
	.align 8
.LC4:
	.string	"type: EV_KEY, event = %s, value = %d\n"
.LC5:
	.string	"ABS_PRESSURE"
.LC6:
	.string	"ABS_Y"
.LC7:
	.string	"ABS_X"
	.align 8
.LC8:
	.string	"type: EV_ABS, event = %s, value = %d\n"
.LC9:
	.string	"SYN_REPORT"
	.align 8
.LC10:
	.string	"type: EV_SYN, event = %s, value = %d\n"
	.align 8
.LC11:
	.string	"type: 0x%x, event = 0x%x, value = %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	init_device
	test	eax, eax
	jns	.L5
	mov	eax, -1
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	jmp	.L22
.L5:
	mov	eax, DWORD PTR ts_fd[rip]
	lea	rcx, -32[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, WORD PTR -16[rbp]
	cmp	ax, 1
	jne	.L7
	mov	edx, DWORD PTR -12[rbp]
	movzx	eax, WORD PTR -14[rbp]
	cmp	ax, 330
	jne	.L8
	lea	rax, .LC2[rip]
	jmp	.L9
.L8:
	lea	rax, .LC3[rip]
.L9:
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L7:
	movzx	eax, WORD PTR -16[rbp]
	cmp	ax, 3
	jne	.L11
	mov	edx, DWORD PTR -12[rbp]
	movzx	eax, WORD PTR -14[rbp]
	test	ax, ax
	je	.L12
	movzx	eax, WORD PTR -14[rbp]
	cmp	ax, 1
	je	.L13
	movzx	eax, WORD PTR -14[rbp]
	cmp	ax, 24
	jne	.L14
	lea	rax, .LC5[rip]
	jmp	.L17
.L14:
	lea	rax, .LC3[rip]
	jmp	.L17
.L13:
	lea	rax, .LC6[rip]
	jmp	.L17
.L12:
	lea	rax, .LC7[rip]
.L17:
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L11:
	movzx	eax, WORD PTR -16[rbp]
	test	ax, ax
	jne	.L18
	mov	edx, DWORD PTR -12[rbp]
	movzx	eax, WORD PTR -14[rbp]
	test	ax, ax
	jne	.L19
	lea	rax, .LC9[rip]
	jmp	.L20
.L19:
	lea	rax, .LC3[rip]
.L20:
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L18:
	mov	ecx, DWORD PTR -12[rbp]
	movzx	eax, WORD PTR -14[rbp]
	movzx	edx, ax
	movzx	eax, WORD PTR -16[rbp]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L5
.L22:
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"951073.c"
	.text
	.data
	.align	2
	.type	ts_fd, %object
	.size	ts_fd, 4
ts_fd:
	.word	-1
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/input/event2\000"
	.align	2
.LC1:
	.ascii	"Error open %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_device, %function
init_device:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #0
	ldr	r0, .L4
	bl	open
	mov	r3, r0
	ldr	r2, .L4+4
	str	r3, [r2]
	ldr	r3, .L4+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L2
	ldr	r1, .L4
	ldr	r0, .L4+8
	bl	printf
	mvn	r3, #0
	b	.L3
.L2:
	ldr	r3, .L4+4
	ldr	r3, [r3]
.L3:
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	ts_fd
	.word	.LC1
	.size	init_device, .-init_device
	.section	.rodata
	.align	2
.LC2:
	.ascii	"BTN_TOUCH\000"
	.align	2
.LC3:
	.ascii	"Unkown\000"
	.align	2
.LC4:
	.ascii	"type: EV_KEY, event = %s, value = %d\012\000"
	.align	2
.LC5:
	.ascii	"ABS_PRESSURE\000"
	.align	2
.LC6:
	.ascii	"ABS_Y\000"
	.align	2
.LC7:
	.ascii	"ABS_X\000"
	.align	2
.LC8:
	.ascii	"type: EV_ABS, event = %s, value = %d\012\000"
	.align	2
.LC9:
	.ascii	"SYN_REPORT\000"
	.align	2
.LC10:
	.ascii	"type: EV_SYN, event = %s, value = %d\012\000"
	.align	2
.LC11:
	.ascii	"type: 0x%x, event = 0x%x, value = %d\012\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	init_device
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	mvn	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L23
	b	.L24
.L7:
	ldr	r3, .L25+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	read
	ldrh	r3, [fp, #-16]
	cmp	r3, #1
	bne	.L9
	ldrh	r3, [fp, #-14]
	ldr	r2, .L25+8
	cmp	r3, r2
	bne	.L10
	ldr	r3, .L25+12
	b	.L11
.L10:
	ldr	r3, .L25+16
.L11:
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L25+20
	bl	printf
	b	.L7
.L9:
	ldrh	r3, [fp, #-16]
	cmp	r3, #3
	bne	.L13
	ldrh	r3, [fp, #-14]
	cmp	r3, #0
	beq	.L14
	ldrh	r3, [fp, #-14]
	cmp	r3, #1
	beq	.L15
	ldrh	r3, [fp, #-14]
	cmp	r3, #24
	bne	.L16
	ldr	r3, .L25+24
	b	.L19
.L16:
	ldr	r3, .L25+16
	b	.L19
.L15:
	ldr	r3, .L25+28
	b	.L19
.L14:
	ldr	r3, .L25+32
.L19:
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L25+36
	bl	printf
	b	.L7
.L13:
	ldrh	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L20
	ldrh	r3, [fp, #-14]
	cmp	r3, #0
	bne	.L21
	ldr	r3, .L25+40
	b	.L22
.L21:
	ldr	r3, .L25+16
.L22:
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L25+44
	bl	printf
	b	.L7
.L20:
	ldrh	r3, [fp, #-16]
	mov	r1, r3
	ldrh	r3, [fp, #-14]
	mov	r2, r3
	ldr	r3, [fp, #-12]
	ldr	r0, .L25+48
	bl	printf
	b	.L7
.L24:
	bl	__stack_chk_fail
.L23:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC12
	.word	ts_fd
	.word	330
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
