	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function append_packet_data
_append_packet_data:                    ## @append_packet_data
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_send_data
	testq	%r14, %r14
	je	LBB0_13
## %bb.1:
	movq	_cur_csum@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmpq	$4, %r14
	jb	LBB0_10
## %bb.2:
	movq	%r14, %rcx
	andq	$-4, %rcx
	movd	%edx, %xmm0
	leaq	-4(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$2, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.4:
	movq	%rdx, %rdi
	andq	$-2, %rdi
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rbx,%rsi,8), %xmm2
	movdqu	16(%rbx,%rsi,8), %xmm3
	movdqu	32(%rbx,%rsi,8), %xmm4
	movdqu	48(%rbx,%rsi,8), %xmm5
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm0, %xmm2
	pshufd	$232, %xmm3, %xmm3              ## xmm3 = xmm3[0,2,2,3]
	paddd	%xmm1, %xmm3
	pshufd	$232, %xmm4, %xmm0              ## xmm0 = xmm4[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm5, %xmm1              ## xmm1 = xmm5[0,2,2,3]
	paddd	%xmm3, %xmm1
	addq	$8, %rsi
	addq	$-2, %rdi
	jne	LBB0_5
## %bb.6:
	testb	$1, %dl
	je	LBB0_8
LBB0_7:
	movdqu	(%rbx,%rsi,8), %xmm2
	movdqu	16(%rbx,%rsi,8), %xmm3
	pshufd	$232, %xmm2, %xmm2              ## xmm2 = xmm2[0,2,2,3]
	paddd	%xmm2, %xmm0
	pshufd	$232, %xmm3, %xmm2              ## xmm2 = xmm3[0,2,2,3]
	paddd	%xmm2, %xmm1
LBB0_8:
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %edx
	cmpq	%r14, %rcx
	je	LBB0_12
## %bb.9:
	andl	$3, %r14d
	leaq	(%rbx,%rcx,8), %rbx
LBB0_10:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rbx,%rcx,8), %edx
	incq	%rcx
	cmpq	%rcx, %r14
	jne	LBB0_11
LBB0_12:
	movl	%edx, (%rax)
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	pxor	%xmm1, %xmm1
	xorl	%esi, %esi
	testb	$1, %dl
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_cur_csum,4,2                   ## @cur_csum
	.no_dead_strip	_append_packet_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function append_packet_data
_append_packet_data:                    ; @append_packet_data
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_send_data
	cbz	x19, LBB0_8
; %bb.1:
Lloh0:
	adrp	x8, _cur_csum@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cur_csum@GOTPAGEOFF]
	ldr	w12, [x8]
	cmp	x19, #8
	b.hs	LBB0_3
; %bb.2:
	mov	x9, x19
	mov	x10, x20
	b	LBB0_6
LBB0_3:
	and	x11, x19, #0xfffffffffffffff8
	and	x9, x19, #0x7
	movi	d0, #0000000000000000
	mov.s	v0[0], w12
	add	x10, x20, x11, lsl #3
	movi.2d	v1, #0000000000000000
	add	x12, x20, #32
	mov	x13, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	xtn.2s	v4, v4
	xtn.2s	v5, v5
	xtn.2s	v6, v6
	xtn.2s	v7, v7
	add.2s	v0, v0, v4
	add.2s	v1, v1, v5
	add.2s	v2, v2, v6
	add.2s	v3, v3, v7
	subs	x13, x13, #8
	b.ne	LBB0_4
; %bb.5:
	add.2s	v0, v1, v0
	add.2s	v0, v2, v0
	add.2s	v0, v3, v0
	addp.2s	v0, v0, v0
	fmov	w12, s0
	cmp	x11, x19
	b.eq	LBB0_7
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #8
	add	w12, w12, w11
	subs	x9, x9, #1
	b.ne	LBB0_6
LBB0_7:
	str	w12, [x8]
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cur_csum,4,2                   ; @cur_csum
	.no_dead_strip	_append_packet_data
.subsections_via_symbols
