	.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, %r15
	leaq	(%rdx,%rsi), %r13
	movq	_DECDPUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	cmpq	%rcx, %r13
	jbe	LBB0_3
## %bb.5:
	movq	%r15, %rax
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_6
## %bb.7:
	movq	%r15, %rax
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_8
LBB0_1:
	movq	%rsi, %r13
	jmp	LBB0_4
LBB0_3:
	movq	_powers@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	imull	(%rdi), %eax
	movl	%eax, (%rdi)
	jmp	LBB0_4
LBB0_6:
	movl	%r15d, %eax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_8:
	movq	%rcx, %rax
	subq	%rdx, %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	movq	%rdi, %r12
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %rbx
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %ebx
LBB0_11:
	movq	%rsi, %rdi
	callq	_D2U
	cltq
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax,4), %r14
	addq	$-4, %r14
	movq	%r13, %rdi
	callq	_D2U
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_D2U
	movq	%r12, %rdx
	movslq	%eax, %rcx
	cmpq	%r12, %r14
	jae	LBB0_18
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rdx,%rax,4), %rax
	leaq	(%rax,%rcx,4), %rax
	addq	$-4, %rax
	xorl	%ecx, %ecx
	cmpq	%rdx, %rax
	jb	LBB0_4
	jmp	LBB0_15
LBB0_18:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movslq	-48(%rbp), %rax                 ## 4-byte Folded Reload
	leaq	(%rdx,%rax,4), %rax
	addq	$-4, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	(,%rcx,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	jmp	LBB0_19
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_19 Depth=1
	movq	_DECDPUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	subq	%rbx, %rax
	imull	(%rdx,%rax,4), %ecx
	addq	$-4, %r14
	movl	%ecx, %r12d
	movq	%r13, %rdx
	cmpq	%r13, %r14
	jb	LBB0_13
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	movq	%rdx, %r13
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax), %r15
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_QUOT10
	movl	(%r14), %ecx
	movq	_powers@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	(%rdx,%rbx,4), %esi
	imull	%eax, %esi
	subl	%esi, %ecx
	cmpq	-56(%rbp), %r15                 ## 8-byte Folded Reload
	ja	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=1
	addl	%r12d, %eax
	movl	%eax, (%r15)
	jmp	LBB0_21
LBB0_13:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%r14,%rax,4), %rax
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	cmpq	%rdx, %rax
	jae	LBB0_15
LBB0_4:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movl	%ecx, (%rax)
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	addq	$-4, %rax
	cmpq	%rdx, %rax
	jb	LBB0_4
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	movl	$0, (%rax)
	jmp	LBB0_16
	.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_4
; %bb.1:
	mov	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x23, _DECDPUN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _DECDPUN@GOTPAGEOFF]
	ldr	x26, [x23]
	add	x19, x2, x1
	cmp	x19, x26
	b.ls	LBB0_5
; %bb.2:
	mov	x0, x1
	bl	_D2U
	add	x8, x20, w0, sxtw #2
	sub	x24, x8, #4
	mov	x0, x19
	bl	_D2U
	mov	x22, x0
	mov	x0, x21
	bl	_D2U
                                        ; kill: def $w0 killed $w0 def $x0
	cmp	x24, x20
	b.hs	LBB0_6
; %bb.3:
	mov	w25, #0
	add	x8, x24, w0, sxtw #2
	cmp	x8, x20
	b.lo	LBB0_11
	b	LBB0_12
LBB0_4:
	mov	x19, x1
	b	LBB0_11
LBB0_5:
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_11
LBB0_6:
	mov	w25, #0
	udiv	x8, x21, x26
	neg	x9, x21
	madd	x8, x8, x26, x9
	add	x8, x26, x8
	udiv	x9, x8, x26
	msub	x21, x9, x26, x8
	add	x8, x20, w22, sxtw #2
	sub	x22, x8, #4
	sxtw	x8, w0
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	lsl	x27, x8, #2
Lloh5:
	adrp	x28, _powers@GOTPAGE
Lloh6:
	ldr	x28, [x28, _powers@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	msub	w9, w10, w0, w9
	ldr	x10, [x23]
	sub	x10, x10, x21
	ldr	w8, [x8, x10, lsl #2]
	mul	w25, w8, w9
	sub	x24, x24, #4
	cmp	x24, x20
	b.lo	LBB0_10
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	add	x26, x24, x27
	ldr	w0, [x24]
	mov	x1, x21
	bl	_QUOT10
	ldr	w9, [x24]
	ldr	x8, [x28]
	ldr	w10, [x8, x21, lsl #2]
	cmp	x26, x22
	b.hi	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	add	w11, w0, w25
	str	w11, [x26]
	b	LBB0_7
LBB0_10:
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x24, x8, lsl #2
	cmp	x8, x20
	b.hs	LBB0_12
LBB0_11:
	mov	x0, x19
	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
LBB0_12:
	str	w25, [x8], #-4
	cmp	x8, x20
	b.lo	LBB0_11
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	str	wzr, [x8], #-4
	cmp	x8, x20
	b.hs	LBB0_13
	b	LBB0_11
	.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
