	.file	"633179.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"RTP"
.LC1:
	.string	"Plain-TS"
.LC2:
	.string	"Unknown"
	.text
	.globl	get_hdr_format_str
	.type	get_hdr_format_str, @function
get_hdr_format_str:
.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
	cmp	DWORD PTR -4[rbp], 1
	je	.L2
	cmp	DWORD PTR -4[rbp], 2
	jne	.L3
	lea	rax, .LC0[rip]
	jmp	.L4
.L2:
	lea	rax, .LC1[rip]
	jmp	.L4
.L3:
	lea	rax, .LC2[rip]
.L4:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	get_hdr_format_str, .-get_hdr_format_str
	.section	.rodata
	.align 8
.LC3:
	.ascii	"Usage: \n%s <IP> <Port> [-d <paks-per-dot>] [-n <npaks>] [-t"
	.ascii	" <timeout>]\n               [-c <ts-file>] [-u <udp-file>]\n"
	.ascii	"    paks-per-dot: print a dot every time this number of pack"
	.ascii	"ets\n             is received - disable with 0\n    npaks: e"
	.ascii	"xit with status 0 after this many packets have been\n       "
	.ascii	"      received\n    timeout: exit with error status after th"
	.ascii	"is many seconds have\n             elapsed --\n             "
	.ascii	"exit with status 2 if 0 packets received \n             exit"
	.ascii	" with status 1 if some packets received\n    ts-file: save r"
	.ascii	"eceived TS packets (i.e., UDP or RTP payload)\n             "
	.ascii	"into this file\n    udp-file: save UDP payload into this fil"
	.ascii	"e, with each packet\n             prefixed by its length: <l"
	.ascii	"en1> + <UDP-payload1>,\n             <len2> + <udp-payload2>"
	.ascii	", ..\n             This allows to identify individual UDP pa"
	.ascii	"cket\n             boundaries.\n\n Note: Presence of RTP hea"
	.ascii	"ders is handled automatically and the\n       headers are re"
	.ascii	"moved for the ts-file output but retained in\n       the udp"
	.ascii	"-file.\nExamples:\n  %s 225.0.0.100 2000 -d 100\n       run "
	.ascii	"forever monitoring this multicast stream \n       pri"
	.string	"nting a dot for every 100 packets\n  %s 225.0.0.100 2000 -d 0 -n 100 -t 60 -c cap.ts\n       test this multicast stream, printing no dots,\n       returning an error if 100 packets are not received in\n       60 seconds and storing the captured data in cap.ts\n"
	.text
	.globl	printhelp
	.type	printhelp, @function
printhelp:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	r8, rsi
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	printhelp, .-printhelp
	.type	get_packet_hdr_format, @function
get_packet_hdr_format:
.LFB8:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, edi
	mov	DWORD PTR -24[rbp], esi
	mov	BYTE PTR -20[rbp], al
	movzx	eax, BYTE PTR -20[rbp]
	shr	al, 6
	cmp	al, 2
	jne	.L7
	mov	eax, DWORD PTR -24[rbp]
	lea	edx, -12[rax]
	movsx	rax, edx
	imul	rax, rax, -1370734243
	shr	rax, 32
	add	eax, edx
	sar	eax, 7
	mov	ecx, edx
	sar	ecx, 31
	sub	eax, ecx
	imul	ecx, eax, 188
	mov	eax, edx
	sub	eax, ecx
	test	eax, eax
	jne	.L7
	mov	eax, 1
	jmp	.L8
.L7:
	mov	eax, 0
.L8:
	mov	DWORD PTR -8[rbp], eax
	cmp	BYTE PTR -20[rbp], 71
	jne	.L9
	mov	eax, DWORD PTR -24[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, -1370734243
	shr	rdx, 32
	add	edx, eax
	sar	edx, 7
	mov	ecx, eax
	sar	ecx, 31
	sub	edx, ecx
	imul	ecx, edx, 188
	sub	eax, ecx
	mov	edx, eax
	test	edx, edx
	jne	.L9
	mov	eax, 1
	jmp	.L10
.L9:
	mov	eax, 0
.L10:
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L11
	mov	eax, 2
	jmp	.L12
.L11:
	cmp	DWORD PTR -4[rbp], 0
	je	.L13
	mov	eax, 1
	jmp	.L12
.L13:
	mov	eax, 0
.L12:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_packet_hdr_format, .-get_packet_hdr_format
	.section	.rodata
	.align 8
.LC4:
	.string	"invalid value for packets_per_dot"
.LC5:
	.string	"invalid value for npackets"
.LC6:
	.string	"invalid value for timeoutSecs"
.LC7:
	.string	"?hd:n:t:c:u:"
	.align 8
.LC8:
	.string	"Missing either <IP> or <Port>\n"
	.align 8
.LC9:
	.string	"Invalid port number argument %d.\n"
	.align 8
.LC10:
	.string	"Valid range is between %d and %d.\n"
	.align 8
.LC11:
	.string	"Running with these configs:\nmcast-addr:%s:%d paks-per-dot:%d npaklimit:%d timeout:%d ts_filename:%s updFilename:%s\n"
.LC12:
	.string	"Error opening <ts_filename>"
.LC13:
	.string	"Error opening <udp_filename>"
.LC14:
	.string	"socket() failed"
.LC15:
	.string	"setsockopt() failed"
.LC16:
	.string	"bind() failed"
.LC17:
	.string	"recvfrom() failed"
.LC18:
	.string	"exiting: %d packets received\n"
	.align 8
.LC19:
	.string	"Payload format changed:%s -> %s\n"
	.align 8
.LC20:
	.string	"Warning-Wrote only %d/%d ts-bytes, stop writing ts-file!\n"
	.align 8
.LC21:
	.string	"Warning-Wrote only %d/%d bytes, stop writing udp-file!\n"
	.align 8
.LC22:
	.string	"Warning-Wrote only %d/%d udp-bytes, stop writing udp-file!\n"
.LC23:
	.string	"timeout: %d packets received\n"
.LC24:
	.string	"select"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 2408
	.cfi_offset 3, -24
	mov	DWORD PTR -2404[rbp], edi
	mov	QWORD PTR -2416[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2388[rbp], 1
	mov	DWORD PTR -2384[rbp], 1048576
	mov	DWORD PTR -2372[rbp], 1
	mov	DWORD PTR -2368[rbp], 0
	mov	DWORD PTR -2364[rbp], 0
	mov	DWORD PTR -2360[rbp], 0
	mov	QWORD PTR -2304[rbp], 0
	mov	QWORD PTR -2296[rbp], 0
	mov	DWORD PTR -2356[rbp], -1
	mov	DWORD PTR -2352[rbp], -1
	mov	DWORD PTR -2340[rbp], 0
	jmp	.L15
.L26:
	mov	eax, DWORD PTR -2336[rbp]
	sub	eax, 63
	cmp	eax, 54
	ja	.L15
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L17[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L17[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L17:
	.long	.L20-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L22-.L17
	.long	.L21-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L20-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L19-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L15-.L17
	.long	.L18-.L17
	.long	.L16-.L17
	.text
.L20:
	mov	rax, QWORD PTR -2416[rbp]
	mov	rdi, rax
	call	printhelp
	mov	edi, 0
	call	exit@PLT
.L21:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2372[rbp], eax
	cmp	DWORD PTR -2372[rbp], 0
	jns	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -2416[rbp]
	mov	rdi, rax
	call	printhelp
	mov	edi, 4
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2364[rbp], eax
	cmp	DWORD PTR -2364[rbp], 0
	jns	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 26
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -2416[rbp]
	mov	rdi, rax
	call	printhelp
	mov	edi, 4
	call	exit@PLT
.L18:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2360[rbp], eax
	cmp	DWORD PTR -2360[rbp], 0
	jns	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -2416[rbp]
	mov	rdi, rax
	call	printhelp
	mov	edi, 4
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -2304[rbp], rax
	jmp	.L15
.L16:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -2296[rbp], rax
	nop
.L15:
	mov	rcx, QWORD PTR -2416[rbp]
	mov	eax, DWORD PTR -2404[rbp]
	lea	rdx, .LC7[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -2336[rbp], eax
	cmp	DWORD PTR -2336[rbp], -1
	jne	.L26
	mov	eax, DWORD PTR optind[rip]
	add	eax, 2
	cmp	DWORD PTR -2404[rbp], eax
	je	.L27
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -2416[rbp]
	mov	rdi, rax
	call	printhelp
	mov	edi, 4
	call	exit@PLT
.L27:
	mov	eax, DWORD PTR optind[rip]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2416[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -2280[rbp], rax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	add	rax, 1
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -2416[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2332[rbp], eax
	cmp	DWORD PTR -2332[rbp], 1023
	jbe	.L28
	cmp	DWORD PTR -2332[rbp], 65535
	jbe	.L29
.L28:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2332[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, 65535
	mov	edx, 1024
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L29:
	mov	edi, DWORD PTR -2360[rbp]
	mov	esi, DWORD PTR -2364[rbp]
	mov	ecx, DWORD PTR -2372[rbp]
	mov	edx, DWORD PTR -2332[rbp]
	mov	rax, QWORD PTR -2280[rbp]
	push	QWORD PTR -2296[rbp]
	push	QWORD PTR -2304[rbp]
	mov	r9d, edi
	mov	r8d, esi
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	add	rsp, 16
	cmp	QWORD PTR -2304[rbp], 0
	je	.L30
	mov	rax, QWORD PTR -2304[rbp]
	mov	edx, 438
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2356[rbp], eax
	cmp	DWORD PTR -2356[rbp], 0
	jns	.L30
	lea	rdi, .LC12[rip]
	call	perror@PLT
.L30:
	cmp	QWORD PTR -2296[rbp], 0
	je	.L31
	mov	rax, QWORD PTR -2296[rbp]
	mov	edx, 438
	mov	esi, 193
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -2352[rbp], eax
	cmp	DWORD PTR -2352[rbp], 0
	jns	.L31
	lea	rdi, .LC13[rip]
	call	perror@PLT
.L31:
	mov	edx, 17
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2328[rbp], eax
	cmp	DWORD PTR -2328[rbp], 0
	jns	.L32
	lea	rdi, .LC14[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L32:
	lea	rdx, -2388[rbp]
	mov	eax, DWORD PTR -2328[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L33
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L33:
	lea	rdx, -2384[rbp]
	mov	eax, DWORD PTR -2328[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	je	.L34
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L34:
	lea	rax, -2240[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -2240[rbp], 2
	mov	rax, QWORD PTR -2280[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -2236[rbp], eax
	mov	eax, DWORD PTR -2332[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -2238[rbp], ax
	lea	rcx, -2240[rbp]
	mov	eax, DWORD PTR -2328[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L35
	lea	rdi, .LC16[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L35:
	mov	rax, QWORD PTR -2280[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -2264[rbp], eax
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -2260[rbp], eax
	lea	rdx, -2264[rbp]
	mov	eax, DWORD PTR -2328[rbp]
	mov	r8d, 8
	mov	rcx, rdx
	mov	edx, 35
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L36
	lea	rdi, .LC15[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L36:
	lea	rax, -2080[rbp]
	mov	edx, 2049
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -2376[rbp], 16
	mov	eax, DWORD PTR -2376[rbp]
	mov	edx, eax
	lea	rax, -2224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -2272[rbp], rax
	mov	DWORD PTR -2348[rbp], 0
.L49:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -2208[rbp]
	mov	rdi, rdx
#APP
# 254 "the_stack_data/633179.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -2324[rbp], edx
	mov	DWORD PTR -2320[rbp], eax
	mov	eax, DWORD PTR -2328[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -2208[rbp+rax*8]
	mov	eax, DWORD PTR -2328[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 -2208[rbp+rax*8], rdx
	mov	QWORD PTR -2256[rbp], 1
	mov	QWORD PTR -2248[rbp], 0
	mov	eax, DWORD PTR -2328[rbp]
	lea	edi, 1[rax]
	lea	rdx, -2256[rbp]
	lea	rax, -2208[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -2340[rbp], eax
	cmp	DWORD PTR -2340[rbp], 0
	jle	.L37
	lea	rcx, -2376[rbp]
	lea	rdx, -2224[rbp]
	lea	rsi, -2080[rbp]
	mov	eax, DWORD PTR -2328[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -2380[rbp], eax
	mov	eax, DWORD PTR -2380[rbp]
	test	eax, eax
	jns	.L38
	lea	rdi, .LC17[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
.L38:
	add	DWORD PTR -2368[rbp], 1
	cmp	DWORD PTR -2372[rbp], 0
	jle	.L39
	mov	eax, DWORD PTR -2368[rbp]
	cdq
	idiv	DWORD PTR -2372[rbp]
	mov	eax, edx
	test	eax, eax
	jne	.L39
	mov	edi, 46
	call	putchar@PLT
	mov	eax, DWORD PTR -2368[rbp]
	cdq
	idiv	DWORD PTR -2372[rbp]
	mov	ecx, eax
	movsx	rax, ecx
	imul	rax, rax, 1717986919
	shr	rax, 32
	sar	eax, 5
	mov	esi, ecx
	sar	esi, 31
	sub	eax, esi
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 4
	sub	ecx, eax
	mov	edx, ecx
	test	edx, edx
	jne	.L40
	mov	edi, 10
	call	putchar@PLT
.L40:
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
.L39:
	cmp	DWORD PTR -2364[rbp], 0
	jle	.L41
	mov	eax, DWORD PTR -2368[rbp]
	cmp	eax, DWORD PTR -2364[rbp]
	jl	.L41
	mov	eax, DWORD PTR -2368[rbp]
	mov	esi, eax
	lea	rdi, .LC18[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edi, 0
	call	exit@PLT
.L41:
	mov	edx, DWORD PTR -2380[rbp]
	movzx	eax, BYTE PTR -2080[rbp]
	movzx	eax, al
	mov	esi, edx
	mov	edi, eax
	call	get_packet_hdr_format
	mov	DWORD PTR -2316[rbp], eax
	mov	eax, DWORD PTR -2348[rbp]
	cmp	eax, DWORD PTR -2316[rbp]
	je	.L42
	mov	eax, DWORD PTR -2316[rbp]
	mov	edi, eax
	call	get_hdr_format_str
	mov	rbx, rax
	mov	eax, DWORD PTR -2348[rbp]
	mov	edi, eax
	call	get_hdr_format_str
	mov	rdx, rbx
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2316[rbp]
	mov	DWORD PTR -2348[rbp], eax
.L42:
	lea	rax, -2080[rbp]
	mov	QWORD PTR -2288[rbp], rax
	mov	eax, DWORD PTR -2380[rbp]
	mov	DWORD PTR -2344[rbp], eax
	cmp	DWORD PTR -2316[rbp], 2
	jne	.L43
	add	QWORD PTR -2288[rbp], 12
	sub	DWORD PTR -2344[rbp], 12
.L43:
	cmp	DWORD PTR -2356[rbp], 0
	js	.L44
	mov	eax, DWORD PTR -2344[rbp]
	movsx	rdx, eax
	mov	rcx, QWORD PTR -2288[rbp]
	mov	eax, DWORD PTR -2356[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -2312[rbp], eax
	mov	eax, DWORD PTR -2312[rbp]
	cmp	eax, DWORD PTR -2344[rbp]
	jge	.L44
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -2344[rbp]
	mov	edx, DWORD PTR -2312[rbp]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -2356[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -2356[rbp], -1
.L44:
	cmp	DWORD PTR -2352[rbp], 0
	js	.L49
	lea	rcx, -2380[rbp]
	mov	eax, DWORD PTR -2352[rbp]
	mov	edx, 4
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -2308[rbp], eax
	cmp	DWORD PTR -2308[rbp], 3
	jg	.L46
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2308[rbp]
	mov	ecx, 4
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -2352[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -2352[rbp], -1
	jmp	.L49
.L46:
	mov	eax, DWORD PTR -2380[rbp]
	movsx	rdx, eax
	lea	rcx, -2080[rbp]
	mov	eax, DWORD PTR -2352[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -2308[rbp], eax
	mov	eax, DWORD PTR -2380[rbp]
	cmp	DWORD PTR -2308[rbp], eax
	jge	.L49
	mov	ecx, DWORD PTR -2380[rbp]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -2308[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -2352[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -2352[rbp], -1
	jmp	.L49
.L37:
	cmp	DWORD PTR -2340[rbp], 0
	jne	.L47
	cmp	DWORD PTR -2360[rbp], 0
	jle	.L49
	mov	edi, 0
	call	time@PLT
	mov	edx, DWORD PTR -2360[rbp]
	movsx	rcx, edx
	mov	rdx, QWORD PTR -2272[rbp]
	add	rdx, rcx
	cmp	rax, rdx
	jl	.L49
	mov	eax, DWORD PTR -2368[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -2368[rbp], 0
	jle	.L48
	mov	edi, 1
	call	exit@PLT
.L48:
	mov	edi, 2
	call	exit@PLT
.L47:
	cmp	DWORD PTR -2340[rbp], 0
	jns	.L49
	lea	rdi, .LC24[rip]
	call	perror@PLT
	mov	edi, 4
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.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	"633179.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"RTP\000"
	.align	2
.LC1:
	.ascii	"Plain-TS\000"
	.align	2
.LC2:
	.ascii	"Unknown\000"
	.text
	.align	2
	.global	get_hdr_format_str
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_hdr_format_str, %function
get_hdr_format_str:
	@ 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]
	cmp	r3, #1
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #2
	bne	.L3
	ldr	r3, .L5
	b	.L4
.L2:
	ldr	r3, .L5+4
	b	.L4
.L3:
	ldr	r3, .L5+8
.L4:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	get_hdr_format_str, .-get_hdr_format_str
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Usage: \012%s <IP> <Port> [-d <paks-per-dot>] [-n <"
	.ascii	"npaks>] [-t <timeout>]\012               [-c <ts-fi"
	.ascii	"le>] [-u <udp-file>]\012    paks-per-dot: print a d"
	.ascii	"ot every time this number of packets\012           "
	.ascii	"  is received - disable with 0\012    npaks: exit w"
	.ascii	"ith status 0 after this many packets have been\012 "
	.ascii	"            received\012    timeout: exit with erro"
	.ascii	"r status after this many seconds have\012          "
	.ascii	"   elapsed --\012             exit with status 2 if"
	.ascii	" 0 packets received \012             exit with stat"
	.ascii	"us 1 if some packets received\012    ts-file: save "
	.ascii	"received TS packets (i.e., UDP or RTP payload)\012 "
	.ascii	"            into this file\012    udp-file: save UD"
	.ascii	"P payload into this file, with each packet\012     "
	.ascii	"        prefixed by its length: <len1> + <UDP-paylo"
	.ascii	"ad1>,\012             <len2> + <udp-payload2>, ..\012"
	.ascii	"             This allows to identify individual UDP"
	.ascii	" packet\012             boundaries.\012\012 Note: P"
	.ascii	"resence of RTP headers is handled automatically and"
	.ascii	" the\012       headers are removed for the ts-file "
	.ascii	"output but retained in\012       the udp-file.\012E"
	.ascii	"xamples:\012  %s 225.0.0.100 2000 -d 100\012       "
	.ascii	"run forever monitoring this multicast stream \012  "
	.ascii	"     printing a dot for every 100 packets\012  %s 2"
	.ascii	"25.0.0.100 2000 -d 0 -n 100 -t 60 -c cap.ts\012    "
	.ascii	"   test this multicast stream, printing no dots,\012"
	.ascii	"       returning an error if 100 packets are not re"
	.ascii	"ceived in\012       60 seconds and storing the capt"
	.ascii	"ured data in cap.ts\012\000"
	.text
	.align	2
	.global	printhelp
	.syntax unified
	.arm
	.fpu softvfp
	.type	printhelp, %function
printhelp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	ldr	r3, .L8
	ldr	r0, [r3]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L8+4
	bl	fprintf
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	stderr
	.word	.LC3
	.size	printhelp, .-printhelp
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_packet_hdr_format, %function
get_packet_hdr_format:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	mov	r3, r0
	str	r1, [fp, #-20]
	strb	r3, [fp, #-13]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	lsr	r3, r3, #6
	and	r3, r3, #255
	cmp	r3, #2
	bne	.L11
	ldr	r3, [fp, #-20]
	sub	r1, r3, #12
	ldr	r3, .L18
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L11
	mov	r3, #1
	b	.L12
.L11:
	mov	r3, #0
.L12:
	str	r3, [fp, #-12]
	ldrb	r3, [fp, #-13]	@ zero_extendqisi2
	cmp	r3, #71
	bne	.L13
	ldr	r1, [fp, #-20]
	ldr	r3, .L18
	smull	r2, r3, r1, r3
	add	r3, r3, r1
	asr	r2, r3, #7
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r3, r3, r2
	lsl	r3, r3, #2
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L13
	mov	r3, #1
	b	.L14
.L13:
	mov	r3, #0
.L14:
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L15
	mov	r3, #2
	b	.L16
.L15:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L17
	mov	r3, #1
	b	.L16
.L17:
	mov	r3, #0
.L16:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L19:
	.align	2
.L18:
	.word	-1370734243
	.size	get_packet_hdr_format, .-get_packet_hdr_format
	.section	.rodata
	.align	2
.LC4:
	.ascii	"invalid value for packets_per_dot\000"
	.align	2
.LC5:
	.ascii	"invalid value for npackets\000"
	.align	2
.LC6:
	.ascii	"invalid value for timeoutSecs\000"
	.align	2
.LC7:
	.ascii	"?hd:n:t:c:u:\000"
	.align	2
.LC8:
	.ascii	"Missing either <IP> or <Port>\012\000"
	.align	2
.LC9:
	.ascii	"Invalid port number argument %d.\012\000"
	.align	2
.LC10:
	.ascii	"Valid range is between %d and %d.\012\000"
	.align	2
.LC11:
	.ascii	"Running with these configs:\012mcast-addr:%s:%d pak"
	.ascii	"s-per-dot:%d npaklimit:%d timeout:%d ts_filename:%s"
	.ascii	" updFilename:%s\012\000"
	.align	2
.LC12:
	.ascii	"Error opening <ts_filename>\000"
	.align	2
.LC13:
	.ascii	"Error opening <udp_filename>\000"
	.align	2
.LC14:
	.ascii	"socket() failed\000"
	.align	2
.LC15:
	.ascii	"setsockopt() failed\000"
	.align	2
.LC16:
	.ascii	"bind() failed\000"
	.align	2
.LC17:
	.ascii	"recvfrom() failed\000"
	.global	__aeabi_idivmod
	.global	__aeabi_idiv
	.align	2
.LC18:
	.ascii	"exiting: %d packets received\012\000"
	.align	2
.LC19:
	.ascii	"Payload format changed:%s -> %s\012\000"
	.align	2
.LC20:
	.ascii	"Warning-Wrote only %d/%d ts-bytes, stop writing ts-"
	.ascii	"file!\012\000"
	.align	2
.LC21:
	.ascii	"Warning-Wrote only %d/%d bytes, stop writing udp-fi"
	.ascii	"le!\012\000"
	.align	2
.LC22:
	.ascii	"Warning-Wrote only %d/%d udp-bytes, stop writing ud"
	.ascii	"p-file!\012\000"
	.align	2
.LC23:
	.ascii	"timeout: %d packets received\012\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 = 2344
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2352
	sub	sp, sp, #12
	str	r0, [fp, #-2352]
	str	r1, [fp, #-2356]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-2348]
	mov	r3, #1048576
	str	r3, [fp, #-2344]
	mov	r3, #1
	str	r3, [fp, #-2332]
	mov	r3, #0
	str	r3, [fp, #-2328]
	mov	r3, #0
	str	r3, [fp, #-2324]
	mov	r3, #0
	str	r3, [fp, #-2320]
	mov	r3, #0
	str	r3, [fp, #-2316]
	mov	r3, #0
	str	r3, [fp, #-2312]
	mvn	r3, #0
	str	r3, [fp, #-2308]
	mvn	r3, #0
	str	r3, [fp, #-2304]
	mov	r3, #0
	str	r3, [fp, #-2284]
	b	.L21
.L32:
	ldr	r3, [fp, #-2280]
	sub	r3, r3, #63
	cmp	r3, #54
	ldrls	pc, [pc, r3, asl #2]
	b	.L21
.L23:
	.word	.L26
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L28
	.word	.L27
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L26
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L25
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L21
	.word	.L24
	.word	.L22
.L26:
	ldr	r0, [fp, #-2356]
	bl	printhelp
	mov	r0, #0
	bl	exit
.L27:
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2332]
	ldr	r3, [fp, #-2332]
	cmp	r3, #0
	bge	.L21
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L59+12
	bl	fwrite
	ldr	r0, [fp, #-2356]
	bl	printhelp
	mov	r0, #4
	bl	exit
.L25:
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2324]
	ldr	r3, [fp, #-2324]
	cmp	r3, #0
	bge	.L21
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r2, #26
	mov	r1, #1
	ldr	r0, .L59+16
	bl	fwrite
	ldr	r0, [fp, #-2356]
	bl	printhelp
	mov	r0, #4
	bl	exit
.L24:
	ldr	r3, .L59+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2320]
	ldr	r3, [fp, #-2320]
	cmp	r3, #0
	bge	.L21
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L59+20
	bl	fwrite
	ldr	r0, [fp, #-2356]
	bl	printhelp
	mov	r0, #4
	bl	exit
.L28:
	ldr	r3, .L59+4
	ldr	r3, [r3]
	str	r3, [fp, #-2316]
	b	.L21
.L22:
	ldr	r3, .L59+4
	ldr	r3, [r3]
	str	r3, [fp, #-2312]
	nop
.L21:
	ldr	r2, .L59+24
	ldr	r1, [fp, #-2356]
	ldr	r0, [fp, #-2352]
	bl	getopt
	str	r0, [fp, #-2280]
	ldr	r3, [fp, #-2280]
	cmn	r3, #1
	bne	.L32
	ldr	r3, .L59+28
	ldr	r3, [r3]
	add	r3, r3, #2
	ldr	r2, [fp, #-2352]
	cmp	r2, r3
	beq	.L33
	ldr	r3, .L59+8
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L59+32
	bl	fwrite
	ldr	r0, [fp, #-2356]
	bl	printhelp
	mov	r0, #4
	bl	exit
.L33:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2356]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-2276]
	ldr	r3, .L59+28
	ldr	r3, [r3]
	add	r3, r3, #1
	lsl	r3, r3, #2
	ldr	r2, [fp, #-2356]
	add	r3, r2, r3
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-2272]
	ldr	r3, [fp, #-2272]
	cmp	r3, #1024
	bcc	.L34
	ldr	r3, [fp, #-2272]
	cmp	r3, #65536
	bcc	.L35
.L34:
	ldr	r3, .L59+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-2272]
	ldr	r1, .L59+36
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L59+8
	ldr	r0, [r3]
	ldr	r3, .L59+40
	mov	r2, #1024
	ldr	r1, .L59+44
	bl	fprintf
	mov	r0, #4
	bl	exit
.L35:
	ldr	r3, [fp, #-2312]
	str	r3, [sp, #12]
	ldr	r3, [fp, #-2316]
	str	r3, [sp, #8]
	ldr	r3, [fp, #-2320]
	str	r3, [sp, #4]
	ldr	r3, [fp, #-2324]
	str	r3, [sp]
	ldr	r3, [fp, #-2332]
	ldr	r2, [fp, #-2272]
	ldr	r1, [fp, #-2276]
	ldr	r0, .L59+48
	bl	printf
	ldr	r3, [fp, #-2316]
	cmp	r3, #0
	beq	.L36
	ldr	r2, .L59+52
	mov	r1, #193
	ldr	r0, [fp, #-2316]
	bl	open
	str	r0, [fp, #-2308]
	ldr	r3, [fp, #-2308]
	cmp	r3, #0
	bge	.L36
	ldr	r0, .L59+56
	bl	perror
.L36:
	ldr	r3, [fp, #-2312]
	cmp	r3, #0
	beq	.L37
	ldr	r2, .L59+52
	mov	r1, #193
	ldr	r0, [fp, #-2312]
	bl	open
	str	r0, [fp, #-2304]
	ldr	r3, [fp, #-2304]
	cmp	r3, #0
	bge	.L37
	ldr	r0, .L59+60
	bl	perror
.L37:
	mov	r2, #17
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2268]
	ldr	r3, [fp, #-2268]
	cmp	r3, #0
	bge	.L38
	ldr	r0, .L59+64
	bl	perror
	mov	r0, #4
	bl	exit
.L38:
	sub	r3, fp, #2336
	sub	r3, r3, #12
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-2268]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L39
	ldr	r0, .L59+68
	bl	perror
	mov	r0, #4
	bl	exit
.L39:
	sub	r3, fp, #2320
	sub	r3, r3, #12
	sub	r3, r3, #12
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #8
	mov	r1, #1
	ldr	r0, [fp, #-2268]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	beq	.L40
	ldr	r0, .L59+68
	bl	perror
	mov	r0, #4
	bl	exit
.L40:
	sub	r3, fp, #2208
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #2208
	sub	r3, r3, #8
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r0, [fp, #-2276]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-2224]
	ldr	r3, [fp, #-2272]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #2208
	sub	r3, r3, #8
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #2208
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-2268]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L41
	ldr	r0, .L59+72
	bl	perror
	mov	r0, #4
	bl	exit
.L41:
	ldr	r0, [fp, #-2276]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-2244]
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-2240]
	sub	r3, fp, #2224
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #35
	mov	r1, #0
	ldr	r0, [fp, #-2268]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L42
	ldr	r0, .L59+68
	bl	perror
	mov	r0, #4
	bl	exit
.L42:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #8
	ldr	r2, .L59+76
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #16
	str	r3, [fp, #-2336]
	ldr	r2, [fp, #-2336]
	sub	r3, fp, #2192
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r0, #0
	bl	time
	str	r0, [fp, #-2264]
	mov	r3, #0
	str	r3, [fp, #-2300]
.L57:
	sub	r3, fp, #2176
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [fp, #-2260]
	mov	r3, #0
	str	r3, [fp, #-2296]
	b	.L43
.L44:
	ldr	r3, [fp, #-2260]
	ldr	r2, [fp, #-2296]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-2296]
	add	r3, r3, #1
	str	r3, [fp, #-2296]
.L43:
	ldr	r3, [fp, #-2296]
	cmp	r3, #31
	bls	.L44
	ldr	r3, [fp, #-2268]
	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, #12
	add	r3, r1, r3
	ldr	r1, [r3, #-2184]
	ldr	r3, [fp, #-2268]
	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, #12
	add	r3, r2, r3
	str	r1, [r3, #-2184]
	mov	r3, #1
	str	r3, [fp, #-2236]
	mov	r3, #0
	str	r3, [fp, #-2232]
	ldr	r3, [fp, #-2268]
	add	r0, r3, #1
	sub	r1, fp, #2176
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #2224
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	str	r0, [fp, #-2284]
	ldr	r3, [fp, #-2284]
	cmp	r3, #0
	ble	.L45
	sub	r1, fp, #2048
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #2320
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #2192
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #2048
	ldr	r0, [fp, #-2268]
	bl	recvfrom
	mov	r3, r0
	str	r3, [fp, #-2340]
	ldr	r3, [fp, #-2340]
	cmp	r3, #0
	bge	.L46
	ldr	r0, .L59+80
	bl	perror
	mov	r0, #4
	bl	exit
.L46:
	ldr	r3, [fp, #-2328]
	add	r3, r3, #1
	str	r3, [fp, #-2328]
	ldr	r3, [fp, #-2332]
	cmp	r3, #0
	ble	.L47
	ldr	r3, [fp, #-2328]
	ldr	r1, [fp, #-2332]
	mov	r0, r3
	bl	__aeabi_idivmod
	mov	r3, r1
	cmp	r3, #0
	bne	.L47
	mov	r0, #46
	bl	putchar
	ldr	r1, [fp, #-2332]
	ldr	r0, [fp, #-2328]
	bl	__aeabi_idiv
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L59+84
	smull	r2, r3, r1, r3
	asr	r2, r3, #5
	asr	r3, r1, #31
	sub	r2, r2, r3
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #4
	sub	r2, r1, r3
	cmp	r2, #0
	bne	.L48
	mov	r0, #10
	bl	putchar
.L48:
	ldr	r3, .L59+88
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
.L47:
	ldr	r3, [fp, #-2324]
	cmp	r3, #0
	ble	.L49
	ldr	r2, [fp, #-2328]
	ldr	r3, [fp, #-2324]
	cmp	r2, r3
	blt	.L49
	ldr	r1, [fp, #-2328]
	ldr	r0, .L59+92
	bl	printf
	mov	r0, #0
	bl	exit
.L49:
	ldrb	r3, [fp, #-2068]	@ zero_extendqisi2
	ldr	r2, [fp, #-2340]
	mov	r1, r2
	mov	r0, r3
	bl	get_packet_hdr_format
	str	r0, [fp, #-2256]
	ldr	r2, [fp, #-2300]
	ldr	r3, [fp, #-2256]
	cmp	r2, r3
	beq	.L50
	ldr	r0, [fp, #-2300]
	bl	get_hdr_format_str
	mov	r4, r0
	ldr	r0, [fp, #-2256]
	bl	get_hdr_format_str
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L59+96
	bl	printf
	ldr	r3, [fp, #-2256]
	str	r3, [fp, #-2300]
.L50:
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [fp, #-2292]
	ldr	r3, [fp, #-2340]
	str	r3, [fp, #-2288]
	ldr	r3, [fp, #-2256]
	cmp	r3, #2
	bne	.L51
	ldr	r3, [fp, #-2292]
	add	r3, r3, #12
	str	r3, [fp, #-2292]
	ldr	r3, [fp, #-2288]
	sub	r3, r3, #12
	str	r3, [fp, #-2288]
.L51:
	ldr	r3, [fp, #-2308]
	cmp	r3, #0
	blt	.L52
	ldr	r3, [fp, #-2288]
	mov	r2, r3
	ldr	r1, [fp, #-2292]
	ldr	r0, [fp, #-2308]
	bl	write
	str	r0, [fp, #-2252]
	ldr	r2, [fp, #-2252]
	ldr	r3, [fp, #-2288]
	cmp	r2, r3
	bge	.L52
	ldr	r3, .L59+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-2288]
	ldr	r2, [fp, #-2252]
	ldr	r1, .L59+100
	bl	fprintf
	ldr	r0, [fp, #-2308]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-2308]
.L52:
	ldr	r3, [fp, #-2304]
	cmp	r3, #0
	blt	.L57
	sub	r3, fp, #2320
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r2, #4
	mov	r1, r3
	ldr	r0, [fp, #-2304]
	bl	write
	str	r0, [fp, #-2248]
	ldr	r3, [fp, #-2248]
	cmp	r3, #3
	bgt	.L54
	ldr	r3, .L59+8
	ldr	r0, [r3]
	mov	r3, #4
	ldr	r2, [fp, #-2248]
	ldr	r1, .L59+104
	bl	fprintf
	ldr	r0, [fp, #-2304]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-2304]
	b	.L57
.L54:
	ldr	r3, [fp, #-2340]
	mov	r2, r3
	sub	r3, fp, #2048
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, [fp, #-2304]
	bl	write
	str	r0, [fp, #-2248]
	ldr	r3, [fp, #-2340]
	ldr	r2, [fp, #-2248]
	cmp	r2, r3
	bge	.L57
	ldr	r3, .L59+8
	ldr	r0, [r3]
	ldr	r3, [fp, #-2340]
	ldr	r2, [fp, #-2248]
	ldr	r1, .L59+108
	bl	fprintf
	ldr	r0, [fp, #-2304]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-2304]
	b	.L57
.L45:
	ldr	r3, [fp, #-2284]
	cmp	r3, #0
	bne	.L55
	ldr	r3, [fp, #-2320]
	cmp	r3, #0
	ble	.L57
	mov	r0, #0
	bl	time
	mov	r1, r0
	ldr	r2, [fp, #-2264]
	ldr	r3, [fp, #-2320]
	add	r3, r2, r3
	cmp	r1, r3
	blt	.L57
	ldr	r1, [fp, #-2328]
	ldr	r0, .L59+112
	bl	printf
	ldr	r3, [fp, #-2328]
	cmp	r3, #0
	ble	.L56
	mov	r0, #1
	bl	exit
.L56:
	mov	r0, #2
	bl	exit
.L55:
	ldr	r3, [fp, #-2284]
	cmp	r3, #0
	bge	.L57
	ldr	r0, .L59+116
	bl	perror
	mov	r0, #4
	bl	exit
.L60:
	.align	2
.L59:
	.word	.LC25
	.word	optarg
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	optind
	.word	.LC8
	.word	.LC9
	.word	65535
	.word	.LC10
	.word	.LC11
	.word	438
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	2049
	.word	.LC17
	.word	1717986919
	.word	stdout
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.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
