// File: /workspace/github_c_makefile_star2_O3/vtereshkov[P]umka-lang/src/umka_lexer.c
// Function: lexNextWithEOLN
static void lexNextWithEOLN(Lexer *lex)
{
    lexSpacesAndComments(lex);

    lex->tok.kind = TOK_NONE;
    lex->tok.line = lex->debug->line = lex->line;
    lex->tok.pos = lex->pos;

    char ch = lex->buf[lex->bufPos];
    if ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || ch == '_')
        lexKeywordOrIdent(lex);
    else if ((ch >= '0' && ch <= '9') || ch == '.')
        lexNumber(lex);
    else if (ch == '\'')
        lexCharLiteral(lex);
    else if (ch == '"')
        lexStrLiteral(lex);

    if (lex->tok.kind == TOK_NONE)
        lexOperator(lex);

    if (lex->tok.kind == TOK_NONE)
    {
        if (!lex->buf[lex->bufPos])
            lex->tok.kind = TOK_EOF;
        else
            lex->error->handler(lex->error->context, "Unexpected character or end of file");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2a8, %rsp            # imm = 0x2A8
movq %rdi, %rbx
movq 0x10(%rdi), %rax
movslq 0x18(%rdi), %rcx
movb (%rax,%rcx), %al
movzbl %al, %eax
cmpl $0x1f, %eax
jg 0x159d5
cmpl $0x9, %eax
je 0x159da
cmpl $0xd, %eax
je 0x159da
jmp 0x15a75
cmpl $0x20, %eax
jne 0x159e4
movq %rbx, %rdi
callq 0x163ef
jmp 0x159be
cmpl $0x2f, %eax
jne 0x15a75
movq %rbx, %rdi
callq 0x163ef
cmpb $0x2a, %al
je 0x15a17
movzbl %al, %eax
cmpl $0x2f, %eax
jne 0x15a7d
movq %rbx, %rdi
callq 0x163ef
testb %al, %al
je 0x15a68
movzbl %al, %eax
cmpl $0xa, %eax
jne 0x15a01
jmp 0x15a68
movq %rbx, %rdi
callq 0x163ef
testb %al, %al
je 0x15a60
movl %eax, %ebp
testb %bpl, %bpl
je 0x15a33
movzbl %bpl, %eax
cmpl $0x2a, %eax
jne 0x15a56
xorb $0x2a, %bpl
movq %rbx, %rdi
callq 0x163ef
movl %eax, %ecx
xorb $0x2f, %cl
orb %bpl, %cl
sete %cl
testb %al, %al
je 0x15a60
movl %eax, %ebp
testb %cl, %cl
je 0x15a25
jmp 0x15a60
movq %rbx, %rdi
callq 0x163ef
jmp 0x15a23
movq %rbx, %rdi
callq 0x163ef
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
jmp 0x159bb
movl 0x18(%rbx), %ecx
movl 0x20(%rbx), %eax
jmp 0x15a8d
movl 0x18(%rbx), %ecx
movl 0x20(%rbx), %eax
decl %ecx
movl %ecx, 0x18(%rbx)
decl %eax
movl %eax, 0x20(%rbx)
movl $0x0, 0x28(%rbx)
movl 0x1c(%rbx), %edx
movq 0x260(%rbx), %rsi
movl %edx, 0x10(%rsi)
movl %edx, 0x138(%rbx)
movl %eax, 0x13c(%rbx)
movq 0x10(%rbx), %rax
movslq %ecx, %rcx
movzbl (%rax,%rcx), %edx
leal -0x41(%rdx), %esi
cmpb $0x1a, %sil
jb 0x15adc
leal -0x61(%rdx), %esi
cmpb $0x1a, %sil
setae %sil
cmpl $0x5f, %edx
setne %dil
testb %sil, %dil
jne 0x15b71
movb (%rax,%rcx), %al
leaq 0x30(%rbx), %r14
movl $0x30, %r15d
movb %al, (%rbx,%r15)
movq %rbx, %rdi
callq 0x163ef
cmpq $0x12f, %r15            # imm = 0x12F
je 0x15b4f
movl %eax, %ecx
andb $-0x21, %cl
addb $-0x41, %cl
incq %r15
cmpb $0x1a, %cl
jb 0x15ae9
cmpb $0x5f, %al
je 0x15ae9
movl %eax, %ecx
addb $-0x30, %cl
cmpb $0xa, %cl
jb 0x15ae9
movb $0x0, (%rbx,%r15)
movb 0x30(%rbx), %al
testb %al, %al
je 0x15c23
leaq 0x31(%rbx), %rcx
movl $0x1505, %ebp           # imm = 0x1505
movl %ebp, %edx
shll $0x5, %edx
addl %ebp, %edx
movsbl %al, %ebp
addl %edx, %ebp
movb (%rcx), %al
incq %rcx
testb %al, %al
jne 0x15b35
jmp 0x15c28
movq 0x268(%rbx), %rcx
movq 0x20(%rcx), %rdi
leaq 0x61995(%rip), %rsi     # 0x774f6
xorl %r15d, %r15d
xorl %eax, %eax
callq *(%rcx)
movl %r15d, 0x28(%rbx)
jmp 0x15f23
leal -0x30(%rdx), %esi
cmpb $0xa, %sil
setae %sil
cmpl $0x2e, %edx
setne %dil
testb %sil, %dil
jne 0x15c7f
xorl %edx, %edx
movl %edx, 0x38(%rsp)
movl %edx, 0x8(%rsp)
movl %edx, 0xc(%rsp)
movzbl (%rax,%rcx), %edx
cmpl $0x2e, %edx
je 0x15cf9
cmpl $0x30, %edx
jne 0x15ce0
movzbl 0x1(%rax,%rcx), %eax
orl $0x20, %eax
cmpl $0x78, %eax
jne 0x15ce0
movq %rbx, %rdi
callq 0x163ef
movq %rbx, %rdi
callq 0x163ef
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
movb (%rax,%rcx), %dl
cmpb $0x5f, %dl
jne 0x15bf4
movq %rbx, %rdi
callq 0x163ef
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
movb (%rax,%rcx), %dl
cmpb $0x2e, %dl
jne 0x15c07
movb 0x1(%rax,%rcx), %al
addb $-0x3a, %al
cmpb $-0xa, %al
jb 0x15f1f
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movl $0x10, %esi
xorl %ecx, %ecx
callq 0x16475
movq %rax, %r14
jmp 0x15f14
movl $0x1505, %ebp           # imm = 0x1505
movl %ebp, 0x130(%rbx)
movl $0x1, %r15d
leaq 0x715d5(%rip), %r12     # 0x87210
leaq 0x70c6e(%rip), %r13     # 0x868b0
cmpl (%r12), %ebp
jne 0x15c5d
movq (%r13,%r15,8), %rsi
movq %r14, %rdi
callq 0x3210
testl %eax, %eax
je 0x15b68
incq %r15
addq $0x4, %r12
cmpq $0x16, %r15
jne 0x15c42
cmpl $0x0, 0x28(%rbx)
jne 0x1629f
movl $0x45, %r15d
jmp 0x15b68
cmpl $0x22, %edx
je 0x15d94
cmpl $0x27, %edx
jne 0x15f1f
movl $0x48, 0x28(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x165c1
movsbq %al, %rax
movq %rax, 0x30(%rbx)
movq %rbx, %rdi
callq 0x163ef
cmpb $0x27, %al
je 0x15cd3
movq 0x268(%rbx), %rcx
movq 0x20(%rcx), %rdi
leaq 0x61888(%rip), %rsi     # 0x77550
xorl %eax, %eax
callq *(%rcx)
movl $0x0, 0x28(%rbx)
movq %rbx, %rdi
callq 0x163ef
jmp 0x15f1f
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movl $0xa, %esi
xorl %ecx, %ecx
callq 0x16475
movq %rax, %r14
jmp 0x15d0a
movb 0x1(%rax,%rcx), %al
addb $-0x3a, %al
cmpb $-0xa, %al
jb 0x15f1f
xorl %r14d, %r14d
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
movb (%rax,%rcx), %bpl
xorpd %xmm0, %xmm0
movapd %xmm0, 0x20(%rsp)
cmpb $0x2e, %bpl
jne 0x15ddb
movq %rbx, %rdi
callq 0x163ef
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
movb (%rax,%rcx), %al
leal -0x3a(%rax), %ecx
cmpb $-0xa, %cl
jb 0x15ddd
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movl $0xa, %esi
movl $0x1, %ecx
callq 0x16475
movq %rax, %xmm0
punpckldq 0x60263(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x6026b(%rip), %xmm0    # 0x75fe0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x20(%rsp)
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
movb (%rax,%rcx), %al
jmp 0x15ddd
leaq 0x38(%rsp), %r14
movl $0x270, %edx            # imm = 0x270
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3260
movq $0x0, 0x30(%r14)
movq %r14, %rdi
callq 0x166e5
movq 0x258(%rbx), %rdi
decl %eax
movslq %eax, %rsi
callq 0x7b1c
movq %rax, 0x30(%rbx)
movq %rbx, %rdi
callq 0x166e5
jmp 0x15f1f
movl %ebp, %eax
movzbl %al, %eax
orl $0x20, %eax
cmpl $0x65, %eax
jne 0x15efd
movq %rbx, %rdi
callq 0x163ef
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x2d, %eax
sete %bpl
je 0x15e0e
cmpl $0x2b, %eax
jne 0x15e16
movq %rbx, %rdi
callq 0x163ef
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movl $0xa, %esi
xorl %ecx, %ecx
callq 0x16475
movq %rax, %xmm0
punpckldq 0x60199(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x601a1(%rip), %xmm0    # 0x75fe0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movapd %xmm1, 0x10(%rsp)
movl $0x47, 0x28(%rbx)
movq %r14, %xmm0
punpckldq 0x6016b(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x60173(%rip), %xmm0    # 0x75fe0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd %xmm1, 0x30(%rbx)
xorps %xmm1, %xmm1
cvtsi2sdl 0x8(%rsp), %xmm1
movsd 0x61461(%rip), %xmm0    # 0x772f0
callq 0x3110
movapd 0x20(%rsp), %xmm1
divsd %xmm0, %xmm1
addsd 0x30(%rbx), %xmm1
movsd %xmm1, 0x30(%rbx)
movsd 0x61440(%rip), %xmm0    # 0x772f0
movaps 0x10(%rsp), %xmm1
callq 0x3110
movsd 0x30(%rbx), %xmm1
testb %bpl, %bpl
jne 0x15eca
mulsd %xmm0, %xmm1
jmp 0x15ece
divsd %xmm0, %xmm1
movsd %xmm1, 0x30(%rbx)
andpd 0x600d5(%rip), %xmm1    # 0x75fb0
ucomisd 0x6010d(%rip), %xmm1    # 0x75ff0
jbe 0x15f1f
movq 0x268(%rbx), %rcx
movq 0x20(%rcx), %rdi
leaq 0x61616(%rip), %rsi     # 0x7750d
xorl %eax, %eax
callq *(%rcx)
jmp 0x15f1f
cmpb $0x2e, %bpl
jne 0x15f14
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
xorl %ebp, %ebp
jmp 0x15e51
movl $0x46, 0x28(%rbx)
movq %r14, 0x30(%rbx)
movl 0x28(%rbx), %r15d
testl %r15d, %r15d
jne 0x16299
movl $0x0, 0x28(%rbx)
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
movzbl (%rax,%rcx), %eax
cmpl $0x5a, %eax
jg 0x15f81
leal -0x21(%rax), %ecx
cmpl $0x1e, %ecx
ja 0x15fd1
leaq 0x613a1(%rip), %rax     # 0x772f8
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq %rbx, %rdi
callq 0x163ef
movl $0x34, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x33, 0x28(%rbx)
jmp 0x1629f
cmpl $0x7a, %eax
jle 0x15fac
addl $-0x7b, %eax
cmpl $0x3, %eax
ja 0x16299
leaq 0x613db(%rip), %rcx     # 0x77374
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x3c, %ecx
jmp 0x1628e
cmpl $0x5b, %eax
je 0x1621b
cmpl $0x5d, %eax
je 0x16222
cmpl $0x5e, %eax
jne 0x16299
movl $0x3e, %ecx
jmp 0x1628e
cmpl $0xa, %eax
jne 0x16299
movl $0x4b, %ecx
jmp 0x1628e
movl $0x40, %ecx
jmp 0x1628e
movq %rbx, %rdi
callq 0x163ef
cmpb $0x3d, %al
je 0x16229
movzbl %al, %eax
cmpl $0x3c, %eax
jne 0x1623e
movq %rbx, %rdi
callq 0x163ef
movl $0x28, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x1e, 0x28(%rbx)
jmp 0x1629f
movl $0x32, %ecx
jmp 0x1628e
movq %rbx, %rdi
callq 0x163ef
movl $0x23, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x19, 0x28(%rbx)
jmp 0x1629f
movl $0x3f, %ecx
jmp 0x1628e
movq %rbx, %rdi
callq 0x163ef
cmpb $0x3d, %al
je 0x16230
movzbl %al, %eax
cmpl $0x3e, %eax
jne 0x16247
movq %rbx, %rdi
callq 0x163ef
movl $0x29, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x1f, 0x28(%rbx)
jmp 0x1629f
movq %rbx, %rdi
callq 0x163ef
cmpb $0x3d, %al
je 0x16237
movzbl %al, %eax
cmpl $0x3a, %eax
jne 0x16257
movl $0x42, %ecx
jmp 0x1628e
movl $0x39, %ecx
jmp 0x1628e
movl $0x38, %ecx
jmp 0x1628e
movq %rbx, %rdi
callq 0x163ef
movl $0x24, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x1a, 0x28(%rbx)
jmp 0x1629f
movq %rbx, %rdi
callq 0x163ef
movl $0x44, %ecx
cmpb $0x2e, %al
je 0x1628e
movl $0x43, 0x28(%rbx)
jmp 0x1629f
movq %rbx, %rdi
callq 0x163ef
cmpb $0x3d, %al
je 0x16250
movzbl %al, %eax
cmpl $0x26, %eax
jne 0x16267
movl $0x2a, %ecx
jmp 0x1628e
movq %rbx, %rdi
callq 0x163ef
movl $0x22, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x18, 0x28(%rbx)
jmp 0x1629f
movq %rbx, %rdi
callq 0x163ef
movl $0x2e, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x31, 0x28(%rbx)
jmp 0x1629f
movq %rbx, %rdi
callq 0x163ef
cmpb $0x3d, %al
je 0x16260
movzbl %al, %eax
cmpl $0x2d, %eax
jne 0x16277
movl $0x2d, %ecx
jmp 0x1628e
movq %rbx, %rdi
callq 0x163ef
cmpb $0x3d, %al
je 0x16270
movzbl %al, %eax
cmpl $0x2b, %eax
jne 0x16280
movl $0x2c, %ecx
jmp 0x1628e
movl $0x3d, %ecx
jmp 0x1628e
movq %rbx, %rdi
callq 0x163ef
movl $0x27, %ecx
cmpb $0x3d, %al
je 0x1628e
movl $0x1d, 0x28(%rbx)
jmp 0x1629f
movq %rbx, %rdi
callq 0x163ef
cmpb $0x3d, %al
je 0x16289
movzbl %al, %eax
cmpl $0x7c, %eax
jne 0x162f2
movl $0x2b, %ecx
jmp 0x1628e
movl $0x3a, %ecx
jmp 0x1628e
movl $0x3b, %ecx
jmp 0x1628e
movl $0x35, %ecx
jmp 0x1628e
movl $0x36, %ecx
jmp 0x1628e
movl $0x37, %ecx
jmp 0x1628e
movl $0x2f, 0x28(%rbx)
jmp 0x1629f
movl $0x30, 0x28(%rbx)
jmp 0x1629f
movl $0x25, %ecx
jmp 0x1628e
movl $0x41, 0x28(%rbx)
jmp 0x1629f
movl $0x21, %ecx
jmp 0x1628e
movl $0x1b, 0x28(%rbx)
jmp 0x1629f
movl $0x20, %ecx
jmp 0x1628e
movl $0x17, 0x28(%rbx)
jmp 0x1629f
movl $0x16, 0x28(%rbx)
jmp 0x1629f
movl $0x26, %ecx
movl %ecx, 0x28(%rbx)
movq %rbx, %rdi
callq 0x163ef
cmpl $0x0, 0x28(%rbx)
je 0x162b1
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x10(%rbx), %rax
movslq 0x18(%rbx), %rcx
cmpb $0x0, (%rax,%rcx)
je 0x162e9
movq 0x268(%rbx), %rax
movq (%rax), %rcx
movq 0x20(%rax), %rdi
leaq 0x611fe(%rip), %rsi     # 0x774d2
xorl %eax, %eax
addq $0x2a8, %rsp            # imm = 0x2A8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%rcx
movl $0x4c, 0x28(%rbx)
jmp 0x1629f
movl $0x1c, 0x28(%rbx)
jmp 0x1629f