// File: /workspace/github_cpp_makefile_star2_O1/eniac[P]Mantis/src/compile/compile_p4.cpp
// Function: generateInitTableForIng(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int, 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, int>>>*, std::vector<AstNode*, std::allocator<AstNode*>>*, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, P4RMalleableValueNode*, 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, P4RMalleableValueNode*>>> const&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, P4RMalleableFieldNode*, 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, P4RMalleableFieldNode*>>> const&, int, bool)
int generateInitTableForIng(unordered_map<string, int>* mblUsages,
                               vector<AstNode*>* newNodes,
                               const unordered_map<string,
                                                   P4RMalleableValueNode*>& mblValues,
                               const unordered_map<string,
                                                   P4RMalleableFieldNode*>& mblFields,
                               int iso_opt, bool forIng) {

    // As the set of mbls in practice is small, currently a monolithic init for ing or egr
    ostringstream oss;
    string p4rInitActionName;
    string p4rSetVarTblName;
    string p4rMetadataName;
    
    if(forIng) {
        p4rInitActionName = string(kP4rIngInitAction);
        p4rSetVarTblName = "__tiSetVars";
        p4rMetadataName = string(kP4rIngMetadataName);
    } else {
        p4rInitActionName = string(kP4rEgrInitAction);
        p4rSetVarTblName = "__teSetVars";
        p4rMetadataName = string(kP4rEgrMetadataName);
    }

    oss << "action " << p4rInitActionName << "(";
    bool first = true;
    bool has_var = false;
    int num_vars = 0;
    for (auto kv : mblValues) {
        if(forIng && mblUsages->at(kv.first)==USAGE::EGRESS) {
            continue;
        } 
        if(!forIng && mblUsages->at(kv.first)==USAGE::INGRESS) {
            continue;
        }  
        if (first) {
            first = false;
        } else {
            oss << ", ";
        }
        has_var = true;
        oss << "p__" << kv.first;
        num_vars += 1;
    }
    for (auto kv : mblFields) {
        if(forIng && mblUsages->at(kv.first)==USAGE::EGRESS) {
            continue;
        } 
        if(!forIng && mblUsages->at(kv.first)==USAGE::INGRESS) {
            continue;
        }         
        if (first) {
            first = false;
        } else {
            oss << ", ";
        }
        has_var = true;
        oss << "p__" << kv.first << kP4rIndexSuffix;
        num_vars += 1;
    }

    if(has_var && iso_opt != 0) {
        oss << ", ";
    }

    if(iso_opt == 1) {
        oss << "__mv";
        num_vars += 1;
    } else if(iso_opt == 2) {
        oss << "__vv";
        num_vars += 1;
    } else if (iso_opt == 3) {
        oss << "__mv , __vv";
        num_vars += 2;
    }
    if(forIng) {
        PRINT_VERBOSE("Number of ing vars to set in init: %d\n", num_vars);
    } else {
        PRINT_VERBOSE("Number of egr vars to set in init: %d\n", num_vars);
    }

    oss << ") {\n";

    for (auto kv : mblValues) {
        if(forIng && mblUsages->at(kv.first)==USAGE::EGRESS) {
            continue;
        } 
        if(!forIng && mblUsages->at(kv.first)==USAGE::INGRESS) {
            continue;
        }        
        oss << "  modify_field(" << p4rMetadataName << "." << kv.first
                                << ", p__" << kv.first << ");\n";
    }

    for (auto kv : mblFields) {
        if(forIng && mblUsages->at(kv.first)==USAGE::EGRESS) {
            continue;
        } 
        if(!forIng && mblUsages->at(kv.first)==USAGE::INGRESS) {
            continue;
        }         
        oss << "  modify_field(" << p4rMetadataName << "."
                                << kv.first << kP4rIndexSuffix
                                << ", p__" << kv.first << kP4rIndexSuffix
                                << ");\n";
    }

    if(((unsigned int)iso_opt) & 0b1) {
        oss << "  modify_field(" << p4rMetadataName << "."
                                << "__mv, __mv"
                                << ");\n";
    } 
    if (((unsigned int)iso_opt) & 0b10) {
        oss << "  modify_field(" << p4rMetadataName << "."
                                << "__vv, __vv"
                                << ");\n";
    } 

    // pragma stage 0 not required due to the match dependency of later tables matching on __vv, __mv, field_alt
    oss << "}\n\n"
        << "table "
        << p4rSetVarTblName
        << " {\n"
        << "  actions {\n"
        << "    " << p4rInitActionName << ";\n"
        << "  }\n"
        << "  size : 1;\n"
        << "}\n\n";

    string* codeStr = new string(oss.str());
    string* objType = new string("table");
    string* tableName = new string(p4rSetVarTblName);

    newNodes->push_back(new UnanchoredNode(codeStr, objType, tableName));

    return num_vars;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movl %r9d, %r12d
movl %r8d, %r15d
movq %rcx, -0x90(%rbp)
movq %rdx, -0x98(%rbp)
movq %rsi, %r14
movq %rdi, -0x60(%rbp)
leaq -0x258(%rbp), %rdi
callq 0x2e550
leaq -0xc8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0xa8(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x78(%rbp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq -0x48(%rbp), %r13
leaq -0x58(%rbp), %rdi
testl %r12d, %r12d
je 0x6d604
movq %r13, (%rdi)
leaq 0xa7d3(%rip), %rsi      # 0x77d70
leaq 0xa7d7(%rip), %rdx      # 0x77d7b
callq 0x33112
leaq -0xd8(%rbp), %rdi
leaq -0x58(%rbp), %rbx
movq %rbx, %rsi
callq 0x2e4c0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x6d5c9
callq 0x2e360
leaq -0xb8(%rbp), %rdi
movq 0x8(%rdi), %rdx
leaq 0xc7f2(%rip), %rcx      # 0x79dcd
movl $0xb, %r8d
xorl %esi, %esi
callq 0x2e640
leaq -0x58(%rbp), %rdi
movq %r13, (%rdi)
leaq 0xa605(%rip), %rsi      # 0x77bfb
leaq 0xa60a(%rip), %rdx      # 0x77c07
callq 0x33112
jmp 0x6d673
movq %r13, (%rdi)
leaq 0xa7b7(%rip), %rsi      # 0x77dc5
leaq 0xa7bb(%rip), %rdx      # 0x77dd0
callq 0x33112
leaq -0xd8(%rbp), %rdi
leaq -0x58(%rbp), %rbx
movq %rbx, %rsi
callq 0x2e4c0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x6d63a
callq 0x2e360
leaq -0xb8(%rbp), %rdi
movq 0x8(%rdi), %rdx
leaq 0xc78d(%rip), %rcx      # 0x79dd9
movl $0xb, %r8d
xorl %esi, %esi
callq 0x2e640
leaq -0x58(%rbp), %rdi
movq %r13, (%rdi)
leaq 0xa5b2(%rip), %rsi      # 0x77c19
leaq 0xa5b7(%rip), %rdx      # 0x77c25
callq 0x33112
leaq -0x88(%rbp), %rdi
movq %rbx, %rsi
callq 0x2e4c0
movq (%rbx), %rdi
cmpq %r13, %rdi
je 0x6d68f
callq 0x2e360
leaq 0x8c1d(%rip), %rsi      # 0x762b3
leaq -0x258(%rbp), %rdi
movl $0x7, %edx
callq 0x2e440
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
leaq -0x258(%rbp), %rdi
callq 0x2e440
leaq 0xc4f9(%rip), %rsi      # 0x79bc1
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e440
movl %r15d, -0x64(%rbp)
movq %r14, -0xe0(%rbp)
movq -0x98(%rbp), %rax
movq 0x10(%rax), %r14
testq %r14, %r14
je 0x6d7d9
xorl %r13d, %r13d
movb $0x1, %r15b
movl $0x0, -0x2c(%rbp)
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x8(%r14), %rsi
movq 0x10(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x32f92
movq 0x28(%r14), %rax
movq %rax, -0x38(%rbp)
testb %r12b, %r12b
je 0x6d749
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df2b
cmpl $0x1, 0x28(%rax)
je 0x6d7b9
testb %r12b, %r12b
jne 0x6d764
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df2b
cmpl $0x0, 0x28(%rax)
je 0x6d7b9
testb $0x1, %r15b
je 0x6d76f
xorl %r15d, %r15d
jmp 0x6d787
movl $0x2, %edx
leaq -0x258(%rbp), %rdi
leaq 0xa7fd(%rip), %rsi      # 0x77f7f
callq 0x2e440
movl $0x3, %edx
leaq -0x258(%rbp), %rdi
leaq 0xc669(%rip), %rsi      # 0x79e03
callq 0x2e440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x258(%rbp), %rdi
callq 0x2e440
incl -0x2c(%rbp)
movb $0x1, %r13b
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6d7cb
callq 0x2e360
movq (%r14), %r14
testq %r14, %r14
jne 0x6d701
jmp 0x6d7e6
movb $0x1, %r15b
movl $0x0, -0x2c(%rbp)
xorl %r13d, %r13d
movq -0x90(%rbp), %rax
movq 0x10(%rax), %rbx
testq %rbx, %rbx
je 0x6d8ec
leaq -0x58(%rbp), %r14
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x8(%rbx), %rsi
movq 0x10(%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x32f92
movq 0x28(%rbx), %rax
movq %rax, -0x38(%rbp)
testb %r12b, %r12b
je 0x6d84a
movq -0x60(%rbp), %rdi
movq %r14, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df37
cmpl $0x1, 0x28(%rax)
je 0x6d8ce
testb %r12b, %r12b
jne 0x6d865
movq -0x60(%rbp), %rdi
movq %r14, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df37
cmpl $0x0, 0x28(%rax)
je 0x6d8ce
testb $0x1, %r15b
je 0x6d870
xorl %r15d, %r15d
jmp 0x6d888
movl $0x2, %edx
leaq -0x258(%rbp), %rdi
leaq 0xa6fc(%rip), %rsi      # 0x77f7f
callq 0x2e440
movl $0x3, %edx
leaq -0x258(%rbp), %rdi
leaq 0xc568(%rip), %rsi      # 0x79e03
callq 0x2e440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x258(%rbp), %rdi
callq 0x2e440
movl $0x5, %edx
movq %rax, %rdi
leaq 0xa67b(%rip), %rsi      # 0x77f3e
callq 0x2e440
incl -0x2c(%rbp)
movb $0x1, %r13b
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6d8e0
callq 0x2e360
movq (%rbx), %rbx
testq %rbx, %rbx
jne 0x6d7fe
movl -0x64(%rbp), %ebx
testl %ebx, %ebx
setne %al
testb %r13b, %al
je 0x6d911
leaq 0xa67f(%rip), %rsi      # 0x77f7f
leaq -0x258(%rbp), %rdi
movl $0x2, %edx
callq 0x2e440
cmpl $0x3, %ebx
je 0x6d957
cmpl $0x2, %ebx
je 0x6d93a
cmpl $0x1, %ebx
jne 0x6d973
leaq 0xc4e6(%rip), %rsi      # 0x79e0d
leaq -0x258(%rbp), %rdi
movl $0x4, %edx
callq 0x2e440
jmp 0x6d952
leaq 0xc4ab(%rip), %rsi      # 0x79dec
leaq -0x258(%rbp), %rdi
movl $0x4, %edx
callq 0x2e440
incl -0x2c(%rbp)
jmp 0x6d973
leaq 0xc487(%rip), %rsi      # 0x79de5
leaq -0x258(%rbp), %rdi
movl $0xb, %edx
callq 0x2e440
addl $0x2, -0x2c(%rbp)
leaq 0xc254(%rip), %rsi      # 0x79bce
leaq -0x258(%rbp), %rdi
movl $0x4, %edx
callq 0x2e440
movq -0x98(%rbp), %rax
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x6dabd
leaq -0x58(%rbp), %rbx
leaq -0x258(%rbp), %r15
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x8(%r13), %rsi
movq 0x10(%r13), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x32f92
movq 0x28(%r13), %rax
movq %rax, -0x38(%rbp)
testb %r12b, %r12b
je 0x6d9f6
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df43
cmpl $0x1, 0x28(%rax)
je 0x6da9e
testb %r12b, %r12b
jne 0x6da15
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df43
cmpl $0x0, 0x28(%rax)
je 0x6da9e
movl $0xf, %edx
movq %r15, %rdi
leaq 0xc3cd(%rip), %rsi      # 0x79df1
callq 0x2e440
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
movq %r15, %rdi
callq 0x2e440
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x9edb(%rip), %rsi      # 0x77929
callq 0x2e440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq %r14, %rdi
callq 0x2e440
movq %rax, %r14
movl $0x5, %edx
movq %rax, %rdi
leaq 0xc38c(%rip), %rsi      # 0x79e01
callq 0x2e440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq %r14, %rdi
callq 0x2e440
movl $0x3, %edx
movq %rax, %rdi
leaq 0x838b(%rip), %rsi      # 0x75e24
callq 0x2e440
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6dab0
callq 0x2e360
movq (%r13), %r13
testq %r13, %r13
jne 0x6d9aa
movq -0x90(%rbp), %rax
movq 0x10(%rax), %r13
testq %r13, %r13
je 0x6dc1a
leaq -0x58(%rbp), %rbx
leaq 0xa462(%rip), %r14      # 0x77f3e
leaq -0x48(%rbp), %rax
movq %rax, -0x58(%rbp)
movq 0x8(%r13), %rsi
movq 0x10(%r13), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x32f92
movq 0x28(%r13), %rax
movq %rax, -0x38(%rbp)
testb %r12b, %r12b
je 0x6db28
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df4f
cmpl $0x1, 0x28(%rax)
je 0x6dbfb
testb %r12b, %r12b
jne 0x6db47
movq -0x60(%rbp), %rdi
movq %rbx, %rsi
callq 0x635ae
testq %rax, %rax
je 0x6df4f
cmpl $0x0, 0x28(%rax)
je 0x6dbfb
movl $0xf, %edx
leaq -0x258(%rbp), %rdi
leaq 0xc297(%rip), %rsi      # 0x79df1
callq 0x2e440
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0x258(%rbp), %rdi
callq 0x2e440
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
leaq 0x9da1(%rip), %rsi      # 0x77929
callq 0x2e440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq %r15, %rdi
callq 0x2e440
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2e440
movl $0x5, %edx
movq %r15, %rdi
leaq 0xc242(%rip), %rsi      # 0x79e01
callq 0x2e440
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
movq %r15, %rdi
callq 0x2e440
movq %rax, %r15
movl $0x5, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x2e440
movl $0x3, %edx
movq %r15, %rdi
leaq 0x822e(%rip), %rsi      # 0x75e24
callq 0x2e440
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6dc0d
callq 0x2e360
movq (%r13), %r13
testq %r13, %r13
jne 0x6dadc
movl -0x64(%rbp), %r14d
testb $0x1, %r14b
je 0x6dc92
leaq 0xc1c6(%rip), %rsi      # 0x79df1
leaq -0x258(%rbp), %rdi
movl $0xf, %edx
callq 0x2e440
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0x258(%rbp), %rdi
callq 0x2e440
movq %rax, %rbx
leaq 0x9ccc(%rip), %rsi      # 0x77929
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e440
leaq 0xc196(%rip), %rsi      # 0x79e07
movl $0xa, %edx
movq %rbx, %rdi
callq 0x2e440
leaq 0x819f(%rip), %rsi      # 0x75e24
movl $0x3, %edx
movq %rbx, %rdi
callq 0x2e440
testb $0x2, %r14b
je 0x6dd06
leaq 0xc152(%rip), %rsi      # 0x79df1
leaq -0x258(%rbp), %rdi
movl $0xf, %edx
callq 0x2e440
movq -0x88(%rbp), %rsi
movq -0x80(%rbp), %rdx
leaq -0x258(%rbp), %rdi
callq 0x2e440
movq %rax, %rbx
leaq 0x9c58(%rip), %rsi      # 0x77929
movl $0x1, %edx
movq %rax, %rdi
callq 0x2e440
leaq 0xc12d(%rip), %rsi      # 0x79e12
movl $0xa, %edx
movq %rbx, %rdi
callq 0x2e440
leaq 0x812b(%rip), %rsi      # 0x75e24
movl $0x3, %edx
movq %rbx, %rdi
callq 0x2e440
leaq 0xc380(%rip), %rsi      # 0x7a08d
leaq -0x258(%rbp), %rdi
movl $0x3, %edx
callq 0x2e440
leaq 0x80a1(%rip), %rsi      # 0x75dc6
leaq -0x258(%rbp), %rdi
movl $0x6, %edx
callq 0x2e440
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
leaq -0x258(%rbp), %rdi
callq 0x2e440
movq %rax, %rbx
leaq 0xbe75(%rip), %rsi      # 0x79bcf
movl $0x3, %edx
movq %rax, %rdi
callq 0x2e440
leaq 0x806a(%rip), %rsi      # 0x75dd8
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2e440
leaq 0x802c(%rip), %rsi      # 0x75dae
movl $0x4, %edx
movq %rbx, %rdi
callq 0x2e440
movq -0xd8(%rbp), %rsi
movq -0xd0(%rbp), %rdx
movq %rbx, %rdi
callq 0x2e440
movq %rax, %rbx
leaq 0x8076(%rip), %rsi      # 0x75e25
movl $0x2, %edx
movq %rax, %rdi
callq 0x2e440
leaq 0x95f3(%rip), %rsi      # 0x773b6
movl $0x4, %edx
movq %rbx, %rdi
callq 0x2e440
leaq 0xc046(%rip), %rsi      # 0x79e1d
movl $0xc, %edx
movq %rbx, %rdi
callq 0x2e440
leaq 0xc2a2(%rip), %rsi      # 0x7a08d
movl $0x3, %edx
movq %rbx, %rdi
callq 0x2e440
movl $0x20, %edi
callq 0x2e3a0
movq %rax, %r14
leaq -0x250(%rbp), %rsi
movq %rax, %rdi
callq 0x2e660
movl $0x20, %edi
callq 0x2e3a0
movq %rax, %r15
addq $0x10, %rax
movq %rax, (%r15)
leaq 0xbed2(%rip), %rsi      # 0x79d01
leaq 0xbed0(%rip), %rdx      # 0x79d06
movq %r15, %rdi
callq 0x33112
movl $0x20, %edi
callq 0x2e3a0
movq %rax, %r12
addq $0x10, %rax
movq %rax, (%r12)
movq -0xb8(%rbp), %rsi
movq -0xb0(%rbp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x32f92
movl $0x58, %edi
callq 0x2e3a0
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x3e566
movq %r13, -0x58(%rbp)
movq -0xe0(%rbp), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x6dea9
movq %r13, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x6deb2
leaq -0x58(%rbp), %rdx
callq 0x333de
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x6dec7
callq 0x2e360
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x6dedf
callq 0x2e360
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x6def7
callq 0x2e360
movq 0x200aa(%rip), %rsi     # 0x8dfa8
leaq -0x258(%rbp), %rdi
callq 0x2e230
leaq -0x1e8(%rbp), %rdi
callq 0x2e150
movl -0x2c(%rbp), %eax
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb182(%rip), %rdi      # 0x790b4
callq 0x2e5c0
leaq 0xb176(%rip), %rdi      # 0x790b4
callq 0x2e5c0
leaq 0xb16a(%rip), %rdi      # 0x790b4
callq 0x2e5c0
leaq 0xb15e(%rip), %rdi      # 0x790b4
callq 0x2e5c0
jmp 0x6df95
jmp 0x6df95
jmp 0x6df95
jmp 0x6df95
movq %rax, %rbx
movq %r13, %rdi
jmp 0x6dfb8
movq %rax, %rbx
movq %r12, %rdi
jmp 0x6dfb8
jmp 0x6df95
movq %rax, %rbx
movq %r15, %rdi
jmp 0x6dfb8
jmp 0x6df95
movq %rax, %rbx
movq %r14, %rdi
jmp 0x6dfb8
jmp 0x6df95
jmp 0x6df95
jmp 0x6df95
jmp 0x6df95
jmp 0x6df95
jmp 0x6df95
jmp 0x6df95
movq %rax, %rbx
jmp 0x6dfbd
jmp 0x6dfa8
jmp 0x6dfa8
jmp 0x6dfa8
jmp 0x6dfa8
jmp 0x6dfa8
jmp 0x6dfa8
jmp 0x6dfa8
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x6dfbd
callq 0x2e360
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x6dfd2
callq 0x2e360
movq -0xb8(%rbp), %rdi
leaq -0xa8(%rbp), %rax
cmpq %rax, %rdi
je 0x6dfea
callq 0x2e360
movq -0xd8(%rbp), %rdi
leaq -0xc8(%rbp), %rax
cmpq %rax, %rdi
je 0x6e002
callq 0x2e360
movq 0x1ff9f(%rip), %rsi     # 0x8dfa8
leaq -0x258(%rbp), %rdi
callq 0x2e230
leaq -0x1e8(%rbp), %rdi
callq 0x2e150
movq %rbx, %rdi
callq 0x2e730