	.file	"1198473.c"
	.intel_syntax noprefix
	.text
	.local	input_fd
	.comm	input_fd,4,4
	.section	.rodata
.LC0:
	.string	"Failed to enable key: %i\n"
	.text
	.type	input_enable_key, @function
input_enable_key:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR input_fd[rip]
	mov	edx, DWORD PTR -4[rbp]
	mov	esi, 1074025829
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L2
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -4[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L3
.L2:
	mov	eax, 0
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	input_enable_key, .-input_enable_key
	.section	.rodata
.LC1:
	.string	"/dev/uinput"
.LC2:
	.string	"Failed to open input device\n"
.LC3:
	.string	"Failed to enable EV_KEY\n"
.LC4:
	.string	"Failed to enable EV_SYN\n"
.LC5:
	.string	"pidas-touch"
	.align 8
.LC6:
	.string	"Failed to write config structure\n"
	.align 8
.LC7:
	.string	"Failed to create input device\n"
	.text
	.globl	input_open
	.type	input_open, @function
input_open:
.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, 1136
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 2050
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR input_fd[rip], eax
	mov	eax, DWORD PTR input_fd[rip]
	test	eax, eax
	jns	.L5
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 28
	mov	esi, 1
	lea	rdi, .LC2[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L11
.L5:
	mov	eax, DWORD PTR input_fd[rip]
	mov	edx, 1
	mov	esi, 1074025828
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L7
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L11
.L7:
	mov	eax, DWORD PTR input_fd[rip]
	mov	edx, 0
	mov	esi, 1074025828
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L8
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L11
.L8:
	mov	edi, 103
	call	input_enable_key
	mov	edi, 108
	call	input_enable_key
	mov	edi, 105
	call	input_enable_key
	mov	edi, 106
	call	input_enable_key
	mov	edi, 57
	call	input_enable_key
	mov	edi, 28
	call	input_enable_key
	lea	rax, -1136[rbp]
	mov	edx, 1116
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -1136[rbp]
	lea	rdx, .LC5[rip]
	mov	esi, 80
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	WORD PTR -1056[rbp], 3
	mov	WORD PTR -1054[rbp], 1
	mov	WORD PTR -1052[rbp], 1
	mov	WORD PTR -1050[rbp], 1
	mov	eax, DWORD PTR input_fd[rip]
	lea	rcx, -1136[rbp]
	mov	edx, 1116
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L11
.L9:
	mov	eax, DWORD PTR input_fd[rip]
	mov	esi, 21761
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L10
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@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
.LFE7:
	.size	input_open, .-input_open
	.section	.rodata
	.align 8
.LC8:
	.string	"Failed to destroy user input device\n"
	.text
	.globl	input_close
	.type	input_close, @function
input_close:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, DWORD PTR input_fd[rip]
	mov	esi, 21762
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L14
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 36
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L15
.L14:
	mov	eax, DWORD PTR input_fd[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
.L15:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	input_close, .-input_close
	.section	.rodata
.LC9:
	.string	"Failed to send key\n"
	.text
	.globl	send_key
	.type	send_key, @function
send_key:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -16[rbp], 1
	mov	eax, DWORD PTR -36[rbp]
	mov	WORD PTR -14[rbp], ax
	mov	eax, DWORD PTR -40[rbp]
	mov	DWORD PTR -12[rbp], eax
	mov	eax, DWORD PTR input_fd[rip]
	lea	rcx, -32[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L17
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 19
	mov	esi, 1
	lea	rdi, .LC9[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L19
.L17:
	mov	eax, 0
.L19:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	send_key, .-send_key
	.section	.rodata
.LC10:
	.string	"Failed to sync input\n"
	.text
	.globl	sync_input
	.type	sync_input, @function
sync_input:
.LFB10:
	.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
	lea	rax, -32[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -16[rbp], 0
	mov	WORD PTR -14[rbp], 0
	mov	DWORD PTR -12[rbp], 0
	mov	eax, DWORD PTR input_fd[rip]
	lea	rcx, -32[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L24
.L22:
	mov	eax, 0
.L24:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	sync_input, .-sync_input
	.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	"1198473.c"
	.text
	.local	input_fd
	.comm	input_fd,4,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Failed to enable key: %i\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	input_enable_key, %function
input_enable_key:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L4
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L4+4
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r3, .L4+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L4+12
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L3
.L2:
	mov	r3, #0
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	input_fd
	.word	1074025829
	.word	stderr
	.word	.LC0
	.size	input_enable_key, .-input_enable_key
	.section	.rodata
	.align	2
.LC1:
	.ascii	"/dev/uinput\000"
	.align	2
.LC2:
	.ascii	"Failed to open input device\012\000"
	.align	2
.LC3:
	.ascii	"Failed to enable EV_KEY\012\000"
	.align	2
.LC4:
	.ascii	"Failed to enable EV_SYN\012\000"
	.align	2
.LC5:
	.ascii	"pidas-touch\000"
	.align	2
.LC6:
	.ascii	"Failed to write config structure\012\000"
	.align	2
.LC7:
	.ascii	"Failed to create input device\012\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	input_open
	.syntax unified
	.arm
	.fpu softvfp
	.type	input_open, %function
input_open:
	@ args = 0, pretend = 0, frame = 1120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #1120
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r1, .L15+4
	ldr	r0, .L15+8
	bl	open
	mov	r3, r0
	ldr	r2, .L15+12
	str	r3, [r2]
	ldr	r3, .L15+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L7
	ldr	r3, .L15+16
	ldr	r3, [r3]
	mov	r2, #28
	mov	r1, #1
	ldr	r0, .L15+20
	bl	fwrite
	mvn	r3, #0
	b	.L13
.L7:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L15+24
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r3, .L15+16
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L15+28
	bl	fwrite
	mvn	r3, #0
	b	.L13
.L9:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, .L15+24
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r3, .L15+16
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L15+32
	bl	fwrite
	mvn	r3, #0
	b	.L13
.L10:
	mov	r0, #103
	bl	input_enable_key
	mov	r0, #108
	bl	input_enable_key
	mov	r0, #105
	bl	input_enable_key
	mov	r0, #106
	bl	input_enable_key
	mov	r0, #57
	bl	input_enable_key
	mov	r0, #28
	bl	input_enable_key
	sub	r3, fp, #1120
	sub	r3, r3, #4
	ldr	r2, .L15+36
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1120
	sub	r3, r3, #4
	ldr	r2, .L15+40
	mov	r1, #80
	mov	r0, r3
	bl	snprintf
	sub	r3, fp, #4
	sub	r3, r3, #1120
	mov	r2, #3
	strh	r2, [r3, #80]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #1120
	mov	r2, #1
	strh	r2, [r3, #82]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #1120
	mov	r2, #1
	strh	r2, [r3, #84]	@ movhi
	sub	r3, fp, #4
	sub	r3, r3, #1120
	mov	r2, #1
	strh	r2, [r3, #86]	@ movhi
	ldr	r3, .L15+12
	ldr	r3, [r3]
	sub	r1, fp, #1120
	sub	r1, r1, #4
	ldr	r2, .L15+36
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L11
	ldr	r3, .L15+16
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L15+44
	bl	fwrite
	mvn	r3, #0
	b	.L13
.L11:
	ldr	r3, .L15+12
	ldr	r3, [r3]
	ldr	r1, .L15+48
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L12
	ldr	r3, .L15+16
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L15+52
	bl	fwrite
	mvn	r3, #0
	b	.L13
.L12:
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC8
	.word	2050
	.word	.LC1
	.word	input_fd
	.word	stderr
	.word	.LC2
	.word	1074025828
	.word	.LC3
	.word	.LC4
	.word	1116
	.word	.LC5
	.word	.LC6
	.word	21761
	.word	.LC7
	.size	input_open, .-input_open
	.section	.rodata
	.align	2
.LC9:
	.ascii	"Failed to destroy user input device\012\000"
	.text
	.align	2
	.global	input_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	input_close, %function
input_close:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L20
	ldr	r3, [r3]
	ldr	r1, .L20+4
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r3, .L20+8
	ldr	r3, [r3]
	mov	r2, #36
	mov	r1, #1
	ldr	r0, .L20+12
	bl	fwrite
	mvn	r3, #0
	b	.L19
.L18:
	ldr	r3, .L20
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
.L19:
	mov	r0, r3
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	input_fd
	.word	21762
	.word	stderr
	.word	.LC9
	.size	input_close, .-input_close
	.section	.rodata
	.align	2
.LC10:
	.ascii	"Failed to send key\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	send_key
	.syntax unified
	.arm
	.fpu softvfp
	.type	send_key, %function
send_key:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L27
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	strh	r3, [fp, #-16]	@ movhi
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-14]	@ movhi
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-12]
	ldr	r3, .L27+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L23
	ldr	r3, .L27+8
	ldr	r3, [r3]
	mov	r2, #19
	mov	r1, #1
	ldr	r0, .L27+12
	bl	fwrite
	mvn	r3, #0
	b	.L25
.L23:
	mov	r3, #0
.L25:
	ldr	r2, .L27
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L26
	bl	__stack_chk_fail
.L26:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC11
	.word	input_fd
	.word	stderr
	.word	.LC10
	.size	send_key, .-send_key
	.section	.rodata
	.align	2
.LC12:
	.ascii	"Failed to sync input\012\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	sync_input
	.syntax unified
	.arm
	.fpu softvfp
	.type	sync_input, %function
sync_input:
	@ 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, .L34
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	strh	r3, [fp, #-16]	@ movhi
	mov	r3, #0
	strh	r3, [fp, #-14]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L34+4
	ldr	r3, [r3]
	sub	r1, fp, #24
	mov	r2, #16
	mov	r0, r3
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	ldr	r3, .L34+8
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L34+12
	bl	fwrite
	mvn	r3, #0
	b	.L32
.L30:
	mov	r3, #0
.L32:
	ldr	r2, .L34
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L35:
	.align	2
.L34:
	.word	.LC13
	.word	input_fd
	.word	stderr
	.word	.LC12
	.size	sync_input, .-sync_input
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
