// File: /workspace/github_cpp_makefile_star2_O2/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 $0x38, %rsp
movq %rsi, %r12
movq %rdi, %rbx
callq 0x35470
leaq 0x20(%rbx), %r14
leaq 0x38(%rbx), %r15
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
leaq 0x1a2b2(%rip), %rsi     # 0x5782c
leaq -0x58(%rbp), %rdi
leaq -0x2c(%rbp), %rdx
callq 0x35130
leaq 0x50(%rbx), %rdi
leaq -0x58(%rbp), %rsi
movq %rdi, -0x38(%rbp)
callq 0x3a35c
leaq -0x58(%rbp), %rdi
callq 0x35180
leaq 0x80(%rbx), %r13
leaq 0x90(%rbx), %rax
movq %rax, 0x80(%rbx)
andq $0x0, 0x88(%rbx)
xorl %eax, %eax
movb %al, 0x90(%rbx)
leaq 0xd0(%rbx), %rcx
movq %rcx, 0xc0(%rbx)
andq $0x0, 0xc8(%rbx)
movb %al, 0xd0(%rbx)
movq %r12, %rdi
xorl %esi, %esi
callq 0x35660
movb (%rax), %al
movb %al, 0xf8(%rbx)
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, 0xfc(%rbx)
andl $0x0, 0x104(%rbx)
movl $0x8, 0x78(%rbx)
leaq 0x1b525(%rip), %rsi     # 0x58b3f
movq %r13, %rdi
callq 0x35650
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 0x2f297(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0x5, (%rsi)
leaq 0x2f276(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0x6, (%rsi)
leaq 0x2f255(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0x7, (%rsi)
leaq 0x2f234(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0x8, (%rsi)
leaq 0x2f213(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0x9, (%rsi)
leaq 0x2f1f2(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0xa, (%rsi)
leaq 0x2f1d1(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0xb, (%rsi)
leaq 0x2f1b0(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0xc, (%rsi)
leaq 0x2f18f(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r14, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0xd, (%rsi)
leaq 0x2f16e(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r15, %rdi
movq %rax, %rsi
callq 0x38f8a
leaq -0x2c(%rbp), %rsi
movl $0xe, (%rsi)
leaq 0x2f14d(%rip), %rdi     # 0x6c900
callq 0x39c9c
movq %r15, %rdi
movq %rax, %rsi
callq 0x38f8a
movq %rbx, %rdi
callq 0x3d844
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r12
leaq -0x58(%rbp), %rdi
callq 0x35180
jmp 0x3d823
movq %rax, %r12
jmp 0x3d823
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
jmp 0x3d803
movq %rax, %r12
leaq 0xc0(%rbx), %rdi
callq 0x35180
movq %r13, %rdi
callq 0x35180
movq -0x38(%rbp), %rdi
callq 0x3a36e
movq %r15, %rdi
callq 0x38d68
movq %r14, %rdi
callq 0x38d68
movq %rbx, %rdi
callq 0x35180
movq %r12, %rdi
callq 0x355f0
nop