	.file	"989123.c"
	.intel_syntax noprefix
	.text
	.globl	error
	.type	error, @function
error:
.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	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	error, .-error
	.section	.rodata
	.align 8
.LC0:
	.string	"Regex error compiling '%s': %s\n"
.LC2:
	.string	"r"
.LC3:
	.string	"Error opening pipe!"
	.align 8
.LC4:
	.string	"Command not found or exited with error status"
	.text
	.globl	get_resource
	.type	get_resource, @function
get_resource:
.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, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 144
	mov	QWORD PTR -4232[rbp], rdi
	mov	QWORD PTR -4240[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -4240[rbp]
	lea	rax, -4192[rbp]
	mov	edx, 5
	mov	rsi, rcx
	mov	rdi, rax
	call	regcomp@PLT
	mov	DWORD PTR -4216[rbp], eax
	cmp	DWORD PTR -4216[rbp], 0
	je	.L3
	lea	rdx, -4112[rbp]
	lea	rsi, -4192[rbp]
	mov	eax, DWORD PTR -4216[rbp]
	mov	ecx, 4096
	mov	edi, eax
	call	regerror@PLT
	lea	rdx, -4112[rbp]
	mov	rax, QWORD PTR -4240[rbp]
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	movss	xmm0, DWORD PTR .LC1[rip]
	jmp	.L9
.L3:
	mov	rax, QWORD PTR -4232[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	popen@PLT
	mov	QWORD PTR -4208[rbp], rax
	cmp	QWORD PTR -4208[rbp], 0
	jne	.L5
	lea	rdi, .LC3[rip]
	call	puts@PLT
	movss	xmm0, DWORD PTR .LC1[rip]
	jmp	.L9
.L5:
	mov	edi, 128
	call	malloc@PLT
	mov	QWORD PTR -4200[rbp], rax
	nop
.L6:
	mov	rdx, QWORD PTR -4208[rbp]
	mov	rax, QWORD PTR -4200[rbp]
	mov	esi, 128
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L6
	mov	rax, QWORD PTR -4208[rbp]
	mov	rdi, rax
	call	pclose@PLT
	test	eax, eax
	je	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	rax, QWORD PTR -4200[rbp]
	mov	rdi, rax
	call	free@PLT
	movss	xmm0, DWORD PTR .LC1[rip]
	jmp	.L9
.L7:
	lea	rdx, -4120[rbp]
	mov	rsi, QWORD PTR -4200[rbp]
	lea	rax, -4192[rbp]
	mov	r8d, 0
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	regexec@PLT
	mov	DWORD PTR -4216[rbp], eax
	lea	rax, -4192[rbp]
	mov	rdi, rax
	call	regfree@PLT
	cmp	DWORD PTR -4216[rbp], 0
	jne	.L8
	mov	eax, DWORD PTR -4120[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -4200[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	atof@PLT
	cvtsd2ss	xmm0, xmm0
	movss	DWORD PTR -4212[rbp], xmm0
	mov	rax, QWORD PTR -4200[rbp]
	mov	rdi, rax
	call	free@PLT
	movss	xmm0, DWORD PTR -4212[rbp]
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -4200[rbp]
	mov	rdi, rax
	call	free@PLT
	movss	xmm0, DWORD PTR .LC1[rip]
.L9:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_resource, .-get_resource
	.section	.rodata
.LC5:
	.string	"mpstat 1 1"
.LC6:
	.string	"[0-9]*\\.[0-9]*$"
	.text
	.globl	get_cpu
	.type	get_cpu, @function
get_cpu:
.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
	lea	rax, .LC5[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC6[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_resource
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movsd	xmm0, QWORD PTR .LC7[rip]
	subsd	xmm0, xmm1
	cvtsd2ss	xmm0, xmm0
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	get_cpu, .-get_cpu
	.section	.rodata
	.align 8
.LC8:
	.string	"cat /proc/meminfo | grep MemTotal "
.LC9:
	.string	"[0-9]+"
	.align 8
.LC10:
	.string	"cat /proc/meminfo | grep MemAvailable"
	.text
	.globl	get_mem
	.type	get_mem, @function
get_mem:
.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
	lea	rax, .LC8[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_resource
	movd	eax, xmm0
	mov	DWORD PTR -40[rbp], eax
	lea	rax, .LC10[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_resource
	movd	eax, xmm0
	mov	DWORD PTR -36[rbp], eax
	movss	xmm0, DWORD PTR -36[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, DWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR .LC11[rip]
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR .LC11[rip]
	subss	xmm0, xmm1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_mem, .-get_mem
	.section	.rodata
	.align 8
.LC12:
	.string	"cat /proc/meminfo | grep SwapTotal "
	.align 8
.LC13:
	.string	"cat /proc/meminfo | grep SwapFree"
	.text
	.globl	get_swap
	.type	get_swap, @function
get_swap:
.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, 48
	lea	rax, .LC12[rip]
	mov	QWORD PTR -32[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -32[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_resource
	movd	eax, xmm0
	mov	DWORD PTR -40[rbp], eax
	lea	rax, .LC13[rip]
	mov	QWORD PTR -16[rbp], rax
	lea	rax, .LC9[rip]
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	get_resource
	movd	eax, xmm0
	mov	DWORD PTR -36[rbp], eax
	movss	xmm0, DWORD PTR -36[rbp]
	movaps	xmm1, xmm0
	divss	xmm1, DWORD PTR -40[rbp]
	movss	xmm0, DWORD PTR .LC11[rip]
	mulss	xmm1, xmm0
	movss	xmm0, DWORD PTR .LC11[rip]
	subss	xmm0, xmm1
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_swap, .-get_swap
	.section	.rodata
.LC14:
	.string	"%2.2f"
.LC15:
	.string	","
.LC16:
	.string	"%2.2f>"
	.text
	.globl	get_all
	.type	get_all, @function
get_all:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	BYTE PTR [rax], 60
	mov	eax, 0
	call	get_cpu
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rbx, xmm1
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	movq	xmm0, rbx
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	sprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, 0
	call	get_mem
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rbx, xmm2
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	movq	xmm0, rbx
	lea	rsi, .LC14[rip]
	mov	rdi, rax
	mov	eax, 1
	call	sprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, 0
	call	get_swap
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm0
	movq	rbx, xmm3
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, QWORD PTR -24[rbp]
	add	rax, rdx
	movq	xmm0, rbx
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	mov	eax, 1
	call	sprintf@PLT
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	get_all, .-get_all
	.section	.rodata
.LC17:
	.string	"ERROR, no port provided\n"
.LC18:
	.string	"ERROR opening socket"
.LC19:
	.string	"ERROR on binding"
.LC20:
	.string	"Client connected"
.LC21:
	.string	"ERROR on accept"
.LC22:
	.string	"ERROR writing to socket"
.LC23:
	.string	"Wrote %d bytes\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB12:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -116[rbp], 1
	jg	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 24
	mov	esi, 1
	lea	rdi, .LC17[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	edx, 0
	mov	esi, 1
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -96[rbp], eax
	cmp	DWORD PTR -96[rbp], 0
	jns	.L21
	lea	rdi, .LC18[rip]
	call	error
.L21:
	lea	rax, -80[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -128[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -92[rbp], eax
	mov	WORD PTR -80[rbp], 2
	mov	DWORD PTR -76[rbp], 0
	mov	eax, DWORD PTR -92[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -78[rbp], ax
	lea	rcx, -80[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L22
	lea	rdi, .LC19[rip]
	call	error
.L22:
	mov	eax, DWORD PTR -96[rbp]
	mov	esi, 5
	mov	edi, eax
	call	listen@PLT
	mov	DWORD PTR -100[rbp], 16
	lea	rdx, -100[rbp]
	lea	rcx, -64[rbp]
	mov	eax, DWORD PTR -96[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -88[rbp], eax
	lea	rdi, .LC20[rip]
	mov	eax, 0
	call	printf@PLT
	cmp	DWORD PTR -88[rbp], 0
	jns	.L26
	lea	rdi, .LC21[rip]
	call	error
.L26:
	lea	rax, -48[rbp]
	mov	edx, 32
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	get_all
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	puts@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	rdx, rax
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -88[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L24
	lea	rdi, .LC22[rip]
	call	error
	jmp	.L26
.L24:
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L26
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.section	.rodata
	.align 4
.LC1:
	.long	-1082130432
	.align 8
.LC7:
	.long	0
	.long	1079574528
	.align 4
.LC11:
	.long	1120403456
	.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	"989123.c"
	.text
	.align	2
	.global	error
	.syntax unified
	.arm
	.fpu softvfp
	.type	error, %function
error:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-8]
	bl	perror
	mov	r0, #1
	bl	exit
	.size	error, .-error
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Regex error compiling '%s': %s\012\000"
	.align	2
.LC1:
	.ascii	"r\000"
	.align	2
.LC2:
	.ascii	"Error opening pipe!\000"
	.align	2
.LC3:
	.ascii	"Command not found or exited with error status\000"
	.global	__aeabi_d2f
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_resource
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_resource, %function
get_resource:
	@ args = 0, pretend = 0, frame = 4168
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #4160
	sub	sp, sp, #20
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r0, [r3, #-68]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	str	r1, [r3, #-72]
	ldr	r3, .L11
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r1, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #44
	mov	r2, #5
	ldr	r1, [r1, #-72]
	mov	r0, r3
	bl	regcomp
	str	r0, [r4, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	beq	.L3
	sub	r2, fp, #4096
	sub	r2, r2, #12
	sub	r2, r2, #4
	sub	r1, fp, #4096
	sub	r1, r1, #12
	sub	r1, r1, #44
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r0, r3
	mov	r3, #4096
	ldr	r0, [r0, #-60]
	bl	regerror
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #4
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	mov	r2, r3
	ldr	r1, [r1, #-72]
	ldr	r0, .L11+4
	bl	printf
	ldr	r3, .L11+8
	b	.L9
.L3:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r1, .L11+12
	ldr	r0, [r3, #-68]
	bl	popen
	str	r0, [r4, #-56]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-56]
	cmp	r3, #0
	bne	.L5
	ldr	r0, .L11+16
	bl	puts
	ldr	r3, .L11+8
	b	.L9
.L5:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	mov	r0, #128
	bl	malloc
	mov	r3, r0
	str	r3, [r4, #-52]
	nop
.L6:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r2, [r2, #-56]
	mov	r1, #128
	ldr	r0, [r3, #-52]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-56]
	bl	pclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L7
	ldr	r0, .L11+20
	bl	puts
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-52]
	bl	free
	ldr	r3, .L11+8
	b	.L9
.L7:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	mov	r4, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #12
	sub	r2, fp, #4096
	sub	r2, r2, #12
	mov	r1, r2
	sub	r0, fp, #4096
	sub	r0, r0, #12
	sub	r0, r0, #44
	mov	r2, #0
	str	r2, [sp]
	mov	r2, #1
	ldr	r1, [r1, #-52]
	bl	regexec
	str	r0, [r4, #-60]
	sub	r3, fp, #4096
	sub	r3, r3, #12
	sub	r3, r3, #44
	mov	r0, r3
	bl	regfree
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-60]
	cmp	r3, #0
	bne	.L8
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-12]
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-52]
	add	r3, r3, r2
	mov	r0, r3
	bl	atof
	mov	r2, r0
	mov	r3, r1
	sub	r1, fp, #4096
	sub	r1, r1, #12
	mov	r4, r1
	mov	r0, r2
	mov	r1, r3
	bl	__aeabi_d2f
	mov	r3, r0
	str	r3, [r4, #-48]	@ float
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-52]
	bl	free
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r3, [r3, #-48]	@ float
	b	.L9
.L8:
	sub	r3, fp, #4096
	sub	r3, r3, #12
	ldr	r0, [r3, #-52]
	bl	free
	ldr	r3, .L11+8
.L9:
	ldr	r2, .L11
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L10
	bl	__stack_chk_fail
.L10:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L12:
	.align	2
.L11:
	.word	.LC4
	.word	.LC0
	.word	-1082130432
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	get_resource, .-get_resource
	.section	.rodata
	.align	2
.LC5:
	.ascii	"mpstat 1 1\000"
	.align	2
.LC6:
	.ascii	"[0-9]*\\.[0-9]*$\000"
	.global	__aeabi_fsub
	.text
	.align	2
	.global	get_cpu
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cpu, %function
get_cpu:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r3, .L15
	str	r3, [fp, #-12]
	ldr	r3, .L15+4
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	get_resource
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L15+8
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC5
	.word	.LC6
	.word	1120403456
	.size	get_cpu, .-get_cpu
	.section	.rodata
	.align	2
.LC7:
	.ascii	"cat /proc/meminfo | grep MemTotal \000"
	.align	2
.LC8:
	.ascii	"[0-9]+\000"
	.align	2
.LC9:
	.ascii	"cat /proc/meminfo | grep MemAvailable\000"
	.global	__aeabi_fdiv
	.global	__aeabi_fmul
	.text
	.align	2
	.global	get_mem
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_mem, %function
get_mem:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L19
	str	r3, [fp, #-28]
	ldr	r3, .L19+4
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	get_resource
	str	r0, [fp, #-20]	@ float
	ldr	r3, .L19+8
	str	r3, [fp, #-16]
	ldr	r3, .L19+4
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	get_resource
	str	r0, [fp, #-8]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L19+12
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L19+12
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	1120403456
	.size	get_mem, .-get_mem
	.section	.rodata
	.align	2
.LC10:
	.ascii	"cat /proc/meminfo | grep SwapTotal \000"
	.align	2
.LC11:
	.ascii	"cat /proc/meminfo | grep SwapFree\000"
	.text
	.align	2
	.global	get_swap
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_swap, %function
get_swap:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L23
	str	r3, [fp, #-28]
	ldr	r3, .L23+4
	str	r3, [fp, #-24]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-28]
	bl	get_resource
	str	r0, [fp, #-20]	@ float
	ldr	r3, .L23+8
	str	r3, [fp, #-16]
	ldr	r3, .L23+4
	str	r3, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-16]
	bl	get_resource
	str	r0, [fp, #-8]	@ float
	ldr	r1, [fp, #-20]	@ float
	ldr	r0, [fp, #-8]	@ float
	bl	__aeabi_fdiv
	mov	r3, r0
	ldr	r1, .L23+12
	mov	r0, r3
	bl	__aeabi_fmul
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L23+12
	bl	__aeabi_fsub
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	.LC8
	.word	.LC11
	.word	1120403456
	.size	get_swap, .-get_swap
	.global	__aeabi_f2d
	.section	.rodata
	.align	2
.LC12:
	.ascii	"%2.2f\000"
	.align	2
.LC13:
	.ascii	",\000"
	.align	2
.LC14:
	.ascii	"%2.2f>\000"
	.text
	.align	2
	.global	get_all
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_all, %function
get_all:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r2, #60
	strb	r2, [r3]
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r4, r3, r2
	bl	get_cpu
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L27
	mov	r0, r4
	bl	sprintf
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r1, .L27+4
	mov	r0, r3
	bl	sprintf
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r4, r3, r2
	bl	get_mem
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L27
	mov	r0, r4
	bl	sprintf
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r3, r3, r2
	ldr	r1, .L27+4
	mov	r0, r3
	bl	sprintf
	ldr	r0, [fp, #-16]
	bl	strlen
	mov	r2, r0
	ldr	r3, [fp, #-16]
	add	r4, r3, r2
	bl	get_swap
	mov	r3, r0
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r1, .L27+8
	mov	r0, r4
	bl	sprintf
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L28:
	.align	2
.L27:
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	get_all, .-get_all
	.section	.rodata
	.align	2
.LC15:
	.ascii	"ERROR, no port provided\012\000"
	.align	2
.LC16:
	.ascii	"ERROR opening socket\000"
	.align	2
.LC17:
	.ascii	"ERROR on binding\000"
	.align	2
.LC18:
	.ascii	"Client connected\000"
	.align	2
.LC19:
	.ascii	"ERROR on accept\000"
	.align	2
.LC20:
	.ascii	"ERROR writing to socket\000"
	.align	2
.LC21:
	.ascii	"Wrote %d bytes\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	str	r0, [fp, #-96]
	str	r1, [fp, #-100]
	ldr	r3, .L38
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-96]
	cmp	r3, #1
	bgt	.L30
	ldr	r3, .L38+4
	ldr	r3, [r3]
	mov	r2, #24
	mov	r1, #1
	ldr	r0, .L38+8
	bl	fwrite
	mov	r0, #1
	bl	exit
.L30:
	mov	r2, #0
	mov	r1, #1
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-88]
	ldr	r3, [fp, #-88]
	cmp	r3, #0
	bge	.L31
	ldr	r0, .L38+12
	bl	error
.L31:
	sub	r3, fp, #72
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2]
	str	r3, [r2, #4]
	str	r3, [r2, #8]
	str	r3, [r2, #12]
	ldr	r3, [fp, #-100]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-84]
	mov	r3, #2
	strh	r3, [fp, #-72]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-68]
	ldr	r3, [fp, #-84]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-70]	@ movhi
	sub	r3, fp, #72
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L32
	ldr	r0, .L38+16
	bl	error
.L32:
	mov	r1, #5
	ldr	r0, [fp, #-88]
	bl	listen
	mov	r3, #16
	str	r3, [fp, #-92]
	sub	r2, fp, #92
	sub	r3, fp, #56
	mov	r1, r3
	ldr	r0, [fp, #-88]
	bl	accept
	str	r0, [fp, #-80]
	ldr	r0, .L38+20
	bl	printf
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	bge	.L36
	ldr	r0, .L38+24
	bl	error
.L36:
	sub	r3, fp, #40
	mov	r2, #32
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #40
	mov	r0, r3
	bl	get_all
	sub	r3, fp, #40
	mov	r0, r3
	bl	puts
	sub	r3, fp, #40
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #40
	mov	r1, r3
	ldr	r0, [fp, #-80]
	bl	write
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L34
	ldr	r0, .L38+28
	bl	error
	b	.L36
.L34:
	ldr	r1, [fp, #-76]
	ldr	r0, .L38+32
	bl	printf
	b	.L36
.L39:
	.align	2
.L38:
	.word	.LC22
	.word	stderr
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.word	.LC21
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
