	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decNumberInvert                ## -- Begin function decNumberInvert
	.p2align	4, 0x90
_decNumberInvert:                       ## @decNumberInvert
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r12
	cmpq	$0, (%rsi)
	jne	LBB0_3
## %bb.1:
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_decNumberIsSpecial
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_decNumberIsNegative
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	movq	_DEC_Invalid_operation@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_decStatus
LBB0_17:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	8(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r12), %r15
	movl	24(%rbx), %edi
	callq	_D2U
	movl	%eax, %ebx
	movl	(%r14), %edi
	callq	_D2U
	cltq
	leaq	(%r15,%rax,4), %r13
	addq	$-4, %r13
	movl	(%r14), %edi
	callq	_MSUDIGITS
	cmpq	%r13, %r15
	jbe	LBB0_5
LBB0_16:
	movq	8(%r12), %rdi
	subq	%rdi, %r15
	shrq	$2, %r15
	movl	%r15d, %esi
	callq	_decGetDigits
	movl	%eax, 24(%r12)
	movq	$0, (%r12)
	movq	$0, 16(%r12)
	jmp	LBB0_17
LBB0_5:
	movslq	%ebx, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	leaq	(%r8,%rcx,4), %r9
	addq	$-4, %r9
	movq	_DECDPUN@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r11
	jmp	LBB0_6
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %r8
	addq	$4, %r15
	cmpq	%r13, %r15
	ja	LBB0_16
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
	xorl	%edi, %edi
	cmpq	%r9, %r8
	ja	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r8), %edi
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	$0, (%r15)
	testq	%r11, %r11
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_powers@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r10
	xorl	%esi, %esi
	movl	$1, %ecx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	testb	$1, %dil
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	addl	-8(%r10,%rcx,8), %esi
	movl	%esi, (%r15)
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=2
	movslq	%edi, %rbx
	imulq	$1717986919, %rbx, %rbx         ## imm = 0x66666667
	movq	%rbx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rbx
	addl	%edx, %ebx
	leal	(%rbx,%rbx), %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %edi
	cmpl	$1, %edi
	ja	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r15, %rdx
	xorq	%r13, %rdx
	movq	%rax, %rdi
	xorq	%rcx, %rdi
	orq	%rdx, %rdi
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_10 Depth=2
	leaq	1(%rcx), %rdx
	movl	%ebx, %edi
	cmpq	%r11, %rcx
	movq	%rdx, %rcx
	jb	LBB0_10
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_DEC_Invalid_operation,4,2      ## @DEC_Invalid_operation
	.comm	_DECDPUN,8,3                    ## @DECDPUN
	.comm	_powers,8,3                     ## @powers
	.comm	_DECUNUSED,4,2                  ## @DECUNUSED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_decNumberInvert                ; -- Begin function decNumberInvert
	.p2align	2
_decNumberInvert:                       ; @decNumberInvert
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x2
	mov	x19, x0
	ldr	x8, [x1]
	cbnz	x8, LBB0_3
; %bb.1:
	mov	x21, x1
	mov	x0, x1
	bl	_decNumberIsSpecial
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_decNumberIsNegative
	cbz	x0, LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _DEC_Invalid_operation@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEC_Invalid_operation@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, x20
	bl	_decStatus
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x23, [x21, #8]
	ldr	x22, [x19, #8]
	ldr	w0, [x21, #24]
	bl	_D2U
	mov	x21, x0
	ldr	w0, [x20]
	bl	_D2U
	add	x8, x22, w0, sxtw #2
	sub	x24, x8, #4
	ldr	w0, [x20]
	bl	_MSUDIGITS
	cmp	x22, x24
	b.ls	LBB0_7
LBB0_6:
	ldr	x0, [x19, #8]
	sub	x8, x22, x0
	lsr	x1, x8, #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_decGetDigits
	str	w0, [x19, #24]
	str	xzr, [x19]
	str	xzr, [x19, #16]
	b	LBB0_4
LBB0_7:
	add	x8, x23, w21, sxtw #2
	sub	x8, x8, #4
Lloh3:
	adrp	x9, _DECDPUN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DECDPUN@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	sub	x10, x0, #1
Lloh6:
	adrp	x11, _powers@GOTPAGE
Lloh7:
	ldr	x11, [x11, _powers@GOTPAGEOFF]
	mov	w12, #26215
	movk	w12, #26214, lsl #16
	mov	w13, #10
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	x23, x23, #4
	add	x22, x22, #4
	cmp	x22, x24
	b.hi	LBB0_6
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	cmp	x23, x8
	b.ls	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w17, #0
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	w17, [x23]
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	str	wzr, [x22]
	cbz	x9, LBB0_8
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w14, #0
	mov	x15, #0
	ldr	x16, [x11]
LBB0_14:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tbnz	w17, #0, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x0, [x16, x15, lsl #3]
	add	w14, w14, w0
	str	w14, [x22]
LBB0_16:                                ;   in Loop: Header=BB0_14 Depth=2
	smull	x0, w17, w12
	lsr	x1, x0, #63
	asr	x0, x0, #34
	add	w0, w0, w1
	msub	w17, w0, w13, w17
	cmp	w17, #1
	b.hi	LBB0_3
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	cmp	x10, x15
	ccmp	x22, x24, #0, eq
	b.eq	LBB0_8
; %bb.18:                               ;   in Loop: Header=BB0_14 Depth=2
	add	x15, x15, #1
	mov	x17, x0
	cmp	x15, x9
	b.lo	LBB0_14
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_DEC_Invalid_operation,4,2      ; @DEC_Invalid_operation
	.comm	_DECDPUN,8,3                    ; @DECDPUN
	.comm	_powers,8,3                     ; @powers
	.comm	_DECUNUSED,4,2                  ; @DECUNUSED
.subsections_via_symbols
