	.file	"200386.c"
	.intel_syntax noprefix
	.text
	.globl	rx_cntr
	.bss
	.align 8
	.type	rx_cntr, @object
	.size	rx_cntr, 8
rx_cntr:
	.zero	8
	.globl	rx_data
	.align 8
	.type	rx_data, @object
	.size	rx_data, 8
rx_data:
	.zero	8
	.globl	sock_thread
	.data
	.align 4
	.type	sock_thread, @object
	.size	sock_thread, 4
sock_thread:
	.long	-1
	.globl	rate_thread
	.align 4
	.type	rate_thread, @object
	.size	rate_thread, 4
rate_thread:
	.long	5
	.globl	size_thread
	.align 4
	.type	size_thread, @object
	.size	size_thread, 4
size_thread:
	.long	6000
	.section	.rodata
.LC0:
	.string	"/dev/mem"
.LC1:
	.string	"open"
.LC2:
	.string	"socket"
.LC3:
	.string	"bind"
.LC4:
	.string	"accept"
.LC8:
	.string	"pthread_create"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 256
	mov	DWORD PTR -244[rbp], edi
	mov	QWORD PTR -256[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -224[rbp], 1
	mov	esi, 2
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -204[rbp], eax
	cmp	DWORD PTR -204[rbp], 0
	jns	.L2
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L55
.L2:
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -204[rbp]
	mov	r9d, 1073741824
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -160[rbp], rax
	mov	edi, 30
	call	sysconf@PLT
	mov	rsi, rax
	mov	eax, DWORD PTR -204[rbp]
	mov	r9d, 1073745920
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -152[rbp], rax
	mov	edi, 30
	call	sysconf@PLT
	add	rax, rax
	mov	rsi, rax
	mov	eax, DWORD PTR -204[rbp]
	mov	r9d, 1073750016
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR rx_data[rip], rax
	mov	edi, 30
	call	sysconf@PLT
	sal	rax, 5
	mov	rsi, rax
	mov	eax, DWORD PTR -204[rbp]
	mov	r9d, 1073872896
	mov	r8d, eax
	mov	ecx, 1
	mov	edx, 3
	mov	edi, 0
	call	mmap@PLT
	mov	QWORD PTR -144[rbp], rax
	mov	rax, QWORD PTR -160[rbp]
	add	rax, 12
	mov	QWORD PTR rx_cntr[rip], rax
	mov	rax, QWORD PTR -152[rbp]
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 1
	mov	QWORD PTR -128[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 4
	mov	QWORD PTR -120[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 8
	mov	QWORD PTR -112[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 12
	mov	QWORD PTR -104[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 16
	mov	QWORD PTR -96[rbp], rax
	mov	rax, QWORD PTR -152[rbp]
	add	rax, 18
	mov	QWORD PTR -88[rbp], rax
	mov	rax, QWORD PTR -112[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -104[rbp]
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR -96[rbp]
	mov	WORD PTR [rax], 32766
	mov	rax, QWORD PTR -88[rbp]
	mov	WORD PTR [rax], 0
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR [rax], 25599
	mov	QWORD PTR -176[rbp], 10000
	mov	QWORD PTR -168[rbp], 60000000
	mov	DWORD PTR -216[rbp], 6000
	mov	DWORD PTR -220[rbp], 5
	mov	DWORD PTR -208[rbp], 0
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, -4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], 0
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -200[rbp], eax
	cmp	DWORD PTR -200[rbp], 0
	jns	.L4
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L55
.L4:
	lea	rdx, -224[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	lea	rax, -80[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	WORD PTR -80[rbp], 2
	mov	edi, 0
	call	htonl@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	edi, 1001
	call	htons@PLT
	mov	WORD PTR -78[rbp], ax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -200[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L5
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L55
.L5:
	mov	eax, DWORD PTR -200[rbp]
	mov	esi, 1024
	mov	edi, eax
	call	listen@PLT
	lea	rax, -64[rbp]
	mov	rdi, rax
	call	pthread_attr_init@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setinheritsched@PLT
	lea	rax, -64[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	pthread_attr_setschedpolicy@PLT
	mov	DWORD PTR -232[rbp], 99
	lea	rdx, -232[rbp]
	lea	rax, -64[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	pthread_attr_setschedparam@PLT
.L54:
	mov	eax, DWORD PTR -200[rbp]
	mov	edx, 0
	mov	esi, 0
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -196[rbp], eax
	cmp	DWORD PTR -196[rbp], 0
	jns	.L6
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L55
.L6:
	lea	rsi, -228[rbp]
	mov	eax, DWORD PTR -196[rbp]
	mov	ecx, 256
	mov	edx, 4
	mov	edi, eax
	call	recv@PLT
	test	rax, rax
	jle	.L58
	mov	eax, DWORD PTR -228[rbp]
	and	eax, 268435455
	mov	DWORD PTR -192[rbp], eax
	mov	eax, DWORD PTR -192[rbp]
	and	eax, 134217728
	test	eax, eax
	je	.L9
	mov	edx, -268435456
	jmp	.L10
.L9:
	mov	edx, 0
.L10:
	mov	eax, DWORD PTR -192[rbp]
	or	eax, edx
	mov	DWORD PTR -192[rbp], eax
	mov	eax, DWORD PTR -228[rbp]
	shr	eax, 28
	cmp	eax, 11
	ja	.L6
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L13[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L13[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L13:
	.long	.L24-.L13
	.long	.L23-.L13
	.long	.L22-.L13
	.long	.L21-.L13
	.long	.L20-.L13
	.long	.L19-.L13
	.long	.L18-.L13
	.long	.L17-.L13
	.long	.L16-.L13
	.long	.L15-.L13
	.long	.L14-.L13
	.long	.L12-.L13
	.text
.L24:
	cmp	DWORD PTR -192[rbp], 0
	js	.L59
	cmp	DWORD PTR -192[rbp], 61440000
	jg	.L59
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	QWORD PTR -176[rbp], rax
	jmp	.L11
.L23:
	cmp	DWORD PTR -192[rbp], 0
	js	.L60
	cmp	DWORD PTR -192[rbp], 61440000
	jg	.L60
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	mov	QWORD PTR -168[rbp], rax
	jmp	.L11
.L22:
	cmp	DWORD PTR -192[rbp], 0
	jle	.L61
	cmp	DWORD PTR -192[rbp], 32768
	jg	.L61
	mov	eax, DWORD PTR -192[rbp]
	mov	DWORD PTR -216[rbp], eax
	jmp	.L11
.L21:
	cmp	DWORD PTR -192[rbp], 4
	jle	.L62
	cmp	DWORD PTR -192[rbp], 50000
	jg	.L62
	mov	eax, DWORD PTR -192[rbp]
	mov	DWORD PTR -220[rbp], eax
	mov	edx, DWORD PTR -220[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 9
	lea	edx, 12799[rax]
	mov	rax, QWORD PTR -120[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L11
.L20:
	cmp	DWORD PTR -192[rbp], -100000
	jl	.L63
	cmp	DWORD PTR -192[rbp], 100000
	jg	.L63
	mov	eax, DWORD PTR -192[rbp]
	mov	DWORD PTR -208[rbp], eax
	jmp	.L11
.L19:
	cmp	DWORD PTR -192[rbp], 0
	js	.L64
	cmp	DWORD PTR -192[rbp], 360
	jg	.L64
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -192[rbp]
	movsd	xmm2, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	floor@PLT
	mov	rax, QWORD PTR -112[rbp]
	cvttsd2si	rdx, xmm0
	mov	DWORD PTR [rax], edx
	jmp	.L11
.L18:
	cmp	DWORD PTR -192[rbp], 0
	js	.L65
	cmp	DWORD PTR -192[rbp], 360
	jg	.L65
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -192[rbp]
	movsd	xmm2, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	floor@PLT
	mov	rax, QWORD PTR -104[rbp]
	cvttsd2si	rdx, xmm0
	mov	DWORD PTR [rax], edx
	jmp	.L11
.L17:
	cmp	DWORD PTR -192[rbp], -32766
	jl	.L66
	cmp	DWORD PTR -192[rbp], 32766
	jg	.L66
	mov	rax, QWORD PTR -96[rbp]
	mov	edx, DWORD PTR -192[rbp]
	mov	WORD PTR [rax], dx
	jmp	.L11
.L16:
	cmp	DWORD PTR -192[rbp], -32766
	jl	.L67
	cmp	DWORD PTR -192[rbp], 32766
	jg	.L67
	mov	rax, QWORD PTR -88[rbp]
	mov	edx, DWORD PTR -192[rbp]
	mov	WORD PTR [rax], dx
	jmp	.L11
.L15:
	cmp	DWORD PTR -192[rbp], 0
	js	.L68
	cmp	DWORD PTR -192[rbp], 255
	jg	.L68
	mov	eax, DWORD PTR -192[rbp]
	mov	edx, eax
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L11
.L14:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, -4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, -5
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 2
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	eax, DWORD PTR -220[rbp]
	mov	DWORD PTR rate_thread[rip], eax
	mov	eax, DWORD PTR -216[rbp]
	mov	DWORD PTR size_thread[rip], eax
	mov	eax, DWORD PTR -196[rbp]
	mov	DWORD PTR sock_thread[rip], eax
	lea	rsi, -64[rbp]
	lea	rax, -184[rbp]
	mov	ecx, 0
	lea	rdx, read_handler[rip]
	mov	rdi, rax
	call	pthread_create@PLT
	test	eax, eax
	jns	.L45
	lea	rdi, .LC8[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L55
.L45:
	mov	rax, QWORD PTR -184[rbp]
	mov	rdi, rax
	call	pthread_detach@PLT
	mov	DWORD PTR -212[rbp], 0
	jmp	.L46
.L53:
	cmp	DWORD PTR -212[rbp], 0
	je	.L47
	mov	rax, QWORD PTR -168[rbp]
	sub	rax, QWORD PTR -176[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -212[rbp]
	imul	rax, rdx
	mov	edx, DWORD PTR -216[rbp]
	sub	edx, 1
	mov	ecx, edx
	cqo
	idiv	rcx
	mov	edx, eax
	mov	rax, QWORD PTR -176[rbp]
	add	eax, edx
	jmp	.L48
.L47:
	mov	rax, QWORD PTR -176[rbp]
.L48:
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	test	rax, rax
	js	.L49
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L50
.L49:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L50:
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, DWORD PTR -208[rbp]
	movsd	xmm1, QWORD PTR .LC9[rip]
	mulsd	xmm2, xmm1
	movsd	xmm1, QWORD PTR .LC10[rip]
	addsd	xmm1, xmm2
	mulsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	DWORD PTR -188[rbp], eax
	mov	eax, DWORD PTR -188[rbp]
	test	rax, rax
	js	.L51
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L52
.L51:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L52:
	movsd	xmm2, QWORD PTR .LC11[rip]
	movapd	xmm1, xmm0
	divsd	xmm1, xmm2
	movsd	xmm0, QWORD PTR .LC6[rip]
	mulsd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	addsd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	call	floor@PLT
	cvttsd2si	rax, xmm0
	mov	edx, eax
	mov	rax, QWORD PTR -144[rbp]
	mov	DWORD PTR [rax], edx
	add	DWORD PTR -212[rbp], 1
.L46:
	mov	eax, DWORD PTR -212[rbp]
	cmp	eax, DWORD PTR -216[rbp]
	jb	.L53
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 1
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	jmp	.L11
.L12:
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, -4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	DWORD PTR sock_thread[rip], -1
	jmp	.L11
.L59:
	nop
	jmp	.L6
.L60:
	nop
	jmp	.L6
.L61:
	nop
	jmp	.L6
.L62:
	nop
	jmp	.L6
.L63:
	nop
	jmp	.L6
.L64:
	nop
	jmp	.L6
.L65:
	nop
	jmp	.L6
.L66:
	nop
	jmp	.L6
.L67:
	nop
	jmp	.L6
.L68:
	nop
.L11:
	jmp	.L6
.L58:
	nop
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	and	eax, -4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -136[rbp]
	movzx	eax, BYTE PTR [rax]
	or	eax, 4
	mov	edx, eax
	mov	rax, QWORD PTR -136[rbp]
	mov	BYTE PTR [rax], dl
	mov	rax, QWORD PTR -128[rbp]
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR sock_thread[rip], -1
	mov	eax, DWORD PTR -196[rbp]
	mov	edi, eax
	call	close@PLT
	jmp	.L54
.L55:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L56
	call	__stack_chk_fail@PLT
.L56:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.globl	read_handler
	.type	read_handler, @function
read_handler:
.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, 80
	mov	QWORD PTR -72[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR rate_thread[rip]
	mov	DWORD PTR -40[rbp], eax
	mov	eax, DWORD PTR size_thread[rip]
	mov	DWORD PTR -36[rbp], eax
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -44[rbp], 0
	jmp	.L70
.L85:
	mov	eax, DWORD PTR sock_thread[rip]
	test	eax, eax
	js	.L88
	mov	rax, QWORD PTR rx_cntr[rip]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 3
	ja	.L73
	mov	edi, 1000
	call	usleep@PLT
	jmp	.L70
.L73:
	cmp	DWORD PTR -52[rbp], 4
	ja	.L74
	mov	DWORD PTR -48[rbp], 0
	jmp	.L75
.L76:
	mov	rax, QWORD PTR rx_data[rip]
	movss	xmm0, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	movss	DWORD PTR -32[rbp+rax*4], xmm0
	add	DWORD PTR -48[rbp], 1
.L75:
	cmp	DWORD PTR -48[rbp], 3
	jbe	.L76
	lea	rax, -32[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L77
.L74:
	mov	DWORD PTR -48[rbp], 0
	jmp	.L78
.L79:
	mov	rax, QWORD PTR rx_data[rip]
	movss	xmm1, DWORD PTR [rax]
	mov	eax, DWORD PTR -48[rbp]
	movss	xmm0, DWORD PTR -32[rbp+rax*4]
	addss	xmm0, xmm1
	mov	eax, DWORD PTR -48[rbp]
	movss	DWORD PTR -32[rbp+rax*4], xmm0
	add	DWORD PTR -48[rbp], 1
.L78:
	cmp	DWORD PTR -48[rbp], 3
	jbe	.L79
.L77:
	add	DWORD PTR -52[rbp], 1
	add	DWORD PTR -44[rbp], 1
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 5
	cmp	DWORD PTR -52[rbp], eax
	jnb	.L80
	jmp	.L70
.L80:
	mov	DWORD PTR -52[rbp], 0
	mov	DWORD PTR -48[rbp], 0
	jmp	.L81
.L84:
	mov	eax, DWORD PTR -48[rbp]
	movss	xmm1, DWORD PTR -32[rbp+rax*4]
	mov	eax, DWORD PTR -40[rbp]
	test	rax, rax
	js	.L82
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rax
	jmp	.L83
.L82:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, rdx
	addss	xmm0, xmm0
.L83:
	divss	xmm1, xmm0
	mov	eax, DWORD PTR -48[rbp]
	movss	DWORD PTR -32[rbp+rax*4], xmm1
	add	DWORD PTR -48[rbp], 1
.L81:
	cmp	DWORD PTR -48[rbp], 3
	jbe	.L84
	mov	eax, DWORD PTR sock_thread[rip]
	lea	rsi, -32[rbp]
	mov	ecx, 16384
	mov	edx, 16
	mov	edi, eax
	call	send@PLT
	test	rax, rax
	js	.L89
.L70:
	mov	eax, DWORD PTR -40[rbp]
	add	eax, 5
	imul	eax, DWORD PTR -36[rbp]
	cmp	DWORD PTR -44[rbp], eax
	jb	.L85
	jmp	.L72
.L88:
	nop
	jmp	.L72
.L89:
	nop
.L72:
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	read_handler, .-read_handler
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1081507840
	.align 8
.LC6:
	.long	0
	.long	1104150528
	.align 8
.LC7:
	.long	0
	.long	1071644672
	.align 8
.LC9:
	.long	-400107883
	.long	1041313291
	.align 8
.LC10:
	.long	0
	.long	1072693248
	.align 8
.LC11:
	.long	0
	.long	1100827648
	.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	"200386.c"
	.text
	.comm	rx_cntr,4,4
	.comm	rx_data,4,4
	.global	sock_thread
	.data
	.align	2
	.type	sock_thread, %object
	.size	sock_thread, 4
sock_thread:
	.word	-1
	.global	rate_thread
	.align	2
	.type	rate_thread, %object
	.size	rate_thread, 4
rate_thread:
	.word	5
	.global	size_thread
	.align	2
	.type	size_thread, %object
	.size	size_thread, 4
size_thread:
	.word	6000
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/mem\000"
	.align	2
.LC1:
	.ascii	"open\000"
	.align	2
.LC2:
	.ascii	"socket\000"
	.align	2
.LC3:
	.ascii	"bind\000"
	.align	2
.LC4:
	.ascii	"accept\000"
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dmul
	.global	__aeabi_dadd
	.global	__aeabi_d2uiz
	.align	2
.LC5:
	.ascii	"pthread_create\000"
	.global	__aeabi_ldivmod
	.global	__aeabi_ui2d
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #184
	str	r0, [fp, #-192]
	str	r1, [fp, #-196]
	ldr	r3, .L65
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	mov	r3, #1
	str	r3, [fp, #-172]
	mov	r1, #2
	ldr	r0, .L65+4
	bl	open
	str	r0, [fp, #-152]
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bge	.L2
	ldr	r0, .L65+8
	bl	perror
	mov	r3, #1
	b	.L51
.L2:
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	mov	r3, #1073741824
	str	r3, [sp, #4]
	ldr	r3, [fp, #-152]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-148]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	mov	r1, r3
	ldr	r3, .L65+12
	str	r3, [sp, #4]
	ldr	r3, [fp, #-152]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-144]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	lsl	r3, r3, #1
	mov	r1, r3
	ldr	r3, .L65+16
	str	r3, [sp, #4]
	ldr	r3, [fp, #-152]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	mov	r3, r0
	ldr	r2, .L65+20
	str	r3, [r2]
	mov	r0, #30
	bl	sysconf
	mov	r3, r0
	lsl	r3, r3, #5
	mov	r1, r3
	ldr	r3, .L65+24
	str	r3, [sp, #4]
	ldr	r3, [fp, #-152]
	str	r3, [sp]
	mov	r3, #1
	mov	r2, #3
	mov	r0, #0
	bl	mmap
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-148]
	add	r3, r3, #12
	ldr	r2, .L65+28
	str	r3, [r2]
	ldr	r3, [fp, #-144]
	str	r3, [fp, #-136]
	ldr	r3, [fp, #-144]
	add	r3, r3, #1
	str	r3, [fp, #-132]
	ldr	r3, [fp, #-144]
	add	r3, r3, #4
	str	r3, [fp, #-128]
	ldr	r3, [fp, #-144]
	add	r3, r3, #8
	str	r3, [fp, #-92]
	ldr	r3, [fp, #-144]
	add	r3, r3, #12
	str	r3, [fp, #-88]
	ldr	r3, [fp, #-144]
	add	r3, r3, #16
	str	r3, [fp, #-84]
	ldr	r3, [fp, #-144]
	add	r3, r3, #18
	str	r3, [fp, #-80]
	ldr	r3, [fp, #-92]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-88]
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, [fp, #-84]
	ldr	r2, .L65+32
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-80]
	mov	r2, #0
	strh	r2, [r3]	@ movhi
	ldr	r3, [fp, #-128]
	ldr	r2, .L65+36
	str	r2, [r3]
	ldr	r2, .L65+40
	mov	r3, #0
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	ldr	r2, .L65+44
	mov	r3, #0
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	ldr	r3, .L65+48
	str	r3, [fp, #-164]
	mov	r3, #5
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	bic	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-132]
	mov	r2, #0
	strb	r2, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-124]
	ldr	r3, [fp, #-124]
	cmp	r3, #0
	bge	.L4
	ldr	r0, .L65+52
	bl	perror
	mov	r3, #1
	b	.L51
.L4:
	sub	r3, fp, #172
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-124]
	bl	setsockopt
	sub	r3, fp, #76
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #2
	strh	r3, [fp, #-76]	@ movhi
	mov	r0, #0
	bl	htonl
	mov	r3, r0
	str	r3, [fp, #-72]
	ldr	r0, .L65+56
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-74]	@ movhi
	sub	r3, fp, #76
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-124]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L65+60
	bl	perror
	mov	r3, #1
	b	.L51
.L5:
	mov	r1, #1024
	ldr	r0, [fp, #-124]
	bl	listen
	sub	r3, fp, #60
	mov	r0, r3
	bl	pthread_attr_init
	sub	r3, fp, #60
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setinheritsched
	sub	r3, fp, #60
	mov	r1, #1
	mov	r0, r3
	bl	pthread_attr_setschedpolicy
	mov	r3, #99
	str	r3, [fp, #-184]
	sub	r2, fp, #184
	sub	r3, fp, #60
	mov	r1, r2
	mov	r0, r3
	bl	pthread_attr_setschedparam
.L50:
	mov	r2, #0
	mov	r1, #0
	ldr	r0, [fp, #-124]
	bl	accept
	str	r0, [fp, #-120]
	ldr	r3, [fp, #-120]
	cmp	r3, #0
	bge	.L6
	ldr	r0, .L65+64
	bl	perror
	mov	r3, #1
	b	.L51
.L6:
	sub	r1, fp, #176
	mov	r3, #256
	mov	r2, #4
	ldr	r0, [fp, #-120]
	bl	recv
	mov	r3, r0
	cmp	r3, #0
	ble	.L54
	ldr	r3, [fp, #-176]
	bic	r3, r3, #-268435456
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-116]
	and	r3, r3, #134217728
	cmp	r3, #0
	beq	.L9
	mov	r2, #-268435456
	b	.L10
.L9:
	mov	r2, #0
.L10:
	ldr	r3, [fp, #-116]
	orr	r3, r2, r3
	str	r3, [fp, #-116]
	ldr	r3, [fp, #-176]
	lsr	r3, r3, #28
	cmp	r3, #11
	ldrls	pc, [pc, r3, asl #2]
	b	.L6
.L13:
	.word	.L24
	.word	.L23
	.word	.L22
	.word	.L21
	.word	.L20
	.word	.L19
	.word	.L18
	.word	.L17
	.word	.L16
	.word	.L15
	.word	.L14
	.word	.L12
.L24:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L55
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+68
	cmp	r3, r2
	bgt	.L55
	ldr	r3, [fp, #-116]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-108]
	str	r3, [fp, #-104]
	b	.L11
.L23:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L56
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+68
	cmp	r3, r2
	bgt	.L56
	ldr	r3, [fp, #-116]
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	b	.L11
.L22:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	ble	.L57
	ldr	r3, [fp, #-116]
	cmp	r3, #32768
	bgt	.L57
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-164]
	b	.L11
.L21:
	ldr	r3, [fp, #-116]
	cmp	r3, #4
	ble	.L58
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+72
	cmp	r3, r2
	bgt	.L58
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-168]
	ldr	r2, [fp, #-168]
	mov	r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #9
	add	r3, r3, #12736
	add	r3, r3, #63
	ldr	r2, [fp, #-128]
	str	r3, [r2]
	b	.L11
.L20:
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+76
	cmp	r3, r2
	ble	.L59
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+80
	cmp	r3, r2
	bgt	.L59
	ldr	r3, [fp, #-116]
	str	r3, [fp, #-156]
	b	.L11
.L19:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L60
	ldr	r3, [fp, #-116]
	cmp	r3, #360
	bgt	.L60
	ldr	r0, [fp, #-116]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L65+84
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L65+88
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L65+92
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	mov	r2, r0
	mov	r3, r1
	ldr	r6, [fp, #-92]
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [r6]
	b	.L11
.L18:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L61
	ldr	r3, [fp, #-116]
	cmp	r3, #360
	bgt	.L61
	ldr	r0, [fp, #-116]
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L65+84
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L65+88
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L65+92
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	mov	r2, r0
	mov	r3, r1
	ldr	r6, [fp, #-88]
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [r6]
	b	.L11
.L17:
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+96
	cmp	r3, r2
	blt	.L62
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+32
	cmp	r3, r2
	bgt	.L62
	ldr	r3, [fp, #-84]
	ldr	r2, [fp, #-116]
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L11
.L16:
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+96
	cmp	r3, r2
	blt	.L63
	ldr	r3, [fp, #-116]
	ldr	r2, .L65+32
	cmp	r3, r2
	bgt	.L63
	ldr	r3, [fp, #-80]
	ldr	r2, [fp, #-116]
	lsl	r2, r2, #16
	asr	r2, r2, #16
	strh	r2, [r3]	@ movhi
	b	.L11
.L15:
	ldr	r3, [fp, #-116]
	cmp	r3, #0
	blt	.L64
	ldr	r3, [fp, #-116]
	cmp	r3, #255
	bgt	.L64
	ldr	r3, [fp, #-116]
	and	r2, r3, #255
	ldr	r3, [fp, #-132]
	strb	r2, [r3]
	b	.L11
.L14:
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	bic	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	bic	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	orr	r3, r3, #2
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r2, .L65+100
	ldr	r3, [fp, #-168]
	str	r3, [r2]
	ldr	r2, .L65+104
	ldr	r3, [fp, #-164]
	str	r3, [r2]
	ldr	r2, .L65+108
	ldr	r3, [fp, #-120]
	str	r3, [r2]
	sub	r1, fp, #60
	sub	r0, fp, #180
	mov	r3, #0
	ldr	r2, .L65+112
	bl	pthread_create
	mov	r3, r0
	cmp	r3, #0
	bge	.L45
	ldr	r0, .L65+116
	bl	perror
	mov	r3, #1
	b	.L51
.L45:
	ldr	r3, [fp, #-180]
	mov	r0, r3
	bl	pthread_detach
	mov	r3, #0
	str	r3, [fp, #-160]
	b	.L46
.L49:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	beq	.L47
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	sub	r3, fp, #108
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	ldr	r3, [fp, #-160]
	mov	r2, r3
	mov	r3, #0
	mul	r0, r2, r5
	mul	r1, r4, r3
	add	ip, r0, r1
	umull	r0, r1, r4, r2
	add	r3, ip, r1
	mov	r1, r3
	ldr	r3, [fp, #-164]
	sub	r3, r3, #1
	mov	r2, r3
	mov	r3, #0
	bl	__aeabi_ldivmod
	mov	r2, r0
	mov	r3, r1
	ldr	r3, [fp, #-108]
	add	r3, r2, r3
	b	.L48
.L47:
	ldr	r3, [fp, #-108]
.L48:
	str	r3, [fp, #-112]
	ldr	r0, [fp, #-112]
	bl	__aeabi_ui2d
	mov	r6, r0
	mov	r7, r1
	ldr	r0, [fp, #-156]
	bl	__aeabi_i2d
	ldr	r2, .L65+120
	ldr	r3, .L65+124
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L65+128
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r3, r0
	str	r3, [fp, #-112]
	ldr	r0, [fp, #-112]
	bl	__aeabi_ui2d
	mov	r2, #0
	ldr	r3, .L65+132
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L65+88
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L65+92
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	floor
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2uiz
	mov	r2, r0
	ldr	r3, [fp, #-140]
	str	r2, [r3]
	ldr	r3, [fp, #-160]
	add	r3, r3, #1
	str	r3, [fp, #-160]
.L46:
	ldr	r2, [fp, #-160]
	ldr	r3, [fp, #-164]
	cmp	r2, r3
	bcc	.L49
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	orr	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	b	.L11
.L12:
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	bic	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, .L65+108
	mvn	r2, #0
	str	r2, [r3]
	b	.L11
.L55:
	nop
	b	.L6
.L56:
	nop
	b	.L6
.L57:
	nop
	b	.L6
.L58:
	nop
	b	.L6
.L59:
	nop
	b	.L6
.L60:
	nop
	b	.L6
.L61:
	nop
	b	.L6
.L62:
	nop
	b	.L6
.L63:
	nop
	b	.L6
.L64:
	nop
.L11:
	b	.L6
.L54:
	nop
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	bic	r3, r3, #3
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-136]
	ldrb	r3, [r3]
	and	r3, r3, #255
	orr	r3, r3, #4
	and	r2, r3, #255
	ldr	r3, [fp, #-136]
	strb	r2, [r3]
	ldr	r3, [fp, #-132]
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, .L65+108
	mvn	r2, #0
	str	r2, [r3]
	ldr	r0, [fp, #-120]
	bl	close
	b	.L50
.L51:
	ldr	r2, .L65
	ldr	r1, [r2]
	ldr	r2, [fp, #-24]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L52
	bl	__stack_chk_fail
.L52:
	mov	r0, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L66:
	.align	2
.L65:
	.word	.LC6
	.word	.LC0
	.word	.LC1
	.word	1073745920
	.word	1073750016
	.word	rx_data
	.word	1073872896
	.word	rx_cntr
	.word	32766
	.word	25599
	.word	10000
	.word	60000000
	.word	6000
	.word	.LC2
	.word	1001
	.word	.LC3
	.word	.LC4
	.word	61440000
	.word	50000
	.word	-100001
	.word	100000
	.word	1081507840
	.word	1104150528
	.word	1071644672
	.word	-32766
	.word	rate_thread
	.word	size_thread
	.word	sock_thread
	.word	read_handler
	.word	.LC5
	.word	-400107883
	.word	1041313291
	.word	1072693248
	.word	1100827648
	.size	main, .-main
	.global	__aeabi_fadd
	.global	__aeabi_ui2f
	.global	__aeabi_fdiv
	.section	.rodata
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_handler, %function
read_handler:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #52
	str	r0, [fp, #-56]
	ldr	r3, .L86
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, .L86+4
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	ldr	r3, .L86+8
	ldr	r3, [r3]
	str	r3, [fp, #-36]
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-44]
	b	.L68
.L81:
	ldr	r3, .L86+12
	ldr	r3, [r3]
	cmp	r3, #0
	blt	.L84
	ldr	r3, .L86+16
	ldr	r3, [r3]
	ldrh	r3, [r3]	@ movhi
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	cmp	r3, #3
	bhi	.L71
	mov	r0, #1000
	bl	usleep
	b	.L68
.L71:
	ldr	r3, [fp, #-52]
	cmp	r3, #4
	bhi	.L72
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L73
.L74:
	ldr	r3, .L86+20
	ldr	r3, [r3]
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-20]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L73:
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	bls	.L74
	sub	r3, fp, #32
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L75
.L72:
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L76
.L77:
	ldr	r3, .L86+20
	ldr	r3, [r3]
	ldr	r2, [r3]	@ float
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	ldr	r3, [r3, #-20]	@ float
	mov	r1, r3
	mov	r0, r2
	bl	__aeabi_fadd
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-20]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L76:
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	bls	.L77
.L75:
	ldr	r3, [fp, #-52]
	add	r3, r3, #1
	str	r3, [fp, #-52]
	ldr	r3, [fp, #-44]
	add	r3, r3, #1
	str	r3, [fp, #-44]
	ldr	r3, [fp, #-40]
	add	r3, r3, #5
	ldr	r2, [fp, #-52]
	cmp	r2, r3
	bcs	.L78
	b	.L68
.L78:
	mov	r3, #0
	str	r3, [fp, #-52]
	mov	r3, #0
	str	r3, [fp, #-48]
	b	.L79
.L80:
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r2, fp, #12
	add	r3, r2, r3
	ldr	r4, [r3, #-20]	@ float
	ldr	r0, [fp, #-40]
	bl	__aeabi_ui2f
	mov	r3, r0
	mov	r1, r3
	mov	r0, r4
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-48]
	lsl	r3, r3, #2
	sub	r1, fp, #12
	add	r3, r1, r3
	str	r2, [r3, #-20]	@ float
	ldr	r3, [fp, #-48]
	add	r3, r3, #1
	str	r3, [fp, #-48]
.L79:
	ldr	r3, [fp, #-48]
	cmp	r3, #3
	bls	.L80
	ldr	r3, .L86+12
	ldr	r0, [r3]
	sub	r1, fp, #32
	mov	r3, #16384
	mov	r2, #16
	bl	send
	mov	r3, r0
	cmp	r3, #0
	blt	.L85
.L68:
	ldr	r3, [fp, #-40]
	add	r3, r3, #5
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	ldr	r2, [fp, #-44]
	cmp	r2, r3
	bcc	.L81
	b	.L70
.L84:
	nop
	b	.L70
.L85:
	nop
.L70:
	mov	r3, #0
	ldr	r2, .L86
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L83
	bl	__stack_chk_fail
.L83:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L87:
	.align	2
.L86:
	.word	.LC7
	.word	rate_thread
	.word	size_thread
	.word	sock_thread
	.word	rx_cntr
	.word	rx_data
	.size	read_handler, .-read_handler
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
