	.file	"181197.c"
	.intel_syntax noprefix
	.text
	.local	packets_total
	.comm	packets_total,8,8
	.local	bytes_total
	.comm	bytes_total,8,8
	.local	sigint
	.comm	sigint,4,4
	.type	sighandler, @function
sighandler:
.LFB6:
	.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	DWORD PTR sigint[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	sighandler, .-sighandler
	.globl	cntrl_fd
	.bss
	.align 4
	.type	cntrl_fd, @object
	.size	cntrl_fd, 4
cntrl_fd:
	.zero	4
	.globl	ring
	.align 32
	.type	ring, @object
	.size	ring, 48
ring:
	.zero	48
	.section	.rodata
	.align 8
.LC0:
	.string	"tcpdump -i %s dst port %d and udp -ddd"
.LC1:
	.string	"Active Filter: %s\n"
.LC2:
	.string	"r"
	.align 8
.LC3:
	.string	"Cannot compile filter using tcpdump."
.LC4:
	.string	"%d\n"
.LC5:
	.string	"cannot read lineCount."
.LC6:
	.string	"%u %u %u %u\n"
.LC7:
	.string	"fscanf: error in reading"
	.text
	.globl	set_packet_filter
	.type	set_packet_filter, @function
set_packet_filter:
.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, 576
	mov	DWORD PTR -564[rbp], edi
	mov	QWORD PTR -576[rbp], rsi
	mov	DWORD PTR -568[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -560[rbp], 0
	mov	ecx, DWORD PTR -568[rbp]
	mov	rdx, QWORD PTR -576[rbp]
	lea	rax, -528[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -528[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -528[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -552[rbp], rax
	cmp	QWORD PTR -552[rbp], 0
	jne	.L3
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L3:
	lea	rdx, -560[rbp]
	mov	rax, QWORD PTR -552[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	test	eax, eax
	jg	.L5
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L5:
	mov	eax, DWORD PTR -560[rbp]
	cdqe
	sal	rax, 3
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	eax, DWORD PTR -560[rbp]
	mov	WORD PTR -544[rbp], ax
	mov	DWORD PTR -556[rbp], 0
	jmp	.L6
.L8:
	mov	rdx, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rsi, 4[rax]
	mov	rdx, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rcx, 3[rax]
	mov	rdx, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	lea	rdx, 2[rax]
	mov	rdi, QWORD PTR -536[rbp]
	mov	eax, DWORD PTR -556[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdi
	mov	rdi, rax
	mov	rax, QWORD PTR -552[rbp]
	mov	r9, rsi
	mov	r8, rcx
	mov	rcx, rdx
	mov	rdx, rdi
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 3
	jg	.L7
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	free@PLT
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L9
.L7:
	lea	rdx, -544[rbp]
	mov	eax, DWORD PTR -564[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	add	DWORD PTR -556[rbp], 1
.L6:
	mov	eax, DWORD PTR -560[rbp]
	cmp	DWORD PTR -556[rbp], eax
	jl	.L8
	mov	rax, QWORD PTR -552[rbp]
	mov	rdi, rax
	call	pclose@PLT
	mov	rax, QWORD PTR -536[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, 0
.L9:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	set_packet_filter, .-set_packet_filter
	.section	.rodata
.LC8:
	.string	"socket"
.LC9:
	.string	"setsockopt"
.LC10:
	.string	"mmap"
.LC11:
	.string	"the_stack_data/181197.c"
.LC12:
	.string	"ring->rd"
.LC13:
	.string	"bind"
	.text
	.type	setup_socket, @function
setup_socket:
.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, 96
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	DWORD PTR -84[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -64[rbp], 2
	mov	DWORD PTR -60[rbp], 4194304
	mov	DWORD PTR -56[rbp], 2048
	mov	DWORD PTR -52[rbp], 64
	mov	edi, 3
	call	htons@PLT
	movzx	eax, ax
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], 0
	jns	.L12
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L12:
	mov	edx, DWORD PTR -84[rbp]
	mov	rcx, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	set_packet_filter
	lea	rdx, -64[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 10
	mov	esi, 263
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L13
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	rax, QWORD PTR -72[rbp]
	add	rax, 16
	mov	edx, 28
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -56[rbp]
	mov	DWORD PTR 24[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR -52[rbp]
	mov	DWORD PTR 20[rax], edx
	mov	eax, DWORD PTR -60[rbp]
	imul	eax, DWORD PTR -52[rbp]
	mov	edx, 0
	div	DWORD PTR -56[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 28[rax], edx
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 32[rax], 60
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR 40[rax], 1
	mov	rax, QWORD PTR -72[rbp]
	lea	rdx, 16[rax]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, 28
	mov	rcx, rdx
	mov	edx, 5
	mov	esi, 263
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L14
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	imul	eax, edx
	mov	esi, eax
	mov	eax, DWORD PTR -48[rbp]
	mov	r9d, 0
	mov	r8d, eax
	mov	ecx, 8193
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	rax, -1
	jne	.L15
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	sal	rax, 4
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L16
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 136
	lea	rsi, .LC11[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L16:
	mov	QWORD PTR -40[rbp], 0
	jmp	.L17
.L18:
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	eax, eax
	imul	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 4
	add	rax, rsi
	add	rdx, rcx
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	sal	rax, 4
	add	rax, rcx
	mov	edx, edx
	mov	QWORD PTR 8[rax], rdx
	add	QWORD PTR -40[rbp], 1
.L17:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 20[rax]
	mov	eax, eax
	cmp	QWORD PTR -40[rbp], rax
	jb	.L18
	lea	rax, -32[rbp]
	mov	edx, 20
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 17
	mov	edi, 3
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	if_nametoindex@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	WORD PTR -24[rbp], 0
	mov	BYTE PTR -22[rbp], 0
	mov	BYTE PTR -21[rbp], 0
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 20
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -44[rbp], eax
	cmp	DWORD PTR -44[rbp], 0
	jns	.L19
	lea	rdi, .LC13[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	eax, DWORD PTR -48[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L21
	call	__stack_chk_fail@PLT
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	setup_socket, .-setup_socket
	.globl	cmd
	.bss
	.align 32
	.type	cmd, @object
	.size	cmd, 200
cmd:
	.zero	200
	.section	.rodata
	.align 8
.LC15:
	.string	"tc qdisc change dev %s root fq maxrate %.3fmbit"
.LC16:
	.string	"Problem with tc"
	.text
	.globl	cntrl_thread_main
	.type	cntrl_thread_main, @function
cntrl_thread_main:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR -72[rbp]
	movzx	eax, WORD PTR 24[rax]
	movzx	edx, ax
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 14
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 34
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	add	rax, 42
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atol@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	test	rax, rax
	js	.L23
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L24
.L23:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L24:
	movsd	xmm1, QWORD PTR .LC14[rip]
	divsd	xmm0, xmm1
	movq	rdx, xmm0
	mov	rax, QWORD PTR -80[rbp]
	movq	xmm0, rdx
	mov	rcx, rax
	lea	rdx, .LC15[rip]
	mov	esi, 200
	lea	rdi, cmd[rip]
	mov	eax, 1
	call	snprintf@PLT
	lea	rdi, cmd[rip]
	call	system@PLT
	mov	DWORD PTR -52[rbp], eax
	cmp	DWORD PTR -52[rbp], 0
	je	.L25
	lea	rdi, .LC16[rip]
	call	perror@PLT
.L25:
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	cntrl_thread_main, .-cntrl_thread_main
	.type	walk_block, @function
walk_block:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	DWORD PTR -20[rbp], eax
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 16[rax]
	mov	edx, eax
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -24[rbp], 0
	jmp	.L28
.L29:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 12[rax]
	mov	eax, eax
	add	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	cntrl_thread_main
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	add	QWORD PTR -8[rbp], rax
	add	DWORD PTR -24[rbp], 1
.L28:
	mov	eax, DWORD PTR -24[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L29
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR packets_total[rip]
	add	rax, rdx
	mov	QWORD PTR packets_total[rip], rax
	mov	rdx, QWORD PTR bytes_total[rip]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	QWORD PTR bytes_total[rip], rax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	walk_block, .-walk_block
	.type	flush_block, @function
flush_block:
.LFB11:
	.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	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	flush_block, .-flush_block
	.type	teardown_socket, @function
teardown_socket:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	imul	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	munmap@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	teardown_socket, .-teardown_socket
	.section	.rodata
.LC17:
	.string	"usage: %s [args]\n"
	.align 8
.LC18:
	.string	"-n <net_dev> - the interface attached to the main network"
	.align 8
.LC19:
	.string	"-c <ctrl_dev>- the interface attached to the control network"
	.text
	.globl	usage
	.type	usage, @function
usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC17[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC18[rip]
	call	puts@PLT
	lea	rdi, .LC19[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE13:
	.size	usage, .-usage
	.section	.rodata
.LC20:
	.string	"unknown option: %c\n"
.LC21:
	.string	"n:c:"
.LC22:
	.string	"fd > 0"
.LC23:
	.string	"tc qdisc del dev %s root"
.LC24:
	.string	"Problem with tc del"
	.align 8
.LC26:
	.string	"tc qdisc add dev %s root fq maxrate %.3fmbit"
.LC27:
	.string	"Problem with tc add"
.LC28:
	.string	"getsockopt"
	.text
	.globl	main
	.type	main, @function
main:
.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, 352
	mov	DWORD PTR -340[rbp], edi
	mov	QWORD PTR -352[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -328[rbp], 0
	mov	DWORD PTR -324[rbp], 64
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	rax, QWORD PTR -352[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -296[rbp], rax
	mov	DWORD PTR opterr[rip], 0
	jmp	.L34
.L38:
	movsx	eax, BYTE PTR -333[rbp]
	cmp	eax, 110
	je	.L35
	cmp	eax, 110
	jg	.L34
	cmp	eax, 63
	je	.L36
	cmp	eax, 99
	je	.L37
	jmp	.L34
.L35:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -312[rbp], rax
	jmp	.L34
.L37:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -304[rbp], rax
	jmp	.L34
.L36:
	mov	eax, DWORD PTR optopt[rip]
	mov	esi, eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	usage
.L34:
	mov	rcx, QWORD PTR -352[rbp]
	mov	eax, DWORD PTR -340[rbp]
	lea	rdx, .LC21[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	BYTE PTR -333[rbp], al
	cmp	BYTE PTR -333[rbp], -1
	jne	.L38
	cmp	QWORD PTR -312[rbp], 0
	je	.L39
	cmp	QWORD PTR -304[rbp], 0
	jne	.L40
.L39:
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	usage
.L40:
	lea	rsi, sighandler[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rax, -256[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rcx, QWORD PTR -304[rbp]
	lea	rax, -256[rbp]
	mov	edx, 20130
	mov	rsi, rcx
	mov	rdi, rax
	call	setup_socket
	mov	DWORD PTR -320[rbp], eax
	cmp	DWORD PTR -320[rbp], 0
	jg	.L41
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 250
	lea	rsi, .LC11[rip]
	lea	rdi, .LC22[rip]
	call	__assert_fail@PLT
.L41:
	lea	rax, -276[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -320[rbp]
	mov	DWORD PTR -276[rbp], eax
	mov	WORD PTR -272[rbp], 9
	mov	WORD PTR -270[rbp], 0
	mov	rdx, QWORD PTR -312[rbp]
	lea	rax, -208[rbp]
	mov	rcx, rdx
	lea	rdx, .LC23[rip]
	mov	esi, 200
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], 0
	je	.L42
	lea	rdi, .LC24[rip]
	call	perror@PLT
.L42:
	mov	rcx, QWORD PTR .LC25[rip]
	mov	rdx, QWORD PTR -312[rbp]
	lea	rax, -208[rbp]
	movq	xmm0, rcx
	mov	rcx, rdx
	lea	rdx, .LC26[rip]
	mov	esi, 200
	mov	rdi, rax
	mov	eax, 1
	call	snprintf@PLT
	lea	rax, -208[rbp]
	mov	rdi, rax
	call	system@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], 0
	je	.L44
	lea	rdi, .LC27[rip]
	call	perror@PLT
	jmp	.L44
.L46:
	mov	rdx, QWORD PTR -256[rbp]
	mov	eax, DWORD PTR -328[rbp]
	sal	rax, 4
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	eax, DWORD PTR 8[rax]
	and	eax, 1
	test	eax, eax
	jne	.L45
	lea	rax, -276[rbp]
	mov	edx, -1
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	jmp	.L44
.L45:
	mov	ecx, DWORD PTR -328[rbp]
	mov	rdx, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR -288[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	walk_block
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	flush_block
	mov	eax, DWORD PTR -328[rbp]
	add	eax, 1
	mov	edx, 0
	div	DWORD PTR -324[rbp]
	mov	DWORD PTR -328[rbp], edx
.L44:
	mov	eax, DWORD PTR sigint[rip]
	test	eax, eax
	sete	al
	movzx	eax, al
	test	rax, rax
	jne	.L46
	mov	DWORD PTR -332[rbp], 12
	lea	rcx, -332[rbp]
	lea	rdx, -268[rbp]
	mov	eax, DWORD PTR -320[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 263
	mov	edi, eax
	call	getsockopt@PLT
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], 0
	jns	.L47
	lea	rdi, .LC28[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L47:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	edx, DWORD PTR -320[rbp]
	lea	rax, -256[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	teardown_socket
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 13
__PRETTY_FUNCTION__.1:
	.string	"setup_socket"
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 5
__PRETTY_FUNCTION__.0:
	.string	"main"
	.align 8
.LC14:
	.long	0
	.long	1093567616
	.align 8
.LC25:
	.long	0
	.long	1076101120
	.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	"181197.c"
	.text
	.local	packets_total
	.comm	packets_total,4,4
	.local	bytes_total
	.comm	bytes_total,4,4
	.local	sigint
	.comm	sigint,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sighandler, %function
sighandler:
	@ 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]
	ldr	r3, .L2
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L3:
	.align	2
.L2:
	.word	sigint
	.size	sighandler, .-sighandler
	.comm	cntrl_fd,4,4
	.comm	ring,36,4
	.section	.rodata
	.align	2
.LC0:
	.ascii	"tcpdump -i %s dst port %d and udp -ddd\000"
	.align	2
.LC1:
	.ascii	"Active Filter: %s\012\000"
	.align	2
.LC2:
	.ascii	"r\000"
	.align	2
.LC3:
	.ascii	"Cannot compile filter using tcpdump.\000"
	.align	2
.LC4:
	.ascii	"%d\012\000"
	.align	2
.LC5:
	.ascii	"cannot read lineCount.\000"
	.align	2
.LC6:
	.ascii	"%u %u %u %u\012\000"
	.align	2
.LC7:
	.ascii	"fscanf: error in reading\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	set_packet_filter
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_packet_filter, %function
set_packet_filter:
	@ args = 0, pretend = 0, frame = 552
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #560
	str	r0, [fp, #-544]
	str	r1, [fp, #-548]
	str	r2, [fp, #-552]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-540]
	sub	r0, fp, #520
	ldr	r3, [fp, #-552]
	ldr	r2, [fp, #-548]
	ldr	r1, .L13+4
	bl	sprintf
	sub	r3, fp, #520
	mov	r1, r3
	ldr	r0, .L13+8
	bl	printf
	sub	r3, fp, #520
	ldr	r1, .L13+12
	mov	r0, r3
	bl	popen
	str	r0, [fp, #-532]
	ldr	r3, [fp, #-532]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L13+16
	bl	perror
	mvn	r3, #0
	b	.L11
.L5:
	sub	r3, fp, #540
	mov	r2, r3
	ldr	r1, .L13+20
	ldr	r0, [fp, #-532]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #0
	bgt	.L7
	ldr	r0, .L13+24
	bl	perror
	mvn	r3, #0
	b	.L11
.L7:
	ldr	r3, [fp, #-540]
	lsl	r3, r3, #3
	mov	r1, r3
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-524]
	ldr	r3, [fp, #-540]
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	sub	r3, fp, #4
	sub	r3, r3, #524
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-536]
	b	.L8
.L10:
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	add	r3, r2, r3
	mov	ip, r3
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r0, r3, #2
	ldr	r2, [fp, #-524]
	ldr	r3, [fp, #-536]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #3
	ldr	r1, [fp, #-524]
	ldr	r2, [fp, #-536]
	lsl	r2, r2, #3
	add	r2, r1, r2
	add	r2, r2, #4
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, r0
	mov	r2, ip
	ldr	r1, .L13+28
	ldr	r0, [fp, #-532]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #3
	bgt	.L9
	ldr	r3, [fp, #-524]
	mov	r0, r3
	bl	free
	ldr	r0, .L13+32
	bl	perror
	mvn	r3, #0
	b	.L11
.L9:
	sub	r3, fp, #528
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, [fp, #-544]
	bl	setsockopt
	ldr	r3, [fp, #-536]
	add	r3, r3, #1
	str	r3, [fp, #-536]
.L8:
	ldr	r3, [fp, #-540]
	ldr	r2, [fp, #-536]
	cmp	r2, r3
	blt	.L10
	ldr	r0, [fp, #-532]
	bl	pclose
	ldr	r3, [fp, #-524]
	mov	r0, r3
	bl	free
	mov	r3, #0
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC8
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	set_packet_filter, .-set_packet_filter
	.section	.rodata
	.align	2
.LC9:
	.ascii	"socket\000"
	.align	2
.LC10:
	.ascii	"setsockopt\000"
	.global	__aeabi_uidiv
	.align	2
.LC11:
	.ascii	"mmap\000"
	.align	2
.LC12:
	.ascii	"the_stack_data/181197.c\000"
	.align	2
.LC13:
	.ascii	"ring->rd\000"
	.align	2
.LC14:
	.ascii	"bind\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_socket, %function
setup_socket:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-72]
	str	r1, [fp, #-76]
	str	r2, [fp, #-80]
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #2
	str	r3, [fp, #-68]
	mov	r3, #4194304
	str	r3, [fp, #-64]
	mov	r3, #2048
	str	r3, [fp, #-60]
	mov	r3, #64
	str	r3, [fp, #-56]
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L26+4
	bl	perror
	mov	r0, #1
	bl	exit
.L16:
	ldr	r2, [fp, #-80]
	ldr	r1, [fp, #-76]
	ldr	r0, [fp, #-52]
	bl	set_packet_filter
	sub	r3, fp, #68
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #10
	ldr	r1, .L26+8
	ldr	r0, [fp, #-52]
	bl	setsockopt
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L17
	ldr	r0, .L26+12
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	ldr	r3, [fp, #-72]
	add	r3, r3, #8
	mov	r2, #28
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-64]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-60]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-72]
	ldr	r2, [fp, #-56]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-56]
	mul	r3, r2, r3
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	__aeabi_uidiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-72]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-72]
	mov	r2, #60
	str	r2, [r3, #24]
	ldr	r3, [fp, #-72]
	mov	r2, #1
	str	r2, [r3, #32]
	ldr	r3, [fp, #-72]
	add	r3, r3, #8
	mov	r2, #28
	str	r2, [sp]
	mov	r2, #5
	ldr	r1, .L26+8
	ldr	r0, [fp, #-52]
	bl	setsockopt
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L26+12
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-72]
	ldr	r2, [r2, #12]
	mul	r1, r2, r3
	mov	r3, #0
	str	r3, [sp, #4]
	ldr	r3, [fp, #-52]
	str	r3, [sp]
	ldr	r3, .L26+16
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	mov	r2, r0
	ldr	r3, [fp, #-72]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #4]
	cmn	r3, #1
	bne	.L19
	ldr	r0, .L26+20
	bl	perror
	mov	r0, #1
	bl	exit
.L19:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #12]
	lsl	r3, r3, #3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-72]
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L20
	ldr	r3, .L26+24
	mov	r2, #136
	ldr	r1, .L26+28
	ldr	r0, .L26+32
	bl	__assert_fail
.L20:
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-44]
	str	r3, [fp, #-40]
	b	.L21
.L22:
	ldr	r3, [fp, #-72]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-44]
	ldr	r2, [fp, #-72]
	ldr	r2, [r2, #8]
	mul	r2, r3, r2
	ldr	r3, [fp, #-72]
	ldr	r0, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r0, r3
	add	r2, r1, r2
	str	r2, [r3]
	ldr	r3, [fp, #-72]
	ldr	r2, [r3]
	ldr	r3, [fp, #-44]
	lsl	r3, r3, #3
	add	r3, r2, r3
	ldr	r2, [fp, #-72]
	ldr	r2, [r2, #8]
	str	r2, [r3, #4]
	sub	r3, fp, #44
	ldmia	r3, {r2-r3}
	adds	r4, r2, #1
	adc	r5, r3, #0
	str	r4, [fp, #-44]
	str	r5, [fp, #-40]
.L21:
	ldr	r3, [fp, #-72]
	ldr	r3, [r3, #12]
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #44
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L22
	sub	r3, fp, #36
	mov	r2, #20
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #17
	strh	r3, [fp, #-36]	@ movhi
	mov	r0, #3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	ldr	r0, [fp, #-76]
	bl	if_nametoindex
	mov	r3, r0
	str	r3, [fp, #-32]
	mov	r3, #0
	strh	r3, [fp, #-28]	@ movhi
	mov	r3, #0
	strb	r3, [fp, #-26]
	mov	r3, #0
	strb	r3, [fp, #-25]
	sub	r3, fp, #36
	mov	r2, #20
	mov	r1, r3
	ldr	r0, [fp, #-52]
	bl	bind
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmp	r3, #0
	bge	.L23
	ldr	r0, .L26+36
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-52]
	ldr	r2, .L26
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC15
	.word	.LC9
	.word	263
	.word	.LC10
	.word	8193
	.word	.LC11
	.word	__PRETTY_FUNCTION__.7470
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	setup_socket, .-setup_socket
	.comm	cmd,200,4
	.global	__aeabi_ul2d
	.global	__aeabi_ddiv
	.section	.rodata
	.align	2
.LC16:
	.ascii	"tc qdisc change dev %s root fq maxrate %.3fmbit\000"
	.align	2
.LC17:
	.ascii	"Problem with tc\000"
	.text
	.align	2
	.global	cntrl_thread_main
	.syntax unified
	.arm
	.fpu softvfp
	.type	cntrl_thread_main, %function
cntrl_thread_main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3, #24]
	mov	r2, r3
	ldr	r3, [fp, #-40]
	add	r3, r3, r2
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	add	r3, r3, #14
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-36]
	add	r3, r3, #34
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-36]
	add	r3, r3, #42
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	atol
	mov	r3, r0
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-12]
	str	r3, [fp, #-8]
	sub	r1, fp, #12
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, #0
	ldr	r3, .L31
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	ldr	r3, [fp, #-44]
	ldr	r2, .L31+4
	mov	r1, #200
	ldr	r0, .L31+8
	bl	snprintf
	ldr	r0, .L31+8
	bl	system
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L29
	ldr	r0, .L31+12
	bl	perror
.L29:
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	1093567616
	.word	.LC16
	.word	cmd
	.word	.LC17
	.size	cntrl_thread_main, .-cntrl_thread_main
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	walk_block, %function
walk_block:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #12]
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L34
.L35:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	cntrl_thread_main
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L34:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L35
	ldr	r3, .L36
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, .L36
	str	r3, [r2]
	ldr	r3, .L36+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, .L36+4
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L37:
	.align	2
.L36:
	.word	packets_total
	.word	bytes_total
	.size	walk_block, .-walk_block
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	flush_block, %function
flush_block:
	@ 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]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	flush_block, .-flush_block
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	teardown_socket, %function
teardown_socket:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #12]
	mul	r3, r2, r3
	mov	r1, r3
	bl	munmap
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-12]
	bl	close
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	teardown_socket, .-teardown_socket
	.section	.rodata
	.align	2
.LC18:
	.ascii	"usage: %s [args]\012\000"
	.align	2
.LC19:
	.ascii	"-n <net_dev> - the interface attached to the main n"
	.ascii	"etwork\000"
	.align	2
.LC20:
	.ascii	"-c <ctrl_dev>- the interface attached to the contro"
	.ascii	"l network\000"
	.text
	.align	2
	.global	usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L41
	bl	printf
	ldr	r0, .L41+4
	bl	puts
	ldr	r0, .L41+8
	bl	puts
	mov	r0, #1
	bl	exit
.L42:
	.align	2
.L41:
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC21:
	.ascii	"unknown option: %c\012\000"
	.align	2
.LC22:
	.ascii	"n:c:\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L51
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-260]
	mov	r3, #64
	str	r3, [fp, #-256]
	mov	r3, #0
	str	r3, [fp, #-252]
	mov	r3, #0
	str	r3, [fp, #-248]
	ldr	r3, [fp, #-276]
	ldr	r3, [r3]
	str	r3, [fp, #-264]
	ldr	r3, .L51+4
	mov	r2, #0
	str	r2, [r3]
	b	.L44
.L50:
	cmp	r3, #110
	bgt	.L44
	cmp	r3, #63
	beq	.L46
	cmp	r3, #99
	beq	.L47
	b	.L44
.L45:
	ldr	r3, .L51+8
	ldr	r3, [r3]
	str	r3, [fp, #-252]
	b	.L44
.L47:
	ldr	r3, .L51+8
	ldr	r3, [r3]
	str	r3, [fp, #-248]
	b	.L44
.L46:
	ldr	r3, .L51+12
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L51+16
	bl	printf
	ldr	r0, [fp, #-264]
	bl	usage
.L44:
	ldr	r2, .L51+20
	ldr	r1, [fp, #-276]
	ldr	r0, [fp, #-272]
	bl	getopt
	mov	r3, r0
	strb	r3, [fp, #-265]
	ldrb	r3, [fp, #-265]	@ zero_extendqisi2
	cmp	r3, #110
	beq	.L45
	b	.L50
.L52:
	.align	2
.L51:
	.word	.LC23
	.word	opterr
	.word	optarg
	.word	optopt
	.word	.LC21
	.word	.LC22
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7470, %object
	.size	__PRETTY_FUNCTION__.7470, 13
__PRETTY_FUNCTION__.7470:
	.ascii	"setup_socket\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
