	.file	"190767148.c"
	.intel_syntax noprefix
	.text
	.globl	operation
	.bss
	.align 4
	.type	operation, @object
	.size	operation, 4
operation:
	.zero	4
	.globl	interval
	.data
	.align 4
	.type	interval, @object
	.size	interval, 4
interval:
	.long	60
	.globl	i2c_bus
	.align 4
	.type	i2c_bus, @object
	.size	i2c_bus, 4
i2c_bus:
	.long	2
	.globl	i2c_address
	.align 4
	.type	i2c_address, @object
	.size	i2c_address, 4
i2c_address:
	.long	64
	.globl	handle
	.bss
	.align 4
	.type	handle, @object
	.size	handle, 4
handle:
	.zero	4
	.globl	whole_numbers
	.align 4
	.type	whole_numbers, @object
	.size	whole_numbers, 4
whole_numbers:
	.zero	4
	.text
	.globl	msleep
	.type	msleep, @function
msleep:
.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]
	imul	eax, eax, 1000
	mov	edi, eax
	call	usleep@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	msleep, .-msleep
	.section	.rodata
.LC0:
	.string	"I2C read failed: %s\n"
	.text
	.globl	i2c_read
	.type	i2c_read, @function
i2c_read:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR handle[rip]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L3
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC0[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], -1
.L3:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	i2c_read, .-i2c_read
	.section	.rodata
.LC1:
	.string	"I2C write failed: %s\n"
	.text
	.globl	i2c_write
	.type	i2c_write, @function
i2c_write:
.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	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	DWORD PTR -4[rbp], 0
	mov	eax, DWORD PTR -28[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR handle[rip]
	mov	rcx, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -28[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	DWORD PTR -4[rbp], -1
.L6:
	mov	eax, DWORD PTR -4[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	i2c_write, .-i2c_write
	.globl	register_read
	.type	register_read, @function
register_read:
.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, 32
	mov	eax, edi
	mov	QWORD PTR -32[rbp], rsi
	mov	BYTE PTR -20[rbp], al
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], -1
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -12[rbp], al
	lea	rax, -12[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	i2c_write
	test	eax, eax
	jne	.L9
	lea	rax, -12[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	i2c_read
	test	eax, eax
	jne	.L9
	movzx	eax, BYTE PTR -12[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -11[rbp]
	movzx	eax, al
	or	eax, edx
	mov	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	WORD PTR [rax], dx
	mov	DWORD PTR -16[rbp], 0
.L9:
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L11
	call	__stack_chk_fail@PLT
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	register_read, .-register_read
	.globl	register_write
	.type	register_write, @function
register_write:
.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, 32
	mov	edx, edi
	mov	eax, esi
	mov	BYTE PTR -20[rbp], dl
	mov	WORD PTR -24[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], -1
	movzx	eax, BYTE PTR -20[rbp]
	mov	BYTE PTR -12[rbp], al
	movzx	eax, WORD PTR -24[rbp]
	shr	ax, 8
	mov	BYTE PTR -11[rbp], al
	movzx	eax, WORD PTR -24[rbp]
	mov	BYTE PTR -10[rbp], al
	lea	rax, -12[rbp]
	mov	esi, 3
	mov	rdi, rax
	call	i2c_write
	test	eax, eax
	jne	.L13
	mov	DWORD PTR -16[rbp], 0
.L13:
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L15
	call	__stack_chk_fail@PLT
.L15:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	register_write, .-register_write
	.section	.rodata
.LC2:
	.string	"Usage: %s <mode> \n"
.LC3:
	.string	"   Mode (required):\n"
	.align 8
.LC4:
	.string	"      -h --help           Show usage.\n"
	.align 8
.LC5:
	.string	"      -i --interval       Set interval for monitor mode.\n"
	.align 8
.LC6:
	.string	"      -w --whole          Show whole numbers only. Useful for scripts.\n"
	.align 8
.LC7:
	.string	"      -v --voltage        Show battery voltage in mV.\n"
	.align 8
.LC8:
	.string	"      -c --current        Show battery current in mA.\n"
	.align 8
.LC9:
	.string	"      -a --address <addr> Override I2C address of INA219 from default of 0x%02X.\n"
	.align 8
.LC10:
	.string	"      -b --bus <i2c bus>  Override I2C bus from default of %d.\n"
	.text
	.globl	show_usage
	.type	show_usage, @function
show_usage:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 20
	mov	esi, 1
	lea	rdi, .LC3[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 38
	mov	esi, 1
	lea	rdi, .LC4[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 57
	mov	esi, 1
	lea	rdi, .LC5[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 71
	mov	esi, 1
	lea	rdi, .LC6[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC7[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 54
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edx, DWORD PTR i2c_address[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edx, DWORD PTR i2c_bus[rip]
	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
	.cfi_endproc
.LFE11:
	.size	show_usage, .-show_usage
	.section	.rodata
.LC11:
	.string	"a:b:chi:vw"
	.align 8
.LC12:
	.string	"Unknown address parameter %s.\n"
.LC13:
	.string	"Unknown bus parameter %s.\n"
.LC14:
	.string	"Invalid interval value\n"
	.text
	.globl	parse
	.type	parse, @function
parse:
.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, 32
	mov	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
.L32:
	mov	rsi, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -20[rbp]
	mov	r8d, 0
	lea	rcx, lopts.0[rip]
	lea	rdx, .LC11[rip]
	mov	edi, eax
	call	getopt_long@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	je	.L34
	mov	eax, DWORD PTR -4[rbp]
	sub	eax, 97
	cmp	eax, 22
	ja	.L20
	mov	eax, eax
	lea	rdx, 0[0+rax*4]
	lea	rax, .L22[rip]
	mov	eax, DWORD PTR [rdx+rax]
	cdqe
	lea	rdx, .L22[rip]
	add	rax, rdx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L22:
	.long	.L27-.L22
	.long	.L26-.L22
	.long	.L25-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L24-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L20-.L22
	.long	.L23-.L22
	.long	.L21-.L22
	.text
.L27:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR i2c_address[rip], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L35
	mov	rdx, QWORD PTR optarg[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L26:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	rax, QWORD PTR optarg[rip]
	mov	edx, 0
	mov	esi, 0
	mov	rdi, rax
	call	strtol@PLT
	mov	DWORD PTR i2c_bus[rip], eax
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L36
	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
.L25:
	mov	DWORD PTR operation[rip], 2
	jmp	.L29
.L20:
	mov	DWORD PTR operation[rip], 4
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	show_usage
	jmp	.L29
.L24:
	mov	DWORD PTR operation[rip], 3
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR interval[rip], eax
	mov	eax, DWORD PTR interval[rip]
	test	eax, eax
	jne	.L37
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L37
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 23
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	mov	DWORD PTR operation[rip], 1
	jmp	.L29
.L21:
	mov	DWORD PTR whole_numbers[rip], 1
	jmp	.L29
.L35:
	nop
	jmp	.L32
.L36:
	nop
	jmp	.L32
.L37:
	nop
.L29:
	jmp	.L32
.L34:
	nop
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE12:
	.size	parse, .-parse
	.globl	get_voltage
	.type	get_voltage, @function
get_voltage:
.LFB13:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -10[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	register_read
	test	eax, eax
	je	.L39
	mov	eax, -1
	jmp	.L41
.L39:
	movzx	eax, WORD PTR -10[rbp]
	cwde
	sar	eax
	and	eax, 32764
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, 0
.L41:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L42
	call	__stack_chk_fail@PLT
.L42:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	get_voltage, .-get_voltage
	.globl	get_current
	.type	get_current, @function
get_current:
.LFB14:
	.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	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -10[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	register_read
	test	eax, eax
	je	.L44
	mov	eax, -1
	jmp	.L46
.L44:
	movzx	eax, WORD PTR -10[rbp]
	cwde
	pxor	xmm0, xmm0
	cvtsi2ss	xmm0, eax
	movss	xmm1, DWORD PTR .LC15[rip]
	divss	xmm0, xmm1
	mov	rax, QWORD PTR -24[rbp]
	movss	DWORD PTR [rax], xmm0
	mov	eax, 0
.L46:
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L47
	call	__stack_chk_fail@PLT
.L47:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	get_current, .-get_current
	.section	.rodata
.LC16:
	.string	"Error reading current\n"
.LC17:
	.string	"%4.0f\n"
.LC18:
	.string	"%04.1f\n"
	.text
	.globl	show_current
	.type	show_current, @function
show_current:
.LFB15:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	get_current
	test	eax, eax
	je	.L49
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC16[rip]
	call	fwrite@PLT
	jmp	.L48
.L49:
	mov	eax, DWORD PTR whole_numbers[rip]
	test	eax, eax
	je	.L51
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
	jmp	.L48
.L51:
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm0
	movq	rax, xmm2
	movq	xmm0, rax
	lea	rdi, .LC18[rip]
	mov	eax, 1
	call	printf@PLT
.L48:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L53
	call	__stack_chk_fail@PLT
.L53:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	show_current, .-show_current
	.section	.rodata
.LC19:
	.string	"Error reading voltage\n"
	.text
	.globl	show_voltage
	.type	show_voltage, @function
show_voltage:
.LFB16:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	get_voltage
	test	eax, eax
	je	.L55
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 22
	mov	esi, 1
	lea	rdi, .LC19[rip]
	call	fwrite@PLT
	jmp	.L54
.L55:
	movss	xmm0, DWORD PTR -12[rbp]
	pxor	xmm1, xmm1
	cvtss2sd	xmm1, xmm0
	movq	rax, xmm1
	movq	xmm0, rax
	lea	rdi, .LC17[rip]
	mov	eax, 1
	call	printf@PLT
.L54:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L57
	call	__stack_chk_fail@PLT
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	show_voltage, .-show_voltage
	.section	.rodata
	.align 8
.LC20:
	.string	"Error reading voltage/current\n"
.LC21:
	.string	"%4.0fmV  %4.0fmA\n"
.LC22:
	.string	"%4.0fmV  %4.1fmA\n"
	.text
	.globl	show_voltage_current
	.type	show_voltage_current, @function
show_voltage_current:
.LFB17:
	.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	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -12[rbp]
	mov	rdi, rax
	call	get_current
	test	eax, eax
	jne	.L59
	lea	rax, -16[rbp]
	mov	rdi, rax
	call	get_voltage
	test	eax, eax
	je	.L60
.L59:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 30
	mov	esi, 1
	lea	rdi, .LC20[rip]
	call	fwrite@PLT
	jmp	.L58
.L60:
	mov	eax, DWORD PTR whole_numbers[rip]
	test	eax, eax
	je	.L62
	movss	xmm0, DWORD PTR -12[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -16[rbp]
	pxor	xmm2, xmm2
	cvtss2sd	xmm2, xmm1
	movq	rax, xmm2
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC21[rip]
	mov	eax, 2
	call	printf@PLT
	jmp	.L58
.L62:
	movss	xmm0, DWORD PTR -12[rbp]
	cvtss2sd	xmm0, xmm0
	movss	xmm1, DWORD PTR -16[rbp]
	pxor	xmm3, xmm3
	cvtss2sd	xmm3, xmm1
	movq	rax, xmm3
	movapd	xmm1, xmm0
	movq	xmm0, rax
	lea	rdi, .LC22[rip]
	mov	eax, 2
	call	printf@PLT
.L58:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L64
	call	__stack_chk_fail@PLT
.L64:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	show_voltage_current, .-show_voltage_current
	.section	.rodata
.LC23:
	.string	"%2d:%02d:%02d "
	.text
	.globl	monitor
	.type	monitor, @function
monitor:
.LFB18:
	.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
.L66:
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -24[rbp], rax
	lea	rax, -24[rbp]
	mov	rdi, rax
	call	localtime@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -16[rbp]
	mov	ecx, DWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR 8[rax]
	mov	esi, eax
	lea	rdi, .LC23[rip]
	mov	eax, 0
	call	printf@PLT
	call	show_voltage_current
	mov	eax, DWORD PTR interval[rip]
	mov	edi, eax
	call	sleep@PLT
	jmp	.L66
	.cfi_endproc
.LFE18:
	.size	monitor, .-monitor
	.section	.rodata
.LC24:
	.string	"/dev/i2c-%d"
.LC25:
	.string	"Error opening bus %d: %s\n"
	.align 8
.LC26:
	.string	"Error setting address %02X: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB19:
	.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
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rdx
	mov	edi, eax
	call	parse
	mov	edx, DWORD PTR i2c_bus[rip]
	lea	rax, -32[rbp]
	mov	ecx, edx
	lea	rdx, .LC24[rip]
	mov	esi, 19
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	lea	rax, -32[rbp]
	mov	esi, 2
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR handle[rip], eax
	mov	eax, DWORD PTR handle[rip]
	test	eax, eax
	jns	.L69
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR i2c_bus[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC25[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L69:
	mov	edx, DWORD PTR i2c_address[rip]
	mov	eax, DWORD PTR handle[rip]
	mov	esi, 1795
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jns	.L70
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rcx, rax
	mov	edx, DWORD PTR i2c_address[rip]
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC26[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L70:
	mov	eax, DWORD PTR operation[rip]
	cmp	eax, 3
	je	.L71
	cmp	eax, 3
	ja	.L79
	cmp	eax, 2
	je	.L73
	cmp	eax, 2
	ja	.L79
	test	eax, eax
	je	.L74
	cmp	eax, 1
	je	.L75
	jmp	.L79
.L74:
	call	show_voltage_current
	jmp	.L76
.L75:
	call	show_voltage
	jmp	.L76
.L73:
	call	show_current
	jmp	.L76
.L71:
	call	monitor
	jmp	.L76
.L79:
	nop
.L76:
	mov	eax, DWORD PTR handle[rip]
	mov	edi, eax
	call	close@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L78
	call	__stack_chk_fail@PLT
.L78:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	main, .-main
	.section	.rodata
.LC27:
	.string	"address"
.LC28:
	.string	"bus"
.LC29:
	.string	"current"
.LC30:
	.string	"help"
.LC31:
	.string	"interval"
.LC32:
	.string	"voltage"
.LC33:
	.string	"whole"
	.section	.data.rel.ro.local,"aw"
	.align 32
	.type	lopts.0, @object
	.size	lopts.0, 256
lopts.0:
	.quad	.LC27
	.long	0
	.zero	4
	.quad	0
	.long	97
	.zero	4
	.quad	.LC28
	.long	0
	.zero	4
	.quad	0
	.long	98
	.zero	4
	.quad	.LC29
	.long	0
	.zero	4
	.quad	0
	.long	99
	.zero	4
	.quad	.LC30
	.long	0
	.zero	4
	.quad	0
	.long	104
	.zero	4
	.quad	.LC31
	.long	0
	.zero	4
	.quad	0
	.long	105
	.zero	4
	.quad	.LC32
	.long	0
	.zero	4
	.quad	0
	.long	118
	.zero	4
	.quad	.LC33
	.long	0
	.zero	4
	.quad	0
	.long	119
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.quad	0
	.long	0
	.zero	4
	.section	.rodata
	.align 4
.LC15:
	.long	1092616192
	.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	"190767148.c"
	.text
	.global	operation
	.bss
	.align	2
	.type	operation, %object
	.size	operation, 4
operation:
	.space	4
	.global	interval
	.data
	.align	2
	.type	interval, %object
	.size	interval, 4
interval:
	.word	60
	.global	i2c_bus
	.align	2
	.type	i2c_bus, %object
	.size	i2c_bus, 4
i2c_bus:
	.word	2
	.global	i2c_address
	.align	2
	.type	i2c_address, %object
	.size	i2c_address, 4
i2c_address:
	.word	64
	.comm	handle,4,4
	.global	whole_numbers
	.bss
	.align	2
	.type	whole_numbers, %object
	.size	whole_numbers, 4
whole_numbers:
	.space	4
	.text
	.align	2
	.global	msleep
	.syntax unified
	.arm
	.fpu softvfp
	.type	msleep, %function
msleep:
	@ 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	r2, [fp, #-8]
	mov	r3, r2
	lsl	r3, r3, #5
	sub	r3, r3, r2
	lsl	r3, r3, #2
	add	r3, r3, r2
	lsl	r3, r3, #3
	mov	r0, r3
	bl	usleep
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	msleep, .-msleep
	.section	.rodata
	.align	2
.LC0:
	.ascii	"I2C read failed: %s\012\000"
	.text
	.align	2
	.global	i2c_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_read, %function
i2c_read:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L5
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	read
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L5+4
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-8]
.L3:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L6:
	.align	2
.L5:
	.word	handle
	.word	.LC0
	.size	i2c_read, .-i2c_read
	.section	.rodata
	.align	2
.LC1:
	.ascii	"I2C write failed: %s\012\000"
	.text
	.align	2
	.global	i2c_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	i2c_write, %function
i2c_write:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	mov	r3, #0
	str	r3, [fp, #-8]
	ldr	r3, .L10
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-16]
	mov	r0, r3
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-20]
	cmp	r3, r2
	beq	.L8
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L10+4
	bl	printf
	mvn	r3, #0
	str	r3, [fp, #-8]
.L8:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L11:
	.align	2
.L10:
	.word	handle
	.word	.LC1
	.size	i2c_write, .-i2c_write
	.section	.rodata
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	register_read
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_read, %function
register_read:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	str	r1, [fp, #-28]
	strb	r3, [fp, #-21]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-16]
	ldrb	r3, [fp, #-21]
	strb	r3, [fp, #-12]
	sub	r3, fp, #12
	mov	r1, #1
	mov	r0, r3
	bl	i2c_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	sub	r3, fp, #12
	mov	r1, #2
	mov	r0, r3
	bl	i2c_read
	mov	r3, r0
	cmp	r3, #0
	bne	.L13
	ldrb	r3, [fp, #-12]	@ zero_extendqisi2
	lsl	r3, r3, #8
	lsl	r3, r3, #16
	asr	r2, r3, #16
	ldrb	r3, [fp, #-11]	@ zero_extendqisi2
	lsl	r3, r3, #16
	asr	r3, r3, #16
	orr	r3, r2, r3
	lsl	r3, r3, #16
	asr	r3, r3, #16
	lsl	r3, r3, #16
	lsr	r2, r3, #16
	ldr	r3, [fp, #-28]
	strh	r2, [r3]	@ movhi
	mov	r3, #0
	str	r3, [fp, #-16]
.L13:
	ldr	r3, [fp, #-16]
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L15
	bl	__stack_chk_fail
.L15:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC2
	.size	register_read, .-register_read
	.section	.rodata
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	register_write
	.syntax unified
	.arm
	.fpu softvfp
	.type	register_write, %function
register_write:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	mov	r3, r0
	mov	r2, r1
	strb	r3, [fp, #-21]
	mov	r3, r2	@ movhi
	strh	r3, [fp, #-24]	@ movhi
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-16]
	ldrb	r3, [fp, #-21]
	strb	r3, [fp, #-12]
	ldrh	r3, [fp, #-24]
	lsr	r3, r3, #8
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	and	r3, r3, #255
	strb	r3, [fp, #-11]
	ldrh	r3, [fp, #-24]	@ movhi
	and	r3, r3, #255
	strb	r3, [fp, #-10]
	sub	r3, fp, #12
	mov	r1, #3
	mov	r0, r3
	bl	i2c_write
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	mov	r3, #0
	str	r3, [fp, #-16]
.L19:
	ldr	r3, [fp, #-16]
	ldr	r2, .L22
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L21
	bl	__stack_chk_fail
.L21:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L23:
	.align	2
.L22:
	.word	.LC3
	.size	register_write, .-register_write
	.section	.rodata
	.align	2
.LC4:
	.ascii	"Usage: %s <mode> \012\000"
	.align	2
.LC5:
	.ascii	"   Mode (required):\012\000"
	.align	2
.LC6:
	.ascii	"      -h --help           Show usage.\012\000"
	.align	2
.LC7:
	.ascii	"      -i --interval       Set interval for monitor "
	.ascii	"mode.\012\000"
	.align	2
.LC8:
	.ascii	"      -w --whole          Show whole numbers only. "
	.ascii	"Useful for scripts.\012\000"
	.align	2
.LC9:
	.ascii	"      -v --voltage        Show battery voltage in m"
	.ascii	"V.\012\000"
	.align	2
.LC10:
	.ascii	"      -c --current        Show battery current in m"
	.ascii	"A.\012\000"
	.align	2
.LC11:
	.ascii	"      -a --address <addr> Override I2C address of I"
	.ascii	"NA219 from default of 0x%02X.\012\000"
	.align	2
.LC12:
	.ascii	"      -b --bus <i2c bus>  Override I2C bus from def"
	.ascii	"ault of %d.\012\000"
	.text
	.align	2
	.global	show_usage
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_usage, %function
show_usage:
	@ 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, .L25
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L25+4
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #20
	mov	r1, #1
	ldr	r0, .L25+8
	bl	fwrite
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #38
	mov	r1, #1
	ldr	r0, .L25+12
	bl	fwrite
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #57
	mov	r1, #1
	ldr	r0, .L25+16
	bl	fwrite
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #71
	mov	r1, #1
	ldr	r0, .L25+20
	bl	fwrite
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L25+24
	bl	fwrite
	ldr	r3, .L25
	ldr	r3, [r3]
	mov	r2, #54
	mov	r1, #1
	ldr	r0, .L25+28
	bl	fwrite
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+32
	ldr	r2, [r2]
	ldr	r1, .L25+36
	mov	r0, r3
	bl	fprintf
	ldr	r3, .L25
	ldr	r3, [r3]
	ldr	r2, .L25+40
	ldr	r2, [r2]
	ldr	r1, .L25+44
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L26:
	.align	2
.L25:
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	i2c_address
	.word	.LC11
	.word	i2c_bus
	.word	.LC12
	.size	show_usage, .-show_usage
	.section	.rodata
	.align	2
.LC13:
	.ascii	"a:b:chi:vw\000"
	.align	2
.LC14:
	.ascii	"Unknown address parameter %s.\012\000"
	.align	2
.LC15:
	.ascii	"Unknown bus parameter %s.\012\000"
	.align	2
.LC16:
	.ascii	"Invalid interval value\012\000"
	.text
	.align	2
	.global	parse
	.syntax unified
	.arm
	.fpu softvfp
	.type	parse, %function
parse:
	@ args = 0, pretend = 0, frame = 16
	@ 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]
.L42:
	mov	r3, #0
	str	r3, [sp]
	ldr	r3, .L48
	ldr	r2, .L48+4
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	getopt_long
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	beq	.L44
	ldr	r3, [fp, #-8]
	sub	r3, r3, #97
	cmp	r3, #22
	ldrls	pc, [pc, r3, asl #2]
	b	.L30
.L32:
	.word	.L37
	.word	.L36
	.word	.L35
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L34
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L30
	.word	.L33
	.word	.L31
.L37:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L48+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L48+12
	str	r3, [r2]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L45
	ldr	r3, .L48+16
	ldr	r3, [r3]
	ldr	r2, .L48+8
	ldr	r2, [r2]
	ldr	r1, .L48+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L36:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L48+8
	ldr	r3, [r3]
	mov	r2, #0
	mov	r1, #0
	mov	r0, r3
	bl	strtol
	mov	r3, r0
	ldr	r2, .L48+24
	str	r3, [r2]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L46
	ldr	r3, .L48+16
	ldr	r3, [r3]
	ldr	r2, .L48+8
	ldr	r2, [r2]
	ldr	r1, .L48+28
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L35:
	ldr	r3, .L48+32
	mov	r2, #2
	str	r2, [r3]
	b	.L39
.L30:
	ldr	r3, .L48+32
	mov	r2, #4
	str	r2, [r3]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	mov	r0, r3
	bl	show_usage
	b	.L39
.L34:
	ldr	r3, .L48+32
	mov	r2, #3
	str	r2, [r3]
	ldr	r3, .L48+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	ldr	r2, .L48+36
	str	r3, [r2]
	ldr	r3, .L48+36
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L47
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L47
	ldr	r3, .L48+16
	ldr	r3, [r3]
	mov	r2, #23
	mov	r1, #1
	ldr	r0, .L48+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L33:
	ldr	r3, .L48+32
	mov	r2, #1
	str	r2, [r3]
	b	.L39
.L31:
	ldr	r3, .L48+44
	mov	r2, #1
	str	r2, [r3]
	b	.L39
.L45:
	nop
	b	.L42
.L46:
	nop
	b	.L42
.L47:
	nop
.L39:
	b	.L42
.L44:
	nop
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L49:
	.align	2
.L48:
	.word	lopts.6290
	.word	.LC13
	.word	optarg
	.word	i2c_address
	.word	stderr
	.word	.LC14
	.word	i2c_bus
	.word	.LC15
	.word	operation
	.word	interval
	.word	.LC16
	.word	whole_numbers
	.size	parse, .-parse
	.global	__aeabi_i2f
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_voltage
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_voltage, %function
get_voltage:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L55
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #10
	mov	r1, r3
	mov	r0, #2
	bl	register_read
	mov	r3, r0
	cmp	r3, #0
	beq	.L51
	mvn	r3, #0
	b	.L53
.L51:
	ldrsh	r3, [fp, #-10]
	asr	r2, r3, #1
	ldr	r3, .L55+4
	and	r3, r3, r2
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r2, r0
	ldr	r3, [fp, #-16]
	str	r2, [r3]	@ float
	mov	r3, #0
.L53:
	ldr	r2, .L55
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L54
	bl	__stack_chk_fail
.L54:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L56:
	.align	2
.L55:
	.word	.LC17
	.word	32764
	.size	get_voltage, .-get_voltage
	.global	__aeabi_fdiv
	.section	.rodata
	.align	2
.LC18:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_current
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_current, %function
get_current:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r3, .L62
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #10
	mov	r1, r3
	mov	r0, #1
	bl	register_read
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	mvn	r3, #0
	b	.L60
.L58:
	ldrsh	r3, [fp, #-10]
	mov	r0, r3
	bl	__aeabi_i2f
	mov	r3, r0
	ldr	r1, .L62+4
	mov	r0, r3
	bl	__aeabi_fdiv
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	str	r2, [r3]	@ float
	mov	r3, #0
.L60:
	ldr	r2, .L62
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L61
	bl	__stack_chk_fail
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	.LC18
	.word	1092616192
	.size	get_current, .-get_current
	.section	.rodata
	.align	2
.LC19:
	.ascii	"Error reading current\012\000"
	.global	__aeabi_f2d
	.align	2
.LC20:
	.ascii	"%4.0f\012\000"
	.align	2
.LC21:
	.ascii	"%04.1f\012\000"
	.align	2
.LC22:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	show_current
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_current, %function
show_current:
	@ 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, .L70
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	get_current
	mov	r3, r0
	cmp	r3, #0
	beq	.L65
	ldr	r3, .L70+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L70+8
	bl	fwrite
	b	.L64
.L65:
	ldr	r3, .L70+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L67
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L70+16
	bl	printf
	b	.L64
.L67:
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L70+20
	bl	printf
.L64:
	ldr	r3, .L70
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L69
	bl	__stack_chk_fail
.L69:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L71:
	.align	2
.L70:
	.word	.LC22
	.word	stderr
	.word	.LC19
	.word	whole_numbers
	.word	.LC20
	.word	.LC21
	.size	show_current, .-show_current
	.section	.rodata
	.align	2
.LC23:
	.ascii	"Error reading voltage\012\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	show_voltage
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_voltage, %function
show_voltage:
	@ 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, .L76
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #12
	mov	r0, r3
	bl	get_voltage
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r3, .L76+4
	ldr	r3, [r3]
	mov	r2, #22
	mov	r1, #1
	ldr	r0, .L76+8
	bl	fwrite
	b	.L72
.L73:
	ldr	r3, [fp, #-12]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	ldr	r0, .L76+12
	bl	printf
.L72:
	ldr	r3, .L76
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L75
	bl	__stack_chk_fail
.L75:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L77:
	.align	2
.L76:
	.word	.LC24
	.word	stderr
	.word	.LC23
	.word	.LC20
	.size	show_voltage, .-show_voltage
	.section	.rodata
	.align	2
.LC25:
	.ascii	"Error reading voltage/current\012\000"
	.align	2
.LC26:
	.ascii	"%4.0fmV  %4.0fmA\012\000"
	.align	2
.LC27:
	.ascii	"%4.0fmV  %4.1fmA\012\000"
	.align	2
.LC28:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	show_voltage_current
	.syntax unified
	.arm
	.fpu softvfp
	.type	show_voltage_current, %function
show_voltage_current:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #24
	ldr	r3, .L85
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	sub	r3, fp, #20
	mov	r0, r3
	bl	get_current
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	sub	r3, fp, #24
	mov	r0, r3
	bl	get_voltage
	mov	r3, r0
	cmp	r3, #0
	beq	.L80
.L79:
	ldr	r3, .L85+4
	ldr	r3, [r3]
	mov	r2, #30
	mov	r1, #1
	ldr	r0, .L85+8
	bl	fwrite
	b	.L78
.L80:
	ldr	r3, .L85+12
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L82
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L85+16
	bl	printf
	b	.L78
.L82:
	ldr	r3, [fp, #-24]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-20]	@ float
	mov	r0, r3
	bl	__aeabi_f2d
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L85+20
	bl	printf
.L78:
	ldr	r3, .L85
	ldr	r2, [r3]
	ldr	r3, [fp, #-16]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L84
	bl	__stack_chk_fail
.L84:
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L86:
	.align	2
.L85:
	.word	.LC28
	.word	stderr
	.word	.LC25
	.word	whole_numbers
	.word	.LC26
	.word	.LC27
	.size	show_voltage_current, .-show_voltage_current
	.section	.rodata
	.align	2
.LC29:
	.ascii	"%2d:%02d:%02d \000"
	.align	2
.LC30:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	monitor
	.syntax unified
	.arm
	.fpu softvfp
	.type	monitor, %function
monitor:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L90
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
.L88:
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r0, r3
	bl	localtime
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	ldr	r1, [r3, #8]
	ldr	r3, [fp, #-12]
	ldr	r2, [r3, #4]
	ldr	r3, [fp, #-12]
	ldr	r3, [r3]
	ldr	r0, .L90+4
	bl	printf
	bl	show_voltage_current
	ldr	r3, .L90+8
	ldr	r3, [r3]
	mov	r0, r3
	bl	sleep
	b	.L88
.L91:
	.align	2
.L90:
	.word	.LC30
	.word	.LC29
	.word	interval
	.size	monitor, .-monitor
	.section	.rodata
	.align	2
.LC31:
	.ascii	"/dev/i2c-%d\000"
	.align	2
.LC32:
	.ascii	"Error opening bus %d: %s\012\000"
	.align	2
.LC33:
	.ascii	"Error setting address %02X: %s\012\000"
	.align	2
.LC34:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #32
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L105
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r1, [fp, #-44]
	ldr	r0, [fp, #-40]
	bl	parse
	ldr	r3, .L105+4
	ldr	r3, [r3]
	sub	r0, fp, #36
	ldr	r2, .L105+8
	mov	r1, #19
	bl	snprintf
	sub	r3, fp, #36
	mov	r1, #2
	mov	r0, r3
	bl	open
	mov	r3, r0
	ldr	r2, .L105+12
	str	r3, [r2]
	ldr	r3, .L105+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L93
	ldr	r3, .L105+16
	ldr	r4, [r3]
	ldr	r3, .L105+4
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L105+20
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L93:
	ldr	r3, .L105+12
	ldr	r3, [r3]
	ldr	r2, .L105+24
	ldr	r2, [r2]
	ldr	r1, .L105+28
	mov	r0, r3
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bge	.L94
	ldr	r3, .L105+16
	ldr	r4, [r3]
	ldr	r3, .L105+24
	ldr	r5, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r5
	ldr	r1, .L105+32
	mov	r0, r4
	bl	fprintf
	mov	r0, #1
	bl	exit
.L94:
	ldr	r3, .L105+36
	ldr	r3, [r3]
	cmp	r3, #3
	ldrls	pc, [pc, r3, asl #2]
	b	.L104
.L97:
	.word	.L100
	.word	.L99
	.word	.L98
	.word	.L96
.L100:
	bl	show_voltage_current
	b	.L101
.L99:
	bl	show_voltage
	b	.L101
.L98:
	bl	show_current
	b	.L101
.L96:
	bl	monitor
	b	.L101
.L104:
	nop
.L101:
	ldr	r3, .L105+12
	ldr	r3, [r3]
	mov	r0, r3
	bl	close
	mov	r3, #0
	ldr	r2, .L105
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L103
	bl	__stack_chk_fail
.L103:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L106:
	.align	2
.L105:
	.word	.LC34
	.word	i2c_bus
	.word	.LC31
	.word	handle
	.word	stderr
	.word	.LC32
	.word	i2c_address
	.word	1795
	.word	.LC33
	.word	operation
	.size	main, .-main
	.section	.rodata
	.align	2
.LC35:
	.ascii	"address\000"
	.align	2
.LC36:
	.ascii	"bus\000"
	.align	2
.LC37:
	.ascii	"current\000"
	.align	2
.LC38:
	.ascii	"help\000"
	.align	2
.LC39:
	.ascii	"interval\000"
	.align	2
.LC40:
	.ascii	"voltage\000"
	.align	2
.LC41:
	.ascii	"whole\000"
	.align	2
	.type	lopts.6290, %object
	.size	lopts.6290, 128
lopts.6290:
	.word	.LC35
	.word	0
	.word	0
	.word	97
	.word	.LC36
	.word	0
	.word	0
	.word	98
	.word	.LC37
	.word	0
	.word	0
	.word	99
	.word	.LC38
	.word	0
	.word	0
	.word	104
	.word	.LC39
	.word	0
	.word	0
	.word	105
	.word	.LC40
	.word	0
	.word	0
	.word	118
	.word	.LC41
	.word	0
	.word	0
	.word	119
	.word	0
	.word	0
	.word	0
	.word	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
