// File: /workspace/github_cpp_makefile_star2_O1/CoinXu[P]reviser-compiler/src/tokenizer.cpp
// Function: reviser::compiler::Tokenizer::Tokenizer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Tokenizer::Tokenizer(string input): input(input), message("tokenizer") {
  peek = input.at(0);
  pos = 0;
  line = 1;
  column = 0;

  current.type = TOKEN_CODE_START;
  current.text = "";
  current.start_line = line;
  current.end_line = line;
  current.column_start = column;
  current.column_end = column;
  current.pos_start = pos;
  current.pos_end = pos;

  type.push_back(ReservedWordMap[RESERVED_BOOL]);
  type.push_back(ReservedWordMap[RESERVED_FLOAT]);
  type.push_back(ReservedWordMap[RESERVED_DOUBLE]);
  type.push_back(ReservedWordMap[RESERVED_INT32]);
  type.push_back(ReservedWordMap[RESERVED_INT64]);
  type.push_back(ReservedWordMap[RESERVED_UINT32]);
  type.push_back(ReservedWordMap[RESERVED_UINT64]);
  type.push_back(ReservedWordMap[RESERVED_STRING]);
  type.push_back(ReservedWordMap[RESERVED_NULL]);

  decorater.push_back(ReservedWordMap[RESERVED_OPTIONAL]);
  decorater.push_back(ReservedWordMap[RESERVED_REQUIRED]);

  NextChar();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r13
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x48(%rbp)
movq %rax, (%rdi)
movq (%rsi), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
callq 0x2a264
leaq 0x20(%rbx), %r14
leaq 0x38(%rbx), %r15
leaq -0x58(%rbp), %r12
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movq %r12, -0x10(%r12)
leaq 0x20a02(%rip), %rsi     # 0x50806
leaq 0x20a04(%rip), %rdx     # 0x5080f
leaq -0x68(%rbp), %rdi
callq 0x2a2fe
leaq 0x50(%rbx), %rdi
leaq -0x68(%rbp), %rsi
movq %rdi, -0x40(%rbp)
callq 0x2b85c
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x2fe33
callq 0x25320
leaq 0x90(%rbx), %rax
movq %rax, -0x38(%rbp)
movq %rax, 0x80(%rbx)
xorl %eax, %eax
movq %rax, 0x88(%rbx)
movb %al, 0x90(%rbx)
leaq 0xd0(%rbx), %r12
movq %r12, 0xc0(%rbx)
movq %rax, 0xc8(%rbx)
movb %al, 0xd0(%rbx)
movq 0x8(%r13), %rdx
testq %rdx, %rdx
je 0x30081
movq (%r13), %rax
movb (%rax), %al
movb %al, 0xf8(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0xfc(%rbx)
movl $0x0, 0x104(%rbx)
movl $0x8, 0x78(%rbx)
leaq 0x80(%rbx), %rdi
movq 0x88(%rbx), %rdx
leaq 0x21c95(%rip), %rcx     # 0x51b54
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x25530
movl 0xfc(%rbx), %eax
movl 0x100(%rbx), %ecx
movl %ecx, 0xa0(%rbx)
movl %ecx, 0xa4(%rbx)
movl 0x104(%rbx), %ecx
movl %ecx, 0xa8(%rbx)
movl %ecx, 0xac(%rbx)
movl %eax, 0xb0(%rbx)
movl %eax, 0xb4(%rbx)
leaq -0x2c(%rbp), %rsi
movl $0x4, (%rsi)
leaq 0x319e0(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0x5, (%rsi)
leaq 0x319bf(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0x6, (%rsi)
leaq 0x3199e(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0x7, (%rsi)
leaq 0x3197d(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0x8, (%rsi)
leaq 0x3195c(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0x9, (%rsi)
leaq 0x3193b(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0xa, (%rsi)
leaq 0x3191a(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0xb, (%rsi)
leaq 0x318f9(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0xc, (%rsi)
leaq 0x318d8(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r14, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0xd, (%rsi)
leaq 0x318b7(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r15, %rdi
movq %rax, %rsi
callq 0x2a126
leaq -0x2c(%rbp), %rsi
movl $0xe, (%rsi)
leaq 0x31896(%rip), %rdi     # 0x618f0
callq 0x2b236
movq %r15, %rdi
movq %rax, %rsi
callq 0x2a126
movq %rbx, %rdi
callq 0x30114
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20805(%rip), %rdi     # 0x5088d
xorl %esi, %esi
xorl %eax, %eax
callq 0x25510
movq %rax, %r13
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x300ee
callq 0x25320
jmp 0x300ee
movq %rax, %r13
jmp 0x300ee
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
jmp 0x300bf
movq %rax, %r13
movq 0xc0(%rbx), %rdi
cmpq %r12, %rdi
je 0x300d3
callq 0x25320
movq 0x80(%rbx), %rdi
cmpq -0x38(%rbp), %rdi
je 0x300e5
callq 0x25320
movq -0x40(%rbp), %rdi
callq 0x2b88a
movq %r15, %rdi
callq 0x29fb8
movq %r14, %rdi
callq 0x29fb8
movq (%rbx), %rdi
cmpq -0x48(%rbp), %rdi
je 0x3010c
callq 0x25320
movq %r13, %rdi
callq 0x255f0