LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/controller.cc
// Function: controller::send_data_via_read_network(unsigned char, unsigned char, unsigned short, unsigned short)
void controller::send_data_via_read_network(uint8_t operand, uint8_t network, uint16_t idx_packet, data_type data)
{
  assert(idx_packet < size_packetArr[operand]);

  configNetwork[network] = 0;
  forwardDataToNetwork[network] = 1;

  rowTagDataToNetwork[network] = packetArr[operand][idx_packet].getColTag();
  colTagDataToNetwork[network] = packetArr[operand][idx_packet].getRowTag();
  dataOutToNetwork[network]    = data;
}

// Assembly:
movq $0x60b5e8, %rax         # imm = 0x60B5E8
movq (%rax), %r9
movl %esi, %eax
cmpw %cx, (%r9,%rax,2)
jbe 0x410ffb
movq 0x58(%rdi), %rsi
movzbl %dl, %edx
movb $0x0, (%rsi,%rdx)
movq 0x60(%rdi), %rsi
movb $0x1, (%rsi,%rdx)
movq $0x60b5f8, %rsi         # imm = 0x60B5F8
movq (%rsi), %r9
shll $0x3, %eax
movq (%r9,%rax), %r9
movzwl %cx, %ecx
shll $0x2, %ecx
movb 0x1(%r9,%rcx), %r9b
movq 0x70(%rdi), %r10
movb %r9b, (%r10,%rdx)
movq (%rsi), %rsi
movq (%rsi,%rax), %rax
movb (%rax,%rcx), %al
movq 0x78(%rdi), %rcx
movb %al, (%rcx,%rdx)
movq 0x68(%rdi), %rax
movw %r8w, (%rax,%rdx,2)
retq
pushq %rax
leaq 0x184ce6(%rip), %rdi    # 0x595ce9
leaq 0x184b60(%rip), %rsi    # 0x595b6a
leaq 0x184cfd(%rip), %rcx    # 0x595d0e
movl $0x25e, %edx            # imm = 0x25E
callq 0x4d8100
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./include/dma.hh
// Function: void DMA::prefetch<unsigned short>(unsigned short*, unsigned short*, unsigned int)
void prefetch(Type *ptr_src, Type *ptr_dest, uint32_t count)
  {
    assert((*req_from_compute_device == true) && "Req signal from compute device is not generated.");
    assert((prefetch_in_progress == false) && "DMA cannot handle more than one prefetch request.");
    assert((writeback_in_progress == false) && "DMA cannot handle more than one read/write request.");

    uint64_t total_bytes = count;
    memcpy(ptr_dest, ptr_src, total_bytes);

    delay_prefetch = calculate_data_transfer_delay(total_bytes);
    prefetch_in_progress = true;
  }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
cmpb $0x0, (%rax)
je 0x41105e
movq %rdi, %rbx
cmpb $0x0, 0x11(%rdi)
jne 0x41107d
cmpb $0x0, 0x12(%rbx)
jne 0x41109c
movl %ecx, %ebp
movl %ecx, %eax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x401070
movq %rbx, %rdi
movl %ebp, %esi
callq 0x411196
movl %eax, 0x1c(%rbx)
movb $0x1, 0x11(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x184dec(%rip), %rdi    # 0x595e51
leaq 0x184e3e(%rip), %rsi    # 0x595eaa
leaq 0x184e48(%rip), %rcx    # 0x595ebb
movl $0x14, %edx
callq 0x4d8100
leaq 0x184e7c(%rip), %rdi    # 0x595f00
leaq 0x184e1f(%rip), %rsi    # 0x595eaa
leaq 0x184e29(%rip), %rcx    # 0x595ebb
movl $0x15, %edx
callq 0x4d8100
leaq 0x184eb4(%rip), %rdi    # 0x595f57
leaq 0x184e00(%rip), %rsi    # 0x595eaa
leaq 0x184e0a(%rip), %rcx    # 0x595ebb
movl $0x16, %edx
callq 0x4d8100
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./include/dma.hh
// Function: void DMA::write_back<unsigned short>(unsigned short*, unsigned short*, unsigned int)
void write_back(Type *ptr_src, Type *ptr_dest, uint32_t count)
  {
    assert((*req_from_compute_device == true) && "Req signal from compute device is not generated.");
    assert((prefetch_in_progress == false) && "DMA cannot handle more than one read/write request.");
    assert((writeback_in_progress == false) && "DMA cannot handle more than one read/write request.");

    uint64_t total_bytes = count;
    memcpy(ptr_dest, ptr_src, total_bytes);

    delay_write_back = calculate_data_transfer_delay(total_bytes);
    writeback_in_progress = true;
  }

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
cmpb $0x0, (%rax)
je 0x4110fe
movq %rdi, %rbx
cmpb $0x0, 0x11(%rdi)
jne 0x41111d
cmpb $0x0, 0x12(%rbx)
jne 0x41113c
movl %ecx, %ebp
movl %ecx, %eax
movq %rdx, %rdi
movq %rax, %rdx
callq 0x401070
movq %rbx, %rdi
movl %ebp, %esi
callq 0x411196
movl %eax, 0x20(%rbx)
movb $0x1, 0x12(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x184d4c(%rip), %rdi    # 0x595e51
leaq 0x184d9e(%rip), %rsi    # 0x595eaa
leaq 0x184e9e(%rip), %rcx    # 0x595fb1
movl $0x23, %edx
callq 0x4d8100
leaq 0x184ed4(%rip), %rdi    # 0x595ff8
leaq 0x184d7f(%rip), %rsi    # 0x595eaa
leaq 0x184e7f(%rip), %rcx    # 0x595fb1
movl $0x24, %edx
callq 0x4d8100
leaq 0x184e14(%rip), %rdi    # 0x595f57
leaq 0x184d60(%rip), %rsi    # 0x595eaa
leaq 0x184e60(%rip), %rcx    # 0x595fb1
movl $0x25, %edx
callq 0x4d8100
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/network.cc
// Function: MultiCastNetwork_Input::MultiCastNetwork_Input()
MultiCastNetwork_Input::MultiCastNetwork_Input()
{
  rowWiseMC = new MultiCastController_InputNetwork[nRows_PE_Array];
  colWiseMC = new MultiCastController_InputNetwork*[nRows_PE_Array];
  for(uint16_t i=0; i < nRows_PE_Array; i++) {
    colWiseMC[i] = new MultiCastController_InputNetwork[nCols_PE_Array];
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, (%rsp)
movq $0x60b5ac, %rax         # imm = 0x60B5AC
movzwl (%rax), %r15d
movl %r15d, %edi
shll $0x6, %edi
orq $0x8, %rdi
callq 0x418d20
leaq 0x8(%rax), %rcx
movq %r15, (%rax)
testl %r15d, %r15d
je 0x411297
addq $0x20, %rax
movl %r15d, %edx
shll $0x6, %edx
xorl %esi, %esi
xorl %edi, %edi
movl %esi, (%rax,%rdi)
movw $0x0, 0x24(%rax,%rdi)
movl %esi, 0x1f(%rax,%rdi)
movq $0x0, 0x18(%rax,%rdi)
addq $0x40, %rdi
cmpq %rdi, %rdx
jne 0x411277
movq (%rsp), %rbx
movq %rcx, (%rbx)
leal (,%r15,8), %edi
callq 0x418d20
movq %rax, 0x8(%rbx)
testq %r15, %r15
je 0x41131c
movq $0x60b5ae, %rax         # imm = 0x60B5AE
movzwl (%rax), %r12d
movl %r12d, %r13d
shll $0x6, %r13d
leaq 0x8(%r13), %r14
xorl %ebp, %ebp
xorl %ebx, %ebx
movq %r14, %rdi
callq 0x418d20
movq %r12, (%rax)
testq %r12, %r12
je 0x411304
leaq 0x20(%rax), %rcx
xorl %edx, %edx
movl %ebp, (%rcx,%rdx)
movw $0x0, 0x24(%rcx,%rdx)
movl %ebp, 0x1f(%rcx,%rdx)
movq $0x0, 0x18(%rcx,%rdx)
addq $0x40, %rdx
cmpq %rdx, %r13
jne 0x4112e4
addq $0x8, %rax
movq (%rsp), %rcx
movq 0x8(%rcx), %rcx
movq %rax, (%rcx,%rbx,8)
incq %rbx
cmpq %r15, %rbx
jne 0x4112ce
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/network.cc
// Function: MultiCastNetwork_Input::~MultiCastNetwork_Input()
MultiCastNetwork_Input::~MultiCastNetwork_Input()
{

  for(uint16_t i=0; i < nRows_PE_Array; i++) {
    delete[] colWiseMC[i];
  }
  delete[] colWiseMC;
  delete[] rowWiseMC;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq $0x60b5ac, %r14         # imm = 0x60B5AC
movzwl (%r14), %eax
testw %ax, %ax
je 0x411378
xorl %r15d, %r15d
movq 0x8(%rbx), %rcx
movq (%rcx,%r15,8), %rdi
testq %rdi, %rdi
je 0x41136d
movq -0x8(%rdi), %rsi
addq $-0x8, %rdi
shlq $0x6, %rsi
orq $0x8, %rsi
callq 0x417800
movzwl (%r14), %eax
incq %r15
movzwl %ax, %ecx
cmpq %rcx, %r15
jb 0x411347
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x411386
callq 0x4177f0
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4113a8
movq -0x8(%rdi), %rsi
addq $-0x8, %rdi
shlq $0x6, %rsi
orq $0x8, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x417800
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/network.cc
// Function: MultiCastNetwork_Input::execute()
void MultiCastNetwork_Input::execute()
{
  for(uint16_t i=0; i < nRows_PE_Array; i++) {
    for(uint16_t j=0; j < nCols_PE_Array; j++) {
      colWiseMC[i][j].execute();
    }
  }

  for(uint16_t i=0; i < nRows_PE_Array; i++) {
    rowWiseMC[i].execute();
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq $0x60b5ac, %r14         # imm = 0x60B5AC
movzwl (%r14), %ecx
testw %cx, %cx
je 0x411651
movq %rdi, %rbx
movq $0x60b5ae, %r15         # imm = 0x60B5AE
movzwl (%r15), %eax
xorl %r12d, %r12d
testw %ax, %ax
je 0x41161e
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
callq 0x411660
incq %rbp
movzwl (%r15), %eax
addq $0x40, %r13
cmpq %rax, %rbp
jb 0x4115f8
movzwl (%r14), %ecx
jmp 0x411620
xorl %eax, %eax
incq %r12
movzwl %cx, %edx
cmpq %rdx, %r12
jb 0x4115ee
testw %cx, %cx
je 0x411651
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%rbx), %rdi
addq %r15, %rdi
callq 0x411660
incq %r12
movzwl (%r14), %eax
addq $0x40, %r15
cmpq %rax, %r12
jb 0x411636
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/network.cc
// Function: MultiCastNetwork_Output::~MultiCastNetwork_Output()
MultiCastNetwork_Output::~MultiCastNetwork_Output()
{

  for(uint16_t i=0; i < nRows_PE_Array; i++) {
    delete[] colWiseMC[i];
  }
  delete[] colWiseMC;
  delete[] rowWiseMC;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq $0x60b5ac, %rax         # imm = 0x60B5AC
movzwl (%rax), %eax
testw %ax, %ax
je 0x4123b9
xorl %r12d, %r12d
movq 0x8(%rbx), %rcx
movq (%rcx,%r12,8), %r14
testq %r14, %r14
je 0x4123ae
movq -0x8(%r14), %r13
testq %r13, %r13
je 0x412385
leaq -0x18(%r14), %rbp
leaq (,%r13,8), %rax
leaq (%rax,%rax,2), %r15
leaq (%r15,%rbp), %rdi
callq 0x41279c
addq $-0x18, %r15
jne 0x412376
addq $-0x8, %r14
leaq (,%r13,2), %rax
addq %r13, %rax
leaq 0x8(,%rax,8), %rsi
movq %r14, %rdi
callq 0x417800
movq $0x60b5ac, %rax         # imm = 0x60B5AC
movzwl (%rax), %eax
incq %r12
movzwl %ax, %ecx
cmpq %rcx, %r12
jb 0x412350
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x4123c7
callq 0x4177f0
movq (%rbx), %r14
testq %r14, %r14
je 0x41241d
leaq -0x8(%r14), %rbx
movq -0x8(%r14), %r15
testq %r15, %r15
je 0x4123fb
addq $-0x18, %r14
leaq (,%r15,8), %rax
leaq (%rax,%rax,2), %r12
leaq (%r14,%r12), %rdi
callq 0x41279c
addq $-0x18, %r12
jne 0x4123ec
leaq (%r15,%r15,2), %rax
leaq 0x8(,%rax,8), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x417800
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/network.cc
// Function: MultiCastNetwork_Output::execute()
void MultiCastNetwork_Output::execute()
{
  for(uint16_t i=0; i < nRows_PE_Array; i++) {
    rowWiseMC[i].execute(i, 0);
  }

  for(uint16_t i=0; i < nRows_PE_Array; i++) {
    for(uint16_t j=0; j < nCols_PE_Array; j++) {
      colWiseMC[i][j].execute(i, j);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq $0x60b5ac, %r14         # imm = 0x60B5AC
cmpw $0x0, (%r14)
je 0x412735
movq %rdi, %rbx
xorl %r15d, %r15d
xorl %r12d, %r12d
movq (%rbx), %rdi
addq %r15, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x412744
incq %r12
movzwl (%r14), %eax
addq $0x18, %r15
cmpq %rax, %r12
jb 0x4126c2
testw %ax, %ax
je 0x412735
movq $0x60b5ae, %r15         # imm = 0x60B5AE
movzwl (%r15), %ecx
xorl %r12d, %r12d
testw %cx, %cx
je 0x412728
xorl %r13d, %r13d
xorl %ebp, %ebp
movq 0x8(%rbx), %rax
movq (%rax,%r12,8), %rdi
addq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x412744
incq %rbp
movzwl (%r15), %ecx
addq $0x18, %r13
cmpq %rcx, %rbp
jb 0x4126fe
movzwl (%r14), %eax
jmp 0x41272a
xorl %ecx, %ecx
incq %r12
movzwl %ax, %edx
cmpq %rdx, %r12
jb 0x4126f4
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/network.cc
// Function: MultiCastController_OutputNetwork::execute(unsigned short, unsigned short)
void MultiCastController_OutputNetwork::execute(uint16_t rowId=0, uint16_t colId=0)
{
  uint16_t num_inputBus = (isRowWise_controller) ? nCols_PE_Array : 1;
  bool out_write_back = false;
  data_type out_data = 0;

  for(uint16_t it=0; it < num_inputBus; it++)
  {
    out_data     |= *(dataIn[it]);
    out_write_back |= *(writeBackIn[it]);
  }
  dataOut  = out_data;
  writeBackOut = out_write_back;
}

// Assembly:
movq $0x60b5ae, %rax         # imm = 0x60B5AE
movzwl (%rax), %ecx
cmpb $0x0, 0x14(%rdi)
movl $0x1, %eax
cmovnel %ecx, %eax
testl %eax, %eax
je 0x41278a
movq (%rdi), %rdx
movq 0x8(%rdi), %rsi
movl %eax, %r8d
xorl %r9d, %r9d
xorl %ecx, %ecx
xorl %eax, %eax
movq (%rsi,%r9,8), %r10
orw (%r10), %cx
movq (%rdx,%r9,8), %r10
andb $0x1, %al
orb (%r10), %al
incq %r9
cmpq %r9, %r8
jne 0x41276f
jmp 0x41278e
xorl %eax, %eax
xorl %ecx, %ecx
movw %cx, 0x12(%rdi)
movb %al, 0x10(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/../argparse/argparse.hpp
// Function: ArgumentParser::Argument::Argument(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool, char)
Argument(const String& _short_name, const String& _name, bool _optional, char nargs)
                : short_name(_short_name), name(_name), optional(_optional) {
            if (nargs == '+' || nargs == '*') {
                variable_nargs = nargs;
                fixed = false;
            } else {
                fixed_nargs = nargs;
                fixed = true;
            }
        }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r15
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
movq %rax, %rsi
callq 0x40e292
leaq 0x20(%rbx), %rdi
leaq 0x30(%rbx), %rax
movq %rax, 0x20(%rbx)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
callq 0x40e292
movb %r14b, 0x40(%rbx)
movl %ebp, %eax
andb $-0x2, %al
cmpb $0x2a, %al
jne 0x413f04
movb %bpl, 0x48(%rbx)
xorl %eax, %eax
jmp 0x413f0e
movsbq %bpl, %rax
movq %rax, 0x48(%rbx)
movb $0x1, %al
movb %al, 0x50(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x413f31
movq (%r12), %rsi
incq %rsi
callq 0x4177e0
movq %r14, %rdi
callq 0x4c34a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/../argparse/argparse.hpp
// Function: ArgumentParser::insertArgument(ArgumentParser::Argument const&)
void insertArgument(const Argument& arg) {
        size_t N = arguments_.size();
        arguments_.push_back(arg);
        if (arg.fixed && arg.fixed_nargs <= 1) {
            variables_.push_back(String());
        } else {
            variables_.push_back(StringVector());
        }
        if (!arg.short_name.empty()) index_[arg.short_name] = N;
        if (!arg.name.empty()) index_[arg.name] = N;
        if (!arg.optional) required_++;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
addq $0x88, %rdi
movq 0x90(%rbx), %r15
subq 0x88(%rbx), %r15
callq 0x414246
cmpb $0x1, 0x50(%r14)
jne 0x413fd4
cmpq $0x1, 0x48(%r14)
ja 0x413fd4
leaq 0x20(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
leaq 0x8(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x414270
leaq 0xa0(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x414690
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x413fbb
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x41401c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4177e0
jmp 0x41401c
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rsi
movaps %xmm0, (%rsi)
movq $0x0, 0x10(%rsi)
leaq 0x8(%rsp), %rdi
callq 0x4142ce
leaq 0xa0(%rbx), %rdi
leaq 0x8(%rsp), %rsi
callq 0x414690
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x414012
movq (%rdi), %rax
callq *0x8(%rax)
leaq 0x10(%rsp), %rdi
callq 0x40dfda
sarq $0x3, %r15
movabsq $0x2e8ba2e8ba2e8ba3, %r12 # imm = 0x2E8BA2E8BA2E8BA3
imulq %r15, %r12
cmpq $0x0, 0x8(%r14)
je 0x414043
movq %rbx, %rdi
movq %r14, %rsi
callq 0x414c08
movq %r12, (%rax)
cmpq $0x0, 0x28(%r14)
je 0x414059
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x414c08
movq %r12, (%rax)
cmpb $0x0, 0x40(%r14)
jne 0x414064
incq 0x40(%rbx)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x41409d
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x41409d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4140b9
movq (%rdi), %rax
callq *0x8(%rax)
jmp 0x4140b9
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r12, %rdi
je 0x4140c3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x4177e0
jmp 0x4140c3
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x40dfda
movq %rbx, %rdi
callq 0x4c34a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/../argparse/argparse.hpp
// Function: ArgumentParser::argumentError(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, bool)
void argumentError(const std::string& msg, bool show_usage = false) {
        if (use_exceptions_) throw std::invalid_argument(msg);
        std::cerr << "ArgumentParser error: " << msg << std::endl;
        if (show_usage) std::cerr << usage() << std::endl;
        exit(-5);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
cmpb $0x1, 0x39(%rdi)
jne 0x414143
movl $0x10, %edi
callq 0x417ae0
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x449ff0
movq $0x6021e8, %rsi         # imm = 0x6021E8
movq $0x421f40, %rdx         # imm = 0x421F40
movq %r15, %rdi
callq 0x418b30
movl %edx, %ebp
movq %rdi, %rbx
movq $0x60c7e0, %r15         # imm = 0x60C7E0
leaq 0x182266(%rip), %rsi    # 0x5963bc
movl $0x16, %edx
movq %r15, %rdi
callq 0x484db0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %r15, %rdi
callq 0x484db0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x465f00
movsbl %al, %esi
movq %r14, %rdi
callq 0x4848b0
movq %rax, %rdi
callq 0x483e80
testb %bpl, %bpl
je 0x414209
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x413282
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq $0x60c7e0, %rdi         # imm = 0x60C7E0
callq 0x484db0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x465f00
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4848b0
movq %rax, %rdi
callq 0x483e80
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x414209
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4177e0
movl $0xfffffffb, %edi       # imm = 0xFFFFFFFB
callq 0x4def10
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41423e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4177e0
jmp 0x41423e
movq %rax, %rbx
movq %r15, %rdi
callq 0x417b40
movq %rbx, %rdi
callq 0x4c34a0
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/../argparse/argparse.hpp
// Function: ArgumentParser::strip(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static String strip(const String& name) {
        size_t begin = 0;
        begin += name.size() > 0 ? name[0] == '-' : 0;
        begin += name.size() > 3 ? name[1] == '-' : 0;
        return name.substr(begin);
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x4154f1
movq (%rsi), %rdx
cmpb $0x2d, (%rdx)
sete %al
cmpq $0x4, %rcx
jb 0x4154f3
xorl %ecx, %ecx
cmpb $0x2d, 0x1(%rdx)
sete %cl
jmp 0x4154f5
xorl %eax, %eax
xorl %ecx, %ecx
movzbl %al, %edx
addq %rcx, %rdx
movq %rbx, %rdi
movq $-0x1, %rcx
callq 0x497ea0
movq %rbx, %rax
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::~PE()
PE::~PE()
{
  for(uint8_t i=0; i < inNetworks; i++)
    delete buf_in[i];
  for(uint8_t i=0; i < outNetworks; i++)
    delete buf_out[i];
  delete[] buf_in;
  delete[] buf_out;

  delete[] in_config;
  delete[] in_forward;
  delete[] in_data;

  delete[] write_back;
  delete[] out_data;

  delete[] RegFile;

  delete[] state_multiplier_stages;
  delete[] state_adder_stages;
  delete[] temp_reg_multiply;
  delete[] temp_reg_add_Op1;
  delete[] temp_reg_add_Op2;
  delete[] temp_reg_idx_write_Op3;
  delete[] temp_sel_sig_adder_is_Op2_self;
  delete[] temp_sel_sig_adder_Op2_zero_initialize_current_RF_Pass;

  delete[] insMem;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1eb2a6(%rip), %rax    # 0x6019f0
movq %rax, (%rdi)
movq $0x609151, %r15         # imm = 0x609151
cmpb $0x0, (%r15)
je 0x416790
xorl %r12d, %r12d
movq 0x48(%rbx), %rax
movq (%rax,%r12,8), %r14
testq %r14, %r14
je 0x416777
movq (%r14), %rdi
testq %rdi, %rdi
je 0x416777
callq 0x4177f0
movl $0x10, %esi
movq %r14, %rdi
callq 0x4177e0
incq %r12
movzbl (%r15), %eax
cmpq %rax, %r12
jb 0x41675d
movq $0x60b5e4, %r15         # imm = 0x60B5E4
cmpb $0x0, (%r15)
je 0x4167d3
xorl %r12d, %r12d
movq 0x50(%rbx), %rax
movq (%rax,%r12,8), %r14
testq %r14, %r14
je 0x4167ba
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4167ba
callq 0x4177f0
movl $0x10, %esi
movq %r14, %rdi
callq 0x4177e0
incq %r12
movzbl (%r15), %eax
cmpq %rax, %r12
jb 0x4167a0
movq 0x48(%rbx), %rdi
testq %rdi, %rdi
je 0x4167e1
callq 0x4177f0
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x4167ef
callq 0x4177f0
movq 0x58(%rbx), %rdi
testq %rdi, %rdi
je 0x4167fd
callq 0x4177f0
movq 0x60(%rbx), %rdi
testq %rdi, %rdi
je 0x41680b
callq 0x4177f0
movq 0x68(%rbx), %rdi
testq %rdi, %rdi
je 0x416819
callq 0x4177f0
movq 0x70(%rbx), %rdi
testq %rdi, %rdi
je 0x416827
callq 0x4177f0
movq 0x78(%rbx), %rdi
testq %rdi, %rdi
je 0x416835
callq 0x4177f0
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x416843
callq 0x4177f0
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x416854
callq 0x4177f0
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x416865
callq 0x4177f0
movq 0x108(%rbx), %rdi
testq %rdi, %rdi
je 0x416876
callq 0x4177f0
movq 0x110(%rbx), %rdi
testq %rdi, %rdi
je 0x416887
callq 0x4177f0
movq 0x118(%rbx), %rdi
testq %rdi, %rdi
je 0x416898
callq 0x4177f0
movq 0x120(%rbx), %rdi
testq %rdi, %rdi
je 0x4168a9
callq 0x4177f0
movq 0x140(%rbx), %rdi
testq %rdi, %rdi
je 0x4168ba
callq 0x4177f0
movq 0x130(%rbx), %rdi
testq %rdi, %rdi
je 0x4168cb
callq 0x4177f0
movq 0xe8(%rbx), %rdi
addq $0x8, %rsp
testq %rdi, %rdi
je 0x4168e7
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x4177f0
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::readBuffers()
void PE::readBuffers()
{
  if(!(buf_in[0]->isEmpty()))
  {
    data_type temp = buf_in[0]->pop();
    write_RF(buf_to_reg_idx_Op1, temp);
    buf_to_reg_idx_Op1++;
  }
  if(!(buf_in[1]->isEmpty()))
  {
    data_type temp = buf_in[1]->pop();
    write_RF(buf_to_reg_idx_Op2, temp);
    buf_to_reg_idx_Op2++;
  }
  if(inNetworks > 2)
  {
    if(!(buf_in[2]->isEmpty()))
    {
      data_type temp = buf_in[2]->pop();
      write_RF(buf_to_reg_idx_Op3, temp);
      buf_to_reg_idx_Op3++;
    }
  }
}

// Assembly:
movq 0x48(%rdi), %rcx
movq (%rcx), %rsi
movzbl 0x8(%rsi), %eax
cmpb 0x9(%rsi), %al
je 0x416a17
movq (%rsi), %rdx
movzwl (%rdx,%rax,2), %r8d
incl %eax
movq $0x609156, %rdx         # imm = 0x609156
movzbl (%rdx), %r9d
xorl %edx, %edx
divw %r9w
movb %dl, 0x8(%rsi)
movzwl 0x26(%rdi), %eax
movq 0x18(%rdi), %rdx
movw %r8w, (%rdx,%rax,2)
incw 0x26(%rdi)
movq 0x8(%rcx), %rsi
movzbl 0x8(%rsi), %eax
cmpb 0x9(%rsi), %al
je 0x416a53
movq (%rsi), %rdx
movzwl (%rdx,%rax,2), %r8d
incl %eax
movq $0x609156, %rdx         # imm = 0x609156
movzbl (%rdx), %r9d
xorl %edx, %edx
divw %r9w
movb %dl, 0x8(%rsi)
movzwl 0x28(%rdi), %eax
movq 0x18(%rdi), %rdx
movw %r8w, (%rdx,%rax,2)
incw 0x28(%rdi)
movq $0x609151, %rax         # imm = 0x609151
cmpb $0x3, (%rax)
jb 0x416a99
movq 0x10(%rcx), %rcx
movzbl 0x8(%rcx), %eax
cmpb 0x9(%rcx), %al
je 0x416a99
movq (%rcx), %rdx
movzwl (%rdx,%rax,2), %esi
incl %eax
movq $0x609156, %rdx         # imm = 0x609156
movzbl (%rdx), %r8d
xorl %edx, %edx
divw %r8w
movb %dl, 0x8(%rcx)
movzwl 0x2a(%rdi), %eax
movq 0x18(%rdi), %rcx
movw %si, (%rcx,%rax,2)
incw 0x2a(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::writeBuffers()
void PE::writeBuffers()
{
  for(uint8_t i=0; i < outNetworks; i++)
  {
    if(sig_write_back_current_RF_Pass && (counter_PE_WB >= delay_PE_WB_reduce))
    {
      if(counter_writeback_Op1 < cnt_output_Op1)
      {
        data_type temp = read_RF(reg_to_buf_idx_Op1);
        buf_out[i]->push(temp);
        // ToDO: Generalize following variables and counters to work with
        // i output networks; i > 1.
        reg_to_buf_idx_Op1++;
        counter_writeback_Op1++;
      }
    }
    else
      counter_PE_WB += 1;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
movq $0x60b5e4, %rcx         # imm = 0x60B5E4
movb (%rcx), %al
testb %al, %al
je 0x416b3e
movb 0x138(%rdi), %sil
movq 0x18(%rdi), %r8
movq 0x50(%rdi), %r9
movq $0x609150, %r10         # imm = 0x609150
movq $0x609156, %r11         # imm = 0x609156
xorl %ebx, %ebx
movzwl 0x38(%rdi), %edx
testb %sil, %sil
je 0x416b2d
movzbl (%r10), %ebp
cmpw %bp, %dx
jb 0x416b2d
movzwl 0x36(%rdi), %edx
cmpw 0x34(%rdi), %dx
jae 0x416b33
movzwl 0x2c(%rdi), %eax
movzwl (%r8,%rax,2), %edx
movq (%r9,%rbx,8), %r14
movq (%r14), %r15
movzbl 0x9(%r14), %eax
movw %dx, (%r15,%rax,2)
incl %eax
movzbl (%r11), %ebp
xorl %edx, %edx
divw %bp
movb %dl, 0x9(%r14)
incw 0x2c(%rdi)
incw 0x36(%rdi)
movb (%rcx), %al
jmp 0x416b33
incl %edx
movw %dx, 0x38(%rdi)
incq %rbx
movzbl %al, %edx
cmpq %rdx, %rbx
jb 0x416adc
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::execute_out_buf_read()
void PE::execute_out_buf_read()
{
  for(uint8_t i=0; i < outNetworks; i++)
  {
    if(!buf_out[i]->isEmpty())
    {
      (out_data[i]) = buf_out[i]->pop();
      (write_back[i]) = true;
    }
    else
    {
      (write_back[i]) = false;
      (out_data[i]) = 0;
    }
  }
}

// Assembly:
pushq %rbp
pushq %rbx
movq $0x60b5e4, %rcx         # imm = 0x60B5E4
cmpb $0x0, (%rcx)
je 0x416bf8
movq 0x50(%rdi), %rsi
movq 0x70(%rdi), %r8
movq 0x78(%rdi), %rdi
movq $0x609156, %r9          # imm = 0x609156
xorl %r10d, %r10d
movq (%rsi,%r10,8), %rbx
movzbl 0x8(%rbx), %eax
cmpb 0x9(%rbx), %al
jne 0x416bcc
xorl %eax, %eax
xorl %r11d, %r11d
jmp 0x416be4
movq (%rbx), %rdx
movzwl (%rdx,%rax,2), %r11d
incl %eax
movzbl (%r9), %ebp
xorl %edx, %edx
divw %bp
movb %dl, 0x8(%rbx)
movb $0x1, %al
movb %al, (%r8,%r10)
movw %r11w, (%rdi,%r10,2)
incq %r10
movzbl (%rcx), %eax
cmpq %rax, %r10
jb 0x416bb8
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::execute_pipeline()
void PE::execute_pipeline()
{
  // write buffer
  if(state_write_RF == true)
    writeOutputReg();

  compute();

  if(state_read_RF == true)
    readInputRegs();

  if(state_decode == true)
    decode(fetched_instn);

  // Execution events to occur when PE is in execution mode.
  if(state_fetch == true)
    fetched_instn = insMem[counter_PE_exec];

  update_FFs();
  update_pipeline_states();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpb $0x1, 0x98(%rdi)
jne 0x416c37
movq $0x609154, %rax         # imm = 0x609154
movzbl (%rax), %eax
movq $0x609155, %rcx         # imm = 0x609155
movzbl (%rcx), %ecx
addq %rax, %rax
addq 0x120(%rbx), %rax
movzwl (%rax,%rcx,2), %eax
movzwl 0x42(%rbx), %ecx
movq 0x18(%rbx), %rdx
movw %cx, (%rdx,%rax,2)
movq %rbx, %rdi
callq 0x417398
movq %rbx, %rdi
callq 0x417326
cmpb $0x1, 0x82(%rbx)
jne 0x416c78
movzwl 0x20(%rbx), %eax
movq 0x18(%rbx), %rcx
movzwl (%rcx,%rax,2), %eax
movw %ax, 0x3a(%rbx)
movzwl 0x22(%rbx), %eax
movzwl (%rcx,%rax,2), %eax
movw %ax, 0x3c(%rbx)
movzwl 0x24(%rbx), %eax
movzwl (%rcx,%rax,2), %eax
movw %ax, 0x3e(%rbx)
cmpb $0x1, 0x81(%rbx)
jne 0x416c90
movq 0xf0(%rbx), %rsi
movq %rbx, %rdi
callq 0x41719a
cmpb $0x1, 0x80(%rbx)
jne 0x416cb2
movq 0xe8(%rbx), %rax
movzwl 0x9c(%rbx), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0xf0(%rbx)
movq 0x130(%rbx), %rax
movzwl (%rax), %ecx
movw %cx, 0x1(%rax)
movb 0x128(%rbx), %cl
movb %cl, (%rax)
movq %rbx, %rdi
popq %rbx
jmp 0x41727e
nop
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::update_trigger_states()
void PE::update_trigger_states()
{
  if(PE_Next_State == execute)
  {
    PE_State = execute;
    state_fetch = true;
    PE_Next_State = idle;
  }

  sel_sig_adder_Op2_zero_initialize_current_RF_Pass = PE_zero_initialize_next_pass;
  PE_zero_initialize_next_pass = false;

  if(sig_update_buffer_num_Op1_next_pass)
  {
    buffer_number_comp_op[0] = (buffer_number_comp_op[0] + 1) % 2;
    buffer_number_comm_op[0] = (buffer_number_comm_op[0] + 1) % 2;
    sig_update_buffer_num_Op1_next_pass = false;
  }
  if(sig_update_buffer_num_Op2_next_pass)
  {
    buffer_number_comp_op[1] = (buffer_number_comp_op[1] + 1) % 2;
    buffer_number_comm_op[1] = (buffer_number_comm_op[1] + 1) % 2;
    sig_update_buffer_num_Op2_next_pass = false;
  }
  if(sig_update_buffer_num_Op3_next_pass)
  {
    buffer_number_comp_op[2] = (buffer_number_comp_op[2] + 1) % 2;
    buffer_number_comm_op[2] = (buffer_number_comm_op[2] + 1) % 2;
    sig_update_buffer_num_Op3_next_pass = false;
  }
}

// Assembly:
cmpl $0x1, 0xc(%rdi)
jne 0x416fb9
movq $0x1, 0x8(%rdi)
movb $0x1, 0x80(%rdi)
movb 0xd9(%rdi), %al
movb 0xdb(%rdi), %cl
movb %al, 0x128(%rdi)
movb $0x0, 0xd9(%rdi)
cmpb $0x1, %cl
jne 0x416fff
movb 0xde(%rdi), %al
movb 0xe1(%rdi), %cl
notb %cl
andb $0x1, %cl
movb %cl, 0xe1(%rdi)
notb %al
andb $0x1, %al
movb %al, 0xde(%rdi)
movb $0x0, 0xdb(%rdi)
cmpb $0x1, 0xdc(%rdi)
jne 0x417030
movb 0xdf(%rdi), %al
movb 0xe2(%rdi), %cl
notb %cl
andb $0x1, %cl
movb %cl, 0xe2(%rdi)
notb %al
andb $0x1, %al
movb %al, 0xdf(%rdi)
movb $0x0, 0xdc(%rdi)
cmpb $0x1, 0xdd(%rdi)
jne 0x417061
movb 0xe0(%rdi), %al
movb 0xe3(%rdi), %cl
notb %cl
andb $0x1, %cl
movb %cl, 0xe3(%rdi)
notb %al
andb $0x1, %al
movb %al, 0xe0(%rdi)
movb $0x0, 0xdd(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::decode(unsigned long)
void PE::decode(uint64_t ins)
{
  // Update FlipFlops for copying signal for mux in last stage of adder,
  // which decides to select operand2 for addition, selected between
  // propagated value vs. self (data from the output latch of adder).
  for(uint8_t it=multiplier_stages+adder_stages-1; it>0; it--)
    temp_sel_sig_adder_is_Op2_self[it] = temp_sel_sig_adder_is_Op2_self[it-1];
  temp_sel_sig_adder_is_Op2_self[0] = sel_sig_adder_is_Op2_self;

  // Update FlipFlops for copying idx for writing back to same reg as read for Op3
  for(uint8_t it=multiplier_stages+adder_stages; it>0; it--)
    temp_reg_idx_write_Op3[it] = temp_reg_idx_write_Op3[it-1];
  temp_reg_idx_write_Op3[0] = reg_read_Op3;

  sel_sig_adder_is_Op2_self = (ins & 0x01);

  reg_read_Op3 = reg_idx_Op3_comp + ((ins >> 8) & 0xFF);
  reg_read_Op2 = reg_idx_Op2_comp + ((ins >> 16) & 0xFF);
  reg_read_Op1 = reg_idx_Op1_comp + ((ins >> 24) & 0xFF);
}

// Assembly:
pushq %rbx
movq %rsi, %rax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movq $0x609154, %rdx         # imm = 0x609154
movq $0x609155, %rsi         # imm = 0x609155
movb (%rsi), %r9b
addb (%rdx), %r9b
movq 0x140(%rdi), %r8
decb %r9b
je 0x4171eb
movzbl %r9b, %r9d
leaq (%r9,%rcx), %r10
decq %r9
movq %r9, %r11
movl %r10d, %ebx
movb (%r8,%rbx), %bl
movb %bl, 0x1(%r8,%r9)
decq %r10
decq %r11
testb %r9b, %r9b
movq %r11, %r9
jne 0x4171d1
movb 0x139(%rdi), %r9b
movb %r9b, (%r8)
movb (%rsi), %r8b
movq 0x120(%rdi), %rsi
addb (%rdx), %r8b
je 0x41722c
movzbl %r8b, %edx
addq %rdx, %rcx
decq %rdx
movq %rdx, %r8
movl %ecx, %r9d
movzwl (%rsi,%r9,2), %r9d
movw %r9w, 0x2(%rsi,%rdx,2)
decq %rcx
decq %r8
testb %dl, %dl
movq %r8, %rdx
jne 0x417211
movzwl 0x24(%rdi), %ecx
movw %cx, (%rsi)
movl %eax, %ecx
andb $0x1, %cl
movb %cl, 0x139(%rdi)
movzbl %ah, %ecx
addw 0x32(%rdi), %cx
movw %cx, 0x24(%rdi)
movl %eax, %ecx
shrl $0x10, %ecx
movzbl %cl, %ecx
addw 0x30(%rdi), %cx
movw %cx, 0x22(%rdi)
shrl $0x18, %eax
addw 0x2e(%rdi), %ax
movw %ax, 0x20(%rdi)
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::update_pipeline_states()
void PE::update_pipeline_states()
{
  state_write_RF = state_adder_stages[adder_stages-1];

  // Do not need following code when we have actual x-stage adder
  for(uint8_t it=adder_stages-1; it>0; it--)
    state_adder_stages[it] =  state_adder_stages[it-1];
  state_adder_stages[0] = state_multiplier_stages[multiplier_stages-1];

  // Do not need following code when we have actual x-stage multiplier
  for(uint8_t it=multiplier_stages-1; it>0; it--)
    state_multiplier_stages[it] =  state_multiplier_stages[it-1];
  state_multiplier_stages[0] = state_read_RF;

  state_read_RF = state_decode;
  state_decode = state_fetch;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq 0x90(%rdi), %rcx
movq $0x609155, %rdx         # imm = 0x609155
movzbl (%rdx), %edx
movb -0x1(%rcx,%rdx), %sil
movb %sil, 0x98(%rdi)
decb %dl
je 0x4172ca
movzbl %dl, %edx
leaq (%rdx,%rax), %rsi
decq %rdx
movq %rdx, %r8
movl %esi, %r9d
movb (%rcx,%r9), %r9b
movb %r9b, 0x1(%rcx,%rdx)
decq %rsi
decq %r8
testb %dl, %dl
movq %r8, %rdx
jne 0x4172b1
movq 0x88(%rdi), %rdx
movq $0x609154, %rsi         # imm = 0x609154
movzbl (%rsi), %r8d
movb -0x1(%rdx,%r8), %r8b
movb %r8b, (%rcx)
movb (%rsi), %cl
decb %cl
je 0x41730f
movzbl %cl, %ecx
addq %rcx, %rax
decq %rcx
movq %rcx, %rsi
movl %eax, %r8d
movb (%rdx,%r8), %r8b
movb %r8b, 0x1(%rdx,%rcx)
decq %rax
decq %rsi
testb %cl, %cl
movq %rsi, %rcx
jne 0x4172f6
movb 0x82(%rdi), %al
movb %al, (%rdx)
movzwl 0x80(%rdi), %eax
movw %ax, 0x81(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::compute_multiplication()
void PE::compute_multiplication()
{
  // Do not need following code for temp_reg when we have actual x-stage multiplier
  for(uint8_t it=multiplier_stages-1; it>0; it--)
  {
      temp_reg_multiply[it] = temp_reg_multiply[it-1];
  }

  temp_reg_add_Op1[0] = temp_reg_multiply[multiplier_stages-1];

  // Do not need following condition when we have actual x-stage multiplier
  if(state_multiplier_stages[0])
  {
    temp_reg_multiply[0] = (in1 * in2);
  }
}

// Assembly:
movq $0x609154, %rcx         # imm = 0x609154
movb (%rcx), %dl
movq 0x108(%rdi), %rax
decb %dl
je 0x41736b
movzbl %dl, %edx
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
addq %rdx, %rsi
decq %rdx
movq %rdx, %r8
movl %esi, %r9d
movzwl (%rax,%r9,2), %r9d
movw %r9w, 0x2(%rax,%rdx,2)
decq %rsi
decq %r8
testb %dl, %dl
movq %r8, %rdx
jne 0x41734b
movzbl (%rcx), %ecx
jmp 0x417370
movl $0x1, %ecx
movzwl -0x2(%rax,%rcx,2), %ecx
movq 0x110(%rdi), %rdx
movw %cx, (%rdx)
movq 0x88(%rdi), %rcx
cmpb $0x0, (%rcx)
je 0x417397
movzwl 0x3c(%rdi), %ecx
imulw 0x3a(%rdi), %cx
movw %cx, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O3/MPSLab-ASU[P]DiRAC/./src/pe.cc
// Function: PE::compute_addition()
void PE::compute_addition()
{
  data_type add_Op1;
  data_type add_Op2;

  add_Op1 = temp_reg_add_Op1[adder_stages-1];

  if(temp_sel_sig_adder_is_Op2_self[multiplier_stages+adder_stages-1] == false) // (zero_initialize_Op_current_RF_Pass)
  // case 0:
  {
    add_Op2 = out_MAC;
  }
  else  // case 1:
  {
    add_Op2 = temp_reg_add_Op2[(multiplier_stages+adder_stages-1) - 1];
  }

  if(state_adder_stages[adder_stages-1])
    out_MAC = add_Op1 + add_Op2;

  // Update FFs for propagating input Operand2 for adder
  for(auto it1=(multiplier_stages+adder_stages-1) - 1; it1>0; it1--)
    temp_reg_add_Op2[it1] = temp_reg_add_Op2[it1-1];

  // pipelined in parallel with first stage of multiplier
  if(temp_sel_sig_adder_Op2_zero_initialize_current_RF_Pass[2] == 0)
  // case 0:
    temp_reg_add_Op2[0] = in3;
  else  // case 1:
    temp_reg_add_Op2[0] = 0;

  // Update FFs for propagating input Operand1 for adder
  for(auto it1=adder_stages-1; it1>0; it1--)
    temp_reg_add_Op1[it1] = temp_reg_add_Op1[it1-1];
}

// Assembly:
movq 0x90(%rdi), %r10
movq 0x110(%rdi), %rax
movq $0x609155, %rcx         # imm = 0x609155
movzbl (%rcx), %esi
movq $0x609154, %rdx         # imm = 0x609154
movzbl (%rdx), %r8d
leal (%r8,%rsi), %r9d
movq 0x118(%rdi), %rdx
cmpb $0x1, -0x1(%r10,%rsi)
jne 0x4173fa
movq 0x140(%rdi), %r10
movl %r9d, %r11d
cmpb $0x0, -0x1(%r10,%r11)
leaq 0x42(%rdi), %r10
leaq -0x4(%rdx,%r11,2), %r11
cmoveq %r10, %r11
movzwl (%r11), %r10d
addw -0x2(%rax,%rsi,2), %r10w
movw %r10w, 0x42(%rdi)
cmpl $0x3, %r9d
jb 0x417421
addl $-0x2, %r9d
addl %r8d, %esi
decl %esi
leaq (%rdx,%r9,2), %r8
movzwl -0x2(%r8), %r9d
movw %r9w, (%r8)
addq $-0x2, %r8
decl %esi
cmpl $0x1, %esi
jg 0x41740d
movq 0x130(%rdi), %rsi
cmpb $0x0, 0x2(%rsi)
jne 0x417434
movzwl 0x3e(%rdi), %esi
jmp 0x417436
xorl %esi, %esi
movw %si, (%rdx)
movzbl (%rcx), %ecx
cmpq $0x2, %rcx
jb 0x417458
incq %rcx
movzwl -0x6(%rax,%rcx,2), %edx
movw %dx, -0x4(%rax,%rcx,2)
decq %rcx
cmpq $0x2, %rcx
ja 0x417445
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/bothaynahazem[P]AsuMathLabG13/main.cpp
// Function: countcommas(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int countcommas(string x){
        string s = x;
        int commas=0;
        for(int i=0; i<s.length();i++){
            if(s[i]==','){
                commas++;
            }

        }
        return commas;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq -0x20(%rbp), %r14
movq %r14, -0x10(%r14)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq -0x30(%rbp), %rbx
movq %rbx, %rdi
callq 0x934c
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
testq %rax, %rax
je 0x386a
xorl %ecx, %ecx
xorl %ebx, %ebx
xorl %edx, %edx
cmpb $0x2c, (%rdi,%rcx)
sete %dl
addl %edx, %ebx
incq %rcx
cmpq %rcx, %rax
jne 0x3855
jmp 0x386c
xorl %ebx, %ebx
cmpq %r14, %rdi
je 0x387d
movq -0x20(%rbp), %rsi
incq %rsi
callq 0x3300
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/bothaynahazem[P]AsuMathLabG13/main.cpp
// Function: addcomma(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void addcomma(string& z){
    for(int j=0; j<z.length()-1;j++){
        if(z[j]==']'){
            int open=z.find_first_of('[',j);
            string str=z.substr(j+1,open-j-1);
            if(str.find_first_not_of(' ') != std::string::npos){

            }
            else{
                z.replace(j,1,"],");
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x8(%rdi), %rax
cmpq $0x1, %rax
je 0x394f
movq %rdi, %rbx
leaq -0x38(%rbp), %r15
xorl %r12d, %r12d
leaq -0x48(%rbp), %r14
movq (%rbx), %rcx
cmpb $0x5d, (%rcx,%r12)
jne 0x393c
movq %rbx, %rdi
movl $0x5b, %esi
movq %r12, %rdx
callq 0x33b0
leaq 0x1(%r12), %r13
movl %r12d, %ecx
notl %ecx
addl %ecx, %eax
movslq %eax, %rcx
movq %r14, %rdi
movq %rbx, %rsi
movq %r13, %rdx
callq 0x3320
movq %r14, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x32a0
cmpq $-0x1, %rax
jne 0x391e
movl $0x1, %edx
movl $0x2, %r8d
movq %rbx, %rdi
movq %r12, %rsi
leaq 0xd753(%rip), %rcx      # 0x1106c
callq 0x3330
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x3933
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3300
movq 0x8(%rbx), %rax
movq %r13, %r12
jmp 0x3942
incq %r12
movq %r12, %r13
leaq -0x1(%rax), %rcx
cmpq %r13, %rcx
ja 0x38b5
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x3976
movq -0x38(%rbp), %rsi
incq %rsi
callq 0x3300
movq %rbx, %rdi
callq 0x3520
// File: /workspace/github_cpp_makefile_star2_O3/bothaynahazem[P]AsuMathLabG13/main.cpp
// Function: isChar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool isChar(string s)
{
	//if (s.size() >1) return false;

	switch (s[0]) {
	case '+': return true;
	case '-': return true;
	case '*': return true;
	case '/': return true;
	case '(': return true;
	case ')': return true;
	case '^': return true;
	case '.': if(s[1]=='+') return true;
	else if(s[1]=='-') return true;
    else if(s[1]=='*') return true;
    else if(s[1]=='/') return true;
    else if(s[1]=='^') return true;
	default: return false;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rcx
movzbl (%rcx), %edx
addl $-0x28, %edx
cmpl $0x36, %edx
ja 0x72f1
movb $0x1, %al
movabsq $0x400000000000af, %rsi # imm = 0x400000000000AF
btq %rdx, %rsi
jae 0x72d1
andb $0x1, %al
popq %rbp
retq
cmpq $0x6, %rdx
jne 0x72f1
movb 0x1(%rcx), %cl
addb $-0x2a, %cl
cmpb $0x35, %cl
jae 0x72f1
movabsq $0x1000000000002b, %rax # imm = 0x1000000000002B
shrq %cl, %rax
jmp 0x72cd
xorl %eax, %eax
jmp 0x72cd
// File: /workspace/github_cpp_makefile_star2_O3/bothaynahazem[P]AsuMathLabG13/main.cpp
// Function: preference(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int preference(string ch)
{
	switch (ch[0])
	{
	case '+': return 1;
	case '-': return 1;
	case '*': return 2;
	case '/': return 2;
	case '^': return 3;
	case '(': return -1;
	case '.': if(ch[1]=='+') return 1;
	else if(ch[1]=='-') return 1;
    else if(ch[1]=='*') return 2;
    else if(ch[1]=='/') return 2;
    else if(ch[1]=='^') return 3;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq (%rdi), %rax
movzbl (%rax), %ecx
addl $-0x28, %ecx
cmpl $0x7, %ecx
ja 0x772a
leaq 0x9921(%rip), %rdx      # 0x11034
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x1, %eax
jmp 0x775f
movl $0x2, %eax
jmp 0x775f
movl $0x3, %eax
jmp 0x775f
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x775f
movb 0x1(%rax), %cl
addb $-0x2a, %cl
movl $0x3, %eax
cmpb $0x6, %cl
jae 0x775f
movzbl %cl, %ecx
movl $0x2b, %edx
btl %ecx, %edx
jae 0x775f
leaq 0x98f8(%rip), %rax      # 0x11054
movl (%rax,%rcx,4), %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/bothaynahazem[P]AsuMathLabG13/Matrix2017.cpp
// Function: Matrix::Matrix()
Matrix::Matrix() //default constructor
{
	nRows = nColumns = 0;
	values = NULL;
	cvalues=NULL;
	type="none";
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
leaq 0x18(%rdi), %rbx
leaq 0x28(%rdi), %r15
movq %r15, 0x18(%rdi)
xorl %eax, %eax
movq %rax, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rax, 0x10(%rdi)
leaq 0x70a5(%rip), %rcx      # 0x111f0
movl $0x4, %r8d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3450
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0xa17e
movq (%r15), %rsi
incq %rsi
callq 0x3300
movq %r14, %rdi
callq 0x3520
// File: /workspace/github_cpp_makefile_star2_O3/bothaynahazem[P]AsuMathLabG13/Matrix2017.cpp
// Function: Matrix::reset()
void Matrix::reset()
{   if(type=="complex")
   {
    if(cvalues)
    {
      for(int i=0;i<nRows;i++)
        delete[] cvalues[i];
    }
		delete[] cvalues;
   }
    else
    {
	if (values)
		for (int i = 0;i<nRows;i++)
			delete[] values[i];
        delete[] values;
    }
	nRows = nColumns = 0;
	values = NULL;
	cvalues=NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
addq $0x18, %rdi
leaq 0x7026(%rip), %rsi      # 0x111f5
callq 0x30e0
testl %eax, %eax
je 0xa20f
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0xa24e
movl (%rbx), %eax
testl %eax, %eax
jle 0xa249
xorl %r14d, %r14d
movq 0x8(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0xa1fe
callq 0x33a0
movl (%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0xa1ea
movq 0x8(%rbx), %rdi
jmp 0xa244
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xa24e
movl (%rbx), %eax
testl %eax, %eax
jle 0xa249
xorl %r14d, %r14d
movq 0x10(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0xa235
callq 0x33a0
movl (%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0xa221
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xa24e
callq 0x33a0
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/bothaynahazem[P]AsuMathLabG13/Matrix2017.cpp
// Function: Matrix::Matrix(int, int, int, double)
Matrix::Matrix(int nRows, int nColumns, int initialization, double initializationValue)
{
	this->nRows = nRows;
	this->nColumns = nColumns;
	cvalues=NULL;
	if ((nRows*nColumns) == 0)
	{
		values = NULL;
		return;
	}
	values = new double*[nRows];
	for (int iR = 0;iR<nRows;iR++)
	{
		values[iR] = new double[nColumns];
		for (int iC = 0;iC<nColumns;iC++)
		{
			switch (initialization)
			{
			case MI_ZEROS:
				values[iR][iC] = 0;
				break;
			case MI_ONES:
				values[iR][iC] = 1;
				break;
			case MI_EYE:
				values[iR][iC] = (iR == iC) ? 1 : 0;
				break;
			case MI_RAND: values[iR][iC] = (rand() % 1000000) / 1000000.0;
				break;
			case MI_VALUE:
				values[iR][iC] = initializationValue;
				break;
			}
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movsd %xmm0, -0x50(%rbp)
movl %ecx, -0x30(%rbp)
movl %esi, %r12d
movq %rdi, %r14
leaq 0x28(%rdi), %rsi
movq %rsi, 0x18(%rdi)
xorl %eax, %eax
movq %rax, 0x20(%rdi)
movb $0x0, 0x28(%rdi)
movl %r12d, (%rdi)
movl %edx, 0x4(%rdi)
movq %rax, 0x10(%rdi)
testl %r12d, %r12d
setne %al
movl %edx, -0x2c(%rbp)
testl %edx, %edx
setne %cl
testb %al, %cl
je 0xa3c2
movq %rsi, -0x38(%rbp)
movl %r12d, %eax
movq %rax, -0x48(%rbp)
leaq (,%rax,8), %rdi
testl %r12d, %r12d
movq $-0x1, %rbx
cmovsq %rbx, %rdi
callq 0x3030
movq %rax, 0x8(%r14)
testl %r12d, %r12d
jle 0xa3ca
movl -0x2c(%rbp), %eax
movl %eax, %r13d
leaq (,%r13,8), %rcx
testl %eax, %eax
cmovsq %rbx, %rcx
movq %rcx, -0x40(%rbp)
xorl %r15d, %r15d
movl -0x30(%rbp), %eax
movq %rax, -0x58(%rbp)
leaq 0x6e81(%rip), %rbx      # 0x11190
movq -0x40(%rbp), %rdi
callq 0x3030
movq %r14, %r12
movq 0x8(%r14), %rcx
movq %rax, (%rcx,%r15,8)
cmpl $0x0, -0x2c(%rbp)
jle 0xa3b0
xorl %r14d, %r14d
cmpl $0x4, -0x30(%rbp)
ja 0xa3a8
movq -0x58(%rbp), %rax
movslq (%rbx,%rax,4), %rax
addq %rbx, %rax
jmpq *%rax
movsd 0x6e0d(%rip), %xmm0     # 0x11158
jmp 0xa399
movsd -0x50(%rbp), %xmm0
jmp 0xa399
movsd 0x6dfc(%rip), %xmm0     # 0x11158
cmpq %r14, %r15
je 0xa399
xorpd %xmm0, %xmm0
jmp 0xa399
callq 0x30c0
cltq
imulq $0x431bde83, %rax, %rcx # imm = 0x431BDE83
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x32, %rcx
addl %edx, %ecx
imull $0xf4240, %ecx, %ecx    # imm = 0xF4240
subl %ecx, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd 0x6db7(%rip), %xmm0     # 0x11150
movq 0x8(%r12), %rax
movq (%rax,%r15,8), %rax
movsd %xmm0, (%rax,%r14,8)
incq %r14
cmpq %r14, %r13
jne 0xa330
incq %r15
cmpq -0x48(%rbp), %r15
movq %r12, %r14
jne 0xa30f
jmp 0xa3ca
movq $0x0, 0x8(%r14)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r14, %rcx
movq %rax, %r14
movq 0x18(%rcx), %rdi
cmpq -0x38(%rbp), %rdi
je 0xa3f8
movq -0x38(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x3300
movq %r14, %rdi
callq 0x3520