	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function d2d
_d2d:                                   ## @d2d
	.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
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_DOUBLE_BIAS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_DOUBLE_MANTISSA_BITS@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	testl	%esi, %esi
	je	LBB0_1
## %bb.2:
	addl	%r15d, %eax
	movl	%ebx, %r15d
	subl	%eax, %r15d
	addl	$-2, %r15d
	movl	$1, %edi
	callq	_UINT64CONST
	movl	%eax, %r12d
	movb	(%r13), %cl
	shll	%cl, %r12d
	orl	%r14d, %r12d
	jmp	LBB0_3
LBB0_1:
	addl	%eax, %r15d
	notl	%r15d
	movl	%r14d, %r12d
LBB0_3:
	leal	(,%r12,4), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	setne	%al
	cmpl	$2, %ebx
	setl	%cl
	orb	%al, %cl
	movzbl	%cl, %r14d
	testl	%r15d, %r15d
	js	LBB0_7
## %bb.4:
	movl	%r15d, %edi
	callq	_log10Pow2
	movl	%eax, %r13d
	cmpl	$4, %r15d
	adcl	$-1, %r13d
	movq	_DOUBLE_POW5_INV_BITCOUNT@GOTPCREL(%rip), %rax
	notl	%r15d
	addl	%r13d, %r15d
	addl	(%rax), %r15d
	movl	%r13d, %edi
	callq	_pow5bits
	addl	%eax, %r15d
	movq	_DOUBLE_POW5_INV_SPLIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r13d, %rbx
	movl	(%rax,%rbx,4), %esi
	leaq	-52(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movl	%r12d, %edi
	movl	%r15d, %edx
	movl	%r14d, %r9d
	callq	_mulShiftAll
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$21, %ebx
	jg	LBB0_20
## %bb.5:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edi
	callq	_div5
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,4), %eax
	cmpl	%ebx, %eax
	jne	LBB0_19
## %bb.6:
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_multipleOfPowerOf5
	movl	%eax, %r14d
	testl	%r14d, %r14d
	jne	LBB0_13
	jmp	LBB0_20
LBB0_7:
	movl	%r15d, %ebx
	negl	%ebx
	movl	%ebx, %edi
	callq	_log10Pow5
	movl	%eax, %r13d
	xorl	%eax, %eax
	cmpl	$-1, %r15d
	setne	%al
	subl	%eax, %r13d
	subl	%r13d, %ebx
	movl	%ebx, %edi
	callq	_pow5bits
	movq	_DOUBLE_POW5_BITCOUNT@GOTPCREL(%rip), %rcx
	movl	%r13d, %edx
	subl	%eax, %edx
	addl	(%rcx), %edx
	addl	%r13d, %r15d
	movq	_DOUBLE_POW5_SPLIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	-52(%rbp), %rcx
	leaq	-44(%rbp), %r8
	movl	%r12d, %edi
	movl	%r14d, %r9d
	callq	_mulShiftAll
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	cmpl	$1, %r13d
	jg	LBB0_9
## %bb.8:
	decl	-52(%rbp)
	movl	$1, %r14d
	movl	%r15d, %r13d
	jmp	LBB0_13
LBB0_9:
	cmpl	$62, %r13d
	ja	LBB0_10
## %bb.11:
	decl	%r13d
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	movl	%r13d, %esi
	callq	_multipleOfPowerOf2
	movl	%eax, %r14d
	movl	%r15d, %r13d
	testl	%r14d, %r14d
	je	LBB0_20
LBB0_13:
	movl	-52(%rbp), %edi
	callq	_div10
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_div10
	cmpl	%eax, %ebx
	jle	LBB0_14
## %bb.15:
	movl	%eax, %ecx
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	%r14d, %r15d
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%r12d, %r13d
	movl	%r12d, %edi
	callq	_div10
	movl	%eax, %r12d
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r13d
	xorl	%eax, %eax
	cmpq	$0, -64(%rbp)                   ## 8-byte Folded Reload
	sete	%al
	andl	%eax, %r15d
	movslq	%r13d, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, -52(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -44(%rbp)
	incl	%r14d
	movl	%ebx, %edi
	callq	_div10
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_div10
	movl	%eax, %ecx
	cmpl	%eax, %ebx
	jg	LBB0_16
## %bb.17:
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	testl	%r15d, %r15d
	setne	%al
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_14:
	movb	$1, %al
	xorl	%edx, %edx
	xorl	%r14d, %r14d
LBB0_18:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, %ecx
	andl	$1, %ecx
	orq	$4, %rcx
	cmpq	$5, %rdx
	cmovneq	%rdx, %rcx
	testb	%al, %al
	cmoveq	%rdx, %rcx
	cmpl	-44(%rbp), %esi
	sete	%dl
	cmpq	$5, %rcx
	setge	%al
	orb	%dl, %al
	jmp	LBB0_29
LBB0_19:
	orl	$2, %ebx
	movl	%ebx, %edi
	movl	%r13d, %esi
	callq	_multipleOfPowerOf5
	subl	%eax, -52(%rbp)
	jmp	LBB0_20
LBB0_10:
	movl	%r15d, %r13d
LBB0_20:
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %edi
	callq	_div100
	movl	%eax, %ebx
	movl	-44(%rbp), %edi
	callq	_div100
	cmpl	%eax, %ebx
	jle	LBB0_21
## %bb.22:
	movl	%eax, %r15d
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edi
	callq	_div100
	imull	$-100, %eax, %ecx
	addl	%r14d, %ecx
	xorl	%r13d, %r13d
	cmpl	$50, %ecx
	setge	%r13b
	movl	%ebx, -52(%rbp)
	movl	%r15d, -44(%rbp)
	movl	$2, %r14d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jmp	LBB0_23
LBB0_21:
	xorl	%r13d, %r13d
	movl	-52(%rbp), %ebx
	xorl	%r14d, %r14d
LBB0_23:
	movl	%ebx, %edi
	callq	_div10
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_div10
	cmpl	%eax, %r12d
	jle	LBB0_24
## %bb.25:
	movl	%eax, %ebx
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %r15d
	movl	%r13d, %edi
	callq	_div10
	movl	%eax, %r13d
	movl	%r12d, -52(%rbp)
	movl	%ebx, -44(%rbp)
	incl	%r14d
	movl	%r12d, %edi
	callq	_div10
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	callq	_div10
	movl	%eax, %ebx
	cmpl	%eax, %r12d
	jg	LBB0_26
## %bb.27:
	movl	%r13d, %eax
	addl	%eax, %eax
	leal	(%rax,%rax,4), %eax
	subl	%eax, %r15d
	movl	%r13d, %esi
	xorl	%r13d, %r13d
	cmpl	$5, %r15d
	setge	%r13b
	jmp	LBB0_28
LBB0_24:
	movl	-48(%rbp), %esi                 ## 4-byte Reload
LBB0_28:
	cmpl	-44(%rbp), %esi
	sete	%cl
	testl	%r13d, %r13d
	setne	%al
	orb	%cl, %al
	movq	-72(%rbp), %r13                 ## 8-byte Reload
LBB0_29:
	addl	%r14d, %r13d
	movzbl	%al, %eax
	addl	%esi, %eax
	shlq	$32, %rax
	orq	%rax, %r13
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOUBLE_BIAS,4,2                ## @DOUBLE_BIAS
	.comm	_DOUBLE_MANTISSA_BITS,4,2       ## @DOUBLE_MANTISSA_BITS
	.comm	_DOUBLE_POW5_INV_BITCOUNT,4,2   ## @DOUBLE_POW5_INV_BITCOUNT
	.comm	_DOUBLE_POW5_INV_SPLIT,8,3      ## @DOUBLE_POW5_INV_SPLIT
	.comm	_DOUBLE_POW5_BITCOUNT,4,2       ## @DOUBLE_POW5_BITCOUNT
	.comm	_DOUBLE_POW5_SPLIT,8,3          ## @DOUBLE_POW5_SPLIT
	.no_dead_strip	_d2d
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function d2d
_d2d:                                   ; @d2d
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _DOUBLE_BIAS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DOUBLE_BIAS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x20, _DOUBLE_MANTISSA_BITS@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DOUBLE_MANTISSA_BITS@GOTPAGEOFF]
	ldr	w9, [x20]
	cbz	w1, LBB0_2
; %bb.1:
	add	w8, w8, w9
	sub	w8, w19, w8
	sub	w23, w8, #2
	mov	w0, #1
	bl	_UINT64CONST
	ldr	w8, [x20]
	lsl	w8, w0, w8
	orr	w20, w8, w22
	b	LBB0_3
LBB0_2:
	add	w8, w9, w8
	mvn	w23, w8
	mov	x20, x22
LBB0_3:
	lsl	w21, w20, #2
	cmp	w22, #0
	ccmp	w19, #2, #8, eq
	cset	w22, lt
	tbnz	w23, #31, LBB0_7
; %bb.4:
	mov	x0, x23
	bl	_log10Pow2
	cmp	w23, #3
	cset	w8, hi
	sub	w19, w0, w8
Lloh5:
	adrp	x8, _DOUBLE_POW5_INV_BITCOUNT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DOUBLE_POW5_INV_BITCOUNT@GOTPAGEOFF]
Lloh7:
	ldr	w24, [x8]
	mov	x0, x19
	bl	_pow5bits
	mvn	w8, w23
	add	w8, w19, w8
	add	w8, w8, w24
	add	w2, w8, w0
Lloh8:
	adrp	x8, _DOUBLE_POW5_INV_SPLIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DOUBLE_POW5_INV_SPLIT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	ldr	w1, [x8, w19, sxtw #2]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x5, x22
	bl	_mulShiftAll
	mov	x20, x0
	cmp	w19, #21
	b.gt	LBB0_18
; %bb.5:
	mov	x0, x21
	bl	_div5
	add	w8, w0, w0, lsl #2
	neg	w8, w8
	cmn	w8, w21
	b.ne	LBB0_17
; %bb.6:
	mov	x0, x21
	mov	x1, x19
	bl	_multipleOfPowerOf5
	mov	x21, x0
	cbnz	w0, LBB0_11
	b	LBB0_18
LBB0_7:
	neg	w19, w23
	mov	x0, x19
	bl	_log10Pow5
	cmn	w23, #1
	cset	w8, ne
	sub	w25, w0, w8
	sub	w24, w19, w25
	mov	x0, x24
	bl	_pow5bits
Lloh11:
	adrp	x8, _DOUBLE_POW5_BITCOUNT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DOUBLE_POW5_BITCOUNT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	sub	w9, w25, w0
	add	w2, w9, w8
	add	w19, w25, w23
Lloh14:
	adrp	x8, _DOUBLE_POW5_SPLIT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DOUBLE_POW5_SPLIT@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w1, [x8, w24, sxtw #2]
	add	x3, sp, #12
	add	x4, sp, #8
	mov	x0, x20
	mov	x5, x22
	bl	_mulShiftAll
	mov	x20, x0
	subs	w1, w25, #1
	b.gt	LBB0_9
; %bb.8:
	ldr	w8, [sp, #12]
	sub	w8, w8, #1
	str	w8, [sp, #12]
	mov	w21, #1
	b	LBB0_11
LBB0_9:
	cmp	w25, #62
	b.hi	LBB0_18
; %bb.10:
	mov	x0, x21
	bl	_multipleOfPowerOf2
	mov	x21, x0
	cbz	w0, LBB0_18
LBB0_11:
	ldr	w0, [sp, #12]
	bl	_div10
	mov	x22, x0
	ldr	w0, [sp, #8]
	bl	_div10
	cmp	w22, w0
	b.le	LBB0_15
; %bb.12:
	mov	x23, x0
	mov	w25, #0
	mov	x26, #0
	mov	w27, #-10
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x24, x20
	mov	x0, x20
	bl	_div10
	mov	x20, x0
	madd	w8, w0, w27, w24
	cmp	x26, #0
	cset	w9, eq
	and	w21, w21, w9
	sxtw	x26, w8
	stp	w23, w22, [sp, #8]
	add	w25, w25, #1
	mov	x0, x22
	bl	_div10
	mov	x22, x0
	ldr	w0, [sp, #8]
	bl	_div10
	mov	x23, x0
	cmp	w22, w0
	b.gt	LBB0_13
; %bb.14:
	cmp	w21, #0
	cset	w8, ne
	b	LBB0_16
LBB0_15:
	mov	x26, #0
	mov	w25, #0
	mov	w8, #1
LBB0_16:
	cmp	x26, #5
	cset	w9, eq
	tst	w20, #0x1
	mov	w10, #4
	cinc	x10, x10, ne
	tst	w8, w9
	csel	x8, x10, x26, ne
	ldr	w9, [sp, #8]
	cmp	w20, w9
	ccmp	x8, #4, #0, ne
	cset	w8, gt
	b	LBB0_26
LBB0_17:
	orr	w0, w21, #0x2
	mov	x1, x19
	bl	_multipleOfPowerOf5
	ldr	w8, [sp, #12]
	sub	w8, w8, w0
	str	w8, [sp, #12]
LBB0_18:
	ldr	w0, [sp, #12]
	bl	_div100
	mov	x21, x0
	ldr	w0, [sp, #8]
	bl	_div100
	cmp	w21, w0
	b.le	LBB0_20
; %bb.19:
	mov	x22, x0
	mov	x0, x20
	bl	_div100
	mov	w8, #-100
	madd	w8, w0, w8, w20
	cmp	w8, #49
	cset	w24, gt
	stp	w22, w21, [sp, #8]
	mov	w25, #2
	mov	x20, x0
	b	LBB0_21
LBB0_20:
	mov	w24, #0
	mov	w25, #0
	ldr	w21, [sp, #12]
LBB0_21:
	mov	x0, x21
	bl	_div10
	mov	x21, x0
	ldr	w0, [sp, #8]
	bl	_div10
	cmp	w21, w0
	b.le	LBB0_25
; %bb.22:
	mov	x23, x0
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	mov	x22, x20
	mov	x0, x20
	bl	_div10
	mov	x20, x0
	stp	w23, w21, [sp, #8]
	add	w25, w25, #1
	mov	x0, x21
	bl	_div10
	mov	x21, x0
	ldr	w0, [sp, #8]
	bl	_div10
	mov	x23, x0
	cmp	w21, w0
	b.gt	LBB0_23
; %bb.24:
	mov	w8, #-10
	madd	w8, w20, w8, w22
	cmp	w8, #4
	cset	w24, gt
LBB0_25:
	ldr	w8, [sp, #8]
	cmp	w20, w8
	ccmp	w24, #0, #0, ne
	cset	w8, ne
LBB0_26:
	add	w8, w20, w8
	add	w0, w25, w19
	bfi	x0, x8, #32, #32
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_DOUBLE_BIAS,4,2                ; @DOUBLE_BIAS
	.comm	_DOUBLE_MANTISSA_BITS,4,2       ; @DOUBLE_MANTISSA_BITS
	.comm	_DOUBLE_POW5_INV_BITCOUNT,4,2   ; @DOUBLE_POW5_INV_BITCOUNT
	.comm	_DOUBLE_POW5_INV_SPLIT,8,3      ; @DOUBLE_POW5_INV_SPLIT
	.comm	_DOUBLE_POW5_BITCOUNT,4,2       ; @DOUBLE_POW5_BITCOUNT
	.comm	_DOUBLE_POW5_SPLIT,8,3          ; @DOUBLE_POW5_SPLIT
	.no_dead_strip	_d2d
.subsections_via_symbols
