	.file	"182787.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"local-port"
.LC1:
	.string	"write"
.LC2:
	.string	"version"
.LC3:
	.string	"help"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	iz_long_opts, @object
	.size	iz_long_opts, 160
iz_long_opts:
	.quad	.LC0
	.long	1
	.zero	4
	.quad	0
	.long	108
	.zero	4
	.quad	.LC1
	.long	1
	.zero	4
	.quad	0
	.long	119
	.zero	4
	.quad	.LC2
	.long	0
	.zero	4
	.quad	0
	.long	118
	.zero	4
	.quad	.LC3
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
.LC4:
	.string	"malloc()"
	.text
	.globl	list_init
	.type	list_init, @function
list_init:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L2
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -28[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	list_init, .-list_init
	.globl	list_find
	.type	list_find, @function
list_find:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	jmp	.L5
.L8:
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	DWORD PTR -36[rbp], eax
	jne	.L6
	mov	rax, QWORD PTR -8[rbp]
	jmp	.L7
.L6:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -8[rbp], rax
.L5:
	cmp	QWORD PTR -8[rbp], 0
	jne	.L8
	mov	eax, 0
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	list_find, .-list_find
	.globl	list_add
	.type	list_add, @function
list_add:
.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 -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	edi, 32
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L10:
	mov	rcx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -36[rbp]
	mov	DWORD PTR 16[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	list_add, .-list_add
	.section	.rodata
	.align 8
.LC5:
	.ascii	"This software is provided \"AS IS.\"\nNIST MAKES NO WARRANTY"
	.ascii	" OF ANY KIND, EXPRESS, IMPLIEDOR STATUTORY, INCLUDING, WITHO"
	.ascii	"UT LIMITATION, THE IMPLIED WARRANTY OFMERCHANTABILITY, FITNE"
	.ascii	"SS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENTAND DATA ACCURA"
	.ascii	"CY"
	.string	".  NIST does not warrant or make any representationsregarding the use of the software or the results thereof, including butnot limited to the correctness, accuracy, reliability or usefulness ofthis software.\n\nWritten by Tony Cheneau <tony.cheneau@nist.gov>"
.LC6:
	.string	"Version 0.1"
	.text
	.globl	print_version
	.type	print_version, @function
print_version:
.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, .LC5[rip]
	call	puts@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	print_version, .-print_version
	.section	.rodata
	.align 8
.LC7:
	.string	"This program a minimalist UDP broker.\nA new client is first detected when it sends a message to the broker.\nSubsequently, all messages received by the broker will be send toall the clients (except the one sending the message)"
	.align 8
.LC8:
	.string	"usage: %s -l portnum [-w pcapfile]\n"
	.align 8
.LC9:
	.string	"-l, --local-port: local udp port to be bound"
	.align 8
.LC10:
	.string	"-w, --write: write all the packet to a pcap file"
	.align 8
.LC11:
	.string	"-v, --version: print the program version"
	.align 8
.LC12:
	.string	"-h, --help: print this help message"
	.text
	.globl	print_usage
	.type	print_usage, @function
print_usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdi, .LC10[rip]
	call	puts@PLT
	lea	rdi, .LC11[rip]
	call	puts@PLT
	lea	rdi, .LC12[rip]
	call	puts@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	print_usage, .-print_usage
	.section	.rodata
.LC13:
	.string	"getaddrinfo: %s\n"
.LC14:
	.string	"Could not bind\n"
.LC15:
	.string	"setsockopt()"
	.text
	.globl	ipv6_server_setup
	.type	ipv6_server_setup, @function
ipv6_server_setup:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -92[rbp], 1
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 2
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	getaddrinfo@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L15
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L15:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L16
.L21:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	je	.L26
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L27
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L18
.L26:
	nop
.L18:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L16:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L21
	jmp	.L20
.L27:
	nop
.L20:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 15
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	lea	rdx, -92[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L23
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	ipv6_server_setup, .-ipv6_server_setup
	.globl	pcap_write_header
	.type	pcap_write_header, @function
pcap_write_header:
.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	DWORD PTR -36[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -32[rbp], -1582119980
	mov	WORD PTR -28[rbp], 2
	mov	WORD PTR -26[rbp], 4
	mov	DWORD PTR -24[rbp], 0
	mov	DWORD PTR -20[rbp], 0
	mov	DWORD PTR -16[rbp], 127
	mov	DWORD PTR -12[rbp], 195
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 24
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L31
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	pcap_write_header, .-pcap_write_header
	.globl	pcap_write_packet
	.type	pcap_write_packet, @function
pcap_write_packet:
.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, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -48[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR -48[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR -44[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR -40[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	DWORD PTR -36[rbp], eax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	js	.L39
	mov	rdx, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L40
	jmp	.L34
.L39:
	nop
.L34:
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L40:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L38
	call	__stack_chk_fail@PLT
.L38:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	pcap_write_packet, .-pcap_write_packet
	.section	.rodata
.LC16:
	.string	"w:l:vh"
	.align 8
.LC17:
	.string	"some arguments could not be parsed"
	.align 8
.LC18:
	.string	"\n\nerror: --local-port argument must be set"
.LC19:
	.string	"open"
.LC20:
	.string	"ipv6_server_setup()"
.LC21:
	.string	"select()"
	.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, 2304
	mov	DWORD PTR -2292[rbp], edi
	mov	QWORD PTR -2304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -2256[rbp], 0
	mov	QWORD PTR -2248[rbp], 0
	mov	QWORD PTR -2240[rbp], 0
	mov	DWORD PTR -2276[rbp], 0
	mov	QWORD PTR -2216[rbp], 0
.L51:
	mov	DWORD PTR -2284[rbp], -1
	lea	rdx, -2284[rbp]
	mov	rsi, QWORD PTR -2304[rbp]
	mov	eax, DWORD PTR -2292[rbp]
	mov	r8, rdx
	lea	rcx, iz_long_opts[rip]
	lea	rdx, .LC16[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -2272[rbp], eax
	cmp	DWORD PTR -2272[rbp], -1
	jne	.L42
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -2292[rbp], eax
	jg	.L43
	jmp	.L69
.L42:
	cmp	DWORD PTR -2272[rbp], 119
	je	.L45
	cmp	DWORD PTR -2272[rbp], 119
	jg	.L46
	cmp	DWORD PTR -2272[rbp], 108
	je	.L47
	cmp	DWORD PTR -2272[rbp], 118
	je	.L48
	jmp	.L46
.L47:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -2248[rbp], rax
	jmp	.L49
.L48:
	mov	eax, 0
	call	print_version
	mov	eax, 0
	jmp	.L67
.L45:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -2240[rbp], rax
	jmp	.L49
.L46:
	mov	rax, QWORD PTR -2304[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	mov	eax, 1
	jmp	.L67
.L49:
	jmp	.L51
.L43:
	lea	rdi, .LC17[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -2304[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	mov	eax, -1
	jmp	.L67
.L69:
	cmp	QWORD PTR -2248[rbp], 0
	jne	.L53
	mov	rax, QWORD PTR -2304[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	print_usage
	lea	rdi, .LC18[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
.L53:
	cmp	QWORD PTR -2240[rbp], 0
	je	.L54
	mov	rax, QWORD PTR -2240[rbp]
	mov	edx, 288
	mov	esi, 577
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2280[rbp], eax
	cmp	DWORD PTR -2280[rbp], 0
	jns	.L55
	lea	rdi, .LC19[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	eax, DWORD PTR -2280[rbp]
	mov	edi, eax
	call	pcap_write_header
.L54:
	mov	rax, QWORD PTR -2248[rbp]
	mov	rdi, rax
	call	ipv6_server_setup
	mov	DWORD PTR -2268[rbp], eax
	cmp	DWORD PTR -2268[rbp], 0
	jns	.L56
	lea	rdi, .LC20[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L56:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -2192[rbp]
	mov	rdi, rdx
#APP
# 344 "the_stack_data/182787.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -2264[rbp], edx
	mov	DWORD PTR -2260[rbp], eax
	mov	eax, DWORD PTR -2268[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -2192[rbp+rax*8]
	mov	eax, DWORD PTR -2268[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -2192[rbp+rax*8], rdx
	mov	eax, DWORD PTR -2268[rbp]
	lea	edi, 1[rax]
	lea	rax, -2192[rbp]
	mov	r8d, 0
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	test	eax, eax
	jg	.L57
	lea	rdi, .LC21[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L57:
	mov	eax, DWORD PTR -2268[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -2192[rbp+rax*8]
	mov	eax, DWORD PTR -2268[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L56
	add	QWORD PTR -2256[rbp], 1
	lea	rcx, -2284[rbp]
	lea	rdx, -2208[rbp]
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2268[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -2276[rbp], eax
	cmp	QWORD PTR -2240[rbp], 0
	je	.L59
	mov	edx, DWORD PTR -2276[rbp]
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2280[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	pcap_write_packet
.L59:
	mov	edx, DWORD PTR -2284[rbp]
	lea	rcx, -2208[rbp]
	mov	rax, QWORD PTR -2216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	list_find
	mov	QWORD PTR -2224[rbp], rax
	cmp	QWORD PTR -2224[rbp], 0
	jne	.L60
	cmp	QWORD PTR -2216[rbp], 0
	je	.L61
	mov	edx, DWORD PTR -2284[rbp]
	lea	rcx, -2208[rbp]
	mov	rax, QWORD PTR -2216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	list_add
	mov	QWORD PTR -2216[rbp], rax
	jmp	.L62
.L61:
	mov	edx, DWORD PTR -2284[rbp]
	lea	rax, -2208[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	list_init
	mov	QWORD PTR -2216[rbp], rax
.L62:
	mov	edx, DWORD PTR -2284[rbp]
	lea	rcx, -2208[rbp]
	mov	rax, QWORD PTR -2216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	list_find
	mov	QWORD PTR -2224[rbp], rax
.L60:
	mov	rax, QWORD PTR -2216[rbp]
	mov	QWORD PTR -2232[rbp], rax
	jmp	.L63
.L66:
	mov	rax, QWORD PTR -2232[rbp]
	cmp	rax, QWORD PTR -2224[rbp]
	je	.L70
	mov	rax, QWORD PTR -2232[rbp]
	mov	edi, DWORD PTR 16[rax]
	mov	rcx, QWORD PTR -2232[rbp]
	mov	edx, DWORD PTR -2276[rbp]
	lea	rsi, -2064[rbp]
	mov	eax, DWORD PTR -2268[rbp]
	mov	r9d, edi
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	jmp	.L65
.L70:
	nop
.L65:
	mov	rax, QWORD PTR -2232[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	QWORD PTR -2232[rbp], rax
.L63:
	cmp	QWORD PTR -2232[rbp], 0
	jne	.L66
	jmp	.L56
.L67:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.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	"182787.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"local-port\000"
	.align	2
.LC1:
	.ascii	"write\000"
	.align	2
.LC2:
	.ascii	"version\000"
	.align	2
.LC3:
	.ascii	"help\000"
	.align	2
	.type	iz_long_opts, %object
	.size	iz_long_opts, 80
iz_long_opts:
	.word	.LC0
	.word	1
	.word	0
	.word	108
	.word	.LC1
	.word	1
	.word	0
	.word	119
	.word	.LC2
	.word	0
	.word	0
	.word	118
	.word	.LC3
	.word	0
	.word	0
	.word	104
	.word	0
	.word	0
	.word	0
	.word	0
	.align	2
.LC4:
	.ascii	"malloc()\000"
	.text
	.align	2
	.global	list_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_init, %function
list_init:
	@ 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]
	str	r1, [fp, #-20]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L2
	ldr	r0, .L4
	bl	perror
	mov	r0, #1
	bl	exit
.L2:
	ldr	r3, [fp, #-8]
	mov	r2, #16
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC4
	.size	list_init, .-list_init
	.align	2
	.global	list_find
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_find, %function
list_find:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	b	.L7
.L10:
	mov	r2, #16
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L8
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bne	.L8
	ldr	r3, [fp, #-8]
	b	.L9
.L8:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
.L9:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	list_find, .-list_find
	.align	2
	.global	list_add
	.syntax unified
	.arm
	.fpu softvfp
	.type	list_add, %function
list_add:
	@ 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]
	mov	r0, #24
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L12
	ldr	r0, .L14
	bl	perror
	mov	r0, #1
	bl	exit
.L12:
	ldr	r3, [fp, #-8]
	mov	r2, #16
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-24]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #20]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC4
	.size	list_add, .-list_add
	.section	.rodata
	.align	2
.LC5:
	.ascii	"This software is provided \"AS IS.\"\012NIST MAKES "
	.ascii	"NO WARRANTY OF ANY KIND, EXPRESS, IMPLIEDOR STATUTO"
	.ascii	"RY, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARR"
	.ascii	"ANTY OFMERCHANTABILITY, FITNESS FOR A PARTICULAR PU"
	.ascii	"RPOSE, NON-INFRINGEMENTAND DATA ACCURACY.  NIST doe"
	.ascii	"s not warrant or make any representationsregarding "
	.ascii	"the use of the software or the results thereof, inc"
	.ascii	"luding butnot limited to the correctness, accuracy,"
	.ascii	" reliability or usefulness ofthis software.\012\012"
	.ascii	"Written by Tony Cheneau <tony.cheneau@nist.gov>\000"
	.align	2
.LC6:
	.ascii	"Version 0.1\000"
	.text
	.align	2
	.global	print_version
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_version, %function
print_version:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r0, .L17
	bl	puts
	ldr	r0, .L17+4
	bl	puts
	mov	r0, #0
	bl	exit
.L18:
	.align	2
.L17:
	.word	.LC5
	.word	.LC6
	.size	print_version, .-print_version
	.section	.rodata
	.align	2
.LC7:
	.ascii	"This program a minimalist UDP broker.\012A new clie"
	.ascii	"nt is first detected when it sends a message to the"
	.ascii	" broker.\012Subsequently, all messages received by "
	.ascii	"the broker will be send toall the clients (except t"
	.ascii	"he one sending the message)\000"
	.align	2
.LC8:
	.ascii	"usage: %s -l portnum [-w pcapfile]\012\000"
	.align	2
.LC9:
	.ascii	"-l, --local-port: local udp port to be bound\000"
	.align	2
.LC10:
	.ascii	"-w, --write: write all the packet to a pcap file\000"
	.align	2
.LC11:
	.ascii	"-v, --version: print the program version\000"
	.align	2
.LC12:
	.ascii	"-h, --help: print this help message\000"
	.text
	.align	2
	.global	print_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	print_usage, %function
print_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	r0, .L20
	bl	puts
	ldr	r1, [fp, #-8]
	ldr	r0, .L20+4
	bl	printf
	ldr	r0, .L20+8
	bl	puts
	ldr	r0, .L20+12
	bl	puts
	ldr	r0, .L20+16
	bl	puts
	ldr	r0, .L20+20
	bl	puts
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	print_usage, .-print_usage
	.section	.rodata
	.align	2
.LC13:
	.ascii	"getaddrinfo: %s\012\000"
	.align	2
.LC14:
	.ascii	"Could not bind\012\000"
	.align	2
.LC15:
	.ascii	"setsockopt()\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ipv6_server_setup
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipv6_server_setup, %function
ipv6_server_setup:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #76
	str	r0, [fp, #-72]
	ldr	r3, .L36
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-64]
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-44]
	mov	r3, #2
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-48]
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-20]
	sub	r3, fp, #68
	sub	r2, fp, #48
	ldr	r1, [fp, #-72]
	mov	r0, #0
	bl	getaddrinfo
	str	r0, [fp, #-52]
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	beq	.L23
	ldr	r3, .L36+4
	ldr	r4, [r3]
	ldr	r0, [fp, #-52]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L36+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-68]
	str	r3, [fp, #-60]
	b	.L24
.L29:
	ldr	r3, [fp, #-60]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	beq	.L34
	ldr	r3, [fp, #-60]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-56]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L35
	ldr	r0, [fp, #-56]
	bl	close
	b	.L26
.L34:
	nop
.L26:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-60]
.L24:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L29
	b	.L28
.L35:
	nop
.L28:
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L30
	ldr	r3, .L36+4
	ldr	r3, [r3]
	mov	r2, #15
	mov	r1, #1
	ldr	r0, .L36+12
	bl	fwrite
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	freeaddrinfo
	sub	r3, fp, #64
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-56]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L31
	ldr	r0, .L36+16
	bl	perror
	mov	r0, #1
	bl	exit
.L31:
	ldr	r3, [fp, #-56]
	ldr	r2, .L36
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L33
	bl	__stack_chk_fail
.L33:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L37:
	.align	2
.L36:
	.word	.LC16
	.word	stderr
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	ipv6_server_setup, .-ipv6_server_setup
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pcap_write_header
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcap_write_header, %function
pcap_write_header:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-40]
	ldr	r3, .L42
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L42+4
	str	r3, [fp, #-32]
	mov	r3, #2
	strh	r3, [fp, #-28]	@ movhi
	mov	r3, #4
	strh	r3, [fp, #-26]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #127
	str	r3, [fp, #-16]
	mov	r3, #195
	str	r3, [fp, #-12]
	sub	r3, fp, #32
	mov	r2, #24
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L42+8
	bl	perror
	mov	r0, #1
	bl	exit
.L41:
	nop
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L40
	bl	__stack_chk_fail
.L40:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L43:
	.align	2
.L42:
	.word	.LC17
	.word	-1582119980
	.word	.LC1
	.size	pcap_write_header, .-pcap_write_header
	.section	.rodata
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	pcap_write_packet
	.syntax unified
	.arm
	.fpu softvfp
	.type	pcap_write_packet, %function
pcap_write_packet:
	@ args = 0, pretend = 0, frame = 48
	@ 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]
	str	r2, [fp, #-48]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-48]
	str	r3, [fp, #-12]
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	blt	.L51
	ldr	r2, [fp, #-48]
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L52
	b	.L46
.L51:
	nop
.L46:
	ldr	r0, .L53+4
	bl	perror
	mov	r0, #1
	bl	exit
.L52:
	nop
	ldr	r3, .L53
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L50
	bl	__stack_chk_fail
.L50:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC18
	.word	.LC1
	.size	pcap_write_packet, .-pcap_write_packet
	.section	.rodata
	.align	2
.LC19:
	.ascii	"w:l:vh\000"
	.align	2
.LC20:
	.ascii	"some arguments could not be parsed\000"
	.align	2
.LC21:
	.ascii	"\012\012error: --local-port argument must be set\000"
	.align	2
.LC22:
	.ascii	"open\000"
	.align	2
.LC23:
	.ascii	"ipv6_server_setup()\000"
	.align	2
.LC24:
	.ascii	"select()\000"
	.align	2
.LC25:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2256
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2256
	sub	sp, sp, #8
	str	r0, [fp, #-2256]
	str	r1, [fp, #-2260]
	ldr	r3, .L87
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2244]
	mov	r3, #0
	str	r3, [fp, #-2240]
	mov	r3, #0
	str	r3, [fp, #-2236]
	mov	r3, #0
	str	r3, [fp, #-2216]
	mov	r3, #0
	str	r3, [fp, #-2224]
.L65:
	mvn	r3, #0
	str	r3, [fp, #-2252]
	sub	r3, fp, #2240
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp]
	ldr	r3, .L87+4
	ldr	r2, .L87+8
	ldr	r1, [fp, #-2260]
	ldr	r0, [fp, #-2256]
	bl	getopt_long
	str	r0, [fp, #-2212]
	ldr	r3, [fp, #-2212]
	cmn	r3, #1
	bne	.L56
	ldr	r3, .L87+12
	ldr	r3, [r3]
	ldr	r2, [fp, #-2256]
	cmp	r2, r3
	bgt	.L57
	b	.L85
.L56:
	ldr	r3, [fp, #-2212]
	cmp	r3, #119
	beq	.L59
	ldr	r3, [fp, #-2212]
	cmp	r3, #119
	bgt	.L60
	ldr	r3, [fp, #-2212]
	cmp	r3, #108
	beq	.L61
	ldr	r3, [fp, #-2212]
	cmp	r3, #118
	beq	.L62
	b	.L60
.L61:
	ldr	r3, .L87+16
	ldr	r3, [r3]
	str	r3, [fp, #-2240]
	b	.L63
.L62:
	bl	print_version
	mov	r3, #0
	b	.L83
.L59:
	ldr	r3, .L87+16
	ldr	r3, [r3]
	str	r3, [fp, #-2236]
	b	.L63
.L60:
	ldr	r3, [fp, #-2260]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mov	r3, #1
	b	.L83
.L63:
	b	.L65
.L57:
	ldr	r0, .L87+20
	bl	puts
	ldr	r3, [fp, #-2260]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	mvn	r3, #0
	b	.L83
.L85:
	ldr	r3, [fp, #-2240]
	cmp	r3, #0
	bne	.L67
	ldr	r3, [fp, #-2260]
	ldr	r3, [r3]
	mov	r0, r3
	bl	print_usage
	ldr	r0, .L87+24
	bl	puts
	mov	r0, #1
	bl	exit
.L67:
	ldr	r3, [fp, #-2236]
	cmp	r3, #0
	beq	.L68
	mov	r2, #288
	ldr	r1, .L87+28
	ldr	r0, [fp, #-2236]
	bl	open
	str	r0, [fp, #-2248]
	ldr	r3, [fp, #-2248]
	cmp	r3, #0
	bge	.L69
	ldr	r0, .L87+32
	bl	perror
	mov	r0, #1
	bl	exit
.L69:
	ldr	r0, [fp, #-2248]
	bl	pcap_write_header
.L68:
	ldr	r0, [fp, #-2240]
	bl	ipv6_server_setup
	str	r0, [fp, #-2208]
	ldr	r3, [fp, #-2208]
	cmp	r3, #0
	bge	.L70
	ldr	r0, .L87+36
	bl	perror
	mov	r0, #1
	bl	exit
.L70:
	sub	r3, fp, #2176
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [fp, #-2204]
	mov	r3, #0
	str	r3, [fp, #-2220]
	b	.L71
.L72:
	ldr	r3, [fp, #-2204]
	ldr	r2, [fp, #-2220]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-2220]
	add	r3, r3, #1
	str	r3, [fp, #-2220]
.L71:
	ldr	r3, [fp, #-2220]
	cmp	r3, #31
	bls	.L72
	ldr	r3, [fp, #-2208]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #4
	add	r3, r1, r3
	ldr	r1, [r3, #-2180]
	ldr	r3, [fp, #-2208]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	str	r1, [r3, #-2180]
	ldr	r3, [fp, #-2208]
	add	r0, r3, #1
	sub	r1, fp, #2176
	sub	r1, r1, #4
	sub	r1, r1, #4
	mov	r3, #0
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bgt	.L73
	ldr	r0, .L87+40
	bl	perror
	mov	r0, #1
	bl	exit
.L73:
	ldr	r3, [fp, #-2208]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-2180]
	ldr	r3, [fp, #-2208]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-2244]
	add	r3, r3, #1
	str	r3, [fp, #-2244]
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	sub	r3, fp, #2240
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp, #4]
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2048
	ldr	r0, [fp, #-2208]
	bl	recvfrom
	mov	r3, r0
	str	r3, [fp, #-2216]
	ldr	r3, [fp, #-2236]
	cmp	r3, #0
	beq	.L75
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	ldr	r2, [fp, #-2216]
	mov	r1, r3
	ldr	r0, [fp, #-2248]
	bl	pcap_write_packet
.L75:
	ldr	r2, [fp, #-2252]
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2224]
	bl	list_find
	str	r0, [fp, #-2228]
	ldr	r3, [fp, #-2228]
	cmp	r3, #0
	bne	.L76
	ldr	r3, [fp, #-2224]
	cmp	r3, #0
	beq	.L77
	ldr	r2, [fp, #-2252]
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2224]
	bl	list_add
	str	r0, [fp, #-2224]
	b	.L78
.L77:
	ldr	r2, [fp, #-2252]
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r2
	mov	r0, r3
	bl	list_init
	str	r0, [fp, #-2224]
.L78:
	ldr	r2, [fp, #-2252]
	sub	r3, fp, #2192
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2224]
	bl	list_find
	str	r0, [fp, #-2228]
.L76:
	ldr	r3, [fp, #-2224]
	str	r3, [fp, #-2232]
	b	.L79
.L82:
	ldr	r2, [fp, #-2232]
	ldr	r3, [fp, #-2228]
	cmp	r2, r3
	beq	.L86
	ldr	r3, [fp, #-2232]
	ldr	r2, [fp, #-2232]
	ldr	r2, [r2, #16]
	sub	r1, fp, #2048
	sub	r1, r1, #4
	sub	r1, r1, #4
	str	r2, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, [fp, #-2216]
	ldr	r0, [fp, #-2208]
	bl	sendto
	b	.L81
.L86:
	nop
.L81:
	ldr	r3, [fp, #-2232]
	ldr	r3, [r3, #20]
	str	r3, [fp, #-2232]
.L79:
	ldr	r3, [fp, #-2232]
	cmp	r3, #0
	bne	.L82
	b	.L70
.L83:
	ldr	r2, .L87
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L88:
	.align	2
.L87:
	.word	.LC25
	.word	iz_long_opts
	.word	.LC19
	.word	optind
	.word	optarg
	.word	.LC20
	.word	.LC21
	.word	577
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
