	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function number_to_str
LCPI0_0:
	.quad	0x0000000000000000              ## double 0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_number_to_str:                         ## @number_to_str
	.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
	movl	%esi, %r12d
	movq	%rdi, %r13
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	cmpl	$2, %esi
	setge	%al
	movq	_NUMBER_DTOA_SIZE@GOTPCREL(%rip), %rcx
	cmpl	%esi, (%rcx)
	setge	%cl
	xorpd	%xmm1, %xmm1
	ucomisd	%xmm1, %xmm0
	setae	%dl
	andb	%al, %dl
	andb	%cl, %dl
	movzbl	%dl, %edi
	callq	_assert
	xorl	%esi, %esi
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	ucomisd	LCPI0_0(%rip), %xmm0
	jne	LBB0_1
	jnp	LBB0_2
LBB0_1:
	movsd	-48(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	callq	_log10
	movl	%eax, %edi
	callq	_floor
	movl	%eax, %esi
LBB0_2:
	movl	%esi, (%r14)
	notl	%esi
	addl	%r12d, %esi
	movl	$10, %edi
	callq	_pow
	mulsd	-48(%rbp), %xmm0                ## 8-byte Folded Reload
	cvttsd2si	%xmm0, %eax
	cltq
	imulq	$1717986919, %rax, %rcx         ## imm = 0x66666667
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$34, %rcx
	addl	%edx, %ecx
	leal	(%rcx,%rcx), %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %eax
	xorl	%ebx, %ebx
	cmpl	$5, %eax
	setge	%bl
	addl	%ecx, %ebx
	leal	-2(%r12), %r15d
	movslq	%r12d, %rax
	movb	$0, -1(%rax,%r13)
	cmpl	$2, %r12d
	jl	LBB0_7
## %bb.3:
	movl	%r15d, %eax
	testb	$1, %r15b
	jne	LBB0_5
## %bb.4:
	movslq	%ebx, %rcx
	imulq	$1717986919, %rcx, %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, %ecx
	addb	$48, %cl
	movb	%cl, (%r13,%rax)
	decq	%rax
LBB0_5:
	testl	%r15d, %r15d
	je	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%ebx, %rdx
	imulq	$1717986919, %rdx, %rcx         ## imm = 0x66666667
	movq	%rcx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rcx
	addl	%esi, %ecx
	leal	(%rcx,%rcx), %esi
	leal	(%rsi,%rsi,4), %esi
	imulq	$1374389535, %rdx, %rbx         ## imm = 0x51EB851F
                                        ## kill: def $edx killed $edx killed $rdx
	subl	%esi, %edx
	addb	$48, %dl
	movb	%dl, (%r13,%rax)
	movslq	%ecx, %rcx
	imulq	$1717986919, %rcx, %rdx         ## imm = 0x66666667
	movq	%rdx, %rsi
	shrq	$63, %rsi
	sarq	$34, %rdx
	addl	%esi, %edx
	addl	%edx, %edx
	leal	(%rdx,%rdx,4), %edx
	subl	%edx, %ecx
	addb	$48, %cl
	movb	%cl, -1(%r13,%rax)
	movq	%rbx, %rcx
	shrq	$63, %rcx
	sarq	$37, %rbx
	addl	%ecx, %ebx
	addq	$-2, %rax
	cmpq	$-1, %rax
	jne	LBB0_6
LBB0_7:
	testl	%ebx, %ebx
	je	LBB0_9
## %bb.8:
	incl	(%r14)
	leaq	1(%r13), %rdi
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_memmove
	addb	$48, %bl
	movb	%bl, (%r13)
	jmp	LBB0_12
LBB0_9:
	cmpb	$48, (%r13)
	jne	LBB0_12
## %bb.10:
	movb	1(%r13), %al
	addb	$-49, %al
	cmpb	$8, %al
	ja	LBB0_12
## %bb.11:
	leaq	1(%r13), %rsi
	decl	(%r14)
	movq	%r13, %rdi
	movl	%r15d, %edx
	callq	_memmove
	movslq	%r15d, %rax
	movb	$48, (%r13,%rax)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUMBER_DTOA_SIZE,4,2           ## @NUMBER_DTOA_SIZE
	.no_dead_strip	_number_to_str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function number_to_str
_number_to_str:                         ; @number_to_str
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-80]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset b8, -72
	.cfi_offset b9, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	fmov	d8, d0
	cmp	w1, #1
Lloh0:
	adrp	x8, _NUMBER_DTOA_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUMBER_DTOA_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ccmp	w8, w1, #8, gt
	cset	w8, ge
	fcmp	d0, #0.0
	cset	w9, ge
	and	w0, w9, w8
	bl	_assert
	fcmp	d8, #0.0
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	fmov	d0, d8
	bl	_log10
	bl	_floor
LBB0_3:
	str	w0, [x20]
	mvn	w8, w0
	add	w1, w8, w21
	mov	w22, #10
	mov	w0, #10
	bl	_pow
	fmul	d0, d0, d8
	fcvtzs	w9, d0
	mov	w8, #26215
	movk	w8, #26214, lsl #16
	smull	x10, w9, w8
	lsr	x11, x10, #63
	asr	x10, x10, #34
	add	w10, w10, w11
	msub	w9, w10, w22, w9
	cmp	w9, #4
	cinc	w9, w10, gt
	add	x10, x19, w21, sxtw
	sturb	wzr, [x10, #-1]
	subs	w21, w21, #2
	b.lt	LBB0_8
; %bb.4:
	mov	x10, x21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	smull	x11, w9, w8
	lsr	x12, x11, #63
	asr	x11, x11, #34
	add	w23, w11, w12
	msub	w9, w23, w22, w9
	add	w9, w9, #48
	strb	w9, [x19, x10]
	sub	x10, x10, #1
	mov	x9, x23
	cmn	x10, #1
	b.ne	LBB0_5
; %bb.6:
	cbz	w23, LBB0_9
LBB0_7:
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	add	x0, x19, #1
	mov	x1, x19
	mov	x2, x21
	bl	_memmove
	add	w8, w23, #48
	strb	w8, [x19]
	b	LBB0_12
LBB0_8:
	mov	x23, x9
	cbnz	w23, LBB0_7
LBB0_9:
	ldrb	w8, [x19]
	cmp	w8, #48
	b.ne	LBB0_12
; %bb.10:
	mov	x1, x19
	ldrb	w8, [x1, #1]!
	sub	w8, w8, #49
	cmp	w8, #8
	b.hi	LBB0_12
; %bb.11:
	ldr	w8, [x20]
	sub	w8, w8, #1
	str	w8, [x20]
	mov	x0, x19
	mov	x2, x21
	bl	_memmove
	mov	w8, #48
	strb	w8, [x19, w21, sxtw]
LBB0_12:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #80               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NUMBER_DTOA_SIZE,4,2           ; @NUMBER_DTOA_SIZE
	.no_dead_strip	_number_to_str
.subsections_via_symbols
