	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decNumberToIntegralValue       ## -- Begin function decNumberToIntegralValue
	.p2align	4, 0x90
_decNumberToIntegralValue:              ## @decNumberToIntegralValue
	.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	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_DECSPECIAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_5
## %bb.1:
	movq	$0, -72(%rbp)
	movq	%rbx, %rdi
	callq	_decNumberIsInfinite
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_decNumberCopy
	jmp	LBB0_7
LBB0_5:
	cmpq	$0, 8(%rbx)
	js	LBB0_6
## %bb.8:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_decNumberCopy                  ## TAILCALL
LBB0_3:
	leaq	-72(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_decNaNs
	movq	-72(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movq	%r14, %rdi
	movq	%r15, %rdx
	callq	_decStatus
	jmp	LBB0_7
LBB0_6:
	movups	(%r15), %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	16(%rbx), %eax
	movl	%eax, -40(%rbp)
	movq	$0, -48(%rbp)
	leaq	-72(%rbp), %r15
	movq	%r15, %rdi
	callq	_decNumberZero
	leaq	-48(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_decNumberQuantize
	movq	%rax, %r14
LBB0_7:
	movq	%r14, %rax
	addq	$56, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DECSPECIAL,4,2                 ## @DECSPECIAL
	.comm	_DECUNUSED,4,2                  ## @DECUNUSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decNumberToIntegralValue       ; -- Begin function decNumberToIntegralValue
	.p2align	2
_decNumberToIntegralValue:              ; @decNumberToIntegralValue
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _DECSPECIAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DECSPECIAL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	str	xzr, [sp, #24]
	mov	x0, x20
	bl	_decNumberIsInfinite
	cbz	x0, LBB0_5
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_decNumberCopy
	b	LBB0_8
LBB0_3:
	ldr	x8, [x20, #8]
	tbnz	x8, #63, LBB0_7
; %bb.4:
	mov	x0, x19
	mov	x1, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_decNumberCopy
LBB0_5:
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x20
	mov	x2, #0
	bl	_decNaNs
	ldr	x1, [sp, #24]
	cbz	x1, LBB0_8
; %bb.6:
	mov	x0, x19
	mov	x2, x21
	bl	_decStatus
	b	LBB0_8
LBB0_7:
	ldr	q0, [x21]
	str	q0, [sp]
	ldr	w8, [x20, #16]
	str	w8, [sp, #8]
	str	xzr, [sp]
	add	x0, sp, #24
	bl	_decNumberZero
	add	x2, sp, #24
	mov	x3, sp
	mov	x0, x19
	mov	x1, x20
	bl	_decNumberQuantize
	mov	x19, x0
LBB0_8:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DECSPECIAL,4,2                 ; @DECSPECIAL
	.comm	_DECUNUSED,4,2                  ; @DECUNUSED
.subsections_via_symbols
