	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function word_sum_v2
_word_sum_v2:                           ## @word_sum_v2
	.cfi_startproc
## %bb.0:
	testl	%esi, %esi
	jle	LBB0_1
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	%esi, %r8d
	cmpl	$1, %esi
	jne	LBB0_4
## %bb.3:
	xorl	%r11d, %r11d
	xorl	%eax, %eax
	jmp	LBB0_6
LBB0_1:
	movl	$-1, %eax
	retq
LBB0_4:
	movl	%r8d, %r9d
	andl	$-2, %r9d
	xorl	%r11d, %r11d
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%esi, %ecx
	notl	%ecx
	movl	(%rdi,%r11,4), %eax
	movl	4(%rdi,%r11,4), %r10d
	xorl	%edx, %edx
	cmpl	%ecx, %eax
	setg	%dl
	addl	%esi, %eax
	addl	%edx, %eax
	movl	%eax, %ecx
	notl	%ecx
	xorl	%edx, %edx
	cmpl	%ecx, %r10d
	setg	%dl
	addl	%r10d, %eax
	addl	%edx, %eax
	addq	$2, %r11
	movl	%eax, %esi
	cmpq	%r11, %r9
	jne	LBB0_5
LBB0_6:
	testb	$1, %r8b
	je	LBB0_8
## %bb.7:
	movl	(%rdi,%r11,4), %ecx
	movl	%eax, %edx
	notl	%edx
	xorl	%esi, %esi
	cmpl	%edx, %ecx
	setg	%sil
	addl	%eax, %ecx
	addl	%esi, %ecx
	movl	%ecx, %eax
LBB0_8:
	notl	%eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_word_sum_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function word_sum_v2
_word_sum_v2:                           ; @word_sum_v2
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_4
; %bb.1:
	mov	w8, #0
	mov	w9, w1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x0], #4
	mvn	w11, w8
	cmp	w10, w11
	add	w8, w10, w8
	cinc	w8, w8, gt
	subs	x9, x9, #1
	b.ne	LBB0_2
; %bb.3:
	mvn	w0, w8
	ret
LBB0_4:
	mov	w0, #-1
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_word_sum_v2
.subsections_via_symbols
