	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accum_sum_final
_accum_sum_final:                       ## @accum_sum_final
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$80, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	cmpl	$0, (%rdi)
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r15
	callq	_accum_sum_carry
	leaq	-112(%rbp), %rdi
	callq	_init_var
	leaq	-72(%rbp), %rdi
	callq	_init_var
	movl	(%r15), %edi
	movl	%edi, -72(%rbp)
	movl	%edi, -112(%rbp)
	movl	28(%r15), %eax
	movl	%eax, -40(%rbp)
	movl	%eax, -80(%rbp)
	movl	24(%r15), %eax
	movl	%eax, -44(%rbp)
	movl	%eax, -84(%rbp)
	movq	_NUMERIC_POS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -88(%rbp)
	movq	_NUMERIC_NEG@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	callq	_digitbuf_alloc
	movq	%rax, -104(%rbp)
	movq	%rax, -96(%rbp)
	movl	(%r15), %edi
	callq	_digitbuf_alloc
	movq	%rax, -64(%rbp)
	movq	%rax, -56(%rbp)
	cmpl	$0, (%r15)
	jle	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	movq	_NBASE@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setl	%dil
	callq	_Assert
	movq	8(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	-104(%rbp), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	xorl	%edi, %edi
	cmpq	(%r12), %rax
	setl	%dil
	callq	_Assert
	movq	16(%r15), %rax
	movq	(%rax,%rbx,8), %rax
	movq	-64(%rbp), %rcx
	movq	%rax, (%rcx,%rbx,8)
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	leaq	-112(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdx
	callq	_add_var
	movq	%r14, %rdi
	callq	_strip_var
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_const_zero@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	addq	$80, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_set_var_from_var               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_const_zero,4,2                 ## @const_zero
	.comm	_NUMERIC_POS,4,2                ## @NUMERIC_POS
	.comm	_NUMERIC_NEG,4,2                ## @NUMERIC_NEG
	.comm	_NBASE,8,3                      ## @NBASE
	.no_dead_strip	_accum_sum_final
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accum_sum_final
_accum_sum_final:                       ; @accum_sum_final
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	ldr	w8, [x0]
	cbz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_accum_sum_carry
	add	x0, sp, #40
	bl	_init_var
	mov	x0, sp
	bl	_init_var
	ldr	w0, [x20]
	ldp	w9, w8, [x20, #24]
	stp	w9, w8, [sp, #28]
	stp	w9, w8, [sp, #68]
Lloh0:
	adrp	x8, _NUMERIC_POS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUMERIC_POS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w0, [sp, #40]
	str	w8, [sp, #64]
Lloh3:
	adrp	x8, _NUMERIC_NEG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NUMERIC_NEG@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w0, [sp]
	str	w8, [sp, #24]
	bl	_digitbuf_alloc
	stp	x0, x0, [sp, #48]
	ldr	w0, [x20]
	bl	_digitbuf_alloc
	stp	x0, x0, [sp, #8]
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.2:
	mov	x21, #0
Lloh6:
	adrp	x22, _NBASE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _NBASE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	lsl	x23, x21, #3
	ldr	x8, [x8, x23]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, lt
	bl	_Assert
	ldr	x8, [x20, #8]
	ldr	x8, [x8, x23]
	ldr	x9, [sp, #48]
	str	x8, [x9, x23]
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x23]
	ldr	x9, [x22]
	cmp	x8, x9
	cset	w0, lt
	bl	_Assert
	ldr	x8, [x20, #16]
	ldr	x8, [x8, x23]
	ldr	x9, [sp, #8]
	str	x8, [x9, x23]
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_3
LBB0_4:
	add	x0, sp, #40
	mov	x1, sp
	mov	x2, x19
	bl	_add_var
	mov	x0, x19
	bl	_strip_var
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
Lloh8:
	adrp	x0, _const_zero@GOTPAGE
Lloh9:
	ldr	x0, [x0, _const_zero@GOTPAGEOFF]
	mov	x1, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_set_var_from_var
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_const_zero,4,2                 ; @const_zero
	.comm	_NUMERIC_POS,4,2                ; @NUMERIC_POS
	.comm	_NUMERIC_NEG,4,2                ; @NUMERIC_NEG
	.comm	_NBASE,8,3                      ; @NBASE
	.no_dead_strip	_accum_sum_final
.subsections_via_symbols
