// File: /workspace/github_cpp_makefile_star2_O3/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
movq %rcx, 0x18(%rsp)
leaq 0x58(%rdi), %rbp
movq %rbp, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movb %al, 0x58(%rdi)
movq (%rsi), %r13
cmpq %rdx, %r13
je 0x4cd1
movq %rsi, %r14
movsbl (%r13), %ebx
leal -0x30(%rbx), %eax
cmpl $0xa, %eax
jae 0x4d05
movq %rdx, %r12
movq %rdi, %r15
movq %r13, %rdi
movq %rdx, %rsi
callq 0x494b
testb %al, %al
je 0x4acb
cmpb $0x30, %bl
jne 0x4b04
leaq 0x1(%r13), %rax
cmpq %r12, %rax
je 0x4b04
cmpb $0x78, (%rax)
jne 0x4b04
addq $0x2, %r13
movq %r13, (%r14)
leaq 0x20(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x453e
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 0x4b80
jmp 0x4b8d
cmpb $0x30, %bl
jne 0x4ba0
leaq 0x1(%r13), %rax
movq %rax, (%r14)
cmpq %r12, %rax
je 0x4c2d
cmpb $0x78, (%rax)
jne 0x4c2d
addq $0x2, %r13
movq %r13, (%r14)
movq %r14, %rdi
movq %r12, %rsi
callq 0x414a
jmp 0x4c38
movq %r14, %rdi
movq %r12, %rsi
callq 0x473c
leaq 0x50(%rsp), %rdi
movl $0xa, -0x30(%rdi)
xorl %eax, %eax
movb %al, -0x2c(%rdi)
movq %rax, -0x28(%rdi)
movb $0x1, -0x20(%rdi)
movq $-0x1, 0x10(%rdi)
leaq 0x68(%rsp), %r13
leaq 0x78(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq %rax, -0x8(%rbx)
movb %al, (%rbx)
movl $0x0, -0x28(%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 0x4b8d
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x4447
jmp 0x4cbc
xorl %ecx, %ecx
movsbl (%r13), %eax
addl $-0x30, %eax
cmpl $0x9, %eax
ja 0x4bd0
leaq (%rcx,%rcx,4), %rax
leaq 0x1(%r13), %rdx
movq %rdx, (%r14)
movb (%r13), %cl
addb $-0x30, %cl
movzbl %cl, %ecx
leaq (%rcx,%rax,2), %rcx
movq %rdx, %r13
cmpq %r12, %rdx
jne 0x4ba2
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 0x4c93
movq %r14, %rdi
movq %r12, %rsi
callq 0x41c7
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 0x4cae
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %r15, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x447d
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 0xee6c(%rip), %rsi      # 0x13b51
movq %rax, %rdi
callq 0x23a0
movq 0x152e4(%rip), %rsi     # 0x19fd8
movq 0x152c5(%rip), %rdx     # 0x19fc0
movq %r15, %rdi
callq 0x2330
jmp 0x4d7b
movl $0x10, %edi
callq 0x20e0
movq %rax, %r15
leaq 0xa8(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xee4c(%rip), %rsi      # 0x13b72
leaq 0xee5a(%rip), %rdx      # 0x13b87
leaq 0x98(%rsp), %rdi
callq 0x10b2e
movq (%r14), %rax
movsbl (%rax), %edx
leaq 0x20(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0xed69
movb $0x1, %r13b
leaq 0x20(%rsp), %rsi
movq %r15, %rdi
callq 0x2350
xorl %r13d, %r13d
movq 0x1526c(%rip), %rsi     # 0x19fd8
movq 0x1524d(%rip), %rdx     # 0x19fc0
movq %r15, %rdi
callq 0x2330
jmp 0x4de3
movq %rax, %r14
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4d9b
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x4db8
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x21d0
testb %r13b, %r13b
jne 0x4deb
jmp 0x4df3
movq %rax, %r14
movq 0x98(%rsp), %rdi
cmpq %r12, %rdi
je 0x4deb
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x4deb
jmp 0x4de8
movq %rax, %r14
jmp 0x4df3
movq %rax, %r14
movq %r15, %rdi
callq 0x2160
movq 0x18(%rsp), %rax
movq (%rax), %rdi
cmpq %rbp, %rdi
je 0x4e0c
movq (%rbp), %rsi
incq %rsi
callq 0x21d0
movq %r14, %rdi
callq 0x2360