// File: /workspace/github_cpp_makefile_star2_O2/eniac[P]Mantis/src/compile/compile_p4.cpp
// Function: transformMalleableTables(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, P4RMalleableTableNode*, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, P4RMalleableTableNode*>>>*, std::vector<AstNode*, std::allocator<AstNode*>>, int, int)
void transformMalleableTables(unordered_map<string, P4RMalleableTableNode*>* varTables, vector<AstNode*> nodeArray, int ing_iso_opt, int egr_iso_opt) {
    for (auto t : *varTables) {
        // Check if mbl table in ing/egr
        if(findTblInIng(t.second->table_->name_->toString(), nodeArray)) {
            if (((unsigned int)ing_iso_opt) & 0b10) {
                auto field = new FieldNode(new NameNode(new string(kP4rIngMetadataName)),
                                        new NameNode(new string("__vv")));
                auto readstmt = new TableReadStmtNode(TableReadStmtNode::EXACT, field);
                t.second->table_->reads_->list_->push_back(readstmt);
            }
        } else {
            if (((unsigned int)egr_iso_opt) & 0b10) {
                auto field = new FieldNode(new NameNode(new string(kP4rEgrMetadataName)),
                                        new NameNode(new string("__vv")));
                auto readstmt = new TableReadStmtNode(TableReadStmtNode::EXACT, field);
                t.second->table_->reads_->list_->push_back(readstmt);
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, -0x40(%rbp)
movl %edx, -0x3c(%rbp)
movq %rsi, -0x48(%rbp)
movq %rdi, %r12
addq $0x10, %r12
leaq -0x90(%rbp), %r14
movq (%r12), %r12
testq %r12, %r12
je 0x6ad89
leaq 0x8(%r12), %rsi
leaq -0x70(%rbp), %rdi
callq 0x710ac
movq -0x50(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x40(%rax), %rsi
movq (%rsi), %rax
movq %r14, %rdi
callq *(%rax)
movq %r14, %rdi
movq -0x48(%rbp), %rsi
callq 0x72c6e
movl %eax, %ebx
movq %r14, %rdi
callq 0x418c8
testb %bl, %bl
je 0x6acbb
testb $0x2, -0x3c(%rbp)
je 0x6ad7b
pushq $0x50
popq %rdi
callq 0x413f0
movq %rax, %r14
pushq $0x48
popq %rdi
callq 0x413f0
movq %rax, %r13
pushq $0x20
popq %rdi
callq 0x413f0
movq %rax, %r15
movq %rax, %rdi
leaq 0xffb0(%rip), %rsi      # 0x7abdb
leaq -0x38(%rbp), %rdx
callq 0x411c0
movq %r13, %rdi
movq %r15, %rsi
callq 0x4465a
pushq $0x48
popq %rdi
callq 0x413f0
movq %rax, %r15
pushq $0x20
popq %rdi
callq 0x413f0
movq %rax, %rbx
movq %rax, %rdi
leaq 0x1221d(%rip), %rsi     # 0x7ce7c
leaq -0x29(%rbp), %rdx
callq 0x411c0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4465a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4c88a
pushq $0x48
popq %rdi
callq 0x413f0
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x47dbc
movq %rbx, -0x38(%rbp)
movq -0x50(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x48(%rax), %rax
movq 0x40(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x44e2c
jmp 0x6ad7b
testb $0x2, -0x40(%rbp)
je 0x6ad7b
pushq $0x50
popq %rdi
callq 0x413f0
movq %rax, %r14
pushq $0x48
popq %rdi
callq 0x413f0
movq %rax, %r13
pushq $0x20
popq %rdi
callq 0x413f0
movq %rax, %rbx
movq %rax, %rdi
leaq 0xff09(%rip), %rsi      # 0x7abf9
leaq -0x38(%rbp), %rdx
callq 0x411c0
movq %r13, %rdi
movq %rbx, %rsi
callq 0x4465a
pushq $0x48
popq %rdi
callq 0x413f0
movq %rax, %r15
pushq $0x20
popq %rdi
callq 0x413f0
movq %rax, %rbx
movq %rax, %rdi
leaq 0x12158(%rip), %rsi     # 0x7ce7c
leaq -0x29(%rbp), %rdx
callq 0x411c0
movq %r15, %rdi
movq %rbx, %rsi
callq 0x4465a
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x4c88a
pushq $0x48
popq %rdi
callq 0x413f0
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x47dbc
movq %rbx, -0x38(%rbp)
movq -0x50(%rbp), %rax
movq 0x40(%rax), %rax
movq 0x48(%rax), %rax
movq 0x40(%rax), %rdi
leaq -0x38(%rbp), %rsi
callq 0x44e2c
leaq -0x70(%rbp), %rdi
callq 0x418c8
jmp 0x6aba2
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6ae06
jmp 0x6add4
jmp 0x6addc
movq %rax, %r12
movq %rbx, %rdi
jmp 0x6adc0
jmp 0x6adc7
jmp 0x6add4
jmp 0x6addc
jmp 0x6ade9
jmp 0x6adf5
jmp 0x6adf5
jmp 0x6adf5
jmp 0x6ae06
jmp 0x6add4
jmp 0x6addc
movq %rax, %r12
movq %r15, %rdi
callq 0x413a0
jmp 0x6add7
movq %rax, %r12
movq %rbx, %rdi
callq 0x413a0
jmp 0x6addf
movq %rax, %r12
movq %r13, %rdi
jmp 0x6ade2
movq %rax, %r12
movq %r15, %rdi
callq 0x413a0
jmp 0x6adf8
movq %rax, %r12
movq %rbx, %rdi
jmp 0x6adfb
jmp 0x6adf5
jmp 0x6adf5
movq %rax, %r12
movq %r14, %rdi
callq 0x413a0
jmp 0x6ae1a
jmp 0x6ae06
jmp 0x6ae06
movq %rax, %r12
jmp 0x6ae1a
movq %rax, %r12
leaq -0x90(%rbp), %rdi
callq 0x418c8
leaq -0x70(%rbp), %rdi
callq 0x418c8
movq %r12, %rdi
callq 0x41790