// File: /workspace/github_cpp_makefile_star2_O1/Merulo[P]CompilerJFTT/src/SymbolTable.cpp
// Function: SymbolTable::checkConstTableAccess(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, unsigned long long)
std::string SymbolTable::checkConstTableAccess(std::string tableName, unsigned long long value)
{
    auto table = _tables[tableName];
    if (value < table.beginIndex)
    {
        return std::to_string(value) + " out of lower bound of " + tableName;
    }
    if (value > table.endIndex)
    {
        return std::to_string(value) + " out of upper bound of " + tableName;
    }

    return "";
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rcx, %r15
movq %rdx, %r14
movq %rdi, %rbx
leaq 0x70(%rsi), %rdi
movq %rdx, %rsi
callq 0x1b5e2
cmpq %r15, 0x8(%rax)
jbe 0x1afcc
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x1b05d
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x1b056
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x1b05b
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x1b05d
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x1af87
addl $-0x3, %esi
jmp 0x1b05d
cmpq %r15, 0x10(%rax)
jae 0x1b038
movl $0x1, %esi
cmpq $0xa, %r15
jb 0x1b0f6
movl $0x4, %esi
movabsq $0x346dc5d63886594b, %rdi # imm = 0x346DC5D63886594B
movq %r15, %rcx
cmpq $0x63, %rcx
jbe 0x1b0ef
cmpq $0x3e7, %rcx            # imm = 0x3E7
jbe 0x1b0f4
cmpq $0x2710, %rcx           # imm = 0x2710
jb 0x1b0f6
movq %rcx, %rax
mulq %rdi
shrq $0xb, %rdx
addl $0x4, %esi
cmpq $0x1869f, %rcx          # imm = 0x1869F
movq %rdx, %rcx
ja 0x1aff3
addl $-0x3, %esi
jmp 0x1b0f6
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x1d09d(%rip), %rdx     # 0x380e3
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x54fc
jmp 0x1b1ef
addl $-0x2, %esi
jmp 0x1b05d
decl %esi
movl %esi, %esi
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x4330
movq (%r12), %rdi
movl 0x8(%r12), %esi
movq %r15, %rdx
callq 0x1a028
leaq 0x1d3bf(%rip), %rsi     # 0x3844e
movq %r12, %rdi
callq 0x4510
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b0bd
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1b0c4
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x40f0
jmp 0x1b183
addl $-0x2, %esi
jmp 0x1b0f6
decl %esi
movl %esi, %esi
leaq 0x30(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x20(%rsp), %r12
movq %r12, %rdi
xorl %edx, %edx
callq 0x4330
movq (%r12), %rdi
movl 0x8(%r12), %esi
movq %r15, %rdx
callq 0x1a028
leaq 0x1d33e(%rip), %rsi     # 0x38466
movq %r12, %rdi
callq 0x4510
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b156
movq %rdx, (%rsp)
movq (%rcx), %rdx
movq %rdx, 0x10(%rsp)
jmp 0x1b15d
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rsp, %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
callq 0x40f0
leaq 0x10(%rbx), %rdx
movq %rdx, (%rbx)
movq (%rax), %rsi
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rsi
je 0x1b1a5
movq %rsi, (%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rbx)
jmp 0x1b1ab
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq 0x8(%rax), %rdx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1b1d8
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1b1ef
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x1b204
jmp 0x1b21f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1b222
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x1b222
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r13, %rdi
je 0x1b239
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x44c0
nop