	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accum_sum_add
_accum_sum_add:                         ## @accum_sum_add
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_NBASE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cmpl	%eax, (%rdi)
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_accum_sum_carry
LBB0_2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_accum_sum_rescale
	movq	(%rbx), %rax
	movq	_NUMERIC_POS@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpq	(%rdx), %rax
	sete	%dl
	movl	8(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_20
## %bb.3:
	movb	%dl, %cl
	movq	8(%r14,%rcx,8), %r8
	movq	16(%rbx), %rdx
	movl	4(%r14), %ecx
	subl	12(%rbx), %ecx
	movslq	%ecx, %r10
	cmpl	$4, %eax
	jb	LBB0_4
## %bb.5:
	leaq	(%r8,%r10,8), %rcx
	leaq	(%rdx,%rax,8), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_8
## %bb.6:
	leaq	(%r10,%rax), %rcx
	leaq	(%r8,%rcx,8), %rcx
	cmpq	%rcx, %rdx
	jae	LBB0_8
LBB0_4:
	xorl	%edi, %edi
LBB0_15:
	movq	%rdi, %rcx
	notq	%rcx
	testb	$1, %al
	je	LBB0_17
## %bb.16:
	movq	(%rdx,%rdi,8), %rsi
	addq	%rsi, (%r8,%r10,8)
	incq	%r10
	orq	$1, %rdi
LBB0_17:
	addq	%rax, %rcx
	je	LBB0_20
## %bb.18:
	subq	%rdi, %rax
	leaq	(%rdx,%rdi,8), %rcx
	addq	$8, %rcx
	leaq	(%r8,%r10,8), %rdx
	addq	$8, %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	-8(%rcx,%rsi,8), %rdi
	addq	%rdi, -8(%rdx,%rsi,8)
	movq	(%rcx,%rsi,8), %rdi
	addq	%rdi, (%rdx,%rsi,8)
	addq	$2, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_19
	jmp	LBB0_20
LBB0_8:
	movl	%eax, %edi
	andl	$-4, %edi
	leaq	-4(%rdi), %rcx
	movq	%rcx, %r9
	shrq	$2, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.9:
	movq	%r9, %rbx
	andq	$-2, %rbx
	leaq	(%r8,%r10,8), %rsi
	addq	$48, %rsi
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdx,%rcx,8), %xmm0
	movdqu	16(%rdx,%rcx,8), %xmm1
	movdqu	-48(%rsi,%rcx,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	-32(%rsi,%rcx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	-16(%rsi,%rcx,8), %xmm1
	movdqu	(%rsi,%rcx,8), %xmm3
	movdqu	%xmm2, -48(%rsi,%rcx,8)
	movdqu	%xmm0, -32(%rsi,%rcx,8)
	movdqu	32(%rdx,%rcx,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	48(%rdx,%rcx,8), %xmm1
	paddq	%xmm3, %xmm1
	movdqu	%xmm0, -16(%rsi,%rcx,8)
	movdqu	%xmm1, (%rsi,%rcx,8)
	addq	$8, %rcx
	addq	$-2, %rbx
	jne	LBB0_10
## %bb.11:
	testb	$1, %r9b
	je	LBB0_13
LBB0_12:
	leaq	(%rcx,%r10), %rsi
	movdqu	(%rdx,%rcx,8), %xmm0
	movdqu	16(%rdx,%rcx,8), %xmm1
	movdqu	(%r8,%rsi,8), %xmm2
	paddq	%xmm0, %xmm2
	movdqu	16(%r8,%rsi,8), %xmm0
	paddq	%xmm1, %xmm0
	movdqu	%xmm2, (%r8,%rsi,8)
	movdqu	%xmm0, 16(%r8,%rsi,8)
LBB0_13:
	cmpq	%rax, %rdi
	jne	LBB0_14
LBB0_20:
	incl	(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_14:
	addq	%rdi, %r10
	jmp	LBB0_15
LBB0_21:
	xorl	%ecx, %ecx
	testb	$1, %r9b
	jne	LBB0_12
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_NBASE,4,2                      ## @NBASE
	.comm	_NUMERIC_POS,8,3                ## @NUMERIC_POS
	.no_dead_strip	_accum_sum_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accum_sum_add
_accum_sum_add:                         ; @accum_sum_add
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _NBASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NBASE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	sub	w9, w9, #1
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_accum_sum_carry
LBB0_2:
	mov	x0, x19
	mov	x1, x20
	bl	_accum_sum_rescale
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _NUMERIC_POS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NUMERIC_POS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #8
	mov	w11, #16
	cmp	x8, x9
	csel	x9, x11, x10, eq
	ldr	w8, [x20, #8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	ldr	x9, [x19, x9]
	ldr	x10, [x20, #16]
	ldr	w11, [x19, #4]
	ldr	w12, [x20, #12]
	sub	w11, w11, w12
	sxtw	x11, w11
	cmp	w8, #8
	b.lo	LBB0_8
; %bb.4:
	add	x13, x9, x11, lsl #3
	add	x12, x11, x8
	add	x12, x9, x12, lsl #3
	add	x14, x10, x8, lsl #3
	cmp	x13, x14
	ccmp	x10, x12, #2, lo
	b.lo	LBB0_8
; %bb.5:
	and	x12, x8, #0xfffffff8
	add	x11, x12, x11
	add	x13, x13, #32
	add	x14, x10, #32
	mov	x15, x12
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q0, q1, [x14, #-32]
	ldp	q2, q3, [x14], #64
	ldp	q4, q5, [x13, #-32]
	ldp	q6, q7, [x13]
	add.2d	v0, v4, v0
	add.2d	v1, v5, v1
	add.2d	v2, v6, v2
	add.2d	v3, v7, v3
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x15, x15, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x12, x8
	b.ne	LBB0_9
	b	LBB0_11
LBB0_8:
	mov	x12, #0
LBB0_9:
	add	x10, x10, x12, lsl #3
	sub	x8, x8, x12
	add	x9, x9, x11, lsl #3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10], #8
	ldr	x12, [x9]
	add	x11, x12, x11
	str	x11, [x9], #8
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NBASE,4,2                      ; @NBASE
	.comm	_NUMERIC_POS,8,3                ; @NUMERIC_POS
	.no_dead_strip	_accum_sum_add
.subsections_via_symbols
