	.file	"151707048.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"ioctl error while looking performing ioctl on interface"
	.align 8
.LC1:
	.string	"(ioctl number 0x%08x, interface %s)\n"
	.text
	.type	lookupInterfaceInfo, @function
lookupInterfaceInfo:
.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, 32
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	mov	QWORD PTR -24[rbp], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -8[rbp]
	movsx	rcx, eax
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR -8[rbp]
	lea	rsi, .LC1[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	lookupInterfaceInfo, .-lookupInterfaceInfo
	.section	.rodata
.LC2:
	.string	"Bind error"
	.text
	.type	bindToInterface, @function
bindToInterface:
.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, 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
	lea	rdx, -48[rbp]
	mov	rsi, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	rcx, rdx
	mov	edx, 35123
	mov	edi, eax
	call	lookupInterfaceInfo
	test	eax, eax
	jns	.L5
	mov	eax, -1
	jmp	.L8
.L5:
	mov	WORD PTR -80[rbp], 17
	mov	edi, 3
	call	htons@PLT
	mov	WORD PTR -78[rbp], ax
	mov	eax, DWORD PTR -32[rbp]
	mov	DWORD PTR -76[rbp], eax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	edx, 20
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L7
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	bindToInterface, .-bindToInterface
	.section	.rodata
.LC3:
	.string	"Socket error"
	.text
	.type	openSocket, @function
openSocket:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	edi, 3
	call	htons@PLT
	movzx	eax, ax
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L11
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L12
.L11:
	mov	rdx, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	bindToInterface
	cmp	eax, -1
	jne	.L13
	mov	eax, -1
	jmp	.L12
.L13:
	mov	eax, DWORD PTR -4[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	openSocket, .-openSocket
	.globl	packet_socket_read_buffer_length
	.type	packet_socket_read_buffer_length, @function
packet_socket_read_buffer_length:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	DWORD PTR -4[rbp], edi
	mov	eax, 65536
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	packet_socket_read_buffer_length, .-packet_socket_read_buffer_length
	.globl	packet_socket_extract_packet
	.type	packet_socket_extract_packet, @function
packet_socket_extract_packet:
.LFB10:
	.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	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	mov	QWORD PTR -40[rbp], r8
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
	cmp	DWORD PTR -20[rbp], 0
	jne	.L17
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	jmp	.L18
.L17:
	mov	edx, 0
.L18:
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -16[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	packet_socket_extract_packet, .-packet_socket_extract_packet
	.globl	packet_socket_hwaddr
	.type	packet_socket_hwaddr, @function
packet_socket_hwaddr:
.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, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	QWORD PTR -80[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdx, -48[rbp]
	mov	rsi, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rcx, rdx
	mov	edx, 35111
	mov	edi, eax
	call	lookupInterfaceInfo
	test	eax, eax
	jns	.L21
	mov	eax, -1
	jmp	.L25
.L21:
	movzx	eax, WORD PTR -32[rbp]
	cmp	ax, 1
	je	.L23
	mov	eax, -1
	jmp	.L25
.L23:
	mov	rax, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR [rax]
	cmp	rax, 5
	jg	.L24
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], 6
	mov	eax, -2
	jmp	.L25
.L24:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR [rax], 6
	lea	rax, -48[rbp]
	lea	rcx, 18[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, 6
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	eax, 0
.L25:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L26
	call	__stack_chk_fail@PLT
.L26:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	packet_socket_hwaddr, .-packet_socket_hwaddr
	.section	.rodata
.LC4:
	.string	"getifaddrs"
	.text
	.globl	packet_socket_enumerate_interfaces
	.type	packet_socket_enumerate_interfaces, @function
packet_socket_enumerate_interfaces:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	getifaddrs@PLT
	cmp	eax, -1
	jne	.L28
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L33
.L28:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L30
.L32:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L31
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	rdx
.L31:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L30:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L32
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	freeifaddrs@PLT
	mov	eax, 0
.L33:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L34
	call	__stack_chk_fail@PLT
.L34:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	packet_socket_enumerate_interfaces, .-packet_socket_enumerate_interfaces
	.globl	packet_socket_create_and_bind
	.type	packet_socket_create_and_bind, @function
packet_socket_create_and_bind:
.LFB13:
	.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]
	mov	rdi, rax
	call	openSocket
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cmp	eax, -1
	jne	.L36
	mov	eax, -1
	jmp	.L37
.L36:
	mov	eax, DWORD PTR -4[rbp]
.L37:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	packet_socket_create_and_bind, .-packet_socket_create_and_bind
	.section	.rodata
.LC5:
	.string	"close"
	.text
	.globl	packet_socket_close
	.type	packet_socket_close, @function
packet_socket_close:
.LFB14:
	.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 -4[rbp]
	mov	edi, eax
	call	close@PLT
	test	eax, eax
	jns	.L39
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L40
.L39:
	mov	eax, 0
.L40:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	packet_socket_close, .-packet_socket_close
	.section	.rodata
	.align 8
.LC6:
	.string	"WARNING: packet-socket buffer size %d too small for received packet of %d bytes\n"
	.text
	.globl	packet_socket_read
	.type	packet_socket_read, @function
packet_socket_read:
.LFB15:
	.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 -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
.L48:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 32
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jle	.L42
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -40[rbp]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
.L42:
	cmp	QWORD PTR -8[rbp], -1
	jne	.L52
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L48
	cmp	eax, 11
	je	.L46
	jmp	.L51
.L46:
	mov	rax, -2
	jmp	.L49
.L51:
	mov	rax, -1
	jmp	.L49
.L52:
	nop
	mov	rax, QWORD PTR -8[rbp]
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	packet_socket_read, .-packet_socket_read
	.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	"151707048.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ioctl error while looking performing ioctl on inter"
	.ascii	"face\000"
	.align	2
.LC1:
	.ascii	"(ioctl number 0x%08x, interface %s)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	lookupInterfaceInfo, %function
lookupInterfaceInfo:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r2, #16
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	strncpy
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-8]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L4
	bl	perror
	ldr	r3, .L4+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, .L4+8
	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	.LC0
	.word	stderr
	.word	.LC1
	.size	lookupInterfaceInfo, .-lookupInterfaceInfo
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Bind error\000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bindToInterface, %function
bindToInterface:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	str	r1, [fp, #-68]
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	ldr	r2, .L12+4
	ldr	r1, [fp, #-68]
	ldr	r0, [fp, #-64]
	bl	lookupInterfaceInfo
	mov	r3, r0
	cmp	r3, #0
	bge	.L7
	mvn	r3, #0
	b	.L10
.L7:
	mov	r3, #17
	strh	r3, [fp, #-60]	@ movhi
	mov	r0, #3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-58]	@ movhi
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-56]
	sub	r3, fp, #60
	mov	r2, #20
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L9
	ldr	r0, .L12+8
	bl	perror
	mvn	r3, #0
	b	.L10
.L9:
	mov	r3, #0
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	35123
	.word	.LC2
	.size	bindToInterface, .-bindToInterface
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Socket error\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	openSocket, %function
openSocket:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L18
	bl	perror
	mvn	r3, #0
	b	.L16
.L15:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	bindToInterface
	mov	r3, r0
	cmn	r3, #1
	bne	.L17
	mvn	r3, #0
	b	.L16
.L17:
	ldr	r3, [fp, #-8]
.L16:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L19:
	.align	2
.L18:
	.word	.LC4
	.size	openSocket, .-openSocket
	.align	2
	.global	packet_socket_read_buffer_length
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_socket_read_buffer_length, %function
packet_socket_read_buffer_length:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, #65536
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	packet_socket_read_buffer_length, .-packet_socket_read_buffer_length
	.align	2
	.global	packet_socket_extract_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_socket_extract_packet, %function
packet_socket_extract_packet:
	@ args = 4, 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, #-20]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L23
	ldr	r3, [fp, #-12]
	b	.L24
.L23:
	mov	r3, #0
.L24:
	ldr	r2, [fp, #4]
	str	r3, [r2]
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	packet_socket_extract_packet, .-packet_socket_extract_packet
	.section	.rodata
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	packet_socket_hwaddr
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_socket_hwaddr, %function
packet_socket_hwaddr:
	@ 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]
	str	r3, [fp, #-60]
	ldr	r3, .L33
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #40
	ldr	r2, .L33+4
	ldr	r1, [fp, #-52]
	ldr	r0, [fp, #-48]
	bl	lookupInterfaceInfo
	mov	r3, r0
	cmp	r3, #0
	bge	.L27
	mvn	r3, #0
	b	.L31
.L27:
	ldrh	r3, [fp, #-24]
	cmp	r3, #1
	beq	.L29
	mvn	r3, #0
	b	.L31
.L29:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	cmp	r3, #5
	bgt	.L30
	ldr	r3, [fp, #-60]
	mov	r2, #6
	str	r2, [r3]
	mvn	r3, #1
	b	.L31
.L30:
	ldr	r3, [fp, #-60]
	mov	r2, #6
	str	r2, [r3]
	sub	r3, fp, #40
	add	r3, r3, #18
	mov	r2, #6
	mov	r1, r3
	ldr	r0, [fp, #-56]
	bl	memcpy
	mov	r3, #0
.L31:
	ldr	r2, .L33
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L32
	bl	__stack_chk_fail
.L32:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L34:
	.align	2
.L33:
	.word	.LC5
	.word	35111
	.size	packet_socket_hwaddr, .-packet_socket_hwaddr
	.section	.rodata
	.align	2
.LC6:
	.ascii	"getifaddrs\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	packet_socket_enumerate_interfaces
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_socket_enumerate_interfaces, %function
packet_socket_enumerate_interfaces:
	@ 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]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r0, r3
	bl	getifaddrs
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L43+4
	bl	perror
	mvn	r3, #0
	b	.L41
.L36:
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-12]
	b	.L38
.L40:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	mov	r0, r2
	blx	r3
.L39:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
.L38:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L40
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	freeifaddrs
	mov	r3, #0
.L41:
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC7
	.word	.LC6
	.size	packet_socket_enumerate_interfaces, .-packet_socket_enumerate_interfaces
	.align	2
	.global	packet_socket_create_and_bind
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_socket_create_and_bind, %function
packet_socket_create_and_bind:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	openSocket
	str	r0, [fp, #-8]
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	fcntl
	mov	r3, r0
	cmn	r3, #1
	bne	.L46
	mvn	r3, #0
	b	.L47
.L46:
	ldr	r3, [fp, #-8]
.L47:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	packet_socket_create_and_bind, .-packet_socket_create_and_bind
	.section	.rodata
	.align	2
.LC8:
	.ascii	"close\000"
	.text
	.align	2
	.global	packet_socket_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_socket_close, %function
packet_socket_close:
	@ 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	r0, [fp, #-8]
	bl	close
	mov	r3, r0
	cmp	r3, #0
	bge	.L49
	ldr	r0, .L51
	bl	perror
	mvn	r3, #0
	b	.L50
.L49:
	mov	r3, #0
.L50:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L52:
	.align	2
.L51:
	.word	.LC8
	.size	packet_socket_close, .-packet_socket_close
	.section	.rodata
	.align	2
.LC9:
	.ascii	"WARNING: packet-socket buffer size %d too small for"
	.ascii	" received packet of %d bytes\012\000"
	.text
	.align	2
	.global	packet_socket_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	packet_socket_read, %function
packet_socket_read:
	@ 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, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
.L60:
	ldr	r2, [fp, #-24]
	mov	r3, #32
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	recv
	str	r0, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	ble	.L54
	ldr	r3, .L65
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	ldr	r1, .L65+4
	bl	fprintf
	ldr	r3, [fp, #-28]
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
.L54:
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L64
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L60
	cmp	r3, #11
	beq	.L58
	b	.L63
.L58:
	mvn	r3, #1
	b	.L61
.L63:
	mvn	r3, #0
	b	.L61
.L64:
	nop
	ldr	r3, [fp, #-8]
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	stderr
	.word	.LC9
	.size	packet_socket_read, .-packet_socket_read
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
