	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DifferentialChecksum           ## -- Begin function DifferentialChecksum
	.p2align	4, 0x90
_DifferentialChecksum:                  ## @DifferentialChecksum
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
                                        ## kill: def $ecx killed $ecx def $rcx
	movl	(%rdi), %r10d
	testl	%ecx, %ecx
	jle	LBB0_13
## %bb.1:
	leal	-1(%rcx), %r9d
	cmpl	$7, %r9d
	jae	LBB0_3
## %bb.2:
	xorl	%r8d, %r8d
	jmp	LBB0_11
LBB0_3:
	incq	%r9
	movq	%r9, %r8
	andq	$-8, %r8
	movd	%r10d, %xmm0
	leaq	-8(%r8), %rax
	movq	%rax, %r10
	shrq	$3, %r10
	incq	%r10
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r10, %r11
	andq	$-2, %r11
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rax,4), %xmm2
	movdqu	16(%rsi,%rax,4), %xmm3
	movdqu	32(%rsi,%rax,4), %xmm4
	paddd	%xmm2, %xmm4
	movdqu	48(%rsi,%rax,4), %xmm2
	paddd	%xmm3, %xmm2
	movdqu	(%rdx,%rax,4), %xmm3
	paddd	%xmm0, %xmm3
	psubd	%xmm4, %xmm3
	movdqu	16(%rdx,%rax,4), %xmm4
	paddd	%xmm1, %xmm4
	psubd	%xmm2, %xmm4
	movdqu	32(%rdx,%rax,4), %xmm0
	paddd	%xmm3, %xmm0
	movdqu	48(%rdx,%rax,4), %xmm1
	paddd	%xmm4, %xmm1
	addq	$16, %rax
	addq	$-2, %r11
	jne	LBB0_6
## %bb.7:
	testb	$1, %r10b
	je	LBB0_9
LBB0_8:
	movdqu	(%rsi,%rax,4), %xmm2
	psubd	%xmm2, %xmm0
	movdqu	16(%rsi,%rax,4), %xmm2
	psubd	%xmm2, %xmm1
	movdqu	(%rdx,%rax,4), %xmm2
	paddd	%xmm2, %xmm0
	movdqu	16(%rdx,%rax,4), %xmm2
	paddd	%xmm2, %xmm1
LBB0_9:
	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, %r10d
	cmpq	%r8, %r9
	je	LBB0_13
## %bb.10:
	leaq	(%rdx,%r8,4), %rdx
	leaq	(%rsi,%r8,4), %rsi
LBB0_11:
	subl	%r8d, %ecx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	subl	(%rsi,%rax,4), %r10d
	addl	(%rdx,%rax,4), %r10d
	incq	%rax
	cmpl	%eax, %ecx
	jne	LBB0_12
LBB0_13:
	testl	%r10d, %r10d
	js	LBB0_14
## %bb.15:
	movl	%r10d, %eax
	shrl	$16, %eax
	movzwl	%r10w, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$16, %eax
	addl	%ecx, %eax
	jmp	LBB0_16
LBB0_14:
	negl	%r10d
	movl	%r10d, %eax
	shrl	$16, %eax
	movzwl	%r10w, %ecx
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$16, %eax
	addl	%ecx, %eax
	notl	%eax
LBB0_16:
	movl	%eax, (%rdi)
	popq	%rbp
	retq
LBB0_4:
	pxor	%xmm1, %xmm1
	xorl	%eax, %eax
	testb	$1, %r10b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DifferentialChecksum           ; -- Begin function DifferentialChecksum
	.p2align	2
_DifferentialChecksum:                  ; @DifferentialChecksum
	.cfi_startproc
; %bb.0:
	ldr	w11, [x0]
	subs	w8, w3, #1
	b.lt	LBB0_8
; %bb.1:
	cmp	w8, #15
	b.hs	LBB0_3
; %bb.2:
	mov	w10, #0
	mov	x8, x2
	mov	x9, x1
	b	LBB0_6
LBB0_3:
	add	x12, x8, #1
	and	x10, x12, #0x1fffffff0
	lsl	x9, x10, #2
	add	x8, x2, x9
	add	x9, x1, x9
	movi.2d	v0, #0000000000000000
	mov.s	v0[0], w11
	movi.2d	v1, #0000000000000000
	add	x11, x2, #32
	add	x13, x1, #32
	mov	x14, x10
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13], #64
	sub.4s	v0, v0, v4
	sub.4s	v1, v1, v5
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	ldp	q4, q5, [x11, #-32]
	ldp	q6, q7, [x11], #64
	add.4s	v0, v0, v4
	add.4s	v1, v1, v5
	add.4s	v2, v2, v6
	add.4s	v3, v3, v7
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	add.4s	v0, v1, v0
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	addv.4s	s0, v0
	fmov	w11, s0
	cmp	x12, x10
	b.eq	LBB0_8
LBB0_6:
	sub	w10, w3, w10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x9], #4
	ldr	w13, [x8], #4
	sub	w11, w11, w12
	add	w11, w11, w13
	subs	w10, w10, #1
	b.ne	LBB0_7
LBB0_8:
	lsr	w8, w11, #16
	add	w8, w8, w11, uxth
	add	w8, w8, w8, lsr #16
	neg	w9, w11
	lsr	w10, w9, #16
	add	w9, w10, w9, uxth
	add	w9, w9, w9, lsr #16
	tst	w11, #0x80000000
	csinv	w8, w8, w9, eq
	str	w8, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
