	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getchecksum
_getchecksum:                           ## @getchecksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	movl	%esi, %ecx
	leaq	-1(%rcx), %r8
	cmpq	$14, %r8
	jae	LBB0_4
## %bb.3:
	xorl	%edx, %edx
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_4:
	shrq	%r8
	incq	%r8
	movq	%r8, %rsi
	andq	$-8, %rsi
	leaq	(%rsi,%rsi), %rdx
	pxor	%xmm0, %xmm0
	xorl	%eax, %eax
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movups	(%rdi,%rax,8), %xmm2
	movups	16(%rdi,%rax,8), %xmm3
	movups	32(%rdi,%rax,8), %xmm4
	movups	48(%rdi,%rax,8), %xmm5
	movaps	%xmm2, %xmm6
	shufps	$136, %xmm3, %xmm6              ## xmm6 = xmm6[0,2],xmm3[0,2]
	movaps	%xmm4, %xmm7
	shufps	$136, %xmm5, %xmm7              ## xmm7 = xmm7[0,2],xmm5[0,2]
	shufps	$221, %xmm3, %xmm2              ## xmm2 = xmm2[1,3],xmm3[1,3]
	paddd	%xmm0, %xmm2
	shufps	$221, %xmm5, %xmm4              ## xmm4 = xmm4[1,3],xmm5[1,3]
	paddd	%xmm1, %xmm4
	pslld	$8, %xmm6
	movdqa	%xmm6, %xmm0
	paddd	%xmm2, %xmm0
	pslld	$8, %xmm7
	movdqa	%xmm7, %xmm1
	paddd	%xmm4, %xmm1
	addq	$8, %rax
	cmpq	%rax, %rsi
	jne	LBB0_5
## %bb.6:
	paddd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %eax
	cmpq	%rsi, %r8
	je	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdi,%rdx,4), %esi
	addl	4(%rdi,%rdx,4), %eax
	shll	$8, %esi
	addl	%esi, %eax
	addq	$2, %rdx
	cmpq	%rcx, %rdx
	jb	LBB0_7
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_getchecksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getchecksum
_getchecksum:                           ; @getchecksum
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w9, w1
	sub	x8, x9, #1
	cmp	x8, #30
	b.hs	LBB0_4
; %bb.2:
	mov	x10, #0
	mov	w8, #0
	b	LBB0_7
LBB0_3:
	mov	w0, #0
	ret
LBB0_4:
	lsr	x8, x8, #1
	add	x11, x8, #1
	and	x12, x11, #0xfffffffffffffff0
	lsl	x10, x12, #1
	add	x8, x0, #64
	movi.2d	v0, #0000000000000000
	mov	x13, x12
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	sub	x14, x8, #64
	ld2.4s	{ v4, v5 }, [x14]
	sub	x14, x8, #32
	ld2.4s	{ v6, v7 }, [x14]
	mov	x14, x8
	ld2.4s	{ v16, v17 }, [x14], #32
	ld2.4s	{ v18, v19 }, [x14]
	shl.4s	v20, v4, #8
	shl.4s	v21, v6, #8
	shl.4s	v22, v16, #8
	shl.4s	v23, v18, #8
	add.4s	v0, v5, v0
	add.4s	v1, v7, v1
	add.4s	v2, v17, v2
	add.4s	v3, v19, v3
	add.4s	v0, v0, v20
	add.4s	v1, v1, v21
	add.4s	v2, v2, v22
	add.4s	v3, v3, v23
	add	x8, x8, #128
	subs	x13, x13, #16
	b.ne	LBB0_5
; %bb.6:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w8, s0
	cmp	x11, x12
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x11, x0, x10, lsl #2
	ldp	w12, w11, [x11]
	add	w8, w11, w8
	add	w8, w8, w12, lsl #8
	add	x10, x10, #2
	cmp	x10, x9
	b.lo	LBB0_7
LBB0_8:
	mov	x0, x8
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_getchecksum
.subsections_via_symbols
