	.file	"111077360.c"
	.intel_syntax noprefix
	.text
	.globl	DEVICE_ID
	.section	.rodata
.LC0:
	.string	"spacenavigator"
	.section	.data.rel.local,"aw"
	.align 8
	.type	DEVICE_ID, @object
	.size	DEVICE_ID, 8
DEVICE_ID:
	.quad	.LC0
	.text
	.globl	error
	.type	error, @function
error:
.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	QWORD PTR -8[rbp], rdi
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC1:
	.string	"Usage: %s <event-device-file> <ip-addr> <ip-port>\n"
.LC2:
	.string	"invalid address"
.LC3:
	.string	"invalid port"
	.align 8
.LC4:
	.string	"opening the file you specified"
.LC5:
	.string	"opening the socket"
.LC6:
	.string	"read failed\n"
.LC7:
	.string	"sending to socket"
	.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
	push	r15
	push	r14
	push	r13
	push	r12
	sub	rsp, 272
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	mov	DWORD PTR -292[rbp], edi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -292[rbp], 4
	je	.L3
	mov	rax, QWORD PTR -304[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	lea	rax, -192[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -192[rbp], 2
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rdx, -192[rbp]
	add	rdx, 4
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	inet_pton@PLT
	test	eax, eax
	jg	.L4
	lea	rdi, .LC2[rip]
	call	error
.L4:
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	edx, 10
	mov	esi, 0
	mov	rdi, rax
	call	strtoul@PLT
	mov	DWORD PTR -276[rbp], eax
	cmp	DWORD PTR -276[rbp], 65535
	jbe	.L5
	lea	rdi, .LC3[rip]
	call	error
.L5:
	mov	eax, DWORD PTR -276[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -190[rbp], ax
	mov	rax, QWORD PTR -304[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -272[rbp], eax
	cmp	DWORD PTR -272[rbp], 0
	jns	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -268[rbp], eax
	cmp	DWORD PTR -268[rbp], 0
	jns	.L7
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L7:
	mov	BYTE PTR -278[rbp], 1
	mov	BYTE PTR -277[rbp], 1
	lea	rdx, -278[rbp]
	mov	eax, DWORD PTR -268[rbp]
	mov	r8d, 1
	mov	rcx, rdx
	mov	edx, 34
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	lea	rdx, -277[rbp]
	mov	eax, DWORD PTR -268[rbp]
	mov	r8d, 1
	mov	rcx, rdx
	mov	edx, 33
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -224[rbp]
	mov	QWORD PTR -256[rbp], rax
	mov	rax, QWORD PTR -256[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR DEVICE_ID[rip]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 24
	mov	QWORD PTR -248[rbp], rax
	mov	rax, QWORD PTR -248[rbp]
	mov	rdx, rax
	sub	rdx, 1
	mov	QWORD PTR -240[rbp], rdx
	mov	r14, rax
	mov	r15d, 0
	mov	r12, rax
	mov	r13d, 0
	mov	edx, 16
	sub	rdx, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L8:
	cmp	rsp, rdx
	je	.L9
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L8
.L9:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L10
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L10:
	mov	rax, rsp
	add	rax, 0
	mov	QWORD PTR -232[rbp], rax
	mov	rdx, QWORD PTR -248[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -248[rbp]
	lea	rdx, -24[rax]
	mov	rax, QWORD PTR DEVICE_ID[rip]
	mov	rcx, QWORD PTR -232[rbp]
	add	rcx, 24
	mov	rsi, rax
	mov	rdi, rcx
	call	strncpy@PLT
.L15:
	mov	rcx, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR -272[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -264[rbp], eax
	cmp	DWORD PTR -264[rbp], 24
	je	.L11
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 12
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L11:
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, WORD PTR 16[rax]
	test	ax, ax
	je	.L17
	mov	rax, QWORD PTR -256[rbp]
	movzx	eax, WORD PTR 16[rax]
	cmp	ax, 4
	je	.L17
	mov	rcx, QWORD PTR -256[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rcx, -192[rbp]
	mov	rdx, QWORD PTR -248[rbp]
	mov	rsi, QWORD PTR -232[rbp]
	mov	eax, DWORD PTR -268[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -260[rbp], eax
	cmp	DWORD PTR -260[rbp], 0
	jns	.L15
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L15
.L17:
	nop
	jmp	.L15
	.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	"111077360.c"
	.text
	.global	DEVICE_ID
	.section	.rodata
	.align	2
.LC0:
	.ascii	"spacenavigator\000"
	.data
	.align	2
	.type	DEVICE_ID, %object
	.size	DEVICE_ID, 4
DEVICE_ID:
	.word	.LC0
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ 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, .L2
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	fputs
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.size	error, .-error
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: %s <event-device-file> <ip-addr> <ip-port>\012"
	.ascii	"\000"
	.align	2
.LC2:
	.ascii	"invalid address\000"
	.align	2
.LC3:
	.ascii	"invalid port\000"
	.align	2
.LC4:
	.ascii	"opening the file you specified\000"
	.align	2
.LC5:
	.ascii	"opening the socket\000"
	.align	2
.LC6:
	.ascii	"read failed\012\000"
	.align	2
.LC7:
	.ascii	"sending to socket\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 = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #172
	str	r0, [fp, #-168]
	str	r1, [fp, #-172]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-168]
	cmp	r3, #4
	beq	.L5
	ldr	r3, .L17+4
	ldr	r4, [r3]
	ldr	r3, [fp, #-172]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L17+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L5:
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, [fp, #-172]
	add	r3, r3, #8
	ldr	r1, [r3]
	sub	r3, fp, #32
	add	r3, r3, #4
	mov	r2, r3
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bgt	.L6
	ldr	r0, .L17+12
	bl	error
.L6:
	ldr	r3, [fp, #-172]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, #10
	mov	r1, #0
	mov	r0, r3
	bl	strtoul
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #65536
	bcc	.L7
	ldr	r0, .L17+16
	bl	error
.L7:
	ldr	r3, [fp, #-160]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, [fp, #-172]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-156]
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bge	.L8
	ldr	r0, .L17+20
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L17+24
	bl	perror
	mov	r0, #1
	bl	exit
.L9:
	mov	r3, #1
	strb	r3, [fp, #-162]
	mov	r3, #1
	strb	r3, [fp, #-161]
	sub	r3, fp, #162
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #34
	mov	r1, #0
	ldr	r0, [fp, #-152]
	bl	setsockopt
	sub	r3, fp, #161
	mov	r2, #1
	str	r2, [sp]
	mov	r2, #33
	mov	r1, #0
	ldr	r0, [fp, #-152]
	bl	setsockopt
	sub	r3, fp, #124
	str	r3, [fp, #-148]
	mov	r2, #16
	mov	r1, #0
	ldr	r0, [fp, #-148]
	bl	memset
	ldr	r3, .L17+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r3, #16
	str	r3, [fp, #-144]
	ldr	ip, [fp, #-144]
	mov	r3, ip
	sub	r3, r3, #1
	str	r3, [fp, #-140]
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	mov	r0, ip
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #3
	orr	r3, r3, r0, lsr #29
	lsl	r2, r0, #3
	add	r3, ip, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	add	r3, sp, #8
	add	r3, r3, #0
	str	r3, [fp, #-136]
	ldr	r2, [fp, #-144]
	mov	r1, #0
	ldr	r0, [fp, #-136]
	bl	memset
	ldr	r3, [fp, #-136]
	add	r0, r3, #16
	ldr	r3, .L17+28
	ldr	r1, [r3]
	ldr	r3, [fp, #-144]
	sub	r3, r3, #16
	mov	r2, r3
	bl	strncpy
.L14:
	mov	r2, #16
	ldr	r1, [fp, #-148]
	ldr	r0, [fp, #-156]
	bl	read
	str	r0, [fp, #-132]
	ldr	r3, [fp, #-132]
	cmp	r3, #16
	beq	.L10
	ldr	r3, .L17+4
	ldr	r3, [r3]
	mov	r2, #12
	mov	r1, #1
	ldr	r0, .L17+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L10:
	ldr	r3, [fp, #-148]
	ldrh	r3, [r3, #8]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-148]
	ldrh	r3, [r3, #8]
	cmp	r3, #4
	beq	.L16
	mov	r2, #16
	ldr	r1, [fp, #-148]
	ldr	r0, [fp, #-136]
	bl	memcpy
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #32
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-144]
	ldr	r1, [fp, #-136]
	ldr	r0, [fp, #-152]
	bl	sendto
	str	r0, [fp, #-128]
	ldr	r3, [fp, #-128]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L17+36
	bl	perror
	b	.L14
.L16:
	nop
	b	.L14
.L18:
	.align	2
.L17:
	.word	.LC8
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	DEVICE_ID
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
