	.file	"928386.c"
	.intel_syntax noprefix
	.text
	.globl	up
	.data
	.align 32
	.type	up, @object
	.size	up, 208
up:
	.quad	16
	.zero	24
	.quad	0
	.quad	10
	.quad	0
	.quad	0
	.quad	0
	.value	0
	.zero	134
	.globl	down
	.align 32
	.type	down, @object
	.size	down, 208
down:
	.quad	16
	.zero	24
	.quad	0
	.quad	10
	.quad	0
	.quad	0
	.quad	0
	.value	0
	.zero	134
	.align 4
	.type	listen_fd, @object
	.size	listen_fd, 4
listen_fd:
	.long	-1
	.local	server_addr
	.comm	server_addr,8,8
	.section	.data.rel.local,"aw"
	.align 32
	.type	connections, @object
	.size	connections, 184
connections:
	.quad	connections
	.quad	connections
	.zero	168
	.section	.rodata
	.align 8
.LC0:
	.ascii	"Usage: %s [options] <upstream-host> <upstream-port>\n\nOptio"
	.ascii	"ns:\n  -b <buffersize> size of the buffer for packets upstre"
	.ascii	"am (default: 16)\n  -B <buffersize> size of the buffer for p"
	.ascii	"ackets downstream (default: 16)\n  -i <interval>   delay (in"
	.ascii	" microseconds) to insert after sending one packet\n         "
	.ascii	"         upstream (default: 10)\n  -I <interval>   delay (in"
	.ascii	" microseconds) to insert after sending one packet\n         "
	.ascii	"         downstream (default: 10)\n  -p <interval>   propaga"
	.ascii	"tion delay (in microseconds) upstream (default: 0)\n  -P <in"
	.ascii	"terval>   propagation delay (in mic"
	.string	"roseconds) downstream (default: 0)\n  -l <port>       port number to which the command binds\n  -d <packetnum>  packet number in connection to drop upstream\n  -D <packetnum>  packet number in connection to drop downstream\n  -h              prints this help\n\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.type	gettime, @function
gettime:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	rax, QWORD PTR -32[rbp]
	imul	rdx, rax, 1000000
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L4
	call	__stack_chk_fail@PLT
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gettime, .-gettime
	.section	.rodata
.LC1:
	.string	"the_stack_data/928386.c"
.LC2:
	.string	"s != -1"
.LC3:
	.string	"flags != -1"
	.text
	.type	new_socket, @function
new_socket:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, 17
	mov	esi, 2
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L6
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 109
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	__assert_fail@PLT
.L6:
	mov	eax, DWORD PTR -8[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L7
	lea	rcx, __PRETTY_FUNCTION__.4[rip]
	mov	edx, 111
	lea	rsi, .LC1[rip]
	lea	rdi, .LC3[rip]
	call	__assert_fail@PLT
.L7:
	mov	eax, DWORD PTR -4[rbp]
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, DWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	new_socket, .-new_socket
	.section	.rodata
.LC4:
	.string	"!\"FIXME\""
.LC5:
	.string	"c != NULL"
	.align 8
.LC6:
	.string	"failed to connect to server:%s\n"
	.text
	.type	find_or_create_connection, @function
find_or_create_connection:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	DWORD PTR -60[rbp], esi
	mov	rax, QWORD PTR connections[rip+8]
	mov	QWORD PTR -40[rbp], rax
	jmp	.L10
.L22:
	mov	rax, QWORD PTR -40[rbp]
	movzx	edx, WORD PTR 32[rax]
	mov	rax, QWORD PTR -56[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	dx, ax
	jne	.L26
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR 32[rax]
	movzx	eax, ax
	cmp	eax, 2
	je	.L13
	cmp	eax, 10
	je	.L14
	jmp	.L25
.L13:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 32
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 4
	mov	edx, 4
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L27
	mov	rax, QWORD PTR -16[rbp]
	movzx	edx, WORD PTR 2[rax]
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 2[rax]
	cmp	dx, ax
	je	.L28
	jmp	.L27
.L14:
	mov	rax, QWORD PTR -40[rbp]
	add	rax, 32
	mov	QWORD PTR -32[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	lea	rcx, 8[rax]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, 8
	mov	edx, 16
	mov	rsi, rcx
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L29
	mov	rax, QWORD PTR -32[rbp]
	movzx	edx, WORD PTR 2[rax]
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, WORD PTR 2[rax]
	cmp	dx, ax
	je	.L30
	jmp	.L29
.L25:
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 136
	lea	rsi, .LC1[rip]
	lea	rdi, .LC4[rip]
	call	__assert_fail@PLT
.L28:
	nop
	jmp	.L18
.L30:
	nop
.L18:
	mov	rax, QWORD PTR -40[rbp]
	jmp	.L21
.L26:
	nop
	jmp	.L12
.L27:
	nop
	jmp	.L12
.L29:
	nop
.L12:
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -40[rbp], rax
.L10:
	lea	rax, connections[rip]
	cmp	QWORD PTR -40[rbp], rax
	jne	.L22
	mov	edi, 184
	call	malloc@PLT
	mov	QWORD PTR -40[rbp], rax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L23
	lea	rcx, __PRETTY_FUNCTION__.3[rip]
	mov	edx, 144
	lea	rsi, .LC1[rip]
	lea	rdi, .LC5[rip]
	call	__assert_fail@PLT
.L23:
	mov	rax, QWORD PTR cid.2[rip]
	lea	rdx, 1[rax]
	mov	QWORD PTR cid.2[rip], rdx
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 16[rdx], rax
	mov	rax, QWORD PTR server_addr[rip]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	new_socket
	mov	rdx, QWORD PTR -40[rbp]
	mov	DWORD PTR 24[rdx], eax
	mov	rax, QWORD PTR server_addr[rip]
	mov	edx, DWORD PTR 16[rax]
	mov	rax, QWORD PTR server_addr[rip]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR 24[rax]
	mov	rsi, rcx
	mov	edi, eax
	call	connect@PLT
	test	eax, eax
	je	.L24
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC6[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L24:
	mov	edx, DWORD PTR -60[rbp]
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 32[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, DWORD PTR -60[rbp]
	mov	DWORD PTR 160[rax], edx
	mov	rdx, QWORD PTR connections[rip]
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, connections[rip]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR connections[rip], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -40[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 168[rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR 176[rax], 0
	mov	rax, QWORD PTR -40[rbp]
.L21:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	find_or_create_connection, .-find_or_create_connection
	.section	.rodata
.LC7:
	.string	"q->ring.depth != 0"
.LC8:
	.string	"q->ring.elements != NULL"
	.text
	.type	init_queue, @function
init_queue:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	jne	.L32
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 164
	lea	rsi, .LC1[rip]
	lea	rdi, .LC7[rip]
	call	__assert_fail@PLT
.L32:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 16[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	imul	rax, rax, 2072
	mov	rdi, rax
	call	malloc@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 24[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	test	rax, rax
	jne	.L34
	lea	rcx, __PRETTY_FUNCTION__.1[rip]
	mov	edx, 168
	lea	rsi, .LC1[rip]
	lea	rdi, .LC8[rip]
	call	__assert_fail@PLT
.L34:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	init_queue, .-init_queue
	.section	.rodata
.LC9:
	.string	"%ld:%zu:%c:forward\n"
	.text
	.type	dequeue, @function
dequeue:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	mov	QWORD PTR -24[rbp], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	rdx, rax
	je	.L44
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 48[rax]
	cmp	QWORD PTR -24[rbp], rax
	jl	.L45
	cmp	DWORD PTR -12[rbp], 0
	je	.L39
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rdx
	mov	rdx, QWORD PTR 2056[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rcx
	lea	rsi, 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rcx
	mov	rax, QWORD PTR [rax]
	mov	eax, DWORD PTR 24[rax]
	mov	ecx, 0
	mov	edi, eax
	call	send@PLT
	jmp	.L40
.L39:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR 160[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rdi, 32[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rdx
	mov	rdx, QWORD PTR 2056[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rsi
	lea	rsi, 8[rax]
	mov	eax, DWORD PTR listen_fd[rip]
	mov	r9d, ecx
	mov	r8, rdi
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
.L40:
	cmp	DWORD PTR -12[rbp], 0
	je	.L41
	mov	esi, 117
	jmp	.L42
.L41:
	mov	esi, 100
.L42:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	mov	r8d, esi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, rdx
	mov	edx, 0
	div	rcx
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	rdx, rax
	je	.L46
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 40[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rdx
	mov	rdx, QWORD PTR 2064[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rdx
	cmp	QWORD PTR -24[rbp], rax
	jge	.L35
	mov	rax, QWORD PTR -8[rbp]
	mov	rdx, QWORD PTR 48[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rcx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	imul	rax, rax, 2072
	add	rax, rcx
	mov	rcx, QWORD PTR 2064[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 32[rax]
	add	rax, rcx
	sub	rax, QWORD PTR -24[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR 48[rax], rdx
	jmp	.L35
.L44:
	nop
	jmp	.L35
.L45:
	nop
	jmp	.L35
.L46:
	nop
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	dequeue, .-dequeue
	.section	.rodata
.LC10:
	.string	"conn != NULL"
.LC11:
	.string	"%ld:%zu:%c:droplist\n"
.LC12:
	.string	"%ld:%zu:%c:"
.LC13:
	.string	"drop\n"
.LC14:
	.string	"queue\n"
	.text
	.type	enqueue, @function
enqueue:
.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, 224
	mov	QWORD PTR -200[rbp], rdi
	mov	QWORD PTR -208[rbp], rsi
	mov	QWORD PTR -216[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -180[rbp], 128
	cmp	QWORD PTR -208[rbp], 0
	setne	al
	movzx	eax, al
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 0
	jne	.L48
	lea	rcx, -180[rbp]
	jmp	.L49
.L48:
	mov	ecx, 0
.L49:
	cmp	DWORD PTR -172[rbp], 0
	jne	.L50
	lea	rdx, -144[rbp]
	jmp	.L51
.L50:
	mov	edx, 0
.L51:
	mov	rax, QWORD PTR -200[rbp]
	mov	rsi, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 16[rax]
	imul	rax, rax, 2072
	add	rax, rsi
	lea	rsi, 8[rax]
	cmp	DWORD PTR -172[rbp], 0
	je	.L52
	mov	rax, QWORD PTR -208[rbp]
	mov	eax, DWORD PTR 24[rax]
	jmp	.L53
.L52:
	mov	eax, DWORD PTR listen_fd[rip]
.L53:
	mov	r9, rcx
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 2048
	mov	edi, eax
	call	recvfrom@PLT
	mov	QWORD PTR -168[rbp], rax
	cmp	QWORD PTR -168[rbp], 0
	jg	.L54
	mov	eax, 0
	jmp	.L70
.L54:
	cmp	DWORD PTR -172[rbp], 0
	jne	.L56
	mov	edx, DWORD PTR -180[rbp]
	lea	rax, -144[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	find_or_create_connection
	mov	QWORD PTR -208[rbp], rax
.L56:
	cmp	QWORD PTR -208[rbp], 0
	jne	.L57
	lea	rcx, __PRETTY_FUNCTION__.0[rip]
	mov	edx, 209
	lea	rsi, .LC1[rip]
	lea	rdi, .LC10[rip]
	call	__assert_fail@PLT
.L57:
	cmp	DWORD PTR -172[rbp], 0
	je	.L58
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 176[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR 176[rax], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 176[rax]
	jmp	.L59
.L58:
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 168[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR 168[rax], rdx
	mov	rax, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR 168[rax]
.L59:
	mov	QWORD PTR -160[rbp], rax
	mov	rax, QWORD PTR -200[rbp]
	movzx	eax, WORD PTR 72[rax]
	test	ax, ax
	je	.L60
	mov	rax, QWORD PTR -200[rbp]
	movzx	eax, WORD PTR 74[rax]
	movzx	eax, ax
	cmp	QWORD PTR -160[rbp], rax
	jb	.L60
	mov	rax, QWORD PTR -200[rbp]
	movzx	eax, WORD PTR 72[rax]
	movzx	eax, ax
	lea	edx, -1[rax]
	mov	rax, QWORD PTR -200[rbp]
	movsx	rdx, edx
	add	rdx, 32
	movzx	eax, WORD PTR 10[rax+rdx*2]
	movzx	eax, ax
	cmp	QWORD PTR -160[rbp], rax
	ja	.L60
	mov	DWORD PTR -176[rbp], 0
	jmp	.L61
.L65:
	mov	rax, QWORD PTR -200[rbp]
	mov	edx, DWORD PTR -176[rbp]
	movsx	rdx, edx
	add	rdx, 32
	movzx	eax, WORD PTR 10[rax+rdx*2]
	movzx	eax, ax
	cmp	QWORD PTR -160[rbp], rax
	jne	.L62
	cmp	DWORD PTR -172[rbp], 0
	je	.L63
	mov	esi, 100
	jmp	.L64
.L63:
	mov	esi, 117
.L64:
	mov	rax, QWORD PTR -208[rbp]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -216[rbp]
	mov	r8d, esi
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L70
.L62:
	add	DWORD PTR -176[rbp], 1
.L61:
	mov	rax, QWORD PTR -200[rbp]
	movzx	eax, WORD PTR 72[rax]
	movzx	eax, ax
	cmp	DWORD PTR -176[rbp], eax
	jl	.L65
.L60:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 16[rax]
	imul	rax, rax, 2072
	add	rdx, rax
	mov	rax, QWORD PTR -168[rbp]
	mov	QWORD PTR 2056[rdx], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 16[rax]
	imul	rax, rax, 2072
	add	rdx, rax
	mov	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR [rdx], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 16[rax]
	imul	rax, rax, 2072
	add	rdx, rax
	mov	rax, QWORD PTR -216[rbp]
	mov	QWORD PTR 2064[rdx], rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 16[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rcx, QWORD PTR [rax]
	mov	rax, rdx
	mov	edx, 0
	div	rcx
	mov	QWORD PTR -152[rbp], rdx
	cmp	DWORD PTR -172[rbp], 0
	je	.L66
	mov	esi, 100
	jmp	.L67
.L66:
	mov	esi, 117
.L67:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 24[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 16[rax]
	imul	rax, rax, 2072
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR 16[rax]
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -216[rbp]
	mov	r8d, esi
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 8[rax]
	cmp	QWORD PTR -152[rbp], rax
	jne	.L68
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 64[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR 64[rax], rdx
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 5
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	eax, 1
	jmp	.L70
.L68:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 8[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 16[rax]
	cmp	rdx, rax
	jne	.L69
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR 32[rax]
	mov	rax, QWORD PTR -216[rbp]
	add	rdx, rax
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 40[rax]
	add	rdx, rax
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR 48[rax], rdx
.L69:
	mov	rax, QWORD PTR -200[rbp]
	mov	rdx, QWORD PTR -152[rbp]
	mov	QWORD PTR 16[rax], rdx
	mov	rax, QWORD PTR -200[rbp]
	mov	rax, QWORD PTR 56[rax]
	lea	rdx, 1[rax]
	mov	rax, QWORD PTR -200[rbp]
	mov	QWORD PTR 56[rax], rdx
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 6
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	eax, 1
.L70:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L71
	call	__stack_chk_fail@PLT
.L71:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	enqueue, .-enqueue
	.section	.rodata
	.align 8
.LC15:
	.string	"up:\n  forwarded: %lu\n  dropped: %lu\ndown:\n  forwarded: %lu\n  dropped: %lu\n"
	.text
	.type	on_signal, @function
on_signal:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	rdi, QWORD PTR down[rip+64]
	mov	rsi, QWORD PTR down[rip+56]
	mov	rcx, QWORD PTR up[rip+64]
	mov	rdx, QWORD PTR up[rip+56]
	mov	rax, QWORD PTR stderr[rip]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	cmp	DWORD PTR -4[rbp], 2
	jne	.L74
	mov	edi, 0
	call	_exit@PLT
.L74:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	on_signal, .-on_signal
	.section	.rodata
.LC16:
	.string	"%zu"
	.align 8
.LC17:
	.string	"argument to `-b` must be a positive number\n"
	.align 8
.LC18:
	.string	"argument to `-D` must be a positive number\n"
.LC19:
	.string	"%ld"
	.align 8
.LC20:
	.string	"argument to `-i` must be an unsigned number\n"
	.align 8
.LC21:
	.string	"argument to `-p` must be an unsigned number\n"
	.align 8
.LC22:
	.string	"argument to `-P` must be an unsigned number\n"
.LC23:
	.string	"%hu"
	.align 8
.LC24:
	.string	"argument to `-l` must be a port number\n"
	.align 8
.LC25:
	.string	"failed to bind to 0.0.0.0:%u: %s\n"
	.align 8
.LC26:
	.string	"argument to `-d` must be an unsigned number\n"
	.align 8
.LC27:
	.string	"argument to `-D` must be an unsigned number\n"
.LC28:
	.string	"b:B:i:I:p:P:l:d:D:h"
	.align 8
.LC29:
	.string	"mandatory option `-l` is missing\n"
.LC30:
	.string	"missing host and port\n"
.LC31:
	.string	"null"
	.align 8
.LC32:
	.string	"failed to resolve server address:%s:%s:%s\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 272
	mov	DWORD PTR -260[rbp], edi
	mov	QWORD PTR -272[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rsi, on_signal[rip]
	mov	edi, 2
	call	signal@PLT
	lea	rsi, on_signal[rip]
	mov	edi, 1
	call	signal@PLT
	jmp	.L76
.L103:
	mov	eax, DWORD PTR -248[rbp]
	sub	eax, 66
	cmp	eax, 46
	ja	.L77
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L79[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L79[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L79:
	.long	.L88-.L79
	.long	.L77-.L79
	.long	.L87-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L86-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L85-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L84-.L79
	.long	.L77-.L79
	.long	.L83-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L82-.L79
	.long	.L81-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L80-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L77-.L79
	.long	.L78-.L79
	.text
.L84:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, up[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L89
	mov	rax, QWORD PTR up[rip]
	test	rax, rax
	jne	.L76
.L89:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L88:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, down[rip]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	jne	.L91
	mov	rax, QWORD PTR down[rip]
	test	rax, rax
	jne	.L76
.L91:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 43
	mov	esi, 1
	lea	rdi, .LC18[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L81:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, up[rip+40]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L86:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, down[rip+40]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L78:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, up[rip+32]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC21[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L85:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, down[rip+32]
	lea	rsi, .LC19[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L76
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC22[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L80:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -192[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L97
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 39
	mov	esi, 1
	lea	rdi, .LC24[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L97:
	lea	rax, -144[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -144[rbp], 2
	movzx	eax, WORD PTR -192[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -142[rbp], ax
	movzx	eax, WORD PTR -144[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	new_socket
	mov	DWORD PTR listen_fd[rip], eax
	mov	eax, DWORD PTR listen_fd[rip]
	lea	rcx, -144[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	je	.L76
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	movzx	eax, WORD PTR -192[rbp]
	movzx	edx, ax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L83:
	movzx	eax, WORD PTR up[rip+72]
	cmp	ax, 63
	jbe	.L99
	jmp	.L76
.L99:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -192[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L100
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC26[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L100:
	movzx	eax, WORD PTR up[rip+72]
	lea	edx, 1[rax]
	mov	WORD PTR up[rip+72], dx
	movzx	edx, ax
	movzx	eax, WORD PTR -192[rbp]
	movsx	rdx, edx
	add	rdx, 32
	lea	rcx, [rdx+rdx]
	lea	rdx, up[rip+10]
	mov	WORD PTR [rcx+rdx], ax
	jmp	.L76
.L87:
	movzx	eax, WORD PTR down[rip+72]
	cmp	ax, 63
	jbe	.L101
	jmp	.L76
.L101:
	mov	rax, QWORD PTR optarg[rip]
	lea	rdx, -192[rbp]
	lea	rsi, .LC23[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	cmp	eax, 1
	je	.L102
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 44
	mov	esi, 1
	lea	rdi, .LC27[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L102:
	movzx	eax, WORD PTR down[rip+72]
	lea	edx, 1[rax]
	mov	WORD PTR down[rip+72], dx
	movzx	edx, ax
	movzx	eax, WORD PTR -192[rbp]
	movsx	rdx, edx
	add	rdx, 32
	lea	rcx, [rdx+rdx]
	lea	rdx, down[rip+10]
	mov	WORD PTR [rcx+rdx], ax
	jmp	.L76
.L82:
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 0
	mov	rdi, rax
	call	usage
	jmp	.L76
.L77:
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR [rax]
	mov	esi, 1
	mov	rdi, rax
	call	usage
	nop
.L76:
	mov	rcx, QWORD PTR -272[rbp]
	mov	eax, DWORD PTR -260[rbp]
	lea	rdx, .LC28[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -248[rbp], eax
	cmp	DWORD PTR -248[rbp], -1
	jne	.L103
	mov	eax, DWORD PTR optind[rip]
	sub	DWORD PTR -260[rbp], eax
	mov	eax, DWORD PTR optind[rip]
	cdqe
	sal	rax, 3
	add	QWORD PTR -272[rbp], rax
	mov	eax, DWORD PTR listen_fd[rip]
	cmp	eax, -1
	jne	.L104
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 33
	mov	esi, 1
	lea	rdi, .LC29[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L104:
	cmp	DWORD PTR -260[rbp], 2
	je	.L105
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC30[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L105:
	lea	rax, -192[rbp]
	mov	edx, 48
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -188[rbp], 2
	mov	DWORD PTR -184[rbp], 2
	mov	DWORD PTR -180[rbp], 17
	mov	DWORD PTR -192[rbp], 1057
	mov	rax, QWORD PTR -272[rbp]
	add	rax, 8
	mov	rsi, QWORD PTR [rax]
	mov	rax, QWORD PTR -272[rbp]
	mov	rax, QWORD PTR [rax]
	lea	rdx, -192[rbp]
	lea	rcx, server_addr[rip]
	mov	rdi, rax
	call	getaddrinfo@PLT
	mov	DWORD PTR -244[rbp], eax
	cmp	DWORD PTR -244[rbp], 0
	jne	.L106
	mov	rax, QWORD PTR server_addr[rip]
	test	rax, rax
	jne	.L107
.L106:
	cmp	DWORD PTR -244[rbp], 0
	je	.L108
	mov	eax, DWORD PTR -244[rbp]
	mov	edi, eax
	call	gai_strerror@PLT
	jmp	.L109
.L108:
	lea	rax, .LC31[rip]
.L109:
	mov	rdx, QWORD PTR -272[rbp]
	add	rdx, 8
	mov	rcx, QWORD PTR [rdx]
	mov	rdx, QWORD PTR -272[rbp]
	mov	rdx, QWORD PTR [rdx]
	mov	rdi, QWORD PTR stderr[rip]
	mov	r8, rax
	lea	rsi, .LC32[rip]
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L107:
	lea	rdi, up[rip]
	call	init_queue
	lea	rdi, down[rip]
	call	init_queue
.L124:
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 380 "the_stack_data/928386.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -240[rbp], edx
	mov	DWORD PTR -236[rbp], eax
	mov	eax, DWORD PTR listen_fd[rip]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	eax, DWORD PTR listen_fd[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	eax, DWORD PTR listen_fd[rip]
	add	eax, 1
	mov	DWORD PTR -252[rbp], eax
	mov	rax, QWORD PTR connections[rip+8]
	mov	QWORD PTR -224[rbp], rax
	jmp	.L110
.L112:
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	mov	esi, eax
	movsx	rax, esi
	mov	rdi, QWORD PTR -144[rbp+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR 24[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	or	rdi, rax
	mov	rdx, rdi
	movsx	rax, esi
	mov	QWORD PTR -144[rbp+rax*8], rdx
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR 24[rax]
	cmp	DWORD PTR -252[rbp], eax
	jg	.L111
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR 24[rax]
	add	eax, 1
	mov	DWORD PTR -252[rbp], eax
.L111:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -224[rbp], rax
.L110:
	lea	rax, connections[rip]
	cmp	QWORD PTR -224[rbp], rax
	jne	.L112
	call	gettime
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	add	rax, 1000000000
	mov	QWORD PTR -216[rbp], rax
	mov	rdx, QWORD PTR up[rip+8]
	mov	rax, QWORD PTR up[rip+16]
	cmp	rdx, rax
	je	.L113
	mov	rax, QWORD PTR up[rip+48]
	cmp	QWORD PTR -216[rbp], rax
	jle	.L113
	mov	rax, QWORD PTR up[rip+48]
	mov	QWORD PTR -216[rbp], rax
.L113:
	mov	rdx, QWORD PTR down[rip+8]
	mov	rax, QWORD PTR down[rip+16]
	cmp	rdx, rax
	je	.L114
	mov	rax, QWORD PTR down[rip+48]
	cmp	QWORD PTR -216[rbp], rax
	jle	.L114
	mov	rax, QWORD PTR down[rip+48]
	mov	QWORD PTR -216[rbp], rax
.L114:
	mov	rax, QWORD PTR -216[rbp]
	cmp	rax, QWORD PTR -208[rbp]
	jg	.L115
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	jmp	.L116
.L115:
	mov	rax, QWORD PTR -216[rbp]
	sub	rax, QWORD PTR -208[rbp]
	mov	QWORD PTR -200[rbp], rax
	mov	rcx, QWORD PTR -200[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	mov	QWORD PTR -192[rbp], rax
	mov	rcx, QWORD PTR -200[rbp]
	movabs	rdx, 4835703278458516699
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 18
	mov	rdx, rcx
	sar	rdx, 63
	sub	rax, rdx
	imul	rdx, rax, 1000000
	mov	rax, rcx
	sub	rax, rdx
	mov	QWORD PTR -184[rbp], rax
.L116:
	lea	rdx, -192[rbp]
	lea	rsi, -144[rbp]
	mov	eax, DWORD PTR -252[rbp]
	mov	r8, rdx
	mov	ecx, 0
	mov	edx, 0
	mov	edi, eax
	call	select@PLT
	test	eax, eax
	jg	.L117
	mov	eax, 0
	mov	ecx, 16
	lea	rdx, -144[rbp]
	mov	rdi, rdx
#APP
# 402 "the_stack_data/928386.c" 1
	cld; rep; stosq
# 0 "" 2
#NO_APP
	mov	eax, edi
	mov	edx, ecx
	mov	DWORD PTR -232[rbp], edx
	mov	DWORD PTR -228[rbp], eax
.L117:
	call	gettime
	mov	QWORD PTR -208[rbp], rax
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, rax
	mov	esi, 1
	lea	rdi, up[rip]
	call	dequeue
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, rax
	mov	esi, 0
	lea	rdi, down[rip]
	call	dequeue
	mov	eax, DWORD PTR listen_fd[rip]
	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 listen_fd[rip]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L118
	nop
.L119:
	mov	rax, QWORD PTR -208[rbp]
	mov	rdx, rax
	mov	esi, 0
	lea	rdi, up[rip]
	call	enqueue
	test	eax, eax
	jne	.L119
.L118:
	mov	rax, QWORD PTR connections[rip+8]
	mov	QWORD PTR -224[rbp], rax
	jmp	.L120
.L123:
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR 24[rax]
	lea	edx, 63[rax]
	test	eax, eax
	cmovs	eax, edx
	sar	eax, 6
	cdqe
	mov	rsi, QWORD PTR -144[rbp+rax*8]
	mov	rax, QWORD PTR -224[rbp]
	mov	eax, DWORD PTR 24[rax]
	cdq
	shr	edx, 26
	add	eax, edx
	and	eax, 63
	sub	eax, edx
	mov	edx, 1
	mov	ecx, eax
	sal	rdx, cl
	mov	rax, rdx
	and	rax, rsi
	test	rax, rax
	je	.L121
	nop
.L122:
	mov	rdx, QWORD PTR -208[rbp]
	mov	rax, QWORD PTR -224[rbp]
	mov	rsi, rax
	lea	rdi, down[rip]
	call	enqueue
	test	eax, eax
	jne	.L122
.L121:
	mov	rax, QWORD PTR -224[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -224[rbp], rax
.L120:
	lea	rax, connections[rip]
	cmp	QWORD PTR -224[rbp], rax
	jne	.L123
	jmp	.L124
	.cfi_endproc
.LFE14:
	.size	main, .-main
	.section	.rodata
	.align 8
	.type	__PRETTY_FUNCTION__.4, @object
	.size	__PRETTY_FUNCTION__.4, 11
__PRETTY_FUNCTION__.4:
	.string	"new_socket"
	.align 16
	.type	__PRETTY_FUNCTION__.3, @object
	.size	__PRETTY_FUNCTION__.3, 26
__PRETTY_FUNCTION__.3:
	.string	"find_or_create_connection"
	.local	cid.2
	.comm	cid.2,8,8
	.align 8
	.type	__PRETTY_FUNCTION__.1, @object
	.size	__PRETTY_FUNCTION__.1, 11
__PRETTY_FUNCTION__.1:
	.string	"init_queue"
	.align 8
	.type	__PRETTY_FUNCTION__.0, @object
	.size	__PRETTY_FUNCTION__.0, 8
__PRETTY_FUNCTION__.0:
	.string	"enqueue"
	.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	"928386.c"
	.text
	.global	up
	.data
	.align	3
	.type	up, %object
	.size	up, 192
up:
	.word	16
	.space	12
	.word	0
	.word	0
	.word	10
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.short	0
	.space	134
	.global	down
	.align	3
	.type	down, %object
	.size	down, 192
down:
	.word	16
	.space	12
	.word	0
	.word	0
	.word	10
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.word	0
	.short	0
	.space	134
	.align	2
	.type	listen_fd, %object
	.size	listen_fd, 4
listen_fd:
	.word	-1
	.local	server_addr
	.comm	server_addr,4,4
	.align	3
	.type	connections, %object
	.size	connections, 168
connections:
	.word	connections
	.word	connections
	.space	160
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: %s [options] <upstream-host> <upstream-port>"
	.ascii	"\012\012Options:\012  -b <buffersize> size of the b"
	.ascii	"uffer for packets upstream (default: 16)\012  -B <b"
	.ascii	"uffersize> size of the buffer for packets downstrea"
	.ascii	"m (default: 16)\012  -i <interval>   delay (in micr"
	.ascii	"oseconds) to insert after sending one packet\012   "
	.ascii	"               upstream (default: 10)\012  -I <inte"
	.ascii	"rval>   delay (in microseconds) to insert after sen"
	.ascii	"ding one packet\012                  downstream (de"
	.ascii	"fault: 10)\012  -p <interval>   propagation delay ("
	.ascii	"in microseconds) upstream (default: 0)\012  -P <int"
	.ascii	"erval>   propagation delay (in microseconds) downst"
	.ascii	"ream (default: 0)\012  -l <port>       port number "
	.ascii	"to which the command binds\012  -d <packetnum>  pac"
	.ascii	"ket number in connection to drop upstream\012  -D <"
	.ascii	"packetnum>  packet number in connection to drop dow"
	.ascii	"nstream\012  -h              prints this help\012\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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	r1, [fp, #-8]
	ldr	r0, .L2
	bl	printf
	ldr	r0, [fp, #-12]
	bl	exit
.L3:
	.align	2
.L2:
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	gettime, %function
gettime:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #16
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	ldr	r3, [fp, #-40]
	mov	r4, r3
	asr	r5, r4, #31
	mov	r2, r4
	mov	r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #5
	orr	r1, r1, r2, lsr #27
	lsl	r0, r2, #5
	mov	r2, r0
	mov	r3, r1
	subs	r2, r2, r4
	sbc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #9
	orr	r1, r1, r2, lsr #23
	lsl	r0, r2, #9
	mov	r2, r0
	mov	r3, r1
	adds	r2, r2, r4
	adc	r3, r3, r5
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #6
	orr	r1, r1, r2, lsr #26
	lsl	r0, r2, #6
	subs	r0, r0, r2
	sbc	r1, r1, r3
	adds	r6, r0, r4
	adc	r7, r1, r5
	ldr	r3, [fp, #-36]
	mov	r2, r3
	asr	r3, r2, #31
	adds	r8, r6, r2
	adc	r9, r7, r3
	mov	r2, r8
	mov	r3, r9
	ldr	r1, .L7
	ldr	r0, [r1]
	ldr	r1, [fp, #-32]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC1
	.size	gettime, .-gettime
	.section	.rodata
	.align	2
.LC2:
	.ascii	"the_stack_data/928386.c\000"
	.align	2
.LC3:
	.ascii	"s != -1\000"
	.align	2
.LC4:
	.ascii	"flags != -1\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	new_socket, %function
new_socket:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	mov	r2, #17
	mov	r1, #2
	ldr	r0, [fp, #-16]
	bl	socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L10
	ldr	r3, .L13
	mov	r2, #109
	ldr	r1, .L13+4
	ldr	r0, .L13+8
	bl	__assert_fail
.L10:
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-12]
	bl	fcntl
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L11
	ldr	r3, .L13
	mov	r2, #111
	ldr	r1, .L13+4
	ldr	r0, .L13+12
	bl	__assert_fail
.L11:
	ldr	r3, [fp, #-8]
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-12]
	bl	fcntl
	ldr	r3, [fp, #-12]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	__PRETTY_FUNCTION__.7064
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	new_socket, .-new_socket
	.section	.rodata
	.align	2
.LC5:
	.ascii	"!\"FIXME\"\000"
	.align	2
.LC6:
	.ascii	"c != NULL\000"
	.align	2
.LC7:
	.ascii	"failed to connect to server:%s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_or_create_connection, %function
find_or_create_connection:
	@ 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, .L37
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
	b	.L16
.L28:
	ldr	r3, [fp, #-32]
	ldrh	r2, [r3, #16]
	ldr	r3, [fp, #-40]
	ldrh	r3, [r3]
	cmp	r2, r3
	bne	.L32
	ldr	r3, [fp, #-32]
	ldrh	r3, [r3, #16]
	cmp	r3, #2
	beq	.L19
	cmp	r3, #10
	beq	.L20
	b	.L31
.L19:
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-20]
	add	r0, r3, #4
	ldr	r3, [fp, #-16]
	add	r3, r3, #4
	mov	r2, #4
	mov	r1, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L33
	ldr	r3, [fp, #-20]
	ldrh	r2, [r3, #2]
	ldr	r3, [fp, #-16]
	ldrh	r3, [r3, #2]
	cmp	r2, r3
	beq	.L34
	b	.L33
.L20:
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	str	r3, [fp, #-28]
	ldr	r3, [fp, #-40]
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-28]
	add	r0, r3, #8
	ldr	r3, [fp, #-24]
	add	r3, r3, #8
	mov	r2, #16
	mov	r1, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L35
	ldr	r3, [fp, #-28]
	ldrh	r2, [r3, #2]
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3, #2]
	cmp	r2, r3
	beq	.L36
	b	.L35
.L31:
	ldr	r3, .L37+4
	mov	r2, #136
	ldr	r1, .L37+8
	ldr	r0, .L37+12
	bl	__assert_fail
.L34:
	nop
	b	.L24
.L36:
	nop
.L24:
	ldr	r3, [fp, #-32]
	b	.L27
.L32:
	nop
	b	.L18
.L33:
	nop
	b	.L18
.L35:
	nop
.L18:
	ldr	r3, [fp, #-32]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-32]
.L16:
	ldr	r3, [fp, #-32]
	ldr	r2, .L37
	cmp	r3, r2
	bne	.L28
	mov	r0, #168
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L29
	ldr	r3, .L37+4
	mov	r2, #144
	ldr	r1, .L37+8
	ldr	r0, .L37+16
	bl	__assert_fail
.L29:
	ldr	r3, .L37+20
	ldr	r3, [r3]
	add	r2, r3, #1
	ldr	r1, .L37+20
	str	r2, [r1]
	ldr	r2, [fp, #-32]
	str	r3, [r2, #8]
	ldr	r3, .L37+24
	ldr	r3, [r3]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	new_socket
	mov	r2, r0
	ldr	r3, [fp, #-32]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-32]
	ldr	r0, [r3, #12]
	ldr	r3, .L37+24
	ldr	r3, [r3]
	ldr	r1, [r3, #20]
	ldr	r3, .L37+24
	ldr	r3, [r3]
	ldr	r3, [r3, #16]
	mov	r2, r3
	bl	connect
	mov	r3, r0
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L37+28
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L37+32
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-32]
	add	r3, r3, #16
	ldr	r2, [fp, #-44]
	ldr	r1, [fp, #-40]
	mov	r0, r3
	bl	memcpy
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-44]
	str	r2, [r3, #144]
	ldr	r3, .L37
	ldr	r2, [r3]
	ldr	r3, [fp, #-32]
	str	r2, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, .L37
	str	r2, [r3, #4]
	ldr	r2, .L37
	ldr	r3, [fp, #-32]
	str	r3, [r2]
	ldr	r3, [fp, #-32]
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	str	r2, [r3, #4]
	ldr	r1, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #152]
	str	r3, [r1, #156]
	ldr	r1, [fp, #-32]
	mov	r2, #0
	mov	r3, #0
	str	r2, [r1, #160]
	str	r3, [r1, #164]
	ldr	r3, [fp, #-32]
.L27:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L38:
	.align	2
.L37:
	.word	connections
	.word	__PRETTY_FUNCTION__.7081
	.word	.LC2
	.word	.LC5
	.word	.LC6
	.word	cid.7071
	.word	server_addr
	.word	stderr
	.word	.LC7
	.size	find_or_create_connection, .-find_or_create_connection
	.section	.rodata
	.align	2
.LC8:
	.ascii	"q->ring.depth != 0\000"
	.align	2
.LC9:
	.ascii	"q->ring.elements != NULL\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	init_queue, %function
init_queue:
	@ 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]
	cmp	r3, #0
	bne	.L40
	ldr	r3, .L43
	mov	r2, #164
	ldr	r1, .L43+4
	ldr	r0, .L43+8
	bl	__assert_fail
.L40:
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r3, [fp, #-8]
	mov	r2, #0
	str	r2, [r3, #8]
	ldr	r3, [fp, #-8]
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-8]
	str	r2, [r3, #12]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	cmp	r3, #0
	bne	.L42
	ldr	r3, .L43
	mov	r2, #168
	ldr	r1, .L43+4
	ldr	r0, .L43+12
	bl	__assert_fail
.L42:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	__PRETTY_FUNCTION__.7088
	.word	.LC2
	.word	.LC8
	.word	.LC9
	.size	init_queue, .-init_queue
	.section	.rodata
	.align	2
.LC10:
	.ascii	"%lld:%zu:%c:forward\012\000"
	.global	__aeabi_uidivmod
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dequeue, %function
dequeue:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #44
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	str	r2, [fp, #-52]
	str	r3, [fp, #-48]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	beq	.L54
	ldr	r3, [fp, #-40]
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L55
	ldr	r3, [fp, #-44]
	cmp	r3, #0
	beq	.L49
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	ip, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r0, r3, #4
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [r3, #2052]
	mov	r3, #0
	mov	r1, r0
	mov	r0, ip
	bl	send
	b	.L50
.L49:
	ldr	r3, .L57
	ldr	r10, [r3]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	lr, r3, #4
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	ip, [r3, #2052]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3]
	add	r0, r3, #16
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #144]
	str	r3, [sp, #4]
	str	r0, [sp]
	mov	r3, #0
	mov	r2, ip
	mov	r1, lr
	mov	r0, r10
	bl	sendto
.L50:
	ldr	r3, .L57+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-44]
	cmp	r2, #0
	beq	.L51
	mov	r2, #117
	b	.L52
.L51:
	mov	r2, #100
.L52:
	str	r2, [sp, #4]
	str	r3, [sp]
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	ldr	r1, .L57+8
	bl	fprintf
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #4]
	add	r2, r3, #1
	ldr	r3, [fp, #-40]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	mov	r2, r3
	ldr	r3, [fp, #-40]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-40]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	beq	.L56
	ldr	r3, [fp, #-40]
	add	r1, r3, #24
	ldmia	r1, {r0-r1}
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	adds	ip, r0, r2
	str	ip, [fp, #-60]
	adc	r3, r1, r3
	str	r3, [fp, #-56]
	ldr	r3, [fp, #-40]
	sub	r2, fp, #60
	ldmia	r2, {r1-r2}
	str	r1, [r3, #32]
	str	r2, [r3, #36]
	ldr	r3, [fp, #-40]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r0, [r3, #2056]
	ldr	r1, [r3, #2060]
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	cmp	r2, r4
	sbcs	r3, r3, r5
	bge	.L45
	ldr	r3, [fp, #-40]
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	ldr	r3, [fp, #-40]
	ldr	ip, [r3, #12]
	ldr	r3, [fp, #-40]
	ldr	r2, [r3, #4]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, ip, r3
	ldr	r4, [r3, #2056]
	ldr	r5, [r3, #2060]
	ldr	r3, [fp, #-40]
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	adds	r8, r4, r2
	adc	r9, r5, r3
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	subs	r6, r8, r2
	sbc	r7, r9, r3
	adds	r3, r0, r6
	str	r3, [fp, #-68]
	adc	r3, r1, r7
	str	r3, [fp, #-64]
	ldr	r3, [fp, #-40]
	sub	r2, fp, #68
	ldmia	r2, {r1-r2}
	str	r1, [r3, #32]
	str	r2, [r3, #36]
	b	.L45
.L54:
	nop
	b	.L45
.L55:
	nop
	b	.L45
.L56:
	nop
.L45:
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L58:
	.align	2
.L57:
	.word	listen_fd
	.word	stderr
	.word	.LC10
	.size	dequeue, .-dequeue
	.section	.rodata
	.align	2
.LC11:
	.ascii	"conn != NULL\000"
	.align	2
.LC12:
	.ascii	"%lld:%zu:%c:droplist\012\000"
	.align	2
.LC13:
	.ascii	"%lld:%zu:%c:\000"
	.align	2
.LC14:
	.ascii	"drop\012\000"
	.align	2
.LC15:
	.ascii	"queue\012\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enqueue, %function
enqueue:
	@ args = 0, pretend = 0, frame = 208
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #216
	str	r0, [fp, #-200]
	str	r1, [fp, #-204]
	str	r2, [fp, #-212]
	str	r3, [fp, #-208]
	ldr	r3, .L84
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #128
	str	r3, [fp, #-192]
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r3, r3, #255
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	beq	.L60
	ldr	r3, [fp, #-204]
	ldr	r0, [r3, #12]
	b	.L61
.L60:
	ldr	r3, .L84+4
	ldr	r0, [r3]
.L61:
	ldr	r3, [fp, #-200]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-200]
	ldr	r2, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	add	r1, r3, #4
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bne	.L62
	sub	r2, fp, #160
	b	.L63
.L62:
	mov	r2, #0
.L63:
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bne	.L64
	sub	r3, fp, #192
	b	.L65
.L64:
	mov	r3, #0
.L65:
	str	r3, [sp, #4]
	str	r2, [sp]
	mov	r3, #0
	mov	r2, #2048
	bl	recvfrom
	str	r0, [fp, #-180]
	ldr	r3, [fp, #-180]
	cmp	r3, #0
	bgt	.L66
	mov	r3, #0
	b	.L82
.L66:
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	bne	.L68
	ldr	r3, [fp, #-192]
	sub	r2, fp, #160
	mov	r1, r3
	mov	r0, r2
	bl	find_or_create_connection
	str	r0, [fp, #-204]
.L68:
	ldr	r3, [fp, #-204]
	cmp	r3, #0
	bne	.L69
	ldr	r3, .L84+8
	mov	r2, #209
	ldr	r1, .L84+12
	ldr	r0, .L84+16
	bl	__assert_fail
.L69:
	ldr	r3, [fp, #-184]
	cmp	r3, #0
	beq	.L70
	ldr	r3, [fp, #-204]
	add	r3, r3, #160
	ldmia	r3, {r2-r3}
	adds	r8, r2, #1
	adc	r9, r3, #0
	ldr	r3, [fp, #-204]
	str	r8, [r3, #160]
	str	r9, [r3, #164]
	ldr	r3, [fp, #-204]
	add	r3, r3, #160
	ldmia	r3, {r2-r3}
	b	.L71
.L70:
	ldr	r3, [fp, #-204]
	add	r3, r3, #152
	ldmia	r3, {r2-r3}
	adds	r6, r2, #1
	adc	r7, r3, #0
	ldr	r3, [fp, #-204]
	str	r6, [r3, #152]
	str	r7, [r3, #156]
	ldr	r3, [fp, #-204]
	add	r3, r3, #152
	ldmia	r3, {r2-r3}
.L71:
	str	r2, [fp, #-172]
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-200]
	ldrh	r3, [r3, #56]
	cmp	r3, #0
	beq	.L72
	ldr	r3, [fp, #-200]
	ldrh	r1, [r3, #58]
	mov	r3, r1
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #172
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bcc	.L72
	ldr	r3, [fp, #-200]
	ldrh	r3, [r3, #56]
	sub	r3, r3, #1
	ldr	r2, [fp, #-200]
	add	r3, r3, #28
	lsl	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #2
	ldrh	r1, [r3]
	mov	r3, r1
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #172
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bhi	.L72
	mov	r3, #0
	str	r3, [fp, #-188]
	b	.L73
.L77:
	ldr	r2, [fp, #-200]
	ldr	r3, [fp, #-188]
	add	r3, r3, #28
	lsl	r3, r3, #1
	add	r3, r2, r3
	add	r3, r3, #2
	ldrh	r1, [r3]
	mov	r3, r1
	mov	r2, r3
	mov	r3, #0
	sub	r1, fp, #172
	ldmia	r1, {r0-r1}
	cmp	r1, r3
	cmpeq	r0, r2
	bne	.L74
	ldr	r3, .L84+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-204]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-184]
	cmp	r2, #0
	beq	.L75
	mov	r2, #100
	b	.L76
.L75:
	mov	r2, #117
.L76:
	str	r2, [sp, #4]
	str	r3, [sp]
	sub	r3, fp, #212
	ldmia	r3, {r2-r3}
	ldr	r1, .L84+24
	bl	fprintf
	mov	r3, #1
	b	.L82
.L74:
	ldr	r3, [fp, #-188]
	add	r3, r3, #1
	str	r3, [fp, #-188]
.L73:
	ldr	r3, [fp, #-200]
	ldrh	r3, [r3, #56]
	mov	r2, r3
	ldr	r3, [fp, #-188]
	cmp	r3, r2
	blt	.L77
.L72:
	ldr	r3, [fp, #-200]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-200]
	ldr	r2, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-180]
	str	r2, [r3, #2052]
	ldr	r3, [fp, #-200]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-200]
	ldr	r2, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r2, [fp, #-204]
	str	r2, [r3]
	ldr	r3, [fp, #-200]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-200]
	ldr	r2, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r1, r1, r3
	sub	r3, fp, #212
	ldmia	r3, {r2-r3}
	str	r2, [r1, #2056]
	str	r3, [r1, #2060]
	ldr	r3, [fp, #-200]
	ldr	r3, [r3, #8]
	add	r2, r3, #1
	ldr	r3, [fp, #-200]
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_uidivmod
	mov	r3, r1
	str	r3, [fp, #-176]
	ldr	r3, .L84+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-200]
	ldr	r1, [r3, #12]
	ldr	r3, [fp, #-200]
	ldr	r2, [r3, #8]
	mov	r3, r2
	lsl	r3, r3, #7
	add	r3, r3, r2
	lsl	r3, r3, #4
	add	r3, r1, r3
	ldr	r3, [r3]
	ldr	r3, [r3, #8]
	ldr	r2, [fp, #-184]
	cmp	r2, #0
	beq	.L78
	mov	r2, #100
	b	.L79
.L78:
	mov	r2, #117
.L79:
	str	r2, [sp, #4]
	str	r3, [sp]
	sub	r3, fp, #212
	ldmia	r3, {r2-r3}
	ldr	r1, .L84+28
	bl	fprintf
	ldr	r3, [fp, #-200]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-176]
	cmp	r2, r3
	bne	.L80
	ldr	r3, [fp, #-200]
	add	r3, r3, #48
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-220]
	adc	r3, r3, #0
	str	r3, [fp, #-216]
	ldr	r3, [fp, #-200]
	sub	r2, fp, #220
	ldmia	r2, {r1-r2}
	str	r1, [r3, #48]
	str	r2, [r3, #52]
	ldr	r3, .L84+20
	ldr	r3, [r3]
	mov	r2, #5
	mov	r1, #1
	ldr	r0, .L84+32
	bl	fwrite
	mov	r3, #1
	b	.L82
.L80:
	ldr	r3, [fp, #-200]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-200]
	ldr	r3, [r3, #8]
	cmp	r2, r3
	bne	.L81
	ldr	r3, [fp, #-200]
	add	r1, r3, #16
	ldmia	r1, {r0-r1}
	sub	r3, fp, #212
	ldmia	r3, {r2-r3}
	adds	r4, r0, r2
	adc	r5, r1, r3
	ldr	r3, [fp, #-200]
	add	r3, r3, #24
	ldmia	r3, {r2-r3}
	adds	r1, r4, r2
	str	r1, [fp, #-228]
	adc	r3, r5, r3
	str	r3, [fp, #-224]
	ldr	r3, [fp, #-200]
	sub	r2, fp, #228
	ldmia	r2, {r1-r2}
	str	r1, [r3, #32]
	str	r2, [r3, #36]
.L81:
	ldr	r3, [fp, #-200]
	ldr	r2, [fp, #-176]
	str	r2, [r3, #8]
	ldr	r3, [fp, #-200]
	add	r3, r3, #40
	ldmia	r3, {r2-r3}
	adds	r1, r2, #1
	str	r1, [fp, #-236]
	adc	r3, r3, #0
	str	r3, [fp, #-232]
	ldr	r3, [fp, #-200]
	sub	r2, fp, #236
	ldmia	r2, {r1-r2}
	str	r1, [r3, #40]
	str	r2, [r3, #44]
	ldr	r3, .L84+20
	ldr	r3, [r3]
	mov	r2, #6
	mov	r1, #1
	ldr	r0, .L84+36
	bl	fwrite
	mov	r3, #1
.L82:
	ldr	r2, .L84
	ldr	r1, [r2]
	ldr	r2, [fp, #-32]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, fp, pc}
.L85:
	.align	2
.L84:
	.word	.LC16
	.word	listen_fd
	.word	__PRETTY_FUNCTION__.7103
	.word	.LC2
	.word	.LC11
	.word	stderr
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	enqueue, .-enqueue
	.section	.rodata
	.align	2
.LC17:
	.ascii	"up:\012  forwarded: %llu\012  dropped: %llu\012down"
	.ascii	":\012  forwarded: %llu\012  dropped: %llu\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	on_signal, %function
on_signal:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	ldr	r3, .L89
	ldr	ip, [r3]
	ldr	r3, .L89+4
	add	r7, r3, #40
	ldmia	r7, {r6-r7}
	ldr	r3, .L89+4
	add	r3, r3, #48
	ldmia	r3, {r2-r3}
	ldr	r1, .L89+8
	add	r1, r1, #40
	ldmia	r1, {r0-r1}
	ldr	lr, .L89+8
	add	r5, lr, #48
	ldmia	r5, {r4-r5}
	str	r4, [sp, #16]
	str	r5, [sp, #20]
	str	r0, [sp, #8]
	str	r1, [sp, #12]
	stm	sp, {r2-r3}
	mov	r2, r6
	mov	r3, r7
	ldr	r1, .L89+12
	mov	r0, ip
	bl	fprintf
	ldr	r3, [fp, #-24]
	cmp	r3, #2
	bne	.L88
	mov	r0, #0
	bl	_exit
.L88:
	nop
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L90:
	.align	2
.L89:
	.word	stderr
	.word	up
	.word	down
	.word	.LC17
	.size	on_signal, .-on_signal
	.section	.rodata
	.align	2
.LC18:
	.ascii	"%zu\000"
	.align	2
.LC19:
	.ascii	"argument to `-b` must be a positive number\012\000"
	.align	2
.LC20:
	.ascii	"argument to `-D` must be a positive number\012\000"
	.align	2
.LC21:
	.ascii	"%lld\000"
	.align	2
.LC22:
	.ascii	"argument to `-i` must be an unsigned number\012\000"
	.align	2
.LC23:
	.ascii	"argument to `-p` must be an unsigned number\012\000"
	.align	2
.LC24:
	.ascii	"argument to `-P` must be an unsigned number\012\000"
	.align	2
.LC25:
	.ascii	"%hu\000"
	.align	2
.LC26:
	.ascii	"argument to `-l` must be a port number\012\000"
	.align	2
.LC27:
	.ascii	"failed to bind to 0.0.0.0:%u: %s\012\000"
	.align	2
.LC28:
	.ascii	"argument to `-d` must be an unsigned number\012\000"
	.align	2
.LC29:
	.ascii	"argument to `-D` must be an unsigned number\012\000"
	.align	2
.LC30:
	.ascii	"b:B:i:I:p:P:l:d:D:h\000"
	.align	2
.LC31:
	.ascii	"mandatory option `-l` is missing\012\000"
	.align	2
.LC32:
	.ascii	"missing host and port\012\000"
	.align	2
.LC33:
	.ascii	"null\000"
	.align	2
.LC34:
	.ascii	"failed to resolve server address:%s:%s:%s\012\000"
	.global	__aeabi_ldivmod
	.align	2
.LC35:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 232
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #240
	str	r0, [fp, #-248]
	str	r1, [fp, #-252]
	ldr	r3, .L146+8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	ldr	r1, .L146+12
	mov	r0, #2
	bl	signal
	ldr	r1, .L146+12
	mov	r0, #1
	bl	signal
	b	.L92
.L119:
	ldr	r3, [fp, #-228]
	sub	r3, r3, #66
	cmp	r3, #46
	ldrls	pc, [pc, r3, asl #2]
	b	.L93
.L95:
	.word	.L104
	.word	.L93
	.word	.L103
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L102
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L101
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L100
	.word	.L93
	.word	.L99
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L98
	.word	.L97
	.word	.L93
	.word	.L93
	.word	.L96
	.word	.L93
	.word	.L93
	.word	.L93
	.word	.L94
.L100:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	ldr	r2, .L146+20
	ldr	r1, .L146+24
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L105
	ldr	r3, .L146+20
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L92
.L105:
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L146+32
	bl	fwrite
	mov	r0, #1
	bl	exit
.L104:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	ldr	r2, .L146+36
	ldr	r1, .L146+24
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	bne	.L107
	ldr	r3, .L146+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L92
.L107:
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #43
	mov	r1, #1
	ldr	r0, .L146+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L97:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	ldr	r2, .L146+44
	ldr	r1, .L146+48
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L92
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L146+52
	bl	fwrite
	mov	r0, #1
	bl	exit
.L102:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	ldr	r2, .L146+56
	ldr	r1, .L146+48
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L92
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L146+52
	bl	fwrite
	mov	r0, #1
	bl	exit
.L94:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	ldr	r2, .L146+60
	ldr	r1, .L146+48
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L92
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L146+64
	bl	fwrite
	mov	r0, #1
	bl	exit
.L101:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	ldr	r2, .L146+68
	ldr	r1, .L146+48
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L92
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L146+72
	bl	fwrite
	mov	r0, #1
	bl	exit
.L96:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	sub	r2, fp, #184
	ldr	r1, .L146+76
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L113
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #39
	mov	r1, #1
	ldr	r0, .L146+80
	bl	fwrite
	mov	r0, #1
	bl	exit
.L113:
	sub	r3, fp, #152
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-152]	@ movhi
	ldrh	r3, [fp, #-184]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-150]	@ movhi
	ldrh	r3, [fp, #-152]
	mov	r0, r3
	bl	new_socket
	mov	r3, r0
	ldr	r2, .L146+84
	str	r3, [r2]
	ldr	r3, .L146+84
	ldr	r3, [r3]
	sub	r1, fp, #152
	mov	r2, #16
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	beq	.L92
	ldr	r3, .L146+28
	ldr	r4, [r3]
	ldrh	r3, [fp, #-184]
	mov	r5, r3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L146+88
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L99:
	ldr	r3, .L146+20
	ldrh	r3, [r3, #56]
	cmp	r3, #63
	bls	.L115
	b	.L92
.L115:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	sub	r2, fp, #184
	ldr	r1, .L146+76
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L116
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L146+92
	bl	fwrite
	mov	r0, #1
	bl	exit
.L116:
	ldr	r3, .L146+20
	ldrh	r3, [r3, #56]
	add	r2, r3, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	ldr	r1, .L146+20
	strh	r2, [r1, #56]	@ movhi
	ldrh	r2, [fp, #-184]
	ldr	r1, .L146+20
	add	r3, r3, #28
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #2
	strh	r2, [r3]	@ movhi
	b	.L92
.L103:
	ldr	r3, .L146+36
	ldrh	r3, [r3, #56]
	cmp	r3, #63
	bls	.L117
	b	.L92
.L117:
	ldr	r3, .L146+16
	ldr	r3, [r3]
	sub	r2, fp, #184
	ldr	r1, .L146+76
	mov	r0, r3
	bl	__isoc99_sscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L118
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #44
	mov	r1, #1
	ldr	r0, .L146+96
	bl	fwrite
	mov	r0, #1
	bl	exit
.L118:
	ldr	r3, .L146+36
	ldrh	r3, [r3, #56]
	add	r2, r3, #1
	lsl	r2, r2, #16
	lsr	r2, r2, #16
	ldr	r1, .L146+36
	strh	r2, [r1, #56]	@ movhi
	ldrh	r2, [fp, #-184]
	ldr	r1, .L146+36
	add	r3, r3, #28
	lsl	r3, r3, #1
	add	r3, r1, r3
	add	r3, r3, #2
	strh	r2, [r3]	@ movhi
	b	.L92
.L98:
	ldr	r3, [fp, #-252]
	ldr	r3, [r3]
	mov	r1, #0
	mov	r0, r3
	bl	usage
	b	.L92
.L93:
	ldr	r3, [fp, #-252]
	ldr	r3, [r3]
	mov	r1, #1
	mov	r0, r3
	bl	usage
	nop
.L92:
	ldr	r2, .L146+100
	ldr	r1, [fp, #-252]
	ldr	r0, [fp, #-248]
	bl	getopt
	str	r0, [fp, #-228]
	ldr	r3, [fp, #-228]
	cmn	r3, #1
	bne	.L119
	ldr	r3, .L146+104
	ldr	r3, [r3]
	ldr	r2, [fp, #-248]
	sub	r3, r2, r3
	str	r3, [fp, #-248]
	ldr	r3, .L146+104
	ldr	r3, [r3]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-252]
	add	r3, r2, r3
	str	r3, [fp, #-252]
	ldr	r3, .L146+84
	ldr	r3, [r3]
	cmn	r3, #1
	bne	.L120
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #33
	mov	r1, #1
	ldr	r0, .L146+108
	bl	fwrite
	mov	r0, #1
	bl	exit
.L120:
	ldr	r3, [fp, #-248]
	cmp	r3, #2
	beq	.L121
	ldr	r3, .L146+28
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L146+112
	bl	fwrite
	mov	r0, #1
	bl	exit
.L121:
	sub	r3, fp, #184
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	str	r3, [fp, #-180]
	mov	r3, #2
	str	r3, [fp, #-176]
	mov	r3, #17
	str	r3, [fp, #-172]
	ldr	r3, .L146+116
	str	r3, [fp, #-184]
	ldr	r3, [fp, #-252]
	ldr	r0, [r3]
	ldr	r3, [fp, #-252]
	add	r3, r3, #4
	ldr	r1, [r3]
	sub	r2, fp, #184
	ldr	r3, .L146+120
	bl	getaddrinfo
	str	r0, [fp, #-224]
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	bne	.L122
	ldr	r3, .L146+120
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L123
.L122:
	ldr	r3, .L146+28
	ldr	r4, [r3]
	ldr	r3, [fp, #-252]
	ldr	r5, [r3]
	ldr	r3, [fp, #-252]
	add	r3, r3, #4
	ldr	r6, [r3]
	ldr	r3, [fp, #-224]
	cmp	r3, #0
	beq	.L124
	ldr	r0, [fp, #-224]
	bl	gai_strerror
	mov	r3, r0
	b	.L125
.L124:
	ldr	r3, .L146+124
.L125:
	str	r3, [sp]
	mov	r3, r6
	mov	r2, r5
	ldr	r1, .L146+128
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L123:
	ldr	r0, .L146+20
	bl	init_queue
	ldr	r0, .L146+36
	bl	init_queue
.L144:
	sub	r3, fp, #152
	str	r3, [fp, #-220]
	mov	r3, #0
	str	r3, [fp, #-240]
	b	.L126
.L127:
	ldr	r3, [fp, #-220]
	ldr	r2, [fp, #-240]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-240]
	add	r3, r3, #1
	str	r3, [fp, #-240]
.L126:
	ldr	r3, [fp, #-240]
	cmp	r3, #31
	bls	.L127
	ldr	r3, .L146+84
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, .L146+84
	ldr	r3, [r3]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, .L146+84
	ldr	r3, [r3]
	add	r3, r3, #1
	str	r3, [fp, #-236]
	ldr	r3, .L146+132
	ldr	r3, [r3, #4]
	str	r3, [fp, #-244]
	b	.L128
.L130:
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #12]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	mov	r2, r3
	lsl	r3, r2, #2
	sub	r1, fp, #20
	add	r3, r1, r3
	ldr	r1, [r3, #-132]
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #12]
	rsbs	r0, r3, #0
	and	r3, r3, #31
	and	r0, r0, #31
	rsbpl	r3, r0, #0
	mov	r0, #1
	lsl	r3, r0, r3
	orr	r1, r1, r3
	lsl	r3, r2, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	str	r1, [r3, #-132]
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #12]
	ldr	r2, [fp, #-236]
	cmp	r2, r3
	bgt	.L129
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #12]
	add	r3, r3, #1
	str	r3, [fp, #-236]
.L129:
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-244]
.L128:
	ldr	r3, [fp, #-244]
	ldr	r2, .L146+132
	cmp	r3, r2
	bne	.L130
	bl	gettime
	str	r0, [fp, #-204]
	str	r1, [fp, #-200]
	sub	r3, fp, #204
	ldmia	r3, {r2-r3}
	adr	r1, .L146
	ldmia	r1, {r0-r1}
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-212]
	str	r5, [fp, #-208]
	ldr	r3, .L146+20
	ldr	r2, [r3, #4]
	ldr	r3, .L146+20
	ldr	r3, [r3, #8]
	cmp	r2, r3
	beq	.L131
	ldr	r3, .L146+20
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	sub	r3, fp, #212
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L131
	ldr	r3, .L146+20
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-212]
	str	r3, [fp, #-208]
.L131:
	ldr	r3, .L146+36
	ldr	r2, [r3, #4]
	ldr	r3, .L146+36
	ldr	r3, [r3, #8]
	cmp	r2, r3
	beq	.L132
	ldr	r3, .L146+36
	add	r1, r3, #32
	ldmia	r1, {r0-r1}
	sub	r3, fp, #212
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L132
	ldr	r3, .L146+36
	add	r3, r3, #32
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-212]
	str	r3, [fp, #-208]
.L132:
	sub	r3, fp, #212
	ldmia	r3, {r2-r3}
	sub	r1, fp, #204
	ldmia	r1, {r0-r1}
	cmp	r0, r2
	sbcs	r3, r1, r3
	blt	.L133
	mov	r3, #0
	str	r3, [fp, #-184]
	mov	r3, #0
	str	r3, [fp, #-180]
	b	.L134
.L133:
	sub	r1, fp, #212
	ldmia	r1, {r0-r1}
	sub	r3, fp, #204
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	str	r6, [fp, #-196]
	str	r7, [fp, #-192]
	sub	r1, fp, #196
	ldmia	r1, {r0-r1}
	ldr	r2, .L146+136
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r3, r2
	str	r3, [fp, #-184]
	sub	r1, fp, #196
	ldmia	r1, {r0-r1}
	ldr	r2, .L146+136
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r3, r2
	str	r3, [fp, #-180]
.L134:
	sub	r1, fp, #152
	sub	r3, fp, #184
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #0
	ldr	r0, [fp, #-236]
	bl	select
	mov	r3, r0
	cmp	r3, #0
	bgt	.L135
	sub	r3, fp, #152
	str	r3, [fp, #-216]
	mov	r3, #0
	str	r3, [fp, #-232]
	b	.L136
.L137:
	ldr	r3, [fp, #-216]
	ldr	r2, [fp, #-232]
	mov	r1, #0
	str	r1, [r3, r2, lsl #2]
	ldr	r3, [fp, #-232]
	add	r3, r3, #1
	str	r3, [fp, #-232]
.L136:
	ldr	r3, [fp, #-232]
	cmp	r3, #31
	bls	.L137
.L135:
	bl	gettime
	str	r0, [fp, #-204]
	str	r1, [fp, #-200]
	sub	r3, fp, #204
	ldmia	r3, {r2-r3}
	mov	r1, #1
	ldr	r0, .L146+20
	bl	dequeue
	sub	r3, fp, #204
	ldmia	r3, {r2-r3}
	mov	r1, #0
	ldr	r0, .L146+36
	bl	dequeue
	ldr	r3, .L146+84
	ldr	r3, [r3]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, .L146+84
	ldr	r3, [r3]
	rsbs	r1, r3, #0
	and	r3, r3, #31
	and	r1, r1, #31
	rsbpl	r3, r1, #0
	mov	r1, #1
	lsl	r3, r1, r3
	and	r3, r3, r2
	cmp	r3, #0
	beq	.L138
	nop
.L139:
	sub	r3, fp, #204
	ldmia	r3, {r2-r3}
	mov	r1, #0
	ldr	r0, .L146+20
	bl	enqueue
	mov	r3, r0
	cmp	r3, #0
	bne	.L139
.L138:
	ldr	r3, .L146+132
	ldr	r3, [r3, #4]
	str	r3, [fp, #-244]
	b	.L140
.L143:
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #12]
	add	r2, r3, #31
	cmp	r3, #0
	movlt	r3, r2
	movge	r3, r3
	asr	r3, r3, #5
	lsl	r3, r3, #2
	sub	r2, fp, #20
	add	r3, r2, r3
	ldr	r2, [r3, #-132]
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #12]
	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	.L141
	nop
.L142:
	sub	r3, fp, #204
	ldmia	r3, {r2-r3}
	ldr	r1, [fp, #-244]
	ldr	r0, .L146+36
	bl	enqueue
	mov	r3, r0
	cmp	r3, #0
	bne	.L142
.L141:
	ldr	r3, [fp, #-244]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-244]
.L140:
	ldr	r3, [fp, #-244]
	ldr	r2, .L146+132
	cmp	r3, r2
	bne	.L143
	b	.L144
.L147:
	.align	3
.L146:
	.word	1000000000
	.word	0
	.word	.LC35
	.word	on_signal
	.word	optarg
	.word	up
	.word	.LC18
	.word	stderr
	.word	.LC19
	.word	down
	.word	.LC20
	.word	up+24
	.word	.LC21
	.word	.LC22
	.word	down+24
	.word	up+16
	.word	.LC23
	.word	down+16
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	listen_fd
	.word	.LC27
	.word	.LC28
	.word	.LC29
	.word	.LC30
	.word	optind
	.word	.LC31
	.word	.LC32
	.word	1057
	.word	server_addr
	.word	.LC33
	.word	.LC34
	.word	connections
	.word	1000000
	.size	main, .-main
	.section	.rodata
	.align	2
	.type	__PRETTY_FUNCTION__.7064, %object
	.size	__PRETTY_FUNCTION__.7064, 11
__PRETTY_FUNCTION__.7064:
	.ascii	"new_socket\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7081, %object
	.size	__PRETTY_FUNCTION__.7081, 26
__PRETTY_FUNCTION__.7081:
	.ascii	"find_or_create_connection\000"
	.local	cid.7071
	.comm	cid.7071,4,4
	.align	2
	.type	__PRETTY_FUNCTION__.7088, %object
	.size	__PRETTY_FUNCTION__.7088, 11
__PRETTY_FUNCTION__.7088:
	.ascii	"init_queue\000"
	.align	2
	.type	__PRETTY_FUNCTION__.7103, %object
	.size	__PRETTY_FUNCTION__.7103, 8
__PRETTY_FUNCTION__.7103:
	.ascii	"enqueue\000"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
