// File: /workspace/github_cpp_makefile_star2_O2/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
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2870
movq (%r14), %r12
cmpq %r15, %r12
je 0x4472
movsbl (%r12), %r13d
leal -0x30(%r13), %eax
cmpl $0xa, %eax
jae 0x44a4
movq %r12, %rdi
movq %r15, %rsi
callq 0x427d
testb %al, %al
je 0x4378
pushq $0x30
popq %rdx
pushq $0x78
popq %rcx
movq %r14, %rdi
movq %r15, %rsi
callq 0x3ea2
testb %al, %al
je 0x43a4
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3ec8
jmp 0x43bf
cmpb $0x30, %r13b
jne 0x43e4
leaq 0x1(%r12), %rax
movq %rax, (%r14)
cmpq %r15, %rax
je 0x43f1
cmpb $0x78, (%rax)
jne 0x43f1
addq $0x2, %r12
movq %r12, (%r14)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3bc6
jmp 0x43fc
movq %r14, %rdi
movq %r15, %rsi
callq 0x4095
fstpt (%rsp)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
callq 0x2904
movq %rbx, %rdi
movq %r12, %rsi
callq 0xb222
leaq 0x68(%rsp), %rdi
callq 0x2408
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3d85
jmp 0x445d
movq %r14, %rdi
movq %r15, %rsi
callq 0x3c85
jmp 0x43fc
movq %r14, %rdi
movq %r15, %rsi
callq 0x3c42
leaq 0x68(%rsp), %r12
movl $0x9, -0x48(%r12)
xorl %ecx, %ecx
movb %cl, -0x44(%r12)
fldz
fstpt 0x40(%rsp)
andl $0x0, -0x18(%r12)
orq $-0x1, -0x8(%r12)
leaq 0x78(%rsp), %rdx
movq %rdx, -0x10(%rdx)
andq $0x0, -0x8(%rdx)
movb %cl, (%rdx)
movq %rax, -0x50(%rdx)
movb %cl, -0x48(%rdx)
leaq 0x20(%rsp), %rsi
movq %rbx, %rdi
callq 0xb222
movq %r12, %rdi
callq 0x2408
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3dbb
movq %rbx, %rax
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %r15
leaq 0xb6cd(%rip), %rsi      # 0xfb51
movq %rax, %rdi
callq 0x23a0
movq 0x13b45(%rip), %rsi     # 0x17fd8
movq 0x13b26(%rip), %rdx     # 0x17fc0
movq %r15, %rdi
callq 0x2340
jmp 0x4508
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %r15
leaq 0xb6bc(%rip), %rsi      # 0xfb72
leaq 0x98(%rsp), %rdi
leaq 0x1f(%rsp), %rdx
callq 0xb1b8
movq (%r14), %rax
movsbl (%rax), %edx
leaq 0x20(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0xb200
movb $0x1, %bpl
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x2360
xorl %ebp, %ebp
movq 0x13adf(%rip), %rsi     # 0x17fd8
movq 0x13ac0(%rip), %rdx     # 0x17fc0
movq %r15, %rdi
callq 0x2340
jmp 0x4535
movq %rax, %r14
leaq 0x20(%rsp), %rdi
callq 0x2408
jmp 0x451f
movq %rax, %r14
movb $0x1, %bpl
leaq 0x98(%rsp), %rdi
callq 0x2408
testb %bpl, %bpl
jne 0x453d
jmp 0x4545
jmp 0x453a
movq %rax, %r14
jmp 0x4545
movq %rax, %r14
movq %r15, %rdi
callq 0x2160
addq $0x48, %rbx
movq %rbx, %rdi
callq 0x2408
movq %r14, %rdi
callq 0x2370