	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function accum_sum_carry
_accum_sum_carry:                       ## @accum_sum_carry
	.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
	cmpq	$0, (%rdi)
	je	LBB0_19
## %bb.1:
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	jne	LBB0_3
## %bb.2:
	movq	16(%r14), %rax
	xorl	%edi, %edi
	cmpq	$0, (%rax)
	sete	%dil
LBB0_3:
	callq	_Assert
	movl	24(%r14), %esi
	testl	%esi, %esi
	jle	LBB0_18
## %bb.4:
	movq	8(%r14), %rcx
	decl	%esi
	leaq	1(%rsi), %rbx
	xorl	%eax, %eax
	movq	_NBASE@GOTPCREL(%rip), %r8
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, %eax
	cltd
	idivl	%edi
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%edx, -4(%rcx,%rbx,4)
	decq	%rbx
	jle	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	addl	-4(%rcx,%rbx,4), %edx
	movl	(%r8), %edi
	cmpl	%edi, %edx
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_9:
	testl	%edx, %edx
	jle	LBB0_11
## %bb.10:
	movl	$0, 28(%r14)
LBB0_11:
	movq	16(%r14), %rbx
	incq	%rsi
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=1
	cltd
	idivl	%ecx
	movl	%eax, %ecx
	movl	%edx, %eax
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	%eax, -4(%rbx,%rsi,4)
	decq	%rsi
	jle	LBB0_16
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, %eax
	addl	-4(%rbx,%rsi,4), %eax
	movl	(%r8), %ecx
	cmpl	%ecx, %eax
	jge	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_15
LBB0_16:
	testl	%eax, %eax
	jle	LBB0_18
## %bb.17:
	movl	$0, 28(%r14)
LBB0_18:
	movq	$0, (%r14)
LBB0_19:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NBASE,4,2                      ## @NBASE
	.no_dead_strip	_accum_sum_carry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function accum_sum_carry
_accum_sum_carry:                       ; @accum_sum_carry
	.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
	ldr	x8, [x0]
	cbz	x8, LBB0_20
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, eq
LBB0_4:
	bl	_Assert
	ldr	w8, [x19, #24]
	subs	w8, w8, #1
	b.lt	LBB0_19
; %bb.5:
	mov	w12, #0
	ldr	x10, [x19, #8]
Lloh0:
	adrp	x9, _NBASE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NBASE@GOTPAGEOFF]
	mov	x11, x8
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	sdiv	w12, w13, w14
	msub	w13, w12, w14, w13
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	str	w13, [x10, x11, lsl #2]
	sub	x14, x11, #1
	cmp	x11, #0
	mov	x11, x14
	b.le	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x10, x11, lsl #2]
	ldr	w14, [x9]
	add	w13, w13, w12
	cmp	w13, w14
	b.ge	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	w12, #0
	b	LBB0_7
LBB0_10:
	cmp	w13, #1
	b.lt	LBB0_12
; %bb.11:
	str	wzr, [x19, #28]
LBB0_12:
	mov	w11, #0
	ldr	x10, [x19, #16]
	b	LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_15 Depth=1
	sdiv	w11, w12, w13
	msub	w12, w11, w13, w12
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	str	w12, [x10, x8, lsl #2]
	sub	x13, x8, #1
	cmp	x8, #0
	mov	x8, x13
	b.le	LBB0_17
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x8, lsl #2]
	ldr	w13, [x9]
	add	w12, w12, w11
	cmp	w12, w13
	b.ge	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	w11, #0
	b	LBB0_14
LBB0_17:
	cmp	w12, #1
	b.lt	LBB0_19
; %bb.18:
	str	wzr, [x19, #28]
LBB0_19:
	str	xzr, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NBASE,4,2                      ; @NBASE
	.no_dead_strip	_accum_sum_carry
.subsections_via_symbols
