	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_collect_tally         ## -- Begin function carl9170_collect_tally
	.p2align	4, 0x90
_carl9170_collect_tally:                ## @carl9170_collect_tally
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CARL9170_CMD_TALLY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$24, %r8d
	callq	_carl9170_exec_cmd
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_4
## %bb.1:
	movl	-36(%rbp), %edi
	callq	_le32_to_cpu
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r15d
	movl	-40(%rbp), %edi
	callq	_le32_to_cpu
	xorl	%edx, %edx
	divl	%r15d
	addl	%eax, (%rbx)
	movl	-44(%rbp), %edi
	callq	_le32_to_cpu
	xorl	%edx, %edx
	divl	%r15d
	addl	%eax, 4(%rbx)
	movl	-48(%rbp), %edi
	callq	_le32_to_cpu
	xorl	%edx, %edx
	divl	%r15d
	addl	%eax, 8(%rbx)
	movl	-52(%rbp), %edi
	callq	_le32_to_cpu
	addl	%eax, 12(%rbx)
	movl	-56(%rbp), %edi
	callq	_le32_to_cpu
	addl	%eax, 16(%rbx)
	movq	24(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	32(%rbx), %r15
	movq	(%rax), %rax
	movl	(%rbx), %edi
	leaq	(%rax,%rax,2), %r12
	movl	%edi, (%r15,%r12,4)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r15,%r12,4)
	movl	8(%rbx), %eax
	movl	%eax, 8(%r15,%r12,4)
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_do_div
	movl	4(%r15,%r12,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_do_div
	movl	8(%r15,%r12,4), %edi
	movl	$1000, %esi                     ## imm = 0x3E8
	callq	_do_div
LBB0_4:
	movl	%r14d, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CARL9170_CMD_TALLY,4,2         ## @CARL9170_CMD_TALLY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_carl9170_collect_tally         ; -- Begin function carl9170_collect_tally
	.p2align	2
_carl9170_collect_tally:                ; @carl9170_collect_tally
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
Lloh0:
	adrp	x8, _CARL9170_CMD_TALLY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CARL9170_CMD_TALLY@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x5, sp, #8
	mov	w2, #0
	mov	x3, #0
	mov	w4, #24
	bl	_carl9170_exec_cmd
	mov	x19, x0
	cbnz	w0, LBB0_4
; %bb.1:
	ldr	w0, [sp, #28]
	bl	_le32_to_cpu
	cbz	w0, LBB0_4
; %bb.2:
	mov	x21, x0
	ldr	w0, [sp, #24]
	bl	_le32_to_cpu
	udiv	w8, w0, w21
	ldr	w9, [x20]
	add	w8, w9, w8
	str	w8, [x20]
	ldr	w0, [sp, #20]
	bl	_le32_to_cpu
	udiv	w8, w0, w21
	ldr	w9, [x20, #4]
	add	w8, w9, w8
	str	w8, [x20, #4]
	ldr	w0, [sp, #16]
	bl	_le32_to_cpu
	udiv	w8, w0, w21
	ldr	w9, [x20, #8]
	add	w8, w9, w8
	str	w8, [x20, #8]
	ldr	w0, [sp, #12]
	bl	_le32_to_cpu
	ldr	w8, [x20, #12]
	add	w8, w8, w0
	str	w8, [x20, #12]
	ldr	w0, [sp, #8]
	bl	_le32_to_cpu
	ldr	w8, [x20, #16]
	add	w8, w8, w0
	str	w8, [x20, #16]
	ldr	x8, [x20, #24]
	cbz	x8, LBB0_4
; %bb.3:
	ldr	x9, [x20, #32]
	ldr	x8, [x8]
	mov	w10, #12
	madd	x21, x8, x10, x9
	ldr	d0, [x20]
	str	d0, [x21]
	ldr	w8, [x20, #8]
	str	w8, [x21, #8]
	fmov	w0, s0
	mov	w1, #1000
	bl	_do_div
	ldr	w0, [x21, #4]
	mov	w1, #1000
	bl	_do_div
	ldr	w0, [x21, #8]
	mov	w1, #1000
	bl	_do_div
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CARL9170_CMD_TALLY,4,2         ; @CARL9170_CMD_TALLY
.subsections_via_symbols
