	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Number_toPrecision
_Number_toPrecision:                    ## @Number_toPrecision
	.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	%r9, %r14
	movq	%r8, %r15
	movl	%ecx, %ebx
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	%rsi, %rdi
	callq	_number_this
	testq	%rax, %rax
	je	LBB0_22
## %bb.1:
	movq	%rax, %r13
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.2:
	movl	(%r15), %esi
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_to_int32
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_21
## %bb.3:
	movl	-44(%rbp), %eax
	addl	$-22, %eax
	cmpl	$-22, %eax
	ja	LBB0_5
## %bb.4:
	movq	_JS_E_PRECISION_OUT_OF_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	callq	_throw_range_error
	movl	%eax, %r15d
	jmp	LBB0_21
LBB0_22:
	movq	_JS_E_NUMBER_EXPECTED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	xorl	%edx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_throw_type_error               ## TAILCALL
LBB0_5:
	movl	(%r13), %r15d
	movl	%r15d, %edi
	callq	_is_finite
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %esi
	testl	%esi, %esi
	je	LBB0_7
## %bb.10:
	testl	%r15d, %r15d
	je	LBB0_11
## %bb.12:
	movl	%r15d, %edi
	negl	%edi
	cmovsl	%r15d, %edi
	callq	_log10
	movl	%eax, %edi
	callq	_floor
	incl	%eax
	movl	-44(%rbp), %esi
	jmp	LBB0_13
LBB0_7:
	movl	%r15d, %edi
	callq	_jsval_number
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_to_string
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_21
	jmp	LBB0_8
LBB0_11:
	movl	$1, %eax
LBB0_13:
	movl	%esi, %ecx
	subl	%eax, %ecx
	jge	LBB0_15
## %bb.14:
	decl	%esi
	movl	%r15d, %edi
	callq	_number_to_exponential
	jmp	LBB0_16
LBB0_15:
	movl	%r15d, %edi
	movl	%ecx, %esi
	callq	_number_to_fixed
LBB0_16:
	movq	%rax, -56(%rbp)
	testq	%rax, %rax
	je	LBB0_17
LBB0_8:
	movq	-56(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_18
## %bb.9:
	callq	_jsval_string
	movl	%eax, (%r14)
	jmp	LBB0_19
LBB0_17:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_18:
	callq	_jsstr_release
LBB0_19:
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %r15d
LBB0_21:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_JS_E_NUMBER_EXPECTED,4,2       ## @JS_E_NUMBER_EXPECTED
	.comm	_JS_E_PRECISION_OUT_OF_RANGE,4,2 ## @JS_E_PRECISION_OUT_OF_RANGE
	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_Number_toPrecision
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Number_toPrecision
_Number_toPrecision:                    ; @Number_toPrecision
	.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, x5
	mov	x22, x4
	mov	x23, x3
	mov	x20, x0
	str	wzr, [sp, #12]
	mov	x0, x1
	bl	_number_this
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	cbz	w23, LBB0_6
; %bb.2:
	ldr	w1, [x22]
	add	x2, sp, #12
	mov	x0, x20
	bl	_to_int32
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_19
; %bb.3:
	ldr	w8, [sp, #12]
	sub	w8, w8, #22
	cmn	w8, #22
	b.hi	LBB0_6
; %bb.4:
Lloh0:
	adrp	x8, _JS_E_PRECISION_OUT_OF_RANGE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _JS_E_PRECISION_OUT_OF_RANGE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	bl	_throw_range_error
	mov	x22, x0
	b	LBB0_19
LBB0_5:
Lloh3:
	adrp	x8, _JS_E_NUMBER_EXPECTED@GOTPAGE
Lloh4:
	ldr	x8, [x8, _JS_E_NUMBER_EXPECTED@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, #0
	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	_throw_type_error
LBB0_6:
	ldr	w21, [x21]
	mov	x0, x21
	bl	_is_finite
	ldr	w8, [sp, #12]
	cmp	w0, #0
	ccmp	w8, #0, #4, ne
	b.ne	LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_jsval_number
	mov	x1, x0
	mov	x2, sp
	mov	x0, x20
	bl	_to_string
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_19
	b	LBB0_11
LBB0_8:
	cbz	w21, LBB0_13
; %bb.9:
	cmp	w21, #0
	cneg	w0, w21, mi
	bl	_log10
	bl	_floor
	add	w9, w0, #1
	ldr	w8, [sp, #12]
	subs	w1, w8, w9
	b.ge	LBB0_14
LBB0_10:
	sub	w1, w8, #1
	mov	x0, x21
	bl	_number_to_exponential
	str	x0, [sp]
	cbz	x0, LBB0_15
LBB0_11:
	ldr	x0, [sp]
	cbz	x19, LBB0_16
; %bb.12:
	bl	_jsval_string
	str	w0, [x19]
	b	LBB0_17
LBB0_13:
	mov	w9, #1
	subs	w1, w8, w9
	b.lt	LBB0_10
LBB0_14:
	mov	x0, x21
	bl	_number_to_fixed
	str	x0, [sp]
	cbnz	x0, LBB0_11
LBB0_15:
Lloh6:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh7:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_18
LBB0_16:
	bl	_jsstr_release
LBB0_17:
Lloh8:
	adrp	x8, _S_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_18:
	ldr	w22, [x8]
LBB0_19:
	mov	x0, x22
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_JS_E_NUMBER_EXPECTED,4,2       ; @JS_E_NUMBER_EXPECTED
	.comm	_JS_E_PRECISION_OUT_OF_RANGE,4,2 ; @JS_E_PRECISION_OUT_OF_RANGE
	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_Number_toPrecision
.subsections_via_symbols
