	.file	"688009.c"
	.intel_syntax noprefix
	.text
	.globl	epollfd
	.bss
	.align 4
	.type	epollfd, @object
	.size	epollfd, 4
epollfd:
	.zero	4
	.globl	listenfd
	.align 4
	.type	listenfd, @object
	.size	listenfd, 4
listenfd:
	.zero	4
	.globl	proxyport
	.align 4
	.type	proxyport, @object
	.size	proxyport, 4
proxyport:
	.zero	4
	.globl	serverport
	.align 4
	.type	serverport, @object
	.size	serverport, 4
serverport:
	.zero	4
	.globl	proxyip
	.align 8
	.type	proxyip, @object
	.size	proxyip, 8
proxyip:
	.zero	8
	.globl	serverip
	.align 8
	.type	serverip, @object
	.size	serverip, 8
serverip:
	.zero	8
	.globl	serveraddr
	.align 8
	.type	serveraddr, @object
	.size	serveraddr, 8
serveraddr:
	.zero	8
	.globl	listenaddr
	.align 8
	.type	listenaddr, @object
	.size	listenaddr, 8
listenaddr:
	.zero	8
	.local	proxy_sigquit
	.comm	proxy_sigquit,4,4
	.text
	.type	handlesignal, @function
handlesignal:
.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], 2
	je	.L2
	cmp	DWORD PTR -4[rbp], 15
	jne	.L5
.L2:
	mov	eax, DWORD PTR proxy_sigquit[rip]
	add	eax, 1
	mov	DWORD PTR proxy_sigquit[rip], eax
	jmp	.L4
.L5:
	nop
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	handlesignal, .-handlesignal
	.type	setsignalmasks, @function
setsignalmasks:
.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, 160
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, handlesignal[rip]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -160[rbp]
	add	rax, 8
	mov	rdi, rax
	call	sigemptyset@PLT
	mov	DWORD PTR -24[rbp], 0
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 2
	call	sigaction@PLT
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 15
	call	sigaction@PLT
	lea	rax, -160[rbp]
	mov	edx, 152
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	QWORD PTR -160[rbp], 1
	mov	DWORD PTR -24[rbp], 268435456
	lea	rax, -160[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 13
	call	sigaction@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	setsignalmasks, .-setsignalmasks
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: converse_proxy [-l <listenip:port>] [-f <forwardip:port>] \n"
	.text
	.type	usage, @function
usage:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 66
	mov	esi, 1
	lea	rdi, .LC0[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
.LC1:
	.string	"l:f:"
	.text
	.type	processinput, @function
processinput:
.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, 64
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	DWORD PTR -36[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L10
.L13:
	cmp	DWORD PTR -36[rbp], 102
	je	.L11
	cmp	DWORD PTR -36[rbp], 108
	jne	.L12
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -32[rbp], rax
	jmp	.L10
.L11:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -24[rbp], rax
	jmp	.L10
.L12:
	mov	eax, 0
	call	usage
.L10:
	mov	rcx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	lea	rdx, .LC1[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -36[rbp], eax
	cmp	DWORD PTR -36[rbp], -1
	jne	.L13
	cmp	QWORD PTR -32[rbp], 0
	je	.L14
	cmp	QWORD PTR -24[rbp], 0
	jne	.L15
.L14:
	mov	eax, 0
	call	usage
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	cmp	QWORD PTR -8[rbp], 0
	je	.L16
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	jmp	.L17
.L16:
	mov	eax, 0
	call	usage
.L17:
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR proxyip[rip], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR proxyport[rip], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 58
	mov	rdi, rax
	call	strrchr@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	QWORD PTR -16[rbp], 0
	cmp	QWORD PTR -8[rbp], 0
	je	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	jmp	.L19
.L18:
	mov	eax, 0
	call	usage
.L19:
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR serverip[rip], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR serverport[rip], eax
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	processinput, .-processinput
	.section	.rodata
.LC2:
	.string	"Epoll create error"
.LC3:
	.string	"Listener socket error"
.LC4:
	.string	"Invalid proxy ip"
.LC5:
	.string	"Invalid server ip"
.LC6:
	.string	"Setting proxyfd non blocking"
.LC7:
	.string	"Error on bind"
.LC8:
	.string	"Error on listen"
	.align 8
.LC9:
	.string	"Error adding listerner to epoll"
	.text
	.globl	main
	.type	main, @function
main:
.LFB10:
	.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, 56
	.cfi_offset 3, -24
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -64[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	processinput
	mov	eax, 0
	call	setsignalmasks
	mov	edi, 10
	call	epoll_create@PLT
	mov	DWORD PTR epollfd[rip], eax
	mov	eax, DWORD PTR epollfd[rip]
	cmp	eax, -1
	jne	.L21
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	lea	rdi, listenfd[rip]
	call	getsock
	mov	eax, DWORD PTR listenfd[rip]
	test	eax, eax
	jg	.L22
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	DWORD PTR -36[rbp], 1
	mov	eax, DWORD PTR listenfd[rip]
	lea	rdx, -36[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR proxyip[rip]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L23
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR listenaddr[rip], rax
	mov	rax, QWORD PTR listenaddr[rip]
	mov	WORD PTR [rax], 2
	mov	eax, DWORD PTR proxyport[rip]
	movzx	eax, ax
	mov	rbx, QWORD PTR listenaddr[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR listenaddr[rip]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR serverip[rip]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L24
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR serveraddr[rip], rax
	mov	rax, QWORD PTR serveraddr[rip]
	mov	WORD PTR [rax], 2
	mov	eax, DWORD PTR serverport[rip]
	movzx	eax, ax
	mov	rbx, QWORD PTR serveraddr[rip]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR 2[rbx], ax
	mov	rax, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR serveraddr[rip]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	eax, DWORD PTR listenfd[rip]
	mov	edi, eax
	call	setnonblocking
	cmp	eax, -1
	jne	.L25
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	lea	rdi, listenfd[rip]
	call	dobind
	cmp	eax, -1
	jne	.L26
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	lea	rdi, listenfd[rip]
	call	dolisten
	cmp	eax, -1
	jne	.L27
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	DWORD PTR event.0[rip], 9
	mov	eax, DWORD PTR listenfd[rip]
	mov	DWORD PTR event.0[rip+4], eax
	mov	edx, DWORD PTR listenfd[rip]
	mov	eax, DWORD PTR epollfd[rip]
	lea	rcx, event.0[rip]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	cmp	eax, -1
	jne	.L28
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	mov	eax, 0
	call	runpoller
	mov	eax, 0
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	main, .-main
	.globl	getsock
	.type	getsock, @function
getsock:
.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	QWORD PTR -24[rbp], rdi
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	getsock, .-getsock
	.globl	setnonblocking
	.type	setnonblocking, @function
setnonblocking:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	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	.L34
	mov	eax, -1
	jmp	.L35
.L34:
	or	DWORD PTR -4[rbp], 2048
	mov	edx, DWORD PTR -4[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	setnonblocking, .-setnonblocking
	.globl	dobind
	.type	dobind, @function
dobind:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	rax, QWORD PTR listenaddr[rip]
	mov	rcx, rax
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	dobind, .-dobind
	.globl	dolisten
	.type	dolisten, @function
dolisten:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -8[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 10
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	dolisten, .-dolisten
	.globl	backendconnect
	.type	backendconnect, @function
backendconnect:
.LFB15:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	getsock
	mov	eax, DWORD PTR -12[rbp]
	cmp	eax, -1
	jne	.L41
	mov	eax, -1
	jmp	.L44
.L41:
	mov	rax, QWORD PTR serveraddr[rip]
	mov	rcx, rax
	mov	eax, DWORD PTR -12[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	cmp	eax, -1
	jne	.L43
	mov	eax, -1
	jmp	.L44
.L43:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	setnonblocking
	mov	eax, DWORD PTR -12[rbp]
.L44:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L45
	call	__stack_chk_fail@PLT
.L45:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	backendconnect, .-backendconnect
	.section	.rodata
.LC10:
	.string	"epoll_wait"
.LC11:
	.string	"epoll_ctl accept_fd"
.LC12:
	.string	"epoll_ctl new_fd"
	.text
	.globl	runpoller
	.type	runpoller, @function
runpoller:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 336
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -332[rbp], 16
.L60:
	mov	eax, DWORD PTR epollfd[rip]
	lea	rsi, -256[rbp]
	mov	ecx, 2000
	mov	edx, 20
	mov	edi, eax
	call	epoll_wait@PLT
	mov	DWORD PTR -324[rbp], eax
	cmp	DWORD PTR -324[rbp], -1
	jne	.L47
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L63
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L63
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L47:
	mov	eax, DWORD PTR proxy_sigquit[rip]
	test	eax, eax
	jg	.L64
	mov	DWORD PTR -328[rbp], 0
	jmp	.L52
.L59:
	mov	eax, DWORD PTR -328[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 252
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR listenfd[rip]
	cmp	edx, eax
	jne	.L53
	lea	rax, -272[rbp]
	mov	rcx, rax
	mov	eax, DWORD PTR listenfd[rip]
	lea	rdx, -332[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -320[rbp], eax
	cmp	DWORD PTR -320[rbp], -1
	jne	.L54
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L65
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L65
	lea	rdi, .LC10[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L54:
	mov	eax, DWORD PTR -320[rbp]
	mov	edi, eax
	call	setnonblocking
	mov	eax, 0
	call	backendconnect
	mov	DWORD PTR -316[rbp], eax
	cmp	DWORD PTR -316[rbp], -1
	je	.L57
	mov	DWORD PTR -284[rbp], -2147483647
	mov	QWORD PTR -304[rbp], 0
	mov	rax, QWORD PTR -304[rbp]
	mov	QWORD PTR -296[rbp], rax
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -296[rbp], rax
	mov	rax, QWORD PTR -296[rbp]
	mov	edx, DWORD PTR -316[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -296[rbp]
	mov	QWORD PTR -280[rbp], rax
	mov	eax, DWORD PTR epollfd[rip]
	lea	rcx, -284[rbp]
	mov	edx, DWORD PTR -316[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	jne	.L58
	mov	esi, 16
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -304[rbp], rax
	mov	rax, QWORD PTR -304[rbp]
	mov	edx, DWORD PTR -320[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -304[rbp]
	mov	rdx, QWORD PTR -296[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -296[rbp]
	mov	rdx, QWORD PTR -304[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -304[rbp]
	mov	QWORD PTR -280[rbp], rax
	mov	eax, DWORD PTR epollfd[rip]
	lea	rcx, -284[rbp]
	mov	edx, DWORD PTR -320[rbp]
	mov	esi, 1
	mov	edi, eax
	call	epoll_ctl@PLT
	test	eax, eax
	je	.L56
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -304[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -320[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -316[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L56
.L58:
	lea	rdi, .LC12[rip]
	call	perror@PLT
	mov	rax, QWORD PTR -296[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -316[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -320[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L56
.L57:
	mov	eax, DWORD PTR -320[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L56
.L53:
	mov	eax, DWORD PTR -328[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 2
	add	rax, rbp
	sub	rax, 256
	mov	rdx, QWORD PTR [rax]
	mov	QWORD PTR -284[rbp], rdx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -276[rbp], eax
	mov	rax, QWORD PTR -280[rbp]
	mov	QWORD PTR -312[rbp], rax
	mov	rax, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, edx
	mov	edi, eax
	call	doforward
	cmp	eax, -1
	jne	.L56
	mov	rax, QWORD PTR -312[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -312[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L56
.L65:
	nop
.L56:
	add	DWORD PTR -328[rbp], 1
.L52:
	mov	eax, DWORD PTR -328[rbp]
	cmp	eax, DWORD PTR -324[rbp]
	jl	.L59
	jmp	.L60
.L63:
	nop
	jmp	.L60
.L64:
	nop
	mov	eax, DWORD PTR epollfd[rip]
	mov	edi, eax
	call	close@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L61
	call	__stack_chk_fail@PLT
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	runpoller, .-runpoller
	.globl	doforward
	.type	doforward, @function
doforward:
.LFB17:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 48
	mov	DWORD PTR -4132[rbp], edi
	mov	DWORD PTR -4136[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -4120[rbp], 0
	mov	eax, DWORD PTR -4120[rbp]
	mov	DWORD PTR -4124[rbp], eax
	mov	eax, DWORD PTR -4124[rbp]
	mov	DWORD PTR -4116[rbp], eax
.L75:
	lea	rax, -4112[rbp]
	mov	edx, 4096
	mov	esi, 48
	mov	rdi, rax
	call	memset@PLT
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4132[rbp]
	mov	edx, 4096
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -4116[rbp], eax
	cmp	DWORD PTR -4116[rbp], 0
	jle	.L67
	mov	eax, DWORD PTR -4116[rbp]
	mov	DWORD PTR -4124[rbp], eax
	jmp	.L68
.L71:
	mov	eax, DWORD PTR -4124[rbp]
	movsx	rdx, eax
	lea	rcx, -4112[rbp]
	mov	eax, DWORD PTR -4136[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -4120[rbp], eax
	cmp	DWORD PTR -4120[rbp], -1
	jne	.L69
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L68
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L68
	mov	eax, -1
	jmp	.L76
.L69:
	mov	eax, DWORD PTR -4120[rbp]
	sub	DWORD PTR -4124[rbp], eax
.L68:
	cmp	DWORD PTR -4124[rbp], 0
	jg	.L71
	jmp	.L75
.L67:
	cmp	DWORD PTR -4116[rbp], 0
	jne	.L73
	mov	eax, -1
	jmp	.L76
.L73:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L74
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L74
	mov	eax, -1
	jmp	.L76
.L74:
	mov	eax, 0
.L76:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L77
	call	__stack_chk_fail@PLT
.L77:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	doforward, .-doforward
	.local	event.0
	.comm	event.0,12,8
	.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	"688009.c"
	.text
	.comm	epollfd,4,4
	.comm	listenfd,4,4
	.comm	proxyport,4,4
	.comm	serverport,4,4
	.comm	proxyip,4,4
	.comm	serverip,4,4
	.comm	serveraddr,4,4
	.comm	listenaddr,4,4
	.local	proxy_sigquit
	.comm	proxy_sigquit,4,4
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handlesignal, %function
handlesignal:
	@ 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, #2
	beq	.L2
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	bne	.L5
.L2:
	ldr	r3, .L6
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L6
	str	r3, [r2]
	b	.L4
.L5:
	nop
.L4:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L7:
	.align	2
.L6:
	.word	proxy_sigquit
	.size	handlesignal, .-handlesignal
	.section	.rodata
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	setsignalmasks, %function
setsignalmasks:
	@ args = 0, pretend = 0, frame = 144
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #144
	ldr	r3, .L10
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, .L10+4
	str	r3, [fp, #-148]
	sub	r3, fp, #148
	add	r3, r3, #4
	mov	r0, r3
	bl	sigemptyset
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #2
	bl	sigaction
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #15
	bl	sigaction
	sub	r3, fp, #148
	mov	r2, #140
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-148]
	mov	r3, #268435456
	str	r3, [fp, #-16]
	sub	r3, fp, #148
	mov	r2, #0
	mov	r1, r3
	mov	r0, #13
	bl	sigaction
	nop
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L9
	bl	__stack_chk_fail
.L9:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	handlesignal
	.size	setsignalmasks, .-setsignalmasks
	.section	.rodata
	.align	2
.LC1:
	.ascii	"Usage: converse_proxy [-l <listenip:port>] [-f <for"
	.ascii	"wardip:port>] \012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L13
	ldr	r3, [r3]
	mov	r2, #66
	mov	r1, #1
	ldr	r0, .L13+4
	bl	fwrite
	mov	r0, #1
	bl	exit
.L14:
	.align	2
.L13:
	.word	stderr
	.word	.LC1
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC2:
	.ascii	"l:f:\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	processinput, %function
processinput:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-24]
	b	.L16
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #102
	beq	.L17
	ldr	r3, [fp, #-12]
	cmp	r3, #108
	bne	.L18
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-24]
	b	.L16
.L17:
	ldr	r3, .L26
	ldr	r3, [r3]
	mov	r0, r3
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-20]
	b	.L16
.L18:
	bl	usage
.L16:
	ldr	r2, .L26+4
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	getopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L19
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L20
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L21
.L20:
	bl	usage
.L21:
	mov	r1, #58
	ldr	r0, [fp, #-24]
	bl	strrchr
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L22
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L23
.L22:
	bl	usage
.L23:
	ldr	r2, .L26+8
	ldr	r3, [fp, #-24]
	str	r3, [r2]
	ldr	r0, [fp, #-16]
	bl	atoi
	mov	r3, r0
	ldr	r2, .L26+12
	str	r3, [r2]
	mov	r1, #58
	ldr	r0, [fp, #-20]
	bl	strrchr
	str	r0, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L24
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L25
.L24:
	bl	usage
.L25:
	ldr	r2, .L26+16
	ldr	r3, [fp, #-20]
	str	r3, [r2]
	ldr	r0, [fp, #-16]
	bl	atoi
	mov	r3, r0
	ldr	r2, .L26+20
	str	r3, [r2]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	optarg
	.word	.LC2
	.word	proxyip
	.word	proxyport
	.word	serverip
	.word	serverport
	.size	processinput, .-processinput
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Epoll create error\000"
	.align	2
.LC4:
	.ascii	"Listener socket error\000"
	.align	2
.LC5:
	.ascii	"Invalid proxy ip\000"
	.align	2
.LC6:
	.ascii	"Invalid server ip\000"
	.align	2
.LC7:
	.ascii	"Setting proxyfd non blocking\000"
	.align	2
.LC8:
	.ascii	"Error on bind\000"
	.align	2
.LC9:
	.ascii	"Error on listen\000"
	.align	2
.LC10:
	.ascii	"Error adding listerner to epoll\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L39
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, [fp, #-36]
	ldr	r0, [fp, #-32]
	bl	processinput
	bl	setsignalmasks
	mov	r0, #10
	bl	epoll_create
	mov	r3, r0
	ldr	r2, .L39+4
	str	r3, [r2]
	ldr	r3, .L39+4
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L29
	ldr	r0, .L39+8
	bl	perror
	mov	r0, #1
	bl	exit
.L29:
	ldr	r0, .L39+12
	bl	getsock
	ldr	r3, .L39+12
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L30
	ldr	r0, .L39+16
	bl	perror
	mov	r0, #1
	bl	exit
.L30:
	mov	r3, #1
	str	r3, [fp, #-24]
	ldr	r3, .L39+12
	ldr	r0, [r3]
	sub	r3, fp, #24
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	bl	setsockopt
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L39+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L31
	ldr	r0, .L39+24
	bl	perror
	mov	r0, #1
	bl	exit
.L31:
	mov	r1, #16
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L39+28
	str	r2, [r3]
	ldr	r3, .L39+28
	ldr	r3, [r3]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L39+32
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L39+28
	ldr	r4, [r2]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, .L39+28
	ldr	r3, [r3]
	add	r0, r3, #4
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	memmove
	ldr	r3, .L39+36
	ldr	r3, [r3]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L32
	ldr	r0, .L39+40
	bl	perror
	mov	r0, #1
	bl	exit
.L32:
	mov	r1, #16
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L39+44
	str	r2, [r3]
	ldr	r3, .L39+44
	ldr	r3, [r3]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L39+48
	ldr	r3, [r3]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	ldr	r2, .L39+44
	ldr	r4, [r2]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [r4, #2]	@ movhi
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, .L39+44
	ldr	r3, [r3]
	add	r0, r3, #4
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	memmove
	ldr	r3, .L39+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	setnonblocking
	mov	r3, r0
	cmn	r3, #1
	bne	.L33
	ldr	r0, .L39+52
	bl	perror
	mov	r0, #1
	bl	exit
.L33:
	ldr	r0, .L39+12
	bl	dobind
	mov	r3, r0
	cmn	r3, #1
	bne	.L34
	ldr	r0, .L39+56
	bl	perror
	mov	r0, #1
	bl	exit
.L34:
	ldr	r0, .L39+12
	bl	dolisten
	mov	r3, r0
	cmn	r3, #1
	bne	.L35
	ldr	r0, .L39+60
	bl	perror
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, .L39+64
	mov	r2, #9
	str	r2, [r3]
	ldr	r3, .L39+12
	ldr	r3, [r3]
	ldr	r2, .L39+64
	str	r3, [r2, #8]
	ldr	r3, .L39+4
	ldr	r0, [r3]
	ldr	r3, .L39+12
	ldr	r2, [r3]
	ldr	r3, .L39+64
	mov	r1, #1
	bl	epoll_ctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L36
	ldr	r0, .L39+68
	bl	perror
	mov	r0, #1
	bl	exit
.L36:
	bl	runpoller
	mov	r3, #0
	ldr	r2, .L39
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L38
	bl	__stack_chk_fail
.L38:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L40:
	.align	2
.L39:
	.word	.LC11
	.word	epollfd
	.word	.LC3
	.word	listenfd
	.word	.LC4
	.word	proxyip
	.word	.LC5
	.word	listenaddr
	.word	proxyport
	.word	serverip
	.word	.LC6
	.word	serveraddr
	.word	serverport
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	event.7755
	.word	.LC10
	.size	main, .-main
	.align	2
	.global	getsock
	.syntax unified
	.arm
	.fpu softvfp
	.type	getsock, %function
getsock:
	@ 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]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	getsock, .-getsock
	.align	2
	.global	setnonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	setnonblocking, %function
setnonblocking:
	@ 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]
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-16]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L44
	mvn	r3, #0
	b	.L45
.L44:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
.L45:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	setnonblocking, .-setnonblocking
	.align	2
	.global	dobind
	.syntax unified
	.arm
	.fpu softvfp
	.type	dobind, %function
dobind:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, .L48
	ldr	r3, [r3]
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	bind
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	listenaddr
	.size	dobind, .-dobind
	.align	2
	.global	dolisten
	.syntax unified
	.arm
	.fpu softvfp
	.type	dolisten, %function
dolisten:
	@ 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]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r1, #10
	ldr	r0, [fp, #-12]
	bl	listen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	dolisten, .-dolisten
	.section	.rodata
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	backendconnect
	.syntax unified
	.arm
	.fpu softvfp
	.type	backendconnect, %function
backendconnect:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L58
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	getsock
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L53
	mvn	r3, #0
	b	.L56
.L53:
	ldr	r3, [fp, #-12]
	ldr	r2, .L58+4
	ldr	r2, [r2]
	mov	r1, r2
	mov	r2, #16
	mov	r0, r3
	bl	connect
	mov	r3, r0
	cmn	r3, #1
	bne	.L55
	mvn	r3, #0
	b	.L56
.L55:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	bl	setnonblocking
	ldr	r3, [fp, #-12]
.L56:
	ldr	r2, .L58
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L57
	bl	__stack_chk_fail
.L57:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L59:
	.align	2
.L58:
	.word	.LC12
	.word	serveraddr
	.size	backendconnect, .-backendconnect
	.section	.rodata
	.align	2
.LC13:
	.ascii	"epoll_wait\000"
	.align	2
.LC14:
	.ascii	"epoll_ctl accept_fd\000"
	.align	2
.LC15:
	.ascii	"epoll_ctl new_fd\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	runpoller
	.syntax unified
	.arm
	.fpu softvfp
	.type	runpoller, %function
runpoller:
	@ args = 0, pretend = 0, frame = 392
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #392
	ldr	r3, .L80
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #16
	str	r3, [fp, #-396]
.L74:
	ldr	r3, .L80+4
	ldr	r0, [r3]
	sub	r1, fp, #332
	mov	r3, #2000
	mov	r2, #20
	bl	epoll_wait
	str	r0, [fp, #-388]
	ldr	r3, [fp, #-388]
	cmn	r3, #1
	bne	.L61
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L77
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L77
	ldr	r0, .L80+8
	bl	perror
	mov	r0, #1
	bl	exit
.L61:
	ldr	r3, .L80+12
	ldr	r3, [r3]
	cmp	r3, #0
	bgt	.L78
	mov	r3, #0
	str	r3, [fp, #-392]
	b	.L66
.L73:
	ldr	r3, [fp, #-392]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-320]
	ldr	r3, .L80+16
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L67
	ldr	r3, .L80+16
	ldr	r3, [r3]
	sub	r2, fp, #348
	mov	r1, r2
	sub	r2, fp, #396
	mov	r0, r3
	bl	accept
	str	r0, [fp, #-380]
	ldr	r3, [fp, #-380]
	cmn	r3, #1
	bne	.L68
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L79
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L79
	ldr	r0, .L80+8
	bl	perror
	mov	r0, #1
	bl	exit
.L68:
	ldr	r0, [fp, #-380]
	bl	setnonblocking
	bl	backendconnect
	str	r0, [fp, #-376]
	ldr	r3, [fp, #-376]
	cmn	r3, #1
	beq	.L71
	mov	r3, #-2147483647
	str	r3, [fp, #-364]
	mov	r3, #0
	str	r3, [fp, #-372]
	ldr	r3, [fp, #-372]
	str	r3, [fp, #-368]
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-368]
	ldr	r3, [fp, #-368]
	ldr	r2, [fp, #-376]
	str	r2, [r3]
	ldr	r3, [fp, #-368]
	str	r3, [fp, #-356]
	ldr	r3, .L80+4
	ldr	r0, [r3]
	sub	r3, fp, #364
	ldr	r2, [fp, #-376]
	mov	r1, #1
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L72
	mov	r1, #8
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-372]
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-380]
	str	r2, [r3]
	ldr	r3, [fp, #-372]
	ldr	r2, [fp, #-368]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-368]
	ldr	r2, [fp, #-372]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-372]
	str	r3, [fp, #-356]
	ldr	r3, .L80+4
	ldr	r0, [r3]
	sub	r3, fp, #364
	ldr	r2, [fp, #-380]
	mov	r1, #1
	bl	epoll_ctl
	mov	r3, r0
	cmp	r3, #0
	beq	.L70
	ldr	r0, .L80+20
	bl	perror
	ldr	r0, [fp, #-372]
	bl	free
	ldr	r0, [fp, #-380]
	bl	close
	ldr	r0, [fp, #-376]
	bl	close
	b	.L70
.L72:
	ldr	r0, .L80+24
	bl	perror
	ldr	r0, [fp, #-368]
	bl	free
	ldr	r0, [fp, #-376]
	bl	close
	ldr	r0, [fp, #-380]
	bl	close
	b	.L70
.L71:
	ldr	r0, [fp, #-380]
	bl	close
	b	.L70
.L67:
	ldr	r3, [fp, #-392]
	lsl	r3, r3, #4
	sub	r2, fp, #4
	add	r3, r2, r3
	sub	ip, fp, #364
	sub	r3, r3, #328
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-356]
	str	r3, [fp, #-384]
	ldr	r3, [fp, #-384]
	ldr	r2, [r3]
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	doforward
	mov	r3, r0
	cmn	r3, #1
	bne	.L70
	ldr	r3, [fp, #-384]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	ldr	r3, [fp, #-384]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	free
	ldr	r0, [fp, #-384]
	bl	free
	b	.L70
.L79:
	nop
.L70:
	ldr	r3, [fp, #-392]
	add	r3, r3, #1
	str	r3, [fp, #-392]
.L66:
	ldr	r2, [fp, #-392]
	ldr	r3, [fp, #-388]
	cmp	r2, r3
	blt	.L73
	b	.L74
.L77:
	nop
	b	.L74
.L78:
	nop
	ldr	r3, .L80+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	nop
	ldr	r3, .L80
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L81:
	.align	2
.L80:
	.word	.LC16
	.word	epollfd
	.word	.LC13
	.word	proxy_sigquit
	.word	listenfd
	.word	.LC14
	.word	.LC15
	.size	runpoller, .-runpoller
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	doforward
	.syntax unified
	.arm
	.fpu softvfp
	.type	doforward, %function
doforward:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4096
	sub	sp, sp, #28
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-24]
	ldr	r3, .L95
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	str	r3, [r2, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	str	r3, [r2, #-8]
.L91:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	mov	r2, #4096
	mov	r1, #48
	mov	r0, r3
	bl	memset
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r0, r2
	mov	r2, #4096
	mov	r1, r3
	ldr	r0, [r0, #-20]
	bl	read
	str	r0, [r4, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	ble	.L83
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	str	r3, [r2, #-16]
	b	.L84
.L87:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r3, #-16]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r0, r1
	mov	r1, r3
	ldr	r0, [r0, #-24]
	bl	write
	str	r0, [r4, #-12]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	cmn	r3, #1
	bne	.L85
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	str	r2, [r1, #-16]
	cmp	r3, #11
	beq	.L84
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r2, fp, #4096
	sub	r2, r2, #12
	ldr	r2, [r2, #-16]
	str	r2, [r1, #-16]
	cmp	r3, #11
	beq	.L84
	mvn	r3, #0
	b	.L92
.L85:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-16]
	ldr	r3, [r3, #-12]
	sub	r3, r2, r3
	str	r3, [r1, #-16]
.L84:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-16]
	cmp	r3, #0
	bgt	.L87
	b	.L91
.L83:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-8]
	cmp	r3, #0
	bne	.L89
	mvn	r3, #0
	b	.L92
.L89:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L90
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L90
	mvn	r3, #0
	b	.L92
.L90:
	mov	r3, #0
.L92:
	ldr	r2, .L95
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L93
	bl	__stack_chk_fail
.L93:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L96:
	.align	2
.L95:
	.word	.LC17
	.size	doforward, .-doforward
	.local	event.7755
	.comm	event.7755,16,8
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
