	.file	"extr_tool_paramhlp.c_str2double.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	str2double, @function
str2double:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rsi, rsi
	je	.L2
	mov	rbx, rsi
	mov	r12, rdi
	lea	rsi, 16[rsp]
	mov	rbp, rdx
	mov	QWORD PTR errno[rip], 0
	mov	rdi, rbx
	call	strtod@PLT
	mov	rax, QWORD PTR ERANGE[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L5
	pxor	xmm1, xmm1
	movsd	QWORD PTR 8[rsp], xmm0
	cvtsi2sd	xmm1, rbp
	comisd	xmm0, xmm1
	ja	.L5
	cmp	QWORD PTR 16[rsp], rbx
	je	.L2
	mov	rdi, rbx
	call	strlen@PLT
	movsd	xmm0, QWORD PTR 8[rsp]
	cdqe
	add	rbx, rax
	cmp	QWORD PTR 16[rsp], rbx
	je	.L14
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR PARAM_BAD_NUMERIC[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L15
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	eax, DWORD PTR PARAM_NUMBER_TOO_LARGE[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	eax, DWORD PTR PARAM_OK[rip]
	movsd	QWORD PTR [r12], xmm0
	jmp	.L1
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	str2double, .-str2double
	.comm	errno,8,8
	.comm	PARAM_OK,4,4
	.comm	PARAM_NUMBER_TOO_LARGE,4,4
	.comm	PARAM_BAD_NUMERIC,4,4
	.comm	ERANGE,8,8
	.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_tool_paramhlp.c_str2double.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_dcmplt
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	str2double, %function
str2double:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L16
	sub	sp, sp, #8
	subs	r4, r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L2
	mov	r3, #0
	ldr	r7, .L16+4
	mov	r8, r0
	mov	r1, sp
	mov	r0, r4
	str	r3, [r7]
	mov	r5, r2
	bl	strtod
	ldr	r3, .L16+8
	ldr	r2, [r7]
	ldr	r3, [r3]
	mov	r6, r0
	cmp	r2, r3
	mov	r7, r1
	beq	.L5
	mov	r0, r5
	bl	__aeabi_i2d
	mov	r2, r6
	mov	r3, r7
	bl	__aeabi_dcmplt
	cmp	r0, #0
	bne	.L5
	ldr	r5, [sp]
	cmp	r5, r4
	beq	.L2
	mov	r0, r4
	bl	strlen
	add	r1, r4, r0
	cmp	r5, r1
	beq	.L14
.L2:
	ldr	r3, .L16+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L16
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, .L16+16
	ldr	r0, [r3]
	b	.L1
.L14:
	ldr	r3, .L16+20
	stm	r8, {r6-r7}
	ldr	r0, [r3]
	b	.L1
.L15:
	bl	__stack_chk_fail
.L17:
	.align	2
.L16:
	.word	.LC0
	.word	errno
	.word	ERANGE
	.word	PARAM_BAD_NUMERIC
	.word	PARAM_NUMBER_TOO_LARGE
	.word	PARAM_OK
	.size	str2double, .-str2double
	.comm	errno,4,4
	.comm	PARAM_OK,4,4
	.comm	PARAM_NUMBER_TOO_LARGE,4,4
	.comm	PARAM_BAD_NUMERIC,4,4
	.comm	ERANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
