	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s2b
_s2b:                                   ## @s2b
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %ebx
	movl	%r8d, %r12d
	movl	%ecx, %r14d
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r15
	movl	$1, %esi
	cmpl	$10, %ecx
	jl	LBB0_3
## %bb.1:
	leal	8(%r14), %eax
	cltq
	imulq	$954437177, %rax, %rax          ## imm = 0x38E38E39
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$33, %rax
	addl	%ecx, %eax
	movl	$1, %ecx
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	addl	%ecx, %ecx
	incl	%esi
	cmpl	%ecx, %eax
	jg	LBB0_2
LBB0_3:
	movq	%r15, %rdi
	callq	_Balloc
	movzwl	%r12w, %ecx
	movq	(%rax), %rdx
	movl	%ecx, (%rdx)
	movl	%r12d, %ecx
	sarl	$16, %ecx
	movl	%ecx, 4(%rdx)
	cmpl	$65536, %r12d                   ## imm = 0x10000
	movl	$2, %ecx
	sbbl	$0, %ecx
	movl	%ecx, 8(%rax)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$10, %ecx
	jl	LBB0_7
## %bb.4:
	movl	%ebx, %r12d
	addq	$9, %r13
	leal	-9(%rcx), %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13), %ecx
	incq	%r13
	addl	$-48, %ecx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$10, %edx
	callq	_multadd
	decl	%ebx
	jne	LBB0_5
## %bb.6:
	movl	%r12d, %ebx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	cmpl	%r14d, %edx
	jl	LBB0_9
	jmp	LBB0_11
LBB0_7:
	addl	$9, %ebx
	movl	$9, %edx
	cmpl	%r14d, %edx
	jge	LBB0_11
LBB0_9:
	movslq	%ebx, %rcx
	addq	%rcx, %r13
	subl	%edx, %r14d
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13,%rbx), %ecx
	addl	$-48, %ecx
	movq	%r15, %rdi
	movq	%rax, %rsi
	movl	$10, %edx
	callq	_multadd
	incq	%rbx
	cmpl	%ebx, %r14d
	jne	LBB0_10
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_s2b
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s2b
_s2b:                                   ; @s2b
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x21, x5
	mov	x24, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	mov	w25, #1
	mov	w1, #1
	cmp	w3, #10
	b.lt	LBB0_3
; %bb.1:
	add	w8, w20, #8
	mov	w9, #36409
	movk	w9, #14563, lsl #16
	smull	x8, w8, w9
	lsr	x9, x8, #63
	asr	x8, x8, #33
	add	w8, w8, w9
	mov	w9, #1
	mov	w1, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w9, w9, #1
	add	w1, w1, #1
	cmp	w8, w9
	b.gt	LBB0_2
LBB0_3:
	mov	x0, x19
	bl	_Balloc
	mov	x1, x0
	and	w8, w24, #0xffff
	ldr	x9, [x0]
	asr	w10, w24, #16
	stp	w8, w10, [x9]
	cmp	w24, #16, lsl #12               ; =65536
	cinc	w8, w25, hs
	str	w8, [x0, #8]
	cmp	w22, #10
	b.lt	LBB0_7
; %bb.4:
	add	x23, x23, #9
	sub	w24, w22, #9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x23], #1
	sub	w3, w8, #48
	mov	x0, x19
	mov	w2, #10
	bl	_multadd
	mov	x1, x0
	subs	w24, w24, #1
	b.ne	LBB0_5
; %bb.6:
	cmp	w22, w20
	b.lt	LBB0_8
	b	LBB0_10
LBB0_7:
	add	w21, w21, #9
	mov	w22, #9
	cmp	w22, w20
	b.ge	LBB0_10
LBB0_8:
	add	x21, x23, w21, sxtw
	sub	w20, w20, w22
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w8, [x21], #1
	sub	w3, w8, #48
	mov	x0, x19
	mov	w2, #10
	bl	_multadd
	mov	x1, x0
	subs	w20, w20, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x1
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_s2b
.subsections_via_symbols
