// File: cimtools[P]yaaclc/src/Analizer_ACL.cpp
// Function: Analizer_ACL::search_scopes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string Analizer_ACL::search_scopes( string key ){
    string return_value = "__ERRCODE: Couldn't find variable name";

    //First chek if it is on global scope.
    if( (**(scopes.begin())).count(key) ){
        return_value = (**(scopes.begin()))[key];
    }else{
        for( auto search_iterator = scope_iterator; search_iterator != scopes.begin(); --search_iterator ){
            if( (**search_iterator).count(key) ){//If there is at least one occurence of the key on the current map.
                return_value = (**search_iterator)[key];
                break;//find the value, so break the loop.
            }
        }
    }
    if( return_value == "__ERRCODE: Couldn't find variable name\n"){
        cout << "Couldn't find the variable name.\n";
        return "__ERR";
    }

    return return_value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xd0, %rsp
movq %rdx, -0xa0(%rbp)
movq %rdi, -0x98(%rbp)
movq %rdi, %rax
movq %rax, -0x90(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x88(%rbp)
leaq -0x39(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x3460
movq -0x80(%rbp), %rdx
leaq 0xa3ad(%rip), %rsi      # 0x1104f
leaq -0x38(%rbp), %rdi
callq 0x40e0
jmp 0x6cad
leaq -0x39(%rbp), %rdi
callq 0x32b0
movq -0x88(%rbp), %rdi
callq 0xc8b0
movq %rax, -0x58(%rbp)
leaq -0x58(%rbp), %rdi
callq 0xc940
movq -0xa0(%rbp), %rsi
movq (%rax), %rdi
callq 0xc960
movq %rax, -0xa8(%rbp)
jmp 0x6ce7
movq -0xa8(%rbp), %rax
cmpq $0x0, %rax
je 0x6d67
movq -0x88(%rbp), %rdi
callq 0xc8b0
movq %rax, -0x60(%rbp)
leaq -0x60(%rbp), %rdi
callq 0xc940
movq -0xa0(%rbp), %rsi
movq (%rax), %rdi
callq 0xc9c0
movq %rax, -0xb0(%rbp)
jmp 0x6d25
movq -0xb0(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x3050
jmp 0x6d37
jmp 0x6e0e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x39(%rbp), %rdi
callq 0x32b0
jmp 0x6ed5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
jmp 0x6ecc
movq -0x88(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0x68(%rbp)
movq -0x88(%rbp), %rdi
callq 0xc8b0
movq %rax, -0x70(%rbp)
leaq -0x68(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xcaa0
testb $0x1, %al
jne 0x6d99
jmp 0x6e0c
leaq -0x68(%rbp), %rdi
callq 0xc940
movq -0xa0(%rbp), %rsi
movq (%rax), %rdi
callq 0xc960
movq %rax, -0xb8(%rbp)
jmp 0x6dba
movq -0xb8(%rbp), %rax
cmpq $0x0, %rax
je 0x6dfc
leaq -0x68(%rbp), %rdi
callq 0xc940
movq -0xa0(%rbp), %rsi
movq (%rax), %rdi
callq 0xc9c0
movq %rax, -0xc0(%rbp)
jmp 0x6de8
movq -0xc0(%rbp), %rsi
leaq -0x38(%rbp), %rdi
callq 0x3050
jmp 0x6dfa
jmp 0x6e0c
jmp 0x6dfe
leaq -0x68(%rbp), %rdi
callq 0xcad0
jmp 0x6d76
jmp 0x6e0e
leaq 0xa261(%rip), %rsi      # 0x11076
leaq -0x38(%rbp), %rdi
callq 0xcaf0
movb %al, -0xc1(%rbp)
jmp 0x6e26
movb -0xc1(%rbp), %al
testb $0x1, %al
jne 0x6e32
jmp 0x6e9c
movq 0x1019f(%rip), %rdi     # 0x16fd8
leaq 0xa25e(%rip), %rsi      # 0x1109e
callq 0x3250
jmp 0x6e47
leaq -0x71(%rbp), %rdi
movq %rdi, -0xd0(%rbp)
callq 0x3460
movq -0x98(%rbp), %rdi
movq -0xd0(%rbp), %rdx
leaq 0xa254(%rip), %rsi      # 0x110c0
callq 0x40e0
jmp 0x6e73
leaq -0x71(%rbp), %rdi
callq 0x32b0
movl $0x1, -0x78(%rbp)
jmp 0x6eb3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
leaq -0x71(%rbp), %rdi
callq 0x32b0
jmp 0x6ecc
movq -0x98(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x3190
movl $0x1, -0x78(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x31a0
movq -0x90(%rbp), %rax
addq $0xd0, %rsp
popq %rbp
retq
leaq -0x38(%rbp), %rdi
callq 0x31a0
movq -0x48(%rbp), %rdi
callq 0x3450
nop