	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tncs_total_send_len            ## -- Begin function tncs_total_send_len
	.p2align	4, 0x90
_tncs_total_send_len:                   ## @tncs_total_send_len
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_TNC_MAX_IMV_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	8(%rdi), %rcx
	cmpl	$4, %eax
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_13
LBB0_4:
	movl	%eax, %edx
	andl	$-4, %edx
	leaq	-4(%rdx), %rbx
	movq	%rbx, %rsi
	shrq	$2, %rsi
	incq	%rsi
	movl	%esi, %r8d
	andl	$3, %r8d
	cmpq	$12, %rbx
	jae	LBB0_6
## %bb.5:
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	jmp	LBB0_8
LBB0_6:
	andq	$-4, %rsi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rbx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%rcx,%rbx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	32(%rcx,%rbx,8), %xmm1
	movdqu	48(%rcx,%rbx,8), %xmm3
	movdqu	64(%rcx,%rbx,8), %xmm4
	paddq	%xmm1, %xmm4
	paddq	%xmm2, %xmm4
	movdqu	80(%rcx,%rbx,8), %xmm2
	paddq	%xmm3, %xmm2
	paddq	%xmm0, %xmm2
	movdqu	96(%rcx,%rbx,8), %xmm0
	paddq	%xmm4, %xmm0
	movdqu	112(%rcx,%rbx,8), %xmm1
	paddq	%xmm2, %xmm1
	addq	$16, %rbx
	addq	$-4, %rsi
	jne	LBB0_7
LBB0_8:
	testq	%r8, %r8
	je	LBB0_11
## %bb.9:
	leaq	(%rcx,%rbx,8), %rsi
	addq	$16, %rsi
	shlq	$5, %r8
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rsi,%rbx), %xmm2
	paddq	%xmm2, %xmm0
	movdqu	(%rsi,%rbx), %xmm2
	paddq	%xmm2, %xmm1
	addq	$32, %rbx
	cmpq	%rbx, %r8
	jne	LBB0_10
LBB0_11:
	paddq	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddq	%xmm0, %xmm1
	movq	%xmm1, %rbx
	cmpq	%rax, %rdx
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addq	(%rcx,%rdx,8), %rbx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_12
LBB0_13:
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.14:
	callq	_os_strlen
	addq	%rax, %rbx
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TNC_MAX_IMV_ID,4,2             ## @TNC_MAX_IMV_ID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tncs_total_send_len            ; -- Begin function tncs_total_send_len
	.p2align	2
_tncs_total_send_len:                   ; @tncs_total_send_len
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _TNC_MAX_IMV_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TNC_MAX_IMV_ID@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	ldr	x9, [x0, #8]
	cmp	w8, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	x19, #0
	b	LBB0_7
LBB0_3:
	mov	x19, #0
	b	LBB0_9
LBB0_4:
	and	x10, x8, #0xfffffff8
	add	x11, x9, #32
	movi.2d	v0, #0000000000000000
	mov	x12, x10
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	subs	x12, x12, #8
	b.ne	LBB0_5
; %bb.6:
	add.2d	v0, v1, v0
	add.2d	v0, v2, v0
	add.2d	v0, v3, v0
	addp.2d	d0, v0
	fmov	x19, d0
	cmp	x10, x8
	b.eq	LBB0_9
LBB0_7:
	add	x9, x9, x10, lsl #3
	sub	x8, x8, x10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	add	x19, x10, x19
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ldr	x0, [x0]
	cbz	x0, LBB0_11
; %bb.10:
	bl	_os_strlen
	add	x19, x0, x19
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TNC_MAX_IMV_ID,4,2             ; @TNC_MAX_IMV_ID
.subsections_via_symbols
