	.file	"1148449.c"
	.intel_syntax noprefix
	.text
	.globl	g_absolute
	.bss
	.align 16
	.type	g_absolute, @object
	.size	g_absolute, 16
g_absolute:
	.zero	16
	.globl	g_buf
	.align 32
	.type	g_buf, @object
	.size	g_buf, 49152
g_buf:
	.zero	49152
	.globl	g_strhost
	.section	.rodata
.LC0:
	.string	"Host: "
	.section	.data.rel.local,"aw"
	.align 8
	.type	g_strhost, @object
	.size	g_strhost, 8
g_strhost:
	.quad	.LC0
	.globl	g_proxyfd
	.bss
	.align 4
	.type	g_proxyfd, @object
	.size	g_proxyfd, 4
g_proxyfd:
	.zero	4
	.globl	g_rg_fds
	.align 32
	.type	g_rg_fds, @object
	.size	g_rg_fds, 128
g_rg_fds:
	.zero	128
	.globl	g_wg_fds
	.align 32
	.type	g_wg_fds, @object
	.size	g_wg_fds, 128
g_wg_fds:
	.zero	128
	.globl	g_eg_fds
	.align 32
	.type	g_eg_fds, @object
	.size	g_eg_fds, 128
g_eg_fds:
	.zero	128
	.globl	g_dbase
	.align 32
	.type	g_dbase, @object
	.size	g_dbase, 15360
g_dbase:
	.zero	15360
	.globl	g_forsig
	.align 8
	.type	g_forsig, @object
	.size	g_forsig, 8
g_forsig:
	.zero	8
	.globl	g_linger_t
	.data
	.align 8
	.type	g_linger_t, @object
	.size	g_linger_t, 8
g_linger_t:
	.long	1
	.long	0
	.section	.rodata
.LC1:
	.string	"{\"ts\":%d.%06d"
.LC2:
	.string	",\"type\":\"%s\""
.LC3:
	.string	",\"text\":\"%s\""
.LC4:
	.string	",\"id\":%d"
.LC5:
	.string	",\"ip\":\"%s\""
.LC6:
	.string	",\"port\":%d"
.LC7:
	.string	"}"
	.text
	.globl	emit
	.type	emit, @function
emit:
.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, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	lea	rax, -224[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -224[rbp]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	eax, DWORD PTR -244[rbp]
	mov	DWORD PTR -240[rbp], eax
	jmp	.L3
.L15:
	cmp	DWORD PTR -240[rbp], 2
	jne	.L4
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L5
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L6
.L5:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L6:
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -232[rbp], rax
	mov	rax, QWORD PTR -232[rbp]
	mov	rsi, rax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L4:
	cmp	DWORD PTR -240[rbp], 3
	jne	.L8
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L9
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L10:
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L7
.L8:
	cmp	DWORD PTR -240[rbp], 4
	jne	.L7
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L11
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L12:
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -236[rbp], eax
	mov	eax, DWORD PTR -236[rbp]
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -236[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, g_dbase[rip]
	add	rax, rdx
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -236[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, g_dbase[rip+116]
	movzx	eax, WORD PTR [rdx+rax]
	movzx	eax, ax
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L7:
	mov	eax, DWORD PTR -208[rbp]
	cmp	eax, 47
	ja	.L13
	mov	rax, QWORD PTR -192[rbp]
	mov	edx, DWORD PTR -208[rbp]
	mov	edx, edx
	add	rax, rdx
	mov	edx, DWORD PTR -208[rbp]
	add	edx, 8
	mov	DWORD PTR -208[rbp], edx
	jmp	.L14
.L13:
	mov	rax, QWORD PTR -200[rbp]
	lea	rdx, 8[rax]
	mov	QWORD PTR -200[rbp], rdx
.L14:
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -240[rbp], eax
.L3:
	cmp	DWORD PTR -240[rbp], 5
	jne	.L15
	lea	rdi, .LC7[rip]
	call	puts@PLT
	mov	edi, 0
	call	fflush@PLT
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L16
	call	__stack_chk_fail@PLT
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	emit, .-emit
	.section	.rodata
.LC9:
	.string	"payload"
.LC8:
	.string	"0123456789ABCDEF"
	.text
	.globl	wraprecv
	.type	wraprecv, @function
wraprecv:
.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, 64
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -40[rbp], ecx
	mov	DWORD PTR -60[rbp], r8d
	mov	DWORD PTR -28[rbp], 0
	lea	rax, g_buf[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	ecx, DWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -56[rbp]
	mov	rsi, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	cmp	QWORD PTR -56[rbp], rax
	jbe	.L18
	cmp	QWORD PTR -8[rbp], 0
	jle	.L18
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L18:
	mov	DWORD PTR -28[rbp], 0
	jmp	.L19
.L36:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 31
	jle	.L20
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 34
	je	.L20
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 92
	je	.L20
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	cmp	al, 127
	jne	.L21
.L20:
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 92
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	cmp	eax, 34
	jg	.L22
	cmp	eax, 8
	jl	.L23
	sub	eax, 8
	cmp	eax, 26
	ja	.L23
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L25[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L25[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L25:
	.long	.L30-.L25
	.long	.L29-.L25
	.long	.L28-.L25
	.long	.L23-.L25
	.long	.L27-.L25
	.long	.L26-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L23-.L25
	.long	.L24-.L25
	.text
.L22:
	cmp	eax, 92
	je	.L31
	jmp	.L23
.L24:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 34
	add	QWORD PTR -24[rbp], 2
	jmp	.L32
.L31:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 92
	add	QWORD PTR -24[rbp], 2
	jmp	.L32
.L30:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 98
	add	QWORD PTR -24[rbp], 2
	jmp	.L32
.L27:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 102
	add	QWORD PTR -24[rbp], 2
	jmp	.L32
.L28:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 110
	add	QWORD PTR -24[rbp], 2
	jmp	.L32
.L26:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 114
	add	QWORD PTR -24[rbp], 2
	jmp	.L32
.L29:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 116
	add	QWORD PTR -24[rbp], 2
	jmp	.L32
.L23:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	BYTE PTR [rax], 117
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 2
	cdqe
	lea	rcx, .LC8[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 15
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 3[rax]
	movsx	rax, ecx
	lea	rcx, .LC8[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jle	.L33
	add	DWORD PTR -28[rbp], 1
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	shr	al, 4
	movzx	eax, al
	mov	rdx, QWORD PTR -24[rbp]
	add	rdx, 4
	cdqe
	lea	rcx, .LC8[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	and	eax, 15
	mov	ecx, eax
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 5[rax]
	movsx	rax, ecx
	lea	rcx, .LC8[rip]
	movzx	eax, BYTE PTR [rax+rcx]
	mov	BYTE PTR [rdx], al
	jmp	.L34
.L33:
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 4
	mov	BYTE PTR [rax], 48
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 5
	mov	BYTE PTR [rax], 48
.L34:
	add	QWORD PTR -24[rbp], 6
	nop
.L32:
	jmp	.L35
.L21:
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	movzx	edx, BYTE PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], dl
	add	QWORD PTR -24[rbp], 1
.L35:
	add	DWORD PTR -28[rbp], 1
.L19:
	mov	eax, DWORD PTR -28[rbp]
	cdqe
	cmp	QWORD PTR -8[rbp], rax
	jg	.L36
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -60[rbp]
	sub	rsp, 8
	push	5
	lea	r9, g_buf[rip]
	mov	r8d, 3
	mov	ecx, eax
	mov	edx, 4
	lea	rsi, .LC9[rip]
	mov	edi, 2
	mov	eax, 0
	call	emit
	add	rsp, 16
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	wraprecv, .-wraprecv
	.section	.rodata
.LC10:
	.string	"close"
	.text
	.globl	done
	.type	done, @function
done:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 88[rax]
	test	al, al
	je	.L45
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	test	eax, eax
	je	.L40
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	edi, eax
	call	close@PLT
.L40:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	test	eax, eax
	je	.L41
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	edi, eax
	call	close@PLT
.L41:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	test	rax, rax
	je	.L42
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 64[rax], 0
.L42:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	test	rax, rax
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 56[rax], 0
.L43:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	je	.L44
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], 0
.L44:
	mov	eax, DWORD PTR -12[rbp]
	mov	r8d, 5
	mov	ecx, eax
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	edi, 2
	mov	eax, 0
	call	emit
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 120
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
.L45:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	done, .-done
	.section	.rodata
.LC11:
	.string	"shutdown"
	.text
	.globl	closeAll
	.type	closeAll, @function
closeAll:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	lea	rax, g_dbase[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -12[rbp], 0
	jmp	.L47
.L49:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 88[rax]
	test	al, al
	je	.L48
	mov	eax, DWORD PTR -12[rbp]
	mov	r8d, 5
	mov	ecx, eax
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	edi, 2
	mov	eax, 0
	call	emit
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	done
.L48:
	add	DWORD PTR -12[rbp], 1
	add	QWORD PTR -8[rbp], 120
.L47:
	cmp	DWORD PTR -12[rbp], 127
	jle	.L49
	mov	r8d, 5
	mov	ecx, -1
	mov	edx, 4
	lea	rsi, .LC11[rip]
	mov	edi, 2
	mov	eax, 0
	call	emit
	mov	eax, DWORD PTR g_proxyfd[rip]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	eax, DWORD PTR g_proxyfd[rip]
	mov	edi, eax
	call	close@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE9:
	.size	closeAll, .-closeAll
	.globl	handle_bp
	.type	handle_bp, @function
handle_bp:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rax, QWORD PTR g_forsig[rip]
	mov	esi, 0
	mov	rdi, rax
	call	done
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	handle_bp, .-handle_bp
	.globl	copybytes
	.type	copybytes, @function
copybytes:
.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	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -24[rbp]
	add	rax, 1
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rcx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rax, QWORD PTR -32[rbp]
	sub	rax, QWORD PTR -24[rbp]
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	copybytes, .-copybytes
	.globl	my_atoi
	.type	my_atoi, @function
my_atoi:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -12[rbp], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR [rax]
	add	rax, 1
	mov	QWORD PTR -8[rbp], rax
	jmp	.L54
.L56:
	mov	edx, DWORD PTR -12[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	movsx	eax, al
	sub	eax, 48
	add	DWORD PTR -12[rbp], eax
	add	QWORD PTR -8[rbp], 1
.L54:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L55
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jle	.L56
.L55:
	mov	eax, DWORD PTR -12[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	my_atoi, .-my_atoi
	.globl	buf_emit
	.type	buf_emit, @function
buf_emit:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	r8d, 5
	lea	rcx, g_buf[rip]
	mov	edx, 3
	mov	rsi, rax
	mov	edi, 2
	mov	eax, 0
	call	emit
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	buf_emit, .-buf_emit
	.section	.rodata
.LC12:
	.string	"error"
	.text
	.globl	error_con
	.type	error_con, @function
error_con:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, DWORD PTR -4[rbp]
	sub	rsp, 8
	push	5
	lea	r9, g_buf[rip]
	mov	r8d, 3
	mov	ecx, eax
	mov	edx, 4
	lea	rsi, .LC12[rip]
	mov	edi, 2
	mov	eax, 0
	call	emit
	add	rsp, 16
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	error_con, .-error_con
	.globl	error_gen
	.type	error_gen, @function
error_gen:
.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	DWORD PTR -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	cmp	DWORD PTR -4[rbp], 0
	je	.L62
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC12[rip]
	call	buf_emit
.L62:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	error_gen, .-error_gen
	.section	.rodata
.LC13:
	.string	"Couldn't resolve host %s : %s"
	.align 8
.LC14:
	.string	"Couldn't set socket options: %s"
.LC15:
	.string	"Couldn't connect: %s"
.LC16:
	.string	"Connecting to %s:%d"
.LC17:
	.string	"info"
	.text
	.globl	relaysetup
	.type	relaysetup, @function
relaysetup:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, BYTE PTR 88[rax]
	test	al, al
	je	.L64
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 108[rax]
	test	eax, eax
	je	.L65
	mov	edx, 5
	lea	rsi, .LC11[rip]
	mov	edi, 2
	mov	eax, 0
	call	emit
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	esi, 2
	mov	edi, eax
	call	shutdown@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	edi, eax
	call	close@PLT
.L65:
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 108[rax], 0
.L64:
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR g_forsig[rip], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L66
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC13[rip]
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC12[rip]
	call	buf_emit
	mov	eax, 0
	jmp	.L68
.L66:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	rdx, QWORD PTR -56[rbp]
	mov	DWORD PTR 108[rdx], eax
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	r8d, 8
	lea	rcx, g_linger_t[rip]
	mov	edx, 13
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rsi, .LC14[rip]
	mov	edi, eax
	call	error_gen
	mov	WORD PTR -32[rbp], 2
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 112[rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -30[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	lea	rcx, -32[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 108[rax]
	lea	rcx, -32[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	lea	rsi, .LC15[rip]
	mov	edi, eax
	call	error_gen
	mov	rax, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR 112[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC16[rip]
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC17[rip]
	call	buf_emit
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR 100[rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -56[rbp]
	mov	DWORD PTR 100[rax], edx
	mov	eax, 1
.L68:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L69
	call	__stack_chk_fail@PLT
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	relaysetup, .-relaysetup
	.globl	process
	.type	process, @function
process:
.LFB17:
	.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, 88
	.cfi_offset 3, -24
	mov	QWORD PTR -88[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -72[rbp], 0
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 64[rax]
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 64[rax]
	mov	rax, QWORD PTR -88[rbp]
	mov	eax, DWORD PTR 96[rax]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR g_absolute[rip]
	test	rax, rax
	je	.L71
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L84
	mov	rbx, QWORD PTR g_absolute[rip]
	mov	rax, QWORD PTR g_absolute[rip]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, [rbx+rax]
	mov	rax, QWORD PTR g_absolute[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	copybytes
	mov	rdx, QWORD PTR -88[rbp]
	mov	QWORD PTR 48[rdx], rax
	mov	edx, DWORD PTR g_absolute[rip+8]
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 112[rax], edx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	relaysetup
	jmp	.L84
.L71:
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L73
.L74:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	mov	QWORD PTR -80[rbp], rax
.L73:
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 32
	jne	.L74
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	mov	QWORD PTR -80[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -48[rbp], rax
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	je	.L84
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 4
	movzx	eax, BYTE PTR [rax]
	cmp	al, 115
	jne	.L75
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 8
	mov	QWORD PTR -80[rbp], rax
	jmp	.L76
.L75:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 7
	mov	QWORD PTR -80[rbp], rax
.L76:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L77
.L80:
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L78
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copybytes
	mov	QWORD PTR -72[rbp], rax
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	my_atoi
	mov	rdx, QWORD PTR -88[rbp]
	mov	DWORD PTR 112[rdx], eax
	jmp	.L79
.L78:
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jne	.L77
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	copybytes
	mov	QWORD PTR -72[rbp], rax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 112[rax], 80
	jmp	.L79
.L77:
	mov	rax, QWORD PTR -80[rbp]
	lea	rdx, 1[rax]
	mov	QWORD PTR -80[rbp], rdx
	test	rax, rax
	jne	.L80
.L79:
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 48[rax]
	test	rax, rax
	jne	.L81
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	relaysetup
	jmp	.L82
.L81:
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -72[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L82
	mov	rax, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR 48[rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -88[rbp]
	mov	rdx, QWORD PTR -72[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -88[rbp]
	mov	rdi, rax
	call	relaysetup
.L82:
	mov	rax, QWORD PTR -80[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -32[rbp]
	add	rax, 1
	mov	rdx, rax
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memmove@PLT
	mov	rax, QWORD PTR -56[rbp]
	sub	rax, QWORD PTR -32[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -48[rbp]
	sub	rax, QWORD PTR -64[rbp]
	add	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -88[rbp]
	mov	DWORD PTR 96[rax], edx
.L84:
	nop
	mov	rax, QWORD PTR -24[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L83
	call	__stack_chk_fail@PLT
.L83:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	process, .-process
	.globl	newconnection
	.type	newconnection, @function
newconnection:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 176
	mov	DWORD PTR -164[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -164[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -156[rbp], 0
	jmp	.L86
.L88:
	add	DWORD PTR -156[rbp], 1
.L86:
	cmp	DWORD PTR -156[rbp], 127
	jg	.L87
	mov	eax, DWORD PTR -156[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	lea	rax, g_dbase[rip+88]
	movzx	eax, BYTE PTR [rdx+rax]
	test	al, al
	jne	.L88
.L87:
	mov	eax, DWORD PTR -156[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 4
	sub	rax, rdx
	sal	rax, 3
	lea	rdx, g_dbase[rip]
	add	rax, rdx
	mov	QWORD PTR -152[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, 120
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -152[rbp]
	mov	BYTE PTR 88[rax], 1
	mov	rax, QWORD PTR -152[rbp]
	mov	edx, DWORD PTR -164[rbp]
	mov	DWORD PTR 104[rax], edx
	mov	rax, QWORD PTR -152[rbp]
	mov	DWORD PTR 100[rax], 2
	mov	edi, 16384
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	edi, 16384
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	DWORD PTR -160[rbp], 128
	lea	rdx, -160[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -164[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getpeername@PLT
	mov	rax, QWORD PTR -152[rbp]
	lea	rdx, -144[rbp]
	lea	rsi, 4[rdx]
	mov	ecx, 46
	mov	rdx, rax
	mov	edi, 2
	call	inet_ntop@PLT
	movzx	eax, WORD PTR -142[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -152[rbp]
	mov	WORD PTR 116[rdx], ax
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L90
	call	__stack_chk_fail@PLT
.L90:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	newconnection, .-newconnection
	.section	.rodata
	.align 8
.LC18:
	.string	"Failed to read from client : %s"
	.align 8
.LC19:
	.string	"Failed to write to server : %s"
	.align 8
.LC20:
	.string	"Failed to read from server : %s"
	.align 8
.LC21:
	.string	"Failed to write to client : %s"
	.text
	.globl	sendstuff
	.type	sendstuff, @function
sendstuff:
.LFB19:
	.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
	lea	rax, g_dbase[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L92
.L108:
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR 88[rax]
	test	al, al
	je	.L93
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	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	.L94
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 64[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	r8d, edx
	mov	ecx, 0
	mov	edx, 16384
	mov	edi, eax
	call	wraprecv
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 96[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 64[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 96[rax]
	test	eax, eax
	jle	.L95
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	process
	jmp	.L96
.L95:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 96[rax]
	cmp	eax, -1
	jne	.L97
	mov	eax, DWORD PTR -16[rbp]
	lea	rsi, .LC18[rip]
	mov	edi, eax
	call	error_con
	jmp	.L96
.L97:
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	done
.L96:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, -3
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
.L94:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_wg_fds[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	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	.L98
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 96[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	sub	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L99
	mov	eax, DWORD PTR -16[rbp]
	lea	rsi, .LC19[rip]
	mov	edi, eax
	call	error_con
	jmp	.L98
.L99:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 80[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 80[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 64[rax]
	sub	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 96[rax]
	cdqe
	cmp	rdx, rax
	jne	.L98
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, -5
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
.L98:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	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	.L100
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	edx, DWORD PTR -16[rbp]
	mov	r8d, edx
	mov	ecx, 0
	mov	edx, 16384
	mov	edi, eax
	call	wraprecv
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 92[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 56[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 72[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 92[rax]
	test	eax, eax
	jle	.L101
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	or	eax, 8
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
	jmp	.L102
.L101:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 92[rax]
	cmp	eax, -1
	jne	.L103
	mov	eax, DWORD PTR -16[rbp]
	lea	rsi, .LC20[rip]
	mov	edi, eax
	call	error_con
	jmp	.L102
.L103:
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	done
.L102:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, -2
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
.L100:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_wg_fds[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	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	.L104
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 92[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	sub	rcx, rax
	mov	rax, rdx
	sub	rax, rcx
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L105
	mov	eax, DWORD PTR -16[rbp]
	lea	rsi, .LC21[rip]
	mov	edi, eax
	call	error_con
	jmp	.L106
.L105:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 72[rax], rdx
.L106:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 72[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 56[rax]
	sub	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 92[rax]
	cdqe
	cmp	rdx, rax
	jne	.L104
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	or	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, -9
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 100[rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 100[rax], edx
.L104:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_eg_fds[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 104[rax]
	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
	jne	.L107
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_eg_fds[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 108[rax]
	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	.L93
.L107:
	mov	edx, DWORD PTR -16[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	done
.L93:
	add	DWORD PTR -16[rbp], 1
	add	QWORD PTR -8[rbp], 120
.L92:
	cmp	DWORD PTR -16[rbp], 127
	jle	.L108
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	sendstuff, .-sendstuff
	.section	.rodata
.LC22:
	.string	"status"
	.text
	.globl	doselect
	.type	doselect, @function
doselect:
.LFB20:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -13[rbp], 0
	mov	BYTE PTR -9[rbp], 0
	lea	rax, g_dbase[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, g_rg_fds[rip]
	mov	rdi, rdx
#APP
# 643 "the_stack_data/1148449.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -48[rbp], edx
	mov	DWORD PTR -44[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, g_eg_fds[rip]
	mov	rdi, rdx
#APP
# 644 "the_stack_data/1148449.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -40[rbp], edx
	mov	DWORD PTR -36[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, g_wg_fds[rip]
	mov	rdi, rdx
#APP
# 645 "the_stack_data/1148449.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -32[rbp], edx
	mov	DWORD PTR -28[rbp], eax
	mov	eax, DWORD PTR g_proxyfd[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR g_proxyfd[rip]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	eax, DWORD PTR g_proxyfd[rip]
	mov	DWORD PTR -56[rbp], eax
	mov	DWORD PTR -52[rbp], 0
	jmp	.L110
.L116:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR 88[rax]
	cmp	al, 1
	jne	.L111
	lea	rax, -13[rbp]
	mov	edx, 4
	mov	esi, 32
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, 2
	test	eax, eax
	je	.L112
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 104[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	BYTE PTR -13[rbp], 114
.L112:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, 1
	test	eax, eax
	je	.L113
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 108[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	BYTE PTR -12[rbp], 82
.L113:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, 8
	test	eax, eax
	je	.L114
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 104[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, g_wg_fds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, g_wg_fds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	BYTE PTR -11[rbp], 119
.L114:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 100[rax]
	and	eax, 4
	test	eax, eax
	je	.L115
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 108[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, g_wg_fds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, g_wg_fds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	BYTE PTR -10[rbp], 87
.L115:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 108[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, g_eg_fds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 108[rax]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, g_eg_fds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 104[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	edx, eax
	movsx	rax, edx
	lea	rcx, 0[0+rax*8]
	lea	rax, g_eg_fds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 104[rax]
	mov	ecx, eax
	sar	ecx, 31
	shr	ecx, 26
	add	eax, ecx
	and	eax, 63
	sub	eax, ecx
	mov	edi, 1
	mov	ecx, eax
	sal	rdi, cl
	mov	rax, rdi
	or	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, g_eg_fds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 108[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 104[rax]
	cmp	edx, eax
	cmovge	eax, edx
	cmp	DWORD PTR -56[rbp], eax
	cmovge	eax, DWORD PTR -56[rbp]
	mov	DWORD PTR -56[rbp], eax
	lea	rdx, -13[rbp]
	mov	eax, DWORD PTR -52[rbp]
	sub	rsp, 8
	push	5
	mov	r9, rdx
	mov	r8d, 3
	mov	ecx, eax
	mov	edx, 4
	lea	rsi, .LC22[rip]
	mov	edi, 2
	mov	eax, 0
	call	emit
	add	rsp, 16
.L111:
	add	DWORD PTR -52[rbp], 1
	add	QWORD PTR -24[rbp], 120
.L110:
	cmp	DWORD PTR -52[rbp], 127
	jle	.L116
	mov	eax, DWORD PTR -56[rbp]
	add	eax, 1
	mov	r8d, 0
	lea	rcx, g_eg_fds[rip]
	lea	rdx, g_wg_fds[rip]
	lea	rsi, g_rg_fds[rip]
	mov	edi, eax
	call	select@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L117
	call	__stack_chk_fail@PLT
.L117:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	doselect, .-doselect
	.section	.rodata
.LC23:
	.string	"-p"
.LC24:
	.string	"--port"
.LC25:
	.string	"-a"
.LC26:
	.string	"--absolute"
.LC27:
	.string	"-H"
.LC28:
	.string	"--help"
	.align 8
.LC29:
	.string	"\t-p --port\tWhat part to run on"
	.align 8
.LC30:
	.string	"\t-a --absolute\tAbsolute address for proxying to"
.LC31:
	.string	"setsockopt: "
.LC32:
	.string	"Failed to bind to port %d"
.LC33:
	.string	"Trying port %d"
.LC34:
	.string	"getsockname: "
.LC35:
	.string	"listen: "
.LC36:
	.string	"Listening on port %d"
.LC37:
	.string	"Forwarding requests to %s"
	.text
	.globl	main
	.type	main, @function
main:
.LFB21:
	.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, 120
	.cfi_offset 3, -24
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	edi, 8080
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -108[rbp], eax
	mov	DWORD PTR -112[rbp], 16
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -72[rbp], rax
	lea	rsi, handle_bp[rip]
	mov	edi, 13
	call	signal@PLT
	lea	rsi, closeAll[rip]
	mov	edi, 3
	call	signal@PLT
	lea	rsi, closeAll[rip]
	mov	edi, 2
	call	signal@PLT
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, g_rg_fds[rip]
	mov	rdi, rdx
#APP
# 709 "the_stack_data/1148449.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -104[rbp], edx
	mov	DWORD PTR -100[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, g_eg_fds[rip]
	mov	rdi, rdx
#APP
# 710 "the_stack_data/1148449.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -96[rbp], edx
	mov	DWORD PTR -92[rbp], eax
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, g_wg_fds[rip]
	mov	rdi, rdx
#APP
# 711 "the_stack_data/1148449.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -88[rbp], edx
	mov	DWORD PTR -84[rbp], eax
	mov	edx, 15360
	mov	esi, 0
	lea	rdi, g_dbase[rip]
	call	memset@PLT
	mov	QWORD PTR g_absolute[rip], 0
	jmp	.L119
.L130:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L120
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L121
.L120:
	sub	DWORD PTR -116[rbp], 1
	cmp	DWORD PTR -116[rbp], 0
	je	.L123
	add	QWORD PTR -128[rbp], 8
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	eax, ax
	mov	DWORD PTR -108[rbp], eax
	jmp	.L123
.L121:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L124
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L125
.L124:
	sub	DWORD PTR -116[rbp], 1
	cmp	DWORD PTR -116[rbp], 0
	je	.L123
	add	QWORD PTR -128[rbp], 8
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -80[rbp], rax
	jmp	.L127
.L128:
	mov	rax, QWORD PTR -80[rbp]
	add	rax, 1
	mov	QWORD PTR -80[rbp], rax
.L127:
	mov	rax, QWORD PTR -80[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 58
	jne	.L128
	mov	rax, QWORD PTR -80[rbp]
	mov	BYTE PTR [rax], 0
	mov	rdx, QWORD PTR -80[rbp]
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	copybytes
	mov	QWORD PTR g_absolute[rip], rax
	lea	rax, -80[rbp]
	mov	rdi, rax
	call	my_atoi
	mov	DWORD PTR g_absolute[rip+8], eax
	jmp	.L123
.L125:
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L129
	mov	rax, QWORD PTR -128[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L123
.L129:
	mov	rax, QWORD PTR -72[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rdi, .LC29[rip]
	call	puts@PLT
	lea	rdi, .LC30[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L123:
	sub	DWORD PTR -116[rbp], 1
	add	QWORD PTR -128[rbp], 8
.L119:
	cmp	DWORD PTR -116[rbp], 0
	jg	.L130
	mov	WORD PTR -64[rbp], 2
	lea	rax, -64[rbp]
	add	rax, 2
	movabs	rbx, 7308604897068150643
	mov	QWORD PTR [rax], rbx
	mov	BYTE PTR 8[rax], 0
	mov	WORD PTR -48[rbp], 2
	mov	eax, DWORD PTR -108[rbp]
	mov	WORD PTR -46[rbp], ax
	mov	DWORD PTR -44[rbp], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR g_proxyfd[rip], eax
	mov	eax, DWORD PTR g_proxyfd[rip]
	mov	r8d, 8
	lea	rcx, g_linger_t[rip]
	mov	edx, 13
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rsi, .LC31[rip]
	mov	edi, eax
	call	error_gen
	jmp	.L131
.L132:
	movzx	eax, WORD PTR -46[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	edx, eax
	lea	rsi, .LC32[rip]
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC17[rip]
	call	buf_emit
	movzx	ebx, WORD PTR -46[rbp]
	mov	edi, 1
	call	htons@PLT
	add	eax, ebx
	mov	WORD PTR -46[rbp], ax
	movzx	eax, WORD PTR -46[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	edx, eax
	lea	rsi, .LC33[rip]
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC17[rip]
	call	buf_emit
.L131:
	mov	eax, DWORD PTR g_proxyfd[rip]
	lea	rcx, -48[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	js	.L132
	mov	eax, DWORD PTR g_proxyfd[rip]
	lea	rdx, -112[rbp]
	lea	rcx, -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	getsockname@PLT
	lea	rsi, .LC34[rip]
	mov	edi, eax
	call	error_gen
	mov	eax, DWORD PTR g_proxyfd[rip]
	mov	esi, 128
	mov	edi, eax
	call	listen@PLT
	lea	rsi, .LC35[rip]
	mov	edi, eax
	call	error_gen
	movzx	eax, WORD PTR -46[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	movzx	eax, ax
	mov	edx, eax
	lea	rsi, .LC36[rip]
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC17[rip]
	call	buf_emit
	mov	rax, QWORD PTR g_absolute[rip]
	test	rax, rax
	je	.L135
	mov	rax, QWORD PTR g_absolute[rip]
	mov	rdx, rax
	lea	rsi, .LC37[rip]
	lea	rdi, g_buf[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rdi, .LC17[rip]
	call	buf_emit
.L135:
	mov	eax, 0
	call	doselect
	mov	eax, DWORD PTR g_proxyfd[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	lea	rdx, 0[0+rax*8]
	lea	rax, g_rg_fds[rip]
	mov	rsi, QWORD PTR [rdx+rax]
	mov	eax, DWORD PTR g_proxyfd[rip]
	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	.L134
	mov	eax, DWORD PTR g_proxyfd[rip]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	edi, eax
	call	newconnection
.L134:
	mov	eax, 0
	call	sendstuff
	jmp	.L135
	.cfi_endproc
.LFE21:
	.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	"1148449.c"
	.text
	.comm	g_absolute,8,4
	.comm	g_buf,49152,4
	.global	g_strhost
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Host: \000"
	.data
	.align	2
	.type	g_strhost, %object
	.size	g_strhost, 4
g_strhost:
	.word	.LC0
	.comm	g_proxyfd,4,4
	.comm	g_rg_fds,128,4
	.comm	g_wg_fds,128,4
	.comm	g_eg_fds,128,4
	.comm	g_dbase,12800,4
	.comm	g_forsig,4,4
	.global	g_linger_t
	.align	2
	.type	g_linger_t, %object
	.size	g_linger_t, 8
g_linger_t:
	.word	1
	.word	0
	.section	.rodata
	.align	2
.LC1:
	.ascii	"{\"ts\":%d.%06d\000"
	.align	2
.LC2:
	.ascii	",\"type\":\"%s\"\000"
	.align	2
.LC3:
	.ascii	",\"text\":\"%s\"\000"
	.align	2
.LC4:
	.ascii	",\"id\":%d\000"
	.align	2
.LC5:
	.ascii	",\"ip\":\"%s\"\000"
	.align	2
.LC6:
	.ascii	",\"port\":%d\000"
	.align	2
.LC7:
	.ascii	"}\000"
	.align	2
.LC8:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	emit
	.syntax unified
	.arm
	.fpu softvfp
	.type	emit, %function
emit:
	@ args = 4, pretend = 16, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #16
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-16]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L8+4
	bl	printf
	add	r3, fp, #8
	str	r3, [fp, #-32]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-28]
	b	.L2
.L6:
	ldr	r3, [fp, #-28]
	cmp	r3, #2
	bne	.L3
	ldr	r3, [fp, #-32]
	add	r2, r3, #4
	str	r2, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	ldr	r1, [fp, #-20]
	ldr	r0, .L8+8
	bl	printf
	b	.L4
.L3:
	ldr	r3, [fp, #-28]
	cmp	r3, #3
	bne	.L5
	ldr	r3, [fp, #-32]
	add	r2, r3, #4
	str	r2, [fp, #-32]
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+12
	bl	printf
	b	.L4
.L5:
	ldr	r3, [fp, #-28]
	cmp	r3, #4
	bne	.L4
	ldr	r3, [fp, #-32]
	add	r2, r3, #4
	str	r2, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, .L8+16
	bl	printf
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L8+20
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L8+24
	bl	printf
	ldr	r1, .L8+20
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #96
	ldrh	r3, [r3]
	mov	r1, r3
	ldr	r0, .L8+28
	bl	printf
.L4:
	ldr	r3, [fp, #-32]
	add	r2, r3, #4
	str	r2, [fp, #-32]
	ldr	r3, [r3]
	str	r3, [fp, #-28]
.L2:
	ldr	r3, [fp, #-28]
	cmp	r3, #5
	bne	.L6
	ldr	r0, .L8+32
	bl	puts
	mov	r0, #0
	bl	fflush
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L9:
	.align	2
.L8:
	.word	.LC8
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	g_dbase
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.size	emit, .-emit
	.section	.rodata
	.align	2
.LC10:
	.ascii	"payload\000"
	.align	2
.LC9:
	.ascii	"0123456789ABCDEF\000"
	.text
	.align	2
	.global	wraprecv
	.syntax unified
	.arm
	.fpu softvfp
	.type	wraprecv, %function
wraprecv:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r3, .L31
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-28]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	recv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-32]
	cmp	r2, r3
	bls	.L11
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	ble	.L11
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L11:
	mov	r3, #0
	str	r3, [fp, #-20]
	b	.L12
.L29:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #31
	bls	.L13
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	beq	.L13
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #92
	beq	.L13
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #127
	bne	.L14
.L13:
	ldr	r3, [fp, #-16]
	mov	r2, #92
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #34
	bgt	.L15
	cmp	r3, #8
	blt	.L16
	sub	r3, r3, #8
	cmp	r3, #26
	ldrls	pc, [pc, r3, asl #2]
	b	.L16
.L18:
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L16
	.word	.L20
	.word	.L19
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L16
	.word	.L17
.L15:
	cmp	r3, #92
	beq	.L24
	b	.L16
.L17:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #34
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L25
.L24:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #92
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L25
.L23:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #98
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L25
.L20:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #102
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L25
.L21:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #110
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L25
.L19:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #114
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L25
.L22:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #116
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	str	r3, [fp, #-16]
	b	.L25
.L16:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	mov	r2, #117
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #2
	ldr	r2, .L31+4
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-16]
	add	r3, r3, #3
	ldr	r1, .L31+4
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	bge	.L26
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	lsr	r3, r3, #4
	and	r3, r3, #255
	mov	r1, r3
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	ldr	r2, .L31+4
	ldrb	r2, [r2, r1]	@ zero_extendqisi2
	strb	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	and	r2, r3, #15
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	ldr	r1, .L31+4
	ldrb	r2, [r1, r2]	@ zero_extendqisi2
	strb	r2, [r3]
	b	.L27
.L26:
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r2, #48
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #5
	mov	r2, #48
	strb	r2, [r3]
.L27:
	ldr	r3, [fp, #-16]
	add	r3, r3, #6
	str	r3, [fp, #-16]
	nop
.L25:
	b	.L28
.L14:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	ldrb	r2, [r3]	@ zero_extendqisi2
	ldr	r3, [fp, #-16]
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L28:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
.L12:
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-8]
	cmp	r2, r3
	blt	.L29
	ldr	r3, [fp, #-16]
	mov	r2, #0
	strb	r2, [r3]
	mov	r3, #5
	str	r3, [sp, #8]
	ldr	r3, .L31
	str	r3, [sp, #4]
	mov	r3, #3
	str	r3, [sp]
	ldr	r3, [fp, #4]
	mov	r2, #4
	ldr	r1, .L31+8
	mov	r0, #2
	bl	emit
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	g_buf
	.word	.LC9
	.word	.LC10
	.size	wraprecv, .-wraprecv
	.section	.rodata
	.align	2
.LC11:
	.ascii	"close\000"
	.text
	.align	2
	.global	done
	.syntax unified
	.arm
	.fpu softvfp
	.type	done, %function
done:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #68]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L40
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #84]
	cmp	r3, #0
	beq	.L35
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #84]
	mov	r1, #2
	mov	r0, r3
	bl	shutdown
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #84]
	mov	r0, r3
	bl	close
.L35:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #88]
	cmp	r3, #0
	beq	.L36
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #88]
	mov	r1, #2
	mov	r0, r3
	bl	shutdown
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #88]
	mov	r0, r3
	bl	close
.L36:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #56]
	cmp	r3, #0
	beq	.L37
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #56]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #56]
.L37:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #52]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #52]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #52]
.L38:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	beq	.L39
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #48]
.L39:
	mov	r3, #5
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #4
	ldr	r1, .L41
	mov	r0, #2
	bl	emit
	mov	r2, #100
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
.L40:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L42:
	.align	2
.L41:
	.word	.LC11
	.size	done, .-done
	.section	.rodata
	.align	2
.LC12:
	.ascii	"shutdown\000"
	.text
	.align	2
	.global	closeAll
	.syntax unified
	.arm
	.fpu softvfp
	.type	closeAll, %function
closeAll:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	ldr	r3, .L47
	str	r3, [fp, #-8]
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L44
.L46:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3, #68]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L45
	mov	r3, #5
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	mov	r2, #4
	ldr	r1, .L47+4
	mov	r0, #2
	bl	emit
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	done
.L45:
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #100
	str	r3, [fp, #-8]
.L44:
	ldr	r3, [fp, #-12]
	cmp	r3, #127
	ble	.L46
	mov	r3, #5
	str	r3, [sp]
	mvn	r3, #0
	mov	r2, #4
	ldr	r1, .L47+4
	mov	r0, #2
	bl	emit
	ldr	r3, .L47+8
	ldr	r3, [r3]
	mov	r1, #2
	mov	r0, r3
	bl	shutdown
	ldr	r3, .L47+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r0, #0
	bl	exit
.L48:
	.align	2
.L47:
	.word	g_dbase
	.word	.LC12
	.word	g_proxyfd
	.size	closeAll, .-closeAll
	.align	2
	.global	handle_bp
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle_bp, %function
handle_bp:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, .L50
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	done
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L51:
	.align	2
.L50:
	.word	g_forsig
	.size	handle_bp, .-handle_bp
	.align	2
	.global	copybytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	copybytes, %function
copybytes:
	@ 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]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-8]
	add	r3, r3, r2
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	copybytes, .-copybytes
	.align	2
	.global	my_atoi
	.syntax unified
	.arm
	.fpu softvfp
	.type	my_atoi, %function
my_atoi:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-8]
	b	.L55
.L57:
	ldr	r2, [fp, #-12]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r3, r3, #48
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L55:
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L56
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bls	.L57
.L56:
	ldr	r3, [fp, #-12]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	my_atoi, .-my_atoi
	.align	2
	.global	buf_emit
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_emit, %function
buf_emit:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-8]
	mov	r3, #5
	str	r3, [sp]
	ldr	r3, .L60
	mov	r2, #3
	ldr	r1, [fp, #-8]
	mov	r0, #2
	bl	emit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L61:
	.align	2
.L60:
	.word	g_buf
	.size	buf_emit, .-buf_emit
	.section	.rodata
	.align	2
.LC13:
	.ascii	"error\000"
	.text
	.align	2
	.global	error_con
	.syntax unified
	.arm
	.fpu softvfp
	.type	error_con, %function
error_con:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L63
	bl	sprintf
	mov	r3, #5
	str	r3, [sp, #8]
	ldr	r3, .L63
	str	r3, [sp, #4]
	mov	r3, #3
	str	r3, [sp]
	ldr	r3, [fp, #-8]
	mov	r2, #4
	ldr	r1, .L63+4
	mov	r0, #2
	bl	emit
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L64:
	.align	2
.L63:
	.word	g_buf
	.word	.LC13
	.size	error_con, .-error_con
	.align	2
	.global	error_gen
	.syntax unified
	.arm
	.fpu softvfp
	.type	error_gen, %function
error_gen:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L67
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L68
	bl	sprintf
	ldr	r0, .L68+4
	bl	buf_emit
.L67:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L69:
	.align	2
.L68:
	.word	g_buf
	.word	.LC13
	.size	error_gen, .-error_gen
	.section	.rodata
	.align	2
.LC14:
	.ascii	"Couldn't resolve host %s : %s\000"
	.align	2
.LC15:
	.ascii	"Couldn't set socket options: %s\000"
	.align	2
.LC16:
	.ascii	"Couldn't connect: %s\000"
	.align	2
.LC17:
	.ascii	"Connecting to %s:%d\000"
	.align	2
.LC18:
	.ascii	"info\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	relaysetup
	.syntax unified
	.arm
	.fpu softvfp
	.type	relaysetup, %function
relaysetup:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	ldr	r3, .L77
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-40]
	ldrb	r3, [r3, #68]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L71
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #88]
	cmp	r3, #0
	beq	.L72
	mov	r2, #5
	ldr	r1, .L77+4
	mov	r0, #2
	bl	emit
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #88]
	mov	r1, #2
	mov	r0, r3
	bl	shutdown
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #88]
	mov	r0, r3
	bl	close
.L72:
	ldr	r3, [fp, #-40]
	mov	r2, #0
	str	r2, [r3, #88]
.L71:
	ldr	r2, .L77+8
	ldr	r3, [fp, #-40]
	str	r3, [r2]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-36]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L73
	ldr	r3, [fp, #-40]
	ldr	r4, [r3, #48]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r4
	ldr	r1, .L77+12
	ldr	r0, .L77+16
	bl	sprintf
	ldr	r0, .L77+20
	bl	buf_emit
	mov	r3, #0
	b	.L75
.L73:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r2, r0
	ldr	r3, [fp, #-40]
	str	r2, [r3, #88]
	ldr	r3, [fp, #-40]
	ldr	r0, [r3, #88]
	mov	r3, #8
	str	r3, [sp]
	ldr	r3, .L77+24
	mov	r2, #13
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	ldr	r1, .L77+28
	mov	r0, r3
	bl	error_gen
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #92]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-30]	@ movhi
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-36]
	ldr	r3, [r3, #12]
	mov	r2, r3
	sub	r3, fp, #32
	add	r3, r3, #4
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #88]
	sub	r1, fp, #32
	mov	r2, #16
	mov	r0, r3
	bl	connect
	mov	r3, r0
	ldr	r1, .L77+32
	mov	r0, r3
	bl	error_gen
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #48]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #92]
	ldr	r1, .L77+36
	ldr	r0, .L77+16
	bl	sprintf
	ldr	r0, .L77+40
	bl	buf_emit
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #88]
	mov	r2, #2048
	mov	r1, #4
	mov	r0, r3
	bl	fcntl
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-40]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #80]
	orr	r2, r3, #4
	ldr	r3, [fp, #-40]
	str	r2, [r3, #80]
	mov	r3, #1
.L75:
	ldr	r2, .L77
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L76
	bl	__stack_chk_fail
.L76:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L78:
	.align	2
.L77:
	.word	.LC19
	.word	.LC12
	.word	g_forsig
	.word	.LC14
	.word	g_buf
	.word	.LC13
	.word	g_linger_t
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	relaysetup, .-relaysetup
	.section	.rodata
	.align	2
.LC20:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	process
	.syntax unified
	.arm
	.fpu softvfp
	.type	process, %function
process:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #40
	str	r0, [fp, #-48]
	ldr	r3, .L94
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-40]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #56]
	str	r3, [fp, #-36]
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #56]
	ldr	r2, [fp, #-48]
	ldr	r2, [r2, #76]
	add	r3, r3, r2
	str	r3, [fp, #-32]
	ldr	r3, .L94+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L93
	ldr	r3, .L94+4
	ldr	r5, [r3]
	ldr	r3, .L94+4
	ldr	r4, [r3]
	ldr	r3, .L94+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r3, r4, r3
	mov	r1, r3
	mov	r0, r5
	bl	copybytes
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r2, [r3, #48]
	ldr	r3, .L94+4
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-48]
	str	r2, [r3, #92]
	ldr	r0, [fp, #-48]
	bl	relaysetup
	b	.L93
.L80:
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-44]
	b	.L82
.L83:
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
.L82:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L83
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	beq	.L93
	ldr	r3, [fp, #-44]
	add	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #115
	bne	.L84
	ldr	r3, [fp, #-44]
	add	r3, r3, #8
	str	r3, [fp, #-44]
	b	.L85
.L84:
	ldr	r3, [fp, #-44]
	add	r3, r3, #7
	str	r3, [fp, #-44]
.L85:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-24]
	b	.L86
.L89:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L87
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	copybytes
	str	r0, [fp, #-40]
	sub	r3, fp, #44
	mov	r0, r3
	bl	my_atoi
	mov	r2, r0
	ldr	r3, [fp, #-48]
	str	r2, [r3, #92]
	b	.L88
.L87:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bne	.L86
	ldr	r3, [fp, #-44]
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	copybytes
	str	r0, [fp, #-40]
	ldr	r3, [fp, #-48]
	mov	r2, #80
	str	r2, [r3, #92]
	b	.L88
.L86:
	ldr	r3, [fp, #-44]
	add	r2, r3, #1
	str	r2, [fp, #-44]
	cmp	r3, #0
	bne	.L89
.L88:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	cmp	r3, #0
	bne	.L90
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-40]
	str	r2, [r3, #48]
	ldr	r0, [fp, #-48]
	bl	relaysetup
	b	.L91
.L90:
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L91
	ldr	r3, [fp, #-48]
	ldr	r3, [r3, #48]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-48]
	ldr	r2, [fp, #-40]
	str	r2, [r3, #48]
	ldr	r0, [fp, #-48]
	bl	relaysetup
.L91:
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	add	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-28]
	bl	memmove
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	sub	r2, r2, r3
	ldr	r1, [fp, #-28]
	ldr	r3, [fp, #-36]
	sub	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-48]
	str	r2, [r3, #76]
.L93:
	nop
	ldr	r3, .L94
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L92
	bl	__stack_chk_fail
.L92:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L95:
	.align	2
.L94:
	.word	.LC20
	.word	g_absolute
	.size	process, .-process
	.section	.rodata
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	newconnection
	.syntax unified
	.arm
	.fpu softvfp
	.type	newconnection, %function
newconnection:
	@ args = 0, pretend = 0, frame = 152
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #152
	str	r0, [fp, #-152]
	ldr	r3, .L102
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-152]
	bl	fcntl
	mov	r3, #0
	str	r3, [fp, #-144]
	b	.L97
.L99:
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-144]
.L97:
	ldr	r3, [fp, #-144]
	cmp	r3, #127
	bgt	.L98
	ldr	r1, .L102+4
	ldr	r2, [fp, #-144]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r1, r3
	add	r3, r3, #68
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L99
.L98:
	ldr	r2, [fp, #-144]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r2, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #2
	ldr	r2, .L102+4
	add	r3, r3, r2
	str	r3, [fp, #-140]
	mov	r2, #100
	mov	r1, #0
	ldr	r0, [fp, #-140]
	bl	memset
	ldr	r3, [fp, #-140]
	mov	r2, #1
	strb	r2, [r3, #68]
	ldr	r3, [fp, #-140]
	ldr	r2, [fp, #-152]
	str	r2, [r3, #84]
	ldr	r3, [fp, #-140]
	mov	r2, #2
	str	r2, [r3, #80]
	mov	r0, #16384
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	str	r2, [r3, #56]
	mov	r0, #16384
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	str	r2, [r3, #52]
	mov	r3, #128
	str	r3, [fp, #-148]
	sub	r2, fp, #148
	sub	r3, fp, #136
	mov	r1, r3
	ldr	r0, [fp, #-152]
	bl	getpeername
	ldr	r2, [fp, #-140]
	sub	r3, fp, #136
	add	r1, r3, #4
	mov	r3, #46
	mov	r0, #2
	bl	inet_ntop
	ldrh	r3, [fp, #-134]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-140]
	strh	r2, [r3, #96]	@ movhi
	nop
	ldr	r3, .L102
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L101
	bl	__stack_chk_fail
.L101:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L103:
	.align	2
.L102:
	.word	.LC21
	.word	g_dbase
	.size	newconnection, .-newconnection
	.section	.rodata
	.align	2
.LC22:
	.ascii	"Failed to read from client : %s\000"
	.align	2
.LC23:
	.ascii	"Failed to write to server : %s\000"
	.align	2
.LC24:
	.ascii	"Failed to read from server : %s\000"
	.align	2
.LC25:
	.ascii	"Failed to write to client : %s\000"
	.text
	.align	2
	.global	sendstuff
	.syntax unified
	.arm
	.fpu softvfp
	.type	sendstuff, %function
sendstuff:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L122
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L105
.L121:
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3, #68]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L106
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L122+4
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	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	.L107
	ldr	r3, [fp, #-12]
	ldr	r0, [r3, #84]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #56]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #16384
	bl	wraprecv
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #76]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #56]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #64]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #76]
	cmp	r3, #0
	ble	.L108
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	orr	r2, r3, #4
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
	ldr	r0, [fp, #-12]
	bl	process
	b	.L109
.L108:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #76]
	cmn	r3, #1
	bne	.L110
	ldr	r1, .L122+8
	ldr	r0, [fp, #-16]
	bl	error_con
	b	.L109
.L110:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	done
.L109:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	bic	r2, r3, #2
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
.L107:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L122+12
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	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	.L111
	ldr	r3, [fp, #-12]
	ldr	r0, [r3, #88]
	ldr	r3, [fp, #-12]
	ldr	ip, [r3, #64]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #76]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #64]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #56]
	sub	r3, r1, r3
	sub	r3, r2, r3
	mov	r2, r3
	mov	r1, ip
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L112
	ldr	r1, .L122+16
	ldr	r0, [fp, #-16]
	bl	error_con
	b	.L111
.L112:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #64]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #64]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #64]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #56]
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #76]
	cmp	r2, r3
	bne	.L111
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	orr	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	bic	r2, r3, #4
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
.L111:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L122+4
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	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	.L113
	ldr	r3, [fp, #-12]
	ldr	r0, [r3, #88]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #52]
	ldr	r3, [fp, #-16]
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #16384
	bl	wraprecv
	mov	r2, r0
	ldr	r3, [fp, #-12]
	str	r2, [r3, #72]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #52]
	ldr	r3, [fp, #-12]
	str	r2, [r3, #60]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #72]
	cmp	r3, #0
	ble	.L114
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	orr	r2, r3, #8
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
	b	.L115
.L114:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #72]
	cmn	r3, #1
	bne	.L116
	ldr	r1, .L122+20
	ldr	r0, [fp, #-16]
	bl	error_con
	b	.L115
.L116:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	done
.L115:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	bic	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
.L113:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L122+12
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	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	.L117
	ldr	r3, [fp, #-12]
	ldr	r0, [r3, #84]
	ldr	r3, [fp, #-12]
	ldr	ip, [r3, #60]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #72]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #60]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	sub	r3, r1, r3
	sub	r3, r2, r3
	mov	r2, r3
	mov	r1, ip
	bl	write
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L118
	ldr	r1, .L122+24
	ldr	r0, [fp, #-16]
	bl	error_con
	b	.L119
.L118:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #60]
	ldr	r3, [fp, #-8]
	add	r2, r2, r3
	ldr	r3, [fp, #-12]
	str	r2, [r3, #60]
.L119:
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #60]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #52]
	sub	r2, r2, r3
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #72]
	cmp	r2, r3
	bne	.L117
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	orr	r2, r3, #2
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	bic	r2, r3, #8
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #80]
	orr	r2, r3, #1
	ldr	r3, [fp, #-12]
	str	r2, [r3, #80]
.L117:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L122+28
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #84]
	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
	bne	.L120
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L122+28
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #88]
	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	.L106
.L120:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-12]
	bl	done
.L106:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r3, #100
	str	r3, [fp, #-12]
.L105:
	ldr	r3, [fp, #-16]
	cmp	r3, #127
	ble	.L121
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L123:
	.align	2
.L122:
	.word	g_dbase
	.word	g_rg_fds
	.word	.LC22
	.word	g_wg_fds
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.word	g_eg_fds
	.size	sendstuff, .-sendstuff
	.section	.rodata
	.align	2
.LC26:
	.ascii	"status\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	doselect
	.syntax unified
	.arm
	.fpu softvfp
	.type	doselect, %function
doselect:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #64
	ldr	r3, .L139
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	strb	r3, [fp, #-12]
	ldr	r3, .L139+4
	str	r3, [fp, #-44]
	ldr	r3, .L139+8
	str	r3, [fp, #-28]
	mov	r3, #0
	str	r3, [fp, #-40]
	b	.L125
.L126:
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-40]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-40]
	add	r3, r3, #1
	str	r3, [fp, #-40]
.L125:
	ldr	r3, [fp, #-40]
	cmp	r3, #31
	bls	.L126
	ldr	r3, .L139+12
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-36]
	b	.L127
.L128:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-36]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-36]
	add	r3, r3, #1
	str	r3, [fp, #-36]
.L127:
	ldr	r3, [fp, #-36]
	cmp	r3, #31
	bls	.L128
	ldr	r3, .L139+16
	str	r3, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-32]
	b	.L129
.L130:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-32]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-32]
	add	r3, r3, #1
	str	r3, [fp, #-32]
.L129:
	ldr	r3, [fp, #-32]
	cmp	r3, #31
	bls	.L130
	ldr	r3, .L139+20
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L139+8
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, .L139+20
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L139+8
	str	r3, [r1, r2, lsl #2]
	ldr	r3, .L139+20
	ldr	r3, [r3]
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L131
.L137:
	ldr	r3, [fp, #-44]
	ldrb	r3, [r3, #68]	@ zero_extendqisi2
	cmp	r3, #1
	bne	.L132
	sub	r3, fp, #16
	mov	r2, #4
	mov	r1, #32
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #80]
	and	r3, r3, #2
	cmp	r3, #0
	beq	.L133
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #84]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L139+8
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #84]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L139+8
	str	r3, [r1, r2, lsl #2]
	mov	r3, #114
	strb	r3, [fp, #-16]
.L133:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #80]
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L134
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #88]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L139+8
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #88]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L139+8
	str	r3, [r1, r2, lsl #2]
	mov	r3, #82
	strb	r3, [fp, #-15]
.L134:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #80]
	and	r3, r3, #8
	cmp	r3, #0
	beq	.L135
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #84]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L139+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #84]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L139+16
	str	r3, [r1, r2, lsl #2]
	mov	r3, #119
	strb	r3, [fp, #-14]
.L135:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #80]
	and	r3, r3, #4
	cmp	r3, #0
	beq	.L136
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #88]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L139+16
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #88]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L139+16
	str	r3, [r1, r2, lsl #2]
	mov	r3, #87
	strb	r3, [fp, #-13]
.L136:
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #88]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L139+12
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #88]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L139+12
	str	r3, [r1, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #84]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L139+12
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #84]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r3, r1, r3
	ldr	r1, .L139+12
	str	r3, [r1, r2, lsl #2]
	ldr	r3, [fp, #-44]
	ldr	r2, [r3, #88]
	ldr	r3, [fp, #-44]
	ldr	r3, [r3, #84]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	movge	r3, r2
	movlt	r3, r3
	str	r3, [fp, #-52]
	mov	r3, #5
	str	r3, [sp, #8]
	sub	r3, fp, #16
	str	r3, [sp, #4]
	mov	r3, #3
	str	r3, [sp]
	ldr	r3, [fp, #-48]
	mov	r2, #4
	ldr	r1, .L139+24
	mov	r0, #2
	bl	emit
.L132:
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-44]
	add	r3, r3, #100
	str	r3, [fp, #-44]
.L131:
	ldr	r3, [fp, #-48]
	cmp	r3, #127
	ble	.L137
	ldr	r3, [fp, #-52]
	add	r0, r3, #1
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L139+12
	ldr	r2, .L139+16
	ldr	r1, .L139+8
	bl	select
	nop
	ldr	r3, .L139
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L138
	bl	__stack_chk_fail
.L138:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L140:
	.align	2
.L139:
	.word	.LC27
	.word	g_dbase
	.word	g_rg_fds
	.word	g_eg_fds
	.word	g_wg_fds
	.word	g_proxyfd
	.word	.LC26
	.size	doselect, .-doselect
	.section	.rodata
	.align	2
.LC28:
	.ascii	"-p\000"
	.align	2
.LC29:
	.ascii	"--port\000"
	.align	2
.LC30:
	.ascii	"-a\000"
	.align	2
.LC31:
	.ascii	"--absolute\000"
	.align	2
.LC32:
	.ascii	"-H\000"
	.align	2
.LC33:
	.ascii	"--help\000"
	.align	2
.LC34:
	.ascii	"\011-p --port\011What part to run on\000"
	.align	2
.LC35:
	.ascii	"\011-a --absolute\011Absolute address for proxying "
	.ascii	"to\000"
	.align	2
.LC36:
	.ascii	"somename\000"
	.align	2
.LC37:
	.ascii	"setsockopt: \000"
	.align	2
.LC38:
	.ascii	"Failed to bind to port %d\000"
	.align	2
.LC39:
	.ascii	"Trying port %d\000"
	.align	2
.LC40:
	.ascii	"getsockname: \000"
	.align	2
.LC41:
	.ascii	"listen: \000"
	.align	2
.LC42:
	.ascii	"Listening on port %d\000"
	.align	2
.LC43:
	.ascii	"Forwarding requests to %s\000"
	.align	2
.LC44:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #100
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L166
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r0, .L166+4
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-80]
	mov	r3, #16
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	str	r3, [fp, #-64]
	ldr	r1, .L166+8
	mov	r0, #13
	bl	signal
	ldr	r1, .L166+12
	mov	r0, #3
	bl	signal
	ldr	r1, .L166+12
	mov	r0, #2
	bl	signal
	ldr	r3, .L166+16
	str	r3, [fp, #-60]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L142
.L143:
	ldr	r3, [fp, #-60]
	ldr	r2, [fp, #-76]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L142:
	ldr	r3, [fp, #-76]
	cmp	r3, #31
	bls	.L143
	ldr	r3, .L166+20
	str	r3, [fp, #-56]
	mov	r3, #0
	str	r3, [fp, #-72]
	b	.L144
.L145:
	ldr	r3, [fp, #-56]
	ldr	r2, [fp, #-72]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-72]
	add	r3, r3, #1
	str	r3, [fp, #-72]
.L144:
	ldr	r3, [fp, #-72]
	cmp	r3, #31
	bls	.L145
	ldr	r3, .L166+24
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-68]
	b	.L146
.L147:
	ldr	r3, [fp, #-52]
	ldr	r2, [fp, #-68]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-68]
	add	r3, r3, #1
	str	r3, [fp, #-68]
.L146:
	ldr	r3, [fp, #-68]
	cmp	r3, #31
	bls	.L147
	mov	r2, #12800
	mov	r1, #0
	ldr	r0, .L166+28
	bl	memset
	ldr	r3, .L166+32
	mov	r2, #0
	str	r2, [r3]
	b	.L148
.L159:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L166+36
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L149
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L166+40
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L150
.L149:
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L152
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	str	r3, [fp, #-80]
	b	.L152
.L150:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L166+44
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L153
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L166+48
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L154
.L153:
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	beq	.L152
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	str	r3, [fp, #-84]
	b	.L156
.L157:
	ldr	r3, [fp, #-84]
	add	r3, r3, #1
	str	r3, [fp, #-84]
.L156:
	ldr	r3, [fp, #-84]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #58
	bne	.L157
	ldr	r3, [fp, #-84]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r2, [fp, #-84]
	mov	r1, r2
	mov	r0, r3
	bl	copybytes
	mov	r3, r0
	ldr	r2, .L166+32
	str	r3, [r2]
	sub	r3, fp, #84
	mov	r0, r3
	bl	my_atoi
	mov	r3, r0
	ldr	r2, .L166+32
	str	r3, [r2, #4]
	b	.L152
.L154:
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L166+52
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L158
	ldr	r3, [fp, #-100]
	ldr	r3, [r3]
	ldr	r1, .L166+56
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L152
.L158:
	ldr	r0, [fp, #-64]
	bl	puts
	ldr	r0, .L166+60
	bl	puts
	ldr	r0, .L166+64
	bl	puts
	mov	r0, #0
	bl	exit
.L152:
	ldr	r3, [fp, #-96]
	sub	r3, r3, #1
	str	r3, [fp, #-96]
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	str	r3, [fp, #-100]
.L148:
	ldr	r3, [fp, #-96]
	cmp	r3, #0
	bgt	.L159
	mov	r3, #2
	strh	r3, [fp, #-48]	@ movhi
	sub	r3, fp, #48
	add	r3, r3, #2
	ldr	r2, .L166+68
	mov	r0, r3
	mov	r1, r2
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	mov	r3, #2
	strh	r3, [fp, #-32]	@ movhi
	ldr	r3, [fp, #-80]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-30]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-28]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L166+72
	str	r3, [r2]
	ldr	r3, .L166+72
	ldr	r0, [r3]
	mov	r3, #8
	str	r3, [sp]
	ldr	r3, .L166+76
	mov	r2, #13
	mov	r1, #1
	bl	setsockopt
	mov	r3, r0
	ldr	r1, .L166+80
	mov	r0, r3
	bl	error_gen
	b	.L160
.L161:
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L166+84
	ldr	r0, .L166+88
	bl	sprintf
	ldr	r0, .L166+92
	bl	buf_emit
	ldrh	r4, [fp, #-30]
	mov	r0, #1
	bl	htons
	mov	r3, r0
	add	r3, r4, r3
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	strh	r3, [fp, #-30]	@ movhi
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L166+96
	ldr	r0, .L166+88
	bl	sprintf
	ldr	r0, .L166+92
	bl	buf_emit
.L160:
	ldr	r3, .L166+72
	ldr	r3, [r3]
	sub	r1, fp, #32
	mov	r2, #16
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	blt	.L161
	ldr	r3, .L166+72
	ldr	r3, [r3]
	sub	r2, fp, #88
	sub	r1, fp, #48
	mov	r0, r3
	bl	getsockname
	mov	r3, r0
	ldr	r1, .L166+100
	mov	r0, r3
	bl	error_gen
	ldr	r3, .L166+72
	ldr	r3, [r3]
	mov	r1, #128
	mov	r0, r3
	bl	listen
	mov	r3, r0
	ldr	r1, .L166+104
	mov	r0, r3
	bl	error_gen
	ldrh	r3, [fp, #-30]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L166+108
	ldr	r0, .L166+88
	bl	sprintf
	ldr	r0, .L166+92
	bl	buf_emit
	ldr	r3, .L166+32
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L164
	ldr	r3, .L166+32
	ldr	r3, [r3]
	mov	r2, r3
	ldr	r1, .L166+112
	ldr	r0, .L166+88
	bl	sprintf
	ldr	r0, .L166+92
	bl	buf_emit
.L164:
	bl	doselect
	ldr	r3, .L166+72
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L166+16
	ldr	r2, [r3, r2, lsl #2]
	ldr	r3, .L166+72
	ldr	r3, [r3]
	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	.L163
	ldr	r3, .L166+72
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	accept
	mov	r3, r0
	mov	r0, r3
	bl	newconnection
.L163:
	bl	sendstuff
	b	.L164
.L167:
	.align	2
.L166:
	.word	.LC44
	.word	8080
	.word	handle_bp
	.word	closeAll
	.word	g_rg_fds
	.word	g_eg_fds
	.word	g_wg_fds
	.word	g_dbase
	.word	g_absolute
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC31
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.word	.LC35
	.word	.LC36
	.word	g_proxyfd
	.word	g_linger_t
	.word	.LC37
	.word	.LC38
	.word	g_buf
	.word	.LC18
	.word	.LC39
	.word	.LC40
	.word	.LC41
	.word	.LC42
	.word	.LC43
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
