	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_abs
_add_abs:                               ## @add_abs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %r12d
	movq	8(%rdi), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	8(%rsi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movl	16(%rdi), %edi
	movl	16(%rsi), %esi
	callq	_Max
	movl	%eax, %r14d
	movl	20(%rbx), %edi
	movl	20(%r15), %esi
	callq	_Max
	movl	%eax, %r13d
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	movl	24(%rbx), %edi
	movq	%r15, %rbx
	movl	24(%r15), %esi
	callq	_Max
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addl	%r14d, %r13d
	incl	%r13d
	xorl	%r15d, %r15d
	testl	%r13d, %r13d
	cmovlel	%r15d, %r13d
	leal	1(%r13), %edi
	callq	_digitbuf_alloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	-72(%rbp), %r10                 ## 8-byte Reload
	incl	%r14d
	movl	%r13d, %r9d
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rax,%r9,8), %r8
	incq	%r9
	movl	16(%rbx), %edx
	movq	-64(%rbp), %r11                 ## 8-byte Reload
	addl	%r11d, %edx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %esi
	addl	%r11d, %esi
	xorl	%edi, %edi
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leal	-10(%r15), %ecx
	xorl	%ebx, %ebx
	cmpl	$10, %r15d
	setge	%bl
	movslq	%r15d, %rax
	cmovgeq	%rcx, %rax
	movq	%rax, (%r8,%rdi,8)
	leaq	(%r9,%rdi), %rax
	decq	%rax
	decq	%rdi
	movl	%ebx, %r15d
	testq	%rax, %rax
	jle	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%rsi,%rdi), %rbx
	leal	1(%rbx), %ecx
	testl	%ecx, %ecx
	jle	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	-48(%rbp), %ecx                 ## 4-byte Folded Reload
	jg	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %ecx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax,%rcx,8), %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdx,%rdi), %rbx
	incq	%rbx
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r12d, %ebx
	jg	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdx,%rdi), %rcx
	movl	%ecx, %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax,%rcx,8), %r15d
	jmp	LBB0_9
LBB0_10:
	addl	$2, %r13d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rbx)
	jne	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addq	$8, %rbx
	decl	%r14d
	decl	%r13d
	cmpl	$1, %r13d
	jg	LBB0_11
## %bb.13:
	xorl	%r13d, %r13d
	jmp	LBB0_15
LBB0_1:
	movl	$-1, %eax
	jmp	LBB0_21
LBB0_14:
	decl	%r13d
LBB0_15:
	movl	%r13d, %eax
	movl	%r13d, %r15d
	sarl	$31, %r15d
	andl	%r13d, %r15d
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jle	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	-1(%rax), %rcx
	cmpq	$0, -8(%rbx,%rax,8)
	movq	%rcx, %rax
	je	LBB0_16
## %bb.19:
	movq	%r11, %r13
	incl	%ecx
	movl	%ecx, %r15d
	jmp	LBB0_20
LBB0_17:
	movq	%r11, %r13
LBB0_20:
	testl	%r15d, %r15d
	cmovel	%r15d, %r14d
	movq	%r10, %r12
	movq	32(%r10), %rdi
	callq	_digitbuf_free
	movl	%r15d, (%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 32(%r12)
	movq	%rbx, 8(%r12)
	movl	%r14d, 16(%r12)
	movl	%r13d, 20(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 24(%r12)
	xorl	%eax, %eax
LBB0_21:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_add_abs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_abs
_add_abs:                               ; @add_abs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x23, x1
	mov	x24, x0
	ldr	w26, [x0]
	ldr	w27, [x1]
	ldr	x28, [x0, #8]
	ldr	x21, [x1, #8]
	ldr	w0, [x0, #16]
	ldr	w1, [x1, #16]
	bl	_Max
	add	w25, w0, #1
	ldr	w0, [x24, #20]
	ldr	w1, [x23, #20]
	bl	_Max
	mov	x22, x0
	ldr	w0, [x24, #24]
	ldr	w1, [x23, #24]
	bl	_Max
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	add	w8, w22, w25
	cmp	w8, #0
	csel	w20, w8, wzr, gt
	add	w0, w20, #1
	bl	_digitbuf_alloc
	cbz	x0, LBB0_12
; %bb.1:
	mov	x8, #0
	mov	w9, #0
	ldr	w13, [x24, #16]
	ldr	w12, [x23, #16]
	add	x10, x0, w20, uxtw #3
	add	x11, x20, #1
	add	w12, w22, w12
	add	w13, w22, w13
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	sub	w14, w9, #10
	cmp	w9, #9
	sxtw	x9, w9
	cset	w15, gt
	csel	x9, x14, x9, gt
	str	x9, [x10, x8, lsl #3]
	sub	x8, x8, #1
	add	x14, x11, x8
	mov	x9, x15
	cmp	x14, #0
	b.le	LBB0_8
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x14, x13, x8
	add	w15, w14, #1
	cmp	w15, #1
	ccmp	w15, w26, #0, ge
	b.gt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x28, w14, uxtw #3]
	add	w9, w9, w14
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x14, x12, x8
	add	x15, x14, #1
	cmp	w15, #1
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w15, w27
	b.gt	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x21, w14, uxtw #3]
	add	w9, w9, w14
	b	LBB0_2
LBB0_8:
	add	w8, w20, #2
	mov	x20, x0
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20]
	cbnz	x9, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x20, x20, #8
	sub	w25, w25, #1
	sub	w8, w8, #1
	cmp	w8, #1
	b.gt	LBB0_9
; %bb.11:
	mov	w9, #0
	b	LBB0_14
LBB0_12:
	mov	w0, #-1
	b	LBB0_20
LBB0_13:
	sub	w9, w8, #1
LBB0_14:
	mov	w8, w9
	cmp	w9, #0
	csel	w21, w9, wzr, lt
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	cmp	w8, #1
	b.lt	LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	sub	x9, x8, #1
	add	x8, x20, x8, lsl #3
	ldur	x10, [x8, #-8]
	mov	x8, x9
	cbz	x10, LBB0_15
; %bb.17:
	mov	x24, x0
	add	w21, w9, #1
	b	LBB0_19
LBB0_18:
	mov	x24, x0
LBB0_19:
	cmp	w21, #0
	csel	w23, wzr, w25, eq
	ldr	x0, [x19, #32]
	bl	_digitbuf_free
	mov	w0, #0
	str	w21, [x19]
	str	x24, [x19, #32]
	str	x20, [x19, #8]
	stp	w23, w22, [x19, #16]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x19, #24]
LBB0_20:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_add_abs
.subsections_via_symbols
