	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decShiftToMost
_decShiftToMost:                        ## @decShiftToMost
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdx, %r12
	movq	%rdi, %r15
	leaq	(%rdx,%rsi), %rax
	movq	_DECDPUN@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jbe	LBB0_3
## %bb.4:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_D2U
	cltq
	leaq	(%r15,%rax,4), %r14
	leaq	(%r15,%rax,4), %rbx
	addq	$-4, %rbx
	movq	%r12, %rdi
	callq	_D2U
	cltq
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r14,%rax,4), %r14
	addq	$-4, %r14
	movq	(%r13), %r13
	movq	%r12, %rdi
	callq	_MSUDIGITS
	subq	%rax, %r13
	jne	LBB0_9
## %bb.5:
	xorl	%ecx, %ecx
	cmpq	%r15, %rbx
	jb	LBB0_15
## %bb.6:
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %eax
	movl	%eax, (%rbx,%rdx,4)
	addq	$-4, %rbx
	cmpq	%r15, %rbx
	jae	LBB0_7
## %bb.8:
	leaq	(%rbx,%rdx,4), %r14
	jmp	LBB0_15
LBB0_1:
	movq	%rsi, %rax
	jmp	LBB0_19
LBB0_3:
	movq	_powers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r12,4), %ecx
	imull	(%r15), %ecx
	movl	%ecx, (%r15)
	jmp	LBB0_19
LBB0_9:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_D2U
	xorl	%ecx, %ecx
	cmpq	%r15, %rbx
	jb	LBB0_15
## %bb.10:
	cltq
	leaq	(%r15,%rax,4), %rax
	addq	$-4, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(,%rax,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	_DECDPUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%r13, %rax
	imull	(%rdx,%rax,4), %ecx
	addq	$-4, %rbx
	movl	%ecx, %r14d
	cmpq	%r15, %rbx
	jb	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax), %r12
	movl	(%rbx), %edi
	movq	%r13, %rsi
	callq	_QUOT10
	movl	(%rbx), %ecx
	movq	_powers@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%r13,4), %esi
	imull	%eax, %esi
	subl	%esi, %ecx
	cmpq	-72(%rbp), %r12                 ## 8-byte Folded Reload
	ja	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	addl	%r14d, %eax
	movl	%eax, (%r12)
	jmp	LBB0_13
LBB0_14:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rbx,%rax,4), %r14
LBB0_15:
	cmpq	%r15, %r14
	jae	LBB0_17
## %bb.16:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_19
LBB0_17:
	movl	%ecx, (%r14)
	addq	$-4, %r14
	cmpq	%r15, %r14
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jb	LBB0_19
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movl	$0, (%r14)
	addq	$-4, %r14
	cmpq	%r15, %r14
	jae	LBB0_18
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DECDPUN,8,3                    ## @DECDPUN
	.comm	_powers,8,3                     ## @powers
	.no_dead_strip	_decShiftToMost
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decShiftToMost
_decShiftToMost:                        ; @decShiftToMost
	.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
	cbz	x2, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x23, _DECDPUN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DECDPUN@GOTPAGEOFF]
	ldr	x8, [x23]
	add	x27, x2, x1
	cmp	x27, x8
	b.ls	LBB0_7
; %bb.2:
	mov	x0, x1
	bl	_D2U
	add	x8, x20, w0, sxtw #2
	sub	x22, x8, #4
	mov	x0, x21
	bl	_D2U
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x24, w0
	add	x25, x22, w0, sxtw #2
	ldr	x19, [x23]
	mov	x0, x21
	bl	_MSUDIGITS
	subs	x21, x19, x0
	b.ne	LBB0_8
; %bb.3:
	cmp	x22, x20
	b.lo	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	str	w8, [x22, x24, lsl #2]
	sub	x22, x22, #4
	cmp	x22, x20
	b.hs	LBB0_4
; %bb.5:
	mov	w26, #0
	add	x25, x22, x24, lsl #2
	cmp	x25, x20
	b.hs	LBB0_15
	b	LBB0_17
LBB0_6:
	mov	x27, x1
	b	LBB0_17
LBB0_7:
Lloh2:
	adrp	x8, _powers@GOTPAGE
Lloh3:
	ldr	x8, [x8, _powers@GOTPAGEOFF]
	ldr	w9, [x20]
Lloh4:
	ldr	x8, [x8]
	ldr	w8, [x8, x21, lsl #2]
	mul	w8, w8, w9
	str	w8, [x20]
	b	LBB0_17
LBB0_8:
	mov	x0, x27
	bl	_D2U
	cmp	x22, x20
	b.hs	LBB0_10
LBB0_9:
	mov	w26, #0
	cmp	x25, x20
	b.hs	LBB0_15
	b	LBB0_17
LBB0_10:
	str	x27, [sp, #8]                   ; 8-byte Folded Spill
	mov	w26, #0
	add	x8, x20, w0, sxtw #2
	sub	x25, x8, #4
	lsl	x27, x24, #2
Lloh5:
	adrp	x28, _powers@GOTPAGE
Lloh6:
	ldr	x28, [x28, _powers@GOTPAGEOFF]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	msub	w9, w10, w0, w9
	ldr	x10, [x23]
	sub	x10, x10, x21
	ldr	w8, [x8, x10, lsl #2]
	mul	w26, w8, w9
	sub	x22, x22, #4
	cmp	x22, x20
	b.lo	LBB0_14
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x19, x22, x27
	ldr	w0, [x22]
	mov	x1, x21
	bl	_QUOT10
	ldr	w9, [x22]
	ldr	x8, [x28]
	ldr	w10, [x8, x21, lsl #2]
	cmp	x19, x25
	b.hi	LBB0_11
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w11, w0, w26
	str	w11, [x19]
	b	LBB0_11
LBB0_14:
	add	x25, x22, x24, lsl #2
	ldr	x27, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x25, x20
	b.lo	LBB0_17
LBB0_15:
	str	w26, [x25], #-4
	cmp	x25, x20
	b.lo	LBB0_17
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x25], #-4
	cmp	x25, x20
	b.hs	LBB0_16
LBB0_17:
	mov	x0, x27
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_DECDPUN,8,3                    ; @DECDPUN
	.comm	_powers,8,3                     ; @powers
	.no_dead_strip	_decShiftToMost
.subsections_via_symbols
