	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_double_to_shortest_decimal_bufn ## -- Begin function double_to_shortest_decimal_bufn
	.p2align	4, 0x90
_double_to_shortest_decimal_bufn:       ## @double_to_shortest_decimal_bufn
	.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
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_double_to_bits
	movq	_DOUBLE_MANTISSA_BITS@GOTPCREL(%rip), %r13
	movq	_DOUBLE_EXPONENT_BITS@GOTPCREL(%rip), %r14
	movl	(%r14), %ecx
	addl	(%r13), %ecx
	movl	%eax, %ebx
	xorl	%r15d, %r15d
	btl	%ecx, %eax
	setb	%r15b
	movl	$1, %edi
	callq	_UINT64CONST
	movl	%eax, %r12d
	movb	(%r13), %cl
	shll	%cl, %r12d
	decl	%r12d
	andl	%ebx, %r12d
	sarl	%cl, %ebx
	movb	(%r14), %cl
	movl	$-1, %eax
	shll	%cl, %eax
	notl	%eax
	andl	%eax, %ebx
	cmpl	%eax, %ebx
	je	LBB0_6
## %bb.1:
	movl	%ebx, %eax
	orl	%r12d, %eax
	jne	LBB0_2
LBB0_6:
	xorl	%edx, %edx
	testl	%ebx, %ebx
	setne	%dl
	xorl	%ecx, %ecx
	testl	%r12d, %r12d
	setne	%cl
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copy_special_str               ## TAILCALL
LBB0_2:
	leaq	-44(%rbp), %rdx
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_d2d_small_int
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	-44(%rbp), %edi
	jmp	LBB0_5
LBB0_4:
	movl	%r12d, %edi
	movl	%ebx, %esi
	callq	_d2d
	movl	%eax, %edi
	movl	%eax, -44(%rbp)
LBB0_5:
	movl	%r15d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_to_chars
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DOUBLE_MANTISSA_BITS,4,2       ## @DOUBLE_MANTISSA_BITS
	.comm	_DOUBLE_EXPONENT_BITS,4,2       ## @DOUBLE_EXPONENT_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_double_to_shortest_decimal_bufn ; -- Begin function double_to_shortest_decimal_bufn
	.p2align	2
_double_to_shortest_decimal_bufn:       ; @double_to_shortest_decimal_bufn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	bl	_double_to_bits
	mov	x22, x0
Lloh0:
	adrp	x21, _DOUBLE_MANTISSA_BITS@GOTPAGE
Lloh1:
	ldr	x21, [x21, _DOUBLE_MANTISSA_BITS@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x23, _DOUBLE_EXPONENT_BITS@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DOUBLE_EXPONENT_BITS@GOTPAGEOFF]
	ldr	w9, [x23]
	add	w8, w9, w8
	lsr	w8, w0, w8
	and	w20, w8, #0x1
	mov	w0, #1
	bl	_UINT64CONST
	ldr	w8, [x21]
	lsl	w9, w0, w8
	sub	w9, w9, #1
	and	w21, w9, w22
	asr	w8, w22, w8
	ldr	w9, [x23]
	mov	w10, #-1
	lsl	w9, w10, w9
	mvn	w10, w9
	bic	w22, w8, w9
	cmp	w22, w10
	orr	w8, w22, w21
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_2
; %bb.1:
	cmp	w22, #0
	cset	w2, ne
	cmp	w21, #0
	cset	w3, ne
	mov	x0, x19
	mov	x1, 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
	add	sp, sp, #80
	b	_copy_special_str
LBB0_2:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_d2d_small_int
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [sp, #12]
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_d2d
	str	w0, [sp, #12]
LBB0_5:
	mov	x1, x20
	mov	x2, x19
	bl	_to_chars
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_DOUBLE_MANTISSA_BITS,4,2       ; @DOUBLE_MANTISSA_BITS
	.comm	_DOUBLE_EXPONENT_BITS,4,2       ; @DOUBLE_EXPONENT_BITS
.subsections_via_symbols
