	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function str_to_number
LCPI0_0:
	.quad	0x8000000000000000              ## double -0
	.quad	0x8000000000000000              ## double -0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_str_to_number:                         ## @str_to_number
	.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	%rsi, %r14
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	callq	_jsstr_flatten
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_iswspace
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:
	movb	-1(%rbx), %al
	cmpb	$43, %al
	je	LBB0_8
## %bb.5:
	cmpb	$45, %al
	jne	LBB0_6
## %bb.7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	jmp	LBB0_8
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_6:
	decq	%rbx
LBB0_8:
	leaq	_str_to_number.infinityW(%rip), %r15
	movq	%r15, %rdi
	callq	_ARRAY_SIZE
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_wcsncmp
	testl	%eax, %eax
	je	LBB0_9
## %bb.17:
	movb	(%rbx), %al
	cmpb	$48, %al
	jne	LBB0_24
## %bb.18:
	cmpb	$120, 1(%rbx)
	jne	LBB0_24
## %bb.19:
	movsbl	2(%rbx), %edi
	callq	_hex_to_int
	cmpl	$-1, %eax
	je	LBB0_20
## %bb.21:
	addq	$3, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	shll	$4, %r15d
	addl	%eax, %r15d
	movsbl	(%rbx), %edi
	callq	_hex_to_int
	incq	%rbx
	cmpl	$-1, %eax
	jne	LBB0_22
## %bb.23:
	cvtsi2sd	%r15d, %xmm0
	jmp	LBB0_43
LBB0_24:
	movsbl	%al, %edi
	callq	_iswdigit
	xorl	%r15d, %r15d
	testq	%rax, %rax
	je	LBB0_27
## %bb.25:
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_26:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r15,4), %eax
	leaq	1(%rcx), %rbx
	movsbl	(%rcx), %edx
	leal	(%rdx,%rax,2), %r15d
	addl	$-48, %r15d
	movsbl	1(%rcx), %edi
	callq	_iswdigit
	movq	%rbx, %rcx
	testq	%rax, %rax
	jne	LBB0_26
LBB0_27:
	movb	(%rbx), %al
	cmpb	$101, %al
	je	LBB0_31
## %bb.28:
	cmpb	$69, %al
	je	LBB0_31
## %bb.29:
	cmpb	$46, %al
	jne	LBB0_40
	.p2align	4, 0x90
LBB0_30:                                ## =>This Inner Loop Header: Depth=1
	movsbl	1(%rbx), %edi
	incq	%rbx
	callq	_iswdigit
	testq	%rax, %rax
	jne	LBB0_30
	jmp	LBB0_40
LBB0_9:
	leaq	_str_to_number.infinityW(%rip), %rdi
	callq	_ARRAY_SIZE
	movslq	%eax, %rcx
	movb	(%rbx,%rcx), %al
	testb	%al, %al
	je	LBB0_13
## %bb.10:
	addq	%rcx, %rbx
	incq	%rbx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movsbl	%al, %edi
	callq	_iswspace
	testq	%rax, %rax
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_11
	jmp	LBB0_13
LBB0_31:
	movq	(%r13), %rcx
	movb	1(%rbx), %al
	cmpb	$43, %al
	je	LBB0_35
## %bb.32:
	cmpb	$45, %al
	jne	LBB0_33
## %bb.34:
	addq	$2, %rbx
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_36
LBB0_15:
	cmpb	$0, -1(%rbx)
	jne	LBB0_16
LBB0_13:
	movq	_INFINITY@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	testq	%r12, %r12
	je	LBB0_43
## %bb.14:
	xorpd	LCPI0_0(%rip), %xmm0
	jmp	LBB0_43
LBB0_35:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	addq	$2, %rbx
	jmp	LBB0_36
LBB0_33:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	incq	%rbx
LBB0_36:
	movsbl	(%rbx), %edi
	callq	_iswdigit
	xorl	%r13d, %r13d
	testq	%rax, %rax
	je	LBB0_39
## %bb.37:
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_38:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r13,%r13,4), %eax
	leaq	1(%rcx), %rbx
	movsbl	(%rcx), %edx
	leal	(%rdx,%rax,2), %r13d
	addl	$-48, %r13d
	movsbl	1(%rcx), %edi
	callq	_iswdigit
	movq	%rbx, %rcx
	testq	%rax, %rax
	jne	LBB0_38
LBB0_39:
	movl	%r13d, %esi
	negl	%esi
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	cmovel	%r13d, %esi
	movl	$10, %edi
	callq	_pow
	imull	%r15d, %eax
	movl	%eax, %r15d
	.p2align	4, 0x90
LBB0_40:                                ## =>This Inner Loop Header: Depth=1
	movsbl	(%rbx), %edi
	callq	_iswspace
	incq	%rbx
	testq	%rax, %rax
	jne	LBB0_40
## %bb.41:
	cmpb	$0, -1(%rbx)
	je	LBB0_42
LBB0_16:
	movq	_NAN@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	jmp	LBB0_43
LBB0_42:
	movl	%r15d, %eax
	negl	%eax
	testq	%r12, %r12
	cmovel	%r15d, %eax
	cvtsi2sd	%eax, %xmm0
	jmp	LBB0_43
LBB0_20:
	xorpd	%xmm0, %xmm0
LBB0_43:
	movsd	%xmm0, (%r14)
	movq	_S_OK@GOTPCREL(%rip), %rax
LBB0_44:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.section	__TEXT,__const
_str_to_number.infinityW:               ## @str_to_number.infinityW
	.ascii	"Infinity"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_NAN,8,3                        ## @NAN
	.comm	_INFINITY,8,3                   ## @INFINITY
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_str_to_number
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function str_to_number
_str_to_number:                         ; @str_to_number
	.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	x19, x1
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	x22, [x23]
	bl	_jsstr_flatten
	cbz	x0, LBB0_14
; %bb.1:
	mov	x21, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x21], #1
	bl	_iswspace
	cbnz	x0, LBB0_2
; %bb.3:
	mov	x20, x21
	ldrb	w8, [x20, #-1]!
	cmp	w8, #43
	b.eq	LBB0_6
; %bb.4:
	cmp	w8, #45
	b.ne	LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	x22, [x8]
LBB0_6:
	mov	x20, x21
LBB0_7:
Lloh5:
	adrp	x21, _str_to_number.infinityW@PAGE
Lloh6:
	add	x21, x21, _str_to_number.infinityW@PAGEOFF
	mov	x0, x21
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_wcsncmp
	cbz	w0, LBB0_22
; %bb.8:
	ldrb	w8, [x20]
	cmp	w8, #48
	b.ne	LBB0_15
; %bb.9:
	ldrb	w9, [x20, #1]
	cmp	w9, #120
	b.ne	LBB0_15
; %bb.10:
	ldrsb	w0, [x20, #2]
	bl	_hex_to_int
	cmn	w0, #1
	b.eq	LBB0_40
; %bb.11:
	mov	w21, #0
	add	x20, x20, #3
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	w21, w0, w21, lsl #4
	ldrsb	w0, [x20], #1
	bl	_hex_to_int
	cmn	w0, #1
	b.ne	LBB0_12
; %bb.13:
	scvtf	d0, w21
	b	LBB0_41
LBB0_14:
Lloh7:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
	b	LBB0_42
LBB0_15:
	sxtb	w0, w8
	bl	_iswdigit
	mov	w21, #0
	cbz	x0, LBB0_18
; %bb.16:
	mov	w24, #10
	mov	x8, x20
LBB0_17:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #1]!
	ldrsb	w8, [x8]
	madd	w8, w21, w24, w8
	sub	w21, w8, #48
	bl	_iswdigit
	mov	x8, x20
	cbnz	x0, LBB0_17
LBB0_18:
	ldrb	w8, [x20]
	cmp	w8, #101
	b.eq	LBB0_26
; %bb.19:
	cmp	w8, #69
	b.eq	LBB0_26
; %bb.20:
	cmp	w8, #46
	b.ne	LBB0_36
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20, #1]!
	bl	_iswdigit
	cbnz	x0, LBB0_21
	b	LBB0_36
LBB0_22:
Lloh9:
	adrp	x0, _str_to_number.infinityW@PAGE
Lloh10:
	add	x0, x0, _str_to_number.infinityW@PAGEOFF
	bl	_ARRAY_SIZE
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x9, w0
	ldrb	w8, [x20, x9]
	cbz	w8, LBB0_30
; %bb.23:
	add	x9, x9, x20
	add	x20, x9, #1
LBB0_24:                                ; =>This Inner Loop Header: Depth=1
	sxtb	w0, w8
	bl	_iswspace
	cbz	x0, LBB0_29
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	ldrb	w8, [x20], #1
	cbnz	w8, LBB0_24
	b	LBB0_30
LBB0_26:
	ldr	x24, [x23]
	mov	x23, x20
	ldrb	w8, [x23, #1]!
	cmp	w8, #43
	b.eq	LBB0_31
; %bb.27:
	cmp	w8, #45
	b.ne	LBB0_32
; %bb.28:
	add	x23, x20, #2
Lloh11:
	adrp	x8, _TRUE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh13:
	ldr	x24, [x8]
	b	LBB0_32
LBB0_29:
	ldurb	w8, [x20, #-1]
	cbnz	w8, LBB0_38
LBB0_30:
Lloh14:
	adrp	x8, _INFINITY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _INFINITY@GOTPAGEOFF]
Lloh16:
	ldr	d0, [x8]
	fneg	d1, d0
	cmp	x22, #0
	fcsel	d0, d0, d1, eq
	b	LBB0_41
LBB0_31:
	add	x23, x20, #2
LBB0_32:
	ldrsb	w0, [x23]
	bl	_iswdigit
	mov	w20, #0
	cbz	x0, LBB0_35
; %bb.33:
	mov	w25, #10
	mov	x8, x23
LBB0_34:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x23, #1]!
	ldrsb	w8, [x8]
	madd	w8, w20, w25, w8
	sub	w20, w8, #48
	bl	_iswdigit
	mov	x8, x23
	cbnz	x0, LBB0_34
LBB0_35:
	cmp	x24, #0
	cneg	w1, w20, ne
	mov	w0, #10
	bl	_pow
	mul	w21, w0, w21
	mov	x20, x23
LBB0_36:                                ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x20], #1
	bl	_iswspace
	cbnz	x0, LBB0_36
; %bb.37:
	ldurb	w8, [x20, #-1]
	cbz	w8, LBB0_39
LBB0_38:
Lloh17:
	adrp	x8, _NAN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NAN@GOTPAGEOFF]
Lloh19:
	ldr	d0, [x8]
	b	LBB0_41
LBB0_39:
	cmp	x22, #0
	cneg	w8, w21, ne
	scvtf	d0, w8
	b	LBB0_41
LBB0_40:
	movi	d0, #0000000000000000
LBB0_41:
	str	d0, [x19]
Lloh20:
	adrp	x8, _S_OK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
LBB0_42:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.section	__TEXT,__const
_str_to_number.infinityW:               ; @str_to_number.infinityW
	.ascii	"Infinity"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_NAN,8,3                        ; @NAN
	.comm	_INFINITY,8,3                   ; @INFINITY
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_str_to_number
.subsections_via_symbols
