	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_float_to_shortest_decimal_bufn ## -- Begin function float_to_shortest_decimal_bufn
	.p2align	4, 0x90
_float_to_shortest_decimal_bufn:        ## @float_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_float_to_bits
	movl	%eax, %r12d
	movq	_FLOAT_MANTISSA_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FLOAT_EXPONENT_BITS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rcx), %edx
	xorl	%r15d, %r15d
	btl	%edx, %r12d
	setb	%r15b
	movl	$-1, %ebx
	shll	%cl, %ebx
	notl	%ebx
	andl	%r12d, %ebx
                                        ## kill: def $cl killed $cl killed $rcx
	sarl	%cl, %r12d
	movl	$-1, %edx
	movl	%eax, %ecx
	shll	%cl, %edx
	notl	%edx
	andl	%edx, %r12d
	cmpl	%edx, %r12d
	je	LBB0_6
## %bb.1:
	movl	%r12d, %eax
	orl	%ebx, %eax
	jne	LBB0_2
LBB0_6:
	xorl	%edx, %edx
	testl	%r12d, %r12d
	setne	%dl
	xorl	%ecx, %ecx
	testl	%ebx, %ebx
	setne	%cl
	movq	%r14, %rdi
	movl	%r15d, %esi
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copy_special_str               ## TAILCALL
LBB0_2:
	leaq	-36(%rbp), %rdx
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_f2d_small_int
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	-36(%rbp), %edi
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	movl	%r12d, %esi
	callq	_f2d
	movl	%eax, %edi
	movl	%eax, -36(%rbp)
LBB0_5:
	movl	%r15d, %esi
	movq	%r14, %rdx
	callq	_to_chars
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FLOAT_MANTISSA_BITS,4,2        ## @FLOAT_MANTISSA_BITS
	.comm	_FLOAT_EXPONENT_BITS,4,2        ## @FLOAT_EXPONENT_BITS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_float_to_shortest_decimal_bufn ; -- Begin function float_to_shortest_decimal_bufn
	.p2align	2
_float_to_shortest_decimal_bufn:        ; @float_to_shortest_decimal_bufn
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_float_to_bits
Lloh0:
	adrp	x8, _FLOAT_MANTISSA_BITS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FLOAT_MANTISSA_BITS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _FLOAT_EXPONENT_BITS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FLOAT_EXPONENT_BITS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	add	w10, w9, w8
	lsr	w10, w0, w10
	and	w20, w10, #0x1
	mov	w10, #-1
	lsl	w11, w10, w8
	bic	w21, w0, w11
	asr	w8, w0, w8
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_copy_special_str
LBB0_2:
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x22
	bl	_f2d_small_int
	cbz	w0, LBB0_4
; %bb.3:
	ldr	w0, [sp, #12]
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	mov	x1, x22
	bl	_f2d
	str	w0, [sp, #12]
LBB0_5:
	mov	x1, x20
	mov	x2, x19
	bl	_to_chars
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FLOAT_MANTISSA_BITS,4,2        ; @FLOAT_MANTISSA_BITS
	.comm	_FLOAT_EXPONENT_BITS,4,2        ; @FLOAT_EXPONENT_BITS
.subsections_via_symbols
