// File: /workspace/github_cpp_makefile_star2_O3/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, %r12
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x50(%rbp)
movq %rax, (%rdi)
movq (%rsi), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
callq 0x290da
leaq 0x20(%rbx), %r14
leaq 0x38(%rbx), %r15
leaq -0x60(%rbp), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x20(%rbx)
movq %r13, -0x10(%r13)
leaq 0x20c02(%rip), %rsi     # 0x4f806
leaq 0x20c04(%rip), %rdx     # 0x4f80f
leaq -0x70(%rbp), %rdi
callq 0x29178
leaq 0x50(%rbx), %rdi
leaq -0x70(%rbp), %rsi
movq %rdi, -0x48(%rbp)
callq 0x2a674
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x2ec33
callq 0x24320
leaq 0x80(%rbx), %r9
leaq 0x90(%rbx), %rax
movq %rax, -0x40(%rbp)
movq %rax, 0x80(%rbx)
xorl %eax, %eax
movq %rax, 0x88(%rbx)
movb %al, 0x90(%rbx)
leaq 0xd0(%rbx), %r13
movq %r13, 0xc0(%rbx)
movq %rax, 0xc8(%rbx)
movb %al, 0xd0(%rbx)
cmpq %rax, 0x8(%r12)
je 0x2ee80
movq (%r12), %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 0x21e9e(%rip), %rcx     # 0x50b54
movq %r9, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
movq %r9, %r12
callq 0x24530
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 0x31be1(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0x5, (%rsi)
leaq 0x31bc0(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0x6, (%rsi)
leaq 0x31b9f(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0x7, (%rsi)
leaq 0x31b7e(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0x8, (%rsi)
leaq 0x31b5d(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0x9, (%rsi)
leaq 0x31b3c(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0xa, (%rsi)
leaq 0x31b1b(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0xb, (%rsi)
leaq 0x31afa(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0xc, (%rsi)
leaq 0x31ad9(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r14, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0xd, (%rsi)
leaq 0x31ab8(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r15, %rdi
movq %rax, %rsi
callq 0x28f9c
leaq -0x2c(%rbp), %rsi
movl $0xe, (%rsi)
leaq 0x31a97(%rip), %rdi     # 0x608f0
callq 0x2a05c
movq %r15, %rdi
movq %rax, %rsi
callq 0x28f9c
movq %rbx, %rdi
callq 0x2ef1a
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20a06(%rip), %rdi     # 0x4f88d
xorl %esi, %esi
xorl %edx, %edx
xorl %eax, %eax
movq %r9, %r12
callq 0x24510
movq %rax, -0x38(%rbp)
movq -0x70(%rbp), %rdi
cmpq %r13, %rdi
je 0x2eef2
callq 0x24320
jmp 0x2eef2
movq %rax, -0x38(%rbp)
jmp 0x2eef2
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
jmp 0x2eec5
movq %rax, -0x38(%rbp)
movq 0xc0(%rbx), %rdi
cmpq %r13, %rdi
je 0x2eeda
callq 0x24320
movq (%r12), %rdi
cmpq -0x40(%rbp), %rdi
je 0x2eee9
callq 0x24320
movq -0x48(%rbp), %rdi
callq 0x2a6a2
movq %r15, %rdi
callq 0x28e24
movq %r14, %rdi
callq 0x28e24
movq (%rbx), %rdi
cmpq -0x50(%rbp), %rdi
je 0x2ef10
callq 0x24320
movq -0x38(%rbp), %rdi
callq 0x245f0
nop