	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sum_b
_sum_b:                                 ## @sum_b
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	movl	%eax, (%rsi)
	cmpl	$2, %edx
	jl	LBB0_11
## %bb.1:
	movl	%edx, %r9d
	leaq	-1(%r9), %r8
	movl	$1, %ecx
	cmpq	$8, %r8
	jb	LBB0_7
## %bb.2:
	leaq	4(%rsi), %rax
	leaq	(%rdi,%r9,8), %rdx
	addq	$-4, %rdx
	cmpq	%rdx, %rax
	jae	LBB0_4
## %bb.3:
	leaq	(%rsi,%r9,4), %rax
	leaq	4(%rdi), %rdx
	cmpq	%rax, %rdx
	jb	LBB0_7
LBB0_4:
	movq	%r8, %rdx
	andq	$-8, %rdx
	leaq	1(%rdx), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	4(%rdi,%rax,8), %xmm0
	movdqu	20(%rdi,%rax,8), %xmm1
	phaddd	%xmm1, %xmm0
	movdqu	36(%rdi,%rax,8), %xmm1
	movdqu	52(%rdi,%rax,8), %xmm2
	phaddd	%xmm2, %xmm1
	movdqu	%xmm0, 4(%rsi,%rax,4)
	movdqu	%xmm1, 20(%rsi,%rax,4)
	addq	$8, %rax
	cmpq	%rax, %rdx
	jne	LBB0_5
## %bb.6:
	cmpq	%rdx, %r8
	je	LBB0_11
LBB0_7:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r9b
	jne	LBB0_9
## %bb.8:
	movl	-4(%rdi,%rcx,8), %edx
	addl	(%rdi,%rcx,8), %edx
	movl	%edx, (%rsi,%rcx,4)
	incq	%rcx
LBB0_9:
	addq	%r9, %rax
	je	LBB0_11
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	-4(%rdi,%rcx,8), %eax
	addl	(%rdi,%rcx,8), %eax
	movl	%eax, (%rsi,%rcx,4)
	movl	4(%rdi,%rcx,8), %eax
	addl	8(%rdi,%rcx,8), %eax
	movl	%eax, 4(%rsi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r9
	jne	LBB0_10
LBB0_11:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sum_b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sum_b
_sum_b:                                 ; @sum_b
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	str	w8, [x1]
	cmp	w2, #2
	b.lt	LBB0_9
; %bb.1:
	mov	w8, w2
	sub	x10, x8, #1
	cmp	x10, #16
	b.lo	LBB0_6
; %bb.2:
	add	x9, x1, #4
	add	x11, x1, x8, lsl #2
	add	x12, x0, #4
	add	x13, x0, x8, lsl #3
	sub	x13, x13, #4
	cmp	x9, x13
	ccmp	x12, x11, #2, lo
	b.lo	LBB0_6
; %bb.3:
	and	x11, x10, #0xfffffffffffffff0
	orr	x9, x11, #0x1
	add	x12, x0, #68
	add	x13, x1, #36
	mov	x14, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x12, #64
	ld2.4s	{ v0, v1 }, [x15]
	sub	x15, x12, #32
	ld2.4s	{ v2, v3 }, [x15]
	mov	x15, x12
	ld2.4s	{ v4, v5 }, [x15], #32
	ld2.4s	{ v6, v7 }, [x15]
	add.4s	v0, v0, v1
	add.4s	v1, v2, v3
	add.4s	v2, v4, v5
	add.4s	v3, v6, v7
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	add	x12, x12, #128
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x10, x11
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	w9, #1
LBB0_7:
	add	x10, x0, x9, lsl #3
	sub	x8, x8, x9
	add	x9, x1, x9, lsl #2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w12, w11, [x10, #-4]
	add	w11, w12, w11
	str	w11, [x9], #4
	add	x10, x10, #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sum_b
.subsections_via_symbols
