// File: /workspace/github_cpp_makefile_star2_O1/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
movq %r14, %rdi
callq 0x1bf9c
movq %r14, %rdi
xorl %esi, %esi
callq 0x1bd26
movb $0x1, %bpl
cmpb $0x2f, %al
jne 0x1c31c
movq %r14, %rdi
movl $0x1, %esi
callq 0x1bd26
cmpb $0x2f, %al
jne 0x1c0c4
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 0x1c093
cmpq %rax, %rcx
je 0x1c08b
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x1bd26
cmpb $-0x1, %al
je 0x1c213
movq %r14, %rdi
xorl %esi, %esi
callq 0x1bd26
cmpb $0xa, %al
je 0x1c213
incl 0x2c(%r14)
movslq 0x20(%r14), %rdx
incq %rdx
jmp 0x1c06b
movq %r14, %rdi
movl $0x1, %esi
callq 0x1bd26
cmpb $0x2a, %al
jne 0x1c31c
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 0x1c10e
cmpq %rax, %rcx
je 0x1c106
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
movl $0x1, %ebp
movq %r14, %rdi
xorl %esi, %esi
callq 0x1bd26
movzbl %al, %eax
cmpl $0x2e, %eax
jg 0x1c148
cmpl $0xa, %eax
je 0x1c162
cmpl $0x2a, %eax
jne 0x1c1d3
movq %r14, %rdi
movl $0x1, %esi
callq 0x1bd26
cmpb $0x2f, %al
jne 0x1c18f
decl %ebp
jmp 0x1c1a0
cmpl $0x2f, %eax
jne 0x1c170
movq %r14, %rdi
movl $0x1, %esi
callq 0x1bd26
cmpb $0x2a, %al
jne 0x1c17c
incl %ebp
jmp 0x1c1a0
incl 0x28(%r14)
movl $0x0, 0x2c(%r14)
jmp 0x1c1d3
cmpl $0xff, %eax
jne 0x1c1d3
jmp 0x1c269
movq %r14, %rdi
movl $0x1, %esi
callq 0x1bd26
cmpb $0x2f, %al
jne 0x1c1a0
jmp 0x1c1d3
movq %r14, %rdi
movl $0x1, %esi
callq 0x1bd26
cmpb $0x2a, %al
je 0x1c1d3
incl 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 0x1c1d3
cmpq %rax, %rcx
je 0x1c1cb
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
incl 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 0x1c206
cmpq %rax, %rcx
je 0x1c1fe
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
testl %ebp, %ebp
jne 0x1c113
jmp 0x1c030
movq %r14, %rdi
xorl %esi, %esi
callq 0x1bd26
cmpb $-0x1, %al
je 0x1c31c
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 0x1c030
cmpq %rax, %rcx
je 0x1c25c
movq %rax, 0x10(%r14)
movl $0x0, 0x20(%r14)
jmp 0x1c030
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x519e(%rip), %rsi      # 0x21418
leaq 0x51ab(%rip), %rdx      # 0x2142c
movq %rsp, %r15
movq %r15, %rdi
callq 0xb1a2
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
movq %r15, %r8
callq 0x1bf62
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 0x1c2e9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x6230
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1c304
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x6230
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x1c31a
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 0x1c344
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x6230
movq %rbx, %rdi
callq 0x6450