LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::Peptide::isDescriptionPartial() const
bool Peptide::isDescriptionPartial () const
{
	string desc (getDescription (false));
	strLower (desc);
	// PAR
	return    contains (desc, "fragmented")  // "fragment" may mean a complex unit
	       || contains (desc, "fragmentary")
	       || contains (desc, "partial")
	       || contains (desc, "truncat");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa0, %rsp
movq %rdi, %rsi
movq %rsp, %rbx
movq %rbx, %rdi
xorl %edx, %edx
callq 0x6cbb0
movq %rbx, %rdi
callq 0x148cc
leaq 0x70(%rsp), %r14
movq %r14, -0x10(%r14)
leaq 0x1ee6f(%rip), %rsi     # 0x98bd1
leaq 0x1ee72(%rip), %rdx     # 0x98bdb
leaq 0x60(%rsp), %rdi
callq 0xdc76
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rcx
movq %rsp, %rdi
xorl %edx, %edx
callq 0xba30
movb $0x1, %bl
cmpq $-0x1, %rax
jne 0x79ea5
leaq 0x50(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x1ee39(%rip), %rsi     # 0x98bdc
leaq 0x1ee3d(%rip), %rdx     # 0x98be7
leaq 0x40(%rsp), %rdi
callq 0xdc76
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rcx
movq %rsp, %rdi
xorl %edx, %edx
callq 0xba30
movb $0x1, %bl
cmpq $-0x1, %rax
jne 0x79e8e
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x1ee03(%rip), %rsi     # 0x98be8
leaq 0x1ee03(%rip), %rdx     # 0x98bef
leaq 0x20(%rsp), %rdi
callq 0xdc76
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rcx
movq %rsp, %rdi
xorl %edx, %edx
callq 0xba30
movb $0x1, %bl
cmpq $-0x1, %rax
jne 0x79e77
leaq 0x90(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0x1edcb(%rip), %rsi     # 0x98bf0
leaq 0x1edcb(%rip), %rdx     # 0x98bf7
leaq 0x80(%rsp), %rdi
callq 0xdc76
movq 0x80(%rsp), %rsi
movq 0x88(%rsp), %rcx
movq %rsp, %rdi
xorl %edx, %edx
callq 0xba30
cmpq $-0x1, %rax
setne %bl
movq 0x80(%rsp), %rdi
cmpq %r13, %rdi
je 0x79e77
movq 0x90(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x79e8e
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x79ea5
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x79ebc
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79ed7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
movl %ebx, %eax
addq $0xa0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x79f09
movq 0x30(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x79f09
movq %rax, %rbx
movq 0x40(%rsp), %rdi
cmpq %r15, %rdi
je 0x79f25
movq 0x50(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x79f25
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r14, %rdi
je 0x79f43
movq 0x70(%rsp), %rsi
incq %rsi
callq 0xb5a0
jmp 0x79f43
jmp 0x79f40
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x79f5e
movq 0x10(%rsp), %rsi
incq %rsi
callq 0xb5a0
movq %rbx, %rdi
callq 0xba60
// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::Mutation::operator<(Seq_sp::Mutation const&) const
bool Mutation::operator< (const Mutation& other) const
{ 
  LESS_PART (*this, other, prot);
  LESS_PART (*this, other, geneName);
  LESS_PART (*this, other, pos);
  LESS_PART (*this, other, ref);
  LESS_PART (*this, other, allele);
  LESS_PART (*this, other, frameshift);
  return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movb 0x8(%rdi), %al
movb 0x8(%rsi), %cl
movb $0x1, %bl
cmpb %cl, %al
jb 0x85f82
jbe 0x85f49
xorl %ebx, %ebx
jmp 0x85f82
movq %rsi, %r14
movq %rdi, %r15
leaq 0x10(%rdi), %r12
leaq 0x10(%rsi), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0xb050
testl %eax, %eax
js 0x85f82
movq %r13, %rdi
movq %r12, %rsi
callq 0xb050
testl %eax, %eax
js 0x85f45
movq 0x30(%r15), %rax
movq 0x30(%r14), %rcx
cmpq %rcx, %rax
jae 0x85f8e
movl %ebx, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
ja 0x85f45
leaq 0x38(%r15), %r12
leaq 0x38(%r14), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x8eb9e
testb %al, %al
jne 0x85f82
movq %r13, %rdi
movq %r12, %rsi
callq 0x8eb9e
testb %al, %al
jne 0x85f45
leaq 0x58(%r15), %r12
leaq 0x58(%r14), %r13
movq %r12, %rdi
movq %r13, %rsi
callq 0x8eb9e
testb %al, %al
jne 0x85f82
movq %r13, %rdi
movq %r12, %rsi
callq 0x8eb9e
testb %al, %al
jne 0x85f45
movb 0x78(%r15), %al
cmpb 0x78(%r14), %al
setb %bl
jmp 0x85f82
jmp 0x85fef
movq %rax, %rdi
callq 0xdd0b
nop
// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::KmerIndex::IdRecord::get[abi:cxx11]() const
string KmerIndex::IdRecord::get () const
{
  string s; s. reserve (textSize);
  FOR_REV (size_t, i, start)
    s += text [i];
  return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movl $0x18, %esi
callq 0xb900
movq 0x30(%r14), %rax
movq %rax, %r12
subq $0x1, %r12
jb 0x88147
movsbl 0x17(%r14,%rax), %esi
movq %rbx, %rdi
callq 0xb4f0
movq %r12, %rax
jmp 0x8812e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x88158
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x8816e
movq (%r15), %rsi
incq %rsi
callq 0xb5a0
movq %r14, %rdi
callq 0xba60
// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/seq.cpp
// Function: Seq_sp::KmerIndex::getKmers()
size_t KmerIndex::getKmers ()
{
  size_t kmers = 0;
  f. seekg ((streamoff) code2addr (0));
  Progress prog (code_max, progressSize);  
  Addr addr = nil;
  FOR (size_t, i, code_max)
  {
    prog ();
    readBin (f, addr);
    if (addr != nil)
      kmers++;
  }
  return kmers;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdi, %r14
leaq 0x28(%rdi), %r15
xorl %ebx, %ebx
movl $0x10, %esi
movq %r15, %rdi
xorl %edx, %edx
callq 0xb730
movq 0x248(%r14), %rsi
leaq 0x8(%rsp), %rdi
movl $0xf4240, %edx          # imm = 0xF4240
callq 0x1faac
movq $-0x1, (%rsp)
cmpq $0x0, 0x248(%r14)
je 0x8a2f3
xorl %ebx, %ebx
leaq 0x8(%rsp), %r13
movq %rsp, %rbp
xorl %r12d, %r12d
movq %r13, %rdi
leaq 0x2f7eb(%rip), %rsi     # 0xb9ab0
callq 0x1d006
movl $0x8, %edx
movq %r15, %rdi
movq %rbp, %rsi
callq 0xb710
xorl %eax, %eax
cmpq $-0x1, (%rsp)
setne %al
addq %rax, %rbx
incq %r12
cmpq 0x248(%r14), %r12
jb 0x8a2bb
leaq 0x8(%rsp), %rdi
callq 0x1fcb4
movq %rbx, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x1fcb4
movq %rbx, %rdi
callq 0xba60
// File: /workspace/github_cpp_makefile_star2_O3/ncbi[P]amr/./seq.hpp
// Function: Seq_sp::Cds::getOverlap(Seq_sp::Cds const&) const
size_t getOverlap (const Cds &other) const
    // Symmetric
    { if (other. left () >= right ())
    		return 0;
    	if (left () >= other. right ())
    		return 0;
    	if (left () <= other. left ())
    		return getOverlap_ (other);
    	return other. getOverlap_ (*this);
    }

// Assembly:
movq %rdi, %rax
movq 0x8(%rsi), %rdx
movq 0x10(%rsi), %r8
cmpq %rdx, %r8
movq %rdx, %rcx
cmovbq %r8, %rcx
movq 0x8(%rdi), %rdi
movq 0x10(%rax), %r9
cmpq %r9, %rdi
movq %r9, %r10
cmovaq %rdi, %r10
cmpq %r10, %rcx
jae 0x8eb93
cmpq %rdi, %r9
cmovbq %r9, %rdi
cmpq %r8, %rdx
cmovaq %rdx, %r8
cmpq %r8, %rdi
jae 0x8eb93
cmpq %rcx, %rdi
jbe 0x8eb96
movq %rsi, %rdi
movq %rax, %rsi
jmp 0x7ce4a
xorl %eax, %eax
retq
movq %rax, %rdi
jmp 0x7ce4a
// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/sock_x.c
// Function: main
int main(void)
{
    int     s, port;

    s = sock_bind(NULL, 0);             // (any i/f, any port)
    sock_addr(s, NULL, &port, NULL, 0);
    if (!fork()) push(sock_connect("127.0.0.1", port, 0));
    double  tt = pull(sock_accept(s));
    close(s);

    s = sock_create(SockPath);
    if (!fork()) push(sock_open(SockPath));
    double  tu = pull(sock_accept(s));
    close(s);

    // Compare to a std unix pipe (i.e. unix socket without the socket layer).
    int     p[2];
    pipe(p);
    if (!fork()) push(p[1]);
    close(p[1]);
    double  tp = pull(p[0]);

    fprintf(stderr, "%dMB tt=%.3f tu=%.3f tp=%.3f\n", BYTES/1024*COUNT/1024, tt, tu, tp);

    unlink(SockPath);
    return 0;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
xorl %edi, %edi
xorl %esi, %esi
callq 0x4a68
movl %eax, %ebx
leaq 0x4(%rsp), %rdx
movl %eax, %edi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x572e
callq 0x3090
testl %eax, %eax
je 0x3774
movl %ebx, %edi
callq 0x4c3b
movl %eax, %edi
callq 0x37e7
movsd %xmm0, 0x10(%rsp)
movl %ebx, %edi
callq 0x34f0
leaq 0x6bb2(%rip), %rdi      # 0xa290
callq 0x4c97
movl %eax, %ebx
callq 0x3090
testl %eax, %eax
je 0x378d
movl %ebx, %edi
callq 0x4c3b
movl %eax, %edi
callq 0x37e7
movsd %xmm0, 0x8(%rsp)
movl %ebx, %edi
callq 0x34f0
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
callq 0x33e0
callq 0x3090
movl 0x4(%rbx), %edi
testl %eax, %eax
je 0x379b
callq 0x34f0
movl 0x18(%rsp), %edi
callq 0x37e7
movaps %xmm0, %xmm2
movq 0x68a2(%rip), %rax      # 0x9fe0
movq (%rax), %rdi
leaq 0x38c6(%rip), %rsi      # 0x700e
movl $0x400, %edx            # imm = 0x400
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movb $0x3, %al
callq 0x3410
leaq 0x6b29(%rip), %rdi      # 0xa290
callq 0x3140
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
movl 0x4(%rsp), %esi
leaq 0x3885(%rip), %rdi      # 0x7004
xorl %edx, %edx
callq 0x4ea8
movl %eax, %edi
callq 0x37a0
leaq 0x6afc(%rip), %rdi      # 0xa290
callq 0x4dcf
movl %eax, %edi
callq 0x37a0
// File: /workspace/github_cpp_makefile_star2_O3/ctSkennerton[P]fxtract/util/sock_x.c
// Function: pull
static double pull(int fd) 
{ 
    double  t = tick();
    while (0 < read(fd, buf, BYTES));
    close(fd);
    return tick() - t;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
callq 0x487d
movsd %xmm0, (%rsp)
leaq 0x7052(%rip), %r14      # 0xa850
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
movq %r14, %rsi
callq 0x3420
testq %rax, %rax
jg 0x37fe
movl %ebx, %edi
callq 0x34f0
callq 0x487d
subsd (%rsp), %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::GPIO::InitOutputs(unsigned int)
uint32_t GPIO::InitOutputs(uint32_t outputs) {
  if (gpio_port_ == NULL) {
    fprintf(stderr, "Attempt to init outputs but not yet Init()-ialized.\n");
    return 0;
  }

#ifdef ADAFRUIT_RGBMATRIX_HAT_PWM
  // Hack: the user soldered together GPIO 18 (new OE) with GPIO 4 (old OE).
  // We want to make extra sure that, whatever the outside system set as pinmux,
  // the old OE is not also set as output so that these GPIO outputs don't fight
  // each other.
  // So explicitly set this particular pin as input.
  INP_GPIO(4);
#endif

  outputs &= kValidBits;   // Sanitize input.
  output_bits_ = outputs;
  for (uint32_t b = 0; b <= 27; ++b) {
    if (outputs & (1 << b)) {
      INP_GPIO(b);   // for writing, we first need to set as input.
      OUT_GPIO(b);
    }
  }
  return output_bits_;
}

// Assembly:
pushq %rax
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x26cc
andl $0xfffffff, %esi        # imm = 0xFFFFFFF
movl %esi, (%rdi)
xorl %edx, %edx
xorl %r8d, %r8d
btl %r8d, %esi
jae 0x26bc
movzbl %r8b, %ecx
imull $0xcd, %ecx, %r9d
shrl $0xb, %r9d
leal (%r9,%r9), %ecx
shll $0x5, %r9d
subl %ecx, %r9d
movl %edx, %ecx
subb %r9b, %cl
movl $0x7, %r9d
shll %cl, %r9d
notl %r9d
movzbl %r8b, %r10d
imull $0xcd, %r10d, %r10d
shrl $0xb, %r10d
andl %r9d, (%rax,%r10,4)
movl $0x1, %r9d
shll %cl, %r9d
orl %r9d, (%rax,%r10,4)
incl %r8d
addb $0x3, %dl
cmpl $0x1c, %r8d
jne 0x266b
movl (%rdi), %eax
popq %rcx
retq
callq 0x2310
xorl %eax, %eax
jmp 0x26ca
nop
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::(anonymous namespace)::sleep_nanos_rpi_1(long)
static void sleep_nanos_rpi_1(long nanos) {
  if (nanos < 70) return;
  // The following loop is determined empirically on a 700Mhz RPi
  for (uint32_t i = (nanos - 70) >> 2; i != 0; --i) {
    asm("nop");
  }
}

// Assembly:
cmpq $0x46, %rdi
jl 0x2b74
movabsq $0x3ffffffba, %rax      # imm = 0x3FFFFFFBA
addq %rax, %rdi
shrq $0x2, %rdi
testl %edi, %edi
je 0x2b74
nop
decl %edi
jne 0x2b6f
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::(anonymous namespace)::HardwarePinPulser::SendPulse(int)
virtual void SendPulse(int c) {
    if (pwm_range_[c] < 16) {
      pwm_reg_[PWM_RNG1] = pwm_range_[c];

      *fifo_ = pwm_range_[c];
    } else {
      // Keep the actual range as short as possible, as we have to
      // wait for one full period of these in the zero phase.
      // The hardware can't deal with values < 2, so only do this when
      // have enough of these.
      pwm_reg_[PWM_RNG1] = pwm_range_[c] / 8;

      *fifo_ = pwm_range_[c] / 8;
      *fifo_ = pwm_range_[c] / 8;
      *fifo_ = pwm_range_[c] / 8;
      *fifo_ = pwm_range_[c] / 8;
      *fifo_ = pwm_range_[c] / 8;
      *fifo_ = pwm_range_[c] / 8;
      *fifo_ = pwm_range_[c] / 8;
      *fifo_ = pwm_range_[c] / 8;
    }

    /*
     * We need one value at the end to have it go back to
     * default state (otherwise it just repeats the last
     * value, so will be constantly 'on').
     */
    *fifo_ = 0;   // sentinel.

    /*
     * For some reason, we need a second empty sentinel in the
     * fifo, otherwise our way to detect the end of the pulse,
     * which relies on 'is the queue empty' does not work. It is
     * not entirely clear why that is from the datasheet,
     * but probably there is some buffering register in which data
     * elements are kept after the fifo is emptied.
     */
    *fifo_ = 0;

    sleep_hint_ = sleep_hints_[c];
    start_time_ = *timer1Mhz;
    pwm_reg_[PWM_CTL] = PWM_CTL_USEF1 | PWM_CTL_PWEN1 | PWM_CTL_POLA1;
  }

// Assembly:
movslq %esi, %rax
movq 0x8(%rdi), %rdx
movl (%rdx,%rax,4), %esi
cmpl $0xf, %esi
ja 0x2c17
movq 0x38(%rdi), %rcx
movl %esi, 0x10(%rcx)
movl (%rdx,%rax,4), %edx
movq 0x40(%rdi), %rsi
jmp 0x2c78
shrl $0x3, %esi
movq 0x38(%rdi), %rcx
movl %esi, 0x10(%rcx)
movl (%rdx,%rax,4), %r8d
shrl $0x3, %r8d
movq 0x40(%rdi), %rsi
movl %r8d, (%rsi)
movl (%rdx,%rax,4), %r8d
shrl $0x3, %r8d
movl %r8d, (%rsi)
movl (%rdx,%rax,4), %r8d
shrl $0x3, %r8d
movl %r8d, (%rsi)
movl (%rdx,%rax,4), %r8d
shrl $0x3, %r8d
movl %r8d, (%rsi)
movl (%rdx,%rax,4), %r8d
shrl $0x3, %r8d
movl %r8d, (%rsi)
movl (%rdx,%rax,4), %r8d
shrl $0x3, %r8d
movl %r8d, (%rsi)
movl (%rdx,%rax,4), %r8d
shrl $0x3, %r8d
movl %r8d, (%rsi)
movl (%rdx,%rax,4), %edx
shrl $0x3, %edx
movl %edx, (%rsi)
xorl %edx, %edx
movl %edx, (%rsi)
movl %edx, (%rsi)
movq 0x20(%rdi), %rdx
movl (%rdx,%rax,4), %eax
movl %eax, 0x54(%rdi)
movq 0x551f(%rip), %rax      # 0x81b0
movl (%rax), %eax
movl %eax, 0x50(%rdi)
movl $0x31, (%rcx)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::(anonymous namespace)::HardwarePinPulser::WaitPulseFinished()
virtual void WaitPulseFinished() {
    // Determine how long we already spent and sleep to get close to the
    // actual end-time of our sleep period.
    // (substract 25 usec, as this is the OS overhead).
    const uint32_t elapsed_usec = *timer1Mhz - start_time_;
    const int to_sleep = sleep_hint_ - elapsed_usec - 25;
    if (to_sleep > 0) {
      struct timespec sleep_time = { 0, 1000 * to_sleep };
      nanosleep(&sleep_time, NULL);
    }
    while ((pwm_reg_[PWM_STA] & PWM_STA_EMPT1) == 0) {
      // busy wait until done.
    }
    pwm_reg_[PWM_CTL] = PWM_CTL_USEF1 | PWM_CTL_POLA1 | PWM_CTL_CLRF1;
  }

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x5503(%rip), %rax      # 0x81b0
movl (%rax), %eax
movl 0x50(%rdi), %ecx
subl %eax, %ecx
movl 0x54(%rdi), %eax
addl %ecx, %eax
addl $-0x19, %eax
testl %eax, %eax
jle 0x2cdb
movq %rsp, %rdi
movq $0x0, (%rdi)
imull $0x3e8, %eax, %eax      # imm = 0x3E8
movq %rax, 0x8(%rdi)
xorl %esi, %esi
callq 0x2090
movq 0x38(%rbx), %rax
testl $0x2, 0x4(%rax)
je 0x2cdf
movl $0x70, (%rax)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::RGBMatrix(rgb_matrix::GPIO*, int, int, int)
RGBMatrix::RGBMatrix(GPIO *io, int rows, int chained_displays,
                     int parallel_displays)
  : rows_(rows), chained_displays_(chained_displays),
    parallel_displays_(parallel_displays),
    io_(NULL), updater_(NULL) {
  SetTransformer(NULL);
  active_ = CreateFrameCanvas();
  Clear();
  SetGPIO(io);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x4b32(%rip), %rax      # 0x7c18
movq %rax, (%rdi)
movl %edx, 0x8(%rdi)
movl %ecx, 0xc(%rdi)
movl %r8d, 0x10(%rdi)
movq $0x0, 0x20(%rdi)
leaq 0x28(%rdi), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2230
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%r14)
movups %xmm0, 0x60(%r14)
movq %r14, %rdi
xorl %esi, %esi
callq 0x316e
movq %r14, %rdi
callq 0x31b8
movq %rax, 0x18(%r14)
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x32c0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x58(%r14), %rdi
testq %rdi, %rdi
je 0x315e
movq 0x68(%r14), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x21c0
movq %r15, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::SetTransformer(rgb_matrix::CanvasTransformer*)
void RGBMatrix::SetTransformer(CanvasTransformer *transformer) {
  if (transformer == NULL) {
    static NullTransformer null_transformer;   // global instance sufficient.
    transformer_ = &null_transformer;
  } else {
    transformer_ = transformer;
  }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
testq %rsi, %rsi
jne 0x318e
movb 0x5035(%rip), %al       # 0x81b8
leaq 0x5016(%rip), %r14      # 0x81a0
testb %al, %al
je 0x319a
movq %r14, 0x70(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x5017(%rip), %rdi      # 0x81b8
callq 0x22c0
testl %eax, %eax
je 0x318e
leaq 0x5007(%rip), %rdi      # 0x81b8
callq 0x2100
jmp 0x318e
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::CreateFrameCanvas()
FrameCanvas *RGBMatrix::CreateFrameCanvas() {
  FrameCanvas *result =
    new FrameCanvas(new internal::Framebuffer(rows_, 32 * chained_displays_,
                                              parallel_displays_));
  if (created_frames_.empty()) {
    // First time. Get defaults from initial Framebuffer.
    pwm_bits_ = result->framebuffer()->pwmbits();
    do_luminance_correct_ = result->framebuffer()->luminance_correct();
    brightness_ = result->framebuffer()->brightness();
  } else {
    result->framebuffer()->SetPWMBits(pwm_bits_);
    result->framebuffer()->set_luminance_correct(do_luminance_correct_);
    result->framebuffer()->SetBrightness(brightness_);
  }
  created_frames_.push_back(result);
  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movl $0x10, %edi
callq 0x2190
movq %rax, %rbx
movl $0x28, %edi
callq 0x2190
movq %rax, %r15
movl 0x8(%r14), %esi
movl 0xc(%r14), %edx
shll $0x5, %edx
movl 0x10(%r14), %ecx
movq %rax, %rdi
callq 0x394c
leaq 0x4a8c(%rip), %rax      # 0x7c88
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movq %rbx, 0x8(%rsp)
movq 0x60(%r14), %rsi
cmpq %rsi, 0x58(%r14)
je 0x3249
movzbl 0x14(%r14), %esi
movq %r15, %rdi
callq 0x3b90
movq 0x8(%rbx), %rax
movb 0x15(%r14), %cl
movb %cl, 0x11(%rax)
movzbl 0x16(%r14), %ecx
cmpb $0x1, %cl
adcl $0x0, %ecx
cmpb $0x64, %cl
movl $0x64, %edx
cmovbl %ecx, %edx
movb %dl, 0x12(%rax)
movq 0x60(%r14), %rsi
jmp 0x3261
movb 0x10(%r15), %al
movb %al, 0x14(%r14)
movb 0x11(%r15), %al
movb %al, 0x15(%r14)
movb 0x12(%r15), %al
movb %al, 0x16(%r14)
cmpq 0x68(%r14), %rsi
je 0x3271
movq %rbx, (%rsi)
addq $0x8, 0x60(%r14)
jmp 0x3288
addq $0x58, %r14
leaq 0x8(%rsp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x3810
movq (%rbx), %rbx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r14
movl $0x28, %esi
movq %r15, %rdi
callq 0x21a0
jmp 0x32aa
movq %rax, %r14
movl $0x10, %esi
movq %rbx, %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::SetGPIO(rgb_matrix::GPIO*)
void RGBMatrix::SetGPIO(GPIO *io) {
  if (io == NULL) return;  // nothing to set.
  if (io_ != NULL) return;  // already set.
  io_ = io;
  internal::Framebuffer::InitGPIO(io_, parallel_displays_);
  updater_ = new UpdateThread(io_, active_);
  // If we have multiple processors, the kernel
  // jumps around between these, creating some global flicker.
  // So let's tie it to the last CPU available.
  // The Raspberry Pi2 has 4 cores, our attempt to bind it to
  //   core #3 will succeed.
  // The Raspberry Pi1 only has one core, so this affinity
  //   call will simply fail and we keep using the only core.
  updater_->Start(99, (1<<3));  // Prio: high. Also: put on last CPU.
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x32d3
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
je 0x32db
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rsi, 0x20(%rbx)
movl 0x10(%rbx), %eax
movq %rsi, %rdi
movl %eax, %esi
callq 0x3a74
movl $0xb8, %edi
callq 0x2190
movq %rax, %r14
movq 0x18(%rbx), %rdx
movq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0x364a
movq %r14, 0x50(%rbx)
movq (%r14), %rax
movq 0x10(%rax), %rax
movq %r14, %rdi
movl $0x63, %esi
movl $0x8, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmpq *%rax
movq %rax, %rbx
movl $0xb8, %esi
movq %r14, %rdi
callq 0x21a0
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::~RGBMatrix()
RGBMatrix::~RGBMatrix() {
  updater_->Stop();
  updater_->WaitStopped();
  delete updater_;

  // Make sure LEDs are off.
  active_->Clear();
  active_->framebuffer()->DumpToMatrix(io_);

  for (size_t i = 0; i < created_frames_.size(); ++i) {
    delete created_frames_[i];
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x48c7(%rip), %rax      # 0x7c18
movq %rax, (%rdi)
movq 0x50(%rdi), %r15
leaq 0x20(%r15), %r14
movq %r14, %rdi
callq 0x2220
movb $0x0, 0x48(%r15)
movq %r14, %rdi
callq 0x2140
movq 0x50(%rbx), %rdi
callq 0x46ae
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x3389
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x18(%rbx), %rdi
movq (%rdi), %rax
callq *0x28(%rax)
movq 0x18(%rbx), %rax
movq 0x20(%rbx), %rsi
movq 0x8(%rax), %rdi
callq 0x4426
movq 0x58(%rbx), %rdi
movq 0x60(%rbx), %rcx
cmpq %rdi, %rcx
je 0x33e0
xorl %r14d, %r14d
movq (%rdi,%r14,8), %rax
testq %rax, %rax
je 0x33ce
movq (%rax), %rcx
movq %rax, %rdi
callq *0x8(%rcx)
movq 0x58(%rbx), %rdi
movq 0x60(%rbx), %rcx
incq %r14
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rax, %r14
jb 0x33b4
testq %rdi, %rdi
je 0x33f1
movq 0x68(%rbx), %rsi
subq %rdi, %rsi
callq 0x21a0
addq $0x28, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21c0
movq %rax, %rdi
callq 0x363e
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::SetPWMBits(unsigned char)
bool RGBMatrix::SetPWMBits(uint8_t value) {
  const bool success = active_->framebuffer()->SetPWMBits(value);
  if (success) {
    pwm_bits_ = value;
  }
  return success;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movq 0x18(%rdi), %rax
movq 0x8(%rax), %rdi
callq 0x3b90
testb %al, %al
je 0x3464
movb %bl, 0x14(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::UpdateThread::Run()
virtual void Run() {
    while (running()) {
#ifdef SHOW_REFRESH_RATE
      struct timeval start, end;
      gettimeofday(&start, NULL);
#endif

      current_frame_->framebuffer()->DumpToMatrix(io_);

      {
        MutexLock l(&frame_sync_);
        if (next_frame_ != NULL) {
          current_frame_ = next_frame_;
          next_frame_ = NULL;
        }
        pthread_cond_signal(&frame_done_);
      }

#ifdef SHOW_REFRESH_RATE
      gettimeofday(&end, NULL);
      int64_t usec = ((uint64_t)end.tv_sec * 1000000 + end.tv_usec)
        - ((int64_t)start.tv_sec * 1000000 + start.tv_usec);
      printf("\b\b\b\b\b\b\b\b%6.1fHz", 1e6 / usec);
#endif
    }
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x20(%rdi), %r14
movq %r14, %rdi
callq 0x2220
movb 0x48(%rbx), %bpl
movq %r14, %rdi
callq 0x2140
cmpb $0x1, %bpl
jne 0x3806
leaq 0x50(%rbx), %r15
leaq 0x78(%rbx), %r12
movq 0x18(%rbx), %rsi
movq 0xa8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x4426
movq %r15, %rdi
callq 0x2220
movq 0xb0(%rbx), %rax
testq %rax, %rax
je 0x37dd
movq %rax, 0xa8(%rbx)
movq $0x0, 0xb0(%rbx)
movq %r12, %rdi
callq 0x2030
movq %r15, %rdi
callq 0x2140
movq %r14, %rdi
callq 0x2220
movb 0x48(%rbx), %bpl
movq %r14, %rdi
callq 0x2140
testb %bpl, %bpl
jne 0x37a3
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/framebuffer.cc
// Function: rgb_matrix::internal::Framebuffer::Framebuffer(int, int, int)
Framebuffer::Framebuffer(int rows, int columns, int parallel)
  : rows_(rows),
    parallel_(parallel),
    height_(rows * parallel),
    columns_(columns),
    pwm_bits_(kBitPlanes), do_luminance_correct_(true), brightness_(100),
    double_rows_(rows / SUB_PANELS_), row_mask_(double_rows_ - 1) {
  bitplane_buffer_ = new IoBits [double_rows_ * columns_ * kBitPlanes];
  Clear();
  assert(rows_ <= 32);
  assert(parallel >= 1 && parallel <= 3);
#ifdef ONLY_SINGLE_CHAIN
  if (parallel > 1) {
    fprintf(stderr, "ONLY_SINGLE_CHAIN is defined, but parallel > 1 given\n");
    assert(parallel == 1);
  }
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %r15
movl %esi, (%rdi)
movl %ecx, 0x4(%rdi)
movl %ecx, (%rsp)
movl %ecx, %eax
imull %esi, %eax
movl %eax, 0x8(%rdi)
movl %edx, 0xc(%rdi)
movw $0x10b, 0x10(%rdi)      # imm = 0x10B
movb $0x64, 0x12(%rdi)
movl %esi, %ebx
shrl $0x1f, %ebx
addl %esi, %ebx
sarl %ebx
movl %ebx, 0x14(%rdi)
leal -0x1(%rbx), %eax
movb %al, 0x18(%rdi)
movl %ebx, %r14d
movl %edx, 0x4(%rsp)
imull %edx, %r14d
leal (%r14,%r14,4), %eax
leal (%r14,%rax,2), %eax
movslq %eax, %r12
shlq $0x2, %r12
testl %r14d, %r14d
movq $-0x1, %rdi
cmovnsq %r12, %rdi
callq 0x2040
movq %rax, %r13
testl %r14d, %r14d
je 0x39cd
movq %r13, %rdi
xorl %esi, %esi
movq %r12, %rdx
callq 0x20e0
movq %r13, 0x20(%r15)
movslq %ebx, %rax
movslq 0x4(%rsp), %rcx
imulq %rax, %rcx
imulq $0x2c, %rcx, %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x20e0
cmpl $0x21, %ebp
jge 0x3a09
movl (%rsp), %eax
decl %eax
cmpl $0x3, %eax
jae 0x3a28
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1928(%rip), %rdi      # 0x5338
leaq 0x192d(%rip), %rsi      # 0x5344
leaq 0x1935(%rip), %rcx      # 0x5353
movl $0x46, %edx
callq 0x2110
leaq 0x1962(%rip), %rdi      # 0x5391
leaq 0x190e(%rip), %rsi      # 0x5344
leaq 0x1916(%rip), %rcx      # 0x5353
movl $0x47, %edx
callq 0x2110
nop
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/framebuffer.cc
// Function: rgb_matrix::internal::Framebuffer::InitGPIO(rgb_matrix::GPIO*, int)
void Framebuffer::InitGPIO(GPIO *io, int parallel) {
  if (sOutputEnablePulser != NULL)
    return;  // already initialized.

  // Tell GPIO about all bits we intend to use.
  IoBits b;
  b.raw = 0;

#ifdef PI_REV1_RGB_PINOUT_
  b.bits.output_enable_rev1 = b.bits.output_enable_rev2 = 1;
  b.bits.clock_rev1 = b.bits.clock_rev2 = 1;
#endif

  b.bits.output_enable = 1;
  b.bits.clock = 1;
  b.bits.strobe = 1;

  b.bits.p0_r1 = b.bits.p0_g1 = b.bits.p0_b1 = 1;
  b.bits.p0_r2 = b.bits.p0_g2 = b.bits.p0_b2 = 1;

#ifndef ONLY_SINGLE_CHAIN
  if (parallel >= 2) {
    b.bits.p1_r1 = b.bits.p1_g1 = b.bits.p1_b1 = 1;
    b.bits.p1_r2 = b.bits.p1_g2 = b.bits.p1_b2 = 1;
  }

  if (parallel >= 3) {
    b.bits.p2_r1 = b.bits.p2_g1 = b.bits.p2_b1 = 1;
    b.bits.p2_r2 = b.bits.p2_g2 = b.bits.p2_b2 = 1;
  }
#endif

  b.bits.a = b.bits.b = b.bits.c = b.bits.d = 1;

  // Initialize outputs, make sure that all of these are supported bits.
  const uint32_t result = io->InitOutputs(b.raw);
  assert(result == b.raw);

  // Now, set up the PinPulser for output enable.
  IoBits output_enable_bits;
#ifdef PI_REV1_RGB_PINOUT_
  output_enable_bits.bits.output_enable_rev1
    = output_enable_bits.bits.output_enable_rev2 = 1;
#endif
  output_enable_bits.bits.output_enable = 1;

  std::vector<int> bitplane_timings;
  for (int b = 0; b < kBitPlanes; ++b) {
    bitplane_timings.push_back(kBaseTimeNanos << b);
  }
  sOutputEnablePulser = PinPulser::Create(io, output_enable_bits.raw,
                                          bitplane_timings);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
cmpq $0x0, 0x4738(%rip)      # 0x81c0
jne 0x3b40
movq %rdi, %rbx
cmpl $0x2, %esi
movl $0xbde3ff0, %eax        # imm = 0xBDE3FF0
movl $0xbc60f90, %ecx        # imm = 0xBC60F90
cmovgel %eax, %ecx
movl $0xfff7ffc, %ebp        # imm = 0xFFF7FFC
cmovlel %ecx, %ebp
movl %ebp, %esi
callq 0x2654
cmpl %ebp, %eax
jne 0x3b4d
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r14
movaps %xmm0, (%r14)
movq $0x0, 0x10(%r14)
xorl %r15d, %r15d
leaq 0xc(%rsp), %r12
movl $0x82, %eax
movl %r15d, %ecx
shlq %cl, %rax
movl %eax, 0xc(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0x3afc
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x3b07
movq %r14, %rdi
movq %r12, %rdx
callq 0x2dda
incq %r15
cmpq $0xb, %r15
jne 0x3ad4
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x40000, %esi          # imm = 0x40000
callq 0x2832
movq %rax, 0x4697(%rip)      # 0x81c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3b40
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x185c(%rip), %rdi      # 0x53b0
leaq 0x17e9(%rip), %rsi      # 0x5344
leaq 0x185e(%rip), %rcx      # 0x53c0
movl $0x78, %edx
callq 0x2110
jmp 0x3b6e
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3b88
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O3/eggnot[P]pixel_camera/matrix/lib/framebuffer.cc
// Function: rgb_matrix::internal::CreateLuminanceCIE1931LookupTable()
static uint16_t *CreateLuminanceCIE1931LookupTable() {
  uint16_t *result = new uint16_t[256 * 100];
  for (int i = 0; i < 256; ++i)
    for (int j = 0; j < 100; ++j)
      result[i * 100 + j] = luminance_cie1931(i, j + 1);

  return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl $0xc800, %edi           # imm = 0xC800
callq 0x2040
movq %rax, %rbx
xorl %r14d, %r14d
movss 0xd66(%rip), %xmm1      # 0x530c
movss 0xd62(%rip), %xmm2      # 0x5310
movsd 0xd7a(%rip), %xmm3      # 0x5330
movq %rax, %r15
movzbl %r14b, %eax
xorps %xmm4, %xmm4
cvtsi2ss %eax, %xmm4
xorl %r12d, %r12d
movss %xmm4, 0xc(%rsp)
leaq 0x1(%r12), %r13
movsbl %r13b, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm4, %xmm0
divss %xmm1, %xmm0
ucomiss %xmm0, %xmm2
jae 0x462b
addss 0xd22(%rip), %xmm0      # 0x5314
cvtss2sd %xmm0, %xmm0
divsd 0xd22(%rip), %xmm0      # 0x5320
movsd 0xd22(%rip), %xmm1      # 0x5328
callq 0x2280
movss 0xc(%rsp), %xmm4
movsd 0xd17(%rip), %xmm3      # 0x5330
movss 0xcef(%rip), %xmm2      # 0x5310
movss 0xce3(%rip), %xmm1      # 0x530c
jmp 0x4637
cvtss2sd %xmm0, %xmm0
divsd 0xce1(%rip), %xmm0      # 0x5318
mulsd %xmm3, %xmm0
cvttsd2si %xmm0, %eax
movw %ax, (%r15,%r12,2)
movq %r13, %r12
cmpq $0x64, %r13
jne 0x45cd
incq %r14
addq $0xc8, %r15
cmpq $0x100, %r14            # imm = 0x100
jne 0x45b9
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/_bc.cc
// Function: fast_brandes_BC(graph_t&, std::vector<double, std::allocator<double>>&)
void fast_brandes_BC(
        graph_t&         graph,
        vector<double>& BC_vec
        )
{
    //1. make a component (fill a subgraph)
    //2. loop through all sources
    BC_vec.resize(graph.size());
    fill(BC_vec.begin(), BC_vec.end(), 0.0);
    
    component_t comp;
    comp.comp_type = GRAPH;
    comp.subgraph.fill_graph(graph);
    
    iter_info_t iter_info;
    for(node_id_t s = 0; s < comp.subgraph.size(); ++s) {
        brandes_iter(BC_vec, comp, s, iter_info);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x350, %rsp            # imm = 0x350
movq %rsi, %rbx
movq %rdi, %r15
callq 0x1dfcc
movq %rbx, %rdi
movq %rax, %rsi
callq 0x5be8
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
cmpq %rdx, %rdi
je 0x3313
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x120(%rsp), %rdi
callq 0x6192
leaq 0x318(%rsp), %r14
leaq 0x3(%rsp), %rax
leaq 0x6(%rsp), %r10
leaq 0x5(%rsp), %rdx
leaq 0x8(%rsp), %rcx
leaq 0x7(%rsp), %r8
leaq 0x4(%rsp), %r9
movl $0xa, %esi
movq %r14, %rdi
pushq %rax
pushq %r10
callq 0x6748
addq $0x10, %rsp
leaq 0x120(%rsp), %rdi
movl $0x2, 0x228(%rdi)
movq %r15, %rsi
callq 0x2f2b8
leaq 0x8(%rsp), %r15
movq $0x0, 0xe8(%r15)
movl $0x0, 0xf0(%r15)
xorl %ebp, %ebp
movl $0xe4, %edx
movq %r15, %rdi
xorl %esi, %esi
callq 0x2110
xorps %xmm0, %xmm0
movups %xmm0, 0xf8(%r15)
movups %xmm0, 0x108(%r15)
leaq 0x120(%rsp), %r12
movq %r12, %rdi
callq 0x2e9da
movl %ebp, %ecx
cmpq %rcx, %rax
jbe 0x33de
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r15, %rcx
callq 0x3441
incl %ebp
jmp 0x33bb
leaq 0x8(%rsp), %rdi
callq 0x5c1a
movq %r14, %rdi
callq 0x6858
leaq 0x120(%rsp), %rdi
callq 0x63d2
addq $0x350, %rsp            # imm = 0x350
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3424
movq %rax, %rbx
jmp 0x342c
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5c1a
movq %r14, %rdi
callq 0x6858
leaq 0x120(%rsp), %rdi
callq 0x63d2
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/_bc.cc
// Function: iCentral(std::vector<double, std::allocator<double>>&, component_t&, std::pair<unsigned int, unsigned int>, operation_t)
void iCentral(
        vector<double>& dBC_vec,
        component_t&    comp,
        edge_t          e,
        operation_t     op
        )
{
    fill_vec<double>(dBC_vec, comp.subgraph.size(), 0.0);
    vector<int> d_src_vec, d_dst_vec;
    comp.subgraph.find_sssp(e.first, d_src_vec);
    comp.subgraph.find_sssp(e.second, d_dst_vec);
    iter_info_t iter_info;
    for(node_id_t s = 0; s < comp.subgraph.size(); ++s) {
        if(d_src_vec[s] != d_dst_vec[s]) {
            int dd = d_src_vec[s] - d_dst_vec[s]; //dd=d_v1-d_v2
            iCentral_iter(dBC_vec, comp, s, e, iter_info, dd, false ,op);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x158, %rsp            # imm = 0x158
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rsi, %rdi
callq 0x2e9da
movq %r12, %rdi
movq %rax, %rsi
callq 0x5be8
movq (%r12), %rdi
movq 0x8(%r12), %rdx
cmpq %rdx, %rdi
je 0x3831
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
xorl %eax, %eax
movq %rax, 0x10(%rdx)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r15, %rdi
movl %r14d, %esi
callq 0x2ee54
movq %r14, %rsi
shrq $0x20, %rsi
movq %rsp, %rdx
movq %r15, %rdi
callq 0x2ee54
leaq 0x40(%rsp), %r13
movq $0x0, 0xe8(%r13)
movl $0x0, 0xf0(%r13)
xorl %ebp, %ebp
movl $0xe4, %edx
movq %r13, %rdi
xorl %esi, %esi
callq 0x2110
xorps %xmm0, %xmm0
movups %xmm0, 0xf8(%r13)
movups %xmm0, 0x108(%r13)
movq %r15, %rdi
callq 0x2e9da
movl %ebp, %ebp
cmpq %rbp, %rax
jbe 0x38e7
movq 0x20(%rsp), %rax
movl (%rax,%rbp,4), %r9d
movq (%rsp), %rax
subl (%rax,%rbp,4), %r9d
je 0x38e3
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %r13, %r8
pushq %rbx
pushq $0x0
callq 0x3f9d
addq $0x10, %rsp
incl %ebp
jmp 0x38a7
leaq 0x40(%rsp), %rdi
callq 0x5c1a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x3907
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x391e
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x3944
jmp 0x3937
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x5c1a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x395a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3971
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/_bc.cc
// Function: iCentral_iter(std::vector<double, std::allocator<double>>&, component_t&, unsigned int, std::pair<unsigned int, unsigned int>, iter_info_t&, int, bool, operation_t)
void iCentral_iter(
        vector<double>& dBC_vec,    // delta BC of vertices
        component_t&    comp,       // component could be BCC, MUC, or just a graph
        node_id_t       s,          // source of the iteration
        edge_t          e,          // inserted edge
        iter_info_t&    iter_info,  //TODO to be used later?
        int             dd,
        bool            use_d_1,
        operation_t      op
        )
{
    iter_info.init_all(comp.subgraph.size());
    if(dd > 0) {
        node_id_t tmp = e.first;
        e.first = e.second;
        e.second = tmp;
    }
    dd = abs(dd);
    if(op == INSERTION) {
        //NOTE: the d=1 optimization has a bug, however it was used in
        //      some of the performance results    
        //if(dd == 1 && use_d_1) {
        //    iter_info.init_new(comp.subgraph.size());//initializes the data structures required for BBFS_RBFS_d1
        //    BBFS_RBFS_d1(dBC_vec, iter_info, comp, s, e);
        //} else {
            BBFS(iter_info, comp, s);
            RBFS(dBC_vec, comp, s, iter_info, false, true);
            partial_BBFS_addition(iter_info, comp, s, e);
            RBFS(dBC_vec, comp, s, iter_info, true, false);
        //}
    } else if(op == DELETION) {
            BBFS(iter_info, comp, s);
            RBFS(dBC_vec, comp, s, iter_info, false, true);
            partial_BBFS_deletion(iter_info, comp, s, e);
            RBFS(dBC_vec, comp, s, iter_info, true, false);
    }

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r9d, %r12d
movq %r8, %rbx
movq %rcx, %r15
movl %edx, 0xc(%rsp)
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movl 0x58(%rsp), %ebp
movq %rcx, %r13
shrq $0x20, %r13
movq %rsi, %rdi
callq 0x2e9da
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1f9ec
testl %r12d, %r12d
movl %r15d, %r12d
cmovgl %r13d, %r12d
cmovgl %r15d, %r13d
cmpl $0x1, %ebp
je 0x403f
testl %ebp, %ebp
jne 0x40ac
movq %rbx, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edx
callq 0x41ba
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x441f
shlq $0x20, %r13
movl %r12d, %ecx
orq %r13, %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x49b1
jmp 0x4085
movq %rbx, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edx
callq 0x41ba
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x441f
shlq $0x20, %r13
movl %r12d, %ecx
orq %r13, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x4e24
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
movl $0x1, %r8d
xorl %r9d, %r9d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x441f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/_bc.cc
// Function: iCentral_block(std::vector<double, std::allocator<double>>*, component_t*, std::pair<unsigned int, unsigned int>*, std::vector<unsigned int, std::allocator<unsigned int>>*, operation_t*)
void iCentral_block(
        vector<double>*     dBC_vec,
        component_t*        comp,
        edge_t*             e,
        vector<node_id_t>*  source_vec,
        operation_t*        op
        )
{
    fill_vec<double>(*dBC_vec, comp->subgraph.size(), 0.0);
    iter_info_t iter_info;
    for(int i = 0; i < source_vec->size(); ++i) {
        node_id_t s = (*source_vec)[i];
        iCentral_iter(*dBC_vec, *comp, s, *e, iter_info, -1, false, *op);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r13
movq %rsi, %rdi
callq 0x2e9da
movq %r13, %rdi
movq %rax, %rsi
callq 0x5be8
movq (%r13), %rdi
movq 0x8(%r13), %rdx
cmpq %rdx, %rdi
je 0x4111
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
movq %rsp, %rbp
movq $0x0, 0xe8(%rbp)
movl $0x0, 0xf0(%rbp)
movl $0xe4, %edx
movq %rbp, %rdi
xorl %esi, %esi
callq 0x2110
xorps %xmm0, %xmm0
movups %xmm0, 0xf8(%rbp)
movups %xmm0, 0x108(%rbp)
movq (%r14), %rax
cmpq %rax, 0x8(%r14)
je 0x418d
xorl %ebp, %ebp
movl (%rax,%rbp,4), %edx
movq (%r15), %rcx
movl (%rbx), %eax
movq %r13, %rdi
movq %r12, %rsi
movq %rsp, %r8
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
pushq %rax
pushq $0x0
callq 0x3f9d
addq $0x10, %rsp
incq %rbp
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
ja 0x4154
movq %rsp, %rdi
callq 0x5c1a
addq $0x118, %rsp            # imm = 0x118
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x5c1a
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/_bc.cc
// Function: parallel_brandes(graph_t&, std::vector<double, std::allocator<double>>&)
void parallel_brandes(
        graph_t&        graph,
        vector<double>& BC_vec
        )
{
    //1. make a component (fill a subgraph)
    //2. loop through all sources
    BC_vec.resize(graph.size());
    fill(BC_vec.begin(), BC_vec.end(), 0.0);
    
    component_t comp;
    comp.comp_type = GRAPH;
    comp.subgraph.fill_graph(graph);
    
    // we want to do brandes_iter from each node in the graph
    // each thread will be responsible for doing brandes_iter from
    // a subset of the nodes in the graph
    //1. divide the nodes in the graph to vectors, each has a subset of nodes 
    //   a thread is responsible for
    //2. call brandes_block to get the contribution of the thread's nodes to the
    //   final BC value (fork and join)
    //3. accumulate the results in BC_vec

}

// Assembly:
pushq %r14
pushq %rbx
subq $0x238, %rsp            # imm = 0x238
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1dfcc
movq %r14, %rdi
movq %rax, %rsi
callq 0x5be8
movq (%r14), %rdi
movq 0x8(%r14), %rdx
cmpq %rdx, %rdi
je 0x5b4c
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x8(%rsp), %rdi
callq 0x6192
leaq 0x200(%rsp), %r14
leaq 0x2(%rsp), %rax
leaq 0x5(%rsp), %r10
leaq 0x4(%rsp), %rdx
leaq 0x7(%rsp), %rcx
leaq 0x6(%rsp), %r8
leaq 0x3(%rsp), %r9
movl $0xa, %esi
movq %r14, %rdi
pushq %rax
pushq %r10
callq 0x6748
addq $0x10, %rsp
leaq 0x8(%rsp), %rdi
movl $0x2, 0x228(%rdi)
movq %rbx, %rsi
callq 0x2f2b8
movq %r14, %rdi
callq 0x6858
leaq 0x8(%rsp), %rdi
callq 0x63d2
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x6858
jmp 0x5bd4
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x63d2
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/_bc_mem.cc
// Function: Update_BC_mem(std::vector<double, std::allocator<double>>&, graph_t&, comp_type_t, std::pair<unsigned int, unsigned int>, std::vector<iter_info_t, std::allocator<iter_info_t>>&)
void Update_BC_mem(
        vector<double>&         BC_vec,
        graph_t&                graph,
        comp_type_t             comp_type,
        edge_t                  e,
        vector<iter_info_t>&    iter_info_vec
        )
{
    if(comp_type == GRAPH) {
        component_t comp;
        comp.comp_type = GRAPH;
        comp.subgraph.fill_graph(graph);
        vector<double> dBC_vec;
        iCentral_mem(dBC_vec, comp, e, iter_info_vec);
        for(int i = 0; i < dBC_vec.size(); ++i) {
            BC_vec[i] += dBC_vec[i];
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x260, %rsp            # imm = 0x260
cmpl $0x2, %edx
jne 0x7d3e
movq %r8, %r15
movq %rcx, %r12
movq %rsi, %r13
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
callq 0x6192
leaq 0x228(%rsp), %rbx
leaq 0xb(%rsp), %rax
leaq 0xe(%rsp), %r10
leaq 0xd(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0xf(%rsp), %r8
leaq 0xc(%rsp), %r9
movl $0xa, %esi
movq %rbx, %rdi
pushq %rax
pushq %r10
callq 0x6748
addq $0x10, %rsp
leaq 0x30(%rsp), %rdi
movl $0x2, 0x228(%rdi)
movq %r13, %rsi
callq 0x2f2b8
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x30(%rsp), %rsi
movq %r12, %rdx
movq %r15, %rcx
callq 0x7d8d
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
je 0x7d1a
sarq $0x3, %rax
movq (%r14), %rcx
cmpq $0x1, %rax
adcq $0x0, %rax
xorl %edx, %edx
movsd (%rdi,%rdx,8), %xmm0
addsd (%rcx,%rdx,8), %xmm0
movsd %xmm0, (%rcx,%rdx,8)
incq %rdx
cmpq %rdx, %rax
jne 0x7d01
jmp 0x7d1f
testq %rdi, %rdi
je 0x7d2c
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x6858
leaq 0x30(%rsp), %rdi
callq 0x63d2
addq $0x260, %rsp            # imm = 0x260
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x7d6e
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x7d6e
movq %rax, %r14
movq %rbx, %rdi
callq 0x6858
jmp 0x7d7b
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x63d2
movq %r14, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/fjamour[P]icentral/src/_bc_mem.cc
// Function: iCentral_mem(std::vector<double, std::allocator<double>>&, component_t&, std::pair<unsigned int, unsigned int>, std::vector<iter_info_t, std::allocator<iter_info_t>>&)
void iCentral_mem(
        vector<double>&         dBC_vec,
        component_t&            comp,
        edge_t                  e,
        vector<iter_info_t>&    iter_info_vec
        )
{
    fill_vec<double>(dBC_vec, comp.subgraph.size(), 0.0);
    vector<int> d_src_vec, d_dst_vec;
    comp.subgraph.find_sssp(e.first, d_src_vec);
    comp.subgraph.find_sssp(e.second, d_dst_vec);    
    for(node_id_t s = 0; s < comp.subgraph.size(); ++s) {
        if(d_src_vec[s] != d_dst_vec[s]) {
            iCentral_iter_mem(dBC_vec, comp, s, e, iter_info_vec[s]);
        }

    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq %rsi, %rdi
callq 0x2e9da
movq %r12, %rdi
movq %rax, %rsi
callq 0x5be8
movq (%r12), %rdi
movq 0x8(%r12), %rdx
cmpq %rdx, %rdi
je 0x7ddd
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
xorl %eax, %eax
movq %rax, 0x10(%rdx)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq %r15, %rdi
movl %r14d, %esi
callq 0x2ee54
movq %r14, %rsi
shrq $0x20, %rsi
movq %rsp, %rdx
movq %r15, %rdi
callq 0x2ee54
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x2e9da
movl %r13d, %r13d
cmpq %r13, %rax
jbe 0x7e5a
movq 0x20(%rsp), %rax
movl (%rax,%r13,4), %eax
movq (%rsp), %rcx
cmpl (%rcx,%r13,4), %eax
je 0x7e55
imulq $0x118, %r13, %r8       # imm = 0x118
addq (%rbx), %r8
movq %r12, %rdi
movq %r15, %rsi
movl %r13d, %edx
movq %r14, %rcx
callq 0x7ecf
incl %r13d
jmp 0x7e17
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7e70
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7e87
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x7e97
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7eb0
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7ec7
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0