	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decFinalize
_decFinalize:                           ## @decFinalize
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	subq	(%rdi), %rax
	movq	%rcx, %r14
	movq	%rdx, %r12
	leaq	1(%rax), %rdx
	movq	8(%rdi), %rcx
	cmpq	%rdx, %rcx
	jle	LBB0_7
## %bb.1:
	movq	(%r12), %rdx
LBB0_2:
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_decApplyRound
LBB0_4:
	movq	8(%rbx), %rax
	movq	8(%r15), %rcx
	movq	16(%r15), %rdx
	negq	%rdx
	addq	%rcx, %rdx
	incq	%rdx
	movq	%rax, %r12
	subq	%rdx, %r12
	jle	LBB0_19
## %bb.5:
	subq	(%rbx), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_14
## %bb.6:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_decSetOverflow
	jmp	LBB0_19
LBB0_7:
	cmpq	%rax, %rcx
	jle	LBB0_8
## %bb.9:
	leaq	-64(%rbp), %r13
	movq	%r13, %rdi
	callq	_decNumberZero
	movq	-48(%rbp), %rax
	movl	$1, (%rax)
	movq	(%r15), %rax
	movq	%rax, -56(%rbp)
	movq	%rbx, %rdi
	movq	%r13, %rsi
	movl	$1, %edx
	callq	_decCompare
	movq	_BADINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.10:
	movq	_DEC_Insufficient_storage@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_14:
	cmpl	$0, 24(%r15)
	je	LBB0_19
## %bb.15:
	movq	%rbx, %rdi
	callq	_ISZERO
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	(%rbx), %rsi
	movq	16(%rbx), %rdi
	movq	%r12, %rdx
	callq	_decShiftToMost
	movq	%rax, (%rbx)
LBB0_17:
	subq	%r12, 8(%rbx)
	movq	_DEC_Clamped@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %eax
	orl	%eax, (%r14)
	jmp	LBB0_19
LBB0_11:
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	jns	LBB0_2
## %bb.12:
	testq	%rax, %rax
	jne	LBB0_2
## %bb.13:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r14, %rcx
	callq	_decApplyRound
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_decSetSubnormal
LBB0_19:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BADINT,8,3                     ## @BADINT
	.comm	_DEC_Insufficient_storage,4,2   ## @DEC_Insufficient_storage
	.comm	_DEC_Clamped,4,2                ## @DEC_Clamped
	.no_dead_strip	_decFinalize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decFinalize
_decFinalize:                           ; @decFinalize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	ldr	x9, [x1]
	ldp	x10, x8, [x0]
	sub	x9, x9, x10
	add	x10, x9, #1
	cmp	x8, x10
	b.le	LBB0_7
; %bb.1:
	ldr	x2, [x22]
LBB0_2:
	cbz	x2, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_decApplyRound
LBB0_4:
	ldr	x8, [x20, #8]
	ldp	x9, x10, [x21, #8]
	sub	x10, x9, x10
	add	x10, x10, #1
	subs	x22, x8, x10
	b.le	LBB0_19
; %bb.5:
	ldr	x10, [x20]
	sub	x9, x9, x10
	add	x9, x9, #1
	cmp	x8, x9
	b.le	LBB0_10
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_decSetOverflow
	b	LBB0_19
LBB0_7:
	cmp	x8, x9
	b.le	LBB0_18
; %bb.8:
	add	x0, sp, #8
	bl	_decNumberZero
	ldr	x8, [sp, #24]
	mov	w9, #1
	str	w9, [x8]
	ldr	x8, [x21]
	str	x8, [sp, #16]
	add	x1, sp, #8
	mov	x0, x20
	mov	w2, #1
	bl	_decCompare
Lloh0:
	adrp	x8, _BADINT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BADINT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.9:
Lloh3:
	adrp	x8, _DEC_Insufficient_storage@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEC_Insufficient_storage@GOTPAGEOFF]
	b	LBB0_14
LBB0_10:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_19
; %bb.11:
	mov	x0, x20
	bl	_ISZERO
	cbnz	w0, LBB0_13
; %bb.12:
	ldr	x0, [x20, #16]
	ldr	x1, [x20]
	mov	x2, x22
	bl	_decShiftToMost
	str	x0, [x20]
LBB0_13:
	ldr	x8, [x20, #8]
	sub	x8, x8, x22
	str	x8, [x20, #8]
Lloh5:
	adrp	x8, _DEC_Clamped@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEC_Clamped@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_19
LBB0_15:
	ldr	x2, [x22]
	tbz	x2, #63, LBB0_2
; %bb.16:
	cbnz	x0, LBB0_2
; %bb.17:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_decApplyRound
LBB0_18:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	mov	x3, x19
	bl	_decSetSubnormal
LBB0_19:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_BADINT,8,3                     ; @BADINT
	.comm	_DEC_Insufficient_storage,4,2   ; @DEC_Insufficient_storage
	.comm	_DEC_Clamped,4,2                ; @DEC_Clamped
	.no_dead_strip	_decFinalize
.subsections_via_symbols
