	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function proc_get_batt
_proc_get_batt:                         ## @proc_get_batt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movw	$10, (%rdi)
	incq	%rdi
	movq	_pmu_batteries@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	shlq	$3, %r9
	leaq	(%r9,%r9,2), %r13
	movl	(%rax,%r13), %edx
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_sprintf
	cltq
	leaq	(%r14,%rax), %r15
	incq	%r15
	movq	(%r12), %rax
	movl	4(%rax,%r13), %edx
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movq	(%r12), %rax
	movl	8(%rax,%r13), %edx
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movslq	%eax, %r15
	addq	%rbx, %r15
	movq	(%r12), %rax
	movl	12(%rax,%r13), %edx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movq	(%r12), %rax
	movl	16(%rax,%r13), %edx
	leaq	L_.str.5(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	movslq	%eax, %r15
	addq	%rbx, %r15
	movq	(%r12), %rax
	movl	20(%rax,%r13), %edx
	leaq	L_.str.6(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_sprintf
	addl	%r15d, %eax
	subl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"flags      : %08x\n"

	.comm	_pmu_batteries,8,3              ## @pmu_batteries
L_.str.2:                               ## @.str.2
	.asciz	"charge     : %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"max_charge : %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"current    : %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"voltage    : %d\n"

L_.str.6:                               ## @.str.6
	.asciz	"time rem.  : %d\n"

	.no_dead_strip	_proc_get_batt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function proc_get_batt
_proc_get_batt:                         ; @proc_get_batt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	mov	w8, #10
	mov	x20, x0
	strh	w8, [x20], #1
Lloh0:
	adrp	x21, _pmu_batteries@GOTPAGE
Lloh1:
	ldr	x21, [x21, _pmu_batteries@GOTPAGEOFF]
	ldr	x8, [x21]
	add	x9, x5, x5, lsl #1
	lsl	x22, x9, #3
	ldr	w8, [x8, x22]
	str	x8, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w8, [x8, #4]
	str	x8, [sp]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w8, [x8, #12]
	str	x8, [sp]
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w8, [x8, #16]
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	x20, x20, w0, sxtw
	ldr	x8, [x21]
	add	x8, x8, x22
	ldr	w8, [x8, #20]
	str	x8, [sp]
Lloh12:
	adrp	x1, l_.str.6@PAGE
Lloh13:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_sprintf
	add	w8, w20, w0
	sub	w0, w8, w19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"flags      : %08x\n"

	.comm	_pmu_batteries,8,3              ; @pmu_batteries
l_.str.2:                               ; @.str.2
	.asciz	"charge     : %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"max_charge : %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"current    : %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"voltage    : %d\n"

l_.str.6:                               ; @.str.6
	.asciz	"time rem.  : %d\n"

	.no_dead_strip	_proc_get_batt
.subsections_via_symbols
