LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::mmap_bcm_register(bool, long)
static uint32_t *mmap_bcm_register(bool isRPi2, off_t register_offset) {
  const off_t base = (isRPi2 ? BCM2709_PERI_BASE : BCM2708_PERI_BASE);

  int mem_fd;
  if ((mem_fd = open("/dev/mem", O_RDWR|O_SYNC) ) < 0) {
    perror("can't open /dev/mem: ");
    return NULL;
  }

  uint32_t *result =
    (uint32_t*) mmap(NULL,                  // Any adddress in our space will do
                     REGISTER_BLOCK_SIZE,   // Map length
                     PROT_READ|PROT_WRITE,  // Enable r/w on GPIO registers.
                     MAP_SHARED,
                     mem_fd,                // File to map
                     base + register_offset // Offset to bcm register
                     );
  close(mem_fd);

  if (result == MAP_FAILED) {
    fprintf(stderr, "mmap error %p\n", result);
    return NULL;
  }
  return result;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movl %edi, %r14d
leaq 0x29a9(%rip), %rdi      # 0x50c7
movl $0x101002, %esi         # imm = 0x101002
xorl %eax, %eax
callq 0x2130
testl %eax, %eax
js 0x2779
movl %eax, %ebp
leaq 0x20000000(%rbx), %rax
addq $0x3f000000, %rbx       # imm = 0x3F000000
testb %r14b, %r14b
cmoveq %rax, %rbx
movl $0x1000, %esi           # imm = 0x1000
xorl %edi, %edi
movl $0x3, %edx
movl $0x1, %ecx
movl %ebp, %r8d
movq %rbx, %r9
callq 0x22b0
movq %rax, %rbx
movl %ebp, %edi
callq 0x22f0
cmpq $-0x1, %rbx
je 0x2787
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2950(%rip), %rdi      # 0x50d0
callq 0x2160
jmp 0x278c
callq 0x232c
xorl %ebx, %ebx
jmp 0x2771
// File: /workspace/github_cpp_makefile_star2_O1/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::IsRaspberryPi2()
static bool IsRaspberryPi2() {
  // TODO: there must be a better, more robust way. Can we ask the processor ?
  char buffer[2048];
  const int fd = open("/proc/cmdline", O_RDONLY);
  ssize_t r = read(fd, buffer, sizeof(buffer) - 1); // returns all in one read.
  buffer[r >= 0 ? r : 0] = '\0';
  close(fd);
  const char *mem_size_key;
  uint64_t mem_size = 0;
  if ((mem_size_key = strstr(buffer, "mem_size=")) != NULL
      && (sscanf(mem_size_key + strlen("mem_size="), "%" PRIx64, &mem_size) == 1)
      && (mem_size == 0x3F000000)) {
    return true;
  }
  return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x810, %rsp            # imm = 0x810
leaq 0x2952(%rip), %rdi      # 0x50f5
xorl %r15d, %r15d
xorl %esi, %esi
xorl %eax, %eax
callq 0x2130
movl %eax, %ebx
leaq 0x10(%rsp), %r14
movl $0x7ff, %edx            # imm = 0x7FF
movl %eax, %edi
movq %r14, %rsi
callq 0x2210
testq %rax, %rax
cmovgq %rax, %r15
movb $0x0, 0x10(%rsp,%r15)
movl %ebx, %edi
callq 0x22f0
movq $0x0, 0x8(%rsp)
leaq 0x291a(%rip), %rsi      # 0x5103
movq %r14, %rdi
callq 0x2060
testq %rax, %rax
je 0x2822
addq $0x9, %rax
leaq 0x290c(%rip), %rsi      # 0x510d
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
xorl %eax, %eax
callq 0x2180
cmpl $0x1, %eax
jne 0x2822
movb $0x1, %al
cmpq $0x3f000000, 0x8(%rsp)  # imm = 0x3F000000
je 0x2824
xorl %eax, %eax
addq $0x810, %rsp            # imm = 0x810
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2b5f
movabsq $0x3ffffffba, %rax      # imm = 0x3FFFFFFBA
addq %rax, %rdi
shrq $0x2, %rdi
testl %edi, %edi
je 0x2b5f
nop
decl %edi
jne 0x2b5a
retq
// File: /workspace/github_cpp_makefile_star2_O1/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), %rcx
movl (%rcx,%rax,4), %edx
cmpl $0xf, %edx
ja 0x2c03
movq 0x38(%rdi), %rsi
movl %edx, 0x10(%rsi)
movl (%rcx,%rax,4), %ecx
movq 0x40(%rdi), %rdx
movl %ecx, (%rdx)
jmp 0x2c51
shrl $0x3, %edx
movq 0x38(%rdi), %rsi
movl %edx, 0x10(%rsi)
movl (%rcx,%rax,4), %edx
shrl $0x3, %edx
movq 0x40(%rdi), %rsi
movl %edx, (%rsi)
movl (%rcx,%rax,4), %edx
shrl $0x3, %edx
movl %edx, (%rsi)
movl (%rcx,%rax,4), %edx
shrl $0x3, %edx
movl %edx, (%rsi)
movl (%rcx,%rax,4), %edx
shrl $0x3, %edx
movl %edx, (%rsi)
movl (%rcx,%rax,4), %edx
shrl $0x3, %edx
movl %edx, (%rsi)
movl (%rcx,%rax,4), %edx
shrl $0x3, %edx
movl %edx, (%rsi)
movl (%rcx,%rax,4), %edx
shrl $0x3, %edx
movl %edx, (%rsi)
movl (%rcx,%rax,4), %ecx
shrl $0x3, %ecx
movl %ecx, (%rsi)
movq 0x40(%rdi), %rcx
xorl %edx, %edx
movl %edx, (%rcx)
movl %edx, (%rcx)
movq 0x20(%rdi), %rcx
movl (%rcx,%rax,4), %eax
movl %eax, 0x54(%rdi)
movq 0x5544(%rip), %rax      # 0x81b0
movl (%rax), %eax
movl %eax, 0x50(%rdi)
movq 0x38(%rdi), %rax
movl $0x31, (%rax)
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x5525(%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 0x2cb9
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 0x2cbd
movl $0x70, (%rax)
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x4b4a(%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 0x3156
movq %r14, %rdi
callq 0x31a0
movq %rax, 0x18(%r14)
movq (%r14), %rax
movq %r14, %rdi
callq *0x28(%rax)
movq %r14, %rdi
movq %r15, %rsi
callq 0x32a4
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
movq 0x58(%r14), %rdi
testq %rdi, %rdi
je 0x3146
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_O1/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 0x3176
movb 0x504d(%rip), %al       # 0x81b8
leaq 0x502e(%rip), %r14      # 0x81a0
testb %al, %al
je 0x3182
movq %r14, 0x70(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x502f(%rip), %rdi      # 0x81b8
callq 0x22c0
testl %eax, %eax
je 0x3176
leaq 0x501f(%rip), %rdi      # 0x81b8
callq 0x2100
jmp 0x3176
// File: /workspace/github_cpp_makefile_star2_O1/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, %rbx
movl $0x10, %edi
callq 0x2190
movq %rax, %r14
movl $0x28, %edi
callq 0x2190
movq %rax, %r15
movl 0x8(%rbx), %esi
movl 0xc(%rbx), %edx
shll $0x5, %edx
movl 0x10(%rbx), %ecx
movq %rax, %rdi
callq 0x392c
leaq 0x4aa7(%rip), %rax      # 0x7c88
movq %rax, (%r14)
movq %r15, 0x8(%r14)
movq %r14, 0x8(%rsp)
movq 0x58(%rbx), %rax
cmpq 0x60(%rbx), %rax
je 0x322c
movzbl 0x14(%rbx), %esi
movq %r15, %rdi
callq 0x3b7a
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movb 0x15(%rbx), %cl
movb %cl, 0x11(%rax)
movzbl 0x16(%rbx), %ecx
cmpb $0x1, %cl
adcl $0x0, %ecx
cmpb $0x64, %cl
movl $0x64, %edx
cmovbl %ecx, %edx
movb %dl, 0x12(%rax)
jmp 0x3241
movb 0x10(%r15), %al
movb %al, 0x14(%rbx)
movb 0x11(%r15), %al
movb %al, 0x15(%rbx)
movb 0x12(%r15), %al
movb %al, 0x16(%rbx)
movq 0x60(%rbx), %rsi
cmpq 0x68(%rbx), %rsi
je 0x325a
movq 0x8(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x60(%rbx)
jmp 0x326b
addq $0x58, %rbx
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
callq 0x37ee
movq 0x8(%rsp), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
movl $0x28, %esi
movq %r15, %rdi
callq 0x21a0
jmp 0x328f
movq %rax, %rbx
movl $0x10, %esi
movq %r14, %rdi
callq 0x21a0
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x32b7
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
je 0x32bf
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rsi, 0x20(%rbx)
movl 0x10(%rbx), %eax
movq %rsi, %rdi
movl %eax, %esi
callq 0x3a54
movl $0xb8, %edi
callq 0x2190
movq %rax, %r14
movq 0x18(%rbx), %rdx
movq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0x3628
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_O1/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 0x48e3(%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 0x468a
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x336d
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 0x43f4
movq 0x58(%rbx), %rdi
cmpq %rdi, 0x60(%rbx)
je 0x33bb
xorl %r14d, %r14d
movq (%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x33a4
movq (%rdi), %rax
callq *0x8(%rax)
incq %r14
movq 0x58(%rbx), %rdi
movq 0x60(%rbx), %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rax, %r14
jb 0x3395
testq %rdi, %rdi
je 0x33cc
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 0x361c
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x3b7a
testb %al, %al
je 0x3440
movb %bl, 0x14(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/eggnot[P]pixel_camera/matrix/lib/led-matrix.cc
// Function: rgb_matrix::RGBMatrix::UpdateThread::SwapOnVSync(rgb_matrix::FrameCanvas*)
FrameCanvas *SwapOnVSync(FrameCanvas *other) {
    MutexLock l(&frame_sync_);
    FrameCanvas *previous = current_frame_;
    next_frame_ = other;
    frame_sync_.WaitOn(&frame_done_);
    return previous;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r12
leaq 0x50(%rdi), %rbx
movq %rbx, %rdi
callq 0x2220
movq 0xa8(%r12), %r14
movq %r15, 0xb0(%r12)
addq $0x78, %r12
movq %r12, %rdi
movq %rbx, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x2140
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2140
movq %r14, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x37e4
leaq 0x50(%rbx), %r15
leaq 0x78(%rbx), %r12
movq 0x18(%rbx), %rsi
movq 0xa8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x43f4
movq %r15, %rdi
callq 0x2220
movq 0xb0(%rbx), %rax
testq %rax, %rax
je 0x37bb
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 0x3781
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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, %r13
shlq $0x2, %r13
testl %r14d, %r14d
movq $-0x1, %rdi
cmovnsq %r13, %rdi
callq 0x2040
movq %rax, %r12
testl %r14d, %r14d
je 0x39ad
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x20e0
movq %r12, 0x20(%r15)
movslq %ebx, %rax
movslq 0x4(%rsp), %rcx
imulq %rax, %rcx
imulq $0x2c, %rcx, %rdx
movq %r12, %rdi
xorl %esi, %esi
callq 0x20e0
cmpl $0x21, %ebp
jge 0x39e9
movl (%rsp), %eax
decl %eax
cmpl $0x3, %eax
jae 0x3a08
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1948(%rip), %rdi      # 0x5338
leaq 0x194d(%rip), %rsi      # 0x5344
leaq 0x1955(%rip), %rcx      # 0x5353
movl $0x46, %edx
callq 0x2110
leaq 0x1982(%rip), %rdi      # 0x5391
leaq 0x192e(%rip), %rsi      # 0x5344
leaq 0x1936(%rip), %rcx      # 0x5353
movl $0x47, %edx
callq 0x2110
nop
// File: /workspace/github_cpp_makefile_star2_O1/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, 0x4758(%rip)      # 0x81c0
jne 0x3b2a
movq %rdi, %rbx
cmpl $0x2, %esi
movl $0x81e3ff0, %eax        # imm = 0x81E3FF0
movl $0x8060f90, %ecx        # imm = 0x8060F90
cmovgel %eax, %ecx
leal 0x421400c(%rcx), %ebp
cmpl $0x3, %esi
cmovll %ecx, %ebp
orl $0x3c00000, %ebp        # imm = 0x3C00000
movl %ebp, %esi
callq 0x2654
cmpl %ebp, %eax
jne 0x3b37
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 0x3ae6
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0x3af1
movq %r14, %rdi
movq %r12, %rdx
callq 0x2dc4
incq %r15
cmpq $0xb, %r15
jne 0x3abe
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x40000, %esi          # imm = 0x40000
callq 0x2832
movq %rax, 0x46ad(%rip)      # 0x81c0
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3b2a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1872(%rip), %rdi      # 0x53b0
leaq 0x17ff(%rip), %rsi      # 0x5344
leaq 0x1874(%rip), %rcx      # 0x53c0
movl $0x78, %edx
callq 0x2110
jmp 0x3b58
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x3b72
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21a0
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O1/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 0xd88(%rip), %xmm1      # 0x530c
movss 0xd84(%rip), %xmm2      # 0x5310
movsd 0xd9c(%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
movzbl %r13b, %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
mulss %xmm4, %xmm0
divss %xmm1, %xmm0
ucomiss %xmm0, %xmm2
jae 0x4609
addss 0xd44(%rip), %xmm0      # 0x5314
cvtss2sd %xmm0, %xmm0
divsd 0xd44(%rip), %xmm0      # 0x5320
movsd 0xd44(%rip), %xmm1      # 0x5328
callq 0x2280
movss 0xc(%rsp), %xmm4
movsd 0xd39(%rip), %xmm3      # 0x5330
movss 0xd11(%rip), %xmm2      # 0x5310
movss 0xd05(%rip), %xmm1      # 0x530c
jmp 0x4615
cvtss2sd %xmm0, %xmm0
divsd 0xd03(%rip), %xmm0      # 0x5318
mulsd %xmm3, %xmm0
cvttsd2si %xmm0, %eax
movw %ax, (%r15,%r12,2)
movq %r13, %r12
cmpq $0x64, %r13
jne 0x45ab
incq %r14
addq $0xc8, %r15
cmpq $0x100, %r14            # imm = 0x100
jne 0x4597
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1e160
movq %rbx, %rdi
movq %rax, %rsi
callq 0x5c58
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
cmpq %rdx, %rdi
je 0x32d3
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x120(%rsp), %rdi
callq 0x6220
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 0x67d6
addq $0x10, %rsp
leaq 0x120(%rsp), %rdi
movl $0x2, 0x228(%rdi)
movq %r15, %rsi
callq 0x2f63a
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 0x2ed3a
movl %ebp, %ecx
cmpq %rcx, %rax
jbe 0x339e
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movq %r15, %rcx
callq 0x3401
incl %ebp
jmp 0x337b
leaq 0x8(%rsp), %rdi
callq 0x5c8a
movq %r14, %rdi
callq 0x68e6
leaq 0x120(%rsp), %rdi
callq 0x6460
addq $0x350, %rsp            # imm = 0x350
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x33e4
movq %rax, %rbx
jmp 0x33ec
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x5c8a
movq %r14, %rdi
callq 0x68e6
leaq 0x120(%rsp), %rdi
callq 0x6460
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ed3a
movq %r12, %rdi
movq %rax, %rsi
callq 0x5c58
movq (%r12), %rdi
movq 0x8(%r12), %rdx
cmpq %rdx, %rdi
je 0x37d6
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 0x2f1e0
movq %r14, %rsi
shrq $0x20, %rsi
movq %rsp, %rdx
movq %r15, %rdi
callq 0x2f1e0
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 0x2ed3a
movl %ebp, %ebp
cmpq %rbp, %rax
jbe 0x388c
movq 0x20(%rsp), %rax
movl (%rax,%rbp,4), %r9d
movq (%rsp), %rax
subl (%rax,%rbp,4), %r9d
je 0x3888
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %r13, %r8
pushq %rbx
pushq $0x0
callq 0x3f37
addq $0x10, %rsp
incl %ebp
jmp 0x384c
leaq 0x40(%rsp), %rdi
callq 0x5c8a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x38ac
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x38c3
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 0x38e9
jmp 0x38dc
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x5c8a
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x38ff
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x3916
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ed3a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1fba8
testl %r12d, %r12d
movl %r15d, %r12d
cmovgl %r13d, %r12d
cmovgl %r15d, %r13d
cmpl $0x1, %ebp
je 0x3fd9
testl %ebp, %ebp
jne 0x4046
movq %rbx, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edx
callq 0x4154
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x43b9
shlq $0x20, %r13
movl %r12d, %ecx
orq %r13, %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x49a8
jmp 0x401f
movq %rbx, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edx
callq 0x4154
movq 0x10(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x43b9
shlq $0x20, %r13
movl %r12d, %ecx
orq %r13, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x4e25
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 0x43b9
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ed3a
movq %r13, %rdi
movq %rax, %rsi
callq 0x5c58
movq (%r13), %rdi
movq 0x8(%r13), %rdx
cmpq %rdx, %rdi
je 0x40ab
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 0x4127
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 0x3f37
addq $0x10, %rsp
incq %rbp
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
ja 0x40ee
movq %rsp, %rdi
callq 0x5c8a
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 0x5c8a
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x1e160
movq %r14, %rdi
movq %rax, %rsi
callq 0x5c58
movq (%r14), %rdi
movq 0x8(%r14), %rdx
cmpq %rdx, %rdi
je 0x5bbd
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
leaq 0x8(%rsp), %rdi
callq 0x6220
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 0x67d6
addq $0x10, %rsp
leaq 0x8(%rsp), %rdi
movl $0x2, 0x228(%rdi)
movq %rbx, %rsi
callq 0x2f63a
movq %r14, %rdi
callq 0x68e6
leaq 0x8(%rsp), %rdi
callq 0x6460
addq $0x238, %rsp            # imm = 0x238
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq %r14, %rdi
callq 0x68e6
jmp 0x5c45
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x6460
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x7d98
movq %r8, %r15
movq %rcx, %r12
movq %rsi, %r13
movq %rdi, %r14
leaq 0x30(%rsp), %rdi
callq 0x6220
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 0x67d6
addq $0x10, %rsp
leaq 0x30(%rsp), %rdi
movl $0x2, 0x228(%rdi)
movq %r13, %rsi
callq 0x2f63a
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 0x7de7
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
subq %rdi, %rax
je 0x7d74
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 0x7d5d
testq %rdi, %rdi
je 0x7d86
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x68e6
leaq 0x30(%rsp), %rdi
callq 0x6460
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 0x7dc8
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
jmp 0x7dc8
movq %rax, %r14
movq %rbx, %rdi
callq 0x68e6
jmp 0x7dd5
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x6460
movq %r14, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/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 0x2ed3a
movq %r12, %rdi
movq %rax, %rsi
callq 0x5c58
movq (%r12), %rdi
movq 0x8(%r12), %rdx
cmpq %rdx, %rdi
je 0x7e37
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 0x2f1e0
movq %r14, %rsi
shrq $0x20, %rsi
movq %rsp, %rdx
movq %r15, %rdi
callq 0x2f1e0
xorl %r13d, %r13d
movq %r15, %rdi
callq 0x2ed3a
movl %r13d, %r13d
cmpq %r13, %rax
jbe 0x7eb4
movq 0x20(%rsp), %rax
movl (%rax,%r13,4), %eax
movq (%rsp), %rcx
cmpl (%rcx,%r13,4), %eax
je 0x7eaf
imulq $0x118, %r13, %r8       # imm = 0x118
addq (%rbx), %r8
movq %r12, %rdi
movq %r15, %rsi
movl %r13d, %edx
movq %r14, %rcx
callq 0x7f29
incl %r13d
jmp 0x7e71
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7eca
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7ee1
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x7ef1
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7f0a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x20(%rsp), %rdi
testq %rdi, %rdi
je 0x7f21
movq 0x30(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/bc.cc
// Function: brandes_bc(graph_t&, int)
vector<double> brandes_bc(graph_t& graph_in, int max_iter)
{
    vector<double> bc_vec;
    bc_vec.resize(graph_in.size());
    fill(bc_vec.begin(), bc_vec.end(), 0.0);
    if(max_iter == -1) {
        for(node_id_t s = 0; s < graph_in.size(); ++s) {
            brandes_iter(graph_in, s, bc_vec);
        }
        for(node_id_t i = 0; i < bc_vec.size(); ++i) {
            bc_vec[i] = bc_vec[i]/2;
        }
    } else {
        int num_iter = min(max_iter, (int)graph_in.size());
        for(node_id_t s = 0; s < num_iter; ++s) {
            brandes_iter(graph_in, s, bc_vec);
        }
    }

    return bc_vec;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq %rsi, %rdi
callq 0x1e160
movq %rbx, %rdi
movq %rax, %rsi
callq 0x5c58
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
cmpq %rdx, %rdi
je 0xaa6b
subq %rdi, %rdx
addq $-0x8, %rdx
andq $-0x8, %rdx
addq $0x8, %rdx
xorl %esi, %esi
callq 0x2110
cmpl $-0x1, %ebp
je 0xaa9c
movq %r14, %rdi
callq 0x1e160
cmpl %ebp, %eax
cmovll %eax, %ebp
testl %ebp, %ebp
je 0xaaf0
xorl %r15d, %r15d
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0xab23
incl %r15d
cmpl %r15d, %ebp
jne 0xaa84
jmp 0xaaf0
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x1e160
movl %ebp, %ecx
cmpq %rcx, %rax
jbe 0xaabe
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0xab23
incl %ebp
jmp 0xaa9e
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
je 0xaaf0
sarq $0x3, %rcx
xorl %edx, %edx
movsd 0x26560(%rip), %xmm0    # 0x31038
movsd (%rax,%rdx,8), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rdx,8)
incq %rdx
movl %edx, %esi
cmpq %rsi, %rcx
ja 0xaad8
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xab04
jmp 0xab04
jmp 0xab04
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xab1b
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x2250
movq %r14, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/bc.cc
// Function: brandes_bc_hash_out(graph_t&, int)
brandes_bc_hash_out(graph_t& graph_in, int max_iter)
{
    tr1_map_t(double) bc_vec;
    for(int i = 0; i < graph_in.nodes_vec.size(); ++i) {
        bc_vec.insert(make_pair(i, 0.0));
    }

    if(max_iter == -1) {
        for(node_id_t s = 0; s < graph_in.size(); ++s) {
            brandes_iter_hash_out(graph_in, s, bc_vec);
        }
        for(node_id_t i = 0; i < bc_vec.size(); ++i) {
            bc_vec[i] = bc_vec[i]/2;
        }
    } else {
        int num_iter = min(max_iter, (int)graph_in.size());
        for(node_id_t s = 0; s < num_iter; ++s) {
            brandes_iter_hash_out(graph_in, s, bc_vec);
        }
    }

    return bc_vec;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %edx, 0x8(%rsp)
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x4(%rsp), %rax
leaq 0x7(%rsp), %r10
leaq 0x6(%rsp), %rdx
leaq 0x10(%rsp), %rcx
leaq 0x28(%rsp), %r8
leaq 0x5(%rsp), %r9
movl $0xa, %esi
pushq %rax
pushq %r10
callq 0xddc0
addq $0x10, %rsp
movq 0x8(%r14), %rax
cmpq (%r14), %rax
je 0xb1ea
xorl %r13d, %r13d
leaq 0x10(%rsp), %r15
leaq 0x28(%rsp), %r12
movabsq $-0x5555555555555555, %rbp # imm = 0xAAAAAAAAAAAAAAAB
movl %r13d, 0x28(%rsp)
movq $0x0, 0x30(%rsp)
movq %r15, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0xded0
movq 0x8(%r14), %rax
subq (%r14), %rax
incq %r13
sarq $0x3, %rax
imulq %rbp, %rax
cmpq %r13, %rax
ja 0xb1b7
movl 0x8(%rsp), %ebp
cmpl $-0x1, %ebp
je 0xb223
movq %r14, %rdi
callq 0x1e160
cmpl %ebp, %eax
cmovll %eax, %ebp
testl %ebp, %ebp
je 0xb29b
xorl %r15d, %r15d
movq %r14, %rdi
movl %r15d, %esi
movq %rbx, %rdx
callq 0xb2c8
incl %r15d
cmpl %r15d, %ebp
jne 0xb20b
jmp 0xb29b
xorl %ebp, %ebp
movq %r14, %rdi
callq 0x1e160
movl %ebp, %ecx
cmpq %rcx, %rax
jbe 0xb245
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0xb2c8
incl %ebp
jmp 0xb225
movl $0x0, 0x10(%rsp)
cmpq $0x0, 0x18(%rbx)
je 0xb29b
leaq 0x10(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd85a
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0xd85a
movsd 0x8(%rsp), %xmm0
mulsd 0x25db1(%rip), %xmm0    # 0x31038
movsd %xmm0, (%rax)
movl 0x10(%rsp), %eax
incl %eax
movl %eax, 0x10(%rsp)
cmpq %rax, 0x18(%rbx)
ja 0xb259
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb2b5
jmp 0xb2b5
jmp 0xb2b5
jmp 0xb2b5
movq %rax, %r14
movq %rbx, %rdi
callq 0xd8b4
movq %r14, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O1/fjamour[P]icentral/src/bc.cc
// Function: incremental_brandes(graph_t&, unsigned int, unsigned int, std::vector<double, std::allocator<double>>&)
void incremental_brandes(graph_t& graph_in,
        node_id_t src,
        node_id_t dst,
        vector<double>& bc_vec)
{
    vector<int> d_src_vec, d_dst_vec;
    d_src_vec.resize(graph_in.size());
    d_dst_vec.resize(graph_in.size());
    fill(d_src_vec.begin(), d_src_vec.end(), -1);
    fill(d_dst_vec.begin(), d_dst_vec.end(), -1);
    graph_in.find_sssp(src, d_src_vec);
    graph_in.find_sssp(dst, d_dst_vec);
    
    //fill(bc_vec.begin(), bc_vec.end(), 0);
    
    for(node_id_t s = 0; s < graph_in.size(); ++s) {
        if(d_src_vec[s] != d_dst_vec[s]) { 
            brandes_delta_iter(graph_in,
                    s, 
                    src, 
                    dst, 
                    d_src_vec[s], 
                    d_dst_vec[s], 
                    bc_vec);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %eax, %eax
movq %rax, 0x40(%rsp)
movq %rax, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
callq 0x1e160
leaq 0x30(%rsp), %rdi
movq %rax, %rsi
callq 0xd7da
movq %r15, %rdi
callq 0x1e160
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
callq 0xd7da
movq 0x30(%rsp), %rdi
movq 0x38(%rsp), %rdx
cmpq %rdx, %rdi
je 0xb9a0
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x2110
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
cmpq %rdx, %rdi
je 0xb9c8
subq %rdi, %rdx
addq $-0x4, %rdx
andq $-0x4, %rdx
addq $0x4, %rdx
movl $0xff, %esi
callq 0x2110
leaq 0x30(%rsp), %rdx
movq %r15, %rdi
movl %r14d, %esi
callq 0x1e816
leaq 0x10(%rsp), %rdx
movq %r15, %rdi
movl %ebp, %esi
callq 0x1e816
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x1e160
movl %r12d, %r12d
cmpq %r12, %rax
jbe 0xba2a
movq 0x30(%rsp), %rax
movl (%rax,%r12,4), %r8d
movq 0x10(%rsp), %rax
movl (%rax,%r12,4), %r9d
cmpl %r9d, %r8d
je 0xba25
movq %rbx, (%rsp)
movq %r15, %rdi
movl %r12d, %esi
movl %r14d, %edx
movl %ebp, %ecx
callq 0xbaa0
incl %r12d
jmp 0xb9ea
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xba41
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xba58
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0xba67
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xba81
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xba98
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2250
movq %rbx, %rdi
callq 0x23b0