// File: /workspace/github_c_makefile_star2_O0/jonof[P]jftekwar/jfbuild/src/scriptfile.c
// Function: parsedouble
static double parsedouble(char *ptr, char **end)
{
	int beforedecimal = 1, negative = 0, dig;
	int exposgn = 0, expo = 0;
	double num = 0.0, decpl = 0.1;
	char *p;
	
	p = ptr;
	if (*p == '-') negative = 1, p++;
	else if (*p == '+') p++;
	for (;; p++) {
		if (*p >= '0' && *p <= '9') {
			dig = *p - '0';
			if (beforedecimal) num = num * 10.0 + dig;
			else if (exposgn) expo = expo*10 + dig;
			else {
				num += (double)dig * decpl;
				decpl /= 10.0;
			}
		} else if (*p == '.') {
			if (beforedecimal) beforedecimal = 0;
			else break;
		} else if ((*p == 'E') || (*p == 'e')) {
			exposgn = 1;
			if (p[1] == '-') { exposgn = -1; p++; }
			else if (p[1] == '+') p++;
		} else break;
	}
	
	if (end) *end = p;
	if (exposgn) num *= pow(10.0,(double)(expo*exposgn));
	return negative ? -num : num;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x1, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd 0x44934(%rip), %xmm0    # 0xb3f00
movsd %xmm0, -0x38(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x40(%rbp)
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
jne 0x6f5fa
movl $0x1, -0x18(%rbp)
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6f614
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2b, %eax
jne 0x6f612
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6f614
jmp 0x6f616
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x30, %eax
jl 0x6f6b1
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x39, %eax
jg 0x6f6b1
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
subl $0x30, %eax
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x14(%rbp)
je 0x6f666
movsd -0x30(%rbp), %xmm0
cvtsi2sdl -0x1c(%rbp), %xmm1
movsd 0x448b1(%rip), %xmm2    # 0xb3f08
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
jmp 0x6f6ac
cmpl $0x0, -0x20(%rbp)
je 0x6f678
imull $0xa, -0x24(%rbp), %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x6f6aa
cvtsi2sdl -0x1c(%rbp), %xmm0
movsd -0x38(%rbp), %xmm2
movsd -0x30(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x38(%rbp), %xmm0
movsd 0x44867(%rip), %xmm1    # 0xb3f08
divsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
jmp 0x6f6ac
jmp 0x6f734
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2e, %eax
jne 0x6f6d0
cmpl $0x0, -0x14(%rbp)
je 0x6f6cc
movl $0x0, -0x14(%rbp)
jmp 0x6f6ce
jmp 0x6f747
jmp 0x6f732
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x45, %eax
je 0x6f6e8
movq -0x40(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x65, %eax
jne 0x6f72e
movl $0x1, -0x20(%rbp)
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x2d, %eax
jne 0x6f711
movl $0xffffffff, -0x20(%rbp) # imm = 0xFFFFFFFF
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6f72c
movq -0x40(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x2b, %eax
jne 0x6f72a
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6f72c
jmp 0x6f730
jmp 0x6f747
jmp 0x6f732
jmp 0x6f734
jmp 0x6f736
movq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x40(%rbp)
jmp 0x6f616
cmpq $0x0, -0x10(%rbp)
je 0x6f759
movq -0x40(%rbp), %rcx
movq -0x10(%rbp), %rax
movq %rcx, (%rax)
cmpl $0x0, -0x20(%rbp)
je 0x6f781
movl -0x24(%rbp), %eax
imull -0x20(%rbp), %eax
cvtsi2sd %eax, %xmm1
movsd 0x44796(%rip), %xmm0    # 0xb3f08
callq 0x6350
mulsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x30(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x6f7aa
movsd -0x30(%rbp), %xmm0
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
movsd %xmm0, -0x48(%rbp)
jmp 0x6f7b4
movsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x48(%rbp)
movsd -0x48(%rbp), %xmm0
addq $0x50, %rsp
popq %rbp
retq
nop