// File: /workspace/github_cpp_makefile_star2_O1/joncampbell123[P]haxcc/haxpp.cpp
// Function: parse_number(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>)
token parse_number(string::iterator &li,const string::iterator lie) {
    token r;

    /* at this point isdigit(*li) */
    if (li == lie) throw invalid_argument("expected number, got end of line");
    if (!isdigit(*li)) throw invalid_argument(string("expected number, got ") + *li);

    if (parse_number_looks_like_float(li,lie)) {
        if (strit_next_match_inc(li,lie,'0','x'))
            r = parse_hex_number_float_sub(li,lie);
        else
            r = parse_dec_number_float_sub(li,lie);

        parse_float_suffixes(r,li,lie);
    }
    else {
        if (strit_next_match_inc(li,lie,'0')) {
            if (strit_next_match_inc(li,lie,'x')) /* hexadecimal integer */
                r = parse_hex_number(li,lie);
            else /* octal */
                r = parse_oct_number(li,lie);
        }
        else { /* integer */
            r = parse_dec_number(li,lie);
        }

        parse_int_suffixes(r,li,lie);
    }

    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
xorl %eax, %eax
movl %eax, (%rdi)
movb %al, 0x4(%rdi)
movq %rax, 0x8(%rdi)
movb $0x1, 0x10(%rdi)
fldz
fstpt 0x20(%rdi)
movl %eax, 0x30(%rdi)
movq $-0x1, 0x40(%rdi)
leaq 0x48(%rdi), %rcx
leaq 0x58(%rdi), %rbp
movq %rbp, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movb %al, 0x58(%rdi)
movq (%rsi), %r13
cmpq %rdx, %r13
movq %rcx, 0x18(%rsp)
je 0x4e11
movq %rsi, %r14
movsbl (%r13), %ebx
leal -0x30(%rbx), %eax
cmpl $0xa, %eax
jae 0x4e45
movq %rdx, %r12
movq %rdi, %r15
movq %r13, %rdi
movq %rdx, %rsi
callq 0x4a35
testb %al, %al
je 0x4c03
movq (%r14), %rax
cmpq %r12, %rax
je 0x4c3c
cmpb $0x30, (%rax)
jne 0x4c3c
leaq 0x1(%rax), %rcx
cmpq %r12, %rcx
je 0x4c3c
cmpb $0x78, (%rcx)
jne 0x4c3c
addq $0x2, %rax
movq %rax, (%r14)
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x45e1
movl $0x9, %ecx
movq %r15, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
leaq 0x68(%rsp), %r13
movq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x2250
movq (%r13), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
jne 0x4cbd
jmp 0x4cca
cmpb $0x30, %bl
jne 0x4cdd
leaq 0x1(%r13), %rax
movq %rax, (%r14)
cmpq %r12, %rax
je 0x4d6d
cmpb $0x78, (%rax)
jne 0x4d6d
addq $0x2, %r13
movq %r13, (%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x417e
jmp 0x4d78
movq %r14, %rdi
movq %r12, %rsi
callq 0x47e4
leaq 0x50(%rsp), %rdi
movl $0xa, -0x30(%rdi)
xorl %eax, %eax
movb %al, -0x2c(%rdi)
movq %rax, -0x28(%rdi)
movb $0x1, -0x20(%rdi)
fldz
fstpt 0x40(%rsp)
movl $0x0, (%rdi)
movq $-0x1, 0x10(%rdi)
leaq 0x68(%rsp), %r13
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq %rax, -0x8(%rbx)
movb %al, (%rbx)
fstpt (%rsp)
callq 0x22d0
fstpt 0x40(%rsp)
leaq 0x20(%rsp), %rbp
movl $0x9, %ecx
movq %r15, %rdi
movq %rbp, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x18(%rsp), %rdi
movq %r13, %rsi
callq 0x2250
movq 0x48(%rbp), %rdi
cmpq %rbx, %rdi
je 0x4cca
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x449a
jmp 0x4dfc
movq (%r14), %rax
xorl %ecx, %ecx
cmpq %r12, %rax
je 0x4d10
movsbl (%rax), %edx
addl $-0x30, %edx
cmpl $0x9, %edx
ja 0x4d10
leaq (%rcx,%rcx,4), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r14)
movb (%rax), %al
addb $-0x30, %al
movzbl %al, %eax
leaq (%rax,%rcx,2), %rcx
movq %rdx, %rax
cmpq %r12, %rdx
jne 0x4ce7
leaq 0x68(%rsp), %rax
movl $0x9, -0x48(%rax)
xorl %edx, %edx
movb %dl, -0x44(%rax)
fldz
fstpt 0x40(%rsp)
movl $0x0, -0x18(%rax)
movq $-0x1, -0x8(%rax)
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb %dl, (%rbx)
movq %rcx, -0x50(%rbx)
movb %dl, -0x48(%rbx)
leaq 0x20(%rsp), %r13
movl $0x9, %ecx
movq %r15, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x18(%rsp), %rdi
movq %rax, %rsi
jmp 0x4dd3
movq %r14, %rdi
movq %r12, %rsi
callq 0x41fb
leaq 0x68(%rsp), %rdx
movl $0x9, -0x48(%rdx)
xorl %ecx, %ecx
movb %cl, -0x44(%rdx)
fldz
fstpt 0x40(%rsp)
movl $0x0, -0x18(%rdx)
movq $-0x1, -0x8(%rdx)
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq $0x0, -0x8(%rbx)
movb %cl, (%rbx)
movq %rax, -0x50(%rbx)
movb %cl, -0x48(%rbx)
leaq 0x20(%rsp), %r13
movl $0x9, %ecx
movq %r15, %rdi
movq %r13, %rsi
rep  movsq (%rsi), %es:(%rdi)
movq 0x18(%rsp), %rdi
movq %rdx, %rsi
callq 0x2250
movq 0x48(%r13), %rdi
cmpq %rbx, %rdi
je 0x4dee
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x44fe
movq %r15, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %r15
leaq 0xec9c(%rip), %rsi      # 0x13ac1
movq %rax, %rdi
callq 0x23a0
movq 0x151a4(%rip), %rsi     # 0x19fd8
movq 0x15185(%rip), %rdx     # 0x19fc0
movq %r15, %rdi
callq 0x2330
jmp 0x4ebb
movl $0x10, %edi
callq 0x20e0
movq %rax, %r15
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xec7c(%rip), %rsi      # 0x13ae2
leaq 0xec8a(%rip), %rdx      # 0x13af7
leaq 0x98(%rsp), %rdi
callq 0x10bb4
movq (%r14), %rax
movsbl (%rax), %edx
leaq 0x20(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0xede1
movb $0x1, %r13b
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x2350
xorl %r13d, %r13d
movq 0x1512c(%rip), %rsi     # 0x19fd8
movq 0x1510d(%rip), %rdx     # 0x19fc0
movq %r15, %rdi
callq 0x2330
jmp 0x4f0f
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4ee3
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4ee3
movq %rax, %r14
movb $0x1, %r13b
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x4f08
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4f08
movq %rax, %r14
movb $0x1, %r13b
testb %r13b, %r13b
jne 0x4f17
jmp 0x4f1f
movq %rax, %r14
jmp 0x4f1f
movq %rax, %r14
movq %r15, %rdi
callq 0x2160
movq 0x18(%rsp), %rax
movq (%rax), %rdi
cmpq %rbp, %rdi
je 0x4f38
movq (%rbp), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2360