	.file	"658672.c"
	.intel_syntax noprefix
	.text
	.data
	.align 4
	.type	DELAY, @object
	.size	DELAY, 4
DELAY:
	.long	5
	.section	.rodata
	.align 16
	.type	PATH, @object
	.size	PATH, 24
PATH:
	.string	"/sys/class/power_supply"
	.align 8
.LC0:
	.string	"usage : %s [-r <delay> (default : %u)]\n"
	.text
	.type	usage, @function
usage:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 24
	.cfi_offset 3, -24
	mov	QWORD PTR -24[rbp], rdi
	mov	ebx, DWORD PTR DELAY[rip]
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, ebx
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	.cfi_endproc
.LFE6:
	.size	usage, .-usage
	.type	_strtou, @function
_strtou:
.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, 48
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	lea	rcx, -24[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	edx, 10
	mov	rsi, rcx
	mov	rdi, rax
	call	strtol@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	js	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L4
.L3:
	mov	eax, 0
	jmp	.L5
.L4:
	mov	rax, QWORD PTR -16[rbp]
.L5:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_strtou, .-_strtou
	.section	.rodata
.LC1:
	.string	"%s"
	.text
	.type	_strncpy, @function
_strncpy:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, rdx
	lea	rdx, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], 0
	jns	.L8
	mov	eax, 0
	jmp	.L9
.L8:
	mov	rax, QWORD PTR -24[rbp]
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_strncpy, .-_strncpy
	.section	.rodata
.LC2:
	.string	"r"
	.text
	.type	get_value_from_file, @function
get_value_from_file:
.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	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L11
	mov	eax, 0
	jmp	.L12
.L11:
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, eax
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	fgets@PLT
	test	rax, rax
	jne	.L13
	mov	eax, 0
	jmp	.L12
.L13:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	fclose@PLT
	test	eax, eax
	je	.L14
	mov	eax, 0
	jmp	.L12
.L14:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strnlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -24[rbp]
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_value_from_file, .-get_value_from_file
	.section	.rodata
	.align 8
.LC3:
	.string	"error : failed to allocate '%lu' bytes of memory"
.LC4:
	.string	"error : failed to open '%s'\n"
.LC5:
	.string	"BAT"
	.align 8
.LC6:
	.string	"error : failed to get list of batteries\n"
.LC7:
	.string	"%s/%s/capacity"
.LC8:
	.string	"%s/%s/status"
	.align 8
.LC9:
	.string	"error : failed to allocate '%lu' bytes of memory\n"
	.text
	.type	get_batteries, @function
get_batteries:
.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, 64
	mov	QWORD PTR -56[rbp], rdi
	mov	QWORD PTR -64[rbp], rsi
	mov	QWORD PTR -40[rbp], 2
	mov	QWORD PTR -32[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	imul	rax, rax, 12544
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR bt.0[rip], rax
	mov	rax, QWORD PTR bt.0[rip]
	test	rax, rax
	jne	.L16
	mov	rax, QWORD PTR -40[rbp]
	imul	rdx, rax, 12544
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L16:
	mov	rax, QWORD PTR -56[rbp]
	mov	rdi, rax
	call	opendir@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L18
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -56[rbp]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L22:
	mov	rax, QWORD PTR -16[rbp]
	add	rax, 19
	mov	edx, 3
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	jne	.L18
	mov	rdx, QWORD PTR bt.0[rip]
	mov	rax, QWORD PTR -32[rbp]
	imul	rax, rax, 12544
	add	rax, rdx
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	BYTE PTR 8447[rax], 0
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8448
	mov	edx, 2048
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 10496
	mov	edx, 2048
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	rax, QWORD PTR -16[rbp]
	lea	rcx, 19[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, 255
	mov	rsi, rcx
	mov	rdi, rax
	call	_strncpy
	test	rax, rax
	jne	.L19
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L19:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 255[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC7[rip]
	mov	esi, 4096
	mov	eax, 0
	call	snprintf@PLT
	test	eax, eax
	jns	.L20
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L20:
	mov	rax, QWORD PTR -16[rbp]
	lea	rdx, 19[rax]
	mov	rax, QWORD PTR -8[rbp]
	lea	rdi, 4351[rax]
	mov	rax, QWORD PTR -56[rbp]
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC8[rip]
	mov	esi, 4096
	mov	eax, 0
	call	snprintf@PLT
	test	eax, eax
	jns	.L21
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 40
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	add	QWORD PTR -32[rbp], 1
	mov	rax, QWORD PTR -32[rbp]
	cmp	rax, QWORD PTR -40[rbp]
	jne	.L18
	mov	rdx, QWORD PTR -40[rbp]
	mov	rax, rdx
	add	rax, rax
	add	rax, rdx
	shr	rax
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	imul	rdx, rax, 12544
	mov	rax, QWORD PTR bt.0[rip]
	mov	rsi, rdx
	mov	rdi, rax
	call	realloc@PLT
	mov	QWORD PTR bt.0[rip], rax
	mov	rax, QWORD PTR bt.0[rip]
	test	rax, rax
	jne	.L18
	mov	rax, QWORD PTR -40[rbp]
	imul	rdx, rax, 12544
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L18:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	readdir@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L22
	mov	rax, QWORD PTR -64[rbp]
	mov	rdx, QWORD PTR -32[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rax, QWORD PTR bt.0[rip]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	get_batteries, .-get_batteries
	.section	.rodata
	.align 8
.LC10:
	.string	"error : failed to get content from '%s'\n"
.LC11:
	.string	"%s %s %s"
	.align 8
.LC12:
	.string	"error : failed to format output\n"
	.text
	.type	subscribe_batteries, @function
subscribe_batteries:
.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, 64
	mov	QWORD PTR -4152[rbp], rdi
	mov	QWORD PTR -4160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -4112[rbp], 0
	mov	QWORD PTR -4104[rbp], 0
	lea	rdx, -4096[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
	mov	QWORD PTR -2064[rbp], 0
	mov	QWORD PTR -2056[rbp], 0
	lea	rdx, -2048[rbp]
	mov	eax, 0
	mov	ecx, 254
	mov	rdi, rdx
	rep stosq
.L31:
	mov	QWORD PTR -4128[rbp], 0
	jmp	.L25
.L30:
	mov	rax, QWORD PTR -4128[rbp]
	imul	rdx, rax, 12544
	mov	rax, QWORD PTR -4152[rbp]
	add	rax, rdx
	mov	QWORD PTR -4120[rbp], rax
	mov	rax, QWORD PTR -4120[rbp]
	movzx	eax, BYTE PTR 8447[rax]
	mov	BYTE PTR -4129[rbp], al
	mov	rax, QWORD PTR -4120[rbp]
	lea	rcx, 255[rax]
	lea	rax, -4112[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	rdi, rax
	call	get_value_from_file
	test	rax, rax
	jne	.L26
	mov	rax, QWORD PTR -4120[rbp]
	lea	rdx, 255[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	mov	rax, QWORD PTR -4120[rbp]
	lea	rcx, 4351[rax]
	lea	rax, -2064[rbp]
	mov	edx, 2048
	mov	rsi, rcx
	mov	rdi, rax
	call	get_value_from_file
	test	rax, rax
	jne	.L27
	mov	rax, QWORD PTR -4120[rbp]
	lea	rdx, 4351[rax]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC10[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L27:
	mov	rax, QWORD PTR -4120[rbp]
	movzx	edx, BYTE PTR -4129[rbp]
	movsx	rdx, edx
	sal	rdx, 11
	lea	rcx, 8448[rdx]
	mov	rdx, QWORD PTR -4120[rbp]
	lea	rdi, [rcx+rdx]
	lea	rcx, -4112[rbp]
	lea	rdx, -2064[rbp]
	mov	r9, rcx
	mov	r8, rdx
	mov	rcx, rax
	lea	rdx, .LC11[rip]
	mov	esi, 2048
	mov	eax, 0
	call	snprintf@PLT
	test	eax, eax
	jns	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC12[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L28:
	movzx	eax, BYTE PTR -4129[rbp]
	cdqe
	sal	rax, 11
	lea	rdx, 8448[rax]
	mov	rax, QWORD PTR -4120[rbp]
	lea	rcx, [rdx+rax]
	movzx	eax, BYTE PTR -4129[rbp]
	xor	eax, 1
	movzx	eax, al
	cdqe
	sal	rax, 11
	lea	rdx, 8448[rax]
	mov	rax, QWORD PTR -4120[rbp]
	add	rax, rdx
	mov	edx, 2048
	mov	rsi, rcx
	mov	rdi, rax
	call	strncmp@PLT
	test	eax, eax
	je	.L29
	movzx	eax, BYTE PTR -4129[rbp]
	cdqe
	sal	rax, 11
	lea	rdx, 8448[rax]
	mov	rax, QWORD PTR -4120[rbp]
	add	rax, rdx
	mov	rdi, rax
	call	puts@PLT
	mov	rax, QWORD PTR stdout[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -4120[rbp]
	movzx	eax, BYTE PTR 8447[rax]
	xor	eax, 1
	movzx	eax, al
	test	eax, eax
	setne	dl
	mov	rax, QWORD PTR -4120[rbp]
	mov	BYTE PTR 8447[rax], dl
.L29:
	add	QWORD PTR -4128[rbp], 1
.L25:
	mov	rax, QWORD PTR -4128[rbp]
	cmp	rax, QWORD PTR -4160[rbp]
	jb	.L30
	mov	eax, DWORD PTR DELAY[rip]
	mov	edi, eax
	call	sleep@PLT
	jmp	.L31
	.cfi_endproc
.LFE11:
	.size	subscribe_batteries, .-subscribe_batteries
	.section	.rodata
	.align 8
.LC13:
	.string	"error : '%s' invalid parameter\n"
.LC14:
	.string	":r:"
	.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
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	jmp	.L34
.L37:
	cmp	DWORD PTR -28[rbp], 114
	jne	.L35
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	_strtou
	mov	DWORD PTR DELAY[rip], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L34
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC13[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L35:
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L34:
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	lea	rdx, .LC14[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -28[rbp], eax
	cmp	DWORD PTR -28[rbp], -1
	jne	.L37
	mov	eax, DWORD PTR optind[rip]
	cmp	DWORD PTR -36[rbp], eax
	jle	.L38
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
.L38:
	lea	rax, -24[rbp]
	mov	rsi, rax
	lea	rdi, PATH[rip]
	call	get_batteries
	mov	QWORD PTR -16[rbp], rax
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	subscribe_batteries
	.cfi_endproc
.LFE12:
	.size	main, .-main
	.local	bt.0
	.comm	bt.0,8,8
	.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	"658672.c"
	.text
	.data
	.align	2
	.type	DELAY, %object
	.size	DELAY, 4
DELAY:
	.word	5
	.section	.rodata
	.align	2
	.type	PATH, %object
	.size	PATH, 24
PATH:
	.ascii	"/sys/class/power_supply\000"
	.align	2
.LC0:
	.ascii	"usage : %s [-r <delay> (default : %u)]\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #12
	str	r0, [fp, #-16]
	ldr	r3, .L2
	ldr	r4, [r3]
	ldr	r0, [fp, #-16]
	bl	__xpg_basename
	mov	r2, r0
	ldr	r3, .L2+4
	ldr	r3, [r3]
	ldr	r1, .L2+8
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L3:
	.align	2
.L2:
	.word	stderr
	.word	DELAY
	.word	.LC0
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_strtou, %function
_strtou:
	@ 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, #-24]
	ldr	r3, .L9
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #16
	mov	r2, #10
	mov	r1, r3
	ldr	r0, [fp, #-24]
	bl	strtol
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	blt	.L5
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L6
.L5:
	mov	r3, #0
	b	.L7
.L6:
	ldr	r3, [fp, #-12]
.L7:
	ldr	r2, .L9
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L8
	bl	__stack_chk_fail
.L8:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.size	_strtou, .-_strtou
	.section	.rodata
	.align	2
.LC2:
	.ascii	"%s\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_strncpy, %function
_strncpy:
	@ 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, [fp, #-20]
	ldr	r2, .L14
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	snprintf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bge	.L12
	mov	r3, #0
	b	.L13
.L12:
	ldr	r3, [fp, #-16]
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.size	_strncpy, .-_strncpy
	.section	.rodata
	.align	2
.LC3:
	.ascii	"r\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_value_from_file, %function
get_value_from_file:
	@ 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	r1, .L21
	ldr	r0, [fp, #-20]
	bl	fopen
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L17
	mov	r3, #0
	b	.L18
.L17:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-8]
	mov	r1, r3
	ldr	r0, [fp, #-16]
	bl	fgets
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	b	.L18
.L19:
	ldr	r0, [fp, #-8]
	bl	fclose
	mov	r3, r0
	cmp	r3, #0
	beq	.L20
	mov	r3, #0
	b	.L18
.L20:
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-16]
	bl	strnlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L22:
	.align	2
.L21:
	.word	.LC3
	.size	get_value_from_file, .-get_value_from_file
	.section	.rodata
	.align	2
.LC4:
	.ascii	"error : failed to allocate '%lu' bytes of memory\000"
	.align	2
.LC5:
	.ascii	"error : failed to open '%s'\012\000"
	.align	2
.LC6:
	.ascii	"BAT\000"
	.align	2
.LC7:
	.ascii	"error : failed to get list of batteries\012\000"
	.align	2
.LC8:
	.ascii	"%s/%s/capacity\000"
	.align	2
.LC9:
	.ascii	"%s/%s/status\000"
	.align	2
.LC10:
	.ascii	"error : failed to allocate '%lu' bytes of memory\012"
	.ascii	"\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_batteries, %function
get_batteries:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	mov	r3, #2
	str	r3, [fp, #-24]
	mov	r3, #0
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #8
	mov	r2, r3
	mov	r3, r2
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L32
	str	r2, [r3]
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L24
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #8
	mov	r2, r3
	mov	r3, r2
	mov	r2, r3
	ldr	r1, .L32+8
	bl	fprintf
	mov	r0, #1
	bl	exit
.L24:
	ldr	r0, [fp, #-32]
	bl	opendir
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L32+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L32+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L30:
	ldr	r3, [fp, #-12]
	add	r3, r3, #11
	mov	r2, #3
	ldr	r1, .L32+16
	mov	r0, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L32
	ldr	r1, [r3]
	ldr	r2, [fp, #-20]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #8
	mov	r2, r3
	mov	r3, r2
	add	r3, r1, r3
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8192
	mov	r2, #0
	strb	r2, [r3, #255]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8448
	mov	r2, #2048
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-8]
	add	r3, r3, #10496
	mov	r2, #2048
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r0, [fp, #-8]
	ldr	r3, [fp, #-12]
	add	r3, r3, #11
	mov	r2, #255
	mov	r1, r3
	bl	_strncpy
	mov	r3, r0
	cmp	r3, #0
	bne	.L27
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L32+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L27:
	ldr	r3, [fp, #-8]
	add	r0, r3, #255
	ldr	r3, [fp, #-12]
	add	r3, r3, #11
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, .L32+24
	mov	r1, #4096
	bl	snprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L28
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L32+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L28:
	ldr	r3, [fp, #-8]
	add	r0, r3, #4288
	add	r0, r0, #63
	ldr	r3, [fp, #-12]
	add	r3, r3, #11
	str	r3, [sp]
	ldr	r3, [fp, #-32]
	ldr	r2, .L32+28
	mov	r1, #4096
	bl	snprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L29
	ldr	r3, .L32+4
	ldr	r3, [r3]
	mov	r2, #40
	mov	r1, #1
	ldr	r0, .L32+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L29:
	ldr	r3, [fp, #-20]
	add	r3, r3, #1
	str	r3, [fp, #-20]
	ldr	r2, [fp, #-20]
	ldr	r3, [fp, #-24]
	cmp	r2, r3
	bne	.L26
	ldr	r3, .L32
	ldr	r0, [r3]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #1
	add	r3, r3, r2
	lsr	r3, r3, #1
	str	r3, [fp, #-24]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #8
	mov	r2, r3
	mov	r3, r2
	mov	r1, r3
	bl	realloc
	mov	r3, r0
	ldr	r2, .L32
	str	r3, [r2]
	ldr	r3, .L32
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L26
	ldr	r3, .L32+4
	ldr	r0, [r3]
	ldr	r2, [fp, #-24]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #8
	mov	r2, r3
	mov	r3, r2
	mov	r2, r3
	ldr	r1, .L32+32
	bl	fprintf
	mov	r0, #1
	bl	exit
.L26:
	ldr	r0, [fp, #-16]
	bl	readdir
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L30
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r3, .L32
	ldr	r3, [r3]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L33:
	.align	2
.L32:
	.word	bt.5994
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	get_batteries, .-get_batteries
	.section	.rodata
	.align	2
.LC11:
	.ascii	"error : failed to get content from '%s'\012\000"
	.align	2
.LC12:
	.ascii	"%s %s %s\000"
	.align	2
.LC13:
	.ascii	"error : failed to format output\012\000"
	.align	2
.LC14:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	subscribe_batteries, %function
subscribe_batteries:
	@ args = 0, pretend = 0, frame = 4120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #4096
	sub	sp, sp, #32
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r0, [r3, #-20]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	str	r1, [r3, #-24]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-4]
	mov	r0, r2
	ldr	r3, .L43+4
	mov	r2, r3
	mov	r1, #0
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-2056]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	ldr	r2, .L43+4
	mov	r1, #0
	mov	r0, r3
	bl	memset
.L41:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	mov	r3, #0
	str	r3, [r2, #-12]
	b	.L35
.L40:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-12]
	mov	r3, r2
	lsl	r3, r3, #3
	sub	r3, r3, r2
	lsl	r2, r3, #3
	sub	r2, r2, r3
	lsl	r3, r2, #8
	mov	r2, r3
	mov	r1, r2
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-20]
	add	r3, r3, r1
	str	r3, [r2, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #8192
	ldrb	r3, [r3, #255]
	strb	r3, [r2, #-13]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r1, r3, #255
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r0, r3
	bl	get_value_from_file
	mov	r3, r0
	cmp	r3, #0
	bne	.L36
	ldr	r3, .L43+8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #255
	mov	r2, r3
	ldr	r1, .L43+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L36:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r1, r3, #4288
	add	r1, r1, #63
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	mov	r2, #2048
	mov	r0, r3
	bl	get_value_from_file
	mov	r3, r0
	cmp	r3, #0
	bne	.L37
	ldr	r3, .L43+8
	ldr	r0, [r3]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #4288
	add	r3, r3, #63
	mov	r2, r3
	ldr	r1, .L43+12
	bl	fprintf
	mov	r0, #1
	bl	exit
.L37:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldrb	r3, [r3, #-13]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	lsl	r3, r3, #11
	add	r3, r3, #8448
	ldr	r2, [r2, #-8]
	add	r0, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r3, #-8]
	sub	r3, fp, #4096
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp, #4]
	sub	r3, fp, #2048
	sub	r3, r3, #4
	sub	r3, r3, #4
	str	r3, [sp]
	mov	r3, r2
	ldr	r2, .L43+16
	mov	r1, #2048
	bl	snprintf
	mov	r3, r0
	cmp	r3, #0
	bge	.L38
	ldr	r3, .L43+8
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L43+20
	bl	fwrite
	mov	r0, #1
	bl	exit
.L38:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldrb	r3, [r3, #-13]
	eor	r3, r3, #1
	and	r3, r3, #255
	sub	r2, fp, #4096
	sub	r2, r2, #4
	lsl	r3, r3, #11
	add	r3, r3, #8448
	ldr	r2, [r2, #-8]
	add	r0, r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldrb	r3, [r3, #-13]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	lsl	r3, r3, #11
	add	r3, r3, #8448
	ldr	r2, [r2, #-8]
	add	r3, r2, r3
	mov	r2, #2048
	mov	r1, r3
	bl	strncmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L39
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldrb	r3, [r3, #-13]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #4
	lsl	r3, r3, #11
	add	r3, r3, #8448
	ldr	r2, [r2, #-8]
	add	r3, r2, r3
	mov	r0, r3
	bl	puts
	ldr	r3, .L43+24
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #8192
	ldrb	r3, [r3, #255]	@ zero_extendqisi2
	eor	r3, r3, #1
	and	r3, r3, #255
	cmp	r3, #0
	movne	r3, #1
	moveq	r3, #0
	and	r2, r3, #255
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-8]
	add	r3, r3, #8192
	strb	r2, [r3, #255]
.L39:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r3, [r3, #-12]
	add	r3, r3, #1
	str	r3, [r2, #-12]
.L35:
	sub	r3, fp, #4096
	sub	r3, r3, #4
	mov	r2, r3
	sub	r3, fp, #4096
	sub	r3, r3, #4
	ldr	r2, [r2, #-12]
	ldr	r3, [r3, #-24]
	cmp	r2, r3
	bcc	.L40
	ldr	r3, .L43+28
	ldr	r3, [r3]
	mov	r0, r3
	bl	sleep
	b	.L41
.L44:
	.align	2
.L43:
	.word	.LC14
	.word	2044
	.word	stderr
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	stdout
	.word	DELAY
	.size	subscribe_batteries, .-subscribe_batteries
	.section	.rodata
	.align	2
.LC15:
	.ascii	"error : '%s' invalid parameter\012\000"
	.align	2
.LC16:
	.ascii	":r:\000"
	.align	2
.LC17:
	.word	__stack_chk_guard
	.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	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, .L52
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	b	.L46
.L49:
	ldr	r3, [fp, #-16]
	cmp	r3, #114
	bne	.L47
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L52+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	_strtou
	mov	r3, r0
	ldr	r2, .L52+8
	str	r3, [r2]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L52+12
	ldr	r3, [r3]
	ldr	r2, .L52+4
	ldr	r2, [r2]
	ldr	r1, .L52+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L47:
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L46:
	ldr	r2, .L52+20
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	bl	getopt
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	cmn	r3, #1
	bne	.L49
	ldr	r3, .L52+24
	ldr	r3, [r3]
	ldr	r2, [fp, #-24]
	cmp	r2, r3
	ble	.L50
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
.L50:
	sub	r3, fp, #20
	mov	r1, r3
	ldr	r0, .L52+28
	bl	get_batteries
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	mov	r1, r3
	ldr	r0, [fp, #-12]
	bl	subscribe_batteries
.L53:
	.align	2
.L52:
	.word	.LC17
	.word	optarg
	.word	DELAY
	.word	stderr
	.word	.LC15
	.word	.LC16
	.word	optind
	.word	PATH
	.size	main, .-main
	.local	bt.5994
	.comm	bt.5994,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
