	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	(%rdi), %rax
	testq	%rax, %rax
	jns	LBB0_2
## %bb.1:
	movq	(%rbx), %rcx
	subq	8(%r15), %rcx
	cmpq	%rcx, %rax
	jle	LBB0_11
LBB0_2:
	movq	(%rdx), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	callq	_decApplyRound
	movq	(%r15), %rax
LBB0_4:
	movq	8(%rbx), %rcx
	movq	16(%rbx), %rdx
	negq	%rdx
	addq	%rcx, %rdx
	incq	%rdx
	movq	%rax, %r12
	subq	%rdx, %r12
	jle	LBB0_10
## %bb.5:
	subq	8(%r15), %rcx
	incq	%rcx
	cmpq	%rcx, %rax
	jle	LBB0_6
## %bb.12:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_decSetOverflow                 ## TAILCALL
LBB0_6:
	cmpl	$0, 24(%rbx)
	je	LBB0_10
## %bb.7:
	movq	%r15, %rdi
	callq	_ISZERO
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movl	16(%r15), %edi
	movq	8(%r15), %rsi
	movq	%r12, %rdx
	callq	_decShiftToMost
	movq	%rax, 8(%r15)
LBB0_9:
	subq	%r12, (%r15)
	movq	_DEC_Clamped@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r14)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_decSetSubnormal                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.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:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x20, x0
	ldr	x8, [x0]
	tbz	x8, #63, LBB0_2
; %bb.1:
	ldr	x9, [x21]
	ldr	x10, [x20, #8]
	sub	x9, x9, x10
	cmp	x8, x9
	b.le	LBB0_12
LBB0_2:
	ldr	x2, [x2]
	cbz	x2, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	bl	_decApplyRound
	ldr	x8, [x20]
LBB0_4:
	ldp	x9, x10, [x21, #8]
	sub	x10, x9, x10
	add	x10, x10, #1
	subs	x22, x8, x10
	b.le	LBB0_11
; %bb.5:
	ldr	x10, [x20, #8]
	sub	x9, x9, x10
	add	x9, x9, #1
	cmp	x8, x9
	b.le	LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_decSetOverflow
LBB0_7:
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_11
; %bb.8:
	mov	x0, x20
	bl	_ISZERO
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x20, #16]
	ldr	x1, [x20, #8]
	mov	x2, x22
	bl	_decShiftToMost
	str	x0, [x20, #8]
LBB0_10:
	ldr	x8, [x20]
	sub	x8, x8, x22
	str	x8, [x20]
Lloh0:
	adrp	x8, _DEC_Clamped@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEC_Clamped@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x20
	mov	x1, x21
	mov	x3, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_decSetSubnormal
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEC_Clamped,4,2                ; @DEC_Clamped
	.no_dead_strip	_decFinalize
.subsections_via_symbols
