	.file	"215769541.c"
	.intel_syntax noprefix
	.text
	.globl	socket_mutex
	.bss
	.align 32
	.type	socket_mutex, @object
	.size	socket_mutex, 40
socket_mutex:
	.zero	40
	.section	.rodata
	.align 8
.LC0:
	.string	"USAGE:%s <proxy-port> <server IP> <service-port | service-name>\r\n"
.LC1:
	.string	"proxyd"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -4[rbp], -1
	cmp	DWORD PTR -20[rbp], 4
	je	.L2
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L2:
	mov	edx, 0
	mov	esi, 35
	lea	rdi, .LC1[rip]
	call	openlog@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	create_listenfd
	mov	DWORD PTR -4[rbp], eax
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	do_proxy
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	close@PLT
	call	closelog@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC2:
	.string	"[%d]epoll_creat1 failed(%m)!\r\n"
	.align 8
.LC3:
	.string	"[%d]listen event epoll_ctl failed(%m)!\r\n"
.LC4:
	.string	"[%d]epoll_wait failed(%m)!\r\n"
.LC5:
	.string	"[%d]epoll error(%m)!\r\n"
.LC6:
	.string	"[%d]accept failed(%m)\r\n"
	.align 8
.LC7:
	.string	"[%d]create_prx2srv_con failed!\r\n"
	.align 8
.LC8:
	.string	"create thread failed,(%d)(%s)\r\n"
	.text
	.globl	do_proxy
	.type	do_proxy, @function
do_proxy:
.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, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], -1
	mov	DWORD PTR -84[rbp], -1
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR -80[rbp], eax
	cmp	DWORD PTR -80[rbp], -1
	jne	.L5
	mov	edx, 71
	lea	rsi, .LC2[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L6
.L5:
	mov	DWORD PTR -56[rbp], 1
	mov	eax, DWORD PTR -100[rbp]
	mov	DWORD PTR -52[rbp], eax
	lea	rcx, -56[rbp]
	mov	edx, DWORD PTR -100[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	cmp	eax, -1
	jne	.L7
	mov	edx, 78
	lea	rsi, .LC3[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L6
.L7:
	lea	rsi, -44[rbp]
	mov	eax, DWORD PTR -80[rbp]
	mov	ecx, -1
	mov	edx, 1
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], -1
	jne	.L8
	mov	edx, 86
	lea	rsi, .LC4[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L9
.L8:
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 8
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 16
	test	eax, eax
	jne	.L10
	mov	eax, DWORD PTR -44[rbp]
	and	eax, 1
	test	eax, eax
	jne	.L11
.L10:
	mov	edx, 90
	lea	rsi, .LC5[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L9
.L11:
	mov	DWORD PTR -92[rbp], 16
	lea	rdx, -92[rbp]
	lea	rcx, -32[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L12
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L19
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L19
	mov	edx, 104
	lea	rsi, .LC6[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L16
.L12:
	mov	rax, QWORD PTR -112[rbp]
	mov	rdi, rax
	call	create_prx2srv_con
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	jne	.L17
	mov	edx, 112
	lea	rsi, .LC7[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L16
.L17:
	lea	rdi, socket_mutex[rip]
	call	pthread_mutex_lock@PLT
	lea	rax, -64[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	DWORD PTR -60[rbp], eax
	mov	eax, DWORD PTR -84[rbp]
	mov	DWORD PTR -64[rbp], eax
	lea	rdx, -64[rbp]
	lea	rax, -72[rbp]
	mov	rcx, rdx
	lea	rdx, do_data_transpond[rip]
	mov	esi, 0
	mov	rdi, rax
	call	pthread_create@PLT
	mov	DWORD PTR -76[rbp], eax
	cmp	DWORD PTR -76[rbp], 0
	je	.L11
	lea	rdi, socket_mutex[rip]
	call	pthread_mutex_unlock@PLT
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	eax, DWORD PTR -76[rbp]
	mov	rcx, rdx
	mov	edx, eax
	lea	rsi, .LC8[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L16
.L19:
	nop
	jmp	.L11
.L16:
	jmp	.L7
.L9:
	mov	eax, DWORD PTR -80[rbp]
	mov	edi, eax
	call	close@PLT
.L6:
	mov	eax, DWORD PTR -100[rbp]
	mov	edi, eax
	call	close@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE7:
	.size	do_proxy, .-do_proxy
	.section	.rodata
.LC9:
	.string	"[%d] args error!\r\n!"
	.align 8
.LC10:
	.string	"[%d] error--client_sockfd:%d server_sockfd:%d \r\n!"
	.align 8
.LC11:
	.string	"[%d]set_socket_nonblocking failes!\r\n"
	.align 8
.LC12:
	.string	"[%d]epoll_create1 failed(%m)\r\n!"
	.align 8
.LC13:
	.string	"[%d]epol_ctl client_sockfd failed(%m)\r\n!"
	.align 8
.LC14:
	.string	"[%d]epol_ctl server_sockfd failed(%m)\r\n!"
.LC15:
	.string	"[%d]epoll_wait!\r\n"
.LC16:
	.string	"[%d]write failed(%m)\r\n!"
	.align 8
.LC17:
	.string	"Closed connection on descriptor %d\n"
	.text
	.globl	do_data_transpond
	.type	do_data_transpond, @function
do_data_transpond:
.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, 2176
	mov	QWORD PTR -2168[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -2152[rbp], 0
	mov	DWORD PTR -2140[rbp], -1
	mov	DWORD PTR -2136[rbp], -1
	mov	DWORD PTR -2132[rbp], -1
	mov	DWORD PTR -2156[rbp], -1
	mov	DWORD PTR -2144[rbp], 0
	cmp	QWORD PTR -2168[rbp], 0
	jne	.L21
	mov	edx, 157
	lea	rsi, .LC9[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	lea	rdi, socket_mutex[rip]
	call	pthread_mutex_unlock@PLT
	lea	rax, -2156[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
.L21:
	mov	rax, QWORD PTR -2168[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR -2136[rbp], eax
	mov	rax, QWORD PTR -2168[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -2132[rbp], eax
	lea	rdi, socket_mutex[rip]
	call	pthread_mutex_unlock@PLT
	cmp	DWORD PTR -2136[rbp], 0
	js	.L22
	cmp	DWORD PTR -2132[rbp], 0
	jns	.L23
.L22:
	mov	edx, DWORD PTR -2132[rbp]
	mov	eax, DWORD PTR -2136[rbp]
	mov	r8d, edx
	mov	ecx, eax
	mov	edx, 167
	lea	rsi, .LC10[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	lea	rax, -2156[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
.L23:
	mov	eax, DWORD PTR -2136[rbp]
	mov	edi, eax
	call	set_socket_nonblocking
	cmp	eax, -1
	je	.L24
	mov	eax, DWORD PTR -2132[rbp]
	mov	edi, eax
	call	set_socket_nonblocking
	cmp	eax, -1
	jne	.L25
.L24:
	mov	edx, 174
	lea	rsi, .LC11[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L26
.L25:
	mov	edi, 0
	call	epoll_create1@PLT
	mov	DWORD PTR -2128[rbp], eax
	cmp	DWORD PTR -2128[rbp], -1
	jne	.L27
	mov	edx, 179
	lea	rsi, .LC12[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L26
.L27:
	lea	rax, -2108[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -2136[rbp]
	mov	DWORD PTR -2104[rbp], eax
	mov	DWORD PTR -2108[rbp], 1
	lea	rcx, -2108[rbp]
	mov	edx, DWORD PTR -2136[rbp]
	mov	eax, DWORD PTR -2128[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	cmp	eax, -1
	jne	.L28
	mov	edx, 187
	lea	rsi, .LC13[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -2128[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L26
.L28:
	lea	rax, -2108[rbp]
	mov	edx, 12
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR -2132[rbp]
	mov	DWORD PTR -2104[rbp], eax
	mov	DWORD PTR -2108[rbp], 1
	lea	rcx, -2108[rbp]
	mov	edx, DWORD PTR -2132[rbp]
	mov	eax, DWORD PTR -2128[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	cmp	eax, -1
	jne	.L29
	mov	edx, 195
	lea	rsi, .LC14[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -2128[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L26
.L29:
	lea	rax, -2096[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L48:
	lea	rsi, -2096[rbp]
	mov	eax, DWORD PTR -2128[rbp]
	mov	ecx, -1
	mov	edx, 2
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -2124[rbp], eax
	mov	DWORD PTR -2148[rbp], 0
	jmp	.L30
.L45:
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2096
	mov	eax, DWORD PTR [rax]
	and	eax, 8
	test	eax, eax
	jne	.L31
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2096
	mov	eax, DWORD PTR [rax]
	and	eax, 16
	test	eax, eax
	jne	.L31
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2096
	mov	eax, DWORD PTR [rax]
	and	eax, 1
	test	eax, eax
	jne	.L32
.L31:
	mov	edx, 207
	lea	rsi, .LC15[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	DWORD PTR -2144[rbp], 1
	jmp	.L33
.L32:
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2092
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -2132[rbp], eax
	je	.L34
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2092
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -2136[rbp], eax
	jne	.L51
.L34:
	mov	DWORD PTR -2152[rbp], 0
.L43:
	mov	QWORD PTR -2120[rbp], 0
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2092
	mov	eax, DWORD PTR [rax]
	lea	rcx, -2064[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -2120[rbp], rax
	cmp	QWORD PTR -2120[rbp], -1
	jne	.L36
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L52
	mov	DWORD PTR -2152[rbp], 1
	jmp	.L52
.L36:
	cmp	QWORD PTR -2120[rbp], 0
	jne	.L39
	mov	DWORD PTR -2152[rbp], 1
	jmp	.L38
.L39:
	mov	eax, DWORD PTR -2148[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 2092
	mov	eax, DWORD PTR [rax]
	cmp	DWORD PTR -2136[rbp], eax
	jne	.L40
	mov	eax, DWORD PTR -2132[rbp]
	jmp	.L41
.L40:
	mov	eax, DWORD PTR -2136[rbp]
.L41:
	mov	DWORD PTR -2140[rbp], eax
	mov	rdx, QWORD PTR -2120[rbp]
	lea	rcx, -2064[rbp]
	mov	eax, DWORD PTR -2140[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	test	rax, rax
	jns	.L43
	mov	edx, 230
	lea	rsi, .LC16[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	DWORD PTR -2144[rbp], 1
	jmp	.L38
.L52:
	nop
.L38:
	cmp	DWORD PTR -2152[rbp], 1
	je	.L44
	cmp	DWORD PTR -2144[rbp], 1
	jne	.L35
.L44:
	mov	DWORD PTR -2144[rbp], 1
	jmp	.L33
.L51:
	nop
.L35:
	add	DWORD PTR -2148[rbp], 1
.L30:
	mov	eax, DWORD PTR -2148[rbp]
	cmp	eax, DWORD PTR -2124[rbp]
	jl	.L45
.L33:
	cmp	DWORD PTR -2144[rbp], 1
	je	.L53
	jmp	.L48
.L53:
	nop
	mov	eax, DWORD PTR -2128[rbp]
	mov	edi, eax
	call	close@PLT
.L26:
	mov	eax, DWORD PTR -2136[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2136[rbp]
	mov	edx, eax
	lea	rsi, .LC17[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -2132[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -2132[rbp]
	mov	edx, eax
	lea	rsi, .LC17[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	lea	rax, -2156[rbp]
	mov	rdi, rax
	call	pthread_exit@PLT
	.cfi_endproc
.LFE8:
	.size	do_data_transpond, .-do_data_transpond
	.section	.rodata
	.align 8
.LC18:
	.string	"[%d]Please input an appropriate service port!\n\r (%s)\r\n"
	.align 8
.LC19:
	.string	"[%d] failed to connect --srv_sockfd:%d (%m)!\r\n"
	.align 8
.LC20:
	.string	"[%d] failed to connect to server!\r\n"
	.text
	.globl	create_prx2srv_con
	.type	create_prx2srv_con, @function
create_prx2srv_con:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -88[rbp], -1
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -64[rbp], 0
	mov	DWORD PTR -52[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 24
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L55
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rcx, rax
	mov	edx, 272
	lea	rsi, .LC18[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L55:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L56
.L61:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	je	.L66
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L67
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	mov	edx, 288
	lea	rsi, .LC19[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L58
.L66:
	nop
.L58:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L56:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L61
	jmp	.L60
.L67:
	nop
.L60:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	QWORD PTR -72[rbp], 0
	jne	.L62
	mov	edx, 295
	lea	rsi, .LC20[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, -1
	jmp	.L64
.L62:
	mov	eax, DWORD PTR -88[rbp]
.L64:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L65
	call	__stack_chk_fail@PLT
.L65:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	create_prx2srv_con, .-create_prx2srv_con
	.section	.rodata
	.align 8
.LC21:
	.string	"[%d] Please input an appropriate proxy port or IP address!\n\r (%s)\r\n"
	.align 8
.LC22:
	.string	"[%d] failed to create socket (%m)!\r\n"
	.align 8
.LC23:
	.string	"[%d] failed to setsockopt--listenfd:%d (%m)!\r\n"
	.align 8
.LC24:
	.string	"[%d] failed to bind--listenfd:%d (%m)!\r\n"
	.align 8
.LC25:
	.string	"[%d] failed to listen --listenfd:%d (%m)!\r\n"
	.align 8
.LC26:
	.string	"[%d] failed to bind socket to proxy_port(%m)!\r\n"
	.text
	.globl	create_listenfd
	.type	create_listenfd, @function
create_listenfd:
.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, 112
	mov	QWORD PTR -104[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -92[rbp], 1
	lea	rax, -64[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -60[rbp], 0
	mov	DWORD PTR -64[rbp], 1
	mov	DWORD PTR -56[rbp], 1
	mov	DWORD PTR -52[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rcx, -80[rbp]
	lea	rdx, -64[rbp]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	je	.L69
	mov	eax, DWORD PTR -84[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rcx, rax
	mov	edx, 324
	lea	rsi, .LC21[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L69:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -72[rbp], rax
	jmp	.L70
.L77:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 12[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	ecx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	esi, ecx
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -88[rbp], eax
	cmp	DWORD PTR -88[rbp], -1
	jne	.L71
	mov	edx, 332
	lea	rsi, .LC22[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	jmp	.L72
.L71:
	lea	rdx, -92[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], -1
	jne	.L73
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	mov	edx, 338
	lea	rsi, .LC23[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L72
.L73:
	mov	rax, QWORD PTR -72[rbp]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L74
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	mov	edx, 344
	lea	rsi, .LC24[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L72
.L74:
	mov	eax, DWORD PTR -88[rbp]
	mov	esi, 50
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	je	.L81
	mov	eax, DWORD PTR -88[rbp]
	mov	ecx, eax
	mov	edx, 352
	lea	rsi, .LC25[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, DWORD PTR -88[rbp]
	mov	edi, eax
	call	close@PLT
	nop
.L72:
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 40[rax]
	mov	QWORD PTR -72[rbp], rax
.L70:
	cmp	QWORD PTR -72[rbp], 0
	jne	.L77
	jmp	.L76
.L81:
	nop
.L76:
	mov	rax, QWORD PTR -80[rbp]
	mov	rdi, rax
	call	freeaddrinfo@PLT
	cmp	QWORD PTR -72[rbp], 0
	jne	.L78
	mov	edx, 360
	lea	rsi, .LC26[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	edi, 1
	call	exit@PLT
.L78:
	mov	eax, DWORD PTR -88[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L80
	call	__stack_chk_fail@PLT
.L80:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	create_listenfd, .-create_listenfd
	.section	.rodata
.LC27:
	.string	"[%d]:sfd invalid!\r\n"
	.align 8
.LC28:
	.string	"[%d]:fcntl get  flag error!socketfd:%d(%m)\r\n"
	.align 8
.LC29:
	.string	"[%d]:fcntl set nonblocking error!socketfd%d(%m)\r\n"
	.text
	.globl	set_socket_nonblocking
	.type	set_socket_nonblocking, @function
set_socket_nonblocking:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	cmp	DWORD PTR -20[rbp], 0
	jns	.L83
	mov	edx, 372
	lea	rsi, .LC27[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, -1
	jmp	.L84
.L83:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L85
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	edx, 378
	lea	rsi, .LC28[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, -1
	jmp	.L84
.L85:
	mov	eax, DWORD PTR -4[rbp]
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	cmp	eax, -1
	jne	.L86
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, eax
	mov	edx, 382
	lea	rsi, .LC29[rip]
	mov	edi, 3
	mov	eax, 0
	call	syslog@PLT
	mov	eax, -1
	jmp	.L84
.L86:
	mov	eax, 0
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	set_socket_nonblocking, .-set_socket_nonblocking
	.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	"215769541.c"
	.text
	.global	socket_mutex
	.bss
	.align	2
	.type	socket_mutex, %object
	.size	socket_mutex, 24
socket_mutex:
	.space	24
	.section	.rodata
	.align	2
.LC0:
	.ascii	"USAGE:%s <proxy-port> <server IP> <service-port | s"
	.ascii	"ervice-name>\015\012\000"
	.align	2
.LC1:
	.ascii	"proxyd\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mvn	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	cmp	r3, #4
	beq	.L2
	ldr	r3, .L4
	ldr	r0, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L4+4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L2:
	mov	r2, #0
	mov	r1, #35
	ldr	r0, .L4+8
	bl	openlog
	ldr	r0, [fp, #-20]
	bl	create_listenfd
	str	r0, [fp, #-8]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-8]
	bl	do_proxy
	ldr	r0, [fp, #-8]
	bl	close
	bl	closelog
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	main, .-main
	.section	.rodata
	.align	2
.LC2:
	.ascii	"[%d]epoll_creat1 failed(%m)!\015\012\000"
	.align	2
.LC3:
	.ascii	"[%d]listen event epoll_ctl failed(%m)!\015\012\000"
	.align	2
.LC4:
	.ascii	"[%d]epoll_wait failed(%m)!\015\012\000"
	.align	2
.LC5:
	.ascii	"[%d]epoll error(%m)!\015\012\000"
	.align	2
.LC6:
	.ascii	"[%d]accept failed(%m)\015\012\000"
	.align	2
.LC7:
	.ascii	"[%d]create_prx2srv_con failed!\015\012\000"
	.align	2
.LC8:
	.ascii	"create thread failed,(%d)(%s)\015\012\000"
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_proxy
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_proxy, %function
do_proxy:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-84]
	mvn	r3, #0
	str	r3, [fp, #-80]
	mov	r0, #0
	bl	epoll_create1
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmn	r3, #1
	bne	.L7
	mov	r2, #71
	ldr	r1, .L22+4
	mov	r0, #3
	bl	syslog
	b	.L8
.L7:
	mov	r3, #1
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-96]
	str	r3, [fp, #-52]
	sub	r3, fp, #60
	ldr	r2, [fp, #-96]
	mov	r1, #1
	ldr	r0, [fp, #-76]
	bl	epoll_ctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	mov	r2, #78
	ldr	r1, .L22+8
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-76]
	bl	close
	b	.L8
.L9:
	sub	r1, fp, #44
	mvn	r3, #0
	mov	r2, #1
	ldr	r0, [fp, #-76]
	bl	epoll_wait
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L10
	mov	r2, #86
	ldr	r1, .L22+12
	mov	r0, #3
	bl	syslog
	b	.L11
.L10:
	ldr	r3, [fp, #-44]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-44]
	and	r3, r3, #16
	cmp	r3, #0
	bne	.L12
	ldr	r3, [fp, #-44]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L13
.L12:
	mov	r2, #90
	ldr	r1, .L22+16
	mov	r0, #3
	bl	syslog
	b	.L11
.L13:
	mov	r3, #16
	str	r3, [fp, #-92]
	sub	r2, fp, #92
	sub	r3, fp, #24
	mov	r1, r3
	ldr	r0, [fp, #-96]
	bl	accept
	str	r0, [fp, #-84]
	ldr	r3, [fp, #-84]
	cmn	r3, #1
	bne	.L14
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L21
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L21
	mov	r2, #104
	ldr	r1, .L22+20
	mov	r0, #3
	bl	syslog
	b	.L18
.L14:
	ldr	r0, [fp, #-100]
	bl	create_prx2srv_con
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmn	r3, #1
	bne	.L19
	mov	r2, #112
	ldr	r1, .L22+24
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-84]
	bl	close
	b	.L18
.L19:
	ldr	r0, .L22+28
	bl	pthread_mutex_lock
	sub	r3, fp, #68
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-80]
	str	r3, [fp, #-68]
	sub	r3, fp, #68
	sub	r0, fp, #88
	ldr	r2, .L22+32
	mov	r1, #0
	bl	pthread_create
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmp	r3, #0
	beq	.L13
	ldr	r0, .L22+28
	bl	pthread_mutex_unlock
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	ldr	r2, [fp, #-72]
	ldr	r1, .L22+36
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-84]
	bl	close
	ldr	r0, [fp, #-80]
	bl	close
	b	.L18
.L21:
	nop
	b	.L13
.L18:
	b	.L9
.L11:
	ldr	r0, [fp, #-76]
	bl	close
.L8:
	ldr	r0, [fp, #-96]
	bl	close
	mov	r0, #1
	bl	exit
.L23:
	.align	2
.L22:
	.word	.LC9
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	socket_mutex
	.word	do_data_transpond
	.word	.LC8
	.size	do_proxy, .-do_proxy
	.section	.rodata
	.align	2
.LC10:
	.ascii	"[%d] args error!\015\012!\000"
	.align	2
.LC11:
	.ascii	"[%d] error--client_sockfd:%d server_sockfd:%d \015\012"
	.ascii	"!\000"
	.align	2
.LC12:
	.ascii	"[%d]set_socket_nonblocking failes!\015\012\000"
	.align	2
.LC13:
	.ascii	"[%d]epoll_create1 failed(%m)\015\012!\000"
	.align	2
.LC14:
	.ascii	"[%d]epol_ctl client_sockfd failed(%m)\015\012!\000"
	.align	2
.LC15:
	.ascii	"[%d]epol_ctl server_sockfd failed(%m)\015\012!\000"
	.align	2
.LC16:
	.ascii	"[%d]epoll_wait!\015\012\000"
	.align	2
.LC17:
	.ascii	"[%d]write failed(%m)\015\012!\000"
	.align	2
.LC18:
	.ascii	"Closed connection on descriptor %d\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	do_data_transpond
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_data_transpond, %function
do_data_transpond:
	@ args = 0, pretend = 0, frame = 2152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #2160
	str	r0, [fp, #-2152]
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-2144]
	mvn	r3, #0
	str	r3, [fp, #-2132]
	mvn	r3, #0
	str	r3, [fp, #-2128]
	mvn	r3, #0
	str	r3, [fp, #-2124]
	mvn	r3, #0
	str	r3, [fp, #-2148]
	mov	r3, #0
	str	r3, [fp, #-2136]
	ldr	r3, [fp, #-2152]
	cmp	r3, #0
	bne	.L25
	mov	r2, #157
	ldr	r1, .L58+4
	mov	r0, #3
	bl	syslog
	ldr	r0, .L58+8
	bl	pthread_mutex_unlock
	sub	r3, fp, #2144
	sub	r3, r3, #4
	mov	r0, r3
	bl	pthread_exit
.L25:
	ldr	r3, [fp, #-2152]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-2128]
	ldr	r3, [fp, #-2152]
	ldr	r3, [r3]
	str	r3, [fp, #-2124]
	ldr	r0, .L58+8
	bl	pthread_mutex_unlock
	ldr	r3, [fp, #-2128]
	cmp	r3, #0
	blt	.L26
	ldr	r3, [fp, #-2124]
	cmp	r3, #0
	bge	.L27
.L26:
	ldr	r3, [fp, #-2124]
	str	r3, [sp]
	ldr	r3, [fp, #-2128]
	mov	r2, #167
	ldr	r1, .L58+12
	mov	r0, #3
	bl	syslog
	sub	r3, fp, #2144
	sub	r3, r3, #4
	mov	r0, r3
	bl	pthread_exit
.L27:
	ldr	r0, [fp, #-2128]
	bl	set_socket_nonblocking
	mov	r3, r0
	cmn	r3, #1
	beq	.L28
	ldr	r0, [fp, #-2124]
	bl	set_socket_nonblocking
	mov	r3, r0
	cmn	r3, #1
	bne	.L29
.L28:
	mov	r2, #174
	ldr	r1, .L58+16
	mov	r0, #3
	bl	syslog
	b	.L30
.L29:
	mov	r0, #0
	bl	epoll_create1
	str	r0, [fp, #-2120]
	ldr	r3, [fp, #-2120]
	cmn	r3, #1
	bne	.L31
	mov	r2, #179
	ldr	r1, .L58+20
	mov	r0, #3
	bl	syslog
	b	.L30
.L31:
	sub	r3, fp, #2096
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-2128]
	str	r3, [fp, #-2100]
	mov	r3, #1
	str	r3, [fp, #-2108]
	sub	r3, fp, #2096
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-2128]
	mov	r1, #1
	ldr	r0, [fp, #-2120]
	bl	epoll_ctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L32
	mov	r2, #187
	ldr	r1, .L58+24
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-2120]
	bl	close
	b	.L30
.L32:
	sub	r3, fp, #2096
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-2124]
	str	r3, [fp, #-2100]
	mov	r3, #1
	str	r3, [fp, #-2108]
	sub	r3, fp, #2096
	sub	r3, r3, #4
	sub	r3, r3, #8
	ldr	r2, [fp, #-2124]
	mov	r1, #1
	ldr	r0, [fp, #-2120]
	bl	epoll_ctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	mov	r2, #195
	ldr	r1, .L58+28
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-2120]
	bl	close
	b	.L30
.L33:
	sub	r3, fp, #2080
	sub	r3, r3, #4
	sub	r3, r3, #8
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L52:
	sub	r1, fp, #2080
	sub	r1, r1, #4
	sub	r1, r1, #8
	mvn	r3, #0
	mov	r2, #2
	ldr	r0, [fp, #-2120]
	bl	epoll_wait
	str	r0, [fp, #-2116]
	mov	r3, #0
	str	r3, [fp, #-2140]
	b	.L34
.L49:
	ldr	r3, [fp, #-2140]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-2088]
	and	r3, r3, #8
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-2140]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-2088]
	and	r3, r3, #16
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-2140]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-2088]
	and	r3, r3, #1
	cmp	r3, #0
	bne	.L36
.L35:
	mov	r2, #207
	ldr	r1, .L58+32
	mov	r0, #3
	bl	syslog
	mov	r3, #1
	str	r3, [fp, #-2136]
	b	.L37
.L36:
	ldr	r3, [fp, #-2140]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-2080]
	ldr	r2, [fp, #-2124]
	cmp	r2, r3
	beq	.L38
	ldr	r3, [fp, #-2140]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-2080]
	ldr	r2, [fp, #-2128]
	cmp	r2, r3
	bne	.L55
.L38:
	mov	r3, #0
	str	r3, [fp, #-2144]
.L47:
	mov	r3, #0
	str	r3, [fp, #-2112]
	ldr	r3, [fp, #-2140]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r0, [r3, #-2080]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r1, r3
	bl	read
	str	r0, [fp, #-2112]
	ldr	r3, [fp, #-2112]
	cmn	r3, #1
	bne	.L40
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L56
	mov	r3, #1
	str	r3, [fp, #-2144]
	b	.L56
.L40:
	ldr	r3, [fp, #-2112]
	cmp	r3, #0
	bne	.L43
	mov	r3, #1
	str	r3, [fp, #-2144]
	b	.L42
.L43:
	ldr	r3, [fp, #-2140]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r3, [r3, #-2080]
	ldr	r2, [fp, #-2128]
	cmp	r2, r3
	bne	.L44
	ldr	r3, [fp, #-2124]
	b	.L45
.L44:
	ldr	r3, [fp, #-2128]
.L45:
	str	r3, [fp, #-2132]
	ldr	r2, [fp, #-2112]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r1, r3
	ldr	r0, [fp, #-2132]
	bl	write
	mov	r3, r0
	cmp	r3, #0
	bge	.L47
	mov	r2, #230
	ldr	r1, .L58+36
	mov	r0, #3
	bl	syslog
	mov	r3, #1
	str	r3, [fp, #-2136]
	b	.L42
.L56:
	nop
.L42:
	ldr	r3, [fp, #-2144]
	cmp	r3, #1
	beq	.L48
	ldr	r3, [fp, #-2136]
	cmp	r3, #1
	bne	.L39
.L48:
	mov	r3, #1
	str	r3, [fp, #-2136]
	b	.L37
.L55:
	nop
.L39:
	ldr	r3, [fp, #-2140]
	add	r3, r3, #1
	str	r3, [fp, #-2140]
.L34:
	ldr	r2, [fp, #-2140]
	ldr	r3, [fp, #-2116]
	cmp	r2, r3
	blt	.L49
.L37:
	ldr	r3, [fp, #-2136]
	cmp	r3, #1
	beq	.L57
	b	.L52
.L57:
	nop
	ldr	r0, [fp, #-2120]
	bl	close
.L30:
	ldr	r0, [fp, #-2128]
	bl	close
	ldr	r2, [fp, #-2128]
	ldr	r1, .L58+40
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-2124]
	bl	close
	ldr	r2, [fp, #-2124]
	ldr	r1, .L58+40
	mov	r0, #3
	bl	syslog
	sub	r3, fp, #2144
	sub	r3, r3, #4
	mov	r0, r3
	bl	pthread_exit
.L59:
	.align	2
.L58:
	.word	.LC19
	.word	.LC10
	.word	socket_mutex
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	do_data_transpond, .-do_data_transpond
	.section	.rodata
	.align	2
.LC20:
	.ascii	"[%d]Please input an appropriate service port!\012\015"
	.ascii	" (%s)\015\012\000"
	.align	2
.LC21:
	.ascii	"[%d] failed to connect --srv_sockfd:%d (%m)!\015\012"
	.ascii	"\000"
	.align	2
.LC22:
	.ascii	"[%d] failed to connect to server!\015\012\000"
	.align	2
.LC23:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_prx2srv_con
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_prx2srv_con, %function
create_prx2srv_con:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	str	r0, [fp, #-64]
	ldr	r3, .L74
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-48]
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-40]
	mov	r3, #0
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-64]
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #12
	ldr	r1, [r3]
	sub	r3, fp, #56
	sub	r2, fp, #40
	bl	getaddrinfo
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L61
	ldr	r0, [fp, #-44]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, #272
	ldr	r1, .L74+4
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L61:
	ldr	r3, [fp, #-56]
	str	r3, [fp, #-52]
	b	.L62
.L67:
	ldr	r3, [fp, #-52]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	beq	.L72
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-48]
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r0, [fp, #-48]
	bl	close
	ldr	r3, [fp, #-48]
	mov	r2, #288
	ldr	r1, .L74+8
	mov	r0, #3
	bl	syslog
	b	.L64
.L72:
	nop
.L64:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-52]
.L62:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L67
	b	.L66
.L73:
	nop
.L66:
	ldr	r3, [fp, #-56]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L68
	ldr	r2, .L74+12
	ldr	r1, .L74+16
	mov	r0, #3
	bl	syslog
	mvn	r3, #0
	b	.L70
.L68:
	ldr	r3, [fp, #-48]
.L70:
	ldr	r2, .L74
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L71
	bl	__stack_chk_fail
.L71:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L75:
	.align	2
.L74:
	.word	.LC23
	.word	.LC20
	.word	.LC21
	.word	295
	.word	.LC22
	.size	create_prx2srv_con, .-create_prx2srv_con
	.section	.rodata
	.align	2
.LC24:
	.ascii	"[%d] Please input an appropriate proxy port or IP a"
	.ascii	"ddress!\012\015 (%s)\015\012\000"
	.align	2
.LC25:
	.ascii	"[%d] failed to create socket (%m)!\015\012\000"
	.align	2
.LC26:
	.ascii	"[%d] failed to setsockopt--listenfd:%d (%m)!\015\012"
	.ascii	"\000"
	.align	2
.LC27:
	.ascii	"[%d] failed to bind--listenfd:%d (%m)!\015\012\000"
	.align	2
.LC28:
	.ascii	"[%d] failed to listen --listenfd:%d (%m)!\015\012\000"
	.align	2
.LC29:
	.ascii	"[%d] failed to bind socket to proxy_port(%m)!\015\012"
	.ascii	"\000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	create_listenfd
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_listenfd, %function
create_listenfd:
	@ args = 0, pretend = 0, frame = 64
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-64]
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-56]
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-36]
	mov	r3, #1
	str	r3, [fp, #-40]
	mov	r3, #1
	str	r3, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-64]
	add	r3, r3, #8
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r3, fp, #60
	sub	r2, fp, #40
	bl	getaddrinfo
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L77
	ldr	r0, [fp, #-44]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, #324
	ldr	r1, .L90+4
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L77:
	ldr	r3, [fp, #-60]
	str	r3, [fp, #-52]
	b	.L78
.L85:
	ldr	r3, [fp, #-52]
	ldr	r0, [r3, #4]
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	socket
	str	r0, [fp, #-48]
	ldr	r3, [fp, #-48]
	cmn	r3, #1
	bne	.L79
	mov	r2, #332
	ldr	r1, .L90+8
	mov	r0, #3
	bl	syslog
	b	.L80
.L79:
	sub	r3, fp, #56
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-48]
	bl	setsockopt
	str	r0, [fp, #-44]
	ldr	r3, [fp, #-44]
	cmn	r3, #1
	bne	.L81
	ldr	r3, [fp, #-48]
	ldr	r2, .L90+12
	ldr	r1, .L90+16
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-48]
	bl	close
	b	.L80
.L81:
	ldr	r3, [fp, #-52]
	ldr	r1, [r3, #20]
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #16]
	mov	r2, r3
	ldr	r0, [fp, #-48]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L82
	ldr	r3, [fp, #-48]
	mov	r2, #344
	ldr	r1, .L90+20
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-48]
	bl	close
	b	.L80
.L82:
	mov	r1, #50
	ldr	r0, [fp, #-48]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-48]
	mov	r2, #352
	ldr	r1, .L90+24
	mov	r0, #3
	bl	syslog
	ldr	r0, [fp, #-48]
	bl	close
	nop
.L80:
	ldr	r3, [fp, #-52]
	ldr	r3, [r3, #28]
	str	r3, [fp, #-52]
.L78:
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L85
	b	.L84
.L89:
	nop
.L84:
	ldr	r3, [fp, #-60]
	mov	r0, r3
	bl	freeaddrinfo
	ldr	r3, [fp, #-52]
	cmp	r3, #0
	bne	.L86
	mov	r2, #360
	ldr	r1, .L90+28
	mov	r0, #3
	bl	syslog
	mov	r0, #1
	bl	exit
.L86:
	ldr	r3, [fp, #-48]
	ldr	r2, .L90
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L88
	bl	__stack_chk_fail
.L88:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	.LC30
	.word	.LC24
	.word	.LC25
	.word	338
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.size	create_listenfd, .-create_listenfd
	.section	.rodata
	.align	2
.LC31:
	.ascii	"[%d]:sfd invalid!\015\012\000"
	.align	2
.LC32:
	.ascii	"[%d]:fcntl get  flag error!socketfd:%d(%m)\015\012\000"
	.align	2
.LC33:
	.ascii	"[%d]:fcntl set nonblocking error!socketfd%d(%m)\015"
	.ascii	"\012\000"
	.text
	.align	2
	.global	set_socket_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_socket_nonblocking, %function
set_socket_nonblocking:
	@ 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	r3, [fp, #-16]
	cmp	r3, #0
	bge	.L93
	mov	r2, #372
	ldr	r1, .L97
	mov	r0, #3
	bl	syslog
	mvn	r3, #0
	b	.L94
.L93:
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L95
	ldr	r3, [fp, #-16]
	ldr	r2, .L97+4
	ldr	r1, .L97+8
	mov	r0, #3
	bl	syslog
	mvn	r3, #0
	b	.L94
.L95:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	cmn	r3, #1
	bne	.L96
	ldr	r3, [fp, #-16]
	ldr	r2, .L97+12
	ldr	r1, .L97+16
	mov	r0, #3
	bl	syslog
	mvn	r3, #0
	b	.L94
.L96:
	mov	r3, #0
.L94:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L98:
	.align	2
.L97:
	.word	.LC31
	.word	378
	.word	.LC32
	.word	382
	.word	.LC33
	.size	set_socket_nonblocking, .-set_socket_nonblocking
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
