	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vp702x_chksum
_vp702x_chksum:                         ## @vp702x_chksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	addl	%esi, %edx
	movslq	%esi, %rcx
	movslq	%edx, %r11
	leaq	1(%rcx), %r9
	cmpq	%r11, %r9
	cmovleq	%r11, %r9
	subq	%rcx, %r9
	xorl	%eax, %eax
	cmpq	$8, %r9
	jb	LBB0_12
## %bb.3:
	movq	%r9, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdx
	movq	%rdx, %rax
	shrq	$3, %rax
	incq	%rax
	movl	%eax, %r10d
	andl	$3, %r10d
	cmpq	$24, %rdx
	jae	LBB0_5
## %bb.4:
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	jmp	LBB0_7
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_13
LBB0_5:
	andq	$-4, %rax
	leaq	(%rdi,%rcx,4), %rdx
	addq	$112, %rdx
	pxor	%xmm0, %xmm0
	xorl	%esi, %esi
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-112(%rdx,%rsi,4), %xmm2
	paddd	%xmm0, %xmm2
	movdqu	-96(%rdx,%rsi,4), %xmm0
	paddd	%xmm1, %xmm0
	movdqu	-80(%rdx,%rsi,4), %xmm1
	movdqu	-64(%rdx,%rsi,4), %xmm3
	movdqu	-48(%rdx,%rsi,4), %xmm4
	paddd	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	movdqu	-32(%rdx,%rsi,4), %xmm2
	paddd	%xmm3, %xmm2
	paddd	%xmm0, %xmm2
	movdqu	-16(%rdx,%rsi,4), %xmm0
	paddd	%xmm4, %xmm0
	movdqu	(%rdx,%rsi,4), %xmm1
	paddd	%xmm2, %xmm1
	addq	$32, %rsi
	addq	$-4, %rax
	jne	LBB0_6
LBB0_7:
	testq	%r10, %r10
	je	LBB0_10
## %bb.8:
	addq	%rcx, %rsi
	leaq	(%rdi,%rsi,4), %rax
	addq	$16, %rax
	shlq	$5, %r10
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rax,%rdx), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	(%rax,%rdx), %xmm2
	paddd	%xmm2, %xmm1
	addq	$32, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_9
LBB0_10:
	paddd	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	paddd	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	paddd	%xmm1, %xmm0
	movd	%xmm0, %eax
	cmpq	%r8, %r9
	je	LBB0_13
## %bb.11:
	addq	%r8, %rcx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rdi,%rcx,4), %eax
	incq	%rcx
	cmpq	%r11, %rcx
	jl	LBB0_12
LBB0_13:
	negl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vp702x_chksum
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vp702x_chksum
_vp702x_chksum:                         ; @vp702x_chksum
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	cmp	w2, #1
	b.lt	LBB0_3
; %bb.1:
	add	w8, w2, w1
	sxtw	x13, w1
	sxtw	x8, w8
	add	x9, x13, #1
	cmp	x9, x8
	csinc	x9, x8, x13, le
	sub	x10, x9, x13
	cmp	x10, #16
	b.hs	LBB0_4
; %bb.2:
	mov	w12, #0
	mov	x9, x13
	b	LBB0_7
LBB0_3:
	neg	w0, wzr
	ret
LBB0_4:
	and	x11, x10, #0xfffffffffffffff0
	add	x9, x11, x13
	add	x12, x0, x13, lsl #2
	add	x12, x12, #32
	movi.2d	v0, #0000000000000000
	mov	x13, x11
	movi.2d	v1, #0000000000000000
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	add.4s	v0, v4, v0
	add.4s	v1, v5, v1
	add.4s	v2, v6, v2
	add.4s	v3, v7, v3
	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	w12, s0
	cmp	x10, x11
	b.eq	LBB0_8
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0, x9, lsl #2]
	add	w12, w10, w12
	add	x9, x9, #1
	cmp	x9, x8
	b.lt	LBB0_7
LBB0_8:
	neg	w0, w12
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vp702x_chksum
.subsections_via_symbols
