LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/ncbi[P]amr/./seq.hpp
// Function: Seq_sp::Mutation::saveText(std::ostream&) const
void saveText (ostream &os) const override
    { if (prot)
        os << geneName << '-' << nvl (ref, "ins") << pos + 1 << (frameshift ? "fs" : nvl (allele, "del")); 
      else
        os <<                    nvl (ref, "INS") << pos + 1 <<                      nvl (allele, "DEL"); 
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rsi, %r14
movq %rdi, %rbx
cmpb $0x1, 0x8(%rdi)
jne 0x5bb38
leaq 0x10(%rbx), %rsi
movq %r14, %rdi
callq 0xc540
pushq $0x2d
popq %rsi
movq %rax, %rdi
callq 0xc690
movq %rax, %r14
leaq 0x66ba(%rip), %rsi      # 0x62188
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xdbbe
leaq 0x38(%rbx), %rsi
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x2a0bb
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0xc540
movq 0x30(%rbx), %rsi
incq %rsi
movq %rax, %rdi
callq 0xc410
movq %rax, %r14
movb 0x78(%rbx), %bpl
cmpb $0x1, %bpl
jne 0x5bbc5
leaq 0x884c(%rip), %rsi      # 0x64370
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xdbbe
jmp 0x5bbf1
leaq 0x8834(%rip), %rsi      # 0x64373
leaq 0x50(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0xdbbe
leaq 0x38(%rbx), %rsi
leaq 0x70(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x2a0bb
leaq 0x70(%rsp), %rsi
movq %r14, %rdi
callq 0xc540
movq 0x30(%rbx), %rsi
incq %rsi
movq %rax, %rdi
callq 0xc410
movq %rax, %r14
leaq 0x5b71(%rip), %rsi      # 0x616f8
leaq 0x10(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xdbbe
addq $0x58, %rbx
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
callq 0x2a0bb
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0xc540
leaq 0x30(%rsp), %rdi
callq 0xcbe8
jmp 0x5bc0d
leaq 0x64f4(%rip), %rsi      # 0x620c0
leaq 0x10(%rsp), %rdi
leaq 0xe(%rsp), %rdx
callq 0xdbbe
addq $0x58, %rbx
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rbx, %rsi
callq 0x2a0bb
leaq 0x30(%rsp), %rsi
movq %r14, %rdi
callq 0xc540
leaq 0x30(%rsp), %rdi
callq 0xcbe8
testb %bpl, %bpl
jne 0x5bc17
leaq 0x10(%rsp), %rdi
callq 0xcbe8
leaq 0x70(%rsp), %rdi
callq 0xcbe8
leaq 0x50(%rsp), %rdi
callq 0xcbe8
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
jmp 0x5bc60
jmp 0x5bc81
jmp 0x5bc81
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xcbe8
jmp 0x5bc63
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0xcbe8
testb %bpl, %bpl
je 0x5bc63
jmp 0x5bc84
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0xcbe8
jmp 0x5bc84
jmp 0x5bc81
jmp 0x5bc73
movq %rax, %rbx
jmp 0x5bc8e
jmp 0x5bc7a
movq %rax, %rbx
jmp 0x5bc98
jmp 0x5bc81
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0xcbe8
leaq 0x50(%rsp), %rdi
callq 0xcbe8
movq %rbx, %rdi
callq 0xcaa0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x490b
movl %eax, %ebx
leaq 0x4(%rsp), %rdx
movl %eax, %edi
xorl %esi, %esi
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x54b2
callq 0x3090
testl %eax, %eax
je 0x36e4
movl %ebx, %edi
callq 0x4aae
movl %eax, %edi
callq 0x3754
movsd %xmm0, 0x10(%rsp)
movl %ebx, %edi
callq 0x34f0
leaq 0x7c42(%rip), %rdi      # 0xb290
callq 0x4b04
movl %eax, %ebx
callq 0x3090
testl %eax, %eax
je 0x36fd
movl %ebx, %edi
callq 0x4aae
movl %eax, %edi
callq 0x3754
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 0x370b
callq 0x34f0
movl 0x18(%rsp), %edi
callq 0x3754
movaps %xmm0, %xmm2
movq 0x7932(%rip), %rax      # 0xafe0
movq (%rax), %rdi
leaq 0x3956(%rip), %rsi      # 0x700e
movl $0x400, %edx            # imm = 0x400
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movb $0x3, %al
callq 0x3410
leaq 0x7bb9(%rip), %rdi      # 0xb290
callq 0x3140
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
movl 0x4(%rsp), %esi
leaq 0x3915(%rip), %rdi      # 0x7004
xorl %edx, %edx
callq 0x4cf5
movl %eax, %edi
callq 0x3710
leaq 0x7b8c(%rip), %rdi      # 0xb290
callq 0x4c25
movl %eax, %edi
callq 0x3710
// File: /workspace/github_cpp_makefile_star2_O2/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 0x472d
movsd %xmm0, (%rsp)
leaq 0x80e5(%rip), %r14      # 0xb850
movl $0x8000, %edx           # imm = 0x8000
movl %ebx, %edi
movq %r14, %rsi
callq 0x3420
testq %rax, %rax
jg 0x376b
movl %ebx, %edi
callq 0x34f0
callq 0x472d
subsd (%rsp), %xmm0
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH17_SpecializedLibraryFacilities/examples/rand4.cc
// Function: main
int main()
{
	default_random_engine e;  // generates unsigned random integers
	// uniformly distributed from 0 to 1 inclusive
	uniform_real_distribution<double> u(0,1);
	for (size_t i = 0; i < 10; ++i)
    	cout << u(e) << " ";
	cout << endl;

	// empty <> signify we want to use the default result type
	uniform_real_distribution<> u2(0,1); // generates double by default
	default_random_engine e2;
	for (size_t i = 0; i < 10; ++i)
    	cout << u2(e2) << " ";  // should generate the same sequence 
	cout << endl;

	default_random_engine e3;
	// uniformly distributed from 0 to 9 inclusive
	uniform_int_distribution<unsigned> u3(0,9);
	for (size_t i = 0; i < 100; ++i)
    	cout << u3(e3) << ((i != 99)? " ": "");
	cout << endl;

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq -0x40(%rbp), %rbx
movq $0x1, (%rbx)
leaq -0x68(%rbp), %r14
andq $0x0, (%r14)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x8(%r14)
pushq $0xa
popq %r13
movq 0x2daf(%rip), %r15      # 0x3fd8
leaq 0xe10(%rip), %r12       # 0x2040
subq $0x1, %r13
jb 0x1256
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1344
movq %r15, %rdi
callq 0x10a0
movq %rax, %rdi
movq %r12, %rsi
callq 0x1080
jmp 0x1230
movq 0x2d7b(%rip), %r14      # 0x3fd8
movq %r14, %rdi
callq 0x1030
leaq -0x58(%rbp), %r15
andq $0x0, (%r15)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x8(%r15)
leaq -0x38(%rbp), %r12
movq $0x1, (%r12)
pushq $0xa
popq %r13
leaq 0xdae(%rip), %rbx       # 0x2040
subq $0x1, %r13
jb 0x12b8
movq %r15, %rdi
movq %r12, %rsi
callq 0x1344
movq %r14, %rdi
callq 0x10a0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1080
jmp 0x1292
movq 0x2d19(%rip), %rdi      # 0x3fd8
callq 0x1030
leaq -0x30(%rbp), %rax
movq $0x1, (%rax)
movabsq $0x900000000, %rax      # imm = 0x900000000
leaq -0x48(%rbp), %r12
movq %rax, (%r12)
pushq $0x64
popq %r15
leaq 0xd55(%rip), %r13       # 0x2041
movq %r15, %r14
subq $0x1, %r14
jb 0x1327
movq %r12, %rdi
leaq -0x30(%rbp), %rsi
callq 0x1352
movl %eax, %esi
movq 0x2cce(%rip), %rdi      # 0x3fd8
callq 0x1050
cmpq $0x1, %r15
movq %rbx, %rsi
cmoveq %r13, %rsi
movq %rax, %rdi
callq 0x1080
movq %r14, %r15
jmp 0x12ef
movq 0x2caa(%rip), %rdi      # 0x3fd8
callq 0x1030
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/iZhangHui[P]CppPrimer/CH02_VariablesAndBasicTypes/examples/escape.cc
// Function: main
int main() {
	std::cout << '\n';       // prints a newline
	std::cout << "\tHi!\n";  // prints a tab followd by "Hi!" and a newline
	std::cout << "Hi \x4dO\115!\n"; // prints Hi MOM! followed by a newline
	std::cout << '\115' << '\n';    // prints M followed by a newline

	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq 0x2e1e(%rip), %rbx      # 0x3fd8
pushq $0xa
popq %r14
movq %rbx, %rdi
movl %r14d, %esi
callq 0x1050
leaq 0xe34(%rip), %rsi       # 0x2004
movq %rbx, %rdi
callq 0x1040
leaq 0xe2b(%rip), %rsi       # 0x200a
movq %rbx, %rdi
callq 0x1040
pushq $0x4d
popq %rsi
movq %rbx, %rdi
callq 0x1050
movq %rax, %rdi
movl %r14d, %esi
callq 0x1050
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbp
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rdx
testq %rdx, %rdx
je 0x2611
andl $0xfffffff, %esi        # imm = 0xFFFFFFF
movl %esi, (%rdi)
xorl %r8d, %r8d
movb $0xa, %r9b
pushq $0x7
popq %r10
pushq $0x1
popq %r11
xorl %ebx, %ebx
movzbl %bl, %eax
divb %r9b
cmpl $0x1c, %ebx
je 0x2608
btl %ebx, %esi
jae 0x2600
movzbl %al, %eax
imull $0x1e, %eax, %eax
movl %r8d, %ecx
subb %al, %cl
movl %r10d, %ebp
shll %cl, %ebp
notl %ebp
movzbl %bl, %eax
divb %r9b
movzbl %al, %eax
andl %ebp, (%rdx,%rax,4)
movl %r11d, %ebp
shll %cl, %ebp
orl %ebp, (%rdx,%rax,4)
incl %ebx
addb $0x3, %r8b
jmp 0x25ca
movl (%rdi), %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movq 0x59c8(%rip), %rax      # 0x7fe0
movq (%rax), %rcx
leaq 0x2a70(%rip), %rdi      # 0x5092
pushq $0x34
popq %rsi
pushq $0x1
popq %rdx
callq 0x22e0
xorl %eax, %eax
jmp 0x260a
nop
// File: /workspace/github_cpp_makefile_star2_O2/eggnot[P]pixel_camera/matrix/lib/gpio.cc
// Function: rgb_matrix::GPIO::Init()
bool GPIO::Init() {
  gpio_port_ = mmap_bcm_register(IsRaspberryPi2(), GPIO_REGISTER_OFFSET);
  if (gpio_port_ == NULL) {
    return false;
  }
  gpio_set_bits_ = gpio_port_ + (0x1C / sizeof(uint32_t));
  gpio_clr_bits_ = gpio_port_ + (0x28 / sizeof(uint32_t));
  return true;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x2700
movzbl %al, %edi
movl $0x200000, %esi         # imm = 0x200000
callq 0x2669
movq %rax, 0x8(%rbx)
testq %rax, %rax
je 0x2661
leaq 0x1c(%rax), %rcx
movq %rcx, 0x10(%rbx)
leaq 0x28(%rax), %rcx
movq %rcx, 0x18(%rbx)
testq %rax, %rax
setne %al
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2a4d(%rip), %rdi      # 0x50c7
movl $0x101002, %esi         # imm = 0x101002
xorl %eax, %eax
callq 0x2130
testl %eax, %eax
js 0x26d1
movl %eax, %ebp
leaq 0x20000000(%rbx), %rax
addq $0x3f000000, %rbx       # imm = 0x3F000000
testb %r14b, %r14b
cmoveq %rax, %rbx
pushq $0x3
popq %rdx
pushq $0x1
popq %rcx
movl $0x1000, %esi           # imm = 0x1000
xorl %edi, %edi
movl %ebp, %r8d
movq %rbx, %r9
callq 0x22b0
movq %rax, %rbx
movl %ebp, %edi
callq 0x22f0
cmpq $-0x1, %rbx
je 0x26e1
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x29f8(%rip), %rdi      # 0x50d0
callq 0x2160
xorl %ebx, %ebx
jmp 0x26c9
movq 0x58f8(%rip), %rax      # 0x7fe0
movq (%rax), %rdi
leaq 0x29f4(%rip), %rsi      # 0x50e6
xorl %ebx, %ebx
pushq $-0x1
popq %rdx
xorl %eax, %eax
callq 0x2200
jmp 0x26c9
// File: /workspace/github_cpp_makefile_star2_O2/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 0x29e2(%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
andq $0x0, 0x8(%rsp)
leaq 0x29ad(%rip), %rsi      # 0x5103
movq %r14, %rdi
callq 0x2060
testq %rax, %rax
je 0x278f
addq $0x9, %rax
leaq 0x299f(%rip), %rsi      # 0x510d
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
xorl %eax, %eax
callq 0x2180
cmpl $0x1, %eax
jne 0x278f
movb $0x1, %al
cmpq $0x3f000000, 0x8(%rsp)  # imm = 0x3F000000
je 0x2791
xorl %eax, %eax
addq $0x810, %rsp            # imm = 0x810
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/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
jge 0x2a40
retq
movabsq $0x3ffffffba, %rax      # imm = 0x3FFFFFFBA
addq %rax, %rdi
shrq $0x2, %rdi
subl $0x1, %edi
jb 0x2a3f
nop
jmp 0x2a51
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2ab3
movq 0x38(%rdi), %rcx
movl %esi, 0x10(%rcx)
movl (%rdx,%rax,4), %edx
movq 0x40(%rdi), %rsi
jmp 0x2b14
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 0x5683(%rip), %rax      # 0x81b0
movl (%rax), %eax
movl %eax, 0x50(%rdi)
movl $0x31, (%rcx)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 0x5667(%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 0x2b74
movq %rsp, %rdi
andq $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 0x2b78
movl $0x70, (%rax)
addq $0x10, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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, %rbx
leaq 0x4bee(%rip), %rax      # 0x7c18
movq %rax, (%rdi)
movl %edx, 0x8(%rdi)
movl %ecx, 0xc(%rdi)
movl %r8d, 0x10(%rdi)
andq $0x0, 0x20(%rdi)
leaq 0x28(%rdi), %r14
movq %r14, %rdi
callq 0x3514
xorps %xmm0, %xmm0
movups %xmm0, 0x60(%rbx)
movups %xmm0, 0x50(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x30a2
movq %rbx, %rdi
callq 0x30ec
movq %rax, 0x18(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x31d0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
addq $0x58, %rbx
movq %rbx, %rdi
callq 0x36f6
movq %r14, %rdi
callq 0x21c0
movq %r15, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x30c2
movb 0x5101(%rip), %al       # 0x81b8
leaq 0x50e2(%rip), %r14      # 0x81a0
testb %al, %al
je 0x30ce
movq %r14, 0x70(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x50e3(%rip), %rdi      # 0x81b8
callq 0x22c0
testl %eax, %eax
je 0x30c2
leaq 0x50d3(%rip), %rdi      # 0x81b8
callq 0x2100
jmp 0x30c2
// File: /workspace/github_cpp_makefile_star2_O2/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 %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x10
popq %rdi
callq 0x2190
movq %rax, %rbx
pushq $0x28
popq %rdi
callq 0x2190
movq %rax, %r15
movl 0x8(%r14), %esi
movl 0xc(%r14), %edx
shll $0x5, %edx
movl 0x10(%r14), %ecx
movq %rax, %rdi
callq 0x3870
leaq 0x4b5d(%rip), %rax      # 0x7c88
movq %rax, (%rbx)
movq %r15, 0x8(%rbx)
movq %rbx, (%rsp)
leaq 0x58(%r14), %r12
movq 0x58(%r14), %rax
cmpq 0x60(%r14), %rax
je 0x3175
movzbl 0x14(%r14), %esi
movq %r15, %rdi
callq 0x3a6c
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
pushq $0x64
popq %rdx
cmovbl %ecx, %edx
movb %dl, 0x12(%rax)
jmp 0x318d
movb 0x10(%r15), %al
movb %al, 0x14(%r14)
movb 0x11(%r15), %al
movb %al, 0x15(%r14)
movb 0x12(%r15), %al
movb %al, 0x16(%r14)
movq %rsp, %rbx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x359c
movq (%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
pushq $0x28
popq %rsi
movq %r15, %rdi
callq 0x21a0
jmp 0x31bd
movq %rax, %r14
pushq $0x10
popq %rsi
movq %rbx, %rdi
callq 0x21a0
movq %r14, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x31e3
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
je 0x31eb
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rsi, 0x20(%rbx)
movl 0x10(%rbx), %eax
movq %rsi, %rdi
movl %eax, %esi
callq 0x398a
movl $0xb8, %edi
callq 0x2190
movq %rax, %r14
movq 0x18(%rbx), %rdx
movq 0x20(%rbx), %rsi
movq %rax, %rdi
callq 0x3542
movq %r14, 0x50(%rbx)
movq (%r14), %rax
movq 0x10(%rax), %rax
pushq $0x63
popq %rsi
pushq $0x8
popq %rdx
movq %r14, %rdi
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_O2/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 0x49bb(%rip), %rax      # 0x7c18
movq %rax, (%rdi)
movq 0x50(%rdi), %rdi
callq 0x351c
movq 0x50(%rbx), %rdi
callq 0x425e
movq 0x50(%rbx), %rdi
testq %rdi, %rdi
je 0x3281
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 0x3f8a
leaq 0x58(%rbx), %r14
xorl %r15d, %r15d
movq 0x58(%rbx), %rax
movq 0x60(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r15
jae 0x32cb
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0x32c6
movq (%rdi), %rax
callq *0x8(%rax)
incq %r15
jmp 0x32a3
movq %r14, %rdi
callq 0x36f6
addq $0x28, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21c0
movq %rax, %rdi
callq 0x2da1
// File: /workspace/github_cpp_makefile_star2_O2/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 0x3a6c
testb %al, %al
je 0x3344
movb %bl, 0x14(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x50(%rdi), %r14
leaq 0x78(%rdi), %r15
movq %rbx, %rdi
callq 0x36ce
testb %al, %al
je 0x36c7
movq 0x18(%rbx), %rsi
movq 0xa8(%rbx), %rax
movq 0x8(%rax), %rdi
callq 0x3f8a
movq %r14, %rdi
callq 0x2220
movq 0xb0(%rbx), %rax
testq %rax, %rax
je 0x36b5
movq %rax, 0xa8(%rbx)
andq $0x0, 0xb0(%rbx)
movq %r15, %rdi
callq 0x2030
movq %r14, %rdi
callq 0x2140
jmp 0x3672
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %ecx, %ebx
movl %edx, %r8d
movq %rdi, %r15
movl %esi, (%rdi)
movl %ecx, 0x4(%rdi)
movl %ecx, %eax
imull %esi, %eax
movl %eax, 0x8(%rdi)
movl %edx, 0xc(%rdi)
movw $0x10b, 0x10(%rdi)      # imm = 0x10B
movb $0x64, 0x12(%rdi)
pushq $0x2
popq %rcx
movl %esi, 0x4(%rsp)
movl %esi, %eax
cltd
idivl %ecx
movl %eax, %r12d
movl %eax, 0x14(%rdi)
leal -0x1(%r12), %eax
movb %al, 0x18(%rdi)
movl %r12d, %ebp
movl %r8d, (%rsp)
imull %r8d, %ebp
imull $0xb, %ebp, %eax
movslq %eax, %r13
shlq $0x2, %r13
testl %ebp, %ebp
pushq $-0x1
popq %rdi
cmovnsq %r13, %rdi
callq 0x2040
movq %rax, %r14
testl %ebp, %ebp
je 0x38ee
movq %r14, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x20e0
movq %r14, 0x20(%r15)
movslq %r12d, %rax
movslq (%rsp), %rcx
imulq %rax, %rcx
imulq $0x2c, %rcx, %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x20e0
cmpl $0x21, 0x4(%rsp)
jge 0x3928
decl %ebx
cmpl $0x3, %ebx
jae 0x3941
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1a09(%rip), %rdi      # 0x5338
leaq 0x1a0e(%rip), %rsi      # 0x5344
leaq 0x1a16(%rip), %rcx      # 0x5353
pushq $0x46
jmp 0x3958
leaq 0x1a49(%rip), %rdi      # 0x5391
leaq 0x19f5(%rip), %rsi      # 0x5344
leaq 0x19fd(%rip), %rcx      # 0x5353
pushq $0x47
popq %rdx
callq 0x2110
// File: /workspace/github_cpp_makefile_star2_O2/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, 0x4822(%rip)      # 0x81c0
jne 0x3a2b
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 0x25a6
cmpl %ebp, %eax
jne 0x3a38
leaq 0x10(%rsp), %r14
andq $0x0, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
xorl %r15d, %r15d
leaq 0xc(%rsp), %r12
cmpq $0xb, %r15
je 0x3a08
movl $0x82, %eax
movl %r15d, %ecx
shlq %cl, %rax
movl %eax, 0xc(%rsp)
movq %r14, %rdi
movq %r12, %rsi
callq 0x2c46
incq %r15
jmp 0x39e3
leaq 0x10(%rsp), %rdx
movq %rbx, %rdi
movl $0x40000, %esi          # imm = 0x40000
callq 0x279e
movq %rax, 0x479f(%rip)      # 0x81c0
leaq 0x10(%rsp), %rdi
callq 0x2f68
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1971(%rip), %rdi      # 0x53b0
leaq 0x18fe(%rip), %rsi      # 0x5344
leaq 0x1973(%rip), %rcx      # 0x53c0
pushq $0x78
popq %rdx
callq 0x2110
jmp 0x3a57
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2f68
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O2/eggnot[P]pixel_camera/matrix/lib/framebuffer.cc
// Function: rgb_matrix::internal::Framebuffer::MapColor(unsigned char)
inline uint16_t Framebuffer::MapColor(uint8_t c) {
#ifdef INVERSE_RGB_DISPLAY_COLORS
#  define COLOR_OUT_BITS(x) (x) ^ 0xffff
#else
#  define COLOR_OUT_BITS(x) (x)
#endif

  if (do_luminance_correct_) {
    static uint16_t *luminance_lookup = CreateLuminanceCIE1931LookupTable();
    return COLOR_OUT_BITS(luminance_lookup[c * 100 + (brightness_ - 1)]);
  } else {
    // simple scale down the color value
    c = c * brightness_ / 100;

    enum {shift = kBitPlanes - 8};  //constexpr; shift to be left aligned.
    return COLOR_OUT_BITS((shift > 0) ? (c << shift) : (c >> -shift));
  }

#undef COLOR_OUT_BITS
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
cmpb $0x1, 0x11(%rdi)
jne 0x40f1
movb 0x4100(%rip), %al       # 0x81d0
testb %al, %al
je 0x411a
movzbl %bpl, %eax
movzbl 0x12(%rbx), %ecx
imulq $0xc8, %rax, %rax
addq 0x40de(%rip), %rax      # 0x81c8
movzwl -0x2(%rax,%rcx,2), %eax
jmp 0x410b
movzbl %bpl, %ecx
movzbl 0x12(%rbx), %eax
imull %ecx, %eax
movw $0x64, %cx
xorl %edx, %edx
divw %cx
movzbl %al, %eax
shll $0x3, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40af(%rip), %rdi      # 0x81d0
callq 0x22c0
testl %eax, %eax
je 0x40d4
movl $0xc800, %edi           # imm = 0xC800
callq 0x2040
movq %rax, %r14
xorl %r15d, %r15d
movq %rax, %r12
cmpq $0x100, %r15            # imm = 0x100
je 0x41df
movzbl %r15b, %eax
cvtsi2ss %eax, %xmm2
xorl %r13d, %r13d
movss %xmm2, 0x4(%rsp)
cmpq $0x64, %r13
je 0x41d0
leal 0x1(%r13), %eax
movsbl %al, %eax
cvtsi2ss %eax, %xmm0
mulss %xmm2, %xmm0
divss 0x1194(%rip), %xmm0     # 0x530c
movss 0x1190(%rip), %xmm1     # 0x5310
ucomiss %xmm0, %xmm1
jae 0x41ae
addss 0x1187(%rip), %xmm0     # 0x5314
cvtss2sd %xmm0, %xmm0
divsd 0x1187(%rip), %xmm0     # 0x5320
movsd 0x1187(%rip), %xmm1     # 0x5328
callq 0x2280
movss 0x4(%rsp), %xmm2
jmp 0x41ba
cvtss2sd %xmm0, %xmm0
divsd 0x115e(%rip), %xmm0     # 0x5318
mulsd 0x116e(%rip), %xmm0     # 0x5330
cvttsd2si %xmm0, %eax
movw %ax, (%r12,%r13,2)
incq %r13
jmp 0x415b
incq %r15
addq $0xc8, %r12
jmp 0x413d
movq %r14, 0x3fe2(%rip)      # 0x81c8
leaq 0x3fe3(%rip), %rdi      # 0x81d0
callq 0x2100
jmp 0x40d4
movq %rax, %rbx
leaq 0x3fcf(%rip), %rdi      # 0x81d0
callq 0x20f0
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O2/eggnot[P]pixel_camera/matrix/lib/../include/gpio.h
// Function: rgb_matrix::GPIO::WriteMaskedBits(unsigned int, unsigned int)
inline void WriteMaskedBits(uint32_t value, uint32_t mask) {
    // Writing a word is two operations. The IO is actually pretty slow, so
    // this should probably  be unnoticable.
    ClearBits(~value & mask);
    SetBits(value & mask);
  }

// Assembly:
movl %esi, %eax
notl %eax
andl %edx, %eax
je 0x421c
movq 0x18(%rdi), %rcx
movl %eax, (%rcx)
andl %esi, %edx
je 0x4226
movq 0x10(%rdi), %rax
movl %edx, (%rax)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/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 %rbx
subq $0x348, %rsp            # imm = 0x348
movq %rsi, %rbx
movq %rdi, %r14
callq 0x18d3c
movq %rbx, %rdi
movq %rax, %rsi
callq 0x45f0
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq %rcx, %rax
je 0x2765
andq $0x0, (%rax)
addq $0x8, %rax
jmp 0x2756
leaq 0x118(%rsp), %r15
movq %r15, %rdi
callq 0x4622
movl $0x2, 0x228(%r15)
movq %r15, %rdi
movq %r14, %rsi
callq 0x26858
movq %rsp, %r14
andq $0x0, 0xe8(%r14)
andl $0x0, 0xf0(%r14)
xorl %ebp, %ebp
movl $0xe4, %edx
movq %r14, %rdi
xorl %esi, %esi
callq 0x2110
xorps %xmm0, %xmm0
movups %xmm0, 0xf8(%r14)
movups %xmm0, 0x108(%r14)
leaq 0x118(%rsp), %r15
movq %r15, %rdi
callq 0x2622a
movl %ebp, %ecx
cmpq %rcx, %rax
jbe 0x27ed
movq %rbx, %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r14, %rcx
callq 0x2835
incl %ebp
jmp 0x27ca
movq %rsp, %rdi
callq 0x4668
leaq 0x118(%rsp), %rdi
callq 0x46de
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2820
movq %rax, %rbx
movq %rsp, %rdi
callq 0x4668
leaq 0x118(%rsp), %rdi
callq 0x46de
movq %rbx, %rdi
callq 0x23d0
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2622a
xorps %xmm0, %xmm0
movq %r12, %rdi
movq %rax, %rsi
callq 0x4756
xorps %xmm0, %xmm0
leaq 0x20(%rsp), %rdx
movaps %xmm0, (%rdx)
andq $0x0, 0x10(%rdx)
movaps %xmm0, (%rsp)
andq $0x0, 0x10(%rsp)
movq %r15, %rdi
movl %r14d, %esi
callq 0x26540
movq %r14, %rsi
shrq $0x20, %rsi
movq %rsp, %rdx
movq %r15, %rdi
callq 0x26540
leaq 0x40(%rsp), %r13
andq $0x0, 0xe8(%r13)
andl $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 0x2622a
movl %ebp, %ebp
cmpq %rbp, %rax
jbe 0x2ba6
movq 0x20(%rsp), %rax
movl (%rax,%rbp,4), %r9d
movq (%rsp), %rax
subl (%rax,%rbp,4), %r9d
je 0x2ba2
movq %r12, %rdi
movq %r15, %rsi
movl %ebp, %edx
movq %r14, %rcx
movq %r13, %r8
pushq %rbx
pushq $0x0
callq 0x30fe
popq %rax
popq %rcx
incl %ebp
jmp 0x2b68
leaq 0x40(%rsp), %rdi
callq 0x4668
movq %rsp, %rdi
callq 0x5720
leaq 0x20(%rsp), %rdi
callq 0x5720
addq $0x158, %rsp            # imm = 0x158
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2be8
jmp 0x2bdb
movq %rax, %rbx
leaq 0x40(%rsp), %rdi
callq 0x4668
movq %rsp, %rdi
callq 0x5720
leaq 0x20(%rsp), %rdi
callq 0x5720
movq %rbx, %rdi
callq 0x23d0
// File: /workspace/github_cpp_makefile_star2_O2/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, %r13
movl %edx, 0xc(%rsp)
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movl 0x58(%rsp), %ebp
movq %rcx, %r15
shrq $0x20, %r15
movq %rsi, %rdi
callq 0x2622a
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a0fc
testl %r12d, %r12d
movl %r13d, %r12d
cmovgl %r15d, %r12d
cmovgl %r13d, %r15d
cmpl $0x1, %ebp
je 0x319e
testl %ebp, %ebp
jne 0x3207
movq %rbx, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edx
callq 0x32e4
pushq $0x1
popq %r9
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x342f
shlq $0x20, %r15
movl %r12d, %ecx
orq %r15, %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x38aa
jmp 0x31e2
movq %rbx, %rdi
movq %r14, %rsi
movl 0xc(%rsp), %ebp
movl %ebp, %edx
callq 0x32e4
pushq $0x1
popq %r9
movq 0x10(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x342f
shlq $0x20, %r15
movl %r12d, %ecx
orq %r15, %rcx
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3beb
pushq $0x1
popq %r8
movq %r13, %rdi
movq %r14, %rsi
movl %ebp, %edx
movq %rbx, %rcx
xorl %r9d, %r9d
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x342f
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/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 0x2622a
xorps %xmm0, %xmm0
movq %r13, %rdi
movq %rax, %rsi
callq 0x4756
movq %rsp, %rdi
andq $0x0, 0xe8(%rdi)
andl $0x0, 0xf0(%rdi)
xorl %ebp, %ebp
movl $0xe4, %edx
xorl %esi, %esi
callq 0x2110
xorps %xmm0, %xmm0
movq %rsp, %rax
movups %xmm0, 0xf8(%rax)
movups %xmm0, 0x108(%rax)
movq (%r14), %rax
movq 0x8(%r14), %rcx
subq %rax, %rcx
sarq $0x2, %rcx
cmpq %rbp, %rcx
jbe 0x32b7
movl (%rax,%rbp,4), %edx
movq (%r15), %rcx
movl (%rbx), %eax
movq %r13, %rdi
movq %r12, %rsi
movq %rsp, %r8
pushq $-0x1
popq %r9
pushq %rax
pushq $0x0
callq 0x30fe
popq %rax
popq %rcx
incq %rbp
jmp 0x3280
movq %rsp, %rdi
callq 0x4668
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 0x4668
movq %rbx, %rdi
callq 0x23d0
// File: /workspace/github_cpp_makefile_star2_O2/fjamour[P]icentral/src/_bc.cc
// Function: BBFS(iter_info_t&, component_t&, unsigned int)
void BBFS(
        iter_info_t&    iter_info,  // iteration info to be computed
        component_t&    comp,       // component
        node_id_t       s          // source of the iteration
        )
{
    subgraph_t& g = comp.subgraph;
    
    vector<vector<node_id_t> >&  P = iter_info.P; 
    vector<int>&                 sigma_vec = iter_info.sigma_vec;
    vector<int>&                 dist_vec = iter_info.dist_vec;
    vector<node_id_t>&           S = iter_info.S;
    
    queue<node_id_t>             Q;
    
    // Assumes iter_info is initialized
    sigma_vec[s] = 1;
    dist_vec[s] = 0;
    Q.push(s);
    while(!Q.empty()) {
        node_id_t v_i = Q.front(); Q.pop();
        S.push_back(v_i);
        for(int i = 0; i < g.nodes_vec[v_i].size(); ++i) {
            node_id_t v_n = g.nodes_vec[v_i][i];
            if(dist_vec[v_n] < 0) {
                Q.push(v_n);
                dist_vec[v_n] = dist_vec[v_i] + 1;
            }
            if(dist_vec[v_n] == dist_vec[v_i] + 1) {
                sigma_vec[v_n] = sigma_vec[v_n] + sigma_vec[v_i];
                P[v_n].push_back(v_i);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x14(%rsp), %r15
movl %edx, (%r15)
leaq 0x18(%rsp), %r12
movq %r12, %rdi
callq 0x4a40
movl %ebp, %eax
movq 0x18(%r14), %rcx
movl $0x1, (%rcx,%rax,4)
movq 0x30(%r14), %rcx
andl $0x0, (%rcx,%rax,4)
movq %r12, %rdi
movq %r15, %rsi
callq 0x62da
leaq 0x100(%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0x18(%rsp), %r12
leaq 0x4(%rsp), %r13
movq %rsp, %rbp
movq 0x28(%rsp), %rax
cmpq %rax, 0x48(%rsp)
je 0x33fd
movl (%rax), %eax
movl %eax, 0x4(%rsp)
movq %r12, %rdi
callq 0x650e
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x478c
xorl %r15d, %r15d
movl 0x4(%rsp), %eax
movq (%rbx), %rdx
imulq $0x18, %rax, %rsi
movq (%rdx,%rsi), %rcx
movq 0x8(%rdx,%rsi), %rdx
subq %rcx, %rdx
sarq $0x2, %rdx
cmpq %r15, %rdx
jbe 0x3348
movl (%rcx,%r15,4), %ecx
movl %ecx, (%rsp)
movq 0x30(%r14), %rdx
movl (%rdx,%rcx,4), %esi
testl %esi, %esi
jns 0x33d0
movq %r12, %rdi
movq %rbp, %rsi
callq 0x62da
movl 0x4(%rsp), %eax
movq 0x30(%r14), %rdx
movl (%rdx,%rax,4), %eax
incl %eax
movl (%rsp), %ecx
movl %eax, (%rdx,%rcx,4)
movl (%rsp), %ecx
movl (%rdx,%rcx,4), %esi
movl 0x4(%rsp), %eax
movl (%rdx,%rax,4), %edx
incl %edx
cmpl %edx, %esi
jne 0x33f5
movq 0x18(%r14), %rdx
movl (%rdx,%rax,4), %eax
addl %eax, (%rdx,%rcx,4)
movl (%rsp), %eax
imulq $0x18, %rax, %rdi
addq (%r14), %rdi
movq %r13, %rsi
callq 0x478c
incq %r15
jmp 0x3376
leaq 0x18(%rsp), %rdi
callq 0x5280
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x341a
jmp 0x341a
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x5280
movq %rbx, %rdi
callq 0x23d0