	.file	"79052.c"
	.intel_syntax noprefix
	.text
	.globl	arpfilter
	.data
	.align 32
	.type	arpfilter, @object
	.size	arpfilter, 32
arpfilter:
	.value	40
	.byte	0
	.byte	0
	.long	12
	.value	21
	.byte	0
	.byte	1
	.long	2054
	.value	6
	.byte	0
	.byte	0
	.long	42
	.value	6
	.byte	0
	.byte	0
	.long	0
	.section	.rodata
.LC0:
	.string	"Failed to create socket: "
.LC1:
	.string	"malloc"
.LC2:
	.string	"setsockopt"
.LC3:
	.string	"recv(): "
	.align 8
.LC4:
	.string	"Short packet. Packet len: %ld\n"
	.align 8
.LC5:
	.string	"Received wrong ethernet type: %X\n"
	.align 8
.LC6:
	.string	"\n \t \t !!!! ATTENTION: mitm detected !!! "
.LC7:
	.string	"rfkill block all"
	.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
	sub	rsp, 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	edi, 3
	call	htons@PLT
	movzx	eax, ax
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L2:
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L3
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, 32
	lea	rsi, arpfilter[rip]
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -40[rbp], rax
	mov	WORD PTR -48[rbp], 4
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
.L4:
	mov	edi, 2048
	call	malloc@PLT
	mov	QWORD PTR -96[rbp], rax
	mov	rsi, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, -1
	call	exit@PLT
.L5:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 14
	mov	QWORD PTR -72[rbp], rax
	mov	DWORD PTR -108[rbp], 0
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	movzx	edx, BYTE PTR 8[rdx+rax]
	mov	eax, DWORD PTR -108[rbp]
	cdqe
	mov	BYTE PTR -14[rbp+rax], dl
	add	DWORD PTR -108[rbp], 1
.L6:
	mov	eax, DWORD PTR -108[rbp]
	cmp	eax, 5
	jbe	.L7
	mov	DWORD PTR -104[rbp], 0
	jmp	.L8
.L9:
	mov	rdx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	movzx	edx, BYTE PTR 14[rdx+rax]
	mov	eax, DWORD PTR -104[rbp]
	cdqe
	mov	BYTE PTR -18[rbp+rax], dl
	add	DWORD PTR -104[rbp], 1
.L8:
	mov	eax, DWORD PTR -104[rbp]
	cmp	eax, 3
	jbe	.L9
.L16:
	mov	rsi, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -56[rbp], rax
	cmp	QWORD PTR -56[rbp], 0
	jns	.L10
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, -1
	call	exit@PLT
.L10:
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, 41
	ja	.L11
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -96[rbp]
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, WORD PTR 12[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	cmp	ax, 2054
	je	.L13
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, WORD PTR 12[rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -96[rbp]
	add	rax, 14
	mov	QWORD PTR -80[rbp], rax
	lea	rdx, -18[rbp]
	lea	rcx, -14[rbp]
	mov	rax, QWORD PTR -80[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	compare_arp_packets
	test	eax, eax
	jne	.L14
	lea	rdi, .LC6[rip]
	call	puts@PLT
	nop
	mov	rax, QWORD PTR -96[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	lea	rdi, .LC7[rip]
	call	system@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L18
	jmp	.L19
.L14:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	dump_arp
.L12:
	jmp	.L16
.L19:
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC8:
	.string	"ARP HTYPE: Ethernet(0x%04X)\n"
.LC9:
	.string	"ARP HYPE: 0x%04X\n"
.LC10:
	.string	"ARP PTYPE: IPv4(0x%04X)\n"
.LC11:
	.string	"ARP PTYPE: 0x%04X\n"
.LC12:
	.string	"ARP HLEN: %d\n"
.LC13:
	.string	"ARP PLEN: %d\n"
.LC14:
	.string	"ARP OPCODE: Request(0x%04X)\n"
.LC15:
	.string	"ARP OPCODE: Response(0x%04X)\n"
.LC16:
	.string	"ARP OPCODE: 0x%04X\n"
	.align 8
.LC17:
	.string	"ARP Sender MAC: %02X:%02X:%02X:%02X:%02X:%02X\n"
.LC18:
	.string	"ARP Sender IP: %d.%d.%d.%d\n"
	.align 8
.LC19:
	.string	"ARP Target MAC: %02X:%02X:%02X:%02X:%02X:%02X\n"
.LC20:
	.string	"ARP Target IP: %d.%d.%d.%d\n"
	.align 8
.LC21:
	.string	"ARP DONE ====================="
	.text
	.type	dump_arp, @function
dump_arp:
.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -6[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -4[rbp], ax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	WORD PTR -2[rbp], ax
	movzx	eax, WORD PTR -6[rbp]
	cmp	eax, 1
	jne	.L21
	movzx	eax, WORD PTR -6[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L22
.L21:
	movzx	eax, WORD PTR -6[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L22:
	movzx	eax, WORD PTR -4[rbp]
	cmp	eax, 2048
	jne	.L23
	movzx	eax, WORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L24
.L23:
	movzx	eax, WORD PTR -4[rbp]
	mov	esi, eax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L24:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 4[rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 5[rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, WORD PTR -2[rbp]
	cmp	eax, 1
	je	.L25
	cmp	eax, 2
	je	.L26
	jmp	.L29
.L25:
	movzx	eax, WORD PTR -2[rbp]
	mov	esi, eax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L26:
	movzx	eax, WORD PTR -2[rbp]
	mov	esi, eax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L28
.L29:
	movzx	eax, WORD PTR -2[rbp]
	mov	esi, eax
	lea	rdi, .LC16[rip]
	mov	eax, 0
	call	printf@PLT
	nop
.L28:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 13[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 12[rax]
	movzx	r8d, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 11[rax]
	movzx	edi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 10[rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 9[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 8[rax]
	movzx	eax, al
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 17[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 16[rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 15[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 14[rax]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 23[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 22[rax]
	movzx	r8d, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 21[rax]
	movzx	edi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 20[rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 19[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 18[rax]
	movzx	eax, al
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 27[rax]
	movzx	esi, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 26[rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 25[rax]
	movzx	edx, al
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 24[rax]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC21[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	dump_arp, .-dump_arp
	.section	.rodata
	.align 8
.LC22:
	.string	"============== Initial Mac: %02X:%02X:%02X:%02X:%02X:%02X\n"
.LC23:
	.string	"\t \t  Initial IP: %d.%d.%d.%d\n"
.LC24:
	.string	" \t \t Are we secure: %d \n"
	.text
	.globl	compare_arp_packets
	.type	compare_arp_packets, @function
compare_arp_packets:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 1
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	sete	al
	mov	BYTE PTR -22[rbp], al
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 14[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	sete	al
	mov	BYTE PTR -21[rbp], al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 5
	movzx	eax, BYTE PTR [rax]
	movzx	esi, al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	movzx	r8d, al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	edi, al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC22[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 3
	movzx	eax, BYTE PTR [rax]
	movzx	esi, al
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 2
	movzx	eax, BYTE PTR [rax]
	movzx	ecx, al
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	BYTE PTR -21[rbp], 0
	je	.L31
	movzx	eax, BYTE PTR -22[rbp]
	xor	eax, 1
	test	al, al
	je	.L31
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 6[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	cmp	ax, 2
	jne	.L31
	mov	DWORD PTR -20[rbp], 0
.L31:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, eax
	lea	rdi, .LC24[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L33
	call	__stack_chk_fail@PLT
.L33:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	compare_arp_packets, .-compare_arp_packets
	.globl	close_net_conn
	.type	close_net_conn, @function
close_net_conn:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rdi, .LC7[rip]
	call	system@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	close_net_conn, .-close_net_conn
	.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	"79052.c"
	.text
	.global	arpfilter
	.data
	.align	2
	.type	arpfilter, %object
	.size	arpfilter, 32
arpfilter:
	.short	40
	.byte	0
	.byte	0
	.word	12
	.short	21
	.byte	0
	.byte	1
	.word	2054
	.short	6
	.byte	0
	.byte	0
	.word	42
	.short	6
	.byte	0
	.byte	0
	.word	0
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Failed to create socket: \000"
	.align	2
.LC1:
	.ascii	"malloc\000"
	.align	2
.LC2:
	.ascii	"setsockopt\000"
	.align	2
.LC3:
	.ascii	"recv(): \000"
	.align	2
.LC4:
	.ascii	"Short packet. Packet len: %ld\012\000"
	.align	2
.LC5:
	.ascii	"Received wrong ethernet type: %X\012\000"
	.align	2
.LC6:
	.ascii	"\012 \011 \011 !!!! ATTENTION: mitm detected !!! \000"
	.align	2
.LC7:
	.ascii	"rfkill block all\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 = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L20+4
	bl	perror
	mvn	r0, #0
	bl	exit
.L2:
	mov	r0, #32
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L3
	ldr	r0, .L20+8
	bl	perror
	ldr	r0, [fp, #-40]
	bl	close
	mov	r0, #1
	bl	exit
.L3:
	mov	r2, #32
	ldr	r1, .L20+12
	ldr	r0, [fp, #-36]
	bl	memcpy
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	mov	r3, #4
	strh	r3, [fp, #-28]	@ movhi
	sub	r3, fp, #28
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	ldr	r0, .L20+16
	bl	perror
	ldr	r0, [fp, #-40]
	bl	close
	mov	r0, #1
	bl	exit
.L4:
	mov	r0, #2048
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-56]
	mov	r3, #0
	mov	r2, #2048
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-40]
	bl	recv
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L20+20
	bl	perror
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-40]
	bl	close
	mvn	r0, #0
	bl	exit
.L5:
	ldr	r3, [fp, #-56]
	add	r3, r3, #14
	str	r3, [fp, #-44]
	mov	r3, #0
	str	r3, [fp, #-64]
	b	.L6
.L7:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	add	r3, r3, #8
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #16
	ldr	r3, [fp, #-64]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #1
	str	r3, [fp, #-64]
.L6:
	ldr	r3, [fp, #-64]
	cmp	r3, #5
	bls	.L7
	mov	r3, #0
	str	r3, [fp, #-60]
	b	.L8
.L9:
	ldr	r2, [fp, #-44]
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	add	r3, r3, #14
	ldrb	r1, [r3]	@ zero_extendqisi2
	sub	r2, fp, #20
	ldr	r3, [fp, #-60]
	add	r3, r2, r3
	mov	r2, r1
	strb	r2, [r3]
	ldr	r3, [fp, #-60]
	add	r3, r3, #1
	str	r3, [fp, #-60]
.L8:
	ldr	r3, [fp, #-60]
	cmp	r3, #3
	bls	.L9
.L16:
	mov	r3, #0
	mov	r2, #2048
	ldr	r1, [fp, #-56]
	ldr	r0, [fp, #-40]
	bl	recv
	str	r0, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L20+20
	bl	perror
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-40]
	bl	close
	mvn	r0, #0
	bl	exit
.L10:
	ldr	r3, [fp, #-32]
	cmp	r3, #41
	bhi	.L11
	ldr	r1, [fp, #-32]
	ldr	r0, .L20+24
	bl	printf
	b	.L12
.L11:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3, #12]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L20+28
	cmp	r2, r3
	beq	.L13
	ldr	r3, [fp, #-52]
	ldrh	r3, [r3, #12]
	mov	r1, r3
	ldr	r0, .L20+32
	bl	printf
	mov	r0, #1
	bl	exit
.L13:
	ldr	r3, [fp, #-56]
	add	r3, r3, #14
	str	r3, [fp, #-48]
	sub	r2, fp, #20
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	compare_arp_packets
	mov	r3, r0
	cmp	r3, #0
	bne	.L14
	ldr	r0, .L20+36
	bl	puts
	nop
	ldr	r0, [fp, #-56]
	bl	free
	ldr	r0, [fp, #-40]
	bl	close
	ldr	r0, .L20+40
	bl	system
	mov	r3, #0
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	b	.L19
.L14:
	ldr	r0, [fp, #-48]
	bl	dump_arp
.L12:
	b	.L16
.L19:
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	arpfilter
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	2054
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	main, .-main
	.section	.rodata
	.align	2
.LC9:
	.ascii	"ARP HTYPE: Ethernet(0x%04X)\012\000"
	.align	2
.LC10:
	.ascii	"ARP HYPE: 0x%04X\012\000"
	.align	2
.LC11:
	.ascii	"ARP PTYPE: IPv4(0x%04X)\012\000"
	.align	2
.LC12:
	.ascii	"ARP PTYPE: 0x%04X\012\000"
	.align	2
.LC13:
	.ascii	"ARP HLEN: %d\012\000"
	.align	2
.LC14:
	.ascii	"ARP PLEN: %d\012\000"
	.align	2
.LC15:
	.ascii	"ARP OPCODE: Request(0x%04X)\012\000"
	.align	2
.LC16:
	.ascii	"ARP OPCODE: Response(0x%04X)\012\000"
	.align	2
.LC17:
	.ascii	"ARP OPCODE: 0x%04X\012\000"
	.align	2
.LC18:
	.ascii	"ARP Sender MAC: %02X:%02X:%02X:%02X:%02X:%02X\012\000"
	.align	2
.LC19:
	.ascii	"ARP Sender IP: %d.%d.%d.%d\012\000"
	.align	2
.LC20:
	.ascii	"ARP Target MAC: %02X:%02X:%02X:%02X:%02X:%02X\012\000"
	.align	2
.LC21:
	.ascii	"ARP Target IP: %d.%d.%d.%d\012\000"
	.align	2
.LC22:
	.ascii	"ARP DONE =====================\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_arp, %function
dump_arp:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-8]	@ movhi
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	strh	r3, [fp, #-6]	@ movhi
	ldrh	r3, [fp, #-10]
	cmp	r3, #1
	bne	.L23
	ldrh	r3, [fp, #-10]
	mov	r1, r3
	ldr	r0, .L32
	bl	printf
	b	.L24
.L23:
	ldrh	r3, [fp, #-10]
	mov	r1, r3
	ldr	r0, .L32+4
	bl	printf
	nop
.L24:
	ldrh	r3, [fp, #-8]
	cmp	r3, #2048
	bne	.L25
	ldrh	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L32+8
	bl	printf
	b	.L26
.L25:
	ldrh	r3, [fp, #-8]
	mov	r1, r3
	ldr	r0, .L32+12
	bl	printf
	nop
.L26:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #4]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L32+16
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L32+20
	bl	printf
	ldrh	r3, [fp, #-6]
	cmp	r3, #1
	beq	.L27
	cmp	r3, #2
	beq	.L28
	b	.L31
.L27:
	ldrh	r3, [fp, #-6]
	mov	r1, r3
	ldr	r0, .L32+24
	bl	printf
	b	.L30
.L28:
	ldrh	r3, [fp, #-6]
	mov	r1, r3
	ldr	r0, .L32+28
	bl	printf
	b	.L30
.L31:
	ldrh	r3, [fp, #-6]
	mov	r1, r3
	ldr	r0, .L32+32
	bl	printf
	nop
.L30:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #8]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #9]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #10]	@ zero_extendqisi2
	mov	lr, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #11]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #13]	@ zero_extendqisi2
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L32+36
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #14]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #15]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #16]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #17]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L32+40
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #18]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #19]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #20]	@ zero_extendqisi2
	mov	lr, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #21]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #22]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #23]	@ zero_extendqisi2
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L32+44
	bl	printf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #24]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #25]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #26]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3, #27]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L32+48
	bl	printf
	ldr	r0, .L32+52
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.size	dump_arp, .-dump_arp
	.section	.rodata
	.align	2
.LC23:
	.ascii	"============== Initial Mac: %02X:%02X:%02X:%02X:%02"
	.ascii	"X:%02X\012\000"
	.align	2
.LC24:
	.ascii	"\011 \011  Initial IP: %d.%d.%d.%d\012\000"
	.align	2
.LC25:
	.ascii	" \011 \011 Are we secure: %d \012\000"
	.align	2
.LC26:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	compare_arp_packets
	.syntax unified
	.arm
	.fpu softvfp
	.type	compare_arp_packets, %function
compare_arp_packets:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	add	r3, r3, #8
	mov	r2, #6
	mov	r1, r3
	ldr	r0, [fp, #-36]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-22]
	ldr	r3, [fp, #-32]
	add	r3, r3, #14
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	moveq	r3, #1
	movne	r3, #0
	strb	r3, [fp, #-21]
	ldr	r3, [fp, #-36]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	ip, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	lr, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-36]
	add	r3, r3, #5
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp, #8]
	str	r1, [sp, #4]
	str	r2, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L38+4
	bl	printf
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, #2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, #3
	ldrb	r3, [r3]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L38+8
	bl	printf
	ldrb	r3, [fp, #-21]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L35
	ldrb	r3, [fp, #-22]
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-32]
	ldrh	r3, [r3, #6]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	cmp	r3, #2
	bne	.L35
	mov	r3, #0
	str	r3, [fp, #-20]
.L35:
	ldr	r1, [fp, #-20]
	ldr	r0, .L38+12
	bl	printf
	ldr	r3, [fp, #-20]
	ldr	r2, .L38
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L37
	bl	__stack_chk_fail
.L37:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L39:
	.align	2
.L38:
	.word	.LC26
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	compare_arp_packets, .-compare_arp_packets
	.align	2
	.global	close_net_conn
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_net_conn, %function
close_net_conn:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L41
	bl	system
	nop
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC7
	.size	close_net_conn, .-close_net_conn
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
