	.file	"121052.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"execvp"
	.text
	.globl	popen2
	.type	popen2, @function
popen2:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	jne	.L2
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	pipe@PLT
	test	eax, eax
	je	.L3
.L2:
	mov	eax, -1
	jmp	.L11
.L3:
	call	fork@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], 0
	jns	.L5
	mov	eax, DWORD PTR -28[rbp]
	jmp	.L11
.L5:
	cmp	DWORD PTR -28[rbp], 0
	jne	.L6
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -24[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	execvp@PLT
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L7
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L8
.L7:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], edx
.L8:
	cmp	QWORD PTR -56[rbp], 0
	jne	.L9
	mov	eax, DWORD PTR -16[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L10
.L9:
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR [rax], edx
.L10:
	mov	eax, DWORD PTR -28[rbp]
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	popen2, .-popen2
	.section	.rodata
	.align 8
.LC1:
	.string	"Error when creating udp socket"
	.align 8
.LC2:
	.string	"Error when setting reuseaddr for udp socket"
	.align 8
.LC3:
	.string	"Error when setting pktinfo for udp socket"
	.align 8
.LC4:
	.string	"Error when binding broadcast port for udp socket"
	.text
	.globl	setup_udp_socket
	.type	setup_udp_socket, @function
setup_udp_socket:
.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -36[rbp], -1
	mov	DWORD PTR -44[rbp], 1
	mov	DWORD PTR -40[rbp], 1
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], 0
	jns	.L14
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L14:
	lea	rdx, -44[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L16
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L16:
	lea	rdx, -40[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 8
	mov	esi, 0
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jns	.L17
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L17:
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -32[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -28[rbp], eax
	mov	edi, 53515
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L18
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L19
.L18:
	mov	eax, DWORD PTR -36[rbp]
.L19:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L20
	call	__stack_chk_fail@PLT
.L20:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setup_udp_socket, .-setup_udp_socket
	.section	.rodata
.LC5:
	.string	"Missing sink setting"
.LC6:
	.string	"Using sink: %s\n"
	.align 8
.LC7:
	.string	"Error when creating tcp socket"
.LC8:
	.string	"Error when binding tcp socket"
	.align 8
.LC9:
	.string	"Error when listening tcp socket"
.LC10:
	.string	"error occur, %s\n"
	.align 8
.LC11:
	.string	"Error when receiving data from discover socket, errno: %s\n"
	.align 8
.LC12:
	.string	"Receive broadcast msg: %s from: %s:%d\n"
.LC13:
	.string	"hello"
	.align 8
.LC14:
	.string	"Receive discover msg: %s, from: %s\n"
	.align 8
.LC15:
	.string	"Response discover msg with local ip: %s\n"
	.align 8
.LC16:
	.string	"{\"port\":%d,\"name\":\"CsReceiver @ %s\",\"id\":\"%s\",\"width\":1280,\"height\":960,\"mirror\":\"h264\",\"audio\":\"pcm\",\"subtitles\":\"text/vtt\",\"proxyHeaders\":true,\"hls\":false,\"upsell\":true}"
	.align 8
.LC17:
	.string	"Error when send discover response to peer"
.LC18:
	.string	"Error when accepting client"
.LC19:
	.string	"Accept peer addr: %s:%d\n"
.LC20:
	.string	"ffplay"
.LC21:
	.string	"-framerate"
.LC22:
	.string	"50"
.LC23:
	.string	"-infbuf"
.LC24:
	.string	"-framedrop"
.LC25:
	.string	"-analyzeduration"
.LC26:
	.string	"1"
.LC27:
	.string	"-"
.LC28:
	.string	"gst-launch-1.0"
.LC29:
	.string	"fdsrc"
.LC30:
	.string	"do-timestamp=true"
.LC31:
	.string	"!"
.LC32:
	.string	"h264parse"
.LC33:
	.string	"decodebin"
.LC34:
	.string	"gst pid: %d\n"
	.align 8
.LC35:
	.string	"Could not accept client, another connection still exist"
	.align 8
.LC36:
	.string	"Failed to receive from tcp client socket, close the socket"
.LC37:
	.string	"\r\n"
.LC38:
	.string	"Receive control data(%u): %s\n"
.LC39:
	.string	"\r\n\r\n"
.LC40:
	.string	"X-WIDTH:"
.LC41:
	.string	"width: %d\n"
.LC42:
	.string	"X-HEIGHT:"
.LC43:
	.string	"height: %d\n"
.LC44:
	.string	"gst in fp: %d\n"
	.align 8
.LC45:
	.string	"Write non control data len: %d\n"
.LC46:
	.string	"Pipe input error: %s\n"
	.align 8
.LC47:
	.string	"No data for casting after 30 seconds, close the socket and receiver"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.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, 2200
	.cfi_offset 3, -24
	mov	DWORD PTR -2196[rbp], edi
	mov	QWORD PTR -2208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2180[rbp], -1
	mov	DWORD PTR -2176[rbp], -1
	mov	DWORD PTR -2144[rbp], -1
	mov	DWORD PTR -2172[rbp], -1
	mov	DWORD PTR -2168[rbp], -1
	mov	DWORD PTR -2188[rbp], -1
	mov	DWORD PTR -2184[rbp], -1
	mov	DWORD PTR -2164[rbp], -1
	mov	DWORD PTR -2160[rbp], 0
	mov	DWORD PTR -2156[rbp], 0
	cmp	DWORD PTR -2196[rbp], 2
	jne	.L22
	mov	rax, QWORD PTR -2208[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L23
.L22:
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L67
.L23:
	mov	rax, QWORD PTR -2208[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -2096[rbp], rax
	mov	rax, QWORD PTR -2096[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	setup_udp_socket
	mov	DWORD PTR -2176[rbp], eax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -2144[rbp], eax
	cmp	DWORD PTR -2144[rbp], 0
	jns	.L25
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L67
.L25:
	lea	rax, -1984[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -1984[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -1980[rbp], eax
	mov	edi, 53515
	call	htons@PLT
	mov	WORD PTR -1982[rbp], ax
	lea	rcx, -1984[rbp]
	mov	eax, DWORD PTR -2144[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L26
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L67
.L26:
	mov	eax, DWORD PTR -2144[rbp]
	mov	esi, 3
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L27
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	eax, 0
	jmp	.L67
.L27:
	mov	DWORD PTR -2152[rbp], 0
	mov	QWORD PTR -2080[rbp], 3
	mov	QWORD PTR -2072[rbp], 0
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -1952[rbp]
	mov	rdi, rdx
#APP
# 201 "the_stack_data/121052.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -2140[rbp], edx
	mov	DWORD PTR -2136[rbp], eax
	mov	eax, DWORD PTR -2176[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -1952[rbp+rax*8]
	mov	eax, DWORD PTR -2176[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 -1952[rbp+rax*8], rdx
	mov	eax, DWORD PTR -2144[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -1952[rbp+rax*8]
	mov	eax, DWORD PTR -2144[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 -1952[rbp+rax*8], rdx
	mov	eax, DWORD PTR -2144[rbp]
	cmp	eax, DWORD PTR -2176[rbp]
	jle	.L28
	mov	eax, DWORD PTR -2144[rbp]
	mov	DWORD PTR -2168[rbp], eax
	jmp	.L29
.L28:
	mov	eax, DWORD PTR -2176[rbp]
	mov	DWORD PTR -2168[rbp], eax
.L29:
	cmp	DWORD PTR -2172[rbp], 0
	jle	.L30
	mov	eax, DWORD PTR -2172[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -1952[rbp+rax*8]
	mov	eax, DWORD PTR -2172[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 -1952[rbp+rax*8], rdx
	mov	eax, DWORD PTR -2172[rbp]
	cmp	eax, DWORD PTR -2168[rbp]
	jle	.L30
	mov	eax, DWORD PTR -2172[rbp]
	mov	DWORD PTR -2168[rbp], eax
.L30:
	mov	eax, DWORD PTR -2168[rbp]
	lea	edi, 1[rax]
	lea	rdx, -2080[rbp]
	lea	rax, -1952[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	rsi, rax
	call	select@PLT
	cmp	eax, -1
	je	.L31
	test	eax, eax
	je	.L32
	jmp	.L33
.L31:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC10[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L34
.L32:
	mov	DWORD PTR -2152[rbp], 1
.L33:
	mov	eax, DWORD PTR -2176[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -1952[rbp+rax*8]
	mov	eax, DWORD PTR -2176[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	.L35
	lea	rax, -1696[rbp]
	mov	QWORD PTR -2064[rbp], rax
	mov	QWORD PTR -2056[rbp], 128
	lea	rax, -2048[rbp]
	mov	edx, 56
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -2064[rbp]
	mov	QWORD PTR -2032[rbp], rax
	mov	QWORD PTR -2024[rbp], 1
	lea	rax, -1824[rbp]
	mov	QWORD PTR -2016[rbp], rax
	mov	QWORD PTR -2008[rbp], 128
	mov	DWORD PTR -2000[rbp], 0
	lea	rax, -1968[rbp]
	mov	QWORD PTR -2048[rbp], rax
	mov	DWORD PTR -2040[rbp], 16
	lea	rcx, -2048[rbp]
	mov	eax, DWORD PTR -2176[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	call	recvmsg@PLT
	mov	DWORD PTR -2132[rbp], eax
	cmp	DWORD PTR -2132[rbp], 0
	jns	.L36
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2176[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	call	setup_udp_socket
	mov	DWORD PTR -2176[rbp], eax
	jmp	.L27
.L36:
	movzx	eax, WORD PTR -1966[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -1964[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rax, -1696[rbp]
	mov	ecx, ebx
	mov	rsi, rax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1696[rbp]
	mov	edx, 5
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L27
	mov	eax, DWORD PTR -1964[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rax, -1696[rbp]
	mov	rsi, rax
	lea	rdi, .LC14[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2008[rbp]
	cmp	rax, 15
	jbe	.L38
	mov	rax, QWORD PTR -2016[rbp]
	jmp	.L39
.L38:
	mov	eax, 0
.L39:
	mov	QWORD PTR -2120[rbp], rax
	jmp	.L40
.L42:
	mov	rax, QWORD PTR -2120[rbp]
	mov	eax, DWORD PTR 8[rax]
	test	eax, eax
	jne	.L41
	mov	rax, QWORD PTR -2120[rbp]
	add	rax, 16
	mov	QWORD PTR -2088[rbp], rax
	mov	rax, QWORD PTR -2088[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rsi, rax
	lea	rdi, .LC15[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1568[rbp]
	mov	edx, 512
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -2088[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rbx, rax
	mov	rax, QWORD PTR -2088[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rax, -1568[rbp]
	mov	r9, rbx
	mov	r8, rdx
	mov	ecx, 53515
	lea	rdx, .LC16[rip]
	mov	esi, 512
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -1568[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -1968[rbp]
	lea	rsi, -1568[rbp]
	mov	eax, DWORD PTR -2176[rbp]
	mov	r9d, 16
	mov	r8, rcx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	test	rax, rax
	jns	.L41
	lea	rdi, .LC17[rip]
	call	puts@PLT
.L41:
	mov	rdx, QWORD PTR -2120[rbp]
	lea	rax, -2048[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	__cmsg_nxthdr@PLT
	mov	QWORD PTR -2120[rbp], rax
.L40:
	cmp	QWORD PTR -2120[rbp], 0
	jne	.L42
	jmp	.L27
.L35:
	mov	eax, DWORD PTR -2144[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -1952[rbp+rax*8]
	mov	eax, DWORD PTR -2144[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	.L43
	cmp	DWORD PTR -2172[rbp], 0
	jns	.L44
	mov	DWORD PTR -2192[rbp], 16
	lea	rdx, -2192[rbp]
	lea	rcx, -1968[rbp]
	mov	eax, DWORD PTR -2144[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -2172[rbp], eax
	cmp	DWORD PTR -2172[rbp], 0
	jns	.L45
	lea	rdi, .LC18[rip]
	call	puts@PLT
	jmp	.L27
.L45:
	mov	DWORD PTR -2160[rbp], 1
	movzx	eax, WORD PTR -1966[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	ebx, ax
	mov	eax, DWORD PTR -1964[rbp]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	edx, ebx
	mov	rsi, rax
	lea	rdi, .LC19[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -2096[rbp]
	mov	edx, 6
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L46
	lea	rax, .LC20[rip]
	mov	QWORD PTR -1824[rbp], rax
	lea	rax, .LC21[rip]
	mov	QWORD PTR -1816[rbp], rax
	lea	rax, .LC22[rip]
	mov	QWORD PTR -1808[rbp], rax
	lea	rax, .LC23[rip]
	mov	QWORD PTR -1800[rbp], rax
	lea	rax, .LC24[rip]
	mov	QWORD PTR -1792[rbp], rax
	lea	rax, .LC25[rip]
	mov	QWORD PTR -1784[rbp], rax
	lea	rax, .LC26[rip]
	mov	QWORD PTR -1776[rbp], rax
	lea	rax, .LC27[rip]
	mov	QWORD PTR -1768[rbp], rax
	mov	QWORD PTR -1760[rbp], 0
	lea	rdx, -2184[rbp]
	lea	rcx, -2188[rbp]
	lea	rax, -1824[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	popen2
	mov	DWORD PTR -2164[rbp], eax
	jmp	.L47
.L46:
	lea	rax, .LC28[rip]
	mov	QWORD PTR -1824[rbp], rax
	lea	rax, .LC29[rip]
	mov	QWORD PTR -1816[rbp], rax
	lea	rax, .LC30[rip]
	mov	QWORD PTR -1808[rbp], rax
	lea	rax, .LC31[rip]
	mov	QWORD PTR -1800[rbp], rax
	lea	rax, .LC32[rip]
	mov	QWORD PTR -1792[rbp], rax
	lea	rax, .LC31[rip]
	mov	QWORD PTR -1784[rbp], rax
	lea	rax, .LC33[rip]
	mov	QWORD PTR -1776[rbp], rax
	lea	rax, .LC31[rip]
	mov	QWORD PTR -1768[rbp], rax
	mov	rax, QWORD PTR -2096[rbp]
	mov	QWORD PTR -1760[rbp], rax
	mov	QWORD PTR -1752[rbp], 0
	lea	rdx, -2184[rbp]
	lea	rcx, -2188[rbp]
	lea	rax, -1824[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	popen2
	mov	DWORD PTR -2164[rbp], eax
.L47:
	mov	eax, DWORD PTR -2164[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L27
.L44:
	lea	rdi, .LC35[rip]
	call	puts@PLT
	jmp	.L27
.L43:
	cmp	DWORD PTR -2172[rbp], 0
	jle	.L48
	mov	eax, DWORD PTR -2172[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -1952[rbp+rax*8]
	mov	eax, DWORD PTR -2172[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	.L48
	lea	rax, -1056[rbp]
	mov	edx, 1024
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -1056[rbp]
	mov	eax, DWORD PTR -2172[rbp]
	mov	edx, 1024
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -2132[rbp], eax
	cmp	DWORD PTR -2132[rbp], 0
	jle	.L49
	mov	DWORD PTR -2156[rbp], 0
	jmp	.L50
.L49:
	add	DWORD PTR -2156[rbp], 1
.L50:
	cmp	DWORD PTR -2132[rbp], 0
	js	.L51
	cmp	DWORD PTR -2156[rbp], 2
	jle	.L52
.L51:
	lea	rdi, .LC36[rip]
	call	puts@PLT
	mov	eax, DWORD PTR -2172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -2172[rbp], -1
	cmp	DWORD PTR -2164[rbp], 0
	jle	.L53
	mov	eax, DWORD PTR -2164[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR -2164[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	DWORD PTR -2164[rbp], -1
	mov	DWORD PTR -2188[rbp], -1
	mov	DWORD PTR -2184[rbp], -1
.L53:
	cmp	DWORD PTR -2180[rbp], 0
	jle	.L55
	mov	eax, DWORD PTR -2180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -2180[rbp], -1
	jmp	.L55
.L52:
	cmp	DWORD PTR -2160[rbp], 0
	je	.L56
	lea	rax, -1056[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L56
	mov	DWORD PTR -2128[rbp], 800
	mov	DWORD PTR -2124[rbp], 480
	lea	rdx, -1056[rbp]
	mov	eax, DWORD PTR -2132[rbp]
	mov	esi, eax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -1056[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strstr@PLT
	mov	QWORD PTR -2112[rbp], rax
	mov	DWORD PTR -2148[rbp], 0
	mov	rax, QWORD PTR -2112[rbp]
	add	rax, 4
	lea	rdx, -1056[rbp]
	sub	rax, rdx
	test	rax, rax
	jle	.L57
	mov	eax, DWORD PTR -2132[rbp]
	mov	rdx, QWORD PTR -2112[rbp]
	add	rdx, 4
	lea	rcx, -1056[rbp]
	sub	rdx, rcx
	sub	eax, edx
	mov	DWORD PTR -2148[rbp], eax
	add	QWORD PTR -2112[rbp], 4
.L57:
	lea	rax, -1056[rbp]
	lea	rsi, .LC37[rip]
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -2104[rbp], rax
	jmp	.L58
.L61:
	mov	rax, QWORD PTR -2104[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L59
	mov	rax, QWORD PTR -2104[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2128[rbp], eax
	mov	eax, DWORD PTR -2128[rbp]
	mov	esi, eax
	lea	rdi, .LC41[rip]
	mov	eax, 0
	call	printf@PLT
.L59:
	mov	rax, QWORD PTR -2104[rbp]
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	call	strstr@PLT
	test	rax, rax
	je	.L60
	mov	rax, QWORD PTR -2104[rbp]
	mov	esi, 32
	mov	rdi, rax
	call	strchr@PLT
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -2124[rbp], eax
	mov	eax, DWORD PTR -2124[rbp]
	mov	esi, eax
	lea	rdi, .LC43[rip]
	mov	eax, 0
	call	printf@PLT
.L60:
	lea	rsi, .LC37[rip]
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -2104[rbp], rax
.L58:
	cmp	QWORD PTR -2104[rbp], 0
	jne	.L61
	mov	rax, QWORD PTR -2096[rbp]
	mov	edx, 6
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L62
	lea	rax, .LC20[rip]
	mov	QWORD PTR -1824[rbp], rax
	lea	rax, .LC21[rip]
	mov	QWORD PTR -1816[rbp], rax
	lea	rax, .LC22[rip]
	mov	QWORD PTR -1808[rbp], rax
	lea	rax, .LC23[rip]
	mov	QWORD PTR -1800[rbp], rax
	lea	rax, .LC24[rip]
	mov	QWORD PTR -1792[rbp], rax
	lea	rax, .LC25[rip]
	mov	QWORD PTR -1784[rbp], rax
	lea	rax, .LC26[rip]
	mov	QWORD PTR -1776[rbp], rax
	lea	rax, .LC27[rip]
	mov	QWORD PTR -1768[rbp], rax
	mov	QWORD PTR -1760[rbp], 0
	lea	rdx, -2184[rbp]
	lea	rcx, -2188[rbp]
	lea	rax, -1824[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	popen2
	mov	DWORD PTR -2164[rbp], eax
	jmp	.L63
.L62:
	lea	rax, .LC28[rip]
	mov	QWORD PTR -1824[rbp], rax
	lea	rax, .LC29[rip]
	mov	QWORD PTR -1816[rbp], rax
	lea	rax, .LC30[rip]
	mov	QWORD PTR -1808[rbp], rax
	lea	rax, .LC31[rip]
	mov	QWORD PTR -1800[rbp], rax
	lea	rax, .LC32[rip]
	mov	QWORD PTR -1792[rbp], rax
	lea	rax, .LC31[rip]
	mov	QWORD PTR -1784[rbp], rax
	lea	rax, .LC33[rip]
	mov	QWORD PTR -1776[rbp], rax
	lea	rax, .LC31[rip]
	mov	QWORD PTR -1768[rbp], rax
	mov	rax, QWORD PTR -2096[rbp]
	mov	QWORD PTR -1760[rbp], rax
	mov	QWORD PTR -1752[rbp], 0
	lea	rdx, -2184[rbp]
	lea	rcx, -2188[rbp]
	lea	rax, -1824[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	popen2
	mov	DWORD PTR -2164[rbp], eax
.L63:
	mov	eax, DWORD PTR -2164[rbp]
	mov	esi, eax
	lea	rdi, .LC34[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -2188[rbp]
	mov	esi, eax
	lea	rdi, .LC44[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -2160[rbp], 0
	cmp	DWORD PTR -2148[rbp], 0
	jle	.L69
	mov	eax, DWORD PTR -2188[rbp]
	test	eax, eax
	jle	.L69
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -2188[rbp]
	mov	rcx, QWORD PTR -2112[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -2132[rbp], eax
	mov	eax, DWORD PTR -2132[rbp]
	mov	esi, eax
	lea	rdi, .LC45[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L69
.L56:
	mov	eax, DWORD PTR -2188[rbp]
	test	eax, eax
	jle	.L70
	mov	eax, DWORD PTR -2132[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -2188[rbp]
	lea	rcx, -1056[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -2132[rbp], eax
	cmp	DWORD PTR -2132[rbp], 0
	jns	.L70
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC46[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L70
.L69:
	nop
.L55:
	jmp	.L70
.L48:
	cmp	DWORD PTR -2152[rbp], 0
	je	.L27
	cmp	DWORD PTR -2164[rbp], 0
	jle	.L27
	add	DWORD PTR -2156[rbp], 1
	cmp	DWORD PTR -2156[rbp], 10
	jle	.L27
	lea	rdi, .LC47[rip]
	call	puts@PLT
	cmp	DWORD PTR -2172[rbp], 0
	jle	.L65
	mov	eax, DWORD PTR -2172[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -2172[rbp], -1
.L65:
	cmp	DWORD PTR -2164[rbp], 0
	jle	.L66
	mov	eax, DWORD PTR -2164[rbp]
	mov	esi, 9
	mov	edi, eax
	call	kill@PLT
	mov	eax, DWORD PTR -2164[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	mov	eax, 0
	call	waitpid@PLT
	mov	DWORD PTR -2164[rbp], -1
	mov	DWORD PTR -2188[rbp], -1
	mov	DWORD PTR -2184[rbp], -1
.L66:
	cmp	DWORD PTR -2180[rbp], 0
	jle	.L27
	mov	eax, DWORD PTR -2180[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -2180[rbp], -1
	jmp	.L27
.L70:
	nop
.L34:
	jmp	.L27
.L67:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L68
	call	__stack_chk_fail@PLT
.L68:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.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	"121052.c"
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ffplay\000"
	.align	2
.LC1:
	.ascii	"-framerate\000"
	.align	2
.LC2:
	.ascii	"50\000"
	.align	2
.LC3:
	.ascii	"-infbuf\000"
	.align	2
.LC4:
	.ascii	"-framedrop\000"
	.align	2
.LC5:
	.ascii	"-analyzeduration\000"
	.align	2
.LC6:
	.ascii	"1\000"
	.align	2
.LC7:
	.ascii	"-\000"
	.text
	.section	.rodata
	.align	2
.LC9:
	.ascii	"execvp\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	popen2
	.syntax unified
	.arm
	.fpu softvfp
	.type	popen2, %function
popen2:
	@ 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, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	sub	r3, fp, #16
	mov	r0, r3
	bl	pipe
	mov	r3, r0
	cmp	r3, #0
	beq	.L3
.L2:
	mvn	r3, #0
	b	.L11
.L3:
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L5
	ldr	r3, [fp, #-28]
	b	.L11
.L5:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L6
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-24]
	mov	r1, #0
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-12]
	mov	r1, #1
	mov	r0, r3
	bl	dup2
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r1, [fp, #-32]
	mov	r0, r3
	bl	execvp
	ldr	r0, .L13+4
	bl	perror
	mov	r0, #1
	bl	exit
.L6:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L7
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	close
	b	.L8
.L7:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-36]
	str	r2, [r3]
.L8:
	ldr	r3, [fp, #-40]
	cmp	r3, #0
	bne	.L9
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	close
	b	.L10
.L9:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-40]
	str	r2, [r3]
.L10:
	ldr	r3, [fp, #-28]
.L11:
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC10
	.word	.LC9
	.size	popen2, .-popen2
	.section	.rodata
	.align	2
.LC11:
	.ascii	"Error when creating udp socket\000"
	.align	2
.LC12:
	.ascii	"Error when setting reuseaddr for udp socket\000"
	.align	2
.LC13:
	.ascii	"Error when setting pktinfo for udp socket\000"
	.align	2
.LC14:
	.ascii	"Error when binding broadcast port for udp socket\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	setup_udp_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	setup_udp_socket, %function
setup_udp_socket:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-28]
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bge	.L16
	ldr	r0, .L23+4
	bl	perror
	mvn	r3, #0
	b	.L21
.L16:
	sub	r3, fp, #36
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-28]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L18
	ldr	r0, .L23+8
	bl	perror
	mvn	r3, #0
	b	.L21
.L18:
	sub	r3, fp, #32
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #8
	mov	r1, #0
	ldr	r0, [fp, #-28]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L23+12
	bl	perror
	mvn	r3, #0
	b	.L21
.L19:
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-24]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-20]
	ldr	r0, .L23+16
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-22]	@ movhi
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L20
	ldr	r0, .L23+20
	bl	perror
	mvn	r3, #0
	b	.L21
.L20:
	ldr	r3, [fp, #-28]
.L21:
	ldr	r2, .L23
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC15
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	53515
	.word	.LC14
	.size	setup_udp_socket, .-setup_udp_socket
	.section	.rodata
	.align	2
.LC16:
	.ascii	"Missing sink setting\000"
	.align	2
.LC17:
	.ascii	"Using sink: %s\012\000"
	.align	2
.LC18:
	.ascii	"Error when creating tcp socket\000"
	.align	2
.LC19:
	.ascii	"Error when binding tcp socket\000"
	.align	2
.LC20:
	.ascii	"Error when listening tcp socket\000"
	.align	2
.LC21:
	.ascii	"error occur, %s\012\000"
	.align	2
.LC22:
	.ascii	"Error when receiving data from discover socket, err"
	.ascii	"no: %s\012\000"
	.align	2
.LC23:
	.ascii	"Receive broadcast msg: %s from: %s:%d\012\000"
	.align	2
.LC24:
	.ascii	"hello\000"
	.align	2
.LC25:
	.ascii	"Receive discover msg: %s, from: %s\012\000"
	.align	2
.LC26:
	.ascii	"Response discover msg with local ip: %s\012\000"
	.align	2
.LC27:
	.ascii	"{\"port\":%d,\"name\":\"CsReceiver @ %s\",\"id\":\""
	.ascii	"%s\",\"width\":1280,\"height\":960,\"mirror\":\"h26"
	.ascii	"4\",\"audio\":\"pcm\",\"subtitles\":\"text/vtt\",\""
	.ascii	"proxyHeaders\":true,\"hls\":false,\"upsell\":true}\000"
	.align	2
.LC28:
	.ascii	"Error when send discover response to peer\000"
	.align	2
.LC29:
	.ascii	"Error when accepting client\000"
	.align	2
.LC30:
	.ascii	"Accept peer addr: %s:%d\012\000"
	.align	2
.LC32:
	.ascii	"gst-launch-1.0\000"
	.align	2
.LC33:
	.ascii	"fdsrc\000"
	.align	2
.LC34:
	.ascii	"do-timestamp=true\000"
	.align	2
.LC35:
	.ascii	"!\000"
	.align	2
.LC36:
	.ascii	"h264parse\000"
	.align	2
.LC37:
	.ascii	"decodebin\000"
	.align	2
.LC38:
	.ascii	"gst pid: %d\012\000"
	.align	2
.LC39:
	.ascii	"Could not accept client, another connection still e"
	.ascii	"xist\000"
	.align	2
.LC40:
	.ascii	"Failed to receive from tcp client socket, close the"
	.ascii	" socket\000"
	.align	2
.LC41:
	.ascii	"\015\012\000"
	.align	2
.LC42:
	.ascii	"Receive control data(%u): %s\012\000"
	.align	2
.LC43:
	.ascii	"\015\012\015\012\000"
	.align	2
.LC44:
	.ascii	"X-WIDTH:\000"
	.align	2
.LC45:
	.ascii	"width: %d\012\000"
	.align	2
.LC46:
	.ascii	"X-HEIGHT:\000"
	.align	2
.LC47:
	.ascii	"height: %d\012\000"
	.align	2
.LC48:
	.ascii	"gst in fp: %d\012\000"
	.align	2
.LC49:
	.ascii	"Write non control data len: %d\012\000"
	.align	2
.LC50:
	.ascii	"Pipe input error: %s\012\000"
	.align	2
.LC51:
	.ascii	"No data for casting after 30 seconds, close the soc"
	.ascii	"ket and receiver\000"
	.align	2
.LC31:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	0
	.align	2
.LC52:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 2104
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #2112
	sub	sp, sp, #4
	str	r0, [fp, #-2112]
	str	r1, [fp, #-2116]
	ldr	r3, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-2092]
	mvn	r3, #0
	str	r3, [fp, #-2088]
	mvn	r3, #0
	str	r3, [fp, #-2040]
	mvn	r3, #0
	str	r3, [fp, #-2084]
	mvn	r3, #0
	str	r3, [fp, #-2080]
	mvn	r3, #0
	str	r3, [fp, #-2100]
	mvn	r3, #0
	str	r3, [fp, #-2096]
	mvn	r3, #0
	str	r3, [fp, #-2076]
	mov	r3, #0
	str	r3, [fp, #-2072]
	mov	r3, #0
	str	r3, [fp, #-2068]
	ldr	r3, [fp, #-2112]
	cmp	r3, #2
	bne	.L26
	ldr	r3, [fp, #-2116]
	add	r3, r3, #4
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L27
.L26:
	ldr	r0, .L77+4
	bl	perror
	mvn	r3, #0
	b	.L73
.L27:
	ldr	r3, [fp, #-2116]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-2036]
	ldr	r1, [fp, #-2036]
	ldr	r0, .L77+8
	bl	printf
	bl	setup_udp_socket
	str	r0, [fp, #-2088]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-2040]
	ldr	r3, [fp, #-2040]
	cmp	r3, #0
	bge	.L29
	ldr	r0, .L77+12
	bl	perror
	mov	r3, #0
	b	.L73
.L29:
	sub	r3, fp, #1952
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #12
	sub	r3, r3, #1952
	sub	r3, r3, #4
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-1964]
	ldr	r0, .L77+16
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1952
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1952
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-2040]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L30
	ldr	r0, .L77+20
	bl	perror
	mov	r3, #0
	b	.L73
.L30:
	mov	r1, #3
	ldr	r0, [fp, #-2040]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L77+24
	bl	perror
	mov	r3, #0
	b	.L73
.L31:
	mov	r3, #0
	str	r3, [fp, #-2064]
	mov	r3, #3
	str	r3, [fp, #-2012]
	mov	r3, #0
	str	r3, [fp, #-2008]
	sub	r3, fp, #1920
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-2032]
	mov	r3, #0
	str	r3, [fp, #-2060]
	b	.L32
.L33:
	ldr	r3, [fp, #-2032]
	ldr	r2, [fp, #-2060]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-2060]
	add	r3, r3, #1
	str	r3, [fp, #-2060]
.L32:
	ldr	r3, [fp, #-2060]
	cmp	r3, #31
	bls	.L33
	ldr	r3, [fp, #-2088]
	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, #-1924]
	ldr	r3, [fp, #-2088]
	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, #-1924]
	ldr	r3, [fp, #-2040]
	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, #-1924]
	ldr	r3, [fp, #-2040]
	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, #-1924]
	ldr	r2, [fp, #-2040]
	ldr	r3, [fp, #-2088]
	cmp	r2, r3
	ble	.L34
	ldr	r3, [fp, #-2040]
	str	r3, [fp, #-2080]
	b	.L35
.L34:
	ldr	r3, [fp, #-2088]
	str	r3, [fp, #-2080]
.L35:
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	ble	.L36
	ldr	r3, [fp, #-2084]
	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, #-1924]
	ldr	r3, [fp, #-2084]
	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, #-1924]
	ldr	r2, [fp, #-2084]
	ldr	r3, [fp, #-2080]
	cmp	r2, r3
	ble	.L36
	ldr	r3, [fp, #-2084]
	str	r3, [fp, #-2080]
.L36:
	ldr	r3, [fp, #-2080]
	add	r0, r3, #1
	sub	r1, fp, #1920
	sub	r1, r1, #12
	sub	r1, r1, #4
	sub	r3, fp, #2000
	sub	r3, r3, #12
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	bl	select
	mov	r3, r0
	cmn	r3, #1
	beq	.L37
	cmp	r3, #0
	beq	.L38
	b	.L39
.L37:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L77+28
	bl	printf
	b	.L40
.L38:
	mov	r3, #1
	str	r3, [fp, #-2064]
.L39:
	ldr	r3, [fp, #-2088]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-1924]
	ldr	r3, [fp, #-2088]
	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	.L41
	sub	r3, fp, #1664
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-2004]
	mov	r3, #128
	str	r3, [fp, #-2000]
	sub	r3, fp, #1984
	sub	r3, r3, #12
	mov	r2, #28
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1984
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [fp, #-1988]
	mov	r3, #1
	str	r3, [fp, #-1984]
	sub	r3, fp, #1792
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1980]
	mov	r3, #128
	str	r3, [fp, #-1976]
	mov	r3, #0
	str	r3, [fp, #-1972]
	sub	r3, fp, #1936
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1996]
	mov	r3, #16
	str	r3, [fp, #-1992]
	sub	r3, fp, #1984
	sub	r3, r3, #12
	mov	r2, #0
	mov	r1, r3
	ldr	r0, [fp, #-2088]
	bl	recvmsg
	str	r0, [fp, #-2028]
	ldr	r3, [fp, #-2028]
	cmp	r3, #0
	bge	.L42
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L77+32
	bl	printf
	ldr	r0, [fp, #-2088]
	bl	close
	bl	setup_udp_socket
	str	r0, [fp, #-2088]
	b	.L31
.L42:
	ldr	r0, [fp, #-1948]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #1936
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	sub	r1, fp, #1664
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r2, r4
	ldr	r0, .L77+36
	bl	printf
	sub	r3, fp, #1664
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #5
	ldr	r1, .L77+40
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L31
	ldr	r0, [fp, #-1948]
	bl	inet_ntoa
	mov	r2, r0
	sub	r3, fp, #1664
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, .L77+44
	bl	printf
	ldr	r3, [fp, #-1976]
	cmp	r3, #11
	bls	.L44
	ldr	r3, [fp, #-1980]
	b	.L45
.L44:
	mov	r3, #0
.L45:
	str	r3, [fp, #-2056]
	b	.L46
.L48:
	ldr	r3, [fp, #-2056]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L47
	ldr	r3, [fp, #-2056]
	add	r3, r3, #12
	str	r3, [fp, #-2016]
	ldr	r3, [fp, #-2016]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L77+48
	bl	printf
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #512
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-2016]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r4, r0
	ldr	r3, [fp, #-2016]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r3, r0
	sub	r0, fp, #1536
	sub	r0, r0, #12
	sub	r0, r0, #4
	str	r3, [sp, #4]
	str	r4, [sp]
	ldr	r3, .L77+16
	ldr	r2, .L77+52
	mov	r1, #512
	bl	snprintf
	sub	r3, fp, #1536
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r1, fp, #1536
	sub	r1, r1, #12
	sub	r1, r1, #4
	mov	r3, #16
	str	r3, [sp, #4]
	sub	r3, fp, #1936
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, #0
	ldr	r0, [fp, #-2088]
	bl	sendto
	mov	r3, r0
	cmp	r3, #0
	bge	.L47
	ldr	r0, .L77+56
	bl	puts
.L47:
	sub	r3, fp, #1984
	sub	r3, r3, #12
	ldr	r1, [fp, #-2056]
	mov	r0, r3
	bl	__cmsg_nxthdr
	str	r0, [fp, #-2056]
.L46:
	ldr	r3, [fp, #-2056]
	cmp	r3, #0
	bne	.L48
	b	.L31
.L41:
	ldr	r3, [fp, #-2040]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-1924]
	ldr	r3, [fp, #-2040]
	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	.L49
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	bge	.L50
	mov	r3, #16
	str	r3, [fp, #-2104]
	sub	r2, fp, #2080
	sub	r2, r2, #12
	sub	r2, r2, #12
	sub	r3, fp, #1936
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2040]
	bl	accept
	str	r0, [fp, #-2084]
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	bge	.L51
	ldr	r0, .L77+60
	bl	puts
	b	.L31
.L51:
	mov	r3, #1
	str	r3, [fp, #-2072]
	ldr	r0, [fp, #-1948]
	bl	inet_ntoa
	mov	r4, r0
	sub	r3, fp, #12
	sub	r3, r3, #1936
	sub	r3, r3, #4
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	mov	r1, r4
	ldr	r0, .L77+64
	bl	printf
	mov	r2, #6
	ldr	r1, .L77+68
	ldr	r0, [fp, #-2036]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L52
	ldr	r3, .L77+72
	sub	ip, fp, #1792
	sub	ip, ip, #12
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	sub	r2, fp, #2080
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #2080
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #1792
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	popen2
	str	r0, [fp, #-2076]
	b	.L53
.L52:
	ldr	r3, .L77+76
	str	r3, [fp, #-1808]
	ldr	r3, .L77+80
	str	r3, [fp, #-1804]
	ldr	r3, .L77+84
	str	r3, [fp, #-1800]
	ldr	r3, .L77+88
	str	r3, [fp, #-1796]
	ldr	r3, .L77+92
	str	r3, [fp, #-1792]
	ldr	r3, .L77+88
	str	r3, [fp, #-1788]
	ldr	r3, .L77+96
	str	r3, [fp, #-1784]
	ldr	r3, .L77+88
	str	r3, [fp, #-1780]
	ldr	r3, [fp, #-2036]
	str	r3, [fp, #-1776]
	mov	r3, #0
	str	r3, [fp, #-1772]
	sub	r2, fp, #2080
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #2080
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #1792
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	popen2
	str	r0, [fp, #-2076]
.L53:
	ldr	r1, [fp, #-2076]
	ldr	r0, .L77+100
	bl	printf
	b	.L31
.L50:
	ldr	r0, .L77+104
	bl	puts
	b	.L31
.L49:
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	ble	.L54
	ldr	r3, [fp, #-2084]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r2, [r3, #-1924]
	ldr	r3, [fp, #-2084]
	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	.L54
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #1024
	mov	r1, r3
	ldr	r0, [fp, #-2084]
	bl	read
	str	r0, [fp, #-2028]
	ldr	r3, [fp, #-2028]
	cmp	r3, #0
	ble	.L55
	mov	r3, #0
	str	r3, [fp, #-2068]
	b	.L56
.L55:
	ldr	r3, [fp, #-2068]
	add	r3, r3, #1
	str	r3, [fp, #-2068]
.L56:
	ldr	r3, [fp, #-2028]
	cmp	r3, #0
	blt	.L57
	ldr	r3, [fp, #-2068]
	cmp	r3, #2
	ble	.L58
.L57:
	ldr	r0, .L77+108
	bl	puts
	ldr	r0, [fp, #-2084]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-2084]
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	ble	.L59
	mov	r1, #9
	ldr	r0, [fp, #-2076]
	bl	kill
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-2076]
	bl	waitpid
	mvn	r3, #0
	str	r3, [fp, #-2076]
	mvn	r3, #0
	str	r3, [fp, #-2100]
	mvn	r3, #0
	str	r3, [fp, #-2096]
.L59:
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	ble	.L61
	ldr	r0, [fp, #-2092]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-2092]
	b	.L61
.L58:
	ldr	r3, [fp, #-2072]
	cmp	r3, #0
	beq	.L62
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L77+112
	mov	r0, r3
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L62
	mov	r3, #800
	str	r3, [fp, #-2024]
	mov	r3, #480
	str	r3, [fp, #-2020]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, r3
	ldr	r1, [fp, #-2028]
	ldr	r0, .L77+116
	bl	printf
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L77+120
	mov	r0, r3
	bl	strstr
	str	r0, [fp, #-2052]
	mov	r3, #0
	str	r3, [fp, #-2048]
	ldr	r3, [fp, #-2052]
	add	r2, r3, #4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r3, r2, r3
	cmp	r3, #0
	ble	.L63
	ldr	r3, [fp, #-2052]
	add	r2, r3, #4
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r3, r2, r3
	ldr	r2, [fp, #-2028]
	sub	r3, r2, r3
	str	r3, [fp, #-2048]
	ldr	r3, [fp, #-2052]
	add	r3, r3, #4
	str	r3, [fp, #-2052]
.L63:
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	ldr	r1, .L77+112
	mov	r0, r3
	bl	strtok
	str	r0, [fp, #-2044]
	b	.L64
.L67:
	ldr	r1, .L77+124
	ldr	r0, [fp, #-2044]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	mov	r1, #32
	ldr	r0, [fp, #-2044]
	bl	strchr
	mov	r3, r0
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2024]
	ldr	r1, [fp, #-2024]
	ldr	r0, .L77+128
	bl	printf
.L65:
	ldr	r1, .L77+132
	ldr	r0, [fp, #-2044]
	bl	strstr
	mov	r3, r0
	cmp	r3, #0
	beq	.L66
	mov	r1, #32
	ldr	r0, [fp, #-2044]
	bl	strchr
	mov	r3, r0
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-2020]
	ldr	r1, [fp, #-2020]
	ldr	r0, .L77+136
	bl	printf
.L66:
	ldr	r1, .L77+112
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-2044]
.L64:
	ldr	r3, [fp, #-2044]
	cmp	r3, #0
	bne	.L67
	mov	r2, #6
	ldr	r1, .L77+68
	ldr	r0, [fp, #-2036]
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L68
	ldr	r3, .L77+72
	sub	ip, fp, #1792
	sub	ip, ip, #12
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	str	r3, [ip]
	sub	r2, fp, #2080
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #2080
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #1792
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	popen2
	str	r0, [fp, #-2076]
	b	.L69
.L68:
	ldr	r3, .L77+76
	str	r3, [fp, #-1808]
	ldr	r3, .L77+80
	str	r3, [fp, #-1804]
	ldr	r3, .L77+84
	str	r3, [fp, #-1800]
	ldr	r3, .L77+88
	str	r3, [fp, #-1796]
	ldr	r3, .L77+92
	str	r3, [fp, #-1792]
	ldr	r3, .L77+88
	str	r3, [fp, #-1788]
	ldr	r3, .L77+96
	str	r3, [fp, #-1784]
	ldr	r3, .L77+88
	str	r3, [fp, #-1780]
	ldr	r3, [fp, #-2036]
	str	r3, [fp, #-1776]
	mov	r3, #0
	str	r3, [fp, #-1772]
	sub	r2, fp, #2080
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #2080
	sub	r1, r1, #12
	sub	r1, r1, #8
	sub	r3, fp, #1792
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r0, r3
	bl	popen2
	str	r0, [fp, #-2076]
.L69:
	ldr	r1, [fp, #-2076]
	ldr	r0, .L77+100
	bl	printf
	ldr	r3, [fp, #-2100]
	mov	r1, r3
	ldr	r0, .L77+140
	bl	printf
	mov	r3, #0
	str	r3, [fp, #-2072]
	ldr	r3, [fp, #-2048]
	cmp	r3, #0
	ble	.L75
	ldr	r3, [fp, #-2100]
	cmp	r3, #0
	ble	.L75
	ldr	r3, [fp, #-2100]
	ldr	r2, [fp, #-2048]
	ldr	r1, [fp, #-2052]
	mov	r0, r3
	bl	write
	str	r0, [fp, #-2028]
	ldr	r1, [fp, #-2028]
	ldr	r0, .L77+144
	bl	printf
	b	.L75
.L62:
	ldr	r3, [fp, #-2100]
	cmp	r3, #0
	ble	.L76
	ldr	r0, [fp, #-2100]
	ldr	r2, [fp, #-2028]
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r1, r3
	bl	write
	str	r0, [fp, #-2028]
	ldr	r3, [fp, #-2028]
	cmp	r3, #0
	bge	.L76
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L77+148
	bl	printf
	b	.L76
.L75:
	nop
.L61:
	b	.L76
.L54:
	ldr	r3, [fp, #-2064]
	cmp	r3, #0
	beq	.L31
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	ble	.L31
	ldr	r3, [fp, #-2068]
	add	r3, r3, #1
	str	r3, [fp, #-2068]
	ldr	r3, [fp, #-2068]
	cmp	r3, #10
	ble	.L31
	ldr	r0, .L77+152
	bl	puts
	ldr	r3, [fp, #-2084]
	cmp	r3, #0
	ble	.L71
	ldr	r0, [fp, #-2084]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-2084]
.L71:
	ldr	r3, [fp, #-2076]
	cmp	r3, #0
	ble	.L72
	mov	r1, #9
	ldr	r0, [fp, #-2076]
	bl	kill
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-2076]
	bl	waitpid
	mvn	r3, #0
	str	r3, [fp, #-2076]
	mvn	r3, #0
	str	r3, [fp, #-2100]
	mvn	r3, #0
	str	r3, [fp, #-2096]
.L72:
	ldr	r3, [fp, #-2092]
	cmp	r3, #0
	ble	.L31
	ldr	r0, [fp, #-2092]
	bl	close
	mvn	r3, #0
	str	r3, [fp, #-2092]
	b	.L31
.L76:
	nop
.L40:
	b	.L31
.L73:
	ldr	r2, .L77
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L74
	bl	__stack_chk_fail
.L74:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC52
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	53515
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC0
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	.LC37
	.word	.LC38
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.word	.LC47
	.word	.LC48
	.word	.LC49
	.word	.LC50
	.word	.LC51
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
