	.file	"10820.c"
	.intel_syntax noprefix
	.text
	.globl	log_file
	.section	.rodata
.LC0:
	.string	"multicast_receive.log"
	.section	.data.rel.local,"aw"
	.align 8
	.type	log_file, @object
	.size	log_file, 8
log_file:
	.quad	.LC0
	.globl	log_fd
	.bss
	.align 8
	.type	log_fd, @object
	.size	log_fd, 8
log_fd:
	.zero	8
	.globl	buf
	.align 32
	.type	buf, @object
	.size	buf, 1024
buf:
	.zero	1024
	.text
	.globl	flog
	.type	flog, @function
flog:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR log_fd[rip]
	mov	rdx, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR log_fd[rip]
	mov	rdi, rax
	call	fflush@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	flog, .-flog
	.globl	make_endpoint
	.type	make_endpoint, @function
make_endpoint:
.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	QWORD PTR -88[rbp], rdi
	mov	QWORD PTR -96[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	DWORD PTR -64[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 42
	jne	.L3
	add	QWORD PTR -88[rbp], 1
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR 12[rax], 1
	jmp	.L4
.L3:
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR 12[rax], 0
.L4:
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L5
	mov	DWORD PTR -64[rbp], 1
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L7
	mov	DWORD PTR -64[rbp], 2
	jmp	.L6
.L7:
	mov	rdx, QWORD PTR -96[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -64[rbp], 3
	jmp	.L6
.L8:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L9
	mov	DWORD PTR -64[rbp], 4
	jmp	.L6
.L9:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L10
	mov	DWORD PTR -64[rbp], 5
	jmp	.L6
.L10:
	lea	rcx, -56[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -40[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	cmp	rdx, rax
	je	.L11
	mov	DWORD PTR -64[rbp], 6
	jmp	.L6
.L11:
	cmp	QWORD PTR -16[rbp], 65535
	jle	.L12
	mov	DWORD PTR -64[rbp], 7
	jmp	.L6
.L12:
	mov	rax, QWORD PTR -16[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -96[rbp]
	mov	WORD PTR 8[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L13
	mov	DWORD PTR -64[rbp], 20
	jmp	.L6
.L13:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L14
	mov	DWORD PTR -64[rbp], 21
	jmp	.L6
.L14:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, 4[rax]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jne	.L15
	mov	DWORD PTR -64[rbp], 22
	jmp	.L6
.L15:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR 16[rax], 0
	mov	DWORD PTR -60[rbp], 0
.L23:
	mov	rax, QWORD PTR -88[rbp]
	mov	esi, 44
	mov	rdi, rax
	call	strchr@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	QWORD PTR -32[rbp], rax
	mov	DWORD PTR -60[rbp], 1
	jmp	.L17
.L16:
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR -88[rbp]
	mov	QWORD PTR -32[rbp], rax
.L17:
	cmp	QWORD PTR -48[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	QWORD PTR -48[rbp], 0
.L18:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -88[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strndup@PLT
	mov	QWORD PTR -48[rbp], rax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L19
	mov	DWORD PTR -64[rbp], 8
	jmp	.L6
.L19:
	lea	rdx, -68[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	test	eax, eax
	jne	.L20
	mov	DWORD PTR -64[rbp], 9
	jmp	.L6
.L20:
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 19
	jle	.L21
	mov	DWORD PTR -64[rbp], 10
	jmp	.L6
.L21:
	mov	rax, QWORD PTR -96[rbp]
	lea	rdx, 20[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 16[rax]
	cdqe
	sal	rax, 2
	add	rdx, rax
	mov	eax, DWORD PTR -68[rbp]
	mov	DWORD PTR [rdx], eax
	mov	rax, QWORD PTR -96[rbp]
	mov	eax, DWORD PTR 16[rax]
	lea	edx, 1[rax]
	mov	rax, QWORD PTR -96[rbp]
	mov	DWORD PTR 16[rax], edx
	cmp	DWORD PTR -60[rbp], 0
	jne	.L26
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	QWORD PTR -88[rbp], rax
	jmp	.L23
.L26:
	nop
.L6:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -64[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L25
	call	__stack_chk_fail@PLT
.L25:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	make_endpoint, .-make_endpoint
	.section	.rodata
	.align 8
.LC1:
	.string	"Too many multicast addresses given\n"
	.align 8
.LC2:
	.string	"Error parsing argument %d: internal error code %d\n"
	.text
	.globl	make_all_endpoints
	.type	make_all_endpoints, @function
make_all_endpoints:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -8[rbp], 1
	jmp	.L28
.L32:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	eax, 49
	jle	.L29
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 35
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L30
.L29:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	DWORD PTR [rdx], ecx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	lea	rdx, [rsi+rax]
	mov	eax, DWORD PTR -8[rbp]
	cdqe
	lea	rcx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	make_endpoint
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	je	.L31
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -4[rbp]
	mov	edx, DWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 2
	jmp	.L30
.L31:
	add	DWORD PTR -8[rbp], 1
.L28:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L32
	mov	eax, 0
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	make_all_endpoints, .-make_all_endpoints
	.section	.rodata
.LC3:
	.string	"Error creating socket"
.LC4:
	.string	"Error setting reuse flag"
	.align 8
.LC5:
	.string	"Error binding to listening address"
	.align 8
.LC6:
	.string	"Error adding multicast group membership"
	.align 8
.LC7:
	.string	"Multicast address number %d: created file descriptor %d on %d interfaces\n"
	.text
	.globl	endpoints_to_sockets
	.type	endpoints_to_sockets, @function
endpoints_to_sockets:
.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 fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -80[rbp]
	mov	DWORD PTR [rax], 0
	mov	DWORD PTR -56[rbp], 0
	jmp	.L34
.L45:
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -48[rbp], eax
	cmp	DWORD PTR -48[rbp], -1
	jne	.L35
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L46
.L35:
	mov	rax, QWORD PTR -80[rbp]
	mov	eax, DWORD PTR [rax]
	lea	ecx, 1[rax]
	mov	rdx, QWORD PTR -80[rbp]
	mov	DWORD PTR [rdx], ecx
	mov	rdx, QWORD PTR -80[rbp]
	cdqe
	mov	ecx, DWORD PTR -48[rbp]
	mov	DWORD PTR 4[rdx+rax*4], ecx
	mov	DWORD PTR -60[rbp], 1
	lea	rdx, -60[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L37
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 2
	jmp	.L46
.L37:
	mov	WORD PTR -32[rbp], 2
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 12
	movzx	eax, WORD PTR [rax]
	mov	WORD PTR -30[rbp], ax
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 16
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L38
	mov	DWORD PTR -28[rbp], 0
	jmp	.L39
.L38:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -72[rbp]
	add	rax, rdx
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -28[rbp], eax
.L39:
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L40
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, 3
	jmp	.L46
.L40:
	mov	DWORD PTR -52[rbp], 0
	jmp	.L41
.L43:
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -72[rbp]
	add	rax, rdx
	add	rax, 4
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -44[rbp], eax
	mov	eax, DWORD PTR -52[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	add	rax, rcx
	add	rax, 4
	lea	rdx, 0[0+rax*4]
	mov	rax, QWORD PTR -72[rbp]
	add	rax, rdx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	mov	rdx, QWORD PTR -72[rbp]
	add	rax, rdx
	add	rax, 8
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -36[rbp], eax
	lea	rdx, -44[rbp]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, 12
	mov	rcx, rdx
	mov	edx, 39
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L42
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 4
	jmp	.L46
.L42:
	add	DWORD PTR -52[rbp], 1
.L41:
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 20
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -52[rbp], eax
	jl	.L43
	mov	edx, 1024
	mov	esi, 0
	lea	rdi, buf[rip]
	call	memset@PLT
	mov	rcx, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR -56[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	lea	rdx, 0[0+rax*4]
	add	rax, rdx
	sal	rax, 2
	add	rax, rcx
	add	rax, 20
	mov	ecx, DWORD PTR [rax]
	mov	eax, DWORD PTR -56[rbp]
	lea	edx, 1[rax]
	mov	eax, DWORD PTR -48[rbp]
	mov	r8d, ecx
	mov	ecx, eax
	lea	rsi, .LC7[rip]
	lea	rdi, buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, buf[rip]
	call	flog
	add	DWORD PTR -56[rbp], 1
.L34:
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -56[rbp], eax
	jl	.L45
	mov	eax, 0
.L46:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	endpoints_to_sockets, .-endpoints_to_sockets
	.section	.rodata
.LC8:
	.string	"\nClosing sockets\n"
	.text
	.globl	close_sockets
	.type	close_sockets, @function
close_sockets:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	lea	rdi, .LC8[rip]
	call	flog
	mov	DWORD PTR -4[rbp], 0
	jmp	.L49
.L50:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	movsx	rdx, edx
	mov	eax, DWORD PTR 4[rax+rdx*4]
	mov	edi, eax
	call	close@PLT
	add	DWORD PTR -4[rbp], 1
.L49:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -4[rbp], eax
	jl	.L50
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	close_sockets, .-close_sockets
	.globl	exit_poll
	.bss
	.align 4
	.type	exit_poll, @object
	.size	exit_poll, 4
exit_poll:
	.zero	4
	.text
	.globl	sigint_handler
	.type	sigint_handler, @function
sigint_handler:
.LFB11:
	.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 exit_poll[rip], 1
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
	.align 8
.LC9:
	.string	"Unable to set signal handler for SIGINT"
	.align 8
.LC10:
	.string	"Unable to allocate read buffer\n"
.LC11:
	.string	"POLLERR on socket %d\n"
.LC12:
	.string	"POLLHUP on socket %d\n"
.LC13:
	.string	"POLLNVAL on socket %d\n"
	.align 8
.LC14:
	.string	"Warning: timeout on poll() without timeout\n"
.LC15:
	.string	"Error polling sockets"
	.align 8
.LC16:
	.string	"first seq: %d, last seq: %d, wrong order times\357\274\232%d\n total packet %d, packet lost %d, %f\n"
	.text
	.globl	poll_sockets
	.type	poll_sockets, @function
poll_sockets:
.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, 672
	mov	QWORD PTR -664[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, sigint_handler[rip]
	mov	QWORD PTR -576[rbp], rax
	lea	rax, -576[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -440[rbp], 0
	lea	rax, -576[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	test	eax, eax
	je	.L53
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L52
.L53:
	mov	edi, 262144
	call	malloc@PLT
	mov	QWORD PTR -616[rbp], rax
	cmp	QWORD PTR -616[rbp], 0
	jne	.L55
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 31
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	jmp	.L52
.L55:
	mov	DWORD PTR -644[rbp], 0
	mov	DWORD PTR -640[rbp], 0
	mov	DWORD PTR -636[rbp], 0
	mov	DWORD PTR -632[rbp], 0
	mov	DWORD PTR -628[rbp], 0
.L74:
	mov	DWORD PTR -648[rbp], 0
	jmp	.L56
.L57:
	mov	rax, QWORD PTR -664[rbp]
	mov	edx, DWORD PTR -648[rbp]
	movsx	rdx, edx
	mov	edx, DWORD PTR 4[rax+rdx*4]
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	mov	DWORD PTR -416[rbp+rax*8], edx
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	mov	WORD PTR -412[rbp+rax*8], 3
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	mov	WORD PTR -410[rbp+rax*8], 0
	add	DWORD PTR -648[rbp], 1
.L56:
	mov	rax, QWORD PTR -664[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -648[rbp], eax
	jl	.L57
	mov	rax, QWORD PTR -664[rbp]
	mov	eax, DWORD PTR [rax]
	movsx	rcx, eax
	lea	rax, -416[rbp]
	mov	edx, -1
	mov	rsi, rcx
	mov	rdi, rax
	call	poll@PLT
	mov	DWORD PTR -624[rbp], eax
	cmp	DWORD PTR -624[rbp], 0
	jle	.L58
	mov	DWORD PTR -648[rbp], 0
	jmp	.L59
.L69:
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	movzx	eax, WORD PTR -410[rbp+rax*8]
	cwde
	and	eax, 8
	test	eax, eax
	je	.L60
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L60:
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	movzx	eax, WORD PTR -410[rbp+rax*8]
	cwde
	and	eax, 16
	test	eax, eax
	je	.L61
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L61:
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	movzx	eax, WORD PTR -410[rbp+rax*8]
	cwde
	and	eax, 32
	test	eax, eax
	je	.L62
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	mov	edx, DWORD PTR -416[rbp+rax*8]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L62:
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	movzx	eax, WORD PTR -410[rbp+rax*8]
	cwde
	and	eax, 1
	test	eax, eax
	jne	.L63
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	movzx	eax, WORD PTR -410[rbp+rax*8]
	cwde
	and	eax, 2
	test	eax, eax
	je	.L64
.L63:
	mov	eax, DWORD PTR -648[rbp]
	cdqe
	mov	eax, DWORD PTR -416[rbp+rax*8]
	mov	rcx, QWORD PTR -616[rbp]
	mov	edx, 262144
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -608[rbp], rax
	mov	rax, QWORD PTR -616[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -620[rbp], eax
	lea	rax, -592[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	cmp	DWORD PTR -644[rbp], 0
	jne	.L65
	mov	eax, DWORD PTR -620[rbp]
	mov	DWORD PTR -644[rbp], eax
.L65:
	mov	eax, DWORD PTR -620[rbp]
	cmp	eax, DWORD PTR -640[rbp]
	jge	.L66
	add	DWORD PTR -628[rbp], 1
	jmp	.L67
.L66:
	mov	eax, DWORD PTR -640[rbp]
	add	eax, 1
	cmp	DWORD PTR -620[rbp], eax
	je	.L68
	mov	eax, DWORD PTR -620[rbp]
	sub	eax, DWORD PTR -640[rbp]
	add	DWORD PTR -636[rbp], eax
	mov	eax, DWORD PTR -620[rbp]
	mov	DWORD PTR -640[rbp], eax
	jmp	.L67
.L68:
	mov	eax, DWORD PTR -620[rbp]
	mov	DWORD PTR -640[rbp], eax
.L67:
	add	DWORD PTR -632[rbp], 1
.L64:
	add	DWORD PTR -648[rbp], 1
.L59:
	mov	rax, QWORD PTR -664[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -648[rbp], eax
	jl	.L69
	jmp	.L70
.L58:
	cmp	DWORD PTR -624[rbp], 0
	jne	.L71
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	jmp	.L70
.L71:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	je	.L70
	lea	rdi, .LC15[rip]
	call	perror@PLT
	jmp	.L72
.L70:
	mov	eax, DWORD PTR exit_poll[rip]
	test	eax, eax
	jne	.L77
	jmp	.L74
.L77:
	nop
.L72:
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -636[rbp]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, DWORD PTR -632[rbp]
	divsd	xmm0, xmm1
	movsd	QWORD PTR -600[rbp], xmm0
	mov	edx, 1024
	mov	esi, 0
	lea	rdi, buf[rip]
	call	memset@PLT
	mov	rcx, QWORD PTR -600[rbp]
	mov	r8d, DWORD PTR -632[rbp]
	mov	edi, DWORD PTR -628[rbp]
	mov	edx, DWORD PTR -640[rbp]
	mov	eax, DWORD PTR -644[rbp]
	sub	rsp, 8
	mov	esi, DWORD PTR -636[rbp]
	push	rsi
	movq	xmm0, rcx
	mov	r9d, r8d
	mov	r8d, edi
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC16[rip]
	lea	rdi, buf[rip]
	mov	eax, 1
	call	sprintf@PLT
	add	rsp, 16
	lea	rdi, buf[rip]
	call	flog
	mov	rax, QWORD PTR -616[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
.L52:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L76
	call	__stack_chk_fail@PLT
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	poll_sockets, .-poll_sockets
	.section	.rodata
	.align 8
.LC17:
	.string	"Usage: %s [*]MULTICAST_IP:PORT:SOURCE_IP:INTERFACE_IP[,INTERFACE_IP...] ...\n"
	.align 8
.LC18:
	.string	"Creates one UDP socket per argument. Each socket will be\nbound to the given port, and the multicast address will be\nadded for each given interface IP address. The binding\naddress will be the multicast IP itself, or INADDR_ANY if\npreceded by an asterisk.\n\n"
.LC19:
	.string	"a"
	.align 8
.LC20:
	.string	"open log file %s failed because %d\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1168
	mov	DWORD PTR -5252[rbp], edi
	mov	QWORD PTR -5264[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -5252[rbp], 1
	jg	.L79
	mov	rax, QWORD PTR -5264[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 255
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L84
.L79:
	mov	rax, QWORD PTR log_file[rip]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR log_fd[rip], rax
	mov	rax, QWORD PTR log_fd[rip]
	test	rax, rax
	jne	.L81
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rdx, QWORD PTR log_file[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 4
	jmp	.L84
.L81:
	lea	rdx, -5024[rbp]
	mov	rcx, QWORD PTR -5264[rbp]
	mov	eax, DWORD PTR -5252[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	make_all_endpoints
	mov	DWORD PTR -5236[rbp], eax
	cmp	DWORD PTR -5236[rbp], 0
	je	.L82
	mov	eax, 2
	jmp	.L84
.L82:
	lea	rdx, -5232[rbp]
	lea	rax, -5024[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	endpoints_to_sockets
	mov	DWORD PTR -5236[rbp], eax
	cmp	DWORD PTR -5236[rbp], 0
	je	.L83
	mov	eax, 3
	jmp	.L84
.L83:
	lea	rax, -5232[rbp]
	mov	rdi, rax
	call	poll_sockets
	lea	rax, -5232[rbp]
	mov	rdi, rax
	call	close_sockets
	mov	rax, QWORD PTR log_fd[rip]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L84:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L85
	call	__stack_chk_fail@PLT
.L85:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.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	"10820.c"
	.text
	.global	log_file
	.section	.rodata
	.align	2
.LC0:
	.ascii	"multicast_receive.log\000"
	.data
	.align	2
	.type	log_file, %object
	.size	log_file, 4
log_file:
	.word	.LC0
	.global	log_fd
	.bss
	.align	2
	.type	log_fd, %object
	.size	log_fd, 4
log_fd:
	.space	4
	.comm	buf,1024,4
	.text
	.align	2
	.global	flog
	.syntax unified
	.arm
	.fpu softvfp
	.type	flog, %function
flog:
	@ 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	printf
	ldr	r3, .L2
	ldr	r3, [r3]
	ldr	r1, [fp, #-8]
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L2
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L3:
	.align	2
.L2:
	.word	log_fd
	.size	flog, .-flog
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	make_endpoint
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_endpoint, %function
make_endpoint:
	@ 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, #-48]
	str	r1, [fp, #-52]
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-48]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #42
	bne	.L5
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	mov	r2, #1
	str	r2, [r3, #12]
	b	.L6
.L5:
	ldr	r3, [fp, #-52]
	mov	r2, #0
	str	r2, [r3, #12]
.L6:
	mov	r1, #58
	ldr	r0, [fp, #-48]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L7
	mov	r3, #1
	str	r3, [fp, #-28]
	b	.L8
.L7:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	strndup
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L9
	mov	r3, #2
	str	r3, [fp, #-28]
	b	.L8
.L9:
	ldr	r3, [fp, #-52]
	mov	r2, r3
	ldr	r1, [fp, #-36]
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	mov	r3, #3
	str	r3, [fp, #-28]
	b	.L8
.L10:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	mov	r1, #58
	ldr	r0, [fp, #-48]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L11
	mov	r3, #4
	str	r3, [fp, #-28]
	b	.L8
.L11:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	strndup
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L12
	mov	r3, #5
	str	r3, [fp, #-28]
	b	.L8
.L12:
	sub	r3, fp, #40
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r0, [fp, #-32]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-32]
	add	r2, r3, r2
	ldr	r3, [fp, #-40]
	cmp	r2, r3
	beq	.L13
	mov	r3, #6
	str	r3, [fp, #-28]
	b	.L8
.L13:
	ldr	r3, [fp, #-12]
	cmp	r3, #65536
	blt	.L14
	mov	r3, #7
	str	r3, [fp, #-28]
	b	.L8
.L14:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-52]
	strh	r2, [r3, #8]	@ movhi
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	mov	r1, #58
	ldr	r0, [fp, #-48]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L15
	mov	r3, #20
	str	r3, [fp, #-28]
	b	.L8
.L15:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	mov	r1, r3
	ldr	r0, [fp, #-48]
	bl	strndup
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L16
	mov	r3, #21
	str	r3, [fp, #-28]
	b	.L8
.L16:
	ldr	r3, [fp, #-52]
	add	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-36]
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bne	.L17
	mov	r3, #22
	str	r3, [fp, #-28]
	b	.L8
.L17:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-52]
	mov	r2, #0
	str	r2, [r3, #16]
	mov	r3, #0
	str	r3, [fp, #-20]
.L25:
	mov	r1, #44
	ldr	r0, [fp, #-48]
	bl	strchr
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L18
	ldr	r0, [fp, #-48]
	bl	strlen
	str	r0, [fp, #-24]
	mov	r3, #1
	str	r3, [fp, #-20]
	b	.L19
.L18:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	str	r3, [fp, #-24]
.L19:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L20
	ldr	r0, [fp, #-36]
	bl	free
	mov	r3, #0
	str	r3, [fp, #-36]
.L20:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-48]
	bl	strndup
	mov	r3, r0
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L21
	mov	r3, #8
	str	r3, [fp, #-28]
	b	.L8
.L21:
	sub	r3, fp, #44
	mov	r2, r3
	ldr	r1, [fp, #-36]
	mov	r0, #2
	bl	inet_pton
	mov	r3, r0
	cmp	r3, #0
	bne	.L22
	mov	r3, #9
	str	r3, [fp, #-28]
	b	.L8
.L22:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	cmp	r3, #19
	ble	.L23
	mov	r3, #10
	str	r3, [fp, #-28]
	b	.L8
.L23:
	ldr	r3, [fp, #-52]
	add	r2, r3, #20
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	sub	r1, fp, #44
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	add	r2, r3, #1
	ldr	r3, [fp, #-52]
	str	r2, [r3, #16]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L28
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	b	.L25
.L28:
	nop
.L8:
	ldr	r0, [fp, #-36]
	bl	free
	ldr	r0, [fp, #-32]
	bl	free
	ldr	r3, [fp, #-28]
	ldr	r2, .L29
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L27
	bl	__stack_chk_fail
.L27:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L30:
	.align	2
.L29:
	.word	.LC1
	.size	make_endpoint, .-make_endpoint
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Too many multicast addresses given\012\000"
	.align	2
.LC3:
	.ascii	"Error parsing argument %d: internal error code %d\012"
	.ascii	"\000"
	.text
	.align	2
	.global	make_all_endpoints
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_all_endpoints, %function
make_all_endpoints:
	@ 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, #-24]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #1
	str	r3, [fp, #-12]
	b	.L32
.L36:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #49
	ble	.L33
	ldr	r3, .L37
	ldr	r3, [r3]
	mov	r2, #35
	mov	r1, #1
	ldr	r0, .L37+4
	bl	fwrite
	mov	r3, #1
	b	.L34
.L33:
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	ldr	ip, [r3]
	ldr	r3, [fp, #-24]
	add	r2, r3, #4
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r0, r3, #1
	ldr	r1, [fp, #-24]
	str	r0, [r1]
	mov	r1, r3
	mov	r3, r1
	lsl	r3, r3, #2
	add	r3, r3, r1
	lsl	r1, r3, #2
	add	r3, r3, r1
	lsl	r3, r3, #2
	add	r3, r2, r3
	mov	r1, r3
	mov	r0, ip
	bl	make_endpoint
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L35
	ldr	r3, .L37
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	ldr	r1, .L37+8
	bl	fprintf
	mov	r3, #2
	b	.L34
.L35:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L32:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-16]
	cmp	r2, r3
	blt	.L36
	mov	r3, #0
.L34:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L38:
	.align	2
.L37:
	.word	stderr
	.word	.LC2
	.word	.LC3
	.size	make_all_endpoints, .-make_all_endpoints
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Error creating socket\000"
	.align	2
.LC5:
	.ascii	"Error setting reuse flag\000"
	.align	2
.LC6:
	.ascii	"Error binding to listening address\000"
	.align	2
.LC7:
	.ascii	"Error adding multicast group membership\000"
	.align	2
.LC8:
	.ascii	"Multicast address number %d: created file descripto"
	.ascii	"r %d on %d interfaces\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	endpoints_to_sockets
	.syntax unified
	.arm
	.fpu softvfp
	.type	endpoints_to_sockets, %function
endpoints_to_sockets:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-56]
	str	r1, [fp, #-60]
	ldr	r3, .L54
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-60]
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L40
.L51:
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-40]
	cmn	r3, #1
	bne	.L41
	ldr	r0, .L54+4
	bl	perror
	mov	r3, #1
	b	.L52
.L41:
	ldr	r3, [fp, #-60]
	ldr	r3, [r3]
	add	r1, r3, #1
	ldr	r2, [fp, #-60]
	str	r1, [r2]
	ldr	r2, [fp, #-60]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-40]
	str	r2, [r3, #4]
	mov	r3, #1
	str	r3, [fp, #-52]
	sub	r3, fp, #52
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-40]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L43
	ldr	r0, .L54+8
	bl	perror
	mov	r3, #2
	b	.L52
.L43:
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #12
	ldrh	r3, [r3]
	strh	r3, [fp, #-22]	@ movhi
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L44
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L45
.L44:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	add	r1, r3, #4
	sub	r3, fp, #24
	add	r3, r3, #4
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
.L45:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L46
	ldr	r0, .L54+12
	bl	perror
	mov	r3, #3
	b	.L52
.L46:
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L47
.L49:
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	add	r1, r3, #4
	sub	r3, fp, #36
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	ldr	r2, [fp, #-44]
	add	r3, r3, r2
	add	r3, r3, #4
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	add	r1, r3, #8
	sub	r3, fp, #36
	add	r3, r3, #4
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, [fp, #-56]
	add	r3, r2, r3
	add	r1, r3, #8
	sub	r3, fp, #36
	add	r3, r3, #8
	mov	r2, #4
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #36
	mov	r2, #12
	str	r2, [sp]
	mov	r2, #39
	mov	r1, #0
	ldr	r0, [fp, #-40]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L48
	ldr	r0, .L54+16
	bl	perror
	mov	r3, #4
	b	.L52
.L48:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L47:
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	blt	.L49
	mov	r2, #1024
	mov	r1, #0
	ldr	r0, .L54+20
	bl	memset
	ldr	r3, [fp, #-48]
	add	r0, r3, #1
	ldr	r1, [fp, #-56]
	ldr	r2, [fp, #-48]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #20
	ldr	r3, [r3]
	str	r3, [sp]
	ldr	r3, [fp, #-40]
	mov	r2, r0
	ldr	r1, .L54+24
	ldr	r0, .L54+20
	bl	sprintf
	ldr	r0, .L54+20
	bl	flog
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L40:
	ldr	r3, [fp, #-56]
	ldr	r3, [r3]
	ldr	r2, [fp, #-48]
	cmp	r2, r3
	blt	.L51
	mov	r3, #0
.L52:
	ldr	r2, .L54
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L53
	bl	__stack_chk_fail
.L53:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L55:
	.align	2
.L54:
	.word	.LC9
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	buf
	.word	.LC8
	.size	endpoints_to_sockets, .-endpoints_to_sockets
	.section	.rodata
	.align	2
.LC10:
	.ascii	"\012Closing sockets\012\000"
	.text
	.align	2
	.global	close_sockets
	.syntax unified
	.arm
	.fpu softvfp
	.type	close_sockets, %function
close_sockets:
	@ 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, .L59
	bl	flog
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L57
.L58:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L57:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	blt	.L58
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC10
	.size	close_sockets, .-close_sockets
	.global	exit_poll
	.bss
	.align	2
	.type	exit_poll, %object
	.size	exit_poll, 4
exit_poll:
	.space	4
	.text
	.align	2
	.global	sigint_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	sigint_handler, %function
sigint_handler:
	@ 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, .L62
	mov	r2, #1
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L63:
	.align	2
.L62:
	.word	exit_poll
	.size	sigint_handler, .-sigint_handler
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Unable to set signal handler for SIGINT\000"
	.align	2
.LC12:
	.ascii	"Unable to allocate read buffer\012\000"
	.align	2
.LC13:
	.ascii	"POLLERR on socket %d\012\000"
	.align	2
.LC14:
	.ascii	"POLLHUP on socket %d\012\000"
	.align	2
.LC15:
	.ascii	"POLLNVAL on socket %d\012\000"
	.align	2
.LC16:
	.ascii	"Warning: timeout on poll() without timeout\012\000"
	.align	2
.LC17:
	.ascii	"Error polling sockets\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.align	2
.LC18:
	.ascii	"first seq: %d, last seq: %d, wrong order times\357\274"
	.ascii	"\232%d\012 total packet %d, packet lost %d, %f\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	poll_sockets
	.syntax unified
	.arm
	.fpu softvfp
	.type	poll_sockets, %function
poll_sockets:
	@ args = 0, pretend = 0, frame = 608
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #632
	str	r0, [fp, #-616]
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L90+4
	str	r3, [fp, #-556]
	sub	r3, fp, #556
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-424]
	sub	r3, fp, #556
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	ldr	r0, .L90+8
	bl	perror
	b	.L64
.L65:
	mov	r0, #262144
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-588]
	ldr	r3, [fp, #-588]
	cmp	r3, #0
	bne	.L67
	ldr	r3, .L90+12
	ldr	r3, [r3]
	mov	r2, #31
	mov	r1, #1
	ldr	r0, .L90+16
	bl	fwrite
	b	.L64
.L67:
	mov	r3, #0
	str	r3, [fp, #-608]
	mov	r3, #0
	str	r3, [fp, #-604]
	mov	r3, #0
	str	r3, [fp, #-600]
	mov	r3, #0
	str	r3, [fp, #-596]
	mov	r3, #0
	str	r3, [fp, #-592]
.L86:
	mov	r3, #0
	str	r3, [fp, #-612]
	b	.L68
.L69:
	ldr	r2, [fp, #-616]
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-404]
	sub	r3, fp, #12
	sub	r2, r3, #404
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #4
	mov	r2, #3
	strh	r2, [r3]	@ movhi
	sub	r3, fp, #12
	sub	r2, r3, #404
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-612]
	add	r3, r3, #1
	str	r3, [fp, #-612]
.L68:
	ldr	r3, [fp, #-616]
	ldr	r3, [r3]
	ldr	r2, [fp, #-612]
	cmp	r2, r3
	blt	.L69
	ldr	r3, [fp, #-616]
	ldr	r3, [r3]
	mov	r1, r3
	sub	r3, fp, #416
	mvn	r2, #0
	mov	r0, r3
	bl	poll
	str	r0, [fp, #-584]
	ldr	r3, [fp, #-584]
	cmp	r3, #0
	ble	.L70
	mov	r3, #0
	str	r3, [fp, #-612]
	b	.L71
.L81:
	sub	r3, fp, #12
	sub	r2, r3, #404
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L72
	ldr	r3, .L90+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r2, r3
	ldr	r1, .L90+20
	bl	fprintf
.L72:
	sub	r3, fp, #12
	sub	r2, r3, #404
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #16
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L90+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r2, r3
	ldr	r1, .L90+24
	bl	fprintf
.L73:
	sub	r3, fp, #12
	sub	r2, r3, #404
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #32
	cmp	r3, #0
	beq	.L74
	ldr	r3, .L90+12
	ldr	r0, [r3]
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r2, r3
	ldr	r1, .L90+28
	bl	fprintf
.L74:
	sub	r3, fp, #12
	sub	r2, r3, #404
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L75
	sub	r3, fp, #12
	sub	r2, r3, #404
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	add	r3, r2, r3
	add	r3, r3, #6
	ldrsh	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L76
.L75:
	ldr	r3, [fp, #-612]
	lsl	r3, r3, #3
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r3, [r3, #-404]
	mov	r2, #262144
	ldr	r1, [fp, #-588]
	mov	r0, r3
	bl	read
	str	r0, [fp, #-580]
	ldr	r3, [fp, #-588]
	ldr	r3, [r3]
	str	r3, [fp, #-576]
	sub	r3, fp, #564
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-608]
	cmp	r3, #0
	bne	.L77
	ldr	r3, [fp, #-576]
	str	r3, [fp, #-608]
.L77:
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-604]
	cmp	r2, r3
	bge	.L78
	ldr	r3, [fp, #-592]
	add	r3, r3, #1
	str	r3, [fp, #-592]
	b	.L79
.L78:
	ldr	r3, [fp, #-604]
	add	r3, r3, #1
	ldr	r2, [fp, #-576]
	cmp	r2, r3
	beq	.L80
	ldr	r2, [fp, #-576]
	ldr	r3, [fp, #-604]
	sub	r3, r2, r3
	ldr	r2, [fp, #-600]
	add	r3, r2, r3
	str	r3, [fp, #-600]
	ldr	r3, [fp, #-576]
	str	r3, [fp, #-604]
	b	.L79
.L80:
	ldr	r3, [fp, #-576]
	str	r3, [fp, #-604]
.L79:
	ldr	r3, [fp, #-596]
	add	r3, r3, #1
	str	r3, [fp, #-596]
.L76:
	ldr	r3, [fp, #-612]
	add	r3, r3, #1
	str	r3, [fp, #-612]
.L71:
	ldr	r3, [fp, #-616]
	ldr	r3, [r3]
	ldr	r2, [fp, #-612]
	cmp	r2, r3
	blt	.L81
	b	.L82
.L70:
	ldr	r3, [fp, #-584]
	cmp	r3, #0
	bne	.L83
	ldr	r3, .L90+12
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L90+32
	bl	fwrite
	b	.L82
.L83:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	beq	.L82
	ldr	r0, .L90+36
	bl	perror
	b	.L84
.L82:
	ldr	r3, .L90+40
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L89
	b	.L86
.L89:
	nop
.L84:
	ldr	r0, [fp, #-600]
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r0, [fp, #-596]
	bl	__aeabi_i2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-572]
	str	r3, [fp, #-568]
	mov	r2, #1024
	mov	r1, #0
	ldr	r0, .L90+44
	bl	memset
	sub	r3, fp, #572
	ldmia	r3, {r2-r3}
	str	r2, [sp, #16]
	str	r3, [sp, #20]
	ldr	r3, [fp, #-600]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-596]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-592]
	str	r3, [sp]
	ldr	r3, [fp, #-604]
	ldr	r2, [fp, #-608]
	ldr	r1, .L90+48
	ldr	r0, .L90+44
	bl	sprintf
	ldr	r0, .L90+44
	bl	flog
	ldr	r0, [fp, #-588]
	bl	free
	nop
.L64:
	ldr	r3, .L90
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC19
	.word	sigint_handler
	.word	.LC11
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	exit_poll
	.word	buf
	.word	.LC18
	.size	poll_sockets, .-poll_sockets
	.section	.rodata
	.align	2
.LC20:
	.ascii	"Usage: %s [*]MULTICAST_IP:PORT:SOURCE_IP:INTERFACE_"
	.ascii	"IP[,INTERFACE_IP...] ...\012\000"
	.align	2
.LC21:
	.ascii	"Creates one UDP socket per argument. Each socket wi"
	.ascii	"ll be\012bound to the given port, and the multicast"
	.ascii	" address will be\012added for each given interface "
	.ascii	"IP address. The binding\012address will be the mult"
	.ascii	"icast IP itself, or INADDR_ANY if\012preceded by an"
	.ascii	" asterisk.\012\012\000"
	.align	2
.LC22:
	.ascii	"a\000"
	.align	2
.LC23:
	.ascii	"open log file %s failed because %d\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 5224
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #5184
	sub	sp, sp, #40
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-1124]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-1128]
	ldr	r3, .L100
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1124]
	cmp	r3, #1
	bgt	.L93
	ldr	r3, .L100+4
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1128]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L100+8
	bl	fprintf
	ldr	r3, .L100+4
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, .L100+4
	ldr	r3, [r3]
	mov	r2, #255
	mov	r1, #1
	ldr	r0, .L100+12
	bl	fwrite
	mov	r3, #1
	b	.L98
.L93:
	ldr	r3, .L100+16
	ldr	r3, [r3]
	ldr	r1, .L100+20
	mov	r0, r3
	bl	fopen
	mov	r3, r0
	ldr	r2, .L100+24
	str	r3, [r2]
	ldr	r3, .L100+24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L95
	ldr	r3, .L100+4
	ldr	r4, [r3]
	ldr	r3, .L100+16
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r1, .L100+28
	mov	r0, r4
	bl	fprintf
	mov	r3, #4
	b	.L98
.L95:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #16
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, r3
	ldr	r1, [r1, #-1128]
	ldr	r0, [r0, #-1124]
	bl	make_all_endpoints
	str	r0, [r4, #-1120]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1120]
	cmp	r3, #0
	beq	.L96
	mov	r3, #2
	b	.L98
.L96:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r2, fp, #5184
	sub	r2, r2, #12
	sub	r2, r2, #28
	sub	r3, fp, #4992
	sub	r3, r3, #12
	sub	r3, r3, #16
	mov	r1, r2
	mov	r0, r3
	bl	endpoints_to_sockets
	str	r0, [r4, #-1120]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-1120]
	cmp	r3, #0
	beq	.L97
	mov	r3, #3
	b	.L98
.L97:
	sub	r3, fp, #5184
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r0, r3
	bl	poll_sockets
	sub	r3, fp, #5184
	sub	r3, r3, #12
	sub	r3, r3, #28
	mov	r0, r3
	bl	close_sockets
	ldr	r3, .L100+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
	mov	r3, #0
.L98:
	ldr	r2, .L100
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L99
	bl	__stack_chk_fail
.L99:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L101:
	.align	2
.L100:
	.word	.LC24
	.word	stderr
	.word	.LC20
	.word	.LC21
	.word	log_file
	.word	.LC22
	.word	log_fd
	.word	.LC23
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
