	.file	"extr_jsutils.c_str_to_number.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	str_to_number, @function
str_to_number:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r13, QWORD PTR FALSE[rip]
	call	jsstr_flatten@PLT
	mov	rbx, rax
	test	rax, rax
	jne	.L2
	jmp	.L47
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
.L2:
	movsx	edi, BYTE PTR [rbx]
	call	iswspace@PLT
	test	rax, rax
	jne	.L4
	movzx	eax, BYTE PTR [rbx]
	cmp	al, 45
	je	.L48
	cmp	al, 43
	sete	al
	movzx	eax, al
	add	rbx, rax
.L6:
	lea	rdi, infinityW.1952[rip]
	call	ARRAY_SIZE@PLT
	lea	rsi, infinityW.1952[rip]
	mov	rdi, rbx
	mov	edx, eax
	call	wcsncmp@PLT
	test	eax, eax
	je	.L49
	movsx	edi, BYTE PTR [rbx]
	cmp	dil, 48
	je	.L50
.L13:
	xor	ebp, ebp
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L17:
	movsx	eax, BYTE PTR [rbx]
	lea	edx, 0[rbp+rbp*4]
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	lea	ebp, -48[rax+rdx*2]
.L16:
	call	iswdigit@PLT
	test	rax, rax
	jne	.L17
	movsx	edi, BYTE PTR [rbx]
	mov	eax, edi
	and	eax, -33
	cmp	al, 69
	je	.L51
	cmp	dil, 46
	jne	.L28
	jmp	.L27
	.p2align 4,,10
	.p2align 3
.L29:
	add	rbx, 1
.L45:
	movsx	edi, BYTE PTR [rbx]
.L28:
	call	iswspace@PLT
	test	rax, rax
	jne	.L29
	cmp	BYTE PTR [rbx], 0
	mov	eax, DWORD PTR S_OK[rip]
	jne	.L52
	mov	edx, ebp
	pxor	xmm0, xmm0
	neg	edx
	test	r13, r13
	cmovne	ebp, edx
	cvtsi2sd	xmm0, ebp
	movsd	QWORD PTR [r12], xmm0
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L27:
	.cfi_restore_state
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	call	iswdigit@PLT
	test	rax, rax
	jne	.L27
	jmp	.L45
	.p2align 4,,10
	.p2align 3
.L51:
	movsx	edi, BYTE PTR 1[rbx]
	cmp	dil, 45
	je	.L53
	mov	r14, QWORD PTR FALSE[rip]
	cmp	dil, 43
	je	.L54
	add	rbx, 1
.L20:
	xor	r15d, r15d
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L23:
	movsx	eax, BYTE PTR [rbx]
	lea	edx, [r15+r15*4]
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	lea	r15d, -48[rax+rdx*2]
.L22:
	call	iswdigit@PLT
	test	rax, rax
	jne	.L23
	mov	eax, r15d
	mov	edi, 10
	neg	eax
	test	r14, r14
	cmovne	r15d, eax
	mov	esi, r15d
	call	pow@PLT
	movsx	edi, BYTE PTR [rbx]
	imul	ebp, eax
	jmp	.L28
	.p2align 4,,10
	.p2align 3
.L50:
	cmp	BYTE PTR 1[rbx], 120
	jne	.L13
	add	rbx, 2
	xor	ebp, ebp
	jmp	.L14
	.p2align 4,,10
	.p2align 3
.L15:
	sal	ebp, 4
	add	rbx, 1
	add	ebp, eax
.L14:
	movsx	edi, BYTE PTR [rbx]
	call	hex_to_int@PLT
	cmp	eax, -1
	jne	.L15
	pxor	xmm0, xmm0
	mov	eax, DWORD PTR S_OK[rip]
	cvtsi2sd	xmm0, ebp
	movsd	QWORD PTR [r12], xmm0
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L48:
	mov	r13, QWORD PTR TRUE[rip]
	add	rbx, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L52:
	movsd	xmm0, QWORD PTR NAN[rip]
	movsd	QWORD PTR [r12], xmm0
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L54:
	.cfi_restore_state
	movsx	edi, BYTE PTR 2[rbx]
	add	rbx, 2
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L47:
	mov	eax, DWORD PTR E_OUTOFMEMORY[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L49:
	.cfi_restore_state
	lea	rdi, infinityW.1952[rip]
	call	ARRAY_SIZE@PLT
	cdqe
	add	rbx, rax
	movsx	edi, BYTE PTR [rbx]
	test	dil, dil
	jne	.L8
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	movsx	edi, BYTE PTR 1[rbx]
	add	rbx, 1
	test	dil, dil
	je	.L11
.L8:
	call	iswspace@PLT
	test	rax, rax
	jne	.L10
	cmp	BYTE PTR [rbx], 0
	je	.L11
	movsd	xmm0, QWORD PTR NAN[rip]
	movsd	QWORD PTR [r12], xmm0
.L12:
	mov	eax, DWORD PTR S_OK[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L53:
	.cfi_restore_state
	movsx	edi, BYTE PTR 2[rbx]
	mov	r14, QWORD PTR TRUE[rip]
	add	rbx, 2
	jmp	.L20
	.p2align 4,,10
	.p2align 3
.L11:
	movsd	xmm0, QWORD PTR INFINITY[rip]
	test	r13, r13
	je	.L33
	xorpd	xmm0, XMMWORD PTR .LC0[rip]
.L33:
	movsd	QWORD PTR [r12], xmm0
	jmp	.L12
	.cfi_endproc
.LFE0:
	.size	str_to_number, .-str_to_number
	.section	.rodata
	.align 8
	.type	infinityW.1952, @object
	.size	infinityW.1952, 8
infinityW.1952:
	.ascii	"Infinity"
	.comm	TRUE,8,8
	.comm	S_OK,4,4
	.comm	NAN,8,8
	.comm	INFINITY,8,8
	.comm	FALSE,8,8
	.comm	E_OUTOFMEMORY,4,4
	.section	.rodata.cst16,"aM",@progbits,16
	.align 16
.LC0:
	.long	0
	.long	-2147483648
	.long	0
	.long	0
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_jsutils.c_str_to_number.c"
	.text
	.global	__aeabi_i2d
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str_to_number, %function
str_to_number:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r7, .L58
	mov	r6, r1
	ldr	r8, [r7]
	bl	jsstr_flatten
	subs	r5, r0, #0
	beq	.L50
.L3:
	mov	r9, r5
	ldrb	r0, [r5], #1	@ zero_extendqisi2
	bl	iswspace
	subs	r4, r0, #0
	bne	.L3
	ldrb	r3, [r9]	@ zero_extendqisi2
	cmp	r3, #45
	beq	.L51
	cmp	r3, #43
	moveq	r9, r5
.L6:
	ldr	r0, .L58+4
	bl	ARRAY_SIZE
	ldr	r1, .L58+4
	mov	r2, r0
	mov	r0, r9
	bl	wcsncmp
	cmp	r0, #0
	beq	.L52
	ldrb	r0, [r9]	@ zero_extendqisi2
	cmp	r0, #48
	bne	.L16
	ldrb	r3, [r9, #1]	@ zero_extendqisi2
	cmp	r3, #120
	addeq	r9, r9, #1
	beq	.L14
	bl	iswdigit
	subs	r5, r0, #0
	beq	.L53
.L17:
	ldrb	r3, [r9], #1	@ zero_extendqisi2
	add	r4, r4, r4, lsl #2
	sub	r3, r3, #48
	ldrb	r0, [r9]	@ zero_extendqisi2
	add	r4, r3, r4, lsl #1
.L16:
	bl	iswdigit
	subs	r5, r0, #0
	bne	.L17
.L53:
	ldrb	r0, [r9]	@ zero_extendqisi2
	and	r3, r0, #223
	cmp	r3, #69
	beq	.L54
	cmp	r0, #46
	bne	.L27
	b	.L55
.L28:
	ldrb	r0, [r9, #1]!	@ zero_extendqisi2
.L27:
	bl	iswspace
	cmp	r0, #0
	bne	.L28
	ldrb	r2, [r9]	@ zero_extendqisi2
	ldr	r3, .L58+8
	cmp	r2, #0
	ldr	r5, [r3]
	bne	.L56
	cmp	r8, #0
	rsbne	r4, r4, #0
	mov	r0, r4
	bl	__aeabi_i2d
	stm	r6, {r0-r1}
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L54:
	ldrb	r0, [r9, #1]	@ zero_extendqisi2
	cmp	r0, #45
	beq	.L57
	cmp	r0, #43
	ldr	r7, [r7]
	addne	r9, r9, #1
	ldrbeq	r0, [r9, #2]	@ zero_extendqisi2
	addeq	r9, r9, #2
	b	.L22
.L23:
	ldrb	r0, [r9], #1	@ zero_extendqisi2
	sub	r0, r0, #48
	add	r5, r0, r3, lsl #1
	ldrb	r0, [r9]	@ zero_extendqisi2
.L22:
	bl	iswdigit
	cmp	r0, #0
	add	r3, r5, r5, lsl #2
	bne	.L23
	cmp	r7, #0
	rsbne	r5, r5, #0
	mov	r1, r5
	mov	r0, #10
	bl	pow
	mov	r3, r0
	ldrb	r0, [r9]	@ zero_extendqisi2
	mul	r4, r3, r4
	b	.L27
.L15:
	add	r4, r0, r4, lsl #4
.L14:
	ldrb	r0, [r9, #1]!	@ zero_extendqisi2
	bl	hex_to_int
	cmn	r0, #1
	bne	.L15
	mov	r0, r4
	bl	__aeabi_i2d
	ldr	r3, .L58+8
	stm	r6, {r0-r1}
	ldr	r5, [r3]
	b	.L1
.L51:
	ldr	r3, .L58+12
	mov	r9, r5
	ldr	r8, [r3]
	b	.L6
.L56:
	ldr	r3, .L58+16
	mov	r0, r5
	ldmia	r3, {r2-r3}
	stm	r6, {r2-r3}
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L50:
	ldr	r3, .L58+20
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L52:
	ldr	r0, .L58+4
	bl	ARRAY_SIZE
	mov	r3, r0
	ldrb	r0, [r9, r0]	@ zero_extendqisi2
	add	r9, r9, r3
	cmp	r0, #0
	bne	.L8
	b	.L11
.L10:
	ldrb	r0, [r9, #1]!	@ zero_extendqisi2
	cmp	r0, #0
	beq	.L11
.L8:
	bl	iswspace
	cmp	r0, #0
	bne	.L10
	ldrb	r3, [r9]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L11
	ldr	r3, .L58+16
	ldmia	r3, {r2-r3}
	stm	r6, {r2-r3}
.L12:
	ldr	r3, .L58+8
	ldr	r5, [r3]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L57:
	ldr	r3, .L58+12
	ldrb	r0, [r9, #2]	@ zero_extendqisi2
	ldr	r7, [r3]
	add	r9, r9, #2
	b	.L22
.L55:
	add	r5, r9, #1
.L26:
	mov	r9, r5
	ldrb	r0, [r5], #1	@ zero_extendqisi2
	bl	iswdigit
	cmp	r0, #0
	bne	.L26
	ldrb	r0, [r9]	@ zero_extendqisi2
	b	.L27
.L11:
	ldr	r3, .L58+24
	cmp	r8, #0
	ldm	r3, {r0, r1}
	addne	r1, r1, #-2147483648
	mov	r2, r0
	mov	r3, r1
	stm	r6, {r2-r3}
	b	.L12
.L59:
	.align	2
.L58:
	.word	FALSE
	.word	.LANCHOR0
	.word	S_OK
	.word	TRUE
	.word	NAN
	.word	E_OUTOFMEMORY
	.word	INFINITY
	.size	str_to_number, .-str_to_number
	.comm	TRUE,4,4
	.comm	S_OK,4,4
	.comm	NAN,8,8
	.comm	INFINITY,8,8
	.comm	FALSE,4,4
	.comm	E_OUTOFMEMORY,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
	.type	infinityW.4236, %object
	.size	infinityW.4236, 8
infinityW.4236:
	.ascii	"Infinity"
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
