	.file	"89561.c"
	.intel_syntax noprefix
	.text
	.globl	packet_drop_threshold
	.bss
	.align 4
	.type	packet_drop_threshold, @object
	.size	packet_drop_threshold, 4
packet_drop_threshold:
	.zero	4
	.globl	socketname
	.section	.rodata
.LC0:
	.string	"/tmp/fakecsmaradio.socket"
	.section	.data.rel.local,"aw"
	.align 8
	.type	socketname, @object
	.size	socketname, 8
socketname:
	.quad	.LC0
	.globl	clients
	.bss
	.align 32
	.type	clients, @object
	.size	clients, 8421376
clients:
	.zero	8421376
	.globl	client_count
	.align 4
	.type	client_count, @object
	.size	client_count, 4
client_count:
	.zero	4
	.globl	emulated_bitrate
	.data
	.align 4
	.type	emulated_bitrate, @object
	.size	emulated_bitrate, 4
emulated_bitrate:
	.long	128000
	.globl	start_time
	.bss
	.align 8
	.type	start_time, @object
	.size	start_time, 8
start_time:
	.zero	8
	.text
	.globl	set_nonblocking
	.type	set_nonblocking, @function
set_nonblocking:
.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	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR -4[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -4[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	set_nonblocking, .-set_nonblocking
	.globl	gettime_ms
	.type	gettime_ms, @function
gettime_ms:
.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
	cmp	eax, -1
	jne	.L4
	mov	rax, -1
	jmp	.L6
.L4:
	mov	rax, QWORD PTR -32[rbp]
	imul	rsi, rax, 1000
	mov	rcx, QWORD PTR -24[rbp]
	movabs	rdx, 2361183241434822607
	mov	rax, rcx
	imul	rdx
	mov	rax, rdx
	sar	rax, 7
	sar	rcx, 63
	mov	rdx, rcx
	sub	rax, rdx
	add	rax, rsi
.L6:
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	gettime_ms, .-gettime_ms
	.section	.rodata
	.align 8
.LC1:
	.string	"Too many clients: Increase MAX_CLIENTS?\n"
	.text
	.globl	register_client
	.type	register_client, @function
register_client:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	DWORD PTR -4[rbp], edi
	mov	eax, DWORD PTR client_count[rip]
	cmp	eax, 1023
	jle	.L9
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC1[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR client_count[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	lea	rdx, clients[rip]
	add	rax, rdx
	mov	edx, 8224
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	eax, DWORD PTR client_count[rip]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, clients[rip]
	mov	eax, DWORD PTR -4[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR client_count[rip]
	add	eax, 1
	mov	DWORD PTR client_count[rip], eax
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	set_nonblocking
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	register_client, .-register_client
	.section	.rodata
.LC2:
	.string	"%s:\n"
.LC3:
	.string	"%04X: "
.LC4:
	.string	" %02X"
	.text
	.globl	dump_bytes
	.type	dump_bytes, @function
dump_bytes:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	DWORD PTR -36[rbp], edx
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -24[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -8[rbp], 0
	jmp	.L12
.L16:
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -8[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	DWORD PTR -4[rbp], 0
	jmp	.L13
.L15:
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	cmp	DWORD PTR -36[rbp], eax
	jle	.L14
	mov	edx, DWORD PTR -8[rbp]
	mov	eax, DWORD PTR -4[rbp]
	add	eax, edx
	movsx	rdx, eax
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	edx, al
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
.L14:
	add	DWORD PTR -4[rbp], 1
.L13:
	cmp	DWORD PTR -4[rbp], 15
	jle	.L15
	mov	rax, QWORD PTR stderr[rip]
	mov	rsi, rax
	mov	edi, 10
	call	fputc@PLT
	add	DWORD PTR -8[rbp], 16
.L12:
	mov	eax, DWORD PTR -8[rbp]
	cmp	eax, DWORD PTR -36[rbp]
	jl	.L16
	mov	eax, 0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	dump_bytes, .-dump_bytes
	.section	.rodata
	.align 8
.LC5:
	.string	"Radio #%d sends a packet of %d bytes at T+%lldms (TX will take %dms)\n"
.LC6:
	.string	"packet"
	.align 8
.LC7:
	.string	"WARNING: RX colission for radio #%d (embargo time = T%+lldms, last packet = %d bytes)\n"
	.align 8
.LC8:
	.string	"Setting radio #%d to high TX power\n"
	.align 8
.LC9:
	.string	"Setting radio #%d to low TX power\n"
.LC10:
	.string	"1"
.LC11:
	.string	"E"
	.text
	.globl	client_read_byte
	.type	client_read_byte, @function
client_read_byte:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 1872
	mov	DWORD PTR -10052[rbp], edi
	mov	eax, esi
	mov	BYTE PTR -10056[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L19
	cmp	eax, 1
	jne	.L20
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4]
	mov	DWORD PTR [rdx+rax], 0
	movzx	eax, BYTE PTR -10056[rbp]
	sub	eax, 33
	cmp	eax, 57
	ja	.L21
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L23[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L23[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L23:
	.long	.L31-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L30-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L29-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L44-.L23
	.long	.L21-.L23
	.long	.L27-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L26-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L44-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L24-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L21-.L23
	.long	.L22-.L23
	.text
.L31:
	mov	DWORD PTR -10040[rbp], 0
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	eax, DWORD PTR [rdx+rax]
	mov	DWORD PTR -10048[rbp], eax
	cmp	DWORD PTR -10048[rbp], 255
	jle	.L32
	mov	DWORD PTR -10048[rbp], 255
.L32:
	mov	eax, DWORD PTR -10048[rbp]
	movsx	rcx, eax
	lea	rdx, -10016[rbp]
	mov	eax, DWORD PTR -10040[rbp]
	cdqe
	lea	rsi, [rdx+rax]
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	lea	rdx, clients[rip]
	add	rax, rdx
	add	rax, 8
	mov	rdi, rsi
	mov	rdx, rcx
	mov	rsi, rax
	call	memcpy@PLT
	mov	eax, DWORD PTR -10048[rbp]
	add	DWORD PTR -10040[rbp], eax
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, DWORD PTR -10048[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 8
	add	rax, rcx
	sal	rax, 5
	lea	rcx, clients[rip]
	add	rax, rcx
	lea	rcx, 8[rax]
	mov	eax, DWORD PTR -10048[rbp]
	movsx	rdi, eax
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 8
	add	rax, rsi
	sal	rax, 5
	lea	rsi, [rdi+rax]
	lea	rax, clients[rip]
	add	rax, rsi
	add	rax, 8
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	eax, DWORD PTR [rdx+rax]
	sub	eax, DWORD PTR -10048[rbp]
	mov	edx, eax
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 8
	add	rax, rcx
	sal	rax, 5
	mov	rcx, rax
	lea	rax, clients[rip+4104]
	mov	DWORD PTR [rcx+rax], edx
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], -86
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], 85
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], -56
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], 100
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], 28
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	mov	edx, DWORD PTR -10048[rbp]
	cdqe
	mov	BYTE PTR -10016[rbp+rax], dl
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], -1
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], 15
	mov	eax, DWORD PTR -10040[rbp]
	lea	edx, 1[rax]
	mov	DWORD PTR -10040[rbp], edx
	cdqe
	mov	BYTE PTR -10016[rbp+rax], 85
	mov	eax, DWORD PTR -10048[rbp]
	add	eax, 8
	imul	eax, eax, 8000000
	mov	edi, DWORD PTR emulated_bitrate[rip]
	cdq
	idiv	edi
	mov	DWORD PTR -10036[rbp], eax
	mov	eax, DWORD PTR -10036[rbp]
	movsx	rdx, eax
	imul	rdx, rdx, 274877907
	shr	rdx, 32
	sar	edx, 6
	sar	eax, 31
	mov	ecx, eax
	mov	eax, edx
	sub	eax, ecx
	mov	DWORD PTR -10036[rbp], eax
	mov	eax, 0
	call	gettime_ms
	mov	rdx, rax
	mov	eax, DWORD PTR -10036[rbp]
	cdqe
	add	rax, rdx
	mov	QWORD PTR -10032[rbp], rax
	mov	eax, 0
	call	gettime_ms
	mov	rdx, QWORD PTR start_time[rip]
	sub	rax, rdx
	mov	rcx, rax
	mov	esi, DWORD PTR -10036[rbp]
	mov	edx, DWORD PTR -10040[rbp]
	mov	eax, DWORD PTR -10052[rbp]
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	mov	edx, DWORD PTR -10040[rbp]
	lea	rax, -10016[rbp]
	mov	rsi, rax
	lea	rdi, .LC6[rip]
	call	dump_bytes
	mov	DWORD PTR -10044[rbp], 0
	jmp	.L33
.L37:
	mov	eax, DWORD PTR -10044[rbp]
	cmp	eax, DWORD PTR -10052[rbp]
	je	.L34
	mov	eax, DWORD PTR -10040[rbp]
	movsx	rcx, eax
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	lea	rdx, 4096[rax]
	lea	rax, clients[rip]
	add	rax, rdx
	lea	rdx, 12[rax]
	lea	rax, -10016[rbp]
	mov	rdi, rdx
	mov	rdx, rcx
	mov	rsi, rax
	call	memcpy@PLT
	mov	eax, 0
	call	gettime_ms
	mov	QWORD PTR -10024[rbp], rax
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L35
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8208]
	mov	rax, QWORD PTR [rdx+rax]
	sub	rax, QWORD PTR -10024[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -10044[rbp]
	mov	esi, eax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8216]
	mov	DWORD PTR [rdx+rax], 1
	jmp	.L36
.L35:
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8216]
	mov	DWORD PTR [rdx+rax], 0
.L36:
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, clients[rip+8204]
	mov	eax, DWORD PTR -10040[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	mov	eax, DWORD PTR -10044[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, clients[rip+8208]
	mov	rax, QWORD PTR -10032[rbp]
	mov	QWORD PTR [rcx+rdx], rax
.L34:
	add	DWORD PTR -10044[rbp], 1
.L33:
	mov	eax, DWORD PTR client_count[rip]
	cmp	DWORD PTR -10044[rbp], eax
	jl	.L37
	jmp	.L38
.L29:
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	DWORD PTR [rdx+rax], 0
	jmp	.L38
.L27:
	mov	eax, DWORD PTR -10052[rbp]
	mov	esi, eax
	lea	rdi, .LC8[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L38
.L26:
	mov	eax, DWORD PTR -10052[rbp]
	mov	esi, eax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L38
.L22:
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	DWORD PTR [rdx+rax], 0
	jmp	.L38
.L24:
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, 1
	lea	rsi, .LC10[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L38
.L30:
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 4095
	jg	.L45
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	edx, DWORD PTR [rdx+rax]
	lea	ecx, 1[rdx]
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 8
	add	rax, rsi
	sal	rax, 5
	mov	rsi, rax
	lea	rax, clients[rip+4104]
	mov	DWORD PTR [rsi+rax], ecx
	movsx	rcx, edx
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	lea	rdx, [rax+rcx]
	lea	rax, clients[rip+8]
	add	rax, rdx
	mov	BYTE PTR [rax], 33
	jmp	.L45
.L21:
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip]
	mov	eax, DWORD PTR [rdx+rax]
	mov	edx, 1
	lea	rsi, .LC11[rip]
	mov	edi, eax
	call	write@PLT
	jmp	.L38
.L44:
	nop
	jmp	.L20
.L45:
	nop
.L38:
	jmp	.L20
.L19:
	cmp	BYTE PTR -10056[rbp], 33
	je	.L40
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	eax, DWORD PTR [rdx+rax]
	cmp	eax, 4095
	jg	.L46
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4104]
	mov	edx, DWORD PTR [rdx+rax]
	lea	ecx, 1[rdx]
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 8
	add	rax, rsi
	sal	rax, 5
	mov	rsi, rax
	lea	rax, clients[rip+4104]
	mov	DWORD PTR [rsi+rax], ecx
	movsx	rcx, edx
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	lea	rdx, [rax+rcx]
	lea	rax, clients[rip+8]
	add	rdx, rax
	movzx	eax, BYTE PTR -10056[rbp]
	mov	BYTE PTR [rdx], al
	jmp	.L46
.L40:
	mov	eax, DWORD PTR -10052[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+4]
	mov	DWORD PTR [rdx+rax], 1
.L46:
	nop
.L20:
	mov	eax, 0
	mov	rdi, QWORD PTR -8[rbp]
	sub	rdi, QWORD PTR fs:40
	je	.L43
	call	__stack_chk_fail@PLT
.L43:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	client_read_byte, .-client_read_byte
	.section	.rodata
.LC12:
	.string	"w"
	.align 8
.LC13:
	.string	"usage: fakecsmaradio <number of radios> <tty file> [packet drop probability]\n"
	.align 8
.LC14:
	.string	"\nNumber of radios must be between 2 and %d.\n"
	.align 8
.LC15:
	.string	"The name of each tty will be written to <tty file>\n"
	.align 8
.LC16:
	.string	"The optional packet drop probability allows the simulation of packet loss.\n"
	.align 8
.LC19:
	.string	"Packet drop probability must be in range [0..1]\n"
	.align 8
.LC22:
	.string	"Simulating %3.2f%% packet loss (threshold = 0x%08x)\n"
.LC23:
	.string	"posix_openpt"
.LC24:
	.string	"%s\n"
.LC25:
	.string	"Radio #%d is available at %s\n"
	.align 8
.LC26:
	.string	"Radio #%d receives a packet of %d bytes\n"
	.align 8
.LC27:
	.string	"Radio #%d misses a packet of %d bytes due to simulated packet loss\n"
.LC28:
	.string	"Radio #%d ready to receive.\n"
	.align 8
.LC29:
	.string	"Radio #%d WAITING until T+%lldms for a packet of %d bytes\n"
	.text
	.globl	main
	.type	main, @function
main:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 96
	mov	DWORD PTR -8276[rbp], edi
	mov	QWORD PTR -8288[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -8268[rbp], 2
	mov	QWORD PTR -8232[rbp], 0
	mov	eax, 0
	call	gettime_ms
	mov	QWORD PTR start_time[rip], rax
	cmp	QWORD PTR -8288[rbp], 0
	je	.L48
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	test	rax, rax
	je	.L48
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -8268[rbp], eax
.L48:
	cmp	DWORD PTR -8276[rbp], 2
	jle	.L49
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8232[rbp], rax
.L49:
	cmp	DWORD PTR -8276[rbp], 2
	jle	.L50
	cmp	DWORD PTR -8276[rbp], 4
	jg	.L50
	cmp	QWORD PTR -8232[rbp], 0
	je	.L50
	cmp	DWORD PTR -8268[rbp], 1
	jle	.L50
	cmp	DWORD PTR -8268[rbp], 1023
	jle	.L51
.L50:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 77
	mov	esi, 1
	lea	rdi, .LC13[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, 1023
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 51
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 75
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L51:
	cmp	DWORD PTR -8276[rbp], 3
	jle	.L52
	mov	rax, QWORD PTR -8288[rbp]
	add	rax, 24
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -8244[rbp], xmm0
	pxor	xmm0, xmm0
	comiss	xmm0, DWORD PTR -8244[rbp]
	ja	.L53
	movss	xmm0, DWORD PTR -8244[rbp]
	movss	xmm1, DWORD PTR .LC18[rip]
	comiss	xmm0, xmm1
	jbe	.L74
.L53:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 48
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	mov	edi, -1
	call	exit@PLT
.L74:
	movss	xmm1, DWORD PTR -8244[rbp]
	movss	xmm0, DWORD PTR .LC20[rip]
	mulss	xmm0, xmm1
	cvttss2si	eax, xmm0
	mov	DWORD PTR packet_drop_threshold[rip], eax
	mov	edx, DWORD PTR packet_drop_threshold[rip]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, DWORD PTR -8244[rbp]
	movsd	xmm0, QWORD PTR .LC21[rip]
	mulsd	xmm1, xmm0
	movq	rcx, xmm1
	mov	rax, QWORD PTR stderr[rip]
	movq	xmm0, rcx
	lea	rsi, .LC22[rip]
	mov	rdi, rax
	mov	eax, 1
	call	fprintf@PLT
.L52:
	mov	edi, 0
	call	time@PLT
	mov	edi, eax
	call	srandom@PLT
	mov	DWORD PTR -8264[rbp], 0
	jmp	.L56
.L58:
	mov	edi, 258
	mov	eax, 0
	call	posix_openpt@PLT
	mov	DWORD PTR -8236[rbp], eax
	cmp	DWORD PTR -8236[rbp], 0
	jns	.L57
	lea	rdi, .LC23[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L57:
	mov	eax, DWORD PTR -8236[rbp]
	mov	edi, eax
	mov	eax, 0
	call	grantpt@PLT
	mov	eax, DWORD PTR -8236[rbp]
	mov	edi, eax
	mov	eax, 0
	call	unlockpt@PLT
	mov	eax, DWORD PTR -8236[rbp]
	mov	edx, 0
	mov	esi, 3
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	or	ah, 8
	mov	edx, eax
	mov	eax, DWORD PTR -8236[rbp]
	mov	esi, 4
	mov	edi, eax
	mov	eax, 0
	call	fcntl@PLT
	mov	eax, DWORD PTR -8236[rbp]
	mov	edi, eax
	mov	eax, 0
	call	ptsname@PLT
	mov	edx, eax
	mov	rax, QWORD PTR -8232[rbp]
	lea	rsi, .LC24[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, DWORD PTR -8236[rbp]
	mov	edi, eax
	mov	eax, 0
	call	ptsname@PLT
	mov	edx, eax
	mov	eax, DWORD PTR client_count[rip]
	mov	esi, eax
	lea	rdi, .LC25[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR client_count[rip]
	lea	edx, 1[rax]
	mov	DWORD PTR client_count[rip], edx
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rcx, rax
	lea	rdx, clients[rip]
	mov	eax, DWORD PTR -8236[rbp]
	mov	DWORD PTR [rcx+rdx], eax
	add	DWORD PTR -8264[rbp], 1
.L56:
	mov	eax, DWORD PTR -8264[rbp]
	cmp	eax, DWORD PTR -8268[rbp]
	jl	.L58
	mov	rax, QWORD PTR -8232[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	QWORD PTR -8224[rbp], 0
.L72:
	mov	DWORD PTR -8260[rbp], 0
	mov	eax, 0
	call	gettime_ms
	mov	QWORD PTR -8216[rbp], rax
	mov	DWORD PTR -8256[rbp], 0
	jmp	.L59
.L67:
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	rcx, -8208[rbp]
	mov	edx, 8192
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -8240[rbp], eax
	cmp	DWORD PTR -8240[rbp], 0
	jle	.L60
	mov	DWORD PTR -8252[rbp], 0
	jmp	.L61
.L62:
	mov	eax, DWORD PTR -8252[rbp]
	cdqe
	movzx	eax, BYTE PTR -8208[rbp+rax]
	movzx	edx, al
	mov	eax, DWORD PTR -8256[rbp]
	mov	esi, edx
	mov	edi, eax
	call	client_read_byte
	add	DWORD PTR -8252[rbp], 1
.L61:
	mov	eax, DWORD PTR -8252[rbp]
	cmp	eax, DWORD PTR -8240[rbp]
	jl	.L62
	add	DWORD PTR -8260[rbp], 1
.L60:
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L63
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8208]
	mov	rax, QWORD PTR [rdx+rax]
	cmp	QWORD PTR -8216[rbp], rax
	jle	.L63
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8216]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	jne	.L64
	call	random@PLT
	and	eax, 2147483647
	mov	rdx, rax
	mov	eax, DWORD PTR packet_drop_threshold[rip]
	cdqe
	cmp	rdx, rax
	jl	.L65
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	eax, DWORD PTR [rdx+rax]
	movsx	rdx, eax
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rcx, eax
	mov	rax, rcx
	sal	rax, 8
	add	rax, rcx
	sal	rax, 5
	lea	rcx, 4096[rax]
	lea	rax, clients[rip]
	add	rax, rcx
	lea	rcx, 12[rax]
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rsi, eax
	mov	rax, rsi
	sal	rax, 8
	add	rax, rsi
	sal	rax, 5
	mov	rsi, rax
	lea	rax, clients[rip]
	mov	eax, DWORD PTR [rsi+rax]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8256[rbp]
	mov	esi, eax
	lea	rdi, .LC26[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L64
.L65:
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	edx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8256[rbp]
	mov	esi, eax
	lea	rdi, .LC27[rip]
	mov	eax, 0
	call	printf@PLT
.L64:
	mov	eax, DWORD PTR -8256[rbp]
	mov	esi, eax
	lea	rdi, .LC28[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	DWORD PTR [rdx+rax], 0
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8216]
	mov	DWORD PTR [rdx+rax], 0
	add	DWORD PTR -8260[rbp], 1
	jmp	.L66
.L63:
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8208]
	mov	rax, QWORD PTR [rdx+rax]
	test	rax, rax
	je	.L66
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	eax, DWORD PTR [rdx+rax]
	test	eax, eax
	je	.L66
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8204]
	mov	ecx, DWORD PTR [rdx+rax]
	mov	eax, DWORD PTR -8256[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip+8208]
	mov	rax, QWORD PTR [rdx+rax]
	sub	rax, QWORD PTR -8216[rbp]
	mov	rdx, rax
	mov	eax, DWORD PTR -8256[rbp]
	mov	esi, eax
	lea	rdi, .LC29[rip]
	mov	eax, 0
	call	printf@PLT
.L66:
	add	DWORD PTR -8256[rbp], 1
.L59:
	mov	eax, DWORD PTR client_count[rip]
	cmp	DWORD PTR -8256[rbp], eax
	jl	.L67
	mov	rax, QWORD PTR -8216[rbp]
	sub	rax, 500
	cmp	QWORD PTR -8224[rbp], rax
	jge	.L68
	mov	QWORD PTR -8208[rbp], -4914
	mov	BYTE PTR -8200[rbp], -35
	mov	DWORD PTR -8248[rbp], 0
	jmp	.L69
.L70:
	mov	eax, DWORD PTR -8248[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 8
	add	rax, rdx
	sal	rax, 5
	mov	rdx, rax
	lea	rax, clients[rip]
	mov	eax, DWORD PTR [rdx+rax]
	lea	rcx, -8208[rbp]
	mov	edx, 9
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	add	DWORD PTR -8248[rbp], 1
.L69:
	mov	eax, DWORD PTR client_count[rip]
	cmp	DWORD PTR -8248[rbp], eax
	jl	.L70
	mov	rax, QWORD PTR -8216[rbp]
	mov	QWORD PTR -8224[rbp], rax
.L68:
	cmp	DWORD PTR -8260[rbp], 0
	jne	.L72
	mov	edi, 10000
	call	usleep@PLT
	jmp	.L72
	.cfi_endproc
.LFE11:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC18:
	.long	1065353216
	.align 4
.LC20:
	.long	1325400064
	.align 8
.LC21:
	.long	0
	.long	1079574528
	.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	"89561.c"
	.text
	.global	packet_drop_threshold
	.bss
	.align	2
	.type	packet_drop_threshold, %object
	.size	packet_drop_threshold, 4
packet_drop_threshold:
	.space	4
	.global	socketname
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/tmp/fakecsmaradio.socket\000"
	.data
	.align	2
	.type	socketname, %object
	.size	socketname, 4
socketname:
	.word	.LC0
	.comm	clients,8421376,8
	.global	client_count
	.bss
	.align	2
	.type	client_count, %object
	.size	client_count, 4
client_count:
	.space	4
	.global	emulated_bitrate
	.data
	.align	2
	.type	emulated_bitrate, %object
	.size	emulated_bitrate, 4
emulated_bitrate:
	.word	128000
	.comm	start_time,8,8
	.text
	.align	2
	.global	set_nonblocking
	.syntax unified
	.arm
	.fpu softvfp
	.type	set_nonblocking, %function
set_nonblocking:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [fp, #-8]
	bl	fcntl
	mov	r3, r0
	orr	r3, r3, #2048
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [fp, #-8]
	bl	fcntl
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	set_nonblocking, .-set_nonblocking
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	gettime_ms
	.syntax unified
	.arm
	.fpu softvfp
	.type	gettime_ms, %function
gettime_ms:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #16
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-24]
	mov	r3,#0
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, r0
	cmn	r3, #1
	bne	.L4
	mvn	r6, #0
	mvn	r7, #0
	b	.L6
.L4:
	ldr	r3, [fp, #-32]
	mov	r0, r3
	asr	r1, r0, #31
	mov	r2, r0
	mov	r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #5
	orr	r5, r5, r2, lsr #27
	lsl	r4, r2, #5
	mov	r2, r4
	mov	r3, r5
	subs	r2, r2, r0
	sbc	r3, r3, r1
	mov	r4, #0
	mov	r5, #0
	lsl	r5, r3, #2
	orr	r5, r5, r2, lsr #30
	lsl	r4, r2, #2
	mov	r2, r4
	mov	r3, r5
	adds	r2, r2, r0
	adc	r3, r3, r1
	mov	r0, #0
	mov	r1, #0
	lsl	r1, r3, #3
	orr	r1, r1, r2, lsr #29
	lsl	r0, r2, #3
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, [fp, #-28]
	ldr	r2, .L8+4
	smull	ip, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	adds	r6, r0, r2
	adc	r7, r1, r3
.L6:
	mov	r2, r6
	mov	r3, r7
	ldr	r1, .L8
	ldr	r0, [r1]
	ldr	r1, [fp, #-24]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC1
	.word	274877907
	.size	gettime_ms, .-gettime_ms
	.section	.rodata
	.align	2
.LC2:
	.ascii	"Too many clients: Increase MAX_CLIENTS?\012\000"
	.text
	.align	2
	.global	register_client
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_client, %function
register_client:
	@ 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, .L13
	ldr	r3, [r3]
	cmp	r3, #1024
	blt	.L11
	ldr	r3, .L13+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L13+8
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L11:
	ldr	r3, .L13
	ldr	r2, [r3]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	ldr	r2, .L13+12
	add	r3, r3, r2
	mov	r0, r3
	ldr	r3, .L13+16
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r1, .L13+12
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r2, [fp, #-8]
	str	r2, [r3]
	ldr	r3, .L13
	ldr	r3, [r3]
	add	r3, r3, #1
	ldr	r2, .L13
	str	r3, [r2]
	ldr	r0, [fp, #-8]
	bl	set_nonblocking
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	client_count
	.word	stderr
	.word	.LC2
	.word	clients
	.word	8224
	.size	register_client, .-register_client
	.section	.rodata
	.align	2
.LC3:
	.ascii	"%s:\012\000"
	.align	2
.LC4:
	.ascii	"%04X: \000"
	.align	2
.LC5:
	.ascii	" %02X\000"
	.text
	.align	2
	.global	dump_bytes
	.syntax unified
	.arm
	.fpu softvfp
	.type	dump_bytes, %function
dump_bytes:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, [fp, #-16]
	ldr	r1, .L22+4
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L16
.L20:
	ldr	r3, .L22
	ldr	r3, [r3]
	ldr	r2, [fp, #-12]
	ldr	r1, .L22+8
	mov	r0, r3
	bl	fprintf
	mov	r3, #0
	str	r3, [fp, #-8]
	b	.L17
.L19:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L18
	ldr	r3, .L22
	ldr	r0, [r3]
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-8]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r3, [fp, #-20]
	add	r3, r3, r2
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r2, r3
	ldr	r1, .L22+12
	bl	fprintf
.L18:
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L17:
	ldr	r3, [fp, #-8]
	cmp	r3, #15
	ble	.L19
	ldr	r3, .L22
	ldr	r3, [r3]
	mov	r1, r3
	mov	r0, #10
	bl	fputc
	ldr	r3, [fp, #-12]
	add	r3, r3, #16
	str	r3, [fp, #-12]
.L16:
	ldr	r2, [fp, #-12]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	blt	.L20
	mov	r3, #0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	stderr
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	dump_bytes, .-dump_bytes
	.global	__aeabi_idiv
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Radio #%d sends a packet of %d bytes at T+%lldms (T"
	.ascii	"X will take %dms)\012\000"
	.align	2
.LC7:
	.ascii	"packet\000"
	.align	2
.LC8:
	.ascii	"WARNING: RX colission for radio #%d (embargo time ="
	.ascii	" T%+lldms, last packet = %d bytes)\012\000"
	.align	2
.LC9:
	.ascii	"Setting radio #%d to high TX power\012\000"
	.align	2
.LC10:
	.ascii	"Setting radio #%d to low TX power\012\000"
	.align	2
.LC11:
	.ascii	"1\000"
	.align	2
.LC12:
	.ascii	"E\000"
	.align	2
.LC13:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	client_read_byte
	.syntax unified
	.arm
	.fpu softvfp
	.type	client_read_byte, %function
client_read_byte:
	@ args = 0, pretend = 0, frame = 10048
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #10048
	sub	sp, sp, #20
	sub	r3, fp, #8192
	sub	r3, r3, #36
	str	r0, [r3, #-1852]
	mov	r2, r1
	sub	r3, fp, #8192
	sub	r3, r3, #36
	strb	r2, [r3, #-1853]
	ldr	r3, .L53
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L25
	cmp	r3, #1
	bne	.L26
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldrb	r3, [r3, #-1853]	@ zero_extendqisi2
	sub	r3, r3, #33
	cmp	r3, #57
	ldrls	pc, [pc, r3, asl #2]
	b	.L27
.L29:
	.word	.L37
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L36
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L35
	.word	.L27
	.word	.L27
	.word	.L50
	.word	.L27
	.word	.L33
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L32
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L50
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L30
	.word	.L27
	.word	.L27
	.word	.L27
	.word	.L28
.L37:
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1840]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r0, r3
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r3, [r3]
	str	r3, [r0, #-1848]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1848]
	cmp	r3, #255
	ble	.L38
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	mov	r3, #255
	str	r3, [r2, #-1848]
.L38:
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, #8
	ldr	r2, .L53+4
	add	r1, r3, r2
	sub	r3, fp, #9984
	sub	r3, r3, #36
	sub	r3, r3, #20
	sub	r2, fp, #8192
	sub	r2, r2, #36
	ldr	r2, [r2, #-1840]
	add	r2, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1848]
	mov	r0, r2
	mov	r2, r3
	bl	memcpy
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r2, #-1840]
	ldr	r3, [r3, #-1848]
	add	r3, r2, r3
	str	r3, [r1, #-1840]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	sub	r2, fp, #8192
	sub	r2, r2, #36
	ldr	r2, [r2, #-1848]
	add	r3, r3, r2
	add	r3, r3, #8
	ldr	r2, .L53+4
	add	r1, r3, r2
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, #8
	ldr	r2, .L53+4
	add	r0, r3, r2
	ldr	ip, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, ip, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1848]
	sub	r3, r2, r3
	mov	r2, r3
	bl	memmove
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1848]
	sub	r1, r2, r3
	ldr	r0, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r0, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	str	r1, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mvn	r2, #85
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mov	r2, #85
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mvn	r2, #55
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mov	r2, #100
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mov	r2, #28
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	ldr	r2, [r2, #-1848]
	and	r2, r2, #255
	sub	r1, fp, #8192
	sub	r1, r1, #36
	add	r3, r1, r3
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mvn	r2, #0
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mov	r2, #15
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	add	r2, r3, #1
	str	r2, [r1, #-1840]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	add	r3, r2, r3
	mov	r2, #85
	strb	r2, [r3, #-1812]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1848]
	add	r1, r3, #8
	mov	r2, r1
	lsl	r2, r2, #5
	sub	r2, r2, r1
	lsl	r3, r2, #6
	sub	r3, r3, r2
	lsl	r3, r3, #3
	add	r3, r3, r1
	lsl	r3, r3, #9
	mov	r0, r3
	ldr	r3, .L53+8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r10, r2
	mov	r1, r3
	bl	__aeabi_idiv
	mov	r3, r0
	str	r3, [r10, #-1836]
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1836]
	ldr	r2, .L53+12
	smull	r0, r2, r3, r2
	asr	r2, r2, #6
	asr	r3, r3, #31
	sub	r3, r2, r3
	str	r3, [r1, #-1836]
	bl	gettime_ms
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1836]
	mov	r2, r3
	asr	r3, r2, #31
	sub	ip, fp, #9984
	sub	ip, ip, #36
	sub	ip, ip, #32
	adds	r6, r0, r2
	adc	r7, r1, r3
	stmdb	ip, {r6-r7}
	bl	gettime_ms
	ldr	r3, .L53+16
	ldmia	r3, {r2-r3}
	subs	r4, r0, r2
	sbc	r5, r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1836]
	str	r3, [sp, #8]
	stm	sp, {r4-r5}
	ldr	r2, [r2, #-1840]
	ldr	r1, [r1, #-1852]
	ldr	r0, .L53+20
	bl	printf
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	sub	r3, fp, #9984
	sub	r3, r3, #36
	sub	r3, r3, #20
	ldr	r2, [r2, #-1840]
	mov	r1, r3
	ldr	r0, .L53+24
	bl	dump_bytes
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-1844]
	b	.L39
.L43:
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r2, #-1844]
	ldr	r3, [r3, #-1852]
	cmp	r2, r3
	beq	.L40
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r2, .L53+4
	add	r3, r3, r2
	add	r1, r3, #4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1840]
	sub	r3, fp, #9984
	sub	r3, r3, #36
	sub	r3, r3, #20
	mov	r0, r1
	mov	r1, r3
	bl	memcpy
	sub	r3, fp, #9984
	sub	r3, r3, #36
	sub	r3, r3, #32
	mov	r4, r3
	bl	gettime_ms
	stm	r4, {r0-r1}
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L41
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #16
	ldmia	r3, {r0-r1}
	sub	r3, fp, #9984
	sub	r3, r3, #36
	sub	r3, r3, #32
	ldmia	r3, {r2-r3}
	subs	r8, r0, r2
	sbc	r9, r1, r3
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	mov	r1, r2
	str	r3, [sp]
	mov	r2, r8
	mov	r3, r9
	ldr	r1, [r1, #-1844]
	ldr	r0, .L53+28
	bl	printf
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #24
	mov	r2, #1
	str	r2, [r3]
	b	.L42
.L41:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #24
	mov	r2, #0
	str	r2, [r3]
.L42:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	sub	r2, fp, #8192
	sub	r2, r2, #36
	ldr	r2, [r2, #-1840]
	str	r2, [r3]
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1844]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #16
	sub	r2, fp, #9984
	sub	r2, r2, #36
	sub	r2, r2, #32
	ldmdb	r2, {r0-r1}
	stm	r3, {r0-r1}
.L40:
	sub	r3, fp, #8192
	sub	r3, r3, #36
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r3, [r3, #-1844]
	add	r3, r3, #1
	str	r3, [r2, #-1844]
.L39:
	ldr	r3, .L53+32
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #36
	ldr	r2, [r2, #-1844]
	cmp	r2, r3
	blt	.L43
	b	.L44
.L35:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	mov	r2, #0
	str	r2, [r3]
	b	.L44
.L33:
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r1, [r3, #-1852]
	ldr	r0, .L53+36
	bl	printf
	b	.L44
.L32:
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r1, [r3, #-1852]
	ldr	r0, .L53+40
	bl	printf
	b	.L44
.L28:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	mov	r2, #0
	str	r2, [r3]
	b	.L44
.L30:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L53+44
	mov	r0, r3
	bl	write
	b	.L44
.L36:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #4096
	bge	.L51
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r2, [r3]
	add	r0, r2, #1
	ldr	ip, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r1, [r3, #-1852]
	mov	r3, r1
	lsl	r3, r3, #8
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, ip, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	str	r0, [r3]
	ldr	r0, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r1, [r3, #-1852]
	mov	r3, r1
	lsl	r3, r3, #8
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r0, r3
	add	r3, r3, r2
	add	r3, r3, #8
	mov	r2, #33
	strb	r2, [r3]
	b	.L51
.L27:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L53+48
	mov	r0, r3
	bl	write
	b	.L44
.L50:
	nop
	b	.L26
.L51:
	nop
.L44:
	b	.L26
.L25:
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldrb	r3, [r3, #-1853]	@ zero_extendqisi2
	cmp	r3, #33
	beq	.L46
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r3, [r3]
	cmp	r3, #4096
	bge	.L52
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r2, [r3]
	add	r0, r2, #1
	ldr	ip, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r1, [r3, #-1852]
	mov	r3, r1
	lsl	r3, r3, #8
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, ip, r3
	add	r3, r3, #4096
	add	r3, r3, #8
	str	r0, [r3]
	ldr	r0, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r1, [r3, #-1852]
	mov	r3, r1
	lsl	r3, r3, #8
	add	r3, r3, r1
	lsl	r3, r3, #5
	add	r3, r0, r3
	add	r3, r3, r2
	add	r3, r3, #8
	sub	r2, fp, #8192
	sub	r2, r2, #36
	ldrb	r2, [r2, #-1853]
	strb	r2, [r3]
	b	.L52
.L46:
	ldr	r1, .L53+4
	sub	r3, fp, #8192
	sub	r3, r3, #36
	ldr	r2, [r3, #-1852]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #4
	mov	r2, #1
	str	r2, [r3]
.L52:
	nop
.L26:
	mov	r3, #0
	ldr	r2, .L53
	ldr	r1, [r2]
	ldr	r2, [fp, #-40]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L49
	bl	__stack_chk_fail
.L49:
	mov	r0, r3
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L54:
	.align	2
.L53:
	.word	.LC13
	.word	clients
	.word	emulated_bitrate
	.word	274877907
	.word	start_time
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	client_count
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.size	client_read_byte, .-client_read_byte
	.section	.rodata
	.align	2
.LC14:
	.ascii	"w\000"
	.align	2
.LC15:
	.ascii	"usage: fakecsmaradio <number of radios> <tty file> "
	.ascii	"[packet drop probability]\012\000"
	.align	2
.LC16:
	.ascii	"\012Number of radios must be between 2 and %d.\012\000"
	.align	2
.LC17:
	.ascii	"The name of each tty will be written to <tty file>\012"
	.ascii	"\000"
	.align	2
.LC18:
	.ascii	"The optional packet drop probability allows the sim"
	.ascii	"ulation of packet loss.\012\000"
	.global	__aeabi_d2f
	.global	__aeabi_fcmplt
	.global	__aeabi_fcmpgt
	.align	2
.LC19:
	.ascii	"Packet drop probability must be in range [0..1]\012"
	.ascii	"\000"
	.global	__aeabi_fmul
	.global	__aeabi_f2iz
	.global	__aeabi_f2d
	.global	__aeabi_dmul
	.align	2
.LC20:
	.ascii	"Simulating %3.2f%% packet loss (threshold = 0x%08x)"
	.ascii	"\012\000"
	.align	2
.LC21:
	.ascii	"posix_openpt\000"
	.align	2
.LC22:
	.ascii	"%s\012\000"
	.align	2
.LC23:
	.ascii	"Radio #%d is available at %s\012\000"
	.align	2
.LC24:
	.ascii	"Radio #%d receives a packet of %d bytes\012\000"
	.align	2
.LC25:
	.ascii	"Radio #%d misses a packet of %d bytes due to simula"
	.ascii	"ted packet loss\012\000"
	.align	2
.LC26:
	.ascii	"Radio #%d ready to receive.\012\000"
	.align	2
.LC27:
	.ascii	"Radio #%d WAITING until T+%lldms for a packet of %d"
	.ascii	" bytes\012\000"
	.align	2
.LC28:
	.ascii	"\316\354\377\377\377\377\377\377\335"
	.align	2
.LC29:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8264
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, fp, lr}
	add	fp, sp, #24
	sub	sp, sp, #8256
	sub	sp, sp, #20
	sub	r3, fp, #8192
	sub	r3, r3, #28
	str	r0, [r3, #-68]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	str	r1, [r3, #-72]
	ldr	r3, .L83
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #2
	str	r3, [r2, #-64]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-60]
	bl	gettime_ms
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L83+4
	stm	r1, {r2-r3}
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	cmp	r3, #0
	beq	.L56
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	add	r3, r3, #4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L56
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	add	r3, r3, #4
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r8, r2
	mov	r0, r3
	bl	atoi
	str	r0, [r8, #-64]
.L56:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-68]
	cmp	r3, #2
	ble	.L57
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	add	r3, r3, #8
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r8, r2
	ldr	r1, .L83+8
	mov	r0, r3
	bl	fopen
	str	r0, [r8, #-60]
.L57:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-68]
	cmp	r3, #2
	ble	.L58
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-68]
	cmp	r3, #4
	bgt	.L58
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L58
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-64]
	cmp	r3, #1
	ble	.L58
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-64]
	cmp	r3, #1024
	blt	.L59
.L58:
	ldr	r3, .L83+12
	ldr	r3, [r3]
	mov	r2, #77
	mov	r1, #1
	ldr	r0, .L83+16
	bl	fwrite
	ldr	r3, .L83+12
	ldr	r3, [r3]
	ldr	r2, .L83+20
	ldr	r1, .L83+24
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L83+12
	ldr	r3, [r3]
	mov	r2, #51
	mov	r1, #1
	ldr	r0, .L83+28
	bl	fwrite
	ldr	r3, .L83+12
	ldr	r3, [r3]
	mov	r2, #75
	mov	r1, #1
	ldr	r0, .L83+32
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L59:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-68]
	cmp	r3, #3
	ble	.L60
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-72]
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #8192
	sub	r1, r1, #28
	mov	r8, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r8, #-36]	@ float
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r1, #0
	ldr	r0, [r3, #-36]	@ float
	bl	__aeabi_fcmplt
	mov	r3, r0
	cmp	r3, #0
	bne	.L61
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r1, #1065353216
	ldr	r0, [r3, #-36]	@ float
	bl	__aeabi_fcmpgt
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
.L61:
	ldr	r3, .L83+12
	ldr	r3, [r3]
	mov	r2, #48
	mov	r1, #1
	ldr	r0, .L83+36
	bl	fwrite
	mvn	r0, #0
	bl	exit
.L82:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r1, #1325400064
	ldr	r0, [r3, #-36]	@ float
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2iz
	mov	r3, r0
	ldr	r2, .L83+40
	str	r3, [r2]
	ldr	r3, .L83+12
	ldr	r8, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r0, [r3, #-36]	@ float
	bl	__aeabi_f2d
	mov	r2, #0
	ldr	r3, .L83+44
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	ldr	r3, .L83+40
	ldr	r3, [r3]
	str	r3, [sp]
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L83+48
	mov	r0, r8
	bl	fprintf
.L60:
	mov	r0, #0
	bl	time
	mov	r3, r0
	mov	r0, r3
	bl	srandom
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-56]
	b	.L64
.L66:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r8, r3
	ldr	r0, .L83+52
	bl	posix_openpt
	str	r0, [r8, #-28]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-28]
	cmp	r3, #0
	bge	.L65
	ldr	r0, .L83+56
	bl	perror
	mvn	r0, #0
	bl	exit
.L65:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r0, [r3, #-28]
	bl	grantpt
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r0, [r3, #-28]
	bl	unlockpt
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, #0
	mov	r1, #3
	ldr	r0, [r3, #-28]
	bl	fcntl
	mov	r3, r0
	orr	r3, r3, #2048
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r0, r2
	mov	r2, r3
	mov	r1, #4
	ldr	r0, [r0, #-28]
	bl	fcntl
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r0, [r3, #-28]
	bl	ptsname
	mov	r3, r0
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r0, r2
	mov	r2, r3
	ldr	r1, .L83+60
	ldr	r0, [r0, #-60]
	bl	fprintf
	ldr	r3, .L83+64
	ldr	r8, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r0, [r3, #-28]
	bl	ptsname
	mov	r3, r0
	mov	r2, r3
	mov	r1, r8
	ldr	r0, .L83+68
	bl	printf
	ldr	r3, .L83+64
	ldr	r2, [r3]
	add	r3, r2, #1
	ldr	r1, .L83+64
	str	r3, [r1]
	ldr	r1, .L83+72
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	sub	r2, fp, #8192
	sub	r2, r2, #28
	ldr	r2, [r2, #-28]
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-56]
	add	r3, r3, #1
	str	r3, [r2, #-56]
.L64:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r2, #-56]
	ldr	r3, [r3, #-64]
	cmp	r2, r3
	blt	.L66
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r0, [r3, #-60]
	bl	fclose
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r1, r3
	mov	r2, #0
	mov	r3, #0
	stmdb	r1, {r2-r3}
.L80:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-52]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r8, r3
	bl	gettime_ms
	stm	r8, {r0-r1}
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-48]
	b	.L67
.L75:
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r8, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #4
	mov	r2, #8192
	mov	r1, r3
	bl	read
	str	r0, [r8, #-32]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-32]
	cmp	r3, #0
	ble	.L68
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-44]
	b	.L69
.L70:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-44]
	add	r3, r2, r3
	sub	r3, r3, #4
	ldrb	r3, [r3]	@ zero_extendqisi2
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r1, r3
	ldr	r0, [r2, #-48]
	bl	client_read_byte
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-44]
	add	r3, r3, #1
	str	r3, [r2, #-44]
.L69:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r2, #-44]
	ldr	r3, [r3, #-32]
	cmp	r2, r3
	blt	.L70
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	str	r3, [r2, #-52]
.L68:
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L71
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #16
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	cmp	r0, r2
	sbcs	r3, r1, r3
	bge	.L71
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #24
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L72
	bl	random
	mov	r3, r0
	bic	r2, r3, #-2147483648
	ldr	r3, .L83+40
	ldr	r3, [r3]
	cmp	r2, r3
	blt	.L73
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r3, #4096
	add	r3, r3, #8
	ldr	r2, .L83+72
	add	r3, r3, r2
	add	r1, r3, #4
	ldr	ip, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, ip, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	mov	r2, r3
	bl	write
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-48]
	ldr	r0, .L83+76
	bl	printf
	b	.L72
.L73:
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-48]
	ldr	r0, .L83+80
	bl	printf
.L72:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r1, [r3, #-48]
	ldr	r0, .L83+84
	bl	printf
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	mov	r2, #0
	str	r2, [r3]
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #24
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-52]
	add	r3, r3, #1
	str	r3, [r2, #-52]
	b	.L74
.L71:
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #16
	ldmia	r3, {r2-r3}
	orrs	r3, r2, r3
	beq	.L74
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L74
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #16
	ldmia	r3, {r0-r1}
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	subs	r6, r0, r2
	sbc	r7, r1, r3
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-48]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	add	r3, r3, #8192
	add	r3, r3, #12
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	mov	r1, r2
	str	r3, [sp]
	mov	r2, r6
	mov	r3, r7
	ldr	r1, [r1, #-48]
	ldr	r0, .L83+88
	bl	printf
.L74:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-48]
	add	r3, r3, #1
	str	r3, [r2, #-48]
.L67:
	ldr	r3, .L83+64
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	ldr	r2, [r2, #-48]
	cmp	r2, r3
	blt	.L75
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	subs	r4, r2, #500
	sbc	r5, r3, #0
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmdb	r3, {r2-r3}
	cmp	r2, r4
	sbcs	r3, r3, r5
	bge	.L76
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, .L83+92
	sub	r3, r3, #4
	ldm	r2, {r0, r1, r2}
	stmia	r3!, {r0, r1}
	strb	r2, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-40]
	b	.L77
.L78:
	ldr	r1, .L83+72
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r2, [r3, #-40]
	mov	r3, r2
	lsl	r3, r3, #8
	add	r3, r3, r2
	lsl	r3, r3, #5
	add	r3, r1, r3
	ldr	r0, [r3]
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #4
	mov	r2, #9
	mov	r1, r3
	bl	write
	sub	r3, fp, #8192
	sub	r3, r3, #28
	mov	r2, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-40]
	add	r3, r3, #1
	str	r3, [r2, #-40]
.L77:
	ldr	r3, .L83+64
	ldr	r3, [r3]
	sub	r2, fp, #8192
	sub	r2, r2, #28
	ldr	r2, [r2, #-40]
	cmp	r2, r3
	blt	.L78
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	mov	r1, r3
	sub	r3, fp, #8192
	sub	r3, r3, #28
	sub	r3, r3, #16
	ldmia	r3, {r2-r3}
	stmdb	r1, {r2-r3}
.L76:
	sub	r3, fp, #8192
	sub	r3, r3, #28
	ldr	r3, [r3, #-52]
	cmp	r3, #0
	bne	.L80
	ldr	r0, .L83+96
	bl	usleep
	b	.L80
.L84:
	.align	2
.L83:
	.word	.LC29
	.word	start_time
	.word	.LC14
	.word	stderr
	.word	.LC15
	.word	1023
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	packet_drop_threshold
	.word	1079574528
	.word	.LC20
	.word	258
	.word	.LC21
	.word	.LC22
	.word	client_count
	.word	.LC23
	.word	clients
	.word	.LC24
	.word	.LC25
	.word	.LC26
	.word	.LC27
	.word	.LC28
	.word	10000
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
