// File: /workspace/github_c_makefile_star2_O1/ccxvii[P]mujs/./jslex.c
// Function: lexnumber
static int lexnumber(js_State *J)
{
	const char *s = J->source - 1;

	if (jsY_accept(J, '0')) {
		if (jsY_accept(J, 'x') || jsY_accept(J, 'X')) {
			J->number = lexhex(J);
			return TK_NUMBER;
		}
		if (jsY_isdec(J->lexchar))
			jsY_error(J, "number with leading zero");
		if (jsY_accept(J, '.')) {
			while (jsY_isdec(J->lexchar))
				jsY_next(J);
		}
	} else if (jsY_accept(J, '.')) {
		if (!jsY_isdec(J->lexchar))
			return '.';
		while (jsY_isdec(J->lexchar))
			jsY_next(J);
	} else {
		while (jsY_isdec(J->lexchar))
			jsY_next(J);
		if (jsY_accept(J, '.')) {
			while (jsY_isdec(J->lexchar))
				jsY_next(J);
		}
	}

	if (jsY_accept(J, 'e') || jsY_accept(J, 'E')) {
		if (J->lexchar == '-' || J->lexchar == '+')
			jsY_next(J);
		if (jsY_isdec(J->lexchar))
			while (jsY_isdec(J->lexchar))
				jsY_next(J);
		else
			jsY_error(J, "missing exponent");
	}

	if (jsY_isidentifierstart(J->lexchar))
		jsY_error(J, "number with letter suffix");

	J->number = js_strtod(s, NULL);
	return TK_NUMBER;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %r14
movl 0x64(%rdi), %eax
cmpl $0x2e, %eax
je 0x21870
cmpl $0x30, %eax
jne 0x218a1
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
movl %eax, %ecx
orl $0x20, %ecx
cmpl $0x78, %ecx
jne 0x218ec
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
leal -0x3a(%rax), %ecx
cmpl $-0xb, %ecx
ja 0x217e0
andl $-0x21, %eax
addl $-0x47, %eax
cmpl $-0x6, %eax
jb 0x219b6
movl 0x64(%rbx), %eax
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
setae %dl
jb 0x21803
movl %eax, %esi
andl $-0x21, %esi
addl $-0x47, %esi
xorpd %xmm0, %xmm0
cmpl $-0x6, %esi
jb 0x2198f
xorpd %xmm0, %xmm0
xorl %ebp, %ebp
testb $0x1, %dl
je 0x21829
leal -0x61(%rax), %ecx
cmpl $0x5, %ecx
ja 0x2181b
addl $-0x57, %eax
jmp 0x21827
leal -0x41(%rax), %ecx
addl $-0x37, %eax
cmpl $0x6, %ecx
cmovael %ebp, %eax
movl %eax, %ecx
xorps %xmm1, %xmm1
cvtsi2sd %ecx, %xmm1
mulsd 0x9d30(%rip), %xmm0     # 0x2b568
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
callq 0xe5c9
movsd 0x8(%rsp), %xmm0
movl 0x64(%rbx), %eax
leal -0x30(%rax), %ecx
cmpl $0xa, %ecx
setae %dl
jb 0x21809
movl %eax, %esi
andl $-0x21, %esi
addl $-0x47, %esi
cmpl $-0x6, %esi
jae 0x21809
jmp 0x2198f
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %ecx
addl $-0x3a, %ecx
movl $0x2e, %eax
cmpl $-0xa, %ecx
jb 0x2199c
movl 0x64(%rbx), %eax
addl $-0x3a, %eax
cmpl $-0xa, %eax
jb 0x21910
movq %rbx, %rdi
callq 0xe5c9
jmp 0x2188c
movl 0x64(%rbx), %eax
leal -0x3a(%rax), %ecx
cmpl $-0xa, %ecx
jb 0x218bf
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
leal -0x3a(%rax), %ecx
cmpl $-0xb, %ecx
ja 0x218ac
cmpl $0x2e, %eax
jne 0x21910
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
addl $-0x3a, %eax
cmpl $-0xa, %eax
jb 0x21910
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
addl $-0x3a, %eax
cmpl $-0xb, %eax
ja 0x218d7
jmp 0x21910
leal -0x3a(%rax), %ecx
cmpl $-0xa, %ecx
jae 0x219bf
cmpl $0x2e, %eax
jne 0x21910
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
addl $-0x3a, %eax
cmpl $-0xa, %eax
jae 0x218fd
movl 0x64(%rbx), %eax
orl $0x20, %eax
cmpl $0x65, %eax
jne 0x2195f
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
cmpl $0x2d, %eax
je 0x21930
cmpl $0x2b, %eax
jne 0x21938
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
addl $-0x3a, %eax
cmpl $-0xa, %eax
jae 0x21954
leaq 0x12ec7(%rip), %rsi     # 0x34811
jmp 0x219ac
movq %rbx, %rdi
callq 0xe5c9
movl 0x64(%rbx), %eax
addl $-0x3a, %eax
cmpl $-0xa, %eax
jae 0x2194c
movl 0x64(%rbx), %edi
movl %edi, %eax
andl $-0x21, %eax
addl $-0x41, %eax
cmpl $0x1a, %eax
jb 0x219a5
cmpl $0x24, %edi
je 0x219a5
cmpl $0x5f, %edi
je 0x219a5
callq 0x1ca5e
testl %eax, %eax
jne 0x219a5
decq %r14
movq %r14, %rdi
xorl %esi, %esi
callq 0xc57f
movsd %xmm0, 0x80(%rbx)
movl $0x101, %eax            # imm = 0x101
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x12e76(%rip), %rsi     # 0x34822
movq %rbx, %rdi
xorl %eax, %eax
callq 0xf8dd
leaq 0x12e7f(%rip), %rsi     # 0x3483c
jmp 0x219ac
leaq 0x12e32(%rip), %rsi     # 0x347f8
jmp 0x219ac