// File: /workspace/github_cpp_makefile_star2_O3/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 $0x70, %rsp
movq %rsi, %rbx
movq %rdi, %r14
callq 0x1b9aa
movq %r14, %rdi
xorl %esi, %esi
callq 0x1b732
movb $0x1, %bpl
cmpb $0x2f, %al
jne 0x1bd57
movq %r14, %rdi
movl $0x1, %esi
callq 0x1b732
cmpb $0x2f, %al
jne 0x1bad1
addl $0x2, 0x2c(%r14)
movslq 0x20(%r14), %rdx
addq $0x2, %rdx
movl %edx, 0x20(%r14)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rcx, %rsi
subq %rax, %rsi
cmpq %rdx, %rsi
jne 0x1baa0
cmpq %rax, %rcx
je 0x1ba98
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x1b732
cmpb $-0x1, %al
je 0x1bc40
movq %r14, %rdi
xorl %esi, %esi
callq 0x1b732
cmpb $0xa, %al
je 0x1bc40
incl 0x2c(%r14)
movslq 0x20(%r14), %rdx
incq %rdx
jmp 0x1ba78
movq %r14, %rdi
movl $0x1, %esi
callq 0x1b732
cmpb $0x2a, %al
jne 0x1bd57
addl $0x2, 0x2c(%r14)
movslq 0x20(%r14), %rdx
addq $0x2, %rdx
movl %edx, 0x20(%r14)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rcx, %rsi
subq %rax, %rsi
cmpq %rdx, %rsi
jne 0x1bb1b
cmpq %rax, %rcx
je 0x1bb13
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
movl $0x1, %r15d
movq %r14, %rdi
xorl %esi, %esi
callq 0x1b732
movzbl %al, %eax
cmpl $0x2e, %eax
jg 0x1bb5b
cmpl $0xa, %eax
je 0x1bbaf
cmpl $0x2a, %eax
jne 0x1bbca
movq %r14, %rdi
movl $0x1, %esi
callq 0x1b732
cmpb $0x2f, %al
jne 0x1bbe7
decl %r15d
jmp 0x1bb74
cmpl $0x2f, %eax
jne 0x1bbbf
movq %r14, %rdi
movl $0x1, %esi
callq 0x1b732
cmpb $0x2a, %al
jne 0x1bbd0
incl %r15d
movl 0x2c(%r14), %ecx
incl %ecx
movl %ecx, 0x2c(%r14)
movslq 0x20(%r14), %rsi
incq %rsi
movl %esi, 0x20(%r14)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rdx
movq %rdx, %rdi
subq %rax, %rdi
cmpq %rsi, %rdi
jne 0x1bc00
cmpq %rax, %rdx
je 0x1bba5
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
jmp 0x1bc00
incl 0x28(%r14)
movl $0x0, 0x2c(%r14)
xorl %ecx, %ecx
jmp 0x1bc00
cmpl $0xff, %eax
je 0x1bca4
movl 0x2c(%r14), %ecx
jmp 0x1bc00
movq %r14, %rdi
movl $0x1, %esi
callq 0x1b732
movl 0x2c(%r14), %ecx
cmpb $0x2f, %al
jne 0x1bb78
jmp 0x1bc00
movq %r14, %rdi
movl $0x1, %esi
callq 0x1b732
movl 0x2c(%r14), %ecx
cmpb $0x2a, %al
jne 0x1bb78
incl %ecx
movl %ecx, 0x2c(%r14)
movslq 0x20(%r14), %rdx
incq %rdx
movl %edx, 0x20(%r14)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rcx, %rsi
subq %rax, %rsi
cmpq %rdx, %rsi
jne 0x1bc35
cmpq %rax, %rcx
je 0x1bc2d
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
testl %r15d, %r15d
jne 0x1bb21
jmp 0x1bc8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x1b732
cmpb $-0x1, %al
je 0x1bd57
incl 0x28(%r14)
movl $0x1, 0x2c(%r14)
movslq 0x20(%r14), %rdx
incq %rdx
movl %edx, 0x20(%r14)
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
movq %rcx, %rsi
subq %rax, %rsi
cmpq %rdx, %rsi
jne 0x1bc8d
cmpq %rax, %rcx
je 0x1bc85
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
movq %r14, %rdi
callq 0x1b9aa
movq %r14, %rdi
xorl %esi, %esi
callq 0x1b732
jmp 0x1ba52
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x577f(%rip), %rsi      # 0x21434
leaq 0x578c(%rip), %rdx      # 0x21448
movq %rsp, %r15
movq %r15, %rdi
callq 0xb1b4
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x1b970
leaq 0x30(%rsp), %rsi
movl -0x8(%rsi), %eax
movl %eax, 0x8(%rbx)
movq -0x10(%rsi), %rax
movq %rax, (%rbx)
leaq 0x10(%rbx), %rdi
callq 0x62e0
addq $0x30, %rbx
leaq 0x50(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x62e0
movq (%r14), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1bd24
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6230
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1bd3f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6230
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1bd55
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6230
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x70, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1bd7f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6230
movq %rbx, %rdi
callq 0x6450
nop