	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function count_digits
_count_digits:                          ## @count_digits
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	4(%rdi), %edi
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	(%r14), %eax
	testl	%eax, %eax
	movl	$1, %ebx
	cmovnel	%eax, %ebx
	jmp	LBB0_6
LBB0_2:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_new_number
	movq	%rax, %r15
	xorl	%eax, %eax
	callq	_new_number
	movq	%rax, %r12
	movl	(%r14), %eax
	movl	%eax, (%r12)
	movl	4(%r15), %esi
	movl	4(%r12), %edx
	movq	%r14, %rdi
	callq	_split_number
	movl	4(%r15), %edi
	callq	_BN_is_zero
	testq	%rax, %rax
	jne	LBB0_5
## %bb.3:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%r15), %edi
	movl	$10, %esi
	callq	_BN_div_word
	incl	%ebx
	movl	4(%r15), %edi
	callq	_BN_is_zero
	testq	%rax, %rax
	je	LBB0_4
LBB0_5:
	movq	%r15, %rdi
	callq	_free_number
	movq	%r12, %rdi
	callq	_free_number
	addl	(%r14), %ebx
LBB0_6:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_count_digits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function count_digits
_count_digits:                          ; @count_digits
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #4]
	bl	_BN_is_zero
	cbz	x0, LBB0_2
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #0
	csinc	w0, w8, wzr, ne
	b	LBB0_5
LBB0_2:
	bl	_new_number
	mov	x20, x0
	bl	_new_number
	mov	x21, x0
	ldr	w8, [x19]
	str	w8, [x0]
	ldr	w1, [x20, #4]
	ldr	w2, [x0, #4]
	mov	x0, x19
	bl	_split_number
	ldr	w0, [x20, #4]
	bl	_BN_is_zero
	mov	w22, #0
	cbnz	x0, LBB0_4
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, #4]
	mov	w1, #10
	bl	_BN_div_word
	add	w22, w22, #1
	ldr	w0, [x20, #4]
	bl	_BN_is_zero
	cbz	x0, LBB0_3
LBB0_4:
	mov	x0, x20
	bl	_free_number
	mov	x0, x21
	bl	_free_number
	ldr	w8, [x19]
	add	w0, w8, w22
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_count_digits
.subsections_via_symbols
