	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decShiftToLeast
_decShiftToLeast:                       ## @decShiftToLeast
	.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	%esi, %r13d
	testl	%edx, %edx
	je	LBB0_25
## %bb.1:
	movl	%edx, %r12d
	movq	%rdi, %rbx
	movq	_DECDPUN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	imull	%r13d, %eax
	cmpl	%edx, %eax
	jne	LBB0_3
## %bb.2:
	movl	$0, (%rbx)
	movl	$1, %r13d
	jmp	LBB0_25
LBB0_3:
	movl	%r12d, %edi
	callq	_MSUDIGITS
	movl	%eax, %r15d
	movq	_DECDPUN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	jne	LBB0_20
## %bb.4:
	movl	%r12d, %edi
	callq	_D2U
	movq	%rbx, %rsi
	cmpl	%r13d, %eax
	jge	LBB0_19
## %bb.5:
	movslq	%r13d, %rcx
	leaq	(%rbx,%rcx,4), %rcx
	movslq	%eax, %r9
	leaq	(%rbx,%r9,4), %rax
	leaq	(,%r9,4), %rsi
	leaq	(%rbx,%r9,4), %rdx
	addq	$4, %rdx
	cmpq	%rcx, %rdx
	cmovbeq	%rcx, %rdx
	movq	%rbx, %r10
	notq	%r10
	addq	%rdx, %r10
	subq	%rsi, %r10
	cmpq	$28, %r10
	jb	LBB0_6
## %bb.7:
	movq	%rsi, %rdx
	negq	%rdx
	cmpq	$32, %rdx
	jb	LBB0_8
## %bb.9:
	movq	%rbx, %r14
	shrq	$2, %r10
	incq	%r10
	movq	%r10, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rdx
	movq	%rdx, %rbx
	shrq	$3, %rbx
	incq	%rbx
	movl	%ebx, %r11d
	andl	$3, %r11d
	cmpq	$24, %rdx
	jae	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	jmp	LBB0_13
LBB0_20:
	movl	%r12d, %edi
	subl	%r15d, %edi
	callq	_D2U
	movslq	%eax, %r14
	movq	_DECDPUN@GOTPCREL(%rip), %rax
	imull	(%rax), %r13d
	subl	%r12d, %r13d
	movl	(%rbx,%r14,4), %edi
	movl	%r15d, %esi
	callq	_QUOT10
	movl	%eax, (%rbx)
	movq	%rbx, %rax
	movl	%r15d, %ebx
	movq	_DECDPUN@GOTPCREL(%rip), %rcx
	subl	(%rcx), %ebx
	addl	%r13d, %ebx
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	testl	%ebx, %ebx
	jle	LBB0_24
## %bb.21:
	movslq	%r15d, %r12
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	movl	4(%r13,%r14,4), %edi
	movl	%r15d, %esi
	callq	_QUOT10
	movq	_DECDPUN@GOTPCREL(%rip), %rdi
	movl	4(%r13,%r14,4), %ecx
	movq	_powers@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r12,4), %esi
	imull	%eax, %esi
	subl	%esi, %ecx
	movslq	(%rdi), %rsi
	subq	%r12, %rsi
	imull	(%rdx,%rsi,4), %ecx
	addl	%ecx, (%r13)
	subl	%r15d, %ebx
	jle	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=1
	movl	%eax, 4(%r13)
	addq	$4, %r13
	movl	%r15d, %eax
	subl	(%rdi), %eax
	addl	%eax, %ebx
	testl	%ebx, %ebx
	jg	LBB0_22
LBB0_24:
	subq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	shrq	$2, %r13
	incl	%r13d
	jmp	LBB0_25
LBB0_6:
	movq	%rbx, %rsi
	jmp	LBB0_18
LBB0_8:
	movq	%rbx, %rsi
	jmp	LBB0_18
LBB0_11:
	andq	$-4, %rbx
	movq	%r14, %rdi
	leaq	112(%r14), %rdx
	leaq	(%r14,%rsi), %rdi
	addq	$112, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movups	-112(%rdi,%rsi,4), %xmm0
	movups	-96(%rdi,%rsi,4), %xmm1
	movups	%xmm0, -112(%rdx,%rsi,4)
	movups	%xmm1, -96(%rdx,%rsi,4)
	movups	-80(%rdi,%rsi,4), %xmm0
	movups	-64(%rdi,%rsi,4), %xmm1
	movups	%xmm0, -80(%rdx,%rsi,4)
	movups	%xmm1, -64(%rdx,%rsi,4)
	movups	-48(%rdi,%rsi,4), %xmm0
	movups	-32(%rdi,%rsi,4), %xmm1
	movups	%xmm0, -48(%rdx,%rsi,4)
	movups	%xmm1, -32(%rdx,%rsi,4)
	movups	-16(%rdi,%rsi,4), %xmm0
	movups	(%rdi,%rsi,4), %xmm1
	movups	%xmm0, -16(%rdx,%rsi,4)
	movups	%xmm1, (%rdx,%rsi,4)
	addq	$32, %rsi
	addq	$-4, %rbx
	jne	LBB0_12
LBB0_13:
	testq	%r11, %r11
	movq	%r14, %rbx
	je	LBB0_16
## %bb.14:
	addq	%rsi, %r9
	leaq	(%rbx,%r9,4), %rdx
	addq	$16, %rdx
	leaq	(%rbx,%rsi,4), %rsi
	addq	$16, %rsi
	shlq	$5, %r11
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movups	-16(%rdx,%rdi), %xmm0
	movups	(%rdx,%rdi), %xmm1
	movups	%xmm0, -16(%rsi,%rdi)
	movups	%xmm1, (%rsi,%rdi)
	addq	$32, %rdi
	cmpq	%rdi, %r11
	jne	LBB0_15
LBB0_16:
	leaq	(%rbx,%r8,4), %rsi
	cmpq	%r8, %r10
	je	LBB0_19
## %bb.17:
	leaq	(%rax,%r8,4), %rax
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edx
	movl	%edx, (%rsi)
	addq	$4, %rsi
	addq	$4, %rax
	cmpq	%rcx, %rax
	jb	LBB0_18
LBB0_19:
	subq	%rbx, %rsi
	shrq	$2, %rsi
	movl	%esi, %r13d
LBB0_25:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DECDPUN,4,2                    ## @DECDPUN
	.comm	_powers,8,3                     ## @powers
	.no_dead_strip	_decShiftToLeast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decShiftToLeast
_decShiftToLeast:                       ; @decShiftToLeast
	.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	x20, x1
	cbz	w2, LBB0_19
; %bb.1:
	mov	x22, x2
	mov	x19, x0
Lloh0:
	adrp	x24, _DECDPUN@GOTPAGE
Lloh1:
	ldr	x24, [x24, _DECDPUN@GOTPAGEOFF]
	ldr	w8, [x24]
	mul	w8, w8, w20
	cmp	w8, w2
	b.ne	LBB0_3
; %bb.2:
	str	wzr, [x19]
	mov	w20, #1
	b	LBB0_19
LBB0_3:
	mov	x0, x22
	bl	_MSUDIGITS
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x22
	bl	_D2U
                                        ; kill: def $w0 killed $w0 def $x0
	mov	x9, x19
	cmp	w0, w20
	b.ge	LBB0_18
; %bb.5:
	mov	x8, x20
	sxtw	x9, w8
	sbfiz	x10, x0, #2, #32
	add	x8, x19, x10
	add	x11, x8, #4
	add	x9, x19, x9, lsl #2
	cmp	x11, x9
	csel	x9, x11, x9, hi
	mvn	x11, x19
	add	x9, x9, x11
	sub	x11, x9, x10
	cmp	x11, #60
	b.lo	LBB0_15
; %bb.6:
	neg	x12, x10
	mov	x9, x19
	cmp	x12, #64
	b.lo	LBB0_16
; %bb.7:
	lsr	x9, x11, #2
	add	x11, x9, #1
	and	x12, x11, #0x7ffffffffffffff0
	lsl	x13, x12, #2
	add	x9, x19, x13
	add	x8, x8, x13
	add	x13, x19, #32
	mov	x14, x12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x15, x13, x10
	ldp	q0, q1, [x15, #-32]
	ldp	q2, q3, [x15]
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	subs	x14, x14, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x11, x12
	b.ne	LBB0_16
	b	LBB0_18
LBB0_10:
	mov	x21, x0
	sub	w0, w22, w0
	bl	_D2U
	mov	x23, x0
	ldr	w8, [x24]
	neg	w9, w22
	madd	w20, w8, w20, w9
	ldr	w0, [x19, w0, sxtw #2]
	mov	x1, x21
	bl	_QUOT10
	str	w0, [x19]
	ldr	w8, [x24]
	sub	w8, w21, w8
	add	w25, w8, w20
	mov	x20, x19
	cmp	w25, #1
	b.lt	LBB0_14
; %bb.11:
	sxtw	x8, w23
	sxtw	x22, w21
	lsl	x8, x8, #2
	add	x23, x8, #4
Lloh2:
	adrp	x26, _powers@GOTPAGE
Lloh3:
	ldr	x26, [x26, _powers@GOTPAGEOFF]
	mov	x20, x19
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x20, x23]
	mov	x1, x21
	bl	_QUOT10
	ldr	w8, [x20, x23]
	ldr	x9, [x26]
	ldr	w10, [x9, x22, lsl #2]
	msub	w8, w10, w0, w8
	ldr	w10, [x20]
	ldr	w11, [x24]
	sub	w11, w11, w21
	ldr	w9, [x9, w11, sxtw #2]
	madd	w8, w9, w8, w10
	str	w8, [x20]
	sub	w8, w25, w21
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	str	w0, [x20, #4]!
	ldr	w9, [x24]
	sub	w9, w21, w9
	add	w25, w9, w8
	cmp	w25, #0
	b.gt	LBB0_12
LBB0_14:
	sub	x8, x20, x19
	lsr	x8, x8, #2
	add	w20, w8, #1
	b	LBB0_19
LBB0_15:
	mov	x9, x19
LBB0_16:
	add	x10, x19, w20, sxtw #2
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	str	w11, [x9], #4
	cmp	x8, x10
	b.lo	LBB0_17
LBB0_18:
	sub	x8, x9, x19
	lsr	x20, x8, #2
LBB0_19:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_DECDPUN,4,2                    ; @DECDPUN
	.comm	_powers,8,3                     ; @powers
	.no_dead_strip	_decShiftToLeast
.subsections_via_symbols
