	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decUnitCompare
_decUnitCompare:                        ## @decUnitCompare
	.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
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_DECBUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %edi
	incl	%edi
	callq	_SD2U
	movl	%eax, %r12d
	shlq	$3, %r12
	movq	%r12, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%r15, %r15
	je	LBB0_6
## %bb.1:
	movq	%r15, %rdi
	callq	_D2U
	addq	%rbx, %rax
	movl	$1, %edi
	cmpq	%r14, %rax
	jl	LBB0_27
## %bb.2:
	leaq	1(%r14), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_D2U
	addq	%rbx, %rax
	movq	$-1, %rdi
	cmpq	%rax, -56(%rbp)                 ## 8-byte Folded Reload
	jl	LBB0_27
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r15, %rdi
	callq	_D2U
	addq	%rbx, %rax
	cmpq	%r14, %rax
	cmovleq	%r14, %rax
	leaq	16(,%rax,8), %rdi
	cmpq	%r12, %rdi
	jbe	LBB0_14
## %bb.4:
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_26
## %bb.5:
	movq	%rax, %r12
	movq	%rax, %r13
	movq	%r14, %rsi
	jmp	LBB0_15
LBB0_6:
	movl	$1, %edi
	cmpq	%rbx, %r14
	jg	LBB0_27
## %bb.7:
	jl	LBB0_8
## %bb.9:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	leaq	(%rbx,%r14,8), %rax
	addq	$-8, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%r14,8), %rcx
	addq	$-8, %rcx
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, %rax
	jb	LBB0_25
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	(%rax), %rdx
	movq	(%rcx), %rsi
	cmpq	%rsi, %rdx
	jg	LBB0_27
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	addq	$-8, %rax
	addq	$-8, %rcx
	cmpq	%rsi, %rdx
	jge	LBB0_10
LBB0_8:
	movq	$-1, %rdi
	jmp	LBB0_27
LBB0_14:
	movq	%r14, %rsi
	xorl	%r12d, %r12d
LBB0_15:
	movq	_DECDPUN@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_17
## %bb.16:
	cqto
	idivq	%rcx
	jmp	LBB0_18
LBB0_17:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $eax killed $eax def $rax
LBB0_18:
	movq	_powers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%r10d, %r10d
	subq	(%rcx,%rdx,8), %r10
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movq	%rax, %r8
	movq	%r13, %r9
	pushq	%r10
	callq	_decUnitAddSub
	addq	$16, %rsp
	testq	%rax, %rax
	js	LBB0_23
## %bb.19:
	leaq	-8(,%rax,8), %rax
	addq	%r13, %rax
	cmpq	%rax, %r13
	jae	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%r13)
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	addq	$8, %r13
	cmpq	%rax, %r13
	jb	LBB0_20
LBB0_22:
	xorl	%edi, %edi
	cmpq	$0, (%r13)
	setne	%dil
	testq	%r12, %r12
	jne	LBB0_24
	jmp	LBB0_27
LBB0_23:
	movq	$-1, %rdi
	testq	%r12, %r12
	je	LBB0_27
LBB0_24:
	movq	%rdi, %rbx
	movq	%r12, %rdi
	callq	_free
	movq	%rbx, %rdi
	jmp	LBB0_27
LBB0_25:
	xorl	%edi, %edi
	jmp	LBB0_27
LBB0_26:
	movq	_BADINT@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
LBB0_27:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_29
## %bb.28:
	movq	%rdi, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_29:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_DECBUFFER,4,2                  ## @DECBUFFER
	.comm	_BADINT,8,3                     ## @BADINT
	.comm	_DECDPUN,8,3                    ## @DECDPUN
	.comm	_powers,8,3                     ## @powers
	.no_dead_strip	_decUnitCompare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decUnitCompare
_decUnitCompare:                        ; @decUnitCompare
	.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
	sub	sp, sp, #16
	mov	x24, x4
	mov	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
Lloh3:
	adrp	x8, _DECBUFFER@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DECBUFFER@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	mov	w0, #1
	bfi	w0, w8, #1, #31
	bl	_SD2U
	mov	w25, w0
	lsl	x9, x25, #3
	add	x8, x9, #15
	and	x8, x8, #0xffffffff0
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	sub	x23, x9, x8
	mov	sp, x23
	cbz	x24, LBB0_6
; %bb.1:
	mov	x0, x24
	bl	_D2U
	add	x8, x0, x22
	cmp	x8, x21
	b.lt	LBB0_7
; %bb.2:
	add	x26, x21, #1
	mov	x0, x24
	bl	_D2U
	add	x8, x0, x22
	cmp	x26, x8
	b.lt	LBB0_13
; %bb.3:
	mov	x0, x24
	bl	_D2U
	add	x8, x0, x22
	cmp	x8, x21
	csel	x8, x8, x21, gt
	lsl	x8, x8, #3
	add	x0, x8, #16
	cmp	x0, x25, lsl #3
	b.ls	LBB0_14
; %bb.4:
	bl	_malloc
	cbz	x0, LBB0_23
; %bb.5:
	mov	x25, x0
	mov	x23, x0
	b	LBB0_15
LBB0_6:
	cmp	x21, x22
	b.le	LBB0_8
LBB0_7:
	mov	w20, #1
	b	LBB0_24
LBB0_8:
	b.lt	LBB0_13
; %bb.9:
	lsl	x8, x21, #3
	sub	x9, x8, #8
	add	x8, x19, x9
	add	x9, x20, x9
	mov	w20, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x8, x19
	b.lo	LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x8]
	ldr	x11, [x9]
	cmp	x10, x11
	b.gt	LBB0_24
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	sub	x8, x8, #8
	sub	x9, x9, #8
	cmp	x10, x11
	b.ge	LBB0_10
LBB0_13:
	mov	x20, #-1
	b	LBB0_24
LBB0_14:
	mov	x25, #0
LBB0_15:
Lloh8:
	adrp	x8, _DECDPUN@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DECDPUN@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	sdiv	x4, x24, x8
	msub	x8, x4, x8, x24
Lloh11:
	adrp	x9, _powers@GOTPAGE
Lloh12:
	ldr	x9, [x9, _powers@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	ldr	x8, [x9, x8, lsl #3]
	neg	x6, x8
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	mov	x3, x22
	mov	x5, x23
	bl	_decUnitAddSub
	tbnz	x0, #63, LBB0_20
; %bb.16:
	add	x8, x23, x0, lsl #3
	sub	x8, x8, #8
	cmp	x23, x8
	b.hs	LBB0_19
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x23]
	cbnz	x9, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_17 Depth=1
	add	x23, x23, #8
	cmp	x23, x8
	b.lo	LBB0_17
LBB0_19:
	ldr	x8, [x23]
	cmp	x8, #0
	cset	w20, ne
	cbnz	x25, LBB0_21
	b	LBB0_24
LBB0_20:
	mov	x20, #-1
	cbz	x25, LBB0_24
LBB0_21:
	mov	x0, x25
	bl	_free
	b	LBB0_24
LBB0_22:
	mov	x20, #0
	b	LBB0_24
LBB0_23:
Lloh14:
	adrp	x8, _BADINT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BADINT@GOTPAGEOFF]
Lloh16:
	ldr	x20, [x8]
LBB0_24:
	ldur	x8, [x29, #-72]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x20
	sub	sp, x29, #64
	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
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DECBUFFER,4,2                  ; @DECBUFFER
	.comm	_BADINT,8,3                     ; @BADINT
	.comm	_DECDPUN,8,3                    ; @DECDPUN
	.comm	_powers,8,3                     ; @powers
	.no_dead_strip	_decUnitCompare
.subsections_via_symbols
