	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sum_a
_sum_a:                                 ## @sum_a
	.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_13
## %bb.1:
	movl	%edx, %r8d
	cmpl	$8, %edx
	jb	LBB0_2
## %bb.3:
	leaq	(%rdi,%r8,8), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rsi,%r8,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%ecx, %ecx
LBB0_9:
	movq	%rcx, %rax
	notq	%rax
	testb	$1, %r8b
	je	LBB0_11
## %bb.10:
	movl	4(%rdi,%rcx,8), %edx
	addl	(%rdi,%rcx,8), %edx
	movl	%edx, (%rsi,%rcx,4)
	orq	$1, %rcx
LBB0_11:
	addq	%r8, %rax
	je	LBB0_13
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%rdi,%rcx,8), %eax
	addl	(%rdi,%rcx,8), %eax
	movl	%eax, (%rsi,%rcx,4)
	movl	12(%rdi,%rcx,8), %eax
	addl	8(%rdi,%rcx,8), %eax
	movl	%eax, 4(%rsi,%rcx,4)
	addq	$2, %rcx
	cmpq	%rcx, %r8
	jne	LBB0_12
	jmp	LBB0_13
LBB0_6:
	movl	%r8d, %ecx
	andl	$-8, %ecx
	leaq	(,%r8,4), %rdx
	andq	$-32, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,2), %xmm0
	movdqu	16(%rdi,%rax,2), %xmm1
	phaddd	%xmm1, %xmm0
	movdqu	32(%rdi,%rax,2), %xmm1
	movdqu	48(%rdi,%rax,2), %xmm2
	phaddd	%xmm2, %xmm1
	movdqu	%xmm0, (%rsi,%rax)
	movdqu	%xmm1, 16(%rsi,%rax)
	addq	$32, %rax
	cmpq	%rax, %rdx
	jne	LBB0_7
## %bb.8:
	cmpq	%r8, %rcx
	jne	LBB0_9
LBB0_13:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sum_a
.subsections_via_symbols

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