	.file	"32506.c"
	.intel_syntax noprefix
	.text
	.globl	getInterface
	.type	getInterface, @function
getInterface:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	call	if_nameindex@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -32[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	cdqe
	sal	rax, 4
	mov	rdx, rax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	if_freenameindex@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, rax
	mov	rbx, rdx
	mov	eax, ecx
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getInterface, .-getInterface
	.globl	fillArpPacket
	.type	fillArpPacket, @function
fillArpPacket:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	QWORD PTR -32[rbp], rcx
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 2
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 3
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 4
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 5
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 6[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 7[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 9[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 10[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 4[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 11[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 5[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 12
	mov	BYTE PTR [rax], 8
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 13
	mov	BYTE PTR [rax], 6
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 14
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 15
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 16
	mov	BYTE PTR [rax], 8
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 17
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 18
	mov	BYTE PTR [rax], 6
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 19
	mov	BYTE PTR [rax], 4
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 20
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 21
	mov	BYTE PTR [rax], 1
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 22[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 23[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 24[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 25[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 26[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 4[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 27[rax]
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, BYTE PTR 5[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 28[rax]
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 29[rax]
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 30[rax]
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 31[rax]
	mov	rax, QWORD PTR -32[rbp]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 32
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 33
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 34
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 35
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 36
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 37
	mov	BYTE PTR [rax], -1
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 38[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 39[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 1[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 2[rax]
	mov	BYTE PTR [rdx], al
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, 41[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 3[rax]
	mov	BYTE PTR [rdx], al
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	fillArpPacket, .-fillArpPacket
	.globl	getSocketAddress
	.type	getSocketAddress, @function
getSocketAddress:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -44[rbp]
	mov	DWORD PTR -28[rbp], eax
	mov	BYTE PTR -21[rbp], 6
	mov	BYTE PTR -20[rbp], -1
	mov	BYTE PTR -19[rbp], -1
	mov	BYTE PTR -18[rbp], -1
	mov	BYTE PTR -17[rbp], -1
	mov	BYTE PTR -16[rbp], -1
	mov	BYTE PTR -15[rbp], -1
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	eax, DWORD PTR -16[rbp]
	mov	DWORD PTR 16[rcx], eax
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rax, QWORD PTR -40[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	getSocketAddress, .-getSocketAddress
	.section	.rodata
.LC0:
	.string	"SIOCGIFHWADDR"
	.text
	.globl	getLocalMac
	.type	getLocalMac, @function
getLocalMac:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 40
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rcx, QWORD PTR -88[rbp]
	lea	rax, -48[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, 35111
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L8
	lea	rdi, .LC0[rip]
	call	perror@PLT
.L8:
	lea	rax, -48[rbp]
	add	rax, 16
	add	rax, 2
	mov	QWORD PTR -56[rbp], rax
	mov	rcx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	getLocalMac, .-getLocalMac
	.section	.rodata
.LC1:
	.string	"SIOCGIFADDR"
	.text
	.globl	getLocalIpAddr
	.type	getLocalIpAddr, @function
getLocalIpAddr:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	DWORD PTR -76[rbp], esi
	mov	QWORD PTR -88[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -88[rbp]
	lea	rax, -48[rbp]
	mov	edx, 15
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	WORD PTR -32[rbp], 2
	lea	rdx, -48[rbp]
	mov	eax, DWORD PTR -76[rbp]
	mov	esi, 35093
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L11
	lea	rdi, .LC1[rip]
	call	perror@PLT
.L11:
	lea	rax, -48[rbp]
	add	rax, 16
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	add	rax, 4
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR [rax], edx
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	getLocalIpAddr, .-getLocalIpAddr
	.section	.rodata
.LC2:
	.string	"recvfrom"
	.align 8
.LC3:
	.string	"%02X:%02X:%02X:%02X:%02X:%02X\n"
	.text
	.globl	receiveArp
	.type	receiveArp, @function
receiveArp:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 96
	mov	DWORD PTR -84[rbp], edi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L17:
	lea	rsi, -64[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	r9d, 0
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 42
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	jne	.L14
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, -64[rbp]
	lea	rcx, 28[rdx]
	mov	edx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcmp@PLT
	test	eax, eax
	jne	.L17
	movzx	eax, BYTE PTR -43[rbp]
	cmp	al, 2
	jne	.L17
	movzx	eax, BYTE PTR -37[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -38[rbp]
	movzx	r8d, al
	movzx	eax, BYTE PTR -39[rbp]
	movzx	edi, al
	movzx	eax, BYTE PTR -40[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -41[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -42[rbp]
	movzx	eax, al
	sub	rsp, 8
	push	rsi
	mov	r9d, r8d
	mov	r8d, edi
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	nop
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L18
	call	__stack_chk_fail@PLT
.L18:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	receiveArp, .-receiveArp
	.section	.rodata
	.align 8
.LC4:
	.string	"Usage: %s if_index ipv4_address\nCheck interface indices with 'ip link'\n"
.LC5:
	.string	"socket"
.LC6:
	.string	"Invalid IPv4 address"
.LC7:
	.string	"sendto"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	QWORD PTR -176[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -164[rbp], 3
	je	.L21
	mov	rax, QWORD PTR -176[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	mov	rax, QWORD PTR -176[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -148[rbp], eax
	mov	rax, QWORD PTR -176[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	QWORD PTR -136[rbp], rax
	mov	eax, DWORD PTR -148[rbp]
	sub	eax, 1
	mov	edi, eax
	call	getInterface
	mov	ecx, eax
	mov	rax, rdx
	mov	DWORD PTR -128[rbp], ecx
	mov	QWORD PTR -120[rbp], rax
	mov	edi, 2054
	call	htons@PLT
	movzx	eax, ax
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -144[rbp], eax
	cmp	DWORD PTR -144[rbp], -1
	jne	.L22
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	lea	rdx, -80[rbp]
	mov	rax, QWORD PTR -136[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], 0
	je	.L23
	cmp	DWORD PTR -140[rbp], -1
	jne	.L24
.L23:
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	rdx, QWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	lea	rax, -86[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getLocalMac
	mov	rdx, QWORD PTR -120[rbp]
	mov	ecx, DWORD PTR -144[rbp]
	lea	rax, -90[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	getLocalIpAddr
	lea	rcx, -90[rbp]
	lea	rdx, -80[rbp]
	lea	rsi, -86[rbp]
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	fillArpPacket
	mov	eax, DWORD PTR -128[rbp]
	mov	edx, eax
	lea	rax, -112[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	getSocketAddress
	lea	rdx, -112[rbp]
	lea	rsi, -64[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	r9d, 20
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 42
	mov	edi, eax
	call	sendto@PLT
	mov	DWORD PTR -140[rbp], eax
	cmp	DWORD PTR -140[rbp], -1
	jne	.L25
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -144[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	receiveArp
	mov	eax, DWORD PTR -144[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L27
	call	__stack_chk_fail@PLT
.L27:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.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	"32506.c"
	.text
	.align	2
	.global	getInterface
	.syntax unified
	.arm
	.fpu softvfp
	.type	getInterface, %function
getInterface:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	bl	if_nameindex
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-28]
	lsl	r3, r3, #3
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	if_freenameindex
	ldr	r3, [fp, #-24]
	mov	r2, r3
	sub	r3, fp, #12
	ldm	r3, {r0, r1}
	stm	r2, {r0, r1}
	ldr	r0, [fp, #-24]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getInterface, .-getInterface
	.align	2
	.global	fillArpPacket
	.syntax unified
	.arm
	.fpu softvfp
	.type	fillArpPacket, %function
fillArpPacket:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-8]
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #2
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #3
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #4
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #5
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #6
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #7
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #9
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #3]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #10
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #4]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #11
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #5]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #12
	mov	r2, #8
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #13
	mov	r2, #6
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #14
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #15
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #16
	mov	r2, #8
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #17
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #18
	mov	r2, #6
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #19
	mov	r2, #4
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #20
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #21
	mov	r2, #1
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #22
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #23
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #24
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #25
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #3]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #26
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #4]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #27
	ldr	r2, [fp, #-12]
	ldrb	r2, [r2, #5]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #28
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #29
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #30
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2, #2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #31
	ldr	r2, [fp, #-20]
	ldrb	r2, [r2, #3]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #32
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #33
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #34
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #35
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #36
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #37
	mvn	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #38
	ldr	r2, [fp, #-16]
	ldrb	r2, [r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #39
	ldr	r2, [fp, #-16]
	ldrb	r2, [r2, #1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #40
	ldr	r2, [fp, #-16]
	ldrb	r2, [r2, #2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #41
	ldr	r2, [fp, #-16]
	ldrb	r2, [r2, #3]	@ zero_extendqisi2
	strb	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	fillArpPacket, .-fillArpPacket
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getSocketAddress
	.syntax unified
	.arm
	.fpu softvfp
	.type	getSocketAddress, %function
getSocketAddress:
	@ 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, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-24]
	mov	r3, #6
	strb	r3, [fp, #-17]
	mvn	r3, #0
	strb	r3, [fp, #-16]
	mvn	r3, #0
	strb	r3, [fp, #-15]
	mvn	r3, #0
	strb	r3, [fp, #-14]
	mvn	r3, #0
	strb	r3, [fp, #-13]
	mvn	r3, #0
	strb	r3, [fp, #-12]
	mvn	r3, #0
	strb	r3, [fp, #-11]
	ldr	r3, [fp, #-32]
	mov	lr, r3
	sub	ip, fp, #28
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [ip]
	str	r3, [lr]
	ldr	r3, .L7
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	ldr	r0, [fp, #-32]
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.size	getSocketAddress, .-getSocketAddress
	.section	.rodata
	.align	2
.LC1:
	.ascii	"SIOCGIFHWADDR\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getLocalMac
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLocalMac, %function
getLocalMac:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #40
	mov	r2, #15
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	strncpy
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L12+4
	ldr	r0, [fp, #-52]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L10
	ldr	r0, .L12+8
	bl	perror
.L10:
	sub	r3, fp, #40
	add	r3, r3, #16
	add	r3, r3, #2
	str	r3, [fp, #-44]
	mov	r2, #6
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-48]
	bl	memcpy
	nop
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC2
	.word	35111
	.word	.LC1
	.size	getLocalMac, .-getLocalMac
	.section	.rodata
	.align	2
.LC3:
	.ascii	"SIOCGIFADDR\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getLocalIpAddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	getLocalIpAddr, %function
getLocalIpAddr:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #56
	str	r0, [fp, #-48]
	str	r1, [fp, #-52]
	str	r2, [fp, #-56]
	ldr	r3, .L17
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r2, #15
	ldr	r1, [fp, #-56]
	mov	r0, r3
	bl	strncpy
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	sub	r3, fp, #40
	mov	r2, r3
	ldr	r1, .L17+4
	ldr	r0, [fp, #-52]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L17+8
	bl	perror
.L15:
	sub	r3, fp, #40
	add	r3, r3, #16
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	memcpy
	nop
	ldr	r3, .L17
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L16
	bl	__stack_chk_fail
.L16:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L18:
	.align	2
.L17:
	.word	.LC4
	.word	35093
	.word	.LC3
	.size	getLocalIpAddr, .-getLocalIpAddr
	.section	.rodata
	.align	2
.LC5:
	.ascii	"recvfrom\000"
	.align	2
.LC6:
	.ascii	"%02X:%02X:%02X:%02X:%02X:%02X\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	receiveArp
	.syntax unified
	.arm
	.fpu softvfp
	.type	receiveArp, %function
receiveArp:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L23:
	sub	r1, fp, #52
	mov	r3, #0
	str	r3, [sp, #4]
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #42
	ldr	r0, [fp, #-64]
	bl	recvfrom
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L20
	ldr	r0, .L26+4
	bl	perror
	mov	r0, #1
	bl	exit
.L20:
	sub	r3, fp, #52
	add	r3, r3, #28
	mov	r2, #4
	ldr	r1, [fp, #-68]
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L23
	ldrb	r3, [fp, #-31]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L23
	ldrb	r3, [fp, #-30]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-29]	@ zero_extendqisi2
	mov	ip, r3
	ldrb	r3, [fp, #-28]	@ zero_extendqisi2
	mov	lr, r3
	ldrb	r3, [fp, #-27]	@ zero_extendqisi2
	ldrb	r2, [fp, #-26]	@ zero_extendqisi2
	ldrb	r1, [fp, #-25]	@ zero_extendqisi2
	str	r1, [sp, #8]
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, lr
	mov	r2, ip
	mov	r1, r0
	ldr	r0, .L26+8
	bl	printf
	nop
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.size	receiveArp, .-receiveArp
	.section	.rodata
	.align	2
.LC8:
	.ascii	"Usage: %s if_index ipv4_address\012Check interface "
	.ascii	"indices with 'ip link'\012\000"
	.align	2
.LC9:
	.ascii	"socket\000"
	.align	2
.LC10:
	.ascii	"Invalid IPv4 address\000"
	.align	2
.LC11:
	.ascii	"sendto\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 = 128
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #136
	str	r0, [fp, #-128]
	str	r1, [fp, #-132]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-128]
	cmp	r3, #3
	beq	.L29
	ldr	r3, .L36+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L36+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L29:
	ldr	r3, [fp, #-132]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-132]
	ldr	r3, [r3, #8]
	str	r3, [fp, #-120]
	ldr	r3, [fp, #-124]
	sub	r2, r3, #1
	sub	r3, fp, #108
	mov	r1, r2
	mov	r0, r3
	bl	getInterface
	ldr	r0, .L36+12
	bl	htons
	mov	r3, r0
	mov	r2, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [fp, #-116]
	ldr	r3, [fp, #-116]
	cmn	r3, #1
	bne	.L30
	ldr	r0, .L36+16
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, [fp, #-120]
	mov	r0, #2
	bl	inet_pton
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L32
.L31:
	ldr	r0, .L36+20
	bl	puts
	mov	r0, #1
	bl	exit
.L32:
	ldr	r2, [fp, #-104]
	sub	r3, fp, #76
	ldr	r1, [fp, #-116]
	mov	r0, r3
	bl	getLocalMac
	ldr	r2, [fp, #-104]
	sub	r3, fp, #80
	ldr	r1, [fp, #-116]
	mov	r0, r3
	bl	getLocalIpAddr
	sub	r3, fp, #80
	sub	r2, fp, #68
	sub	r1, fp, #76
	sub	r0, fp, #52
	bl	fillArpPacket
	ldr	r3, [fp, #-108]
	mov	r2, r3
	sub	r3, fp, #100
	mov	r1, r2
	mov	r0, r3
	bl	getSocketAddress
	sub	r1, fp, #52
	mov	r3, #20
	str	r3, [sp, #4]
	sub	r3, fp, #100
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #42
	ldr	r0, [fp, #-116]
	bl	sendto
	str	r0, [fp, #-112]
	ldr	r3, [fp, #-112]
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L36+24
	bl	perror
	mov	r0, #1
	bl	exit
.L33:
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, [fp, #-116]
	bl	receiveArp
	ldr	r0, [fp, #-116]
	bl	close
	mov	r3, #0
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC12
	.word	stderr
	.word	.LC8
	.word	2054
	.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
