	.file	"941247.c"
	.intel_syntax noprefix
	.text
	.local	verbose
	.comm	verbose,4,4
	.local	evinfo
	.comm	evinfo,8,8
	.local	evinfo_max
	.comm	evinfo_max,4,4
	.local	event_rfds
	.comm	event_rfds,128,32
	.local	event_wfds
	.comm	event_wfds,128,32
	.local	event_fdmax
	.comm	event_fdmax,4,4
	.data
	.align 4
	.type	current_entry, @object
	.size	current_entry, 4
current_entry:
	.long	-1
	.align 4
	.type	current_fd, @object
	.size	current_fd, 4
current_fd:
	.long	-1
	.text
	.type	read_ready, @function
read_ready:
.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
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	je	.L2
	mov	eax, DWORD PTR -4[rbp]
	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, event_rfds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	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, event_rfds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	jmp	.L4
.L2:
	mov	eax, DWORD PTR -4[rbp]
	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, event_rfds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	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
	not	rax
	and	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, event_rfds[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L4:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	read_ready, .-read_ready
	.type	write_ready, @function
write_ready:
.LFB7:
	.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
	mov	DWORD PTR -8[rbp], esi
	cmp	DWORD PTR -8[rbp], 0
	je	.L6
	mov	eax, DWORD PTR -4[rbp]
	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, event_wfds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	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, event_wfds[rip]
	mov	QWORD PTR [rdx+rax], rcx
	jmp	.L8
.L6:
	mov	eax, DWORD PTR -4[rbp]
	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, event_wfds[rip]
	mov	rsi, QWORD PTR [rcx+rax]
	mov	eax, DWORD PTR -4[rbp]
	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
	not	rax
	and	rsi, rax
	mov	rcx, rsi
	movsx	rax, edx
	lea	rdx, 0[0+rax*8]
	lea	rax, event_wfds[rip]
	mov	QWORD PTR [rdx+rax], rcx
.L8:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	write_ready, .-write_ready
	.type	update_fdmax, @function
update_fdmax:
.LFB8:
	.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
	mov	eax, DWORD PTR event_fdmax[rip]
	cmp	DWORD PTR -4[rbp], eax
	jle	.L11
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR event_fdmax[rip], eax
.L11:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	update_fdmax, .-update_fdmax
	.section	.rodata
	.align 8
.LC0:
	.string	"ERROR:event slot #%d is not empty!\n"
.LC1:
	.string	"[%d] init event!\n"
	.text
	.type	net_add, @function
net_add:
.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, 80
	mov	DWORD PTR -52[rbp], edi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -72[rbp], rdx
	mov	rax, QWORD PTR -72[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	setne	al
	and	eax, 1
	mov	edx, eax
	movzx	eax, BYTE PTR -20[rbp]
	and	eax, -2
	or	eax, edx
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR -72[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	setne	al
	and	eax, 1
	lea	edx, [rax+rax]
	movzx	eax, BYTE PTR -20[rbp]
	and	eax, -3
	or	eax, edx
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	movzx	eax, BYTE PTR -20[rbp]
	and	eax, 1
	movzx	edx, al
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	read_ready
	movzx	eax, BYTE PTR -20[rbp]
	shr	al
	and	eax, 1
	movzx	edx, al
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	write_ready
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L13
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -52[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L16
.L13:
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rcx, rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rcx], rax
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	update_fdmax
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -52[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L15
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	rsi, rdx
	mov	edi, eax
	call	rcx
.L15:
	mov	eax, 0
.L16:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	net_add, .-net_add
	.section	.rodata
.LC2:
	.string	"[%d] close event!\n"
	.text
	.globl	net_close
	.type	net_close, @function
net_close:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -20[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	je	.L18
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	rcx
.L18:
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 0
	mov	edi, eax
	call	read_ready
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 0
	mov	edi, eax
	call	write_ready
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 40[rax]
	test	rax, rax
	je	.L19
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
.L19:
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	net_close, .-net_close
	.section	.rodata
	.align 8
.LC3:
	.string	"DEBUG:%s():[%d] socket created\n"
	.text
	.type	net_bind, @function
net_bind:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], -1
	jne	.L21
	mov	eax, -1
	jmp	.L31
.L21:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -20[rbp]
	mov	ecx, edx
	lea	rdx, __func__.8[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -24[rbp], 1
	lea	rdx, -24[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	test	eax, eax
	jne	.L33
	mov	rcx, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jne	.L34
	mov	eax, DWORD PTR -20[rbp]
	mov	esi, 6
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jne	.L35
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 2048
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	test	eax, eax
	jne	.L36
	mov	rax, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L28
	mov	rax, QWORD PTR -56[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L29
.L28:
	mov	eax, 0
.L29:
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -56[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	net_add
	test	eax, eax
	jne	.L37
	mov	eax, 0
	jmp	.L31
.L33:
	nop
	jmp	.L24
.L34:
	nop
	jmp	.L24
.L35:
	nop
	jmp	.L24
.L36:
	nop
	jmp	.L24
.L37:
	nop
.L24:
	lea	rdi, __func__.8[rip]
	call	perror@PLT
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, -1
.L31:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	net_bind, .-net_bind
	.type	copyfdset, @function
copyfdset:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	eax, DWORD PTR -36[rbp]
	add	eax, 64
	lea	edx, 7[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 3
	mov	DWORD PTR -4[rbp], eax
	mov	edx, DWORD PTR -4[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	copyfdset, .-copyfdset
	.section	.rodata
.LC4:
	.string	"DEBUG:%s():fdmax=%d\n"
.LC5:
	.string	"select()"
.LC6:
	.string	"[%d] read event!\n"
.LC7:
	.string	"ERROR:[%d] no read callback\n"
.LC8:
	.string	"[%d] write event!\n"
.LC9:
	.string	"ERROR:[%d] no write callback\n"
	.text
	.type	loop, @function
loop:
.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, 320
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
.L49:
	mov	edx, DWORD PTR event_fdmax[rip]
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, edx
	lea	rdx, __func__.7[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR event_fdmax[rip]
	lea	rax, -272[rbp]
	lea	rsi, event_rfds[rip]
	mov	rdi, rax
	call	copyfdset
	mov	edx, DWORD PTR event_fdmax[rip]
	lea	rax, -144[rbp]
	lea	rsi, event_wfds[rip]
	mov	rdi, rax
	call	copyfdset
	mov	QWORD PTR -288[rbp], 10
	mov	QWORD PTR -280[rbp], 0
	mov	eax, DWORD PTR event_fdmax[rip]
	lea	edi, 1[rax]
	lea	rcx, -288[rbp]
	lea	rdx, -144[rbp]
	lea	rax, -272[rbp]
	mov	r8, rcx
	mov	ecx, 0
	mov	rsi, rax
	call	select@PLT
	mov	DWORD PTR -312[rbp], eax
	cmp	DWORD PTR -312[rbp], 0
	jns	.L40
	lea	rdi, .LC5[rip]
	call	perror@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L50
	jmp	.L51
.L40:
	mov	DWORD PTR -316[rbp], 0
	jmp	.L42
.L48:
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L52
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -308[rbp], eax
	mov	eax, DWORD PTR -316[rbp]
	mov	DWORD PTR current_entry[rip], eax
	mov	eax, DWORD PTR -308[rbp]
	mov	DWORD PTR current_fd[rip], eax
	mov	eax, DWORD PTR -308[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -272[rbp+rax*8]
	mov	eax, DWORD PTR -308[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L45
	mov	eax, DWORD PTR -308[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -304[rbp], rax
	cmp	QWORD PTR -304[rbp], 0
	je	.L46
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -308[rbp]
	mov	rcx, QWORD PTR -304[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	rcx
	jmp	.L45
.L46:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -308[rbp]
	lea	rsi, .LC7[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	net_close
.L45:
	mov	eax, DWORD PTR -308[rbp]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR -308[rbp]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L44
	mov	eax, DWORD PTR -308[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -296[rbp], rax
	cmp	QWORD PTR -296[rbp], 0
	je	.L47
	mov	rcx, QWORD PTR evinfo[rip]
	mov	eax, DWORD PTR -316[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	sal	rax, 3
	add	rax, rcx
	mov	rdx, QWORD PTR 16[rax]
	mov	eax, DWORD PTR -308[rbp]
	mov	rcx, QWORD PTR -296[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	rcx
	jmp	.L44
.L47:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -308[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -308[rbp]
	mov	edi, eax
	call	net_close
	jmp	.L44
.L52:
	nop
.L44:
	add	DWORD PTR -316[rbp], 1
.L42:
	mov	eax, DWORD PTR event_fdmax[rip]
	cmp	DWORD PTR -316[rbp], eax
	jle	.L48
	mov	DWORD PTR current_entry[rip], -1
	mov	DWORD PTR current_fd[rip], -1
	jmp	.L49
.L51:
	call	__stack_chk_fail@PLT
.L50:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	loop, .-loop
	.type	buf_free, @function
buf_free:
.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	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	buf_free, .-buf_free
	.type	buf_new, @function
buf_new:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	add	rax, 12
	mov	rsi, rax
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR 8[rax], edx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	buf_new, .-buf_new
	.section	.rodata
.LC10:
	.string	"the_stack_data/941247.c"
.LC11:
	.string	"buf->end >= buf->start"
	.text
	.type	buf_data, @function
buf_data:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jnb	.L57
	lea	rcx, __PRETTY_FUNCTION__.6[rip]
	mov	edx, 292
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L57:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	cmp	QWORD PTR -32[rbp], 0
	je	.L58
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L58:
	cmp	DWORD PTR -4[rbp], 0
	je	.L59
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	add	rax, rdx
	jmp	.L61
.L59:
	mov	eax, 0
.L61:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	buf_data, .-buf_data
	.type	buf_prepare, @function
buf_prepare:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jnb	.L63
	lea	rcx, __PRETTY_FUNCTION__.5[rip]
	mov	edx, 303
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L63:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	cmp	QWORD PTR -32[rbp], 0
	je	.L64
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR -4[rbp]
	mov	DWORD PTR [rax], edx
.L64:
	cmp	DWORD PTR -4[rbp], 0
	je	.L65
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	eax, eax
	add	rax, rdx
	jmp	.L67
.L65:
	mov	eax, 0
.L67:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	buf_prepare, .-buf_prepare
	.type	buf_pack, @function
buf_pack:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jnb	.L69
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 314
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L69:
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L71
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, 12[rdx]
	mov	rdx, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR [rdx]
	mov	edx, edx
	lea	rsi, [rcx+rdx]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rcx, 12[rdx]
	mov	rdx, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR [rax]
	sub	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR [rax], 0
.L71:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	buf_pack, .-buf_pack
	.type	buf_update, @function
buf_update:
.LFB19:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	buf_update, .-buf_update
	.type	buf_consume, @function
buf_consume:
.LFB20:
	.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 -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], edx
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	buf_consume, .-buf_consume
	.type	buf_add, @function
buf_add:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	eax, eax
	cmp	QWORD PTR -40[rbp], rax
	jbe	.L75
	mov	eax, -1
	jmp	.L76
.L75:
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	cmp	QWORD PTR -40[rbp], rax
	jbe	.L77
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	buf_pack
.L77:
	mov	rax, QWORD PTR -24[rbp]
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	eax, eax
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	mov	DWORD PTR 4[rax], edx
	mov	eax, 0
.L76:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	buf_add, .-buf_add
	.section	.rodata
.LC12:
	.string	"buf->max >= buf->end"
	.text
	.type	buf_printf, @function
buf_printf:
.LFB22:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -240[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	.L79
	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
.L79:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	buf_pack
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	edx, eax
	jnb	.L80
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 359
	lea	rsi, .LC10[rip]
	lea	rdi, .LC12[rip]
	call	__assert_fail@PLT
.L80:
	mov	rax, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR 8[rax]
	mov	rax, QWORD PTR -232[rbp]
	mov	ecx, DWORD PTR 4[rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -216[rbp], eax
	mov	DWORD PTR -208[rbp], 16
	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 -216[rbp]
	cdqe
	mov	rdx, QWORD PTR -232[rbp]
	lea	rcx, 12[rdx]
	mov	rdx, QWORD PTR -232[rbp]
	mov	edx, DWORD PTR 4[rdx]
	mov	edx, edx
	lea	rdi, [rcx+rdx]
	lea	rcx, -208[rbp]
	mov	rdx, QWORD PTR -240[rbp]
	mov	rsi, rax
	call	vsnprintf@PLT
	mov	DWORD PTR -212[rbp], eax
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -216[rbp]
	jle	.L81
	mov	eax, -1
	jmp	.L83
.L81:
	mov	edx, DWORD PTR -212[rbp]
	mov	rax, QWORD PTR -232[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	buf_update
	mov	eax, DWORD PTR -212[rbp]
.L83:
	mov	rsi, QWORD PTR -184[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L84
	call	__stack_chk_fail@PLT
.L84:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	buf_printf, .-buf_printf
	.type	buf_line, @function
buf_line:
.LFB23:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	cmp	edx, eax
	jnb	.L86
	lea	rcx, __PRETTY_FUNCTION__.2[rip]
	mov	edx, 376
	lea	rsi, .LC10[rip]
	lea	rdi, .LC11[rip]
	call	__assert_fail@PLT
.L86:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -20[rbp], eax
	cmp	DWORD PTR -20[rbp], 0
	jne	.L87
	cmp	QWORD PTR -48[rbp], 0
	je	.L88
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
.L88:
	mov	eax, 0
	jmp	.L89
.L87:
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	add	rax, rdx
	mov	QWORD PTR -16[rbp], rax
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	esi, 10
	mov	rdi, rax
	call	memchr@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L90
	cmp	QWORD PTR -48[rbp], 0
	je	.L91
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 0
.L91:
	mov	eax, 0
	jmp	.L89
.L90:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -16[rbp]
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -8[rbp]
	cmp	rax, QWORD PTR -16[rbp]
	jbe	.L92
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	movzx	eax, BYTE PTR [rax]
	cmp	al, 13
	jne	.L92
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, 1
	mov	BYTE PTR [rax], 0
	jmp	.L93
.L92:
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR [rax], 0
.L93:
	cmp	QWORD PTR -48[rbp], 0
	je	.L94
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L94:
	cmp	DWORD PTR -20[rbp], 0
	je	.L95
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, 12[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	eax, eax
	add	rax, rdx
	jmp	.L89
.L95:
	mov	eax, 0
.L89:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	buf_line, .-buf_line
	.type	prop_get_name, @function
prop_get_name:
.LFB24:
	.cfi_startproc
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	prop_get_name, .-prop_get_name
	.type	prop_get_value, @function
prop_get_value:
.LFB25:
	.cfi_startproc
	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	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	add	rax, rdx
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	prop_get_value, .-prop_get_value
	.type	prop_free, @function
prop_free:
.LFB26:
	.cfi_startproc
	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	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	prop_free, .-prop_free
	.section	.rodata
.LC13:
	.string	""
	.text
	.globl	prop_new
	.type	prop_new, @function
prop_new:
.LFB28:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	cmp	QWORD PTR -40[rbp], 0
	jne	.L103
	mov	eax, 0
	jmp	.L104
.L103:
	cmp	QWORD PTR -48[rbp], 0
	jne	.L105
	lea	rax, .LC13[rip]
	mov	QWORD PTR -48[rbp], rax
.L105:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	rax, 1
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L106
	mov	eax, 0
	jmp	.L104
.L106:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, [rdx+rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -8[rbp]
.L104:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	prop_new, .-prop_new
	.globl	plist_free
	.type	plist_free, @function
plist_free:
.LFB29:
	.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 -12[rbp], eax
	mov	DWORD PTR -16[rbp], 0
	jmp	.L108
.L109:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -16[rbp]
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	prop_free
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], 0
	add	DWORD PTR -16[rbp], 1
.L108:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -12[rbp]
	jb	.L109
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	free@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	plist_free, .-plist_free
	.type	prop_compar, @function
prop_compar:
.LFB30:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	prop_compar, .-prop_compar
	.globl	prop_find_slot
	.type	prop_find_slot, @function
prop_find_slot:
.LFB31:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	cmp	DWORD PTR -28[rbp], 0
	jne	.L113
	mov	eax, -1
	jmp	.L114
.L113:
	mov	edx, DWORD PTR -28[rbp]
	mov	rsi, QWORD PTR -24[rbp]
	lea	rax, -40[rbp]
	lea	r8, prop_compar[rip]
	mov	ecx, 8
	mov	rdi, rax
	call	bsearch@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L115
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR -24[rbp]
	sar	rax, 3
	jmp	.L114
.L115:
	mov	eax, -1
.L114:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	prop_find_slot, .-prop_find_slot
	.globl	plist_set
	.type	plist_set, @function
plist_set:
.LFB32:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	prop_new
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L117
	mov	eax, -1
	jmp	.L118
.L117:
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -48[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	prop_find_slot
	mov	DWORD PTR -24[rbp], eax
	cmp	DWORD PTR -24[rbp], 0
	js	.L119
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	free@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	eax, 0
	jmp	.L118
.L119:
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -24[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	add	eax, 1
	mov	DWORD PTR -20[rbp], eax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 4[rax]
	cmp	DWORD PTR -20[rbp], eax
	jb	.L120
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, 4[rax]
	mov	rax, QWORD PTR -40[rbp]
	lea	rdi, 8[rax]
	mov	eax, DWORD PTR -20[rbp]
	mov	ecx, 8
	mov	edx, eax
	mov	eax, 0
	call	grow@PLT
	test	eax, eax
	je	.L121
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	prop_free
	mov	eax, -1
	jmp	.L118
.L121:
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -20[rbp]
	mov	DWORD PTR [rax], edx
.L120:
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -24[rbp]
	cdqe
	sal	rax, 3
	add	rdx, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rcx, prop_compar[rip]
	mov	edx, 8
	mov	rdi, rax
	call	qsort@PLT
	mov	eax, 0
.L118:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	plist_set, .-plist_set
	.globl	plist_get
	.type	plist_get, @function
plist_get:
.LFB33:
	.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 -24[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -32[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	prop_find_slot
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L123
	mov	eax, 0
	jmp	.L124
.L123:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	prop_get_value
.L124:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	plist_get, .-plist_get
	.globl	prop_iter_next
	.type	prop_iter_next, @function
prop_iter_next:
.LFB34:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR -12[rbp], eax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 12[rax]
	cmp	DWORD PTR -12[rbp], eax
	jl	.L126
	mov	eax, 0
	jmp	.L127
.L126:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	eax, DWORD PTR -12[rbp]
	cdqe
	sal	rax, 3
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	je	.L128
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	prop_get_name
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rdx], rax
.L128:
	cmp	QWORD PTR -40[rbp], 0
	je	.L129
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	prop_get_value
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR [rdx], rax
.L129:
	mov	eax, 1
.L127:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	prop_iter_next, .-prop_iter_next
	.data
	.align 4
	.type	db_dirfd, @object
	.size	db_dirfd, 4
db_dirfd:
	.long	-1
	.text
	.type	db_init, @function
db_init:
.LFB35:
	.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	esi, 65536
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR db_dirfd[rip], eax
	mov	eax, DWORD PTR db_dirfd[rip]
	cmp	eax, -1
	jne	.L131
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	eax, -1
	jmp	.L132
.L131:
	mov	eax, 0
.L132:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	db_init, .-db_init
	.type	db_close, @function
db_close:
.LFB36:
	.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	eax, DWORD PTR [rax]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	db_close, .-db_close
	.type	db_commit, @function
db_commit:
.LFB37:
	.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
	call	abort@PLT
	.cfi_endproc
.LFE37:
	.size	db_commit, .-db_commit
	.type	db_discard, @function
db_discard:
.LFB38:
	.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
	call	abort@PLT
	.cfi_endproc
.LFE38:
	.size	db_discard, .-db_discard
	.type	db_handle_alloc, @function
db_handle_alloc:
.LFB39:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	esi, 12
	mov	edi, 1
	call	calloc@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	db_handle_alloc, .-db_handle_alloc
	.type	db_open, @function
db_open:
.LFB40:
	.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	eax, DWORD PTR db_dirfd[rip]
	cmp	eax, -1
	jne	.L140
	mov	eax, -1
	jmp	.L141
.L140:
	mov	eax, DWORD PTR db_dirfd[rip]
	mov	rcx, QWORD PTR -24[rbp]
	mov	edx, 0
	mov	rsi, rcx
	mov	edi, eax
	mov	eax, 0
	call	openat@PLT
	mov	DWORD PTR -12[rbp], eax
	call	db_handle_alloc
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR 4[rax], 1
	cmp	QWORD PTR -32[rbp], 0
	je	.L142
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	jmp	.L143
.L142:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	db_discard
.L143:
	mov	eax, 0
.L141:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	db_open, .-db_open
	.type	db_create, @function
db_create:
.LFB41:
	.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	QWORD PTR -16[rbp], rsi
	call	abort@PLT
	.cfi_endproc
.LFE41:
	.size	db_create, .-db_create
	.type	db_headers, @function
db_headers:
.LFB42:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	call	abort@PLT
	.cfi_endproc
.LFE42:
	.size	db_headers, .-db_headers
	.type	db_read, @function
db_read:
.LFB43:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	mov	QWORD PTR -32[rbp], rcx
	call	abort@PLT
	.cfi_endproc
.LFE43:
	.size	db_read, .-db_read
	.type	db_write, @function
db_write:
.LFB44:
	.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 -8[rbp], rdi
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -20[rbp], edx
	call	abort@PLT
	.cfi_endproc
.LFE44:
	.size	db_write, .-db_write
	.local	user_current
	.comm	user_current,592,32
	.section	.rodata
.LC14:
	.string	"users/%s"
.LC15:
	.string	"ERROR:Username too long\n"
	.text
	.type	user_begin, @function
user_begin:
.LFB45:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rdx, QWORD PTR -296[rbp]
	lea	rax, -272[rbp]
	mov	rcx, rdx
	lea	rdx, .LC14[rip]
	mov	esi, 256
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	cmp	eax, 255
	jbe	.L149
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	eax, -1
	jmp	.L152
.L149:
	lea	rdx, -280[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	db_open
	mov	DWORD PTR -284[rbp], eax
	cmp	DWORD PTR -284[rbp], 0
	je	.L151
	mov	eax, DWORD PTR -284[rbp]
	jmp	.L152
.L151:
	mov	rax, QWORD PTR -280[rbp]
	mov	rdi, rax
	call	db_close
	mov	eax, 0
.L152:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L153
	call	__stack_chk_fail@PLT
.L153:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE45:
	.size	user_begin, .-user_begin
	.type	user_check_password, @function
user_check_password:
.LFB46:
	.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
	call	abort@PLT
	.cfi_endproc
.LFE46:
	.size	user_check_password, .-user_check_password
	.type	user_end, @function
user_end:
.LFB47:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	call	abort@PLT
	.cfi_endproc
.LFE47:
	.size	user_end, .-user_end
	.section	.rodata
.LC16:
	.string	"WELCOME"
.LC17:
	.string	"Welcome ..."
.LC18:
	.string	"\r\n"
.LC19:
	.string	"ERROR"
.LC20:
	.string	"Fatal ERROR!"
.LC21:
	.string	"ERROR: Unknown resource!"
	.text
	.type	show_file, @function
show_file:
.LFB48:
	.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 -4[rbp], edi
	mov	QWORD PTR -16[rbp], rsi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L157
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	buf_printf
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 2
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	buf_add
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	call	write_ready
	jmp	.L160
.L157:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L159
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC20[rip]
	mov	rdi, rax
	mov	eax, 0
	call	buf_printf
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 2
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	buf_add
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	call	write_ready
	jmp	.L160
.L159:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rsi, .LC21[rip]
	mov	rdi, rax
	mov	eax, 0
	call	buf_printf
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	edx, 2
	lea	rsi, .LC18[rip]
	mov	rdi, rax
	call	buf_add
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 1
	mov	edi, eax
	call	write_ready
.L160:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE48:
	.size	show_file, .-show_file
	.section	.rodata
	.align 8
.LC22:
	.string	"ERROR:[%d] missing client info\n"
.LC23:
	.string	"[%d] USER: \"%s\"\n"
.LC24:
	.string	"MAINMENU"
.LC25:
	.string	"[%d] COMMAND: \"%s\"\n"
.LC26:
	.string	"ERROR:[%d] invalid state %d\n"
	.text
	.type	client_process, @function
client_process:
.LFB49:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -48[rbp], 0
	jne	.L162
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -36[rbp]
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -36[rbp]
	mov	edi, eax
	call	net_close
	jmp	.L161
.L162:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -20[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	buf_line
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L171
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L165
	cmp	eax, 1
	je	.L166
	jmp	.L170
.L165:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -48[rbp]
	mov	DWORD PTR [rax], 1
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC24[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	show_file
	jmp	.L168
.L166:
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L168
.L170:
	mov	rax, QWORD PTR -48[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -36[rbp]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC19[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	show_file
	jmp	.L161
.L168:
	mov	edx, DWORD PTR -20[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	buf_consume
	jmp	.L162
.L171:
	nop
.L161:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L169
	call	__stack_chk_fail@PLT
.L169:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE49:
	.size	client_process, .-client_process
	.section	.rodata
	.align 8
.LC27:
	.string	"ERROR:[%d] unable create buffer\n"
	.align 8
.LC28:
	.string	"ERROR:[%d] buffer filled, but not draining\n"
.LC29:
	.string	"ERROR:[%d] socket error %d\n"
	.text
	.type	client_handle_read, @function
client_handle_read:
.LFB50:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	buf_pack
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, -36[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	buf_prepare
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L173
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -52[rbp]
	lea	rsi, .LC27[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	net_close
	jmp	.L172
.L173:
	mov	eax, DWORD PTR -36[rbp]
	cmp	eax, 1
	ja	.L175
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -52[rbp]
	lea	rsi, .LC28[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	net_close
	jmp	.L172
.L175:
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rsi, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	recv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L176
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	net_close
	jmp	.L172
.L176:
	cmp	QWORD PTR -16[rbp], 0
	jns	.L177
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -52[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -52[rbp]
	mov	edi, eax
	call	net_close
	jmp	.L172
.L177:
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	esi, edx
	mov	rdi, rax
	call	buf_update
	mov	rdx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	client_process
.L172:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L179
	call	__stack_chk_fail@PLT
.L179:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE50:
	.size	client_handle_read, .-client_handle_read
	.type	client_handle_write, @function
client_handle_write:
.LFB51:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, -36[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	buf_data
	mov	QWORD PTR -24[rbp], rax
	mov	eax, DWORD PTR -36[rbp]
	test	eax, eax
	je	.L181
	mov	eax, DWORD PTR -36[rbp]
	mov	edx, eax
	mov	rsi, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR -52[rbp]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jns	.L182
	call	__errno_location@PLT
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -52[rbp]
	lea	rsi, .LC29[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L181
.L182:
	cmp	QWORD PTR -16[rbp], 0
	jle	.L181
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	esi, edx
	mov	rdi, rax
	call	buf_consume
	mov	eax, DWORD PTR -36[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	sub	eax, edx
	mov	DWORD PTR -36[rbp], eax
.L181:
	mov	eax, DWORD PTR -36[rbp]
	test	eax, eax
	setne	al
	movzx	edx, al
	mov	eax, DWORD PTR -52[rbp]
	mov	esi, edx
	mov	edi, eax
	call	write_ready
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L183
	call	__stack_chk_fail@PLT
.L183:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE51:
	.size	client_handle_write, .-client_handle_write
	.type	client_freedata, @function
client_freedata:
.LFB52:
	.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	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L186
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdi, rax
	call	buf_free
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	mov	rdi, rax
	call	buf_free
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
.L186:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE52:
	.size	client_freedata, .-client_freedata
	.type	client_newdata, @function
client_newdata:
.LFB53:
	.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	esi, 24
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	edi, 131072
	call	buf_new
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rdx], rax
	mov	edi, 4096
	call	buf_new
	mov	rdx, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE53:
	.size	client_newdata, .-client_newdata
	.section	.rodata
.LC30:
	.string	"cinfo != NULL"
.LC31:
	.string	"cinfo->outbuf != NULL"
.LC32:
	.string	"cinfo->inbuf != NULL"
.LC33:
	.string	"LOGIN"
	.text
	.type	client_handle_init, @function
client_handle_init:
.LFB54:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR -32[rbp]
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L190
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 887
	lea	rsi, .LC10[rip]
	lea	rdi, .LC30[rip]
	call	__assert_fail@PLT
.L190:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	jne	.L191
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 888
	lea	rsi, .LC10[rip]
	lea	rdi, .LC31[rip]
	call	__assert_fail@PLT
.L191:
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	test	rax, rax
	jne	.L192
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 889
	lea	rsi, .LC10[rip]
	lea	rdi, .LC32[rip]
	call	__assert_fail@PLT
.L192:
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC16[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	show_file
	mov	rcx, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR -20[rbp]
	lea	rdx, .LC33[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	show_file
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE54:
	.size	client_handle_init, .-client_handle_init
	.section	.rodata
.LC34:
	.string	"DEBUG:%s():[%d] FAMILY=%d\n"
.LC35:
	.string	"ERROR:%s()\n"
	.text
	.type	server_handle_accept, @function
server_handle_accept:
.LFB55:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	DWORD PTR -180[rbp], edi
	mov	QWORD PTR -192[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -192[rbp]
	mov	QWORD PTR -168[rbp], rax
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -160[rbp], rax
	lea	rax, -144[rbp]
	mov	rcx, rax
	lea	rdx, -176[rbp]
	mov	eax, DWORD PTR -180[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], -1
	je	.L200
	movzx	eax, WORD PTR -144[rbp]
	movzx	ecx, ax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -172[rbp]
	mov	r8d, ecx
	mov	ecx, edx
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC34[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR 32[rax]
	test	rax, rax
	je	.L196
	mov	rax, QWORD PTR -160[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -160[rbp]
	mov	rdi, rax
	call	rdx
	jmp	.L197
.L196:
	mov	eax, 0
.L197:
	mov	QWORD PTR -152[rbp], rax
	mov	rdx, QWORD PTR -160[rbp]
	mov	rcx, QWORD PTR -152[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	net_add
	test	eax, eax
	je	.L193
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, __func__.0[rip]
	lea	rsi, .LC35[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -172[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L193
.L200:
	nop
.L193:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L199
	call	__stack_chk_fail@PLT
.L199:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE55:
	.size	server_handle_accept, .-server_handle_accept
	.type	server_newdata, @function
server_newdata:
.LFB56:
	.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	esi, 8
	mov	edi, 1
	call	calloc@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE56:
	.size	server_newdata, .-server_newdata
	.section	.rodata
.LC36:
	.string	"ERROR:%s\n"
.LC37:
	.string	"Server: %s/%s (%s)\n"
.LC38:
	.string	"Server: %s/%s\n"
	.text
	.type	server_add, @function
server_add:
.LFB57:
	.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, 1176
	.cfi_offset 3, -24
	mov	QWORD PTR -1160[rbp], rdi
	mov	QWORD PTR -1168[rbp], rsi
	mov	DWORD PTR -1172[rbp], edx
	mov	QWORD PTR -1184[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -1160[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 2
	jne	.L204
	mov	DWORD PTR -1144[rbp], 16
	mov	rax, QWORD PTR -1160[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -1136[rbp], rax
	mov	QWORD PTR -1128[rbp], rdx
	mov	eax, DWORD PTR -1172[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1134[rbp], ax
	lea	rax, -1136[rbp]
	mov	QWORD PTR -1160[rbp], rax
	jmp	.L205
.L204:
	mov	rax, QWORD PTR -1160[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 10
	jne	.L206
	mov	DWORD PTR -1144[rbp], 28
	mov	rax, QWORD PTR -1160[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rbx, QWORD PTR 8[rax]
	mov	QWORD PTR -1120[rbp], rcx
	mov	QWORD PTR -1112[rbp], rbx
	mov	rdx, QWORD PTR 16[rax]
	mov	QWORD PTR -1104[rbp], rdx
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR -1096[rbp], eax
	mov	eax, DWORD PTR -1172[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -1118[rbp], ax
	lea	rax, -1120[rbp]
	mov	QWORD PTR -1160[rbp], rax
	jmp	.L205
.L206:
	mov	eax, -1
	jmp	.L212
.L205:
	lea	rcx, -1088[rbp]
	lea	rdx, -1056[rbp]
	mov	esi, DWORD PTR -1144[rbp]
	mov	rax, QWORD PTR -1160[rbp]
	sub	rsp, 8
	push	3
	mov	r9d, 32
	mov	r8, rcx
	mov	ecx, 1025
	mov	rdi, rax
	call	getnameinfo@PLT
	add	rsp, 16
	mov	DWORD PTR -1140[rbp], eax
	cmp	DWORD PTR -1140[rbp], 0
	je	.L208
	mov	eax, DWORD PTR -1140[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC36[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
	jmp	.L212
.L208:
	cmp	QWORD PTR -1168[rbp], 0
	je	.L209
	mov	rcx, QWORD PTR -1168[rbp]
	lea	rdx, -1088[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC37[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L210
.L209:
	lea	rdx, -1088[rbp]
	lea	rax, -1056[rbp]
	mov	rsi, rax
	lea	rdi, .LC38[rip]
	mov	eax, 0
	call	printf@PLT
.L210:
	mov	rdx, QWORD PTR -1184[rbp]
	mov	ecx, DWORD PTR -1144[rbp]
	mov	rax, QWORD PTR -1160[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	net_bind
	test	eax, eax
	je	.L211
	mov	eax, -1
	jmp	.L212
.L211:
	mov	eax, 0
.L212:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L213
	call	__stack_chk_fail@PLT
.L213:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE57:
	.size	server_add, .-server_add
	.type	interface_add, @function
interface_add:
.LFB58:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	DWORD PTR -44[rbp], esi
	mov	QWORD PTR -56[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -28[rbp], 0
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	getifaddrs@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -16[rbp], rax
	jmp	.L215
.L219:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	je	.L222
	cmp	QWORD PTR -40[rbp], 0
	je	.L218
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L217
.L218:
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rcx, QWORD PTR -56[rbp]
	mov	edx, DWORD PTR -44[rbp]
	mov	rdi, rax
	call	server_add
	test	eax, eax
	je	.L217
	mov	DWORD PTR -28[rbp], -1
	jmp	.L217
.L222:
	nop
.L217:
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -16[rbp], rax
.L215:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L219
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	freeifaddrs@PLT
	mov	eax, DWORD PTR -28[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L221
	call	__stack_chk_fail@PLT
.L221:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE58:
	.size	interface_add, .-interface_add
	.local	server_count
	.comm	server_count,4,4
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	client_class, @object
	.size	client_class, 56
client_class:
	.quad	client_handle_read
	.quad	client_handle_write
	.zero	8
	.quad	client_handle_init
	.quad	client_newdata
	.quad	client_freedata
	.zero	8
	.section	.data.rel.ro,"aw"
	.align 32
	.type	server_class, @object
	.size	server_class, 56
server_class:
	.quad	server_handle_accept
	.zero	24
	.quad	server_newdata
	.quad	free
	.quad	client_class
	.section	.rodata
.LC39:
	.string	"verbose"
.LC40:
	.string	"quiet"
.LC41:
	.string	"port"
.LC42:
	.string	"Unknown argument '-%s'\n"
	.text
	.type	do_flag, @function
do_flag:
.LFB59:
	.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 -24[rbp]
	lea	rsi, .LC39[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L224
	mov	eax, DWORD PTR verbose[rip]
	add	eax, 1
	mov	DWORD PTR verbose[rip], eax
	mov	eax, 0
	jmp	.L225
.L224:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC40[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L226
	mov	DWORD PTR verbose[rip], 0
	mov	eax, 0
	jmp	.L225
.L226:
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC41[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L227
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -4[rbp]
	lea	rdx, server_class[rip]
	mov	esi, eax
	mov	edi, 0
	call	interface_add
	mov	eax, DWORD PTR server_count[rip]
	add	eax, 1
	mov	DWORD PTR server_count[rip], eax
	mov	eax, 0
	jmp	.L225
.L227:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC42[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, -1
.L225:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE59:
	.size	do_flag, .-do_flag
	.type	parse_args, @function
parse_args:
.LFB60:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -16[rbp], 1
	jmp	.L229
.L234:
	mov	eax, DWORD PTR -16[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -16[rbp], edx
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L229
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jge	.L230
	mov	eax, DWORD PTR -16[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	jmp	.L231
.L230:
	mov	eax, 0
.L231:
	mov	rdx, QWORD PTR -8[rbp]
	add	rdx, 1
	mov	rsi, rax
	mov	rdi, rdx
	call	do_flag
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L232
	mov	eax, -1
	jmp	.L233
.L232:
	mov	eax, DWORD PTR -12[rbp]
	add	DWORD PTR -16[rbp], eax
.L229:
	mov	eax, DWORD PTR -16[rbp]
	cmp	eax, DWORD PTR -20[rbp]
	jl	.L234
	mov	eax, 0
.L233:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE60:
	.size	parse_args, .-parse_args
	.globl	main
	.type	main, @function
main:
.LFB61:
	.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
	mov	DWORD PTR evinfo_max[rip], 1024
	mov	eax, DWORD PTR evinfo_max[rip]
	mov	eax, eax
	mov	esi, 24
	mov	rdi, rax
	call	calloc@PLT
	mov	QWORD PTR evinfo[rip], rax
	mov	rdx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse_args
	test	eax, eax
	je	.L236
	mov	eax, 1
	jmp	.L237
.L236:
	mov	eax, DWORD PTR server_count[rip]
	test	eax, eax
	jne	.L238
	lea	rdx, server_class[rip]
	mov	esi, 4444
	mov	edi, 0
	call	interface_add
	mov	eax, DWORD PTR server_count[rip]
	add	eax, 1
	mov	DWORD PTR server_count[rip], eax
.L238:
	call	loop
	mov	eax, 0
.L237:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE61:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__func__.8, @object
	.size	__func__.8, 9
__func__.8:
	.string	"net_bind"
	.type	__func__.7, @object
	.size	__func__.7, 5
__func__.7:
	.string	"loop"
	.align 8
	.type	__PRETTY_FUNCTION__.6, @object
	.size	__PRETTY_FUNCTION__.6, 9
__PRETTY_FUNCTION__.6:
	.string	"buf_data"
	.align 8
	.type	__PRETTY_FUNCTION__.5, @object
	.size	__PRETTY_FUNCTION__.5, 12
__PRETTY_FUNCTION__.5:
	.string	"buf_prepare"
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 9
__PRETTY_FUNCTION__.4:
	.string	"buf_pack"
	.align 8
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 11
__PRETTY_FUNCTION__.3:
	.string	"buf_printf"
	.align 8
	.type	__PRETTY_FUNCTION__.2, @object
	.size	__PRETTY_FUNCTION__.2, 9
__PRETTY_FUNCTION__.2:
	.string	"buf_line"
	.align 16
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 19
__PRETTY_FUNCTION__.1:
	.string	"client_handle_init"
	.align 16
	.type	__func__.0, @object
	.size	__func__.0, 21
__func__.0:
	.string	"server_handle_accept"
	.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	"941247.c"
	.text
	.local	verbose
	.comm	verbose,4,4
	.local	evinfo
	.comm	evinfo,4,4
	.local	evinfo_max
	.comm	evinfo_max,4,4
	.local	event_rfds
	.comm	event_rfds,128,4
	.local	event_wfds
	.comm	event_wfds,128,4
	.local	event_fdmax
	.comm	event_fdmax,4,4
	.data
	.align	2
	.type	current_entry, %object
	.size	current_entry, 4
current_entry:
	.word	-1
	.align	2
	.type	current_fd, %object
	.size	current_fd, 4
current_fd:
	.word	-1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_ready, %function
read_ready:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L5
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	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, .L5
	str	r3, [r1, r2, lsl #2]
	b	.L4
.L2:
	ldr	r3, [fp, #-8]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L5
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	mvn	r3, r3
	and	r3, r3, r1
	ldr	r1, .L5
	str	r3, [r1, r2, lsl #2]
.L4:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L6:
	.align	2
.L5:
	.word	event_rfds
	.size	read_ready, .-read_ready
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_ready, %function
write_ready:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L8
	ldr	r3, [fp, #-8]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L11
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	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, .L11
	str	r3, [r1, r2, lsl #2]
	b	.L10
.L8:
	ldr	r3, [fp, #-8]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	ldr	r3, .L11
	ldr	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-8]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	mvn	r3, r3
	and	r3, r3, r1
	ldr	r1, .L11
	str	r3, [r1, r2, lsl #2]
.L10:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L12:
	.align	2
.L11:
	.word	event_wfds
	.size	write_ready, .-write_ready
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	update_fdmax, %function
update_fdmax:
	@ 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, .L16
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	cmp	r2, r3
	ble	.L15
	ldr	r2, .L16
	ldr	r3, [fp, #-8]
	str	r3, [r2]
.L15:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L17:
	.align	2
.L16:
	.word	event_fdmax
	.size	update_fdmax, .-update_fdmax
	.section	.rodata
	.align	2
.LC0:
	.ascii	"ERROR:event slot #%d is not empty!\012\000"
	.align	2
.LC1:
	.ascii	"[%d] init event!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	net_add, %function
net_add:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	str	r2, [fp, #-40]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-32]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r2, r3, #255
	ldrb	r3, [fp, #-12]
	and	r2, r2, #1
	bic	r3, r3, #1
	orr	r3, r2, r3
	strb	r3, [fp, #-12]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	ldrb	r2, [fp, #-12]
	and	r3, r3, #1
	bic	r2, r2, #2
	lsl	r3, r3, #1
	orr	r3, r3, r2
	mov	r2, r3
	strb	r2, [fp, #-12]
	ldr	r3, [fp, #-36]
	str	r3, [fp, #-8]
	ldrb	r3, [fp, #-12]
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	read_ready
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	lsr	r3, r3, #1
	and	r3, r3, #1
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, [fp, #-32]
	bl	write_ready
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L19
	ldr	r3, .L23+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L23+8
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
	b	.L22
.L19:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #4
	add	r3, r2, r3
	mov	ip, r3
	sub	r3, fp, #20
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r0, [fp, #-32]
	bl	update_fdmax
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	lsl	r3, r3, #4
	add	r3, r2, r3
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L23+12
	bl	printf
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-24]
	ldr	r0, [r2, #4]
	ldr	r2, [fp, #-24]
	ldr	r2, [r2, #12]
	mov	r1, r2
	blx	r3
.L21:
	mov	r3, #0
.L22:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	evinfo
	.word	stderr
	.word	.LC0
	.word	.LC1
	.size	net_add, .-net_add
	.section	.rodata
	.align	2
.LC2:
	.ascii	"[%d] close event!\012\000"
	.text
	.align	2
	.global	net_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	net_close, %function
net_close:
	@ 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, .L28
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #4
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r1, r3
	ldr	r0, .L28+4
	bl	printf
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	beq	.L26
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #12]
	mov	r1, r2
	ldr	r0, [fp, #-16]
	blx	r3
.L26:
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	read_ready
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	write_ready
	ldr	r0, [fp, #-16]
	bl	close
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	ldr	r3, [r3, #20]
	ldr	r2, [fp, #-8]
	ldr	r2, [r2, #12]
	mov	r0, r2
	blx	r3
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #12]
.L27:
	mov	r2, #16
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	memset
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L29:
	.align	2
.L28:
	.word	evinfo
	.word	.LC2
	.size	net_close, .-net_close
	.section	.rodata
	.align	2
.LC3:
	.ascii	"DEBUG:%s():[%d] socket created\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	net_bind, %function
net_bind:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L48
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L31
	mvn	r3, #0
	b	.L41
.L31:
	ldr	r3, .L48+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-16]
	ldr	r2, .L48+8
	ldr	r1, .L48+12
	bl	fprintf
	mov	r3, #1
	str	r3, [fp, #-20]
	sub	r3, fp, #20
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-16]
	bl	setsockopt
	mov	r3, r0
	cmp	r3, #0
	bne	.L43
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bne	.L44
	mov	r1, #6
	ldr	r0, [fp, #-16]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bne	.L45
	mov	r2, #2048
	mov	r1, #4
	ldr	r0, [fp, #-16]
	bl	fcntl
	mov	r3, r0
	cmp	r3, #0
	bne	.L46
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L38
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #16]
	ldr	r0, [fp, #-32]
	blx	r3
	mov	r3, r0
	b	.L39
.L38:
	mov	r3, #0
.L39:
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	net_add
	mov	r3, r0
	cmp	r3, #0
	bne	.L47
	mov	r3, #0
	b	.L41
.L43:
	nop
	b	.L34
.L44:
	nop
	b	.L34
.L45:
	nop
	b	.L34
.L46:
	nop
	b	.L34
.L47:
	nop
.L34:
	ldr	r0, .L48+8
	bl	perror
	ldr	r0, [fp, #-16]
	bl	close
	mvn	r3, #0
.L41:
	ldr	r2, .L48
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L42
	bl	__stack_chk_fail
.L42:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	.LC4
	.word	stderr
	.word	__func__.7586
	.word	.LC3
	.size	net_bind, .-net_bind
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	copyfdset, %function
copyfdset:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	add	r3, r3, #32
	add	r2, r3, #7
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r1, [fp, #-20]
	ldr	r2, [fp, #-8]
	mov	r0, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	copyfdset, .-copyfdset
	.section	.rodata
	.align	2
.LC5:
	.ascii	"DEBUG:%s():fdmax=%d\012\000"
	.align	2
.LC6:
	.ascii	"select()\000"
	.align	2
.LC7:
	.ascii	"[%d] read event!\012\000"
	.align	2
.LC8:
	.ascii	"ERROR:[%d] no read callback\012\000"
	.align	2
.LC9:
	.ascii	"[%d] write event!\012\000"
	.align	2
.LC10:
	.ascii	"ERROR:[%d] no write callback\012\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	loop, %function
loop:
	@ args = 0, pretend = 0, frame = 288
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #296
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L61:
	ldr	r3, .L65+4
	ldr	r0, [r3]
	ldr	r3, .L65+8
	ldr	r3, [r3]
	ldr	r2, .L65+12
	ldr	r1, .L65+16
	bl	fprintf
	ldr	r3, .L65+8
	ldr	r2, [r3]
	sub	r3, fp, #264
	ldr	r1, .L65+20
	mov	r0, r3
	bl	copyfdset
	ldr	r3, .L65+8
	ldr	r2, [r3]
	sub	r3, fp, #136
	ldr	r1, .L65+24
	mov	r0, r3
	bl	copyfdset
	mov	r3, #10
	str	r3, [fp, #-272]
	mov	r3, #0
	str	r3, [fp, #-268]
	ldr	r3, .L65+8
	ldr	r3, [r3]
	add	r0, r3, #1
	sub	r2, fp, #136
	sub	r1, fp, #264
	sub	r3, fp, #272
	str	r3, [sp]
	mov	r3, #0
	bl	select
	str	r0, [fp, #-288]
	ldr	r3, [fp, #-288]
	cmp	r3, #0
	bge	.L52
	ldr	r0, .L65+28
	bl	perror
	nop
	ldr	r3, .L65
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L62
	b	.L63
.L52:
	mov	r3, #0
	str	r3, [fp, #-292]
	b	.L54
.L60:
	ldr	r3, .L65+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L64
	ldr	r3, .L65+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3, #4]
	str	r3, [fp, #-284]
	ldr	r2, .L65+36
	ldr	r3, [fp, #-292]
	str	r3, [r2]
	ldr	r2, .L65+40
	ldr	r3, [fp, #-284]
	str	r3, [r2]
	ldr	r3, [fp, #-284]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-260]
	ldr	r3, [fp, #-284]
	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	.L57
	ldr	r1, [fp, #-284]
	ldr	r0, .L65+44
	bl	printf
	ldr	r3, .L65+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3]
	str	r3, [fp, #-280]
	ldr	r3, [fp, #-280]
	cmp	r3, #0
	beq	.L58
	ldr	r3, .L65+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-280]
	mov	r1, r2
	ldr	r0, [fp, #-284]
	blx	r3
	b	.L57
.L58:
	ldr	r3, .L65+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-284]
	ldr	r1, .L65+48
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-284]
	bl	net_close
.L57:
	ldr	r3, [fp, #-284]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #4
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-284]
	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	.L56
	ldr	r1, [fp, #-284]
	ldr	r0, .L65+52
	bl	printf
	ldr	r3, .L65+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-276]
	ldr	r3, [fp, #-276]
	cmp	r3, #0
	beq	.L59
	ldr	r3, .L65+32
	ldr	r2, [r3]
	ldr	r3, [fp, #-292]
	lsl	r3, r3, #4
	add	r3, r2, r3
	ldr	r2, [r3, #12]
	ldr	r3, [fp, #-276]
	mov	r1, r2
	ldr	r0, [fp, #-284]
	blx	r3
	b	.L56
.L59:
	ldr	r3, .L65+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-284]
	ldr	r1, .L65+56
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-284]
	bl	net_close
	b	.L56
.L64:
	nop
.L56:
	ldr	r3, [fp, #-292]
	add	r3, r3, #1
	str	r3, [fp, #-292]
.L54:
	ldr	r3, .L65+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-292]
	cmp	r2, r3
	ble	.L60
	ldr	r3, .L65+36
	mvn	r2, #0
	str	r2, [r3]
	ldr	r3, .L65+40
	mvn	r2, #0
	str	r2, [r3]
	b	.L61
.L63:
	bl	__stack_chk_fail
.L62:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC11
	.word	stderr
	.word	event_fdmax
	.word	__func__.7603
	.word	.LC5
	.word	event_rfds
	.word	event_wfds
	.word	.LC6
	.word	evinfo
	.word	current_entry
	.word	current_fd
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	loop, .-loop
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_free, %function
buf_free:
	@ 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	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	buf_free, .-buf_free
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_new, %function
buf_new:
	@ 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]
	add	r3, r3, #12
	mov	r1, r3
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	buf_new, .-buf_new
	.section	.rodata
	.align	2
.LC12:
	.ascii	"the_stack_data/941247.c\000"
	.align	2
.LC13:
	.ascii	"buf->end >= buf->start\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_data, %function
buf_data:
	@ 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	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L71
	ldr	r3, .L76
	mov	r2, #292
	ldr	r1, .L76+4
	ldr	r0, .L76+8
	bl	__assert_fail
.L71:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L72:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L73
	ldr	r3, [fp, #-16]
	add	r2, r3, #12
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r2, r3
	b	.L75
.L73:
	mov	r3, #0
.L75:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	__PRETTY_FUNCTION__.7624
	.word	.LC12
	.word	.LC13
	.size	buf_data, .-buf_data
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_prepare, %function
buf_prepare:
	@ 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	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L79
	ldr	r3, .L84
	ldr	r2, .L84+4
	ldr	r1, .L84+8
	ldr	r0, .L84+12
	bl	__assert_fail
.L79:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L80
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
.L80:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L81
	ldr	r3, [fp, #-16]
	add	r2, r3, #12
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	b	.L83
.L81:
	mov	r3, #0
.L83:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L85:
	.align	2
.L84:
	.word	__PRETTY_FUNCTION__.7630
	.word	303
	.word	.LC12
	.word	.LC13
	.size	buf_prepare, .-buf_prepare
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_pack, %function
buf_pack:
	@ 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	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L87
	ldr	r3, .L90
	ldr	r2, .L90+4
	ldr	r1, .L90+8
	ldr	r0, .L90+12
	bl	__assert_fail
.L87:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L89
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r0, r3, #12
	ldr	r3, [fp, #-16]
	add	r2, r3, #12
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	add	r3, r2, r3
	ldr	r2, [fp, #-8]
	mov	r1, r3
	bl	memmove
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	sub	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-16]
	mov	r2, #0
	str	r2, [r3]
.L89:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L91:
	.align	2
.L90:
	.word	__PRETTY_FUNCTION__.7635
	.word	314
	.word	.LC12
	.word	.LC13
	.size	buf_pack, .-buf_pack
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_update, %function
buf_update:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	buf_update, .-buf_update
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_consume, %function
buf_consume:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	add	r2, r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	buf_consume, .-buf_consume
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_add, %function
buf_add:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	bls	.L95
	mvn	r3, #0
	b	.L96
.L95:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bcs	.L97
	ldr	r0, [fp, #-16]
	bl	buf_pack
.L97:
	ldr	r3, [fp, #-16]
	add	r2, r3, #12
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	add	r2, r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3, #4]
	mov	r3, #0
.L96:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	buf_add, .-buf_add
	.section	.rodata
	.align	2
.LC14:
	.ascii	"buf->max >= buf->end\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_printf, %function
buf_printf:
	@ args = 4, pretend = 12, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #28
	str	r0, [fp, #-28]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-32]
	ldr	r3, .L104
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3,#0
	ldr	r0, [fp, #-28]
	bl	buf_pack
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	cmp	r2, r3
	bcs	.L99
	ldr	r3, .L104+4
	ldr	r2, .L104+8
	ldr	r1, .L104+12
	ldr	r0, .L104+16
	bl	__assert_fail
.L99:
	ldr	r3, [fp, #-28]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	sub	r3, r2, r3
	str	r3, [fp, #-20]
	add	r3, fp, #8
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r2, r3, #12
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	add	r0, r2, r3
	ldr	r1, [fp, #-20]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-32]
	bl	vsnprintf
	str	r0, [fp, #-16]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-20]
	cmp	r2, r3
	ble	.L100
	mvn	r3, #0
	b	.L102
.L100:
	ldr	r3, [fp, #-16]
	mov	r1, r3
	ldr	r0, [fp, #-28]
	bl	buf_update
	ldr	r3, [fp, #-16]
.L102:
	ldr	r2, .L104
	ldr	r1, [r2]
	ldr	r2, [fp, #-12]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L103
	bl	__stack_chk_fail
.L103:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #12
	bx	lr
.L105:
	.align	2
.L104:
	.word	.LC15
	.word	__PRETTY_FUNCTION__.7657
	.word	359
	.word	.LC12
	.word	.LC14
	.size	buf_printf, .-buf_printf
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	buf_line, %function
buf_line:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	cmp	r2, r3
	bcs	.L107
	ldr	r3, .L118
	mov	r2, #376
	ldr	r1, .L118+4
	ldr	r0, .L118+8
	bl	__assert_fail
.L107:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L108
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L109
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
.L109:
	mov	r3, #0
	b	.L110
.L108:
	ldr	r3, [fp, #-24]
	add	r2, r3, #12
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	mov	r1, #10
	ldr	r0, [fp, #-12]
	bl	memchr
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L111
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L112
	ldr	r3, [fp, #-28]
	mov	r2, #0
	str	r2, [r3]
.L112:
	mov	r3, #0
	b	.L110
.L111:
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	sub	r3, r2, r3
	str	r3, [fp, #-16]
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bls	.L113
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #13
	bne	.L113
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	mov	r2, #0
	strb	r2, [r3]
	b	.L114
.L113:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	strb	r2, [r3]
.L114:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	beq	.L115
	ldr	r3, [fp, #-28]
	ldr	r2, [fp, #-16]
	str	r2, [r3]
.L115:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L116
	ldr	r3, [fp, #-24]
	add	r2, r3, #12
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r3, r2, r3
	b	.L110
.L116:
	mov	r3, #0
.L110:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L119:
	.align	2
.L118:
	.word	__PRETTY_FUNCTION__.7663
	.word	.LC12
	.word	.LC13
	.size	buf_line, .-buf_line
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prop_get_name, %function
prop_get_name:
	@ 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]
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	prop_get_name, .-prop_get_name
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prop_get_value, %function
prop_get_value:
	@ 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	r0, [fp, #-8]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	ldr	r2, [fp, #-8]
	add	r3, r2, r3
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	prop_get_value, .-prop_get_value
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prop_free, %function
prop_free:
	@ 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	r0, [fp, #-8]
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	prop_free, .-prop_free
	.section	.rodata
	.align	2
.LC16:
	.ascii	"\000"
	.text
	.align	2
	.global	prop_new
	.syntax unified
	.arm
	.fpu softvfp
	.type	prop_new, %function
prop_new:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L126
	mov	r3, #0
	b	.L127
.L126:
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L128
	ldr	r3, .L130
	str	r3, [fp, #-28]
.L128:
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-16]
	ldr	r0, [fp, #-28]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	add	r3, r2, r3
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L129
	mov	r3, #0
	b	.L127
.L129:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-8]
	bl	memcpy
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	add	r3, r2, r3
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-28]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-8]
.L127:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L131:
	.align	2
.L130:
	.word	.LC16
	.size	prop_new, .-prop_new
	.align	2
	.global	plist_free
	.syntax unified
	.arm
	.fpu softvfp
	.type	plist_free, %function
plist_free:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	b	.L133
.L134:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	prop_free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
.L133:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-12]
	cmp	r2, r3
	bcc	.L134
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	free
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	plist_free, .-plist_free
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	prop_compar, %function
prop_compar:
	@ 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]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	strcmp
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	prop_compar, .-prop_compar
	.align	2
	.global	prop_find_slot
	.syntax unified
	.arm
	.fpu softvfp
	.type	prop_find_slot, %function
prop_find_slot:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L138
	mvn	r3, #0
	b	.L139
.L138:
	sub	r0, fp, #24
	ldr	r3, .L141
	str	r3, [sp]
	mov	r3, #4
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	bl	bsearch
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L140
	ldr	r2, [fp, #-8]
	ldr	r3, [fp, #-16]
	sub	r3, r2, r3
	asr	r3, r3, #2
	b	.L139
.L140:
	mvn	r3, #0
.L139:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L142:
	.align	2
.L141:
	.word	prop_compar
	.size	prop_find_slot, .-prop_find_slot
	.align	2
	.global	plist_set
	.syntax unified
	.arm
	.fpu softvfp
	.type	plist_set, %function
plist_set:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	prop_new
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L144
	mvn	r3, #0
	b	.L145
.L144:
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	ldr	r2, [fp, #-28]
	mov	r1, r3
	bl	prop_find_slot
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	blt	.L146
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	free
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	mov	r3, #0
	b	.L145
.L146:
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	bcc	.L147
	ldr	r3, [fp, #-24]
	add	r0, r3, #8
	ldr	r3, [fp, #-24]
	add	r1, r3, #4
	mov	r3, #4
	ldr	r2, [fp, #-12]
	bl	grow
	mov	r3, r0
	cmp	r3, #0
	beq	.L148
	ldr	r0, [fp, #-20]
	bl	prop_free
	mvn	r3, #0
	b	.L145
.L148:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L147:
	ldr	r3, [fp, #-24]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, [fp, #-24]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-24]
	ldr	r1, [r3]
	ldr	r3, .L149
	mov	r2, #4
	bl	qsort
	mov	r3, #0
.L145:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L150:
	.align	2
.L149:
	.word	prop_compar
	.size	plist_set, .-plist_set
	.align	2
	.global	plist_get
	.syntax unified
	.arm
	.fpu softvfp
	.type	plist_get, %function
plist_get:
	@ 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	r3, [fp, #-16]
	ldr	r0, [r3, #8]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	mov	r1, r3
	bl	prop_find_slot
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L152
	mov	r3, #0
	b	.L153
.L152:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #8]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	prop_get_value
	mov	r3, r0
.L153:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	plist_get, .-plist_get
	.align	2
	.global	prop_iter_next
	.syntax unified
	.arm
	.fpu softvfp
	.type	prop_iter_next, %function
prop_iter_next:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-12]
	cmp	r2, r3
	blt	.L155
	mov	r3, #0
	b	.L156
.L155:
	ldr	r3, [fp, #-16]
	ldr	r2, [r3]
	ldr	r3, [fp, #-12]
	lsl	r3, r3, #2
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L157
	ldr	r0, [fp, #-8]
	bl	prop_get_name
	mov	r2, r0
	ldr	r3, [fp, #-20]
	str	r2, [r3]
.L157:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L158
	ldr	r0, [fp, #-8]
	bl	prop_get_value
	mov	r2, r0
	ldr	r3, [fp, #-24]
	str	r2, [r3]
.L158:
	mov	r3, #1
.L156:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	prop_iter_next, .-prop_iter_next
	.data
	.align	2
	.type	db_dirfd, %object
	.size	db_dirfd, 4
db_dirfd:
	.word	-1
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_init, %function
db_init:
	@ 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]
	mov	r1, #16384
	ldr	r0, [fp, #-8]
	bl	open
	mov	r3, r0
	ldr	r2, .L162
	str	r3, [r2]
	ldr	r3, .L162
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L160
	ldr	r0, [fp, #-8]
	bl	perror
	mvn	r3, #0
	b	.L161
.L160:
	mov	r3, #0
.L161:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L163:
	.align	2
.L162:
	.word	db_dirfd
	.size	db_init, .-db_init
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_close, %function
db_close:
	@ 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, [fp, #-8]
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	db_close, .-db_close
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_commit, %function
db_commit:
	@ 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]
	bl	abort
	.size	db_commit, .-db_commit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_discard, %function
db_discard:
	@ 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]
	bl	abort
	.size	db_discard, .-db_discard
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_handle_alloc, %function
db_handle_alloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r1, #12
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
	.size	db_handle_alloc, .-db_handle_alloc
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_open, %function
db_open:
	@ 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	r3, .L175
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L171
	mvn	r3, #0
	b	.L172
.L171:
	ldr	r3, .L175
	ldr	r3, [r3]
	mov	r2, #0
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	openat
	str	r0, [fp, #-12]
	bl	db_handle_alloc
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	beq	.L173
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	b	.L174
.L173:
	ldr	r0, [fp, #-8]
	bl	db_discard
.L174:
	mov	r3, #0
.L172:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L176:
	.align	2
.L175:
	.word	db_dirfd
	.size	db_open, .-db_open
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_create, %function
db_create:
	@ 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]
	bl	abort
	.size	db_create, .-db_create
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_headers, %function
db_headers:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	bl	abort
	.size	db_headers, .-db_headers
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_read, %function
db_read:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	bl	abort
	.size	db_read, .-db_read
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	db_write, %function
db_write:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	bl	abort
	.size	db_write, .-db_write
	.local	user_current
	.comm	user_current,592,4
	.section	.rodata
	.align	2
.LC17:
	.ascii	"users/%s\000"
	.align	2
.LC18:
	.ascii	"ERROR:Username too long\012\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	user_begin, %function
user_begin:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	ldr	r3, .L187
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r0, fp, #264
	ldr	r3, [fp, #-280]
	ldr	r2, .L187+4
	mov	r1, #256
	bl	snprintf
	mov	r3, r0
	cmp	r3, #255
	bls	.L182
	ldr	r3, .L187+8
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L187+12
	bl	fwrite
	mvn	r3, #0
	b	.L185
.L182:
	sub	r2, fp, #272
	sub	r3, fp, #264
	mov	r1, r2
	mov	r0, r3
	bl	db_open
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmp	r3, #0
	beq	.L184
	ldr	r3, [fp, #-268]
	b	.L185
.L184:
	ldr	r3, [fp, #-272]
	mov	r0, r3
	bl	db_close
	mov	r3, #0
.L185:
	ldr	r2, .L187
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L186
	bl	__stack_chk_fail
.L186:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L188:
	.align	2
.L187:
	.word	.LC19
	.word	.LC17
	.word	stderr
	.word	.LC18
	.size	user_begin, .-user_begin
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	user_check_password, %function
user_check_password:
	@ 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]
	bl	abort
	.size	user_check_password, .-user_check_password
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	user_end, %function
user_end:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	bl	abort
	.size	user_end, .-user_end
	.section	.rodata
	.align	2
.LC20:
	.ascii	"WELCOME\000"
	.align	2
.LC21:
	.ascii	"Welcome ...\000"
	.align	2
.LC22:
	.ascii	"\015\012\000"
	.align	2
.LC23:
	.ascii	"ERROR\000"
	.align	2
.LC24:
	.ascii	"Fatal ERROR!\000"
	.align	2
.LC25:
	.ascii	"ERROR: Unknown resource!\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_file, %function
show_file:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	ldr	r1, .L196
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L192
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r1, .L196+4
	mov	r0, r3
	bl	buf_printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, #2
	ldr	r1, .L196+8
	mov	r0, r3
	bl	buf_add
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	write_ready
	b	.L195
.L192:
	ldr	r1, .L196+12
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L194
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r1, .L196+16
	mov	r0, r3
	bl	buf_printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, #2
	ldr	r1, .L196+8
	mov	r0, r3
	bl	buf_add
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	write_ready
	b	.L195
.L194:
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	ldr	r1, .L196+20
	mov	r0, r3
	bl	buf_printf
	ldr	r3, [fp, #-12]
	ldr	r3, [r3, #4]
	mov	r2, #2
	ldr	r1, .L196+8
	mov	r0, r3
	bl	buf_add
	mov	r1, #1
	ldr	r0, [fp, #-8]
	bl	write_ready
.L195:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L197:
	.align	2
.L196:
	.word	.LC20
	.word	.LC21
	.word	.LC22
	.word	.LC23
	.word	.LC24
	.word	.LC25
	.size	show_file, .-show_file
	.section	.rodata
	.align	2
.LC26:
	.ascii	"ERROR:[%d] missing client info\012\000"
	.align	2
.LC27:
	.ascii	"[%d] USER: \"%s\"\012\000"
	.align	2
.LC28:
	.ascii	"MAINMENU\000"
	.align	2
.LC29:
	.ascii	"[%d] COMMAND: \"%s\"\012\000"
	.align	2
.LC30:
	.ascii	"ERROR:[%d] invalid state %d\012\000"
	.align	2
.LC31:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_process, %function
client_process:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L209
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-28]
	cmp	r3, #0
	bne	.L199
	ldr	r3, .L209+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L209+8
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-24]
	bl	net_close
	b	.L198
.L199:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	sub	r2, fp, #16
	mov	r1, r2
	mov	r0, r3
	bl	buf_line
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L208
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L202
	cmp	r3, #1
	beq	.L203
	b	.L207
.L202:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldr	r0, .L209+12
	bl	printf
	ldr	r3, [fp, #-28]
	mov	r2, #1
	str	r2, [r3]
	ldr	r2, .L209+16
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	show_file
	b	.L205
.L203:
	ldr	r2, [fp, #-12]
	ldr	r1, [fp, #-24]
	ldr	r0, .L209+20
	bl	printf
	b	.L205
.L207:
	ldr	r3, .L209+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	ldr	r1, .L209+24
	bl	fprintf
	ldr	r2, .L209+28
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	show_file
	b	.L198
.L205:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-16]
	mov	r1, r2
	mov	r0, r3
	bl	buf_consume
	b	.L199
.L208:
	nop
.L198:
	ldr	r3, .L209
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L206
	bl	__stack_chk_fail
.L206:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L210:
	.align	2
.L209:
	.word	.LC31
	.word	stderr
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	.LC23
	.size	client_process, .-client_process
	.section	.rodata
	.align	2
.LC32:
	.ascii	"ERROR:[%d] unable create buffer\012\000"
	.align	2
.LC33:
	.ascii	"ERROR:[%d] buffer filled, but not draining\012\000"
	.align	2
.LC34:
	.ascii	"ERROR:[%d] socket error %d\012\000"
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_handle_read, %function
client_handle_read:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L219
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	buf_pack
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	sub	r2, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	buf_prepare
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L212
	ldr	r3, .L219+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L219+8
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-40]
	bl	net_close
	b	.L211
.L212:
	ldr	r3, [fp, #-32]
	cmp	r3, #1
	bhi	.L214
	ldr	r3, .L219+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L219+12
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-40]
	bl	net_close
	b	.L211
.L214:
	ldr	r2, [fp, #-32]
	mov	r3, #0
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	recv
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L215
	ldr	r0, [fp, #-40]
	bl	net_close
	b	.L211
.L215:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L216
	ldr	r3, .L219+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L219+16
	mov	r0, r4
	bl	fprintf
	ldr	r0, [fp, #-40]
	bl	net_close
	b	.L211
.L216:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	buf_update
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-40]
	bl	client_process
.L211:
	ldr	r3, .L219
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L218
	bl	__stack_chk_fail
.L218:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L220:
	.align	2
.L219:
	.word	.LC35
	.word	stderr
	.word	.LC32
	.word	.LC33
	.word	.LC34
	.size	client_handle_read, .-client_handle_read
	.section	.rodata
	.align	2
.LC36:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_handle_write, %function
client_handle_write:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L225
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-44]
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	sub	r2, fp, #32
	mov	r1, r2
	mov	r0, r3
	bl	buf_data
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	beq	.L222
	ldr	r2, [fp, #-32]
	mov	r3, #0
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-40]
	bl	send
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bge	.L223
	ldr	r3, .L225+4
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-40]
	ldr	r1, .L225+8
	mov	r0, r4
	bl	fprintf
	b	.L222
.L223:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	ble	.L222
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-20]
	mov	r1, r2
	mov	r0, r3
	bl	buf_consume
	ldr	r2, [fp, #-32]
	ldr	r3, [fp, #-20]
	sub	r3, r2, r3
	str	r3, [fp, #-32]
.L222:
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	mov	r1, r3
	ldr	r0, [fp, #-40]
	bl	write_ready
	nop
	ldr	r3, .L225
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L224
	bl	__stack_chk_fail
.L224:
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L226:
	.align	2
.L225:
	.word	.LC36
	.word	stderr
	.word	.LC34
	.size	client_handle_write, .-client_handle_write
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_freedata, %function
client_freedata:
	@ 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]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L229
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	buf_free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	mov	r0, r3
	bl	buf_free
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r0, [fp, #-8]
	bl	free
.L229:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	client_freedata, .-client_freedata
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_newdata, %function
client_newdata:
	@ 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	r1, #12
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	mov	r0, #131072
	bl	buf_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #4]
	mov	r0, #4096
	bl	buf_new
	mov	r2, r0
	ldr	r3, [fp, #-8]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	client_newdata, .-client_newdata
	.section	.rodata
	.align	2
.LC37:
	.ascii	"cinfo != NULL\000"
	.align	2
.LC38:
	.ascii	"cinfo->outbuf != NULL\000"
	.align	2
.LC39:
	.ascii	"cinfo->inbuf != NULL\000"
	.align	2
.LC40:
	.ascii	"LOGIN\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_handle_init, %function
client_handle_init:
	@ 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	r3, [fp, #-20]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L233
	ldr	r3, .L236
	ldr	r2, .L236+4
	ldr	r1, .L236+8
	ldr	r0, .L236+12
	bl	__assert_fail
.L233:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L234
	ldr	r3, .L236
	mov	r2, #888
	ldr	r1, .L236+8
	ldr	r0, .L236+16
	bl	__assert_fail
.L234:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #0
	bne	.L235
	ldr	r3, .L236
	ldr	r2, .L236+20
	ldr	r1, .L236+8
	ldr	r0, .L236+24
	bl	__assert_fail
.L235:
	ldr	r2, .L236+28
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	show_file
	ldr	r2, .L236+32
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-16]
	bl	show_file
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L237:
	.align	2
.L236:
	.word	__PRETTY_FUNCTION__.7853
	.word	887
	.word	.LC12
	.word	.LC37
	.word	.LC38
	.word	889
	.word	.LC39
	.word	.LC20
	.word	.LC40
	.size	client_handle_init, .-client_handle_init
	.section	.rodata
	.align	2
.LC41:
	.ascii	"DEBUG:%s():[%d] FAMILY=%d\012\000"
	.align	2
.LC42:
	.ascii	"ERROR:%s()\012\000"
	.align	2
.LC43:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_handle_accept, %function
server_handle_accept:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	ldr	r3, .L246
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-164]
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-152]
	ldr	r3, [r3]
	str	r3, [fp, #-148]
	sub	r3, fp, #136
	mov	r1, r3
	sub	r3, fp, #156
	mov	r2, r3
	ldr	r0, [fp, #-160]
	bl	accept
	str	r0, [fp, #-144]
	ldr	r3, [fp, #-144]
	cmn	r3, #1
	beq	.L245
	ldr	r3, .L246+4
	ldr	r0, [r3]
	ldrh	r3, [fp, #-136]
	str	r3, [sp]
	ldr	r3, [fp, #-144]
	ldr	r2, .L246+8
	ldr	r1, .L246+12
	bl	fprintf
	ldr	r3, [fp, #-148]
	ldr	r3, [r3, #16]
	cmp	r3, #0
	beq	.L241
	ldr	r3, [fp, #-148]
	ldr	r3, [r3, #16]
	ldr	r0, [fp, #-148]
	blx	r3
	mov	r3, r0
	b	.L242
.L241:
	mov	r3, #0
.L242:
	str	r3, [fp, #-140]
	ldr	r2, [fp, #-148]
	ldr	r1, [fp, #-140]
	ldr	r0, [fp, #-144]
	bl	net_add
	mov	r3, r0
	cmp	r3, #0
	beq	.L238
	ldr	r3, .L246+4
	ldr	r3, [r3]
	ldr	r2, .L246+8
	ldr	r1, .L246+16
	mov	r0, r3
	bl	fprintf
	ldr	r0, [fp, #-144]
	bl	close
	b	.L238
.L245:
	nop
.L238:
	ldr	r3, .L246
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L244
	bl	__stack_chk_fail
.L244:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L247:
	.align	2
.L246:
	.word	.LC43
	.word	stderr
	.word	__func__.7863
	.word	.LC41
	.word	.LC42
	.size	server_handle_accept, .-server_handle_accept
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_newdata, %function
server_newdata:
	@ 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	r1, #4
	mov	r0, #1
	bl	calloc
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-16]
	ldr	r2, [r3, #24]
	ldr	r3, [fp, #-8]
	str	r2, [r3]
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	server_newdata, .-server_newdata
	.section	.rodata
	.align	2
.LC44:
	.ascii	"ERROR:%s\012\000"
	.align	2
.LC45:
	.ascii	"Server: %s/%s (%s)\012\000"
	.align	2
.LC46:
	.ascii	"Server: %s/%s\012\000"
	.align	2
.LC47:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	server_add, %function
server_add:
	@ args = 0, pretend = 0, frame = 1136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #1152
	sub	sp, sp, #4
	str	r0, [fp, #-1136]
	str	r1, [fp, #-1140]
	str	r2, [fp, #-1144]
	str	r3, [fp, #-1148]
	ldr	r3, .L261
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-1136]
	ldrh	r3, [r3]
	cmp	r3, #2
	bne	.L251
	mov	r3, #16
	str	r3, [fp, #-1128]
	ldr	r3, [fp, #-1136]
	sub	ip, fp, #1104
	sub	ip, ip, #12
	sub	ip, ip, #4
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	ldr	r3, [fp, #-1144]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1104
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1104
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1136]
	b	.L252
.L251:
	ldr	r3, [fp, #-1136]
	ldrh	r3, [r3]
	cmp	r3, #10
	bne	.L253
	mov	r3, #28
	str	r3, [fp, #-1128]
	ldr	r3, [fp, #-1136]
	sub	ip, fp, #1088
	sub	ip, ip, #12
	sub	ip, ip, #4
	mov	lr, r3
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	ldr	r3, [fp, #-1144]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #12
	sub	r3, r3, #1088
	sub	r3, r3, #4
	strh	r2, [r3, #2]	@ movhi
	sub	r3, fp, #1088
	sub	r3, r3, #12
	sub	r3, r3, #4
	str	r3, [fp, #-1136]
	b	.L252
.L253:
	mvn	r3, #0
	b	.L259
.L252:
	sub	r2, fp, #1024
	sub	r2, r2, #12
	sub	r2, r2, #8
	mov	r3, #3
	str	r3, [sp, #8]
	mov	r3, #32
	str	r3, [sp, #4]
	sub	r3, fp, #1056
	sub	r3, r3, #12
	sub	r3, r3, #8
	str	r3, [sp]
	ldr	r3, .L261+4
	ldr	r1, [fp, #-1128]
	ldr	r0, [fp, #-1136]
	bl	getnameinfo
	str	r0, [fp, #-1124]
	ldr	r3, [fp, #-1124]
	cmp	r3, #0
	beq	.L255
	ldr	r3, .L261+8
	ldr	r4, [r3]
	ldr	r0, [fp, #-1124]
	bl	gai_strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L261+12
	mov	r0, r4
	bl	fprintf
	mvn	r3, #0
	b	.L259
.L255:
	ldr	r3, [fp, #-1140]
	cmp	r3, #0
	beq	.L256
	sub	r2, fp, #1056
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r1, fp, #1024
	sub	r1, r1, #12
	sub	r1, r1, #8
	ldr	r3, [fp, #-1140]
	ldr	r0, .L261+16
	bl	printf
	b	.L257
.L256:
	sub	r2, fp, #1056
	sub	r2, r2, #12
	sub	r2, r2, #8
	sub	r3, fp, #1024
	sub	r3, r3, #12
	sub	r3, r3, #8
	mov	r1, r3
	ldr	r0, .L261+20
	bl	printf
.L257:
	ldr	r2, [fp, #-1148]
	ldr	r1, [fp, #-1128]
	ldr	r0, [fp, #-1136]
	bl	net_bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L258
	mvn	r3, #0
	b	.L259
.L258:
	mov	r3, #0
.L259:
	ldr	r2, .L261
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L260
	bl	__stack_chk_fail
.L260:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L262:
	.align	2
.L261:
	.word	.LC47
	.word	1025
	.word	stderr
	.word	.LC44
	.word	.LC45
	.word	.LC46
	.size	server_add, .-server_add
	.section	.rodata
	.align	2
.LC48:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	interface_add, %function
interface_add:
	@ 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, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	ldr	r3, .L272
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-12]
	sub	r3, fp, #20
	mov	r0, r3
	bl	getifaddrs
	ldr	r3, [fp, #-20]
	str	r3, [fp, #-16]
	b	.L264
.L268:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	beq	.L271
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L267
	ldr	r3, [fp, #-16]
	ldr	r3, [r3, #4]
	ldr	r1, [fp, #-24]
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L266
.L267:
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #12]
	ldr	r3, [fp, #-16]
	ldr	r1, [r3, #4]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	bl	server_add
	mov	r3, r0
	cmp	r3, #0
	beq	.L266
	mvn	r3, #0
	str	r3, [fp, #-12]
	b	.L266
.L271:
	nop
.L266:
	ldr	r3, [fp, #-16]
	ldr	r3, [r3]
	str	r3, [fp, #-16]
.L264:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L268
	ldr	r3, [fp, #-20]
	mov	r0, r3
	bl	freeifaddrs
	ldr	r3, [fp, #-12]
	ldr	r2, .L272
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L270
	bl	__stack_chk_fail
.L270:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L273:
	.align	2
.L272:
	.word	.LC48
	.size	interface_add, .-interface_add
	.local	server_count
	.comm	server_count,4,4
	.section	.rodata
	.align	2
	.type	client_class, %object
	.size	client_class, 28
client_class:
	.word	client_handle_read
	.word	client_handle_write
	.space	4
	.word	client_handle_init
	.word	client_newdata
	.word	client_freedata
	.space	4
	.align	2
	.type	server_class, %object
	.size	server_class, 28
server_class:
	.word	server_handle_accept
	.space	12
	.word	server_newdata
	.word	free
	.word	client_class
	.align	2
.LC49:
	.ascii	"verbose\000"
	.align	2
.LC50:
	.ascii	"quiet\000"
	.align	2
.LC51:
	.ascii	"port\000"
	.align	2
.LC52:
	.ascii	"Unknown argument '-%s'\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	do_flag, %function
do_flag:
	@ 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	r1, .L279
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L275
	ldr	r3, .L279+4
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L279+4
	str	r3, [r2]
	mov	r3, #0
	b	.L276
.L275:
	ldr	r1, .L279+8
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L277
	ldr	r3, .L279+4
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L276
.L277:
	ldr	r1, .L279+12
	ldr	r0, [fp, #-16]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L278
	ldr	r0, [fp, #-20]
	bl	atoi
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r2, .L279+16
	ldr	r1, [fp, #-8]
	mov	r0, #0
	bl	interface_add
	ldr	r3, .L279+20
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L279+20
	str	r3, [r2]
	mov	r3, #0
	b	.L276
.L278:
	ldr	r3, .L279+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L279+28
	mov	r0, r3
	bl	fprintf
	mvn	r3, #0
.L276:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L280:
	.align	2
.L279:
	.word	.LC49
	.word	verbose
	.word	.LC50
	.word	.LC51
	.word	server_class
	.word	server_count
	.word	stderr
	.word	.LC52
	.size	do_flag, .-do_flag
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse_args, %function
parse_args:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L282
.L287:
	ldr	r3, [fp, #-16]
	add	r2, r3, #1
	str	r2, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L282
	ldr	r3, [fp, #-12]
	add	r0, r3, #1
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bge	.L283
	ldr	r3, [fp, #-16]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-28]
	add	r3, r2, r3
	ldr	r3, [r3]
	b	.L284
.L283:
	mov	r3, #0
.L284:
	mov	r1, r3
	bl	do_flag
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L285
	mvn	r3, #0
	b	.L286
.L285:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	str	r3, [fp, #-16]
.L282:
	ldr	r2, [fp, #-16]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L287
	mov	r3, #0
.L286:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	parse_args, .-parse_args
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ 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, .L292
	mov	r2, #1024
	str	r2, [r3]
	ldr	r3, .L292
	ldr	r3, [r3]
	mov	r1, #16
	mov	r0, r3
	bl	calloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L292+4
	str	r2, [r3]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	parse_args
	mov	r3, r0
	cmp	r3, #0
	beq	.L289
	mov	r3, #1
	b	.L290
.L289:
	ldr	r3, .L292+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L291
	ldr	r2, .L292+12
	ldr	r1, .L292+16
	mov	r0, #0
	bl	interface_add
	ldr	r3, .L292+8
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L292+8
	str	r3, [r2]
.L291:
	bl	loop
	mov	r3, #0
.L290:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L293:
	.align	2
.L292:
	.word	evinfo_max
	.word	evinfo
	.word	server_count
	.word	server_class
	.word	4444
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__func__.7586, %object
	.size	__func__.7586, 9
__func__.7586:
	.ascii	"net_bind\000"
	.align	2
	.type	__func__.7603, %object
	.size	__func__.7603, 5
__func__.7603:
	.ascii	"loop\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7624, %object
	.size	__PRETTY_FUNCTION__.7624, 9
__PRETTY_FUNCTION__.7624:
	.ascii	"buf_data\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7630, %object
	.size	__PRETTY_FUNCTION__.7630, 12
__PRETTY_FUNCTION__.7630:
	.ascii	"buf_prepare\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7635, %object
	.size	__PRETTY_FUNCTION__.7635, 9
__PRETTY_FUNCTION__.7635:
	.ascii	"buf_pack\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7657, %object
	.size	__PRETTY_FUNCTION__.7657, 11
__PRETTY_FUNCTION__.7657:
	.ascii	"buf_printf\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7663, %object
	.size	__PRETTY_FUNCTION__.7663, 9
__PRETTY_FUNCTION__.7663:
	.ascii	"buf_line\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7853, %object
	.size	__PRETTY_FUNCTION__.7853, 19
__PRETTY_FUNCTION__.7853:
	.ascii	"client_handle_init\000"
	.align	2
	.type	__func__.7863, %object
	.size	__func__.7863, 21
__func__.7863:
	.ascii	"server_handle_accept\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
