	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function doubles2str
_doubles2str:                           ## @doubles2str
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	leaq	L_.str(%rip), %r12
	cmovneq	%rdx, %r12
	movq	%r12, %rdi
	callq	_strlen
	movq	%rax, %rbx
	addl	$24, %ebx
	movq	_INT_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	decl	%eax
	cltd
	idivl	%ebx
	cmpl	%r13d, %eax
	jle	LBB0_10
## %bb.1:
	movl	%ebx, %edi
	imull	%r13d, %edi
	incl	%edi
	callq	_av_malloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movb	$0, (%rax)
	testl	%r13d, %r13d
	jle	LBB0_6
## %bb.3:
	movl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movsd	(%rax,%r14,8), %xmm0            ## xmm0 = mem[0],zero
	movq	%r15, %rdi
	movl	%ebx, %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r12, %rcx
	callq	_snprintf
	cmpl	%ebx, %eax
	jae	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %eax
	addq	%rax, %r15
	incq	%r14
	cmpq	%r14, %r13
	jne	LBB0_4
LBB0_6:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_strlen
	subq	%rax, %r14
	movb	$0, (%rbx,%r14)
	jmp	LBB0_11
LBB0_9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_free
LBB0_10:
	xorl	%ebx, %ebx
LBB0_11:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	", "

	.comm	_INT_MAX,4,2                    ## @INT_MAX
L_.str.1:                               ## @.str.1
	.asciz	"%.15g%s"

	.no_dead_strip	_doubles2str
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function doubles2str
_doubles2str:                           ; @doubles2str
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [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 w25, -72
	.cfi_offset w26, -80
	mov	x23, x1
	mov	x21, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x2, #0
	csel	x19, x8, x2, eq
	mov	x0, x19
	bl	_strlen
	add	w22, w0, #24
Lloh2:
	adrp	x8, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _INT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sub	w8, w8, #1
	sdiv	w8, w8, w22
	cmp	w8, w23
	b.le	LBB0_8
; %bb.1:
	orr	w8, wzr, #0x1
	madd	w0, w22, w23, w8
	bl	_av_malloc
	mov	x20, x0
	cbz	x0, LBB0_9
; %bb.2:
	strb	wzr, [x20]
	cmp	w23, #1
	b.lt	LBB0_6
; %bb.3:
	mov	w25, w23
	mov	x23, x20
Lloh5:
	adrp	x24, l_.str.1@PAGE
Lloh6:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	d0, [x21]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	mov	x3, x19
	bl	_snprintf
	cmp	w0, w22
	b.hs	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, w0, uxtw
	add	x21, x21, #8
	subs	x25, x25, #1
	b.ne	LBB0_4
LBB0_6:
	mov	x0, x20
	bl	_strlen
	mov	x21, x0
	mov	x0, x19
	bl	_strlen
	sub	x8, x21, x0
	strb	wzr, [x20, x8]
	b	LBB0_9
LBB0_7:
	mov	x0, x20
	bl	_av_free
LBB0_8:
	mov	x20, #0
LBB0_9:
	mov	x0, x20
	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	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	", "

	.comm	_INT_MAX,4,2                    ; @INT_MAX
l_.str.1:                               ; @.str.1
	.asciz	"%.15g%s"

	.no_dead_strip	_doubles2str
.subsections_via_symbols
