	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function weight_checkdig
_weight_checkdig:                       ## @weight_checkdig
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movb	(%rdi), %al
	xorl	%r15d, %r15d
	testb	%al, %al
	je	LBB0_7
## %bb.1:
	movl	%esi, %r14d
	cmpl	$2, %esi
	jb	LBB0_7
## %bb.2:
	movq	%rdi, %rbx
	incq	%rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isdigit
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	-1(%rbx), %eax
	addl	$-48, %eax
	imull	%r14d, %eax
	decl	%r14d
	addl	%eax, %r15d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movzbl	(%rbx), %eax
	testb	%al, %al
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpl	$1, %r14d
	ja	LBB0_3
LBB0_7:
	movl	%r15d, %eax
	movl	$3123612579, %ecx               ## imm = 0xBA2E8BA3
	imulq	%rax, %rcx
	shrq	$35, %rcx
	leal	(%rcx,%rcx,4), %eax
	leal	(%rcx,%rax,2), %eax
	subl	%eax, %r15d
	movl	$11, %eax
	subl	%r15d, %eax
	testl	%r15d, %r15d
	cmovel	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_weight_checkdig
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function weight_checkdig
_weight_checkdig:                       ; @weight_checkdig
	.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
	ldrb	w8, [x0]
	cmp	w8, #0
	ccmp	w1, #2, #0, ne
	b.hs	LBB0_3
; %bb.1:
	mov	w20, #0
LBB0_2:
	mov	w8, #35747
	movk	w8, #47662, lsl #16
	umull	x8, w20, w8
	lsr	x8, x8, #35
	mov	w9, #11
	msub	w8, w8, w9, w20
	sub	w9, w9, w8
	cmp	w8, #0
	csel	w0, wzr, w9, eq
	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
LBB0_3:
	mov	x19, x1
	mov	w20, #0
	add	x21, x0, #1
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21], #1
	cmp	w8, #0
	ccmp	w19, #1, #0, ne
	b.ls	LBB0_2
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isdigit
	cbz	x0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldursb	w8, [x21, #-1]
	sub	w8, w8, #48
	madd	w20, w8, w19, w20
	sub	w19, w19, #1
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_weight_checkdig
.subsections_via_symbols
