	.file	"680346.c"
	.intel_syntax noprefix
	.text
	.globl	INThandler
	.type	INThandler, @function
INThandler:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	INThandler, .-INThandler
	.section	.rodata
.LC0:
	.string	"Key: %i State: %i\n"
.LC1:
	.string	"%ld,%ld %s %s %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, 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	movabs	rax, 8101528432256836655
	movabs	rdx, 8389754715015967861
	mov	QWORD PTR -32[rbp], rax
	mov	QWORD PTR -24[rbp], rdx
	mov	WORD PTR -16[rbp], 48
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -68[rbp], eax
	lea	rsi, INThandler[rip]
	mov	edi, 2
	call	signal@PLT
.L4:
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -68[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	movzx	eax, WORD PTR -48[rbp]
	cmp	ax, 1
	jne	.L4
	mov	eax, DWORD PTR -44[rbp]
	cmp	eax, 1
	jne	.L4
	mov	edx, DWORD PTR -44[rbp]
	movzx	eax, WORD PTR -46[rbp]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, DWORD PTR -44[rbp]
	movzx	eax, WORD PTR -46[rbp]
	movzx	esi, ax
	movzx	eax, WORD PTR -48[rbp]
	movzx	ecx, ax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -64[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L4
	.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	"680346.c"
	.text
	.align	2
	.global	INThandler
	.syntax unified
	.arm
	.fpu softvfp
	.type	INThandler, %function
INThandler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r0, #0
	bl	exit
	.size	INThandler, .-INThandler
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Key: %i State: %i\012\000"
	.align	2
.LC2:
	.ascii	"%ld,%ld %s %s %d\012\000"
	.align	2
.LC0:
	.ascii	"/dev/input/event0\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	ldr	r3, .L6
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L6+4
	sub	ip, fp, #28
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strh	r3, [ip]	@ movhi
	sub	r3, fp, #28
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-48]
	ldr	r1, .L6+8
	mov	r0, #2
	bl	signal
.L4:
	sub	r3, fp, #44
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	read
	ldrh	r3, [fp, #-36]
	cmp	r3, #1
	bne	.L4
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bne	.L4
	ldrh	r3, [fp, #-34]
	mov	r1, r3
	ldr	r3, [fp, #-32]
	mov	r2, r3
	ldr	r0, .L6+12
	bl	printf
	ldr	r1, [fp, #-44]
	ldr	r2, [fp, #-40]
	ldrh	r3, [fp, #-36]
	mov	ip, r3
	ldrh	r3, [fp, #-34]
	mov	r0, r3
	ldr	r3, [fp, #-32]
	str	r3, [sp, #4]
	str	r0, [sp]
	mov	r3, ip
	ldr	r0, .L6+16
	bl	printf
	b	.L4
.L7:
	.align	2
.L6:
	.word	.LC3
	.word	.LC0
	.word	INThandler
	.word	.LC1
	.word	.LC2
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
