LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/././headers/import.h
// Function: config::~config()
~config()
        {
            if (ROB_num) delete ROB_num;
            if (int_add) delete int_add;
            if (fp_add) delete fp_add;
            if (fp_mul) delete fp_mul;
            if (ld_str) delete ld_str;
        }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0xc382
callq 0x3230
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xc390
callq 0x3230
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xc39e
callq 0x3230
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0xc3ac
callq 0x3230
movq 0x20(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0xc3c0
popq %rbx
popq %rbp
jmp 0x3230
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/instruction.cpp
// Function: instr_queue::ptr_advance()
bool instr_queue::ptr_advance()
{
    if (head >= size)
    {
        err_log("Instr queue acccess out of range while advancing");
        return false;
    }
    head ++;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movslq (%rdi), %r14
movq 0x8(%rdi), %r15
cmpq %r14, %r15
jbe 0xcc77
leal 0x1(%r14), %eax
movl %eax, (%rdi)
jmp 0xccb0
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x88cf(%rip), %rsi      # 0x15556
leaq 0x88f8(%rip), %rdx      # 0x15586
leaq -0x40(%rbp), %rbx
movq %rbx, %rdi
callq 0x721e
movq %rbx, %rdi
callq 0x97ab
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xccb0
callq 0x3230
cmpq %r14, %r15
seta %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xccd4
callq 0x3230
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/instruction.cpp
// Function: instr_queue::ptr_branch(int)
bool instr_queue::ptr_branch(int offset)
{
    int dest = offset + head + 1;
    if (dest >= size || dest < 0)
    {
        err_log("Instr queue acccess out of range while branching");
        return false;
    }
    head = dest;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movslq (%rdi), %rcx
movslq %esi, %rdx
leaq (%rcx,%rdx), %rax
incq %rax
cmpq %rax, 0x8(%rdi)
seta %sil
addq %rdx, %rcx
cmpl $-0x1, %ecx
setge %bl
andb %sil, %bl
je 0xcd10
movl %eax, (%rdi)
jmp 0xcd48
leaq -0x28(%rbp), %r15
movq %r15, -0x10(%r15)
leaq 0x8868(%rip), %rsi      # 0x15587
leaq 0x8891(%rip), %rdx      # 0x155b7
leaq -0x38(%rbp), %r14
movq %r14, %rdi
callq 0x721e
movq %r14, %rdi
callq 0x97ab
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xcd48
callq 0x3230
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r15, %rdi
je 0xcd66
callq 0x3230
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/issue.cpp
// Function: get_reg_or_rob(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, int&, memCell&)
void get_reg_or_rob(string regName, int &Q, memCell &V)
{
    auto found = RAT.find(regName);
    if (found != RAT.end())
    {
        int tmp = found->second;
        ROBEntry *R = CPU_ROB->get_entry(tmp);
        if (R->wrtnBack)
            V = R->value;
        else
            Q = tmp;
    }
    else
        reg->get(regName, V);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0xeea9(%rip), %rdi      # 0x1bc60
movq %r15, %rsi
callq 0x8d68
testq %rax, %rax
je 0xcde7
movl 0x28(%rax), %r15d
leaq 0xe599(%rip), %rax      # 0x1b368
movq (%rax), %rdi
movl %r15d, %esi
callq 0x7f98
cmpb $0x1, 0x1(%rax)
jne 0xce2e
movl 0x48(%rax), %eax
movl %eax, (%rbx)
jmp 0xce31
leaq 0xeeaa(%rip), %rax      # 0x1bc98
movq (%rax), %r14
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
callq 0x7180
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x135aa
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xce31
callq 0x3230
jmp 0xce31
movl %r15d, (%r14)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xce4f
callq 0x3230
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/issue.cpp
// Function: check_squash()
bool check_squash()
{
    msg_log("Checking squash status", 4);
    if (brcUnit.squash_ROB_i() > -1)
    {
        pthread_mutex_lock(&squash_mutex);
        instr_Q->squash = true;
        pthread_cond_broadcast(&squash_cond);
        pthread_mutex_unlock(&squash_mutex);
        at_rising_edge(next_vdd);
        at_falling_edge(next_vdd);
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x8774(%rip), %rsi      # 0x155e5
leaq 0x8783(%rip), %rdx      # 0x155fb
leaq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x721e
movq %rbx, %rdi
movl $0x4, %esi
callq 0x9f0f
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0xce9f
callq 0x3230
leaq 0xe4ea(%rip), %rdi      # 0x1b390
callq 0x8fd4
movl %eax, %ebx
testl %eax, %eax
js 0xcef9
leaq 0xe468(%rip), %r14      # 0x1b320
movq %r14, %rdi
callq 0x3380
leaq 0xe499(%rip), %rax      # 0x1b360
movq (%rax), %rax
movb $0x1, 0x4(%rax)
leaq 0xe41b(%rip), %rdi      # 0x1b2f0
callq 0x30f0
movq %r14, %rdi
callq 0x31e0
leaq 0xe45f(%rip), %r14      # 0x1b348
movq %r14, %rdi
callq 0x9feb
movq %r14, %rdi
callq 0xa049
testl %ebx, %ebx
setns %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq -0x30(%rbp), %rdi
cmpq %r14, %rdi
je 0xcf18
callq 0x3230
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/memory.cpp
// Function: memory::memory(int)
memory::memory(int sz)
{
    buf = new memCell[sz];
    for (int i = 0; i < sz; i++)
        buf[i].f = 0.;
    size = sz;
    Lfront = Lrear = 0;
    Sfront = Srear = 0;
    LDQ_lock = SDQ_lock = PTHREAD_MUTEX_INITIALIZER;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movb $0x0, 0x28(%rdi)
movl %esi, %r15d
leaq (,%r15,4), %rax
testl %esi, %esi
movq $-0x1, %rdi
cmovnsq %rax, %rdi
callq 0x3030
movq %rax, (%rbx)
testl %r14d, %r14d
jle 0xe899
xorl %eax, %eax
movq (%rbx), %rcx
movl $0x0, (%rcx,%rax,4)
incq %rax
cmpq %rax, %r15
jne 0xe887
movl %r14d, 0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xc(%rbx)
movups %xmm0, 0x30(%rbx)
movups %xmm0, 0x40(%rbx)
movups %xmm0, 0x50(%rbx)
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x70(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/memory.cpp
// Function: is_prev_index(int, int, int, int)
bool is_prev_index(int i, int j, int front, int rear)
{
    if (i == j) return false;
    if (rear < front)
    {
        rear += CPU_ROB->size;
        i += i<front?CPU_ROB->size:0;
        j += j<front?CPU_ROB->size:0;
    }
    return j - i > 0;
}

// Assembly:
cmpl %esi, %edi
jne 0xf7a6
xorl %eax, %eax
retq
pushq %rbp
movq %rsp, %rbp
cmpl %edx, %ecx
jge 0xf7db
xorl %eax, %eax
movl $0x0, %ecx
cmpl %edx, %edi
jge 0xf7c6
leaq 0xbba8(%rip), %rcx      # 0x1b368
movq (%rcx), %rcx
movl 0x10(%rcx), %ecx
cmpl %edx, %esi
jge 0xf7d7
leaq 0xbb97(%rip), %rax      # 0x1b368
movq (%rax), %rax
movl 0x10(%rax), %eax
addl %ecx, %edi
addl %eax, %esi
cmpl %edi, %esi
setg %al
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/memory.cpp
// Function: memory::setMem(valType, int, void*)
bool memory::setMem(valType type, int addr, void* val)
{
    if (addr>=size){
        err_log("Mem set out of range");
        return false;
    }
    if (type == INTGR)
        buf[addr].i = *(int*)val;
    else
        buf[addr].f = *(float*)val;
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebx
movl 0x8(%rdi), %r15d
cmpl %edx, %r15d
jle 0xf985
movq (%rdi), %rax
movslq %ebx, %rdx
testl %esi, %esi
je 0xf9c0
movss (%rcx), %xmm0
movss %xmm0, (%rax,%rdx,4)
jmp 0xf9c5
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x5e33(%rip), %rsi      # 0x157c8
leaq 0x5e40(%rip), %rdx      # 0x157dc
leaq -0x40(%rbp), %r14
movq %r14, %rdi
callq 0x721e
movq %r14, %rdi
callq 0x97ab
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xf9c5
callq 0x3230
jmp 0xf9c5
movl (%rcx), %ecx
movl %ecx, (%rax,%rdx,4)
cmpl %ebx, %r15d
setg %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0xf9e9
callq 0x3230
movq %rbx, %rdi
callq 0x3440
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/memory.cpp
// Function: memory::mem_automat()
void memory::mem_automat()
{
    mem_next_vdd = 0;
    while (true)
    {
        at_rising_edge(mem_next_vdd);
        if (Sfront == Srear && Lfront == Lrear && sys_clk.is_instr_ended())
            sys_clk.end_mem();
        if (squash_p.flag)
        {
            squash_p.flag = false;
            at_falling_edge(mem_next_vdd);
        }
        else
        {
            if (Sfront != Srear && Stor_Q[Sfront].ready && CPU_ROB->get_front() == Stor_Q[Sfront].rob_i)
                store(Stor_Q[Sfront]);
            else if(Lfront != Lrear && Load_Q[Lfront].ready)
                load(Load_Q[Lfront]);
            else
                at_falling_edge(mem_next_vdd);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x80(%rdi), %r14
movl $0x0, 0x80(%rdi)
leaq 0x1888(%rdi), %r12
leaq 0x88(%rdi), %r13
leaq 0xb4ba(%rip), %r15      # 0x1bca0
movq %r14, %rdi
callq 0x9feb
movl 0x14(%rbx), %eax
cmpl 0x18(%rbx), %eax
jne 0x10812
movl 0xc(%rbx), %eax
cmpl 0x10(%rbx), %eax
jne 0x10812
movq %r15, %rdi
callq 0x96da
testb %al, %al
je 0x10812
movq %r15, %rdi
callq 0x96f8
cmpb $0x1, 0x28(%rbx)
jne 0x10821
movb $0x0, 0x28(%rbx)
jmp 0x108b1
movslq 0x14(%rbx), %rax
cmpl 0x18(%rbx), %eax
je 0x10874
leaq (%rax,%rax,2), %rax
cmpb $0x1, 0x14(%r12,%rax,8)
jne 0x10874
leaq 0xab2b(%rip), %rax      # 0x1b368
movq (%rax), %rdi
callq 0x8028
movslq 0x14(%rbx), %rcx
leaq (%rcx,%rcx,2), %rcx
cmpl (%r12,%rcx,8), %eax
jne 0x10874
leaq (%r12,%rcx,8), %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0xe8d8
jmp 0x107e6
movslq 0xc(%rbx), %rax
cmpl 0x10(%rbx), %eax
je 0x108b1
leaq (%rax,%rax,2), %rax
cmpb $0x1, 0x14(%r13,%rax,8)
jne 0x108b1
leaq (,%rax,8), %rax
addq %r13, %rax
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rsp)
movups (%rax), %xmm0
movups %xmm0, (%rsp)
movq %rbx, %rdi
callq 0xedc4
jmp 0x107e6
movq %r14, %rdi
callq 0xa049
jmp 0x107e6
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/memory.cpp
// Function: init_main_mem()
void init_main_mem()
{
    while(pthread_create(&main_mem.mem_handle, NULL, [](void *arg)->void*{main_mem.mem_automat(); return NULL;}, NULL));
    while(pthread_create(&main_mem.SDQ_handle, NULL, [](void *arg)->void*{main_mem.SD_Q_automat(); return NULL;}, NULL));
    clk_wait_list.push_back(&main_mem.mem_next_vdd);
    clk_wait_list.push_back(&main_mem.SDQ_next_vdd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl $0x3088, %ebx           # imm = 0x3088
addq 0xa6f3(%rip), %rbx      # 0x1afc8
leaq 0xb4(%rip), %r14        # 0x10990
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x3460
testl %eax, %eax
jne 0x108dc
movl $0x3090, %ebx           # imm = 0x3090
addq 0xa6cd(%rip), %rbx      # 0x1afc8
leaq 0x9e(%rip), %r14        # 0x109a0
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x3460
testl %eax, %eax
jne 0x10902
leaq 0xb40c(%rip), %rax      # 0x1bd28
subq $-0x80, %rax
movq %rax, -0x18(%rbp)
leaq 0xb3e5(%rip), %rbx      # 0x1bd10
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x10946
movq %rax, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x10956
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x72bc
movq 0x8(%rbx), %rsi
movl $0x84, %eax
addq 0xa666(%rip), %rax      # 0x1afc8
movq %rax, -0x18(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x10976
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x10986
leaq 0xb393(%rip), %rdi      # 0x1bd10
leaq -0x18(%rbp), %rdx
callq 0x72bc
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/output.cpp
// Function: init_output_unit()
void init_output_unit()
{
    next_vdd = 0;
    output_QEntry tmp;
    tmp.iss_cyc = 0;
    tmp.name = "\nInstructions:\t\tISS\tEXE\tMEM\tWB\tCOMMMIT";
    CPU_output_Q.push_back(tmp);
    while(pthread_create(&handle, NULL, &output_automat, NULL));
    clk_wait_list.push_back(&next_vdd);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
xorl %eax, %eax
movl %eax, 0xc856(%rip)      # 0x1ede4
leaq -0x40(%rbp), %rdi
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movl %eax, -0x18(%r15)
leaq 0x340c(%rip), %rcx      # 0x159bd
movl $0x26, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x33b0
leaq 0xc7f9(%rip), %rdi      # 0x1edc0
leaq -0x48(%rbp), %rsi
callq 0x13256
leaq 0xc811(%rip), %rbx      # 0x1ede8
leaq -0xf57(%rip), %r14      # 0x11687
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
xorl %ecx, %ecx
callq 0x3460
testl %eax, %eax
jne 0x125de
leaq 0xc7ec(%rip), %rax      # 0x1ede4
movq %rax, -0x20(%rbp)
leaq 0x970d(%rip), %rcx      # 0x1bd10
movq 0x8(%rcx), %rsi
cmpq 0x10(%rcx), %rsi
je 0x12617
movq %rax, (%rsi)
addq $0x8, 0x8(%rcx)
jmp 0x12627
leaq 0x96f2(%rip), %rdi      # 0x1bd10
leaq -0x20(%rbp), %rdx
callq 0x72bc
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x12635
callq 0x3230
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x12642
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x12653
callq 0x3230
movq %rbx, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/registor.cpp
// Function: registor::registor(int)
registor::registor(int _RegSize):RegSize(_RegSize)
{
    intReg = new int[_RegSize];
    for (int i = 0; i<_RegSize; i++)
        intReg[i] = 0;
    // intReg[0] = 0;
    flpReg = new float[_RegSize];
    for (int i = 0; i<RegSize; i++)
        flpReg[i] = 0.;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r12d
movq %rdi, %rbx
movl %esi, 0x10(%rdi)
movl %esi, %r14d
shlq $0x2, %r14
testl %esi, %esi
movq $-0x1, %r15
cmovnsq %r14, %r15
movq %r15, %rdi
callq 0x3030
movq %rax, (%rbx)
testl %r12d, %r12d
jle 0x13566
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x3170
movq %r14, %rdi
callq 0x3030
movq %rax, 0x8(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3170
movq %r15, %rdi
callq 0x3030
movq %rax, 0x8(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/registor.cpp
// Function: registor::get(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, memCell&)
bool registor::get(string name, memCell &ret)
{
    int index = stoi(name.substr(1, name.size() - 1));
    if (index >= RegSize)
    {
        err_log(name + ": Reg access out of range");
        return false;
    }
    if (name[0] == 'R')
        ret.i = intReg[index];
    else if (name[0] == 'F')
        ret.f = flpReg[index];
    else
    {
        err_log("Reg name error");
        return false;
    }
    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdx, -0x38(%rbp)
movq %rsi, %r15
movq %rdi, -0x40(%rbp)
movq 0x8(%rsi), %rcx
decq %rcx
leaq -0xa8(%rbp), %r12
movl $0x1, %edx
movq %r12, %rdi
callq 0x3270
movq (%r12), %rbx
callq 0x3050
movq %rax, %r13
movl (%rax), %eax
movl %eax, -0x2c(%rbp)
movl $0x0, (%r13)
leaq -0x88(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rsi
movl $0xa, %edx
callq 0x3330
cmpq %rbx, (%r14)
je 0x13714
movq %rax, %r12
movslq %r12d, %rax
cmpq %r12, %rax
jne 0x13720
movl (%r13), %eax
cmpl $0x22, %eax
je 0x13720
testl %eax, %eax
jne 0x13644
movl -0x2c(%rbp), %eax
movl %eax, (%r13)
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x13659
callq 0x3230
movq -0x40(%rbp), %rcx
cmpl %r12d, 0x10(%rcx)
jle 0x1368c
movq (%r15), %rax
movzbl (%rax), %eax
cmpl $0x52, %eax
je 0x13677
cmpl $0x46, %eax
jne 0x136c8
addq $0x8, %rcx
movq (%rcx), %rax
movss (%rax,%r12,4), %xmm0
movq -0x38(%rbp), %rax
movss %xmm0, (%rax)
movb $0x1, %al
jmp 0x13702
leaq -0x50(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rbx
movq %rbx, %rdi
callq 0x7180
leaq 0x2333(%rip), %rsi      # 0x159e4
movq %rbx, %rdi
callq 0x34a0
leaq -0x60(%rbp), %rdi
callq 0x97ab
movq -0x60(%rbp), %rdi
jmp 0x136f6
leaq -0x70(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x2327(%rip), %rsi      # 0x159fe
leaq 0x232e(%rip), %rdx      # 0x15a0c
leaq -0x80(%rbp), %rbx
movq %rbx, %rdi
callq 0x721e
movq %rbx, %rdi
callq 0x97ab
movq -0x80(%rbp), %rdi
cmpq %r14, %rdi
je 0x13700
callq 0x3230
xorl %eax, %eax
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1e31(%rip), %rdi      # 0x1554c
callq 0x3180
leaq 0x1e25(%rip), %rdi      # 0x1554c
callq 0x3360
movq %rax, %rbx
movq -0x80(%rbp), %rdi
jmp 0x1373e
jmp 0x13737
movq %rax, %rbx
movq -0x60(%rbp), %rdi
cmpq %r14, %rdi
jne 0x13766
jmp 0x1376b
movq %rax, %rbx
cmpl $0x0, (%r13)
jne 0x13756
movl -0x2c(%rbp), %eax
movl %eax, (%r13)
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1376b
callq 0x3230
movq %rbx, %rdi
callq 0x3440
nop
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/registor.cpp
// Function: registor::clear()
void registor::clear()
{
    for (int i = 0; i<RegSize; i++)
        intReg[i] = 0;
    for (int i = 0; i<RegSize; i++)
        flpReg[i] = 0;
    return;
}

// Assembly:
cmpl $0x0, 0x10(%rdi)
jle 0x139bc
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
xorl %ecx, %ecx
movl $0x0, (%rax,%rcx,4)
incq %rcx
movslq 0x10(%rdi), %rdx
cmpq %rdx, %rcx
jl 0x13995
testl %edx, %edx
popq %rbp
jle 0x139bc
movq 0x8(%rdi), %rdi
shlq $0x2, %rdx
xorl %esi, %esi
jmp 0x3170
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/Ziang95[P]Tomasulo_simulator/reserv_station.cpp
// Function: resStation::squash(int)
void resStation::squash(int ROB_i)
{
    int R_f = CPU_ROB->get_front();
    int R_r = CPU_ROB->get_rear();
    if (is_prev_index(ROB_i, dest, R_f, R_r) || is_prev_index(ROB_i, Qj, R_f, R_r) || is_prev_index(ROB_i, Qk, R_f, R_r))
        busy = false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x7566(%rip), %r12      # 0x1b368
movq (%r12), %rdi
callq 0x8028
movl %eax, %r15d
movq (%r12), %rdi
callq 0x8030
movl %eax, %r12d
movl 0x4(%rbx), %esi
movl %r14d, %edi
movl %r15d, %edx
movl %eax, %ecx
callq 0xf79f
testb %al, %al
jne 0x13e58
movl 0x8(%rbx), %esi
movl %r14d, %edi
movl %r15d, %edx
movl %r12d, %ecx
callq 0xf79f
testb %al, %al
jne 0x13e58
movl 0xc(%rbx), %esi
movl %r14d, %edi
movl %r15d, %edx
movl %r12d, %ecx
callq 0xf79f
testb %al, %al
je 0x13e5b
movb $0x0, (%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/node.cpp
// Function: Node::Node(unsigned int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, DataType, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, AccessType, StatusType, Node*, std::__cxx11::list<Node*, std::allocator<Node*>>)
Node::Node(unsigned int objectIdentifier, std::string name, DataType dataType, std::string description, AccessType accessType, StatusType statusType, Node * pParentElement, std::list<Node *> childElementPointerList)
{
    m_objectIdentifier = objectIdentifier;
    m_name = name;
    m_dataType = dataType;
    m_description = description;
    m_accessType = accessType;
    m_statusType = statusType;
    m_pParentElement = pParentElement;
    m_childElementPointerList = childElementPointerList;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r9d, 0xc(%rsp)
movq %r8, 0x30(%rsp)
movq %rcx, %r12
movq %rdx, %rbp
movl %esi, %r15d
movq %rdi, %rbx
leaq 0x8(%rdi), %r14
leaq 0x18(%rdi), %rax
movq %rax, 0x10(%rsp)
movq %rax, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movb $0x0, 0x18(%rdi)
addq $0x28, %rdi
movq %rdi, 0x20(%rsp)
callq 0x1cc78
leaq 0x78(%rbx), %rax
movq %rax, 0x18(%rsp)
leaq 0x88(%rbx), %rax
movq %rax, 0x28(%rsp)
movq %rax, 0x78(%rbx)
xorl %eax, %eax
movq %rax, 0x80(%rbx)
movb $0x0, 0x88(%rbx)
leaq 0xa8(%rbx), %r13
movq %r13, 0xb0(%rbx)
movq %r13, 0xa8(%rbx)
movq %rax, 0xb8(%rbx)
movl %r15d, (%rbx)
movq %r14, %rdi
movq %rbp, %rsi
callq 0x41e0
movups (%r12), %xmm0
movups 0x10(%r12), %xmm1
movq 0x20(%rsp), %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
leaq 0x48(%rbx), %rdi
leaq 0x20(%r12), %rsi
callq 0x7570
leaq 0x60(%rbx), %rdi
addq $0x38, %r12
movq %r12, %rsi
callq 0xe988
movq 0x18(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x41e0
movq 0x80(%rsp), %rdx
movq 0x78(%rsp), %rax
movl 0x70(%rsp), %ecx
movl 0xc(%rsp), %esi
movl %esi, 0x98(%rbx)
movl %ecx, 0x9c(%rbx)
movq %rax, 0xa0(%rbx)
cmpq %rdx, %r13
je 0x1d7c2
movq (%rdx), %rsi
movq %r13, %rdi
callq 0x1d928
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x1d80b
movq %rax, %rbx
movq (%r13), %rdi
cmpq %r13, %rdi
je 0x1d7f7
movq (%rdi), %r15
movl $0x18, %esi
callq 0x4320
movq %r15, %rdi
cmpq %r13, %r15
jne 0x1d7e2
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x47cf
movq (%r14), %rdi
cmpq 0x10(%rsp), %rdi
je 0x1d825
movq 0x10(%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/manager.cpp
// Function: Manager::Manager()
Manager::Manager()
{
    m_pParser = std::make_unique<Parser>();
    m_pFileHandler = std::make_unique<FileHandler>();
    m_pCoder = std::make_unique<Coder>();
    m_pValidator = std::make_unique<Validator>();
    m_pTree = std::make_unique<Tree>();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rdi), %r15
leaq 0x18(%rdi), %r12
leaq 0x20(%rdi), %r13
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
movl $0x70, %edi
callq 0x4310
movq %rax, %rbp
movq %rax, %rdi
callq 0x8ee8
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x77de
movq %r14, %rdi
callq 0x746c
movl $0x20, %edi
callq 0x4310
movq %rax, %rbp
movq %rax, %rdi
callq 0x7dfc
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
movq 0x10(%rsp), %rdi
movq %rbp, %rsi
callq 0x7802
movq %r14, %rdi
callq 0x74a0
movl $0x8, %edi
callq 0x4310
movq %rax, %rbp
movq %rax, %rdi
callq 0x7f68
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
movq %r15, %rdi
movq %rbp, %rsi
callq 0x7826
movq %r14, %rdi
callq 0x74d4
movl $0x1, %edi
callq 0x4310
movq %rax, %rbp
movq %rax, %rdi
callq 0x7db0
leaq 0x8(%rsp), %r14
movq $0x0, (%r14)
movq %r12, %rdi
movq %rbp, %rsi
callq 0x784a
movq %r14, %rdi
callq 0x7508
movl $0x38, %edi
callq 0x4310
movq %rax, %rbp
movq %rax, %rdi
callq 0x1ccb0
leaq 0x8(%rsp), %rbx
movq $0x0, (%rbx)
movq %r13, %rdi
movq %rbp, %rsi
callq 0x786e
movq %rbx, %rdi
callq 0x753c
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movl $0x38, %esi
jmp 0x63b1
jmp 0x63bb
movq %rax, %r14
movl $0x1, %esi
jmp 0x63b1
jmp 0x63bb
movq %rax, %r14
movl $0x8, %esi
jmp 0x63b1
jmp 0x63bb
movq %rax, %r14
movl $0x20, %esi
jmp 0x63b1
jmp 0x63bb
movq %rax, %r14
movl $0x70, %esi
movq %rbp, %rdi
callq 0x4320
jmp 0x63be
movq %rax, %r14
movq %r13, %rdi
callq 0x753c
movq %r12, %rdi
callq 0x7508
movq %r15, %rdi
callq 0x74d4
movq 0x10(%rsp), %rdi
callq 0x74a0
movq %rbx, %rdi
callq 0x746c
movq %r14, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/manager.cpp
// Function: Manager::validate(DataType&, DataType&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&)
bool Manager::validate(DataType & dataType, DataType & nodeType, std::vector<std::string> & nodeNameVector)
{
    if (dataType.m_baseType == BaseDataType::SEQUENCE_OF)
    {
        nodeNameVector = nodeType.m_nodeNameList; 
        if (nodeNameVector.size() == 1)
        {
            for (std::vector<std::string>::size_type i = m_pParser -> m_customDataTypeVector.size() - 1; i != (std::vector<std::string>::size_type) - 1; i--)
            {
                if (m_pParser -> m_customDataTypeNameVector[i] == nodeNameVector[0])
                {
                    DataType type = m_pParser -> m_customDataTypeVector[i];
                    nodeNameVector = type.m_nodeNameList;
                }
            }
        }
    }
    return m_pValidator -> validate(dataType, nodeType); 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, 0x18(%rsp)
cmpl $0x6, (%rsi)
jne 0x654b
movq %rcx, %r15
movq 0x10(%rsp), %rax
leaq 0x20(%rax), %rsi
movq %rdi, 0x8(%rsp)
movq %rcx, %rdi
callq 0x7570
movq 0x8(%rsp), %rdi
movq 0x8(%r15), %rax
subq (%r15), %rax
cmpq $0x20, %rax
jne 0x654b
movq (%rdi), %rax
movq 0x8(%rax), %r13
subq (%rax), %r13
je 0x654b
movq %r13, %rax
sarq $0x4, %rax
movabsq $-0x3333333333333333, %r14 # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %r14
leaq 0x40(%rsp), %r12
addq $-0x18, %r13
movq %r14, %rbx
shlq $0x5, %rbx
addq $-0x18, %rbx
movq (%rdi), %rbp
movq 0x18(%rbp), %rax
movq (%r15), %rcx
movq (%rax,%rbx), %rdx
cmpq 0x8(%rcx), %rdx
jne 0x6537
testq %rdx, %rdx
je 0x64df
movq (%rcx), %rsi
movq -0x8(%rax,%rbx), %rdi
callq 0x4340
movq 0x8(%rsp), %rdi
leaq 0x40(%rsp), %r12
testl %eax, %eax
jne 0x6537
movq (%rbp), %rbp
leaq -0x18(,%r13), %rsi
addq %rbp, %rsi
addq %r13, %rbp
movups -0x20(%rsi), %xmm0
movups -0x10(%rsi), %xmm1
movaps %xmm1, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movq %r12, %rdi
callq 0x7892
leaq 0x58(%rsp), %rdi
movq %rbp, %rsi
callq 0x791c
movq %r15, %rdi
movq %r12, %rsi
callq 0x7570
leaq 0x20(%rsp), %rdi
callq 0x1cc96
leaq 0x40(%rsp), %r12
movq 0x8(%rsp), %rdi
decq %r14
addq $-0x50, %r13
addq $-0x20, %rbx
testq %r14, %r14
jne 0x64ab
movq 0x18(%rdi), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x7db4
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x1cc96
jmp 0x6587
movq %rax, %rbx
movq %r12, %rdi
callq 0x5f12
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/filehandler.cpp
// Function: FileHandler::readFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string FileHandler::readFile(std::string filePath)
{
    std::ifstream file(filePath);
    if (file.is_open())
    {
        auto ss = std::ostringstream{};
        ss << file.rdbuf();
        m_fileContent = ss.str();
        return m_fileContent; 
    }
    else
    {
        return "";
    } 
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x3a0, %rsp            # imm = 0x3A0
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x198(%rsp), %rdi
movq %rdx, %rsi
movl $0x8, %edx
callq 0x44d0
leaq 0x210(%rsp), %rdi
callq 0x40a0
testb %al, %al
je 0x7ef2
leaq 0x20(%rsp), %rdi
callq 0x4410
leaq 0x1a8(%rsp), %rsi
leaq 0x20(%rsp), %rdi
callq 0x4090
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x44b0
movq %rsp, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x43d0
movq (%r15), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x7eb9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x5f70
movq 0x220cf(%rip), %rsi     # 0x29fa8
leaq 0x20(%rsp), %rdi
callq 0x41d0
leaq 0x90(%rsp), %rdi
callq 0x4100
jmp 0x7f0b
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x16914(%rip), %rdx     # 0x1e814
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x6006
leaq 0x198(%rsp), %rdi
callq 0x40b0
movq %rbx, %rax
addq $0x3a0, %rsp            # imm = 0x3A0
popq %rbx
popq %r14
popq %r15
retq
jmp 0x7f31
jmp 0x7f2c
movq %rax, %rbx
jmp 0x7f52
movq %rax, %rbx
movq 0x2206d(%rip), %rsi     # 0x29fa8
leaq 0x20(%rsp), %rdi
callq 0x41d0
leaq 0x90(%rsp), %rdi
callq 0x4100
leaq 0x198(%rsp), %rdi
callq 0x40b0
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::encodeInteger(DataType&, int&)
std::vector<std::byte> Coder::encodeInteger(DataType & dataType, int & data)
{
    std::vector<std::byte> dataVector;
    dataVector.push_back(encodeID(dataType));
    int length = 0;
    std::vector<std::byte> dataInBytes = splitIntoBytes(data, length);
    std::vector<std::byte> lengthInBytes = encodeLength(length);
    dataVector.insert(dataVector.end(), lengthInBytes.begin(), lengthInBytes.end());
    dataVector.insert(dataVector.end(), dataInBytes.begin(), dataInBytes.end());
    return dataVector;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rdx, %rsi
callq 0x808c
leaq 0x8(%rsp), %rsi
movb %al, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
leaq 0x4(%rsp), %rcx
movl $0x0, (%rcx)
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x80d6
leaq 0x20(%rsp), %rdi
leaq 0x4(%rsp), %rdx
callq 0x8166
movq 0x8(%rbx), %rsi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rcx
movq %rbx, %rdi
callq 0x8cfe
movq 0x8(%rbx), %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
callq 0x8cfe
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x800e
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8025
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
jmp 0x8032
movq %rax, %r14
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x8051
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
jmp 0x8051
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x806f
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
jmp 0x806f
jmp 0x806c
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8083
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::splitIntoBytes(int&, int&)
std::vector<std::byte> Coder::splitIntoBytes(int & number, int & numberOfBytes)
{
    std::vector<std::byte> vectorOfBytes;
    if (number != 0)
    {
       numberOfBytes = getNumberOfBytes(number);
       for (int i = numberOfBytes - 1; i >= 0; i--) 
        {
           vectorOfBytes.push_back(static_cast<std::byte>(((number >> i * 8) & 0xFF))); 
        }
    }
    else
    {
        vectorOfBytes.push_back(static_cast<std::byte>(0));
    }
    
    return vectorOfBytes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
cmpl $0x0, (%rdx)
je 0x8126
movq %rdx, %r14
movl $0x4, (%rcx)
movl $0x18, %ebp
leaq 0x6(%rsp), %r15
movl (%r14), %eax
movl %ebp, %ecx
sarl %cl, %eax
movb %al, 0x6(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8bd8
addl $-0x8, %ebp
cmpl $-0x8, %ebp
jne 0x8106
jmp 0x8136
leaq 0x7(%rsp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8146
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x815d
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::encodeLength(int&)
std::vector<std::byte> Coder::encodeNULL(DataType & dataType)
{
    std::vector<std::byte> dataVector;
    dataVector.push_back(encodeID(dataType));
    dataVector.push_back(static_cast<std::byte>(0));
    return dataVector;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl (%rdx), %eax
testl %eax, %eax
movq %rdi, 0x10(%rsp)
je 0x81fb
movq %rdx, %r14
xorl %r12d, %r12d
movl $0xfffffff9, %ebp       # imm = 0xFFFFFFF9
movl %eax, %ecx
sarl $0x7, %ecx
incl %r12d
addl $0x7, %ebp
cmpl $0x80, %eax
movl %ecx, %eax
jae 0x819a
leal -0x1(%r12), %r13d
xorl %r15d, %r15d
xorl %ebx, %ebx
movl (%r14), %eax
cmpl %ebx, %r13d
jne 0x81d4
movl %ebp, %ecx
sarl %cl, %eax
andb $0x7f, %al
movb %al, 0xe(%rsp)
leaq 0xe(%rsp), %rsi
callq 0x8bd8
jmp 0x81e9
movl %r15d, %ecx
sarl %cl, %eax
orb $-0x80, %al
movb %al, 0xd(%rsp)
leaq 0xd(%rsp), %rsi
callq 0x8bd8
incl %ebx
addl $0x7, %r15d
cmpl %ebx, %r12d
movq 0x10(%rsp), %rdi
jne 0x81b6
jmp 0x820d
leaq 0xf(%rsp), %rsi
movb $0x0, (%rsi)
callq 0x8bd8
movq 0x10(%rsp), %rdi
movq %rdi, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8223
jmp 0x8223
movq %rax, %r14
movq 0x10(%rsp), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0x8244
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::encodeOctetString(DataType&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
std::vector<std::byte> Coder::encodeOctetString(DataType & dataType, std::string & data)
{
    std::vector<std::byte> dataVector;
    dataVector.push_back(encodeID(dataType));
    int length = data.size();
    std::vector<std::byte> lengthInBytes = encodeLength(length);
    std::vector<std::byte> dataInBytes = splitIntoBytes(data);
    dataVector.insert(dataVector.end(), lengthInBytes.begin(), lengthInBytes.end());
    dataVector.insert(dataVector.end(), dataInBytes.begin(), dataInBytes.end());
    return dataVector;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rcx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rdx, %rsi
callq 0x808c
movq %rsp, %rsi
movb %al, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
movl 0x8(%r14), %eax
leaq 0x34(%rsp), %rdx
movl %eax, (%rdx)
movq %rsp, %rdi
callq 0x8166
leaq 0x18(%rsp), %rdi
movq %r14, %rdx
callq 0x835a
movq 0x8(%rbx), %rsi
movq (%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %rbx, %rdi
callq 0x8cfe
movq 0x8(%rbx), %rsi
movq 0x18(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %rbx, %rdi
callq 0x8cfe
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x82de
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x82f4
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
retq
jmp 0x8301
movq %rax, %r14
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x8320
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
jmp 0x8320
movq %rax, %r14
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x833d
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
jmp 0x833d
jmp 0x833a
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8351
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::splitIntoBytes(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
std::vector<std::byte> Coder::splitIntoBytes(std::string & string)
{
    std::vector<std::byte> vectorOfBytes;
    for(std::string::size_type i = 0; i < string.size(); i++)
    {
        vectorOfBytes.push_back(static_cast<std::byte>(string[i]));
    }
    
    return vectorOfBytes;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
cmpq $0x0, 0x8(%rdx)
je 0x83a4
movq %rdx, %r14
xorl %r12d, %r12d
leaq 0x7(%rsp), %r15
movq (%r14), %rax
movb (%rax,%r12), %al
movb %al, 0x7(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8bd8
incq %r12
cmpq 0x8(%r14), %r12
jb 0x8385
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x83ca
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::encodeBoolean(DataType&, bool&)
std::vector<std::byte> Coder::encodeBoolean(DataType & dataType, bool & data)
{
    std::vector<std::byte> dataVector;
    dataVector.push_back(encodeID(dataType));
    dataVector.push_back(static_cast<std::byte>(1));
    if (data)
    {
        dataVector.push_back(static_cast<std::byte>(0xFF)); 
    }
    else
    {
        dataVector.push_back(static_cast<std::byte>(0x00)); 
    }
    return dataVector;
    
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rdx, %rsi
callq 0x808c
leaq 0x7(%rsp), %rsi
movb %al, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
leaq 0x6(%rsp), %rsi
movb $0x1, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
cmpb $0x1, (%r14)
jne 0x85d1
leaq 0x5(%rsp), %rsi
movb $-0x1, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
jmp 0x85e1
leaq 0x4(%rsp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
jmp 0x85f2
jmp 0x85f2
jmp 0x85f2
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8609
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::addInteger(DataType&, int&, int&, std::vector<std::byte, std::allocator<std::byte>>&)
void Coder::addInteger(DataType & dataType, int & data, int & lengthInBytes, std::vector<std::byte> & dataVector)
{
    std::vector<std::byte> vector;
    lengthInBytes += getNumberOfBytes(data) + 2;
    vector = encodeInteger(dataType, data);
    dataVector.insert(dataVector.end(), vector.begin(), vector.end());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %r8, %r15
movq %rdx, %rax
movq %rsi, %rdx
movq %rdi, %rsi
addl $0x6, (%rcx)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rcx
callq 0x7f72
movq (%r14), %rbx
movq 0x8(%r14), %rcx
movq 0x10(%r14), %r14
movq 0x8(%r15), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x8cfe
testq %rbx, %rbx
je 0x86f9
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4320
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
testq %rbx, %rbx
je 0x8719
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4320
movq %r15, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::addOctetString(DataType&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, int&, std::vector<std::byte, std::allocator<std::byte>>&)
void Coder::addOctetString(DataType & dataType, std::string & data, int & lengthInBytes, std::vector<std::byte> & dataVector)
{
    std::vector<std::byte> vector;
    lengthInBytes += getNumberOfBytes(data) + 2;
    vector = encodeOctetString(dataType, data);
    dataVector.insert(dataVector.end(), vector.begin(), vector.end());
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %rbx
movq %rcx, %r13
movq %rdx, %r14
movq %rsi, 0x8(%rsp)
movq %rdi, %r12
leaq 0x20(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rbp
movq %rbp, %rdi
callq 0x5f70
movl 0x8(%rbp), %eax
movl (%r13), %ecx
addl %ecx, %eax
addl $0x2, %eax
movl %eax, (%r13)
movq (%rbp), %rdi
cmpq %r15, %rdi
je 0x878d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4320
leaq 0x30(%rsp), %r13
movq %r13, %rdi
movq %r12, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
callq 0x824c
movq (%r13), %r14
movq 0x8(%r13), %rcx
movq 0x10(%r13), %r15
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8cfe
testq %r14, %r14
je 0x87d3
subq %r14, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x4320
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
testq %r14, %r14
je 0x87f8
subq %r14, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::addObjectIdentifier(DataType&, std::vector<unsigned int, std::allocator<unsigned int>>&, int&, std::vector<std::byte, std::allocator<std::byte>>&)
void Coder::addObjectIdentifier(DataType & dataType, std::vector<unsigned int> & data, int & lengthInBytes, std::vector<std::byte> & dataVector)
{
    std::vector<std::byte> vector;
    lengthInBytes += getNumberOfBytes(data) + 2;
    vector = encodeObjectIdentifier(dataType, data);
    dataVector.insert(dataVector.end(), vector.begin(), vector.end());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %r8, %rbx
movq %rcx, %r12
movq %rdx, %r14
movq %rsi, %r15
movq %rsp, %r13
movq %r13, %rdi
movq %rdx, %rsi
callq 0x7706
movq (%r13), %rdi
movq 0x8(%r13), %rax
subq %rdi, %rax
shrq $0x2, %rax
movl (%r12), %ecx
addl %ecx, %eax
incl %eax
movl %eax, (%r12)
testq %rdi, %rdi
je 0x8858
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
leaq 0x18(%rsp), %r12
movq %r12, %rdi
movq %r15, %rdx
movq %r14, %rcx
callq 0x83d2
movq (%r12), %r14
movq 0x8(%r12), %rcx
movq 0x10(%r12), %r15
movq 0x8(%rbx), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x8cfe
testq %r14, %r14
je 0x889b
subq %r14, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x4320
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
testq %r14, %r14
je 0x88bf
subq %r14, %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::addBoolean(DataType&, bool&, int&, std::vector<std::byte, std::allocator<std::byte>>&)
void Coder::addBoolean(DataType & dataType, bool & data, int & lengthInBytes, std::vector<std::byte> & dataVector)
{
    std::vector<std::byte> vector;
    lengthInBytes += 3;
    vector = encodeBoolean(dataType, data);
    dataVector.insert(dataVector.end(), vector.begin(), vector.end());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %r8, %r15
movq %rdx, %rax
movq %rsi, %rdx
addl $0x3, (%rcx)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rax, %rcx
callq 0x857a
movq (%r14), %rbx
movq 0x8(%r14), %rcx
movq 0x10(%r14), %r14
movq 0x8(%r15), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x8cfe
testq %rbx, %rbx
je 0x8928
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4320
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
testq %rbx, %rbx
je 0x8948
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4320
movq %r15, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::addNULL(DataType&, int&, std::vector<std::byte, std::allocator<std::byte>>&)
void Coder::addNULL(DataType & dataType, int & lengthInBytes, std::vector<std::byte> & dataVector)
{
    std::vector<std::byte> vector;
    lengthInBytes += 2;
    vector = encodeNULL(dataType);
    dataVector.insert(dataVector.end(), vector.begin(), vector.end());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r15
addl $0x2, (%rdx)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rsi, %rdx
callq 0x8612
movq (%r14), %rbx
movq 0x8(%r14), %rcx
movq 0x10(%r14), %r14
movq 0x8(%r15), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x8cfe
testq %rbx, %rbx
je 0x899c
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4320
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
testq %rbx, %rbx
je 0x89bc
subq %rbx, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4320
movq %r15, %rdi
callq 0x4550
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::endSubSequence(int&, int&, std::vector<std::byte, std::allocator<std::byte>>&)
void Coder::endSubSequence(int & lengthInBytesUpper, int & lengthInBytesLower, std::vector<std::byte> & beginVector)
{
    lengthInBytesUpper += lengthInBytesLower + 2;
    std::vector<std::byte> lengthInBytesVector = encodeLength(lengthInBytesLower);
    beginVector.insert(beginVector.end(), lengthInBytesVector.begin(), lengthInBytesVector.end());
    m_endSequenceCount++;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rcx, %r14
movq %rdi, %rbx
movl (%rdx), %eax
movl (%rsi), %ecx
leal 0x2(%rax,%rcx), %eax
movl %eax, (%rsi)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x8166
movq 0x8(%r14), %rsi
movq (%r15), %rdx
movq 0x8(%r15), %rcx
movq %r14, %rdi
callq 0x8cfe
incl 0x4(%rbx)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8a8f
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x8ab3
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x4320
movq %rbx, %rdi
callq 0x4550
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::encodeSequence(std::vector<std::byte, std::allocator<std::byte>>&, std::vector<std::byte, std::allocator<std::byte>>&)
std::vector<std::byte> Coder::encodeSequence(std::vector<std::byte> & beginVector, std::vector<std::byte> & endVector)
{
    if (m_startSequenceCount == m_endSequenceCount)
    {
        beginVector.insert(beginVector.end(), endVector.begin(), endVector.end());
        return beginVector;
    }
    else
    {
        beginVector.clear();
        return beginVector;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rdi, %rbx
movl (%rsi), %eax
cmpl 0x4(%rsi), %eax
jne 0x8ae2
movq 0x8(%r14), %rsi
movq (%rcx), %rdx
movq 0x8(%rcx), %rcx
movq %r14, %rdi
callq 0x8cfe
jmp 0x8aef
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x8aef
movq %rax, 0x8(%r14)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7786
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/EmbeddedPaul166[P]SNMP-Agent/src/coder.cpp
// Function: Coder::splitIntoBytes(int&)
std::vector<std::byte> Coder::splitIntoBytes(int & number)
{
    std::vector<std::byte> vectorOfBytes;
    if (number != 0)
    {
        int numberOfBytes = getNumberOfBytes(number);
        for (int i = numberOfBytes - 1; i >= 0; i--)
        {
           vectorOfBytes.push_back(static_cast<std::byte>(((number >> i * 8) & 0xFF))); 
        }
    }
    else
    {
        vectorOfBytes.push_back(static_cast<std::byte>(0));
    }
    
    return vectorOfBytes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
cmpl $0x0, (%rdx)
je 0x8b98
movq %rdx, %r14
movl $0x18, %ebp
leaq 0x6(%rsp), %r15
movl (%r14), %eax
movl %ebp, %ecx
sarl %cl, %eax
movb %al, 0x6(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8bd8
addl $-0x8, %ebp
cmpl $-0x8, %ebp
jne 0x8b78
jmp 0x8ba8
leaq 0x7(%rsp), %rsi
movb $0x0, (%rsi)
movq %rbx, %rdi
callq 0x8bd8
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x8bb8
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x8bcf
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x4320
movq %r14, %rdi
callq 0x4550
nop