LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/x_handler.cpp
// Function: XHandler::draw()
void XHandler::draw () {
    if (!showCredit_) {
        drawBombs();
        drawHeli();
        drawTowers();
        drawMissiles();
        drawExplosions();

        drawHealthBar();
        drawScore();
    }
    else {
        drawCredits();
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpb $0x0, 0xf0(%rdi)
je 0x381d
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3918
movq (%rbx), %rdi
leaq 0x8(%rbx), %r14
movq %r14, %rsi
callq 0x55a2
movq (%rbx), %rdi
addq $0x38, %rdi
movq %r14, %rsi
callq 0x497c
movq (%rbx), %rdi
subq $-0x80, %rdi
movq %r14, %rsi
callq 0x2bec
movq (%rbx), %rdi
addq $0x60, %rdi
movq %r14, %rsi
callq 0x5702
movq (%rbx), %rdi
addq $0x20, %rdi
movq %r14, %rsi
callq 0x58f8
movl $0x98, %edi
addq (%rbx), %rdi
movq %r14, %rsi
callq 0x5ab2
movl $0xb0, %edi
addq (%rbx), %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5b92
nop
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/bomb.cpp
// Function: Bomb::draw(XInfo*, int, int)
void Bomb::draw (XInfo *xinfo, int x, int y) {
    int tx = x + (BombBtm::w() - BombTop::w()) / 2;
    int mx = x + (BombBtm::w() - BombMid::w()) / 2;
    int bx = x;

    int ty = y;
    int my = ty + BombTop::h() * 0.8;
    int by = my + BombMid::h() * 0.8;

    top_.draw<attr::BROWN>(xinfo,
                           tx / Bomb::ScaleX,
                           ty / Bomb::ScaleY);

    mid_.draw<attr::BROWN>(xinfo,
                           mx / Bomb::ScaleX,
                           my / Bomb::ScaleY);

    btm_.draw<attr::BROWN>(xinfo,
                           bx / Bomb::ScaleX,
                           by / Bomb::ScaleY);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %r14d
movq %rsi, %rbx
leal 0x1e(%r14), %eax
cvtsi2sd %ecx, %xmm0
movsd 0xf06(%rip), %xmm1      # 0x62f8
addsd %xmm0, %xmm1
cvttpd2dq %xmm1, %xmm1
leal 0xf(%r14), %r15d
cvtdq2pd %xmm1, %xmm4
movapd %xmm4, (%rsp)
movsd 0xef1(%rip), %xmm3      # 0x6300
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
leaq 0x3deb(%rip), %rbp      # 0x9208
movsd (%rbp), %xmm2
divsd %xmm2, %xmm1
cvttsd2si %xmm1, %ecx
leaq 0x3ddf(%rip), %r13      # 0x9210
movsd (%r13), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %r8d
addsd %xmm4, %xmm3
movapd %xmm3, 0x10(%rsp)
movq (%rsi), %rdi
movq 0xa0(%rsi), %rsi
movq 0xc8(%rbx), %rdx
movsd 0xe7d(%rip), %xmm0      # 0x62e0
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %r9
movsd 0xe3c(%rip), %xmm0      # 0x62b0
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
subq $0x8, %rsp
movl $0x5a00, %r12d          # imm = 0x5A00
xorl %r10d, %r10d
pushq %r12
pushq %r10
pushq %rax
callq 0x22e0
addq $0x20, %rsp
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
movsd (%rbp), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
movsd (%r13), %xmm0
movapd (%rsp), %xmm2
divsd %xmm0, %xmm2
cvttsd2si %xmm2, %r8d
movq (%rbx), %rdi
movq 0xa0(%rbx), %rsi
movq 0xc8(%rbx), %rdx
movsd 0xe2e(%rip), %xmm2      # 0x6308
divsd %xmm1, %xmm2
cvttsd2si %xmm2, %r9
movsd 0xe25(%rip), %xmm1      # 0x6310
divsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
subq $0x8, %rsp
pushq %r12
xorl %r10d, %r10d
pushq %r10
xorl %r15d, %r15d
pushq %rax
callq 0x22e0
addq $0x20, %rsp
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movsd (%rbp), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
cvttpd2dq 0x10(%rsp), %xmm0
cvtdq2pd %xmm0, %xmm0
movsd (%r13), %xmm2
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %r8d
movq (%rbx), %rdi
movq 0xa0(%rbx), %rsi
movq 0xc8(%rbx), %rdx
movsd 0xd55(%rip), %xmm0      # 0x62a8
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9
movsd 0xdb4(%rip), %xmm0      # 0x6318
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
subq $0x8, %rsp
pushq %r12
pushq %r15
pushq %rax
callq 0x22e0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/bomb.cpp
// Function: BombList::draw(XInfo*)
void BombList::draw (XInfo *xinfo) {
    for (Bombs::iterator itr = bombs_.begin();
         itr != bombs_.end();
         ++itr) {
        itr->draw(xinfo, itr->x(), itr->y());
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq (%rdi), %r15
cmpq %rdi, %r15
je 0x55cd
movq %rsi, %rbx
movq %rdi, %r14
movl 0x10(%r15), %edx
movl 0x14(%r15), %ecx
movq %rbx, %rsi
callq 0x53ce
movq (%r15), %r15
cmpq %r14, %r15
jne 0x55b5
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/bomb.cpp
// Function: BombList::move()
void BombList::move () {
    for (Bombs::iterator itr = bombs_.begin();
         itr != bombs_.end();
         ++itr) {

        if (itr->hasInertia() == Bomb::NUL) {
            itr->setX(itr->x() - Tower::speed() / 2);
        }
        else if (itr->hasInertia() == Bomb::FORWARD) {
            itr->setX(itr->x() - Tower::speed() / 3);
        }
        else {
            itr->setX(itr->x() - Tower::speed());
        }

        itr->setY(itr->y() + Bomb::speed());

        if (itr->y() > PLANE_H) {
            itr = bombs_.erase(itr);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r14
cmpq %rdi, %r14
je 0x5678
movq %rdi, %rbx
leaq 0x3c0e(%rip), %r15      # 0x9200
movl 0x10(%r14), %eax
movl 0x18(%r14), %edx
movl (%r15), %ecx
cmpl $0x1, %edx
je 0x5613
testl %edx, %edx
jne 0x5632
movl %ecx, %edx
shrl $0x1f, %edx
addl %ecx, %edx
sarl %edx
subl %edx, %eax
jmp 0x5634
movslq %ecx, %rcx
imulq $0x55555555, %rcx, %rdx # imm = 0x55555555
shrq $0x20, %rdx
subl %ecx, %edx
movl %edx, %ecx
shrl $0x1f, %ecx
sarl %edx
addl %ecx, %edx
addl %eax, %edx
movl %edx, %eax
jmp 0x5634
subl %ecx, %eax
movl %eax, 0x10(%r14)
movl 0x3bde(%rip), %eax      # 0x921c
addl 0x14(%r14), %eax
movl %eax, 0x14(%r14)
cmpl $0xbb9, %eax            # imm = 0xBB9
jl 0x566c
movq (%r14), %r12
decq 0x10(%rbx)
movq %r14, %rdi
callq 0x2330
movl $0x20, %esi
movq %r14, %rdi
callq 0x2200
movq %r12, %r14
movq (%r14), %r14
cmpq %rbx, %r14
jne 0x55f2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/missile.cpp
// Function: MissileList::draw(XInfo*)
void MissileList::draw (XInfo *xinfo) {
    for (Missiles::iterator itr = missiles_.begin();
         itr != missiles_.end();
         ++itr) {
        int x = itr->x() / Missile::ScaleX;
        int y = itr->y() / Missile::ScaleY;
        itr->draw<attr::BLACK>(xinfo, x, y);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %r15
cmpq %rdi, %r15
je 0x5761
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x3ae8(%rip), %r12      # 0x9208
leaq 0x3ae9(%rip), %r13      # 0x9210
leaq 0x10(%r15), %rdi
xorps %xmm0, %xmm0
cvtsi2sdl 0x10(%r15), %xmm0
divsd (%r12), %xmm0
cvttsd2si %xmm0, %edx
xorps %xmm0, %xmm0
cvtsi2sdl 0x14(%r15), %xmm0
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movq %rbx, %rsi
callq 0x582c
movq (%r15), %r15
cmpq %r14, %r15
jne 0x5727
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/missile.cpp
// Function: MissileList::move()
void MissileList::move () {
    for (Missiles::iterator itr = missiles_.begin();
         itr != missiles_.end();
         ++itr) {

        itr->setX(itr->x() - Tower::speed());
        itr->setY(itr->y() - Missile::speed());

        if (itr->y() < 0) {
            itr = missiles_.erase(itr);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %r14
cmpq %rdi, %r14
je 0x57c9
movq %rdi, %rbx
leaq 0x3a7a(%rip), %r15      # 0x9200
movl (%r15), %eax
movl 0x3a99(%rip), %ecx      # 0x9228
subl %eax, 0x10(%r14)
subl %ecx, 0x14(%r14)
jns 0x57c1
movq (%r14), %r12
decq 0x10(%rbx)
movq %r14, %rdi
callq 0x2330
movl $0x18, %esi
movq %r14, %rdi
callq 0x2200
movl (%r15), %eax
movl 0x3a6a(%rip), %ecx      # 0x9228
movq %r12, %r14
movq (%r14), %r14
cmpq %rbx, %r14
jne 0x578f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/explosion.cpp
// Function: ExplosionList::draw(XInfo*)
void ExplosionList::draw (XInfo *xinfo) {
    for (Explosions::iterator itr = explosions_.begin();
         itr != explosions_.end();
         ++itr) {
        itr->draw(xinfo, itr->x(), itr->y());
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq (%rdi), %r15
cmpq %rdi, %r15
je 0x5979
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x38f2(%rip), %r12      # 0x9208
leaq 0x38f3(%rip), %r13      # 0x9210
leaq 0x10(%r15), %rdi
movl 0x10(%r15), %eax
movl 0x14(%r15), %ecx
movl 0x18(%r15), %edx
movl %edx, %esi
shrl $0x1f, %esi
addl %edx, %esi
sarl %esi
subl %esi, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd (%r12), %xmm0
cvttsd2si %xmm0, %edx
movl 0x1c(%r15), %eax
movl %eax, %esi
shrl $0x1f, %esi
addl %eax, %esi
sarl %esi
subl %esi, %ecx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
divsd (%r13), %xmm0
cvttsd2si %xmm0, %ecx
movq %rbx, %rsi
callq 0x5a3c
movq (%r15), %r15
cmpq %r14, %r15
jne 0x591d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/explosion.cpp
// Function: ExplosionList::move()
void ExplosionList::move () {
    for (Explosions::iterator itr = explosions_.begin();
         itr != explosions_.end();
         ++itr) {
        itr->setX(itr->x() - Tower::speed());
        itr->inflate();
        if (itr->w() > 300 &&
            itr->h() > 300) {
            itr = explosions_.erase(itr);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq (%rdi), %r14
cmpq %rdi, %r14
je 0x59fb
movq %rdi, %rbx
leaq 0x3862(%rip), %r15      # 0x9200
movl (%r15), %eax
movl $0x128, %ebp            # imm = 0x128
subl %eax, 0x10(%r14)
movl 0x18(%r14), %ecx
movl 0x1c(%r14), %edx
leal 0x5(%rcx), %esi
movl %esi, 0x18(%r14)
leal 0x5(%rdx), %esi
movl %esi, 0x1c(%r14)
cmpl %ebp, %ecx
setge %cl
cmpl %ebp, %edx
setge %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x59f3
movq (%r14), %r12
decq 0x10(%rbx)
movq %r14, %rdi
callq 0x2330
movl $0x20, %esi
movq %r14, %rdi
callq 0x2200
movl (%r15), %eax
movq %r12, %r14
movq (%r14), %r14
cmpq %rbx, %r14
jne 0x59a6
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/therealgymmy[P]HelicopterGame/src/misc.cpp
// Function: HealthBar::draw(XInfo*)
void HealthBar::draw (XInfo *xinfo) {
    frame_.draw<attr::BLACK>(xinfo,
                             x_ / ScaleX,
                             y_ / ScaleY);
    if (hp_ > 50) {
        Draw::draw<attr::GREEN>(xinfo,
                                (x_ + 20) / ScaleX,
                                (y_ + 20) / ScaleY);
    }
    else {
        Draw::draw<attr::RED>(xinfo,
                              (x_ + 20) / ScaleX,
                              (y_ + 20) / ScaleY);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
cvtsi2sdl (%rdi), %xmm0
leaq 0x3740(%rip), %r15      # 0x9208
movsd (%r15), %xmm1
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %ecx
xorps %xmm0, %xmm0
cvtsi2sdl 0x4(%rdi), %xmm0
leaq 0x372c(%rip), %r12      # 0x9210
movsd (%r12), %xmm2
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %r8d
movq %rsi, %r14
movq (%rsi), %rdi
movq 0xa0(%rsi), %rsi
movq 0xa8(%r14), %rdx
movsd 0x841(%rip), %xmm0      # 0x6350
divsd %xmm1, %xmm0
cvttsd2si %xmm0, %r9
movsd 0x510(%rip), %xmm0      # 0x6030
divsd %xmm2, %xmm0
cvttsd2si %xmm0, %rax
movl %eax, (%rsp)
callq 0x20f0
movl (%rbx), %eax
movl 0x4(%rbx), %ecx
addl $0x14, %eax
addl $0x14, %ecx
cmpl $0x33, 0x10(%rbx)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
divsd (%r15), %xmm0
cvttsd2si %xmm0, %edx
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
divsd (%r12), %xmm0
cvttsd2si %xmm0, %ecx
movq %rbx, %rdi
movq %r14, %rsi
jl 0x5b79
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5e5c
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x5eb0
nop
// File: /workspace/github_cpp_makefile_star2_O3/sunpihai-up[P]MulThreadsWordsCounter/WordsCounter-v3.cpp
// Function: consumer(void*)
void *consumer(void *args)
{
    string line;
    // loop while producer is working or queue is not empty
    while (producerNum > 0 || !isEmptyWork())
    {
        pthread_mutex_lock(&queueMutex);
        while (producerNum > 0 && workQueue.empty())
        {
            // Wait for the producer to stop reading or the work queue is not empty
            pthread_cond_wait(&condQueue, &queueMutex);
        }

        if (!workQueue.empty())
        {
            // Only take strings when the work queue is not empty
            line = workQueue.front();
            workQueue.pop();
        }

        pthread_cond_signal(&condQueue); // Wake up a waiting thread
        pthread_mutex_unlock(&queueMutex);

        // Count words in this line
        wordCount(line);
    }
    return NULL;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq -0x38(%rbp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq -0x58(%rbp), %r12
leaq 0x53fa(%rip), %rbx      # 0x8360
leaq 0x5443(%rip), %r14      # 0x83b0
leaq -0x68(%rbp), %r15
movl 0x5399(%rip), %eax      # 0x8310
testl %eax, %eax
jg 0x2fac
movq %rbx, %rdi
callq 0x22b0
movq 0x52f6(%rip), %r13      # 0x8280
movq %r12, %r15
movq 0x52cc(%rip), %r12      # 0x8260
movq %rbx, %rdi
callq 0x2170
cmpq %r12, %r13
movq %r15, %r12
leaq -0x68(%rbp), %r15
je 0x303e
movq %rbx, %rdi
callq 0x22b0
movl 0x5356(%rip), %ecx      # 0x8310
movq 0x52bf(%rip), %rax      # 0x8280
movq 0x5298(%rip), %rsi      # 0x8260
testl %ecx, %ecx
jle 0x2fde
cmpq %rsi, %rax
jne 0x2fde
movq %r14, %rdi
movq %rbx, %rsi
callq 0x22d0
jmp 0x2fb4
cmpq %rsi, %rax
je 0x2ff8
leaq -0x48(%rbp), %rdi
callq 0x2120
leaq 0x525d(%rip), %rdi      # 0x8250
callq 0x402e
movq %r14, %rdi
callq 0x2030
movq %rbx, %rdi
callq 0x2170
movq %r12, -0x68(%rbp)
movq -0x48(%rbp), %rsi
movq -0x40(%rbp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x3978
movq %r15, %rdi
callq 0x2de8
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x2f71
callq 0x21d0
jmp 0x2f71
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x3050
callq 0x21d0
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r12, %rdi
je 0x3079
callq 0x21d0
jmp 0x3079
jmp 0x3076
movq %rax, %rbx
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0x308b
callq 0x21d0
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O3/sunpihai-up[P]MulThreadsWordsCounter/WordsCounter-v3.cpp
// Function: sortWords()
void sortWords()
{
    auto iter = staResult.begin();
    while (iter != staResult.end())
    {
        wordsRank.push(make_pair(iter->second, iter->first));
        iter++;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq 0x517d(%rip), %r12      # 0x8228
testq %r12, %r12
je 0x3119
leaq -0x48(%rbp), %rbx
leaq -0x38(%rbp), %r13
leaq 0x5231(%rip), %r14      # 0x82f0
leaq -0x50(%rbp), %r15
movl 0x28(%r12), %eax
movl %eax, -0x50(%rbp)
movq %r13, -0x48(%rbp)
movq 0x8(%r12), %rsi
movq 0x10(%r12), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x3978
movq %r14, %rdi
movq %r15, %rsi
callq 0x4628
movq 0x51fa(%rip), %rdi      # 0x82f0
movq 0x51fb(%rip), %rsi      # 0x82f8
callq 0x4524
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x3110
callq 0x21d0
movq (%r12), %r12
testq %r12, %r12
jne 0x30c3
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0x3139
callq 0x21d0
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O3/sunpihai-up[P]MulThreadsWordsCounter/WordsCounter-v3.cpp
// Function: printHotWords()
void printHotWords()
{
    // Print title
    printf("%-10s%-20s%-10s\n", "RANK", "KEY WORDS", "FREQUENCY");
    for (int i = 1; i <= printNum && !wordsRank.empty(); i++)
    {
        cout << setiosflags(ios::left)
             << setw(10) << i << setw(20) << wordsRank.top().second
             << setw(10) << wordsRank.top().first << endl;
        wordsRank.pop();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
leaq 0x1f40(%rip), %rdi      # 0x5096
leaq 0x1f4a(%rip), %rsi      # 0x50a7
leaq 0x1f48(%rip), %rdx      # 0x50ac
leaq 0x1f4b(%rip), %rcx      # 0x50b6
xorl %eax, %eax
callq 0x2060
movl $0x1, %ebx
movq 0x4e52(%rip), %r14      # 0x7fd0
movl $0xa, %r13d
leaq 0x5165(%rip), %r15      # 0x82f0
movq 0x515e(%rip), %rax      # 0x82f0
cmpq 0x515f(%rip), %rax      # 0x82f8
je 0x3240
movq (%r14), %rax
movq -0x18(%rax), %rcx
orl $0x20, 0x18(%r14,%rcx)
movq -0x18(%rax), %rax
movq %r13, 0x10(%r14,%rax)
movq %r14, %rdi
movl %ebx, %esi
callq 0x2360
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq $0x14, 0x10(%rax,%rcx)
movq 0x511a(%rip), %rcx      # 0x82f0
movq 0x8(%rcx), %rsi
movq 0x10(%rcx), %rdx
movq %rax, %rdi
callq 0x2220
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movq %r13, 0x10(%rax,%rcx)
movq 0x50f7(%rip), %rcx      # 0x82f0
movl (%rcx), %esi
movq %rax, %rdi
callq 0x2360
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21f0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2150
movq %r15, %rdi
callq 0x36a0
incl %ebx
cmpl $0xb, %ebx
jne 0x318b
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/sunpihai-up[P]MulThreadsWordsCounter/WordsCounter-v3.cpp
// Function: threadLauncher(std::vector<unsigned long*, std::allocator<unsigned long*>>&, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void threadLauncher(std::vector<pthread_t *> &threadGroup, int cores, string &path)
{
    getFiles(path);
    for (int i = 0; i < cores / 2; i++)
    {
        threadGroup.push_back(new pthread_t);
        pthread_create(threadGroup[i], NULL, launchProducer, NULL);
    }

    for (int i = cores / 2; i < cores; i++)
    {
        threadGroup.push_back(new pthread_t);
        pthread_create(threadGroup[i], NULL, consumer, NULL);
    }

    for (int i = 0; i < threadGroup.size(); i++)
    {
        pthread_join(*threadGroup[i], NULL);
        free(threadGroup[i]);
        threadGroup[i] = NULL;
    }

    sortWords();
    printHotWords();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %r14d
movq %rdi, %rbx
leaq -0x40(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
addq %rsi, %rdx
leaq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0x3978
movq %r15, %rdi
callq 0x26fc
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x329b
callq 0x21d0
movl %r14d, %eax
shrl $0x1f, %eax
addl %r14d, %eax
sarl %eax
movl %eax, %r13d
cmpl $0x2, %r14d
jl 0x3302
xorl %r15d, %r15d
leaq -0x6e2(%rip), %r12      # 0x2bd7
movl $0x8, %edi
callq 0x2200
movq %rax, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x32db
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x32e7
movq %rbx, %rdi
leaq -0x30(%rbp), %rdx
callq 0x4c62
movq (%rbx), %rax
movq (%rax,%r15,8), %rdi
xorl %esi, %esi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x23a0
incq %r15
cmpq %r15, %r13
jne 0x32b9
testl %r14d, %r14d
jle 0x335a
leaq -0x30(%rbp), %r15
leaq -0x3db(%rip), %r12      # 0x2f37
movl $0x8, %edi
callq 0x2200
movq %rax, -0x30(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3334
movq %rax, (%rsi)
addq $0x8, 0x8(%rbx)
jmp 0x333f
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4c62
movq (%rbx), %rax
movq (%rax,%r13,8), %rdi
xorl %esi, %esi
movq %r12, %rdx
xorl %ecx, %ecx
callq 0x23a0
incq %r13
cmpl %r14d, %r13d
jl 0x3312
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x33a1
xorl %r14d, %r14d
movq (%rax,%r14,8), %rax
movq (%rax), %rdi
xorl %esi, %esi
callq 0x21b0
movq (%rbx), %rax
movq (%rax,%r14,8), %rdi
callq 0x2230
movq (%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r14, %rcx
ja 0x3366
callq 0x3093
callq 0x3141
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x50(%rbp), %rdi
cmpq %r12, %rdi
je 0x33cb
callq 0x21d0
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O3/mooncoincore[P]mooncoin-seeder/bitcoin.cpp
// Function: CNode::PushVersion()
void PushVersion() {
    int64 nTime = time(NULL);
    uint64 nLocalNonce = BITCOIN_SEED_NONCE;
    int64 nLocalServices = 0;
    CAddress me(CService("0.0.0.0"));
    BeginMessage("version");
    int nBestHeight = GetRequireHeight();
    string ver = "/mooncoin-seeder: v0.13.9.0-b257fcdsegwit/";
    vSend << PROTOCOL_VERSION << nLocalServices << nTime << you << me << nLocalNonce << ver << nBestHeight;
    EndMessage();
  }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
xorl %r12d, %r12d
xorl %edi, %edi
callq 0x33c0
movq %rax, %r15
leaq 0xddc8(%rip), %rsi      # 0x13014
leaq 0x40(%rsp), %r14
movq %r14, %rdi
xorl %edx, %edx
callq 0x9d6e
movzwl 0x10(%r14), %eax
movw %ax, 0x10(%rsp)
movups (%r14), %xmm0
movups %xmm0, (%rsp)
leaq 0x58(%rsp), %rdi
movl $0x1, %esi
callq 0xac86
leaq 0xdd99(%rip), %rsi      # 0x1301c
movq %rbx, %rdi
callq 0x57c6
leaq 0x171ee(%rip), %rax     # 0x1c480
cmpb $0x0, (%rax)
movl $0x12ebc0, %ebp         # imm = 0x12EBC0
cmovnel %r12d, %ebp
leaq 0x30(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0xdd75(%rip), %rsi      # 0x13024
leaq 0xdd98(%rip), %rdx      # 0x1304e
leaq 0x20(%rsp), %rdi
callq 0x5c54
leaq 0x8(%rbx), %r14
leaq 0x1c(%rsp), %rcx
movl $0x11180, -0x4(%rcx)    # imm = 0x11180
movq 0x10(%rbx), %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x59fe
leaq 0x20(%rsp), %rcx
movq $0x0, -0x8(%rcx)
movq 0x10(%rbx), %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x59fe
leaq 0x20(%rsp), %rcx
movq %r15, -0x8(%rcx)
movq 0x10(%rbx), %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x59fe
leaq 0xa8(%rbx), %rdi
movl 0x28(%rbx), %edx
movl 0x2c(%rbx), %ecx
movq %r14, %rsi
callq 0x5cea
movl 0x28(%rbx), %edx
movl 0x2c(%rbx), %ecx
leaq 0x58(%rsp), %rdi
movq %r14, %rsi
callq 0x5cea
movabsq $0x539a019ca550825, %rax # imm = 0x539A019CA550825
leaq 0x20(%rsp), %rcx
movq %rax, -0x8(%rcx)
movq 0x10(%rbx), %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x59fe
movq 0x28(%rsp), %rsi
movq %r14, %rdi
callq 0x5dc5
movq 0x28(%rsp), %rdx
testq %rdx, %rdx
je 0x5389
movq 0x20(%rsp), %rsi
movq %r14, %rdi
callq 0x59be
leaq 0x1c(%rsp), %rcx
movl %ebp, -0x4(%rcx)
movq 0x10(%rbx), %rsi
leaq 0x18(%rsp), %rdx
movq %r14, %rdi
callq 0x59fe
movq %rbx, %rdi
callq 0x5832
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x53b9
callq 0x33d0
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x20(%rsp), %rdi
cmpq %r12, %rdi
je 0x53db
callq 0x33d0
movq %rbx, %rdi
callq 0x3650
nop
// File: /workspace/github_cpp_makefile_star2_O3/helchr[P]reMap/main.cpp
// Function: getUsedSets(std::map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long>>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::vector<unsigned long, std::allocator<unsigned long>>>>>)
std::vector<uint64_t> getUsedSets(AddressSet addressSet)
{
    std::vector<uint64_t> usedSets;
    for(auto list : addressSet)
    {
        if(!list.second.empty())
        {
            usedSets.push_back(list.first);
        }
    }
    return usedSets;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x18(%rsi), %r15
addq $0x8, %r14
cmpq %r14, %r15
je 0x7db9
leaq 0x8(%rsp), %r12
movq %rsp, %r13
movq 0x20(%r15), %rax
movq %rax, (%rsp)
leaq 0x28(%r15), %rsi
movq %r12, %rdi
callq 0xa8c6
movq 0x8(%rsp), %rdi
cmpq 0x10(%rsp), %rdi
je 0x7d97
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x7d87
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x7d92
movq %rbx, %rdi
movq %r13, %rdx
callq 0xb184
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x7da9
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x5470
movq %r15, %rdi
callq 0x5360
movq %rax, %r15
cmpq %r14, %rax
jne 0x7d4c
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x7de9
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x5470
jmp 0x7de9
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x7dfd
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x5470
movq %r14, %rdi
callq 0x5790
// File: /workspace/github_cpp_makefile_star2_O3/helchr[P]reMap/main.cpp
// Function: getNextAddress(unsigned long, unsigned long, unsigned long)
uint64_t getNextAddress(uint64_t oldAddr, uint64_t base, uint64_t size)
{
    static const size_t MIN_SHIFT = 6;
    static size_t shift = MIN_SHIFT;
    static uint64_t baseAddr = 0;
    if(shift == MIN_SHIFT)
    {
        baseAddr = oldAddr;
    }
    auto oldPhys = getPhysicalAddr(baseAddr);
    auto addr = baseAddr ^ (1ULL << shift);
    if(addr >= base && addr < base+size)
    {
        volatile uint8_t* p;
        p = (uint8_t*) addr;
        *p;
        auto phys = getPhysicalAddr(addr);
        auto diff = std::bitset<64>(phys) ^ std::bitset<64>(oldPhys);
        if(diff.count() > 1)
        {
            //moved into a new frame
            shift = MIN_SHIFT;
            return getRandomAddress(base,size);
        }
        else
        {
            shift++;
            return addr;
        }
    }
    else
    {
        shift = MIN_SHIFT;
        return getRandomAddress(base,size);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
cmpq $0x6, 0x242ed(%rip)     # 0x2c458
jne 0x8176
movq %rdi, 0x24304(%rip)     # 0x2c478
jmp 0x817d
movq 0x242fb(%rip), %rdi     # 0x2c478
callq 0x7e4f
movq %rax, %r12
movq 0x242ec(%rip), %r15     # 0x2c478
movb 0x242c6(%rip), %al      # 0x2c458
btcq %rax, %r15
cmpq %rbx, %r15
setb %al
leaq (%r14,%rbx), %rcx
cmpq %rcx, %r15
setae %cl
orb %al, %cl
jne 0x81c1
movb (%r15), %al
movq %r15, %rdi
callq 0x7e4f
xorq %r12, %rax
leaq -0x1(%rax), %rcx
testq %rcx, %rax
je 0x81f6
movq $0x6, 0x2428c(%rip) # 0x2c458
callq 0x5140
movl %eax, %r15d
callq 0x5140
cltq
shlq $0x20, %r15
orq %rax, %r15
movq %r15, %rax
xorl %edx, %edx
divq %r14
movq %rdx, %r15
andq $-0x40, %r15
addq %rbx, %r15
jmp 0x81fd
incq 0x2425b(%rip)           # 0x2c458
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/helchr[P]reMap/main.cpp
// Function: printSolution(Solver::Solution const&, unsigned long)
void printSolution(const Solver::Solution& s, size_t offset)
{
    if(s.exists)
    {
        std::cout << "Involved bits: ";
        for (auto b : s.involvedBits)
        {
            std::cout << offset + b << " ";
        }
        std::cout << std::endl;
        std::cout << "Uninvolved bits: ";
        for (auto b : s.uninvolvedBits)
        {
            std::cout << offset + b << " ";
        }
        std::cout << std::endl;
        std::cout << "Unknown bits: ";
        for (auto b : s.unknownBits)
        {
            std::cout << offset + b << " ";
        }
        std::cout << std::endl;
    }
    else
    {
        std::cout << "No solution exists" << std::endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpb $0x1, (%rdi)
jne 0x863a
movq %rsi, %rbx
movq %rdi, %r14
movq 0x23af0(%rip), %rdi     # 0x2bfb0
leaq 0x19caa(%rip), %rsi     # 0x22171
movl $0xf, %edx
callq 0x54c0
movq 0x20(%r14), %r12
leaq 0x10(%r14), %r15
cmpq %r15, %r12
je 0x851c
movq 0x23acb(%rip), %r13     # 0x2bfb0
leaq 0x19f00(%rip), %rbp     # 0x223ec
movq 0x20(%r12), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x5340
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x54c0
movq %r12, %rdi
callq 0x54e0
movq %rax, %r12
cmpq %r15, %rax
jne 0x84ec
movq 0x23a8d(%rip), %r15     # 0x2bfb0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x5440
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5350
leaq 0x19c30(%rip), %rsi     # 0x22181
movl $0x11, %edx
movq %r15, %rdi
callq 0x54c0
movq 0x50(%r14), %r12
leaq 0x40(%r14), %r15
cmpq %r15, %r12
je 0x85a9
movq 0x23a3e(%rip), %r13     # 0x2bfb0
leaq 0x19e73(%rip), %rbp     # 0x223ec
movq 0x20(%r12), %rsi
addq %rbx, %rsi
movq %r13, %rdi
callq 0x5340
movl $0x1, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x54c0
movq %r12, %rdi
callq 0x54e0
movq %rax, %r12
cmpq %r15, %rax
jne 0x8579
movq 0x23a00(%rip), %r15     # 0x2bfb0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x5440
movsbl %al, %esi
movq %r15, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5350
leaq 0x19bb5(%rip), %rsi     # 0x22193
movl $0xe, %edx
movq %r15, %rdi
callq 0x54c0
movq 0x80(%r14), %r15
addq $0x70, %r14
cmpq %r14, %r15
je 0x8652
movq 0x239ae(%rip), %r12     # 0x2bfb0
leaq 0x19de3(%rip), %r13     # 0x223ec
movq 0x20(%r15), %rsi
addq %rbx, %rsi
movq %r12, %rdi
callq 0x5340
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x54c0
movq %r15, %rdi
callq 0x54e0
movq %rax, %r15
cmpq %r14, %rax
jne 0x8609
jmp 0x8652
movq 0x2396f(%rip), %rdi     # 0x2bfb0
leaq 0x19b5a(%rip), %rsi     # 0x221a2
movl $0x12, %edx
callq 0x54c0
movq 0x23957(%rip), %rbx     # 0x2bfb0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x5440
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5350
// File: /workspace/github_cpp_makefile_star2_O3/helchr[P]reMap/main.cpp
// Function: compactSets(std::map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long>>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::vector<unsigned long, std::allocator<unsigned long>>>>> const&)
std::map<size_t,std::vector<uint64_t>> compactSets(const std::map<size_t,std::vector<uint64_t>>& addresses)
{
    std::map<size_t,std::vector<uint64_t>> newAddresses;
    size_t newIdx = 0;
    for(const auto& adr : addresses)
    {
        if(!adr.second.empty())
        {
            newAddresses.insert(make_pair(newIdx,adr.second));
            newIdx++;
        }
    }
    return newAddresses;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %ecx, %ecx
movq %rcx, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %rcx, 0x28(%rdi)
movq 0x18(%rsi), %r15
addq $0x8, %r14
cmpq %r14, %r15
je 0x87f9
leaq 0x10(%rsp), %r12
xorl %ebp, %ebp
leaq 0x8(%rsp), %r13
movq 0x28(%r15), %rax
cmpq 0x30(%r15), %rax
je 0x87e9
leaq 0x28(%r15), %rsi
movq %rbp, 0x8(%rsp)
movq %r12, %rdi
callq 0xa8c6
movq %rbx, %rdi
movq %r13, %rsi
callq 0xb7b4
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x87e6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5470
incq %rbp
movq %r15, %rdi
callq 0x54e0
movq %rax, %r15
cmpq %r14, %rax
jne 0x87a9
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x882a
movq %rax, %r14
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x882a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x5470
movq %rbx, %rdi
callq 0xaaa0
movq %r14, %rdi
callq 0x5790
// File: /workspace/github_cpp_makefile_star2_O3/helchr[P]reMap/main.cpp
// Function: prepareSolvePrint(std::map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long>>, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::vector<unsigned long, std::allocator<unsigned long>>>>>, unsigned long, unsigned long)
void prepareSolvePrint(AddressSet adrs,size_t removeFront, size_t removeBack)
{
    cleanAddresses(adrs,removeFront,removeBack);
    adrs = compactSets(adrs);
    auto expectedBits = static_cast<size_t>(ceil(log2(adrs.size())));
    auto cSol = calculateAddressingFunction(adrs,expectedBits,getUsableBits(removeFront,removeBack));
    printSolutions(cSol,removeFront);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
callq 0x8218
leaq 0x18(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x875f
movq %r14, %rdi
callq 0xab16
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x88af
leaq 0x8(%r14), %rcx
leaq 0x20(%rsp), %rdx
movl (%rdx), %esi
movl %esi, 0x8(%r14)
movq %rax, 0x10(%r14)
movups 0x10(%rdx), %xmm0
movups %xmm0, 0x18(%r14)
movq %rcx, 0x8(%rax)
movq 0x20(%rdx), %rax
movq %rax, 0x28(%r14)
xorl %eax, %eax
movq %rax, 0x8(%rdx)
movq %rdx, 0x10(%rdx)
movq %rdx, 0x18(%rdx)
movq %rax, 0x20(%rdx)
leaq 0x18(%rsp), %rdi
callq 0xaaa0
movsd 0x28(%r14), %xmm1
unpcklps 0x1975a(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x19762(%rip), %xmm1    # 0x22030
movapd %xmm1, %xmm0
unpckhpd %xmm1, %xmm0            # xmm0 = xmm0[1],xmm1[1]
addsd %xmm1, %xmm0
callq 0x57b0
callq 0x50b0
cvttsd2si %xmm0, %rax
movq %rax, %rcx
subsd 0x1974c(%rip), %xmm0    # 0x22040
sarq $0x3f, %rcx
cvttsd2si %xmm0, %rdx
andq %rcx, %rdx
orq %rax, %rdx
addq %rbx, %r15
movl $0x40, %ecx
subq %r15, %rcx
leaq 0x18(%rsp), %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0x8276
movq %rsp, %rdi
movq %r15, %rsi
callq 0xa5ee
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x868e
movq %rsp, %rdi
callq 0xa5be
leaq 0x18(%rsp), %rdi
callq 0xa5be
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0xa5be
jmp 0x8962
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0xa5be
movq %rbx, %rdi
callq 0x5790
// File: /workspace/github_cpp_makefile_star2_O3/helchr[P]reMap/solver.cpp
// Function: Solver::solve(std::vector<unsigned long, std::allocator<unsigned long>>&, unsigned long)
void Solver::solve(Matrix& matrix, size_t colMax)
{
    for(size_t c = colMax, r = 0; c-- > 1 && r < matrix.size();)
    {
        uint64_t mask = 1ULL << c;
        if((matrix[r] & mask) == 1)
        {
            xorRows(matrix,r,c);
            r++;
        }
        else
        {
            auto rowToSwap = findRowToSwap(matrix,r,c);
            if(rowToSwap == r)
            {
                //move to next column, stay in same row
                continue;
            }
            else
            {
                swapRows(matrix,r,rowToSwap);
                xorRows(matrix,r,c);
                r++;
            }
        }
        if(debug)
        {
            printMatrix(matrix);
        }
    }
}

// Assembly:
cmpq $0x2, %rdx
jb 0xc483
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
movq (%r14), %rax
movq 0x8(%r14), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rdx, %r12
jae 0xc478
decq %rbx
movl $0x1, %esi
movl %ebx, %ecx
shlq %cl, %rsi
movq (%rax,%r12,8), %rcx
movq %rcx, %rdi
andq %rsi, %rdi
cmpq $0x1, %rdi
je 0xc453
leaq 0x1(%r12), %rdi
cmpq %rdi, %rdx
je 0xc472
movq (%rax,%rdi,8), %r8
incq %rdi
testq %rsi, %r8
je 0xc439
movq %r8, (%rax,%r12,8)
movq %rcx, -0x8(%rax,%rdi,8)
movq %r14, %rsi
movq %r12, %rdx
movq %rbx, %rcx
callq 0xc20c
incq %r12
cmpb $0x1, (%r15)
jne 0xc472
movq %r14, %rsi
callq 0xc27e
cmpq $0x1, %rbx
ja 0xc404
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/helchr[P]reMap/sysinfo.cpp
// Function: SysInfo::getTadRegions(unsigned int)
std::map<size_t,std::vector<SysInfo::TadRegion>> SysInfo::getTadRegions(unsigned int socket)
{
    std::map<size_t,std::vector<TadRegion>> regions; //must be ordered map
    for(unsigned int contr = 0; contr < 2; contr++)
    {
        size_t lastLimit = 0;
        unsigned int i = 0;
        auto reg = readTadRegion(socket,contr,i);
        auto regionLimit = getRegionLimitAddress(reg);
        while(lastLimit != regionLimit)
        {
            TadRegion r;
            r.limitAddress = regionLimit;
            r.socketInterleaving = getSocketInterleaving(reg);
            r.channelInterleaving = getChannelInterleaving(reg);
            regions[regionLimit].push_back(r);
            i++;
            lastLimit = regionLimit;
            reg = readTadRegion(socket,contr,i);
            regionLimit =  getRegionLimitAddress(reg);
        }
    }
    return regions;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
movl $0x0, 0x8(%rdi)
xorl %r14d, %r14d
movq %r14, 0x10(%rdi)
movq %rax, 0x18(%rdi)
movq %rax, 0x20(%rdi)
movq %r14, 0x28(%rdi)
movb $0x1, %al
leaq 0x8(%rsp), %r15
movl %eax, 0x14(%rsp)
movl %ebp, %edi
movl %r14d, %esi
xorl %edx, %edx
callq 0xd156
movl %eax, %ecx
shrl $0xc, %ecx
shlq $0x1a, %rcx
movq %rcx, 0x8(%rsp)
cmpl $0x1000, %eax           # imm = 0x1000
jb 0xe2c8
movl $0x1, %r13d
movq %rcx, 0x18(%rsp)
movl %eax, %ecx
shrl $0xa, %ecx
andb $0x3, %cl
incb %cl
movb %cl, 0x20(%rsp)
shrl $0x8, %eax
andb $0x3, %al
incb %al
movb %al, 0x21(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0xe732
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0xe293
movups 0x18(%rsp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rax)
jmp 0xe2a0
movq %rax, %rdi
leaq 0x18(%rsp), %rdx
callq 0xf8a0
movq 0x8(%rsp), %r12
movl %ebp, %edi
movl %r14d, %esi
movl %r13d, %edx
callq 0xd156
movl %eax, %ecx
shrl $0xc, %ecx
shlq $0x1a, %rcx
movq %rcx, 0x8(%rsp)
incl %r13d
cmpq %rcx, %r12
jne 0xe251
movl $0x1, %r14d
testb $0x1, 0x14(%rsp)
movl $0x0, %eax
jne 0xe226
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xe2f2
movq %rax, %r14
movq %rbx, %rdi
callq 0xb00c
movq %r14, %rdi
callq 0x5790
nop
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/acceptor.cpp
// Function: acceptor::acceptor(int, int)
acceptor::acceptor(int _epoll_cnt, int _max_conn) {
	epoll_cnt = _epoll_cnt;
	max_conn = _max_conn;
	_INFO("epoll_cnt=%d,max_conn=%d", epoll_cnt, max_conn);
	listen_port = -1;
	stop_task = 0;
	conn_num = 0;
	wid = 0;
	epoll_fds = new int[epoll_cnt];
	epoll_ready_event_num = new int[epoll_cnt];
	pipe_read_fds = new int[epoll_cnt];
	pipe_write_fds = new int[epoll_cnt];
	add_sum = 2;
	for (int i = 0; i < epoll_cnt; i++) {
		epoll_ready_event_num[i] = 0;
	}
	epoll_mutexes = new pthread_mutex_t[epoll_cnt];
	for (int i = 0; i < epoll_cnt; i++) {
		pthread_mutex_init(&epoll_mutexes[i], NULL);
	}
	epoll_ready_events = new epoll_event*[epoll_cnt];
	for (int i = 0; i < epoll_cnt; i++) {
		epoll_ready_events[i] = new epoll_event[max_conn];
	}
	pthread_mutex_init(&epoll_idx_mutex, NULL);
	incoming_fd_cnt = 0;
	epoll_thread_cnt = 0;
	pthread_mutex_init(&conn_mutex, NULL);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
movl %esi, 0x4(%rdi)
movl %edx, (%rdi)
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x21e0
leaq 0x30(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2100
leaq 0x3b9a(%rip), %rdx      # 0x6004
leaq 0x10(%rsp), %r14
pushq $0x12
popq %rsi
movq %r14, %rdi
movq %r15, %rcx
callq 0x2190
movq 0x6b54(%rip), %rax      # 0x8fd8
movq (%rax), %r15
callq 0x21c0
movl (%rbx), %ecx
movl 0x4(%rbx), %r9d
movl %ecx, (%rsp)
leaq 0x3b78(%rip), %rsi      # 0x6014
leaq 0x3cd8(%rip), %r8       # 0x617b
movq %r15, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x22f0
orl $-0x1, 0x8(%rbx)
andq $0x0, 0x18(%rbx)
andl $0x0, 0x20(%rbx)
movslq 0x4(%rbx), %rbp
leaq (,%rbp,4), %r15
testq %rbp, %rbp
pushq $-0x1
popq %r13
movq %r15, %r14
cmovsq %r13, %r14
movq %r14, %rdi
callq 0x2030
movq %rax, 0x10(%rbx)
movq %r14, %rdi
callq 0x2030
movq %rax, %r12
movq %rax, 0x88(%rbx)
movq %r14, %rdi
callq 0x2030
movq %rax, 0x90(%rbx)
movq %r14, %rdi
callq 0x2030
movq %rbp, %r14
movq %rax, 0x98(%rbx)
movl $0x2, 0xa8(%rbx)
testq %rbp, %rbp
jle 0x2535
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x2110
pushq $0x28
popq %rcx
movq %r14, %rax
mulq %rcx
cmovoq %r13, %rax
movq %rax, %rdi
callq 0x2030
movq %rax, 0x28(%rbx)
testl %ebp, %ebp
jle 0x2578
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x28(%rbx), %rdi
addq %r15, %rdi
xorl %esi, %esi
callq 0x2330
incq %r12
movl 0x4(%rbx), %ebp
movslq %ebp, %r14
addq $0x28, %r15
cmpq %r14, %r12
jl 0x2558
shlq $0x3, %r14
testl %ebp, %ebp
cmovsq %r13, %r14
movq %r14, %rdi
callq 0x2030
movq %rax, 0x80(%rbx)
testl %ebp, %ebp
jle 0x25c6
movslq (%rbx), %rax
pushq $0xc
popq %rcx
mulq %rcx
movq %rax, %r14
cmovoq %r13, %r14
movl %ebp, %r15d
xorl %r12d, %r12d
movq %r14, %rdi
callq 0x2030
movq 0x80(%rbx), %rcx
movq %rax, (%rcx,%r12,8)
incq %r12
cmpq %r12, %r15
jne 0x25ab
leaq 0x58(%rbx), %rdi
xorl %esi, %esi
callq 0x2330
andq $0x0, 0xa0(%rbx)
addq $0x30, %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2330
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/acceptor.cpp
// Function: acceptor::close_fd(int)
int acceptor::close_fd(int fd) {
	int tmp;
	pthread_mutex_lock(&conn_mutex);
	conn_num--;
	tmp = conn_num;
	pthread_mutex_unlock(&conn_mutex);
	_INFO("close fd=%d, conn_num=%d", fd, tmp);
	return close(fd);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movl %esi, %ebx
movq %rdi, %r14
leaq 0x30(%rdi), %r15
movq %r15, %rdi
callq 0x2320
movl 0x1c(%r14), %ebp
decl %ebp
movl %ebp, 0x1c(%r14)
movq %r15, %rdi
callq 0x2170
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x21e0
leaq 0x30(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
callq 0x2100
leaq 0x39bd(%rip), %rdx      # 0x6004
leaq 0x10(%rsp), %r14
pushq $0x12
popq %rsi
movq %r14, %rdi
movq %r15, %rcx
callq 0x2190
movq 0x6977(%rip), %rax      # 0x8fd8
movq (%rax), %r15
callq 0x21c0
movl %ebp, (%rsp)
leaq 0x39fa(%rip), %rsi      # 0x606d
leaq 0x3b01(%rip), %r8       # 0x617b
movq %r15, %rdi
movq %r14, %rdx
movq %rax, %rcx
movl %ebx, %r9d
xorl %eax, %eax
callq 0x22f0
movl %ebx, %edi
callq 0x2410
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/double_linked_list.c
// Function: init_list
double_linked_list* init_list() {
	double_linked_list* ret = (double_linked_list*)malloc(sizeof(double_linked_list));
	if (!ret) {
		return NULL;
	}
	ret->header = NULL;
	ret->tail = ret->header;
	ret->node_cnt = 0;
	return ret;
}

// Assembly:
pushq %rax
movl $0x18, %edi
callq 0x22b0
testq %rax, %rax
je 0x3229
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movl $0x0, 0x10(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/double_linked_list.c
// Function: destroy_list
void destroy_list(double_linked_list* lst) {
	if (lst == NULL) {
		return;
	}
	node* n = lst->header;
	if (n == NULL) {
		return;
	}
	node* cur;
	while (n) {
		cur = n;
		n = n->next;
		free(cur);
	}
	free(lst);
	return;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x325f
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x325f
movq 0x10(%rdi), %r14
callq 0x2260
movq %r14, %rdi
testq %r14, %r14
jne 0x323f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2260
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/double_linked_list.c
// Function: rm_node_from_tail
int rm_node_from_tail(double_linked_list* lst, int cnt, uint64_t* keys) {
	node* n = lst->tail;
	node* cur;
	int ret = 0;
	keys = (uint64_t*)malloc(sizeof(uint64_t) * cnt);
	while (n && cnt > 0) {
		cur = n;
		n = n->prev;

		keys[ret] = cur->key;
		free(cur);

		cnt--;
		lst->node_cnt--;
		ret++;
	}
	lst->tail = n;
	if (!n) {
		lst->header = NULL;
	}
	return ret; 
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x8(%rdi), %r14
testq %r14, %r14
setne %cl
sete %dl
testl %esi, %esi
setle %sil
xorl %eax, %eax
orb %dl, %sil
jne 0x331f
xorl %r15d, %r15d
movq %r14, %rdi
movq 0x8(%r14), %r14
callq 0x2260
decl 0x10(%rbx)
leal -0x1(%r15), %eax
testq %r14, %r14
setne %cl
je 0x331d
addl %ebp, %r15d
cmpl $0x1, %r15d
movl %eax, %r15d
ja 0x32f6
negl %eax
movq %r14, 0x8(%rbx)
testb %cl, %cl
jne 0x332e
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/double_linked_list.c
// Function: push_from_tail
int push_from_tail(double_linked_list* lst, node* n) {
	if (lst->tail) {
		lst->tail->next = n;
		n->prev = lst->tail;
		lst->tail = n;
		return ++lst->node_cnt;
	}
	else {
		return push_from_header(lst, n);
	}
}

// Assembly:
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x3373
leaq 0x8(%rdi), %rdx
movq %rsi, 0x10(%rax)
movq %rsi, %rcx
jmp 0x338d
movq (%rdi), %rcx
movq %rcx, 0x10(%rsi)
movq $0x0, 0x8(%rsi)
movq %rsi, %rax
movq %rdi, %rdx
testq %rcx, %rcx
je 0x3391
movq %rax, 0x8(%rcx)
movq %rsi, (%rdx)
movl 0x10(%rdi), %eax
incl %eax
movl %eax, 0x10(%rdi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/acceptor.cpp
// Function: acceptor::~acceptor()
acceptor::~acceptor() {
	delete[] epoll_fds;
	delete[] epoll_ready_event_num;
	delete[] pipe_read_fds;
	delete[] pipe_write_fds;
	for (int i = 0; i < epoll_cnt; i++) {
		pthread_mutex_destroy(&epoll_mutexes[i]);
	}
	delete[] epoll_mutexes;
	for (int i = 0; i < epoll_cnt; i++) {
		delete[] epoll_ready_events[i];
	}
	delete[] epoll_ready_events;
	pthread_mutex_destroy(&epoll_idx_mutex);
	pthread_mutex_destroy(&conn_mutex);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x33fe
callq 0x2280
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x340f
callq 0x2280
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x3420
callq 0x2280
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0x3431
callq 0x2280
movl 0x4(%rbx), %eax
testl %eax, %eax
jle 0x345a
xorl %r14d, %r14d
xorl %r15d, %r15d
movq 0x28(%rbx), %rdi
addq %r14, %rdi
callq 0x2240
incq %r15
movslq 0x4(%rbx), %rax
addq $0x28, %r14
cmpq %rax, %r15
jl 0x343e
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x346b
callq 0x2280
movl 0x4(%rbx), %eax
testl %eax, %eax
jle 0x3495
xorl %r14d, %r14d
movq 0x80(%rbx), %rcx
movq (%rcx,%r14,8), %rdi
testq %rdi, %rdi
je 0x348a
callq 0x2280
movl 0x4(%rbx), %eax
incq %r14
movslq %eax, %rcx
cmpq %rcx, %r14
jl 0x3472
movq 0x80(%rbx), %rdi
testq %rdi, %rdi
je 0x34a6
callq 0x2280
leaq 0x58(%rbx), %rdi
callq 0x2240
addq $0x30, %rbx
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/acceptor.cpp
// Function: acceptor::add_input_fd(int, int)
int acceptor::add_input_fd(int fd, int efd) {
	epoll_event event;
	event.events = EPOLLIN | EPOLLET;
	event.data.fd = fd;
	int ret = epoll_ctl(efd, EPOLL_CTL_ADD, fd, &event);
	if (ret < 0) {
		_ERROR("add_input_fd err,fd=%d,errno=%d", fd, errno);
	}
	return ret;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movl %edx, %edi
movl %esi, %ebx
leaq 0xc(%rsp), %rcx
movl $0x80000001, (%rcx)     # imm = 0x80000001
movl %esi, 0x4(%rcx)
movl $0x1, %esi
movl %ebx, %edx
callq 0x22e0
movl %eax, %ebp
testl %eax, %eax
js 0x3519
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
movl %ebx, %edi
callq 0x271b
jmp 0x3510
// File: /workspace/github_cpp_makefile_star2_O3/SeTriones[P]Anubis/acceptor.cpp
// Function: acceptor::create_listen(int&, unsigned short)
int acceptor::create_listen(int &socket_fd, unsigned short port) {
	sockaddr_in addr;
	memset(&addr, 0, sizeof addr);
	addr.sin_family = AF_INET;
	addr.sin_addr.s_addr = INADDR_ANY;
	addr.sin_port = htons(port);

	if ((socket_fd = socket(PF_INET, SOCK_STREAM, 0)) == -1)
		return -1;
	if (set_socket(socket_fd, O_NONBLOCK))
		return -1;
	if (::bind(socket_fd, (const sockaddr*)&addr, sizeof addr))
		return -1;
	if (listen(socket_fd, max_conn))
		return -1;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, 0x8(%rsp)
movw $0x2, (%rsp)
movl $0x0, 0x4(%rsp)
rolw $0x8, %dx
movw %dx, 0x2(%rsp)
movl $0x2, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x2080
movl %eax, (%r14)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $-0x1, %eax
je 0x35a2
movl %eax, %esi
movl $0x800, %edx            # imm = 0x800
callq 0x35ae
testl %eax, %eax
jne 0x35a2
movl (%r14), %edi
movq %rsp, %rsi
movl $0x10, %edx
callq 0x2070
testl %eax, %eax
jne 0x35a2
movl (%r14), %edi
movl (%rbx), %esi
callq 0x2220
xorl %ebp, %ebp
negl %eax
sbbl %ebp, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
nop