	.file	"851174.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/null"
.LC1:
	.string	"fork"
	.text
	.type	build_daemon, @function
build_daemon:
.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	esi, 0
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 0
	je	.L2
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 0
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
.L2:
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 1
	je	.L3
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 1
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
.L3:
	mov	esi, 1
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], 2
	je	.L4
	mov	eax, DWORD PTR -8[rbp]
	mov	esi, 2
	mov	edi, eax
	call	dup2@PLT
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
.L4:
	call	setsid@PLT
	call	fork@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L5
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	cmp	DWORD PTR -4[rbp], 0
	je	.L7
	mov	edi, 0
	call	exit@PLT
.L7:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	build_daemon, .-build_daemon
	.section	.rodata
	.align 8
.LC2:
	.string	"/sys/class/net/wlan0/statistics/rx_bytes"
.LC3:
	.string	"open"
	.align 8
.LC4:
	.string	"/sys/class/net/wlan0/statistics/tx_bytes"
	.text
	.type	refresh, @function
refresh:
.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, 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 0
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L9
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L12
.L9:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atoll@PLT
	mov	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	esi, 0
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -60[rbp], eax
	cmp	DWORD PTR -60[rbp], 0
	jns	.L11
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	rax, -1
	jmp	.L12
.L11:
	lea	rcx, -48[rbp]
	mov	eax, DWORD PTR -60[rbp]
	mov	edx, 32
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	atoll@PLT
	add	QWORD PTR -56[rbp], rax
	mov	eax, DWORD PTR -60[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -56[rbp]
.L12:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	refresh, .-refresh
	.local	ledpntr
	.comm	ledpntr,4,4
	.section	.rodata
	.align 8
.LC5:
	.string	"/sys/class/leds/chip:white:status/brightness"
.LC6:
	.string	"0"
.LC7:
	.string	"1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	esi, 1
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR ledpntr[rip], eax
	mov	eax, DWORD PTR ledpntr[rip]
	test	eax, eax
	jns	.L15
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, -1
	call	exit@PLT
.L15:
	call	build_daemon
	mov	QWORD PTR -16[rbp], 0
.L17:
	call	refresh
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	shr	rax, 12
	movabs	rdx, 737869762948382228
	mul	rdx
	mov	rcx, rdx
	mov	rax, QWORD PTR -16[rbp]
	shr	rax, 12
	movabs	rdx, 737869762948382228
	mul	rdx
	mov	rax, rdx
	cmp	rcx, rax
	je	.L16
	mov	eax, DWORD PTR ledpntr[rip]
	mov	edx, 1
	lea	rsi, .LC6[rip]
	mov	edi, eax
	call	write@PLT
	mov	edi, 100000
	call	usleep@PLT
	mov	eax, DWORD PTR ledpntr[rip]
	mov	edx, 1
	lea	rsi, .LC7[rip]
	mov	edi, eax
	call	write@PLT
.L16:
	mov	rax, QWORD PTR -8[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	edi, 100000
	call	usleep@PLT
	jmp	.L17
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.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	"851174.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/null\000"
	.align	2
.LC1:
	.ascii	"fork\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	build_daemon, %function
build_daemon:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r1, #0
	ldr	r0, .L8
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L2
	mov	r1, #0
	ldr	r0, [fp, #-12]
	bl	dup2
	ldr	r0, [fp, #-12]
	bl	close
.L2:
	mov	r1, #1
	ldr	r0, .L8
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #1
	beq	.L3
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	dup2
	ldr	r0, [fp, #-12]
	bl	close
.L3:
	mov	r1, #1
	ldr	r0, .L8
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #2
	beq	.L4
	mov	r1, #2
	ldr	r0, [fp, #-12]
	bl	dup2
	ldr	r0, [fp, #-12]
	bl	close
.L4:
	bl	setsid
	bl	fork
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L5
	ldr	r0, .L8+4
	bl	perror
	mov	r0, #1
	bl	exit
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L7
	mov	r0, #0
	bl	exit
.L7:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	.LC1
	.size	build_daemon, .-build_daemon
	.section	.rodata
	.align	2
.LC2:
	.ascii	"/sys/class/net/wlan0/statistics/rx_bytes\000"
	.align	2
.LC3:
	.ascii	"open\000"
	.align	2
.LC4:
	.ascii	"/sys/class/net/wlan0/statistics/tx_bytes\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	refresh, %function
refresh:
	@ args = 0, pretend = 0, frame = 56
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #56
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r1, #0
	ldr	r0, .L16+4
	bl	open
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L11
	ldr	r0, .L16+8
	bl	perror
	mvn	r2, #0
	mvn	r3, #0
	b	.L14
.L11:
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	read
	sub	r3, fp, #48
	mov	r0, r3
	bl	atoll
	mov	r2, r0
	mov	r3, r1
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	ldr	r0, [fp, #-64]
	bl	close
	mov	r1, #0
	ldr	r0, .L16+12
	bl	open
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-64]
	cmp	r3, #0
	bge	.L13
	ldr	r0, .L16+8
	bl	perror
	mvn	r2, #0
	mvn	r3, #0
	b	.L14
.L13:
	sub	r3, fp, #48
	mov	r2, #32
	mov	r1, r3
	ldr	r0, [fp, #-64]
	bl	read
	sub	r3, fp, #48
	mov	r0, r3
	bl	atoll
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
	adds	r4, r2, r0
	adc	r5, r3, r1
	str	r4, [fp, #-60]
	str	r5, [fp, #-56]
	ldr	r0, [fp, #-64]
	bl	close
	sub	r3, fp, #60
	ldmia	r3, {r2-r3}
.L14:
	ldr	r1, .L16
	ldr	r0, [r1]
	ldr	r1, [fp, #-16]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC5
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	refresh, .-refresh
	.local	ledpntr
	.comm	ledpntr,4,4
	.section	.rodata
	.align	2
.LC6:
	.ascii	"/sys/class/leds/chip:white:status/brightness\000"
	.global	__aeabi_uldivmod
	.align	2
.LC7:
	.ascii	"0\000"
	.align	2
.LC8:
	.ascii	"1\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r1, #1
	ldr	r0, .L22
	bl	open
	mov	r3, r0
	ldr	r2, .L22+4
	str	r3, [r2]
	ldr	r3, .L22+4
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L22+8
	bl	perror
	mvn	r0, #0
	bl	exit
.L19:
	bl	build_daemon
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
.L21:
	bl	refresh
	str	r0, [fp, #-20]
	str	r1, [fp, #-16]
	sub	r1, fp, #20
	ldmia	r1, {r0-r1}
	mov	r2, #102400
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r1, fp, #28
	ldmia	r1, {r0-r1}
	mov	r2, #102400
	mov	r3, #0
	bl	__aeabi_uldivmod
	mov	r2, r0
	mov	r3, r1
	cmp	r5, r3
	cmpeq	r4, r2
	beq	.L20
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L22+12
	mov	r0, r3
	bl	write
	ldr	r0, .L22+16
	bl	usleep
	ldr	r3, .L22+4
	ldr	r3, [r3]
	mov	r2, #1
	ldr	r1, .L22+20
	mov	r0, r3
	bl	write
.L20:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	str	r2, [fp, #-28]
	str	r3, [fp, #-24]
	ldr	r0, .L22+16
	bl	usleep
	b	.L21
.L23:
	.align	2
.L22:
	.word	.LC6
	.word	ledpntr
	.word	.LC3
	.word	.LC7
	.word	100000
	.word	.LC8
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
