// File: /workspace/github_cpp_makefile_star2_O2/Eronana[P]strawberry/src/lexer.cpp
// Function: Lexer::skipComment(Token&)
bool Lexer::skipComment(Token &t)
{
    skipWhiteSpace();
    if (lookHead() != '/') return true;
    if (lookHead(1) == '/')
    {
        for (clearChar(2); lookHead() != CHAR_EOF && lookHead() != '\n'; clearChar());
        if (lookHead() == CHAR_EOF) return true;
        line_number++;
        col_number = 0;
        clearChar();
        return skipComment(t);
    }

    else if (lookHead(1) == '*')
    {
        int comment_nest = 1;
        for (clearChar(2); comment_nest; clearChar())
        {
            switch (lookHead())
            {
            case CHAR_EOF:
                t = createToken(TOKEN_ERROR, 0, "Unterminated comment");
                return false;
            case '\n':
                line_number++;
                col_number = 0;
                break;
            case '/':
                if (lookHead(1) == '*')
                {
                    comment_nest++;
                    clearChar();
                }
                else if (lookHead(1) != '/') clearChar();
                break;
            case '*':
                if (lookHead(1) == '/')
                {
                    comment_nest--;
                    clearChar();
                }
                else if (lookHead(1) != '*') clearChar();
                break;
            }
        }
        return skipComment(t);
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %rbx
movq %rdi, %r14
pushq $0x1
popq %rbp
pushq $0x2
popq %r12
movq %r14, %rdi
callq 0x18f4c
movq %r14, %rdi
xorl %esi, %esi
callq 0x18d6a
movb $0x1, %r15b
cmpb $0x2f, %al
jne 0x19138
movq %r14, %rdi
movl %ebp, %esi
callq 0x18d6a
cmpb $0x2f, %al
jne 0x1902d
movl %r12d, %esi
movq %r14, %rdi
callq 0x18dc4
movq %r14, %rdi
xorl %esi, %esi
callq 0x18d6a
cmpb $-0x1, %al
je 0x19006
movq %r14, %rdi
xorl %esi, %esi
callq 0x18d6a
movl %ebp, %esi
cmpb $0xa, %al
jne 0x18fe0
movq %r14, %rdi
xorl %esi, %esi
callq 0x18d6a
cmpb $-0x1, %al
je 0x19138
incl 0x28(%r14)
andl $0x0, 0x2c(%r14)
movq %r14, %rdi
movl %ebp, %esi
callq 0x18dc4
jmp 0x18fb2
movq %r14, %rdi
movl %ebp, %esi
callq 0x18d6a
cmpb $0x2a, %al
jne 0x19138
movl %r12d, %esi
movl %ebp, %r15d
movq %r14, %rdi
callq 0x18dc4
testl %r15d, %r15d
je 0x18fb2
movq %r14, %rdi
xorl %esi, %esi
callq 0x18d6a
cmpb $0xa, %al
je 0x1908f
movzbl %al, %eax
cmpl $0x2a, %eax
je 0x1907c
cmpl $0x2f, %eax
je 0x1909c
movl %ebp, %esi
cmpl $0xff, %eax
jne 0x19045
jmp 0x190e6
movq %r14, %rdi
movl %ebp, %esi
callq 0x18d6a
cmpb $0x2f, %al
jne 0x190af
decl %r15d
jmp 0x190d5
incl 0x28(%r14)
andl $0x0, 0x2c(%r14)
movl %ebp, %esi
jmp 0x19045
movq %r14, %rdi
movl %ebp, %esi
callq 0x18d6a
cmpb $0x2a, %al
jne 0x190c1
incl %r15d
jmp 0x190d5
movq %r14, %rdi
movl %ebp, %esi
callq 0x18d6a
movl %ebp, %esi
cmpb $0x2a, %al
je 0x19045
jmp 0x190d5
movq %r14, %rdi
movl %ebp, %esi
callq 0x18d6a
movl %ebp, %esi
cmpb $0x2f, %al
je 0x19045
movq %r14, %rdi
movl %ebp, %esi
callq 0x18dc4
movl %ebp, %esi
jmp 0x19045
leaq 0x52f7(%rip), %rsi      # 0x1e3e4
leaq 0x10(%rsp), %r15
leaq 0xf(%rsp), %rdx
movq %r15, %rdi
callq 0x9c4a
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x18f12
leaq 0x30(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x19a04
movq %r14, %rdi
callq 0x77da
leaq 0x10(%rsp), %rdi
callq 0x6130
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x6130
movq %rbx, %rdi
callq 0x6460