// File: /workspace/github_cpp_makefile_star2_O3/joncampbell123[P]haxcc/haxpp.cpp
// Function: read_line(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, FileSource&)
bool read_line(string &line,FileSource &src) {
    int c;

    line.clear();
    while (!src.eof()) {
        c = src.getc();

        if (c == EOF)
            break;
        else if (c == '\n')
            break;
        else if (c == '\\')
            read_line_esc(line,src);
        else if (c == '\'')
            read_line_quote(line,src,c);
        else if (c == '/') {
            int c2 = src.getc();
            if (c2 == EOF) {
                line += c;
            }
            else if (c2 == '/') { /* C++ // comment */
                if (!read_line_skip_cpp_comment(src))
                    break;
            }
            else if (c2 == '*') { /* C comment like this */
                read_line_skip_c_comment(src);
            }
            else {
                line += c;
                line += c2;
            }
        }
        else
            line += c;
    }

    if (line.empty() && src.eof())
        return false;

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq $0x0, 0x8(%rdi)
movq (%rdi), %rax
movb $0x0, (%rax)
movq (%rsi), %rdi
testq %rdi, %rdi
je 0x31c8
callq 0x22c0
testl %eax, %eax
je 0x31f1
cmpq $0x0, 0x8(%r14)
je 0x31d3
movb $0x1, %al
jmp 0x31e6
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x31e4
callq 0x22c0
testl %eax, %eax
je 0x31cf
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x18(%rsp), %r15
movq %rbx, %rdi
callq 0x2d98
cmpl $0x2e, %eax
jle 0x323f
cmpl $0x2f, %eax
je 0x326e
cmpl $0x5c, %eax
jne 0x32ac
movq %rbx, %rdi
callq 0x2d98
cmpl $-0x1, %eax
je 0x32b7
movl %eax, %ebp
movb $0x20, %al
cmpl $0xa, %ebp
je 0x323a
movq %r14, %rdi
movl $0x5c, %esi
callq 0x2190
movl %ebp, %eax
movsbl %al, %esi
jmp 0x32af
cmpl $0x27, %eax
jne 0x329a
movq %r14, %rdi
movl $0x27, %esi
callq 0x2190
movq %rbx, %rdi
callq 0x2d98
movl %eax, %ebp
movsbl %bpl, %esi
movq %r14, %rdi
callq 0x2190
cmpl $0x27, %ebp
jne 0x3251
jmp 0x32b7
movq %rbx, %rdi
callq 0x2d98
cmpl $0x2f, %eax
je 0x32df
movl %eax, %ebp
cmpl $0x2a, %eax
je 0x32d5
movq %r14, %rdi
movl $0x2f, %esi
cmpl $-0x1, %ebp
je 0x32b2
callq 0x2190
movsbl %bpl, %esi
jmp 0x32af
cmpl $-0x1, %eax
je 0x31c8
cmpl $0xa, %eax
je 0x31c8
movsbl %al, %esi
movq %r14, %rdi
callq 0x2190
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x31c8
callq 0x22c0
testl %eax, %eax
je 0x31f6
jmp 0x31c8
movq %rbx, %rdi
callq 0x336f
jmp 0x32b7
movq %r15, 0x8(%rsp)
movq $0x0, 0x10(%rsp)
movb $0x0, 0x18(%rsp)
movq %rbx, %rdi
callq 0x2d98
cmpl $0x5c, %eax
je 0x330b
cmpl $-0x1, %eax
je 0x3318
cmpl $0xa, %eax
jne 0x32f2
jmp 0x331c
movq %rbx, %rdi
callq 0x2d98
cmpl $0xa, %eax
jne 0x32f2
xorl %ebp, %ebp
jmp 0x331f
movb $0x1, %bpl
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3336
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq (%rbx), %rdi
testq %rdi, %rdi
sete %al
orb %al, %bpl
je 0x32c3
jmp 0x31c8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x3367
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2360