LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/vssense[P]Compiler/src/front-end/translator.cpp
// Function: IntToDrevniyRus(_IO_FILE*, int)
void IntToDrevniyRus(FILE* file, int number)
{
    assert(file);

    if (number == 0)
    {
        fprintf(file, "����");
        return;
    }

    bool NeededBracket = false;
    if (number < 0)
    {
        fprintf(file, "(������� - ��������) * ");
        number *= -1;
        if (number - 1 > rank)
        {
            NeededBracket = true;
        }
    }

    if (NeededBracket)
    {
        fprintf(file, "(");
    }

    for (size_t power = 0; number > 0; ++power)
    {
        int digit = number % rank;
        fprintf(file, "%s", DIGITS[digit].rus_digit);

        for (size_t i = 0; i < power; ++i)
        {
            fprintf(file, " * ���������");
        }

        if (number > rank)
        {
            fprintf(file, " + ");
        }

        number /= rank;
    }

    if (NeededBracket)
    {
        fprintf(file, ")");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x5631
movl %esi, %r13d
movq %rdi, %rbx
testl %esi, %esi
je 0x5500
js 0x5527
xorl %ecx, %ecx
jmp 0x554f
leaq 0xf84(%rip), %rdi       # 0x648b
movl $0x4, %esi
movl $0x1, %edx
movq %rbx, %rcx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x21b0
leaq 0x2038(%rip), %rdi      # 0x7566
movl $0x17, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x21b0
movl %r13d, %eax
negl %eax
cmpl $-0xb, %r13d
setl %cl
movl %eax, %r13d
movl %ecx, -0x2c(%rbp)
testb %cl, %cl
je 0x5563
movl $0x28, %edi
movq %rbx, %rsi
callq 0x2120
testl %r13d, %r13d
jle 0x5601
xorl %r14d, %r14d
leaq 0x2008(%rip), %r12      # 0x757e
movl %r13d, %r15d
movl $0xcccccccd, %eax       # imm = 0xCCCCCCCD
imulq %rax, %r15
shrq $0x23, %r15
leal (%r15,%r15), %eax
leal (%rax,%rax,4), %eax
movl %r13d, -0x30(%rbp)
movl %r13d, %ecx
subl %eax, %ecx
shll $0x5, %ecx
leaq 0x46c0(%rip), %rax      # 0x9c60
movq (%rcx,%rax), %rdi
movq %rbx, %rsi
callq 0x20f0
movq %r14, %r13
testq %r14, %r14
je 0x55ce
movl $0xc, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x21b0
decq %r13
jne 0x55b4
movl -0x30(%rbp), %r13d
cmpl $0xa, %r13d
jbe 0x55f1
movl $0x3, %esi
movl $0x1, %edx
leaq 0x1fa2(%rip), %rdi      # 0x758b
movq %rbx, %rcx
callq 0x21b0
incq %r14
cmpl $0xa, %r13d
movl %r15d, %r13d
jae 0x5576
cmpb $0x0, -0x2c(%rbp)
je 0x5622
movl $0x29, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2120
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x11bb(%rip), %rdi      # 0x67f3
leaq 0x1be5(%rip), %rsi      # 0x7224
leaq 0x1efe(%rip), %rcx      # 0x7544
movl $0x145, %edx            # imm = 0x145
callq 0x2090
// File: /workspace/github_cpp_makefile_star2_O1/chuckwolber[P]Cube/order/./SchwartzGeneratorReduce.hpp
// Function: SchwartzGeneratorReduce<AlgorithmTally, std::vector<unsigned long long, std::allocator<unsigned long long>>>::~SchwartzGeneratorReduce()
virtual ~SchwartzGeneratorReduce() {
            if (interior != NULL) {
                for (TallyType* t : *interior)
                    delete t;
                delete interior;
            }
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x839f(%rip), %rax      # 0x11a40
movq %rax, (%rdi)
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x9714
movq %rdi, %rbx
movq (%rax), %r15
movq 0x8(%rax), %r12
cmpq %r12, %r15
je 0x96df
movq (%r15), %r14
testq %r14, %r14
je 0x96d9
movq %r14, %rdi
callq 0x9b06
movl $0x10, %esi
movq %r14, %rdi
callq 0x42f0
addq $0x8, %r15
jmp 0x96b7
movq 0x8(%rbx), %rbx
testq %rbx, %rbx
je 0x9714
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x96fc
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x42f0
movl $0x18, %esi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x42f0
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/chuckwolber[P]Cube/order/./AlgorithmTally.hpp
// Function: Algorithms::combine(AlgorithmTally const*, AlgorithmTally const*) const
virtual AlgorithmTally* combine(const AlgorithmTally* left, const AlgorithmTally* right) const {
            AlgorithmTally* at = init();
            at->algorithms->insert(at->algorithms->end(), left->algorithms->begin(), left->algorithms->end());
            at->algorithms->insert(at->algorithms->end(), right->algorithms->begin(), right->algorithms->end());
            return at;
        }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq (%rdi), %rax
callq *0x10(%rax)
movq %rax, %r15
movq 0x8(%rax), %rdi
movq 0x8(%rdi), %rsi
movq 0x8(%r14), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
callq 0x9b70
movq 0x8(%r15), %rdi
movq 0x8(%rdi), %rsi
movq 0x8(%rbx), %rax
movq (%rax), %rdx
movq 0x8(%rax), %rcx
callq 0x9b70
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/chuckwolber[P]Cube/order/./AlgorithmTally.hpp
// Function: Algorithms::accum(AlgorithmTally*, unsigned long long) const
virtual void accum(AlgorithmTally* accumulator, unsigned long long int index) const {
            unsigned long long int x = accumulator->algorithm->getAlgorithmNumber();
            *(accumulator->algorithm) += (index - x);
            if (!(*(accumulator->algorithm).*re)())
                accumulator->algorithms->push_back(index);
        }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rdx, (%rsp)
movq (%rsi), %rdi
callq 0x4e8e
movq (%rsp), %rsi
subq %rax, %rsi
movq (%rbx), %rdi
callq 0x4d08
movq (%rbx), %rdi
movq 0x28(%r14), %rax
addq 0x30(%r14), %rdi
testb $0x1, %al
je 0x9a2a
movq (%rdi), %rcx
movq -0x1(%rcx,%rax), %rax
callq *%rax
testb %al, %al
jne 0x9a57
movq 0x8(%rbx), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x9a4f
movq (%rsp), %rax
movq %rax, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x9a57
movq %rsp, %rdx
callq 0x9d64
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/chuckwolber[P]Cube/order/./SchwartzGeneratorReduce.hpp
// Function: SchwartzGeneratorReduce<AlgorithmTally, std::vector<unsigned long long, std::allocator<unsigned long long>>>::reduce(unsigned long)
bool reduce(size_t i) {
            if (i < n_threads - 1) {
                auto handle = std::async(std::launch::async, &SchwartzGeneratorReduce::reduce, this, right(i));
                reduce(left(i));
                handle.wait();
                interior->at(i) = combine(value(left(i)), value(right(i)));
            } else {
                TallyType* tally = init();
                unsigned long long int start = getStart(i);
                unsigned long long int end = getEnd(start);
                for (unsigned long long int j = start; j < end; ++j)
                    accum(tally, j);
                interior->at(i) = tally;
            }
            return true;
        }

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
decq %rax
cmpq %rsi, %rax
jbe 0xa579
leaq -0x2a(%rip), %rax       # 0xa48e
leaq 0x20(%rsp), %rdx
movq %rax, (%rdx)
movq $0x0, 0x8(%rdx)
leaq 0x18(%rsp), %rcx
movq %r14, (%rcx)
leaq 0x2(%rbx,%rbx), %r15
leaq 0x10(%rsp), %r8
movq %r15, (%r8)
movq %rsp, %rdi
movl $0x1, %esi
callq 0xa64f
leaq 0x1(,%rbx,2), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0xa48e
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa612
callq 0xb5f4
movq 0x8(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r12, %rdx
jbe 0xa61c
cmpq %r15, %rdx
jbe 0xa624
leaq (%rbx,%rbx), %rcx
movq (%rax,%r12,8), %rsi
movq 0x10(%rax,%rcx,8), %rdx
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
movq 0x8(%r14), %rdx
movq (%rdx), %rcx
movq 0x8(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
cmpq %rbx, %rdx
jbe 0xa621
movq %rax, (%rcx,%rbx,8)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xa5f1
callq 0xb284
jmp 0xa5f1
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
movq %rax, %r15
movq 0x18(%r14), %rsi
movq 0x20(%r14), %rcx
movq %rbx, %r12
subq %rsi, %r12
incq %r12
movq %rcx, %rax
xorl %edx, %edx
divq %rsi
imulq %rax, %rsi
xorl %r13d, %r13d
cmpq %rax, %rsi
setne %r13b
addq %rax, %r13
imulq %r13, %r12
addq %r12, %r13
cmpq %rcx, %r13
cmovaeq %rcx, %r13
cmpq %r13, %r12
jae 0xa5d6
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *0x28(%rax)
incq %r12
jmp 0xa5bd
movq 0x8(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbx, %rdx
jbe 0xa601
movq %r15, (%rax,%rbx,8)
movb $0x1, %al
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1c00(%rip), %rdi      # 0xc208
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4410
movl $0x3, %edi
callq 0x4090
movq %r12, %r15
jmp 0xa624
movq %rbx, %r15
leaq 0x1bdd(%rip), %rdi      # 0xc208
movq %r15, %rsi
xorl %eax, %eax
callq 0x4410
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xa647
callq 0xb284
movq %rbx, %rdi
callq 0x44c0
// File: /workspace/github_cpp_makefile_star2_O1/tismith[P]tmp-play/church.cpp
// Function: main
int main() {
    std::cout << "AND(TRUE,TRUE) == ";
    std::cout << (typeid(AND::F<TRUE,TRUE>::TYPE) == typeid(TRUE)); 
    std::cout << std::endl;

    std::cout << "AND(FALSE,TRUE) == ";
    std::cout << (typeid(AND::F<FALSE,TRUE>::TYPE) == typeid(TRUE)); 
    std::cout << std::endl;

    std::cout << "OR(FALSE,TRUE) == ";
    std::cout << (typeid(OR::F<FALSE,TRUE>::TYPE) == typeid(TRUE)); 
    std::cout << std::endl;

#if 0
    std::cout << "NOT(TRUE) == ";
    std::cout << (typeid(NOT::F<TRUE>::TYPE) == typeid(TRUE)); 
    std::cout << std::endl;

    std::cout << "NOT(FALSE) == ";
    std::cout << (typeid(NOT::F<FALSE>::TYPE) == typeid(TRUE)); 
    std::cout << std::endl;
#endif
}

// Assembly:
pushq %rbx
movq 0x2e04(%rip), %rbx      # 0x3fd8
leaq 0xe29(%rip), %rsi       # 0x2004
movl $0x12, %edx
movq %rbx, %rdi
callq 0x1070
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1090
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
leaq 0xdf4(%rip), %rsi       # 0x2017
movl $0x13, %edx
movq %rbx, %rdi
callq 0x1070
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1090
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
leaq 0xdc3(%rip), %rsi       # 0x202b
movl $0x12, %edx
movq %rbx, %rdi
callq 0x1070
movq %rbx, %rdi
movl $0x1, %esi
callq 0x1090
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x1060
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1040
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CRangeDecoder::Init()
bool CRangeDecoder::Init()
{
  Corrupted = false;
  Range = 0xFFFFFFFF;
  Code = 0;
  Perplexity = 0.f;

  Byte b = InStream->ReadByte();

  for (int i = 0; i < 4; i++)
    Code = (Code << 8) | InStream->ReadByte();

  if (b != 0 || Code == Range)
    Corrupted = true;
  return b == 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movb $0x0, 0x10(%rdi)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, (%rdi)
movl $0x0, 0x14(%rdi)
movq 0x8(%rdi), %rdi
callq 0x3ade
movl %eax, %r14d
movl $0x4, %r15d
movl 0x4(%rbx), %r12d
shll $0x8, %r12d
movq 0x8(%rbx), %rdi
callq 0x3ade
movzbl %al, %eax
orl %r12d, %eax
movl %eax, 0x4(%rbx)
decl %r15d
jne 0x248f
testb %r14b, %r14b
jne 0x24ba
movl 0x4(%rbx), %eax
cmpl (%rbx), %eax
jne 0x24be
movb $0x1, 0x10(%rbx)
testb %r14b, %r14b
sete %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CRangeDecoder::DecodeDirectBits(unsigned int)
UInt32 CRangeDecoder::DecodeDirectBits(unsigned numBits)
{
  Perplexity += numBits;
  UInt32 res = 0;
  do
  {
    Range >>= 1;
    Code -= Range;
    UInt32 t = 0 - ((UInt32)Code >> 31);
    Code += Range & t;

    if (Code == Range)
      Corrupted = true;

    Normalize();
    res <<= 1;
    res += t + 1;
  }
  while (--numBits);
  return res;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %eax
cvtsi2ss %rax, %xmm0
addss 0x14(%rdi), %xmm0
movss %xmm0, 0x14(%rdi)
xorl %r15d, %r15d
movl (%r14), %eax
movl 0x4(%r14), %ecx
shrl %eax
movl %eax, (%r14)
subl %eax, %ecx
movl %ecx, %r12d
sarl $0x1f, %r12d
movl %r12d, %edx
andl %eax, %edx
addl %ecx, %edx
movl %edx, 0x4(%r14)
cmpl %eax, %edx
jne 0x2553
movb $0x1, 0x10(%r14)
movq %r14, %rdi
callq 0x24ce
leal (%r12,%r15,2), %r15d
incl %r15d
decl %ebx
jne 0x252a
movl %r15d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CRangeDecoder::DecodeBit(unsigned short*)
unsigned CRangeDecoder::DecodeBit(CProb *prob)
{
  unsigned v = *prob;
  UInt32 bound = (Range >> kNumBitModelTotalBits) * v;
  unsigned symbol;
  if (Code < bound)
  {
    Perplexity += -log2(v/2048.f);
    v += ((1 << kNumBitModelTotalBits) - v) >> kNumMoveBits;
    Range = bound;
    symbol = 0;
  }
  else
  {
    Perplexity += -log2(1.f-v/2048.f);
    v -= v >> kNumMoveBits;
    Code -= bound;
    Range -= bound;
    symbol = 1;
  }
  *prob = (CProb)v;
  Normalize();
  return symbol;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movzwl (%rsi), %r13d
movl (%rdi), %r12d
shrl $0xb, %r12d
imull %r13d, %r12d
cvtsi2ss %r13d, %xmm0
mulss 0x3a62(%rip), %xmm0     # 0x6004
cmpl %r12d, 0x4(%rdi)
jae 0x25ce
callq 0x21c0
movss 0x14(%rbx), %xmm1
subss %xmm0, %xmm1
movss %xmm1, 0x14(%rbx)
movl $0x800, %eax            # imm = 0x800
subl %r13d, %eax
shrl $0x5, %eax
addl %r13d, %eax
xorl %r15d, %r15d
jmp 0x260e
movss 0x3a32(%rip), %xmm1     # 0x6008
subss %xmm0, %xmm1
movaps %xmm1, %xmm0
callq 0x21c0
movss 0x14(%rbx), %xmm1
subss %xmm0, %xmm1
movss %xmm1, 0x14(%rbx)
movl %r13d, %eax
shrl $0x5, %eax
subl %eax, %r13d
subl %r12d, 0x4(%rbx)
movl (%rbx), %eax
subl %r12d, %eax
movl $0x1, %r15d
movl %eax, %r12d
movl %r13d, %eax
movl %r12d, (%rbx)
movw %ax, (%r14)
movq %rbx, %rdi
callq 0x24ce
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: BitTreeReverseDecode(unsigned short*, unsigned int, CRangeDecoder*)
unsigned BitTreeReverseDecode(CProb *probs, unsigned numBits, CRangeDecoder *rc)
{
  unsigned m = 1;
  unsigned symbol = 0;
  for (unsigned i = 0; i < numBits; i++)
  {
    unsigned bit = rc->DecodeBit(&probs[m]);
    m <<= 1;
    m += bit;
    symbol |= (bit << i);
  }
  return symbol;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
je 0x267b
movq %rdx, %r15
movq %rdi, %r14
xorl %r13d, %r13d
movl $0x1, %ebx
xorl %r12d, %r12d
movl %esi, -0x2c(%rbp)
movl %ebx, %eax
leaq (%r14,%rax,2), %rsi
movq %r15, %rdi
callq 0x2572
movl -0x2c(%rbp), %esi
leal (%rax,%rbx,2), %ebx
movl %r13d, %ecx
shll %cl, %eax
orl %eax, %r12d
incl %r13d
cmpl %r13d, %esi
jne 0x2655
jmp 0x267e
xorl %r12d, %r12d
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CInputStream::ReadByte()
Byte ReadByte()
  {
    int c = getc(File);
    if (c < 0)
      throw "Unexpected end of file";
    Processed++;
    return (Byte)c;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
callq 0x2060
testl %eax, %eax
js 0x3afe
incq 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x8, %edi
callq 0x20b0
leaq 0x25e0(%rip), %rcx      # 0x60ef
movq %rcx, (%rax)
movq 0x54a7(%rip), %rsi      # 0x8fc0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2240
nop
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CLzmaDecoder::Init()
void Init()
  {
    InitLiterals();
    InitDist();

    INIT_PROBS(IsMatch);
    INIT_PROBS(IsRep);
    INIT_PROBS(IsRepG0);
    INIT_PROBS(IsRepG1);
    INIT_PROBS(IsRepG2);
    INIT_PROBS(IsRep0Long);

    LenDecoder.Init();
    RepLenDecoder.Init();
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x94(%rdi), %ecx
addl 0x8c(%rdi), %ecx
cmpl $0x17, %ecx
ja 0x3b62
movl $0x300, %eax            # imm = 0x300
shll %cl, %eax
movq 0xa0(%rbx), %rcx
cmpl $0x1, %eax
adcl $0x0, %eax
xorl %edx, %edx
movw $0x400, (%rcx,%rdx,2)   # imm = 0x400
incq %rdx
cmpq %rdx, %rax
jne 0x3b54
leaq 0xa8(%rbx), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movw $0x400, (%rax,%rdx,2)   # imm = 0x400
incq %rdx
cmpq $0x40, %rdx
jne 0x3b6d
incq %rcx
subq $-0x80, %rax
cmpq $0x4, %rcx
jne 0x3b6b
xorl %eax, %eax
movw $0x400, 0x2a8(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0x10, %rax
jne 0x3b8b
xorl %eax, %eax
movw $0x400, 0x2c8(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0x73, %rax
jne 0x3ba0
xorl %eax, %eax
movw $0x400, 0x3ae(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc0, %rax
jne 0x3bb5
xorl %eax, %eax
movw $0x400, 0x52e(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x3bcc
xorl %eax, %eax
movw $0x400, 0x546(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x3be1
xorl %eax, %eax
movw $0x400, 0x55e(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x3bf6
xorl %eax, %eax
movw $0x400, 0x576(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x3c0b
xorl %eax, %eax
movw $0x400, 0x58e(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc0, %rax
jne 0x3c20
leaq 0x70e(%rbx), %rdi
callq 0x4218
addq $0xb12, %rbx            # imm = 0xB12
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4218
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: COutWindow::PutByte(unsigned char)
void PutByte(Byte b)
  {
    TotalPos++;
    Buf[Pos++] = b;
    if (Pos == Size)
    {
      Pos = 0;
      IsFull = true;
    }
    OutStream.WriteByte(b);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
incl 0x14(%rdi)
movq (%rdi), %rax
movl 0x8(%rdi), %ecx
leal 0x1(%rcx), %edx
movl %edx, 0x8(%rdi)
movb %sil, (%rax,%rcx)
movl 0x8(%rdi), %eax
cmpl 0xc(%rdi), %eax
jne 0x3e8a
movl $0x0, 0x8(%rdi)
movb $0x1, 0x10(%rdi)
addq $0x18, %rdi
movzbl %sil, %esi
popq %rbp
jmp 0x43ce
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CLenDecoder::Decode(CRangeDecoder*, unsigned int)
unsigned Decode(CRangeDecoder *rc, unsigned posState)
  {
    if (rc->DecodeBit(&Choice) == 0)
      return LowCoder[posState].Decode(rc);
    if (rc->DecodeBit(&Choice2) == 0)
      return 8 + MidCoder[posState].Decode(rc);
    return 16 + HighCoder.Decode(rc);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movq %rsi, %rdi
movq %r15, %rsi
callq 0x2572
testl %eax, %eax
je 0x3eff
leaq 0x2(%r15), %rsi
movq %rbx, %rdi
callq 0x2572
testl %eax, %eax
je 0x3f37
addq $0x204, %r15            # imm = 0x204
movl $0x1, %r14d
movl $0x8, %r12d
movl %r14d, %eax
leaq (%r15,%rax,2), %rsi
movq %rbx, %rdi
callq 0x2572
leal (%rax,%r14,2), %r14d
decl %r12d
jne 0x3ede
addl $0xffffff10, %r14d      # imm = 0xFFFFFF10
jmp 0x3f6c
movl %r14d, %eax
shlq $0x4, %rax
addq %rax, %r15
addq $0x4, %r15
movl $0x1, %r14d
movl $0x3, %r12d
movl %r14d, %eax
leaq (%r15,%rax,2), %rsi
movq %rbx, %rdi
callq 0x2572
leal (%rax,%r14,2), %r14d
decl %r12d
jne 0x3f19
addl $-0x8, %r14d
jmp 0x3f6c
movl %r14d, %eax
shlq $0x4, %rax
addq %rax, %r15
addq $0x104, %r15            # imm = 0x104
movl $0x1, %r14d
movl $0x3, %r12d
movl %r14d, %eax
leaq (%r15,%rax,2), %rsi
movq %rbx, %rdi
callq 0x2572
leal (%rax,%r14,2), %r14d
decl %r12d
jne 0x3f54
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CLzmaDecoder::DecodeDistance(unsigned int)
unsigned DecodeDistance(unsigned len)
  {
    unsigned lenState = len;
    if (lenState > kNumLenToPosStates - 1)
      lenState = kNumLenToPosStates - 1;

    unsigned posSlot = PosSlotDecoder[lenState].Decode(&RangeDec);
    if (posSlot < 4)
      return posSlot;

    unsigned numDirectBits = (unsigned)((posSlot >> 1) - 1);
    UInt32 dist = ((2 | (posSlot & 1)) << numDirectBits);
    if (posSlot < kEndPosModelIndex)
      dist += BitTreeReverseDecode(PosDecoders + dist - posSlot, numDirectBits, &RangeDec);
    else
    {
      dist += RangeDec.DecodeDirectBits(numDirectBits - kNumAlignBits) << kNumAlignBits;
      dist += AlignDecoder.ReverseDecode(&RangeDec);
    }
    return dist;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
cmpl $0x3, %esi
movl $0x3, %eax
cmovbl %esi, %eax
shll $0x7, %eax
leaq (%rdi,%rax), %rbx
addq $0xa8, %rbx
movl $0x1, %r14d
movl $0x6, %r12d
movl %r14d, %eax
leaq (%rbx,%rax,2), %rsi
movq %r13, %rdi
callq 0x2572
movl %eax, %r15d
leal (%r15,%r14,2), %r14d
decl %r12d
jne 0x3fb1
addl $-0x40, %r14d
cmpl $0x4, %r14d
jb 0x40b6
movl %r14d, %esi
shrl %esi
leal -0x1(%rsi), %ebx
orl $0x2, %r15d
movl %ebx, %ecx
shll %cl, %r15d
cmpl $0xd, %r14d
ja 0x4055
testl %ebx, %ebx
je 0x40b0
movl %r15d, %eax
leaq (,%rax,2), %rcx
addq %r13, %rcx
movl %r14d, %eax
addq %rax, %rax
subq %rax, %rcx
addq $0x2c8, %rcx            # imm = 0x2C8
movq %rcx, -0x30(%rbp)
movq %r13, -0x38(%rbp)
xorl %r13d, %r13d
movl $0x1, %r12d
xorl %r14d, %r14d
movl %r12d, %eax
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rsi
movq -0x38(%rbp), %rdi
callq 0x2572
leal (%rax,%r12,2), %r12d
movl %r13d, %ecx
shll %cl, %eax
orl %eax, %r14d
incl %r13d
cmpl %r13d, %ebx
jne 0x402b
jmp 0x40b3
addl $-0x5, %esi
movq %r13, %rdi
callq 0x2506
movl %eax, %r14d
shll $0x4, %r14d
leaq 0x2a8(%r13), %rax
movq %rax, -0x30(%rbp)
xorl %r12d, %r12d
movl $0x1, %ebx
movq %r13, -0x38(%rbp)
xorl %r13d, %r13d
movl %ebx, %eax
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rsi
movq -0x38(%rbp), %rdi
callq 0x2572
leal (%rax,%rbx,2), %ebx
movl %r12d, %ecx
shll %cl, %eax
orl %eax, %r13d
incl %r12d
cmpl $0x4, %r12d
jne 0x4081
addl %r15d, %r14d
addl %r13d, %r14d
jmp 0x40b6
xorl %r14d, %r14d
addl %r15d, %r14d
movl %r14d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CLzmaDecoder::DecodeProperties(unsigned char const*)
void DecodeProperties(const Byte *properties)
  {
    unsigned d = properties[0];
    if (d >= (9 * 5 * 5))
      throw "Incorrect LZMA properties";
    lc = d % 9;
    d /= 9;
    pb = d / 5;
    lp = d % 5;
    dictSizeInProperties = 0;
    for (int i = 0; i < 4; i++)
      dictSizeInProperties |= (UInt32)properties[i + 1] << (8 * i);
    dictSize = dictSizeInProperties;
    if (dictSize < LZMA_DIC_MIN)
      dictSize = LZMA_DIC_MIN;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movzbl (%rsi), %eax
cmpl $0xe1, %eax
jae 0x41a1
movl %eax, %ecx
imulq $0x1c71c71d, %rcx, %rdx # imm = 0x1C71C71D
shrq $0x20, %rdx
leal (%rdx,%rdx,8), %r8d
subl %r8d, %eax
movl %eax, 0x8c(%rdi)
imulq $0x5b05b06, %rcx, %rax  # imm = 0x5B05B06
shrq $0x20, %rax
movl %eax, 0x90(%rdi)
imulq $0x33333334, %rdx, %rax # imm = 0x33333334
shrq $0x20, %rax
leal (%rax,%rax,4), %eax
subl %eax, %edx
movl %edx, 0x94(%rdi)
movl $0x0, 0x9c(%rdi)
incq %rsi
xorl %ecx, %ecx
xorl %eax, %eax
movzbl (%rsi), %edx
shll %cl, %edx
orl %edx, %eax
movl %eax, 0x9c(%rdi)
addq $0x8, %rcx
incq %rsi
cmpq $0x20, %rcx
jne 0x4172
cmpl $0x1001, %eax           # imm = 0x1001
movl $0x1000, %ecx           # imm = 0x1000
cmovael %eax, %ecx
movl %ecx, 0x98(%rdi)
popq %rbp
retq
movl $0x8, %edi
callq 0x20b0
leaq 0x2065(%rip), %rcx      # 0x6217
movq %rcx, (%rax)
movq 0x4e04(%rip), %rsi      # 0x8fc0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CLenDecoder::Init()
void Init()
  {
    Choice = PROB_INIT_VAL;
    Choice2 = PROB_INIT_VAL;
    HighCoder.Init();
    for (unsigned i = 0; i < (1 << kNumPosBitsMax); i++)
    {
      LowCoder[i].Init();
      MidCoder[i].Init();
    }
  }

// Assembly:
movl $0x4000400, (%rdi)      # imm = 0x4000400
xorl %eax, %eax
movw $0x400, 0x204(%rdi,%rax,2) # imm = 0x400
incq %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x4220
pushq %rbp
movq %rsp, %rbp
leaq 0x4(%rdi), %rax
addq $0x104, %rdi            # imm = 0x104
xorl %ecx, %ecx
xorl %edx, %edx
movw $0x400, (%rax,%rdx,2)   # imm = 0x400
incq %rdx
cmpq $0x8, %rdx
jne 0x4248
xorl %edx, %edx
movw $0x400, (%rdi,%rdx,2)   # imm = 0x400
incq %rdx
cmpq $0x8, %rdx
jne 0x4259
incq %rcx
addq $0x10, %rax
addq $0x10, %rdi
cmpq $0x10, %rcx
jne 0x4246
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: ColorGradient::createDefaultHeatMapGradient()
void createDefaultHeatMapGradient()
  {
    color.clear();
    color.push_back(ColorPoint(0, 0, 0,   0.0f));      // Blue.
    color.push_back(ColorPoint(0, 0, 1,   0.2f));     // Cyan.
    color.push_back(ColorPoint(0, 1, 0,   0.5f));      // Green.
    color.push_back(ColorPoint(1, 1, 0,   0.7f));     // Yellow.
    color.push_back(ColorPoint(1, 0, 0,   0.9f));      // Red.
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x4551
movq %rax, 0x8(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x456c
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4578
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
movaps 0x1aa1(%rip), %xmm0     # 0x6020
movups %xmm0, -0x20(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x459b
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x45a7
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
movaps 0x1a82(%rip), %xmm0     # 0x6030
movups %xmm0, -0x20(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x45ca
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x45d6
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
movaps 0x1a63(%rip), %xmm0     # 0x6040
movups %xmm0, -0x20(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x45f9
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4605
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
movaps 0x1a44(%rip), %xmm0     # 0x6050
movups %xmm0, -0x20(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4628
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4634
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: ColorGradient::createViridisHeatMapGradient()
void createViridisHeatMapGradient()
  {
    color.clear();
    color.push_back(ColorPoint(0x44/255.f,0x02/255.f,0x55/255.f,   0.0f));
    color.push_back(ColorPoint(0x2C/255.f,0x70/255.f,0x8E/255.f,   0.33f));
    color.push_back(ColorPoint(0x3D/255.f,0xBB/255.f,0x74/255.f,   0.66f));
    color.push_back(ColorPoint(0xFA/255.f,0xE6/255.f,0x22/255.f,   1.f));
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq (%rdi), %rax
cmpq %rax, 0x8(%rdi)
je 0x4655
movq %rax, 0x8(%rbx)
movaps 0x1a04(%rip), %xmm0     # 0x6060
movups %xmm0, -0x18(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4678
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4684
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
movaps 0x19e5(%rip), %xmm0     # 0x6070
movups %xmm0, -0x18(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x46a7
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x46b3
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
movaps 0x19c6(%rip), %xmm0     # 0x6080
movups %xmm0, -0x18(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x46d6
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x46e2
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
movaps 0x19a7(%rip), %xmm0     # 0x6090
movups %xmm0, -0x18(%rbp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x4705
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x4711
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x4a72
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: ColorGradient::printScale[abi:cxx11](int)
std::string printScale(int width)
  {
    std::stringstream ss;
    for (int i = 0; i < width; i++) {
      float val = (i*1.f)/width;
      float r,g,b;
      getColorAtValue(val, r,g,b);
      ss << realcolor::fg(r,g,b) << "━";
    }
    ss << realcolor::reset;
    return ss.str();
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1c8, %rsp            # imm = 0x1C8
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, -0x60(%rbp)
leaq -0x1e8(%rbp), %rdi
callq 0x20f0
testl %r14d, %r14d
jle 0x4804
cvtsi2ss %r14d, %xmm0
movss %xmm0, -0x2c(%rbp)
xorl %r12d, %r12d
leaq -0x58(%rbp), %r13
leaq 0x1ad6(%rip), %rbx      # 0x6239
xorps %xmm0, %xmm0
cvtsi2ss %r12d, %xmm0
divss -0x2c(%rbp), %xmm0
movq %r15, %rdi
leaq -0x38(%rbp), %rsi
leaq -0x34(%rbp), %rdx
leaq -0x30(%rbp), %rcx
callq 0x4bc0
movss -0x38(%rbp), %xmm0
movss 0x1883(%rip), %xmm1     # 0x6014
mulss %xmm1, %xmm0
cvttss2si %xmm0, %esi
movss -0x34(%rbp), %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %edx
movss -0x30(%rbp), %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
movq %r13, %rdi
callq 0x4ccb
movq -0x58(%rbp), %rsi
movq -0x50(%rbp), %rdx
leaq -0x1d8(%rbp), %rdi
callq 0x2180
movl $0x3, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2180
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x47f8
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2170
incl %r12d
cmpl %r12d, %r14d
jne 0x4763
leaq -0x1d8(%rbp), %rdi
leaq 0x1a3b(%rip), %rsi      # 0x624d
movl $0x4, %edx
callq 0x2180
movq -0x60(%rbp), %rbx
leaq -0x1d0(%rbp), %rsi
movq %rbx, %rdi
callq 0x2200
movq 0x477a(%rip), %rsi      # 0x8fb0
leaq -0x1e8(%rbp), %rdi
callq 0x2100
leaq -0x168(%rbp), %rdi
callq 0x2070
movq %rbx, %rax
addq $0x1c8, %rsp            # imm = 0x1C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4867
jmp 0x4867
movq %rax, %rbx
jmp 0x4888
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x4888
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2170
movq 0x4721(%rip), %rsi      # 0x8fb0
leaq -0x1e8(%rbp), %rdi
callq 0x2100
leaq -0x168(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O1/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: ColorGradient::get[abi:cxx11](float)
std::string get(const float value)
  {
    float r,g,b;
    getColorAtValue(value, r,g,b);
    std::stringstream ss;
    ss << realcolor::bg(r,g,b) << realcolor::fg(1.f-r,1.f-g,1.f-b);
    return ss.str();
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1e0, %rsp            # imm = 0x1E0
movq %rdi, %rbx
leaq -0x2c(%rbp), %r14
leaq -0x28(%rbp), %r15
leaq -0x24(%rbp), %r12
movq %rsi, %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %r12, %rcx
callq 0x4bc0
leaq -0x1f8(%rbp), %rdi
callq 0x20f0
movss 0x171e(%rip), %xmm1     # 0x6014
movss (%r14), %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %esi
movss (%r15), %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %edx
movss (%r12), %xmm0
mulss %xmm1, %xmm0
cvttss2si %xmm0, %ecx
leaq -0x70(%rbp), %rdi
callq 0x4de2
leaq -0x1e8(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x2180
movq %rax, %r14
movss 0x16c2(%rip), %xmm0     # 0x6008
movaps %xmm0, %xmm1
subss -0x2c(%rbp), %xmm1
movaps %xmm0, %xmm2
subss -0x28(%rbp), %xmm2
subss -0x24(%rbp), %xmm0
movss 0x16b1(%rip), %xmm3     # 0x6014
mulss %xmm3, %xmm1
cvttss2si %xmm1, %esi
mulss %xmm3, %xmm2
cvttss2si %xmm2, %edx
mulss %xmm3, %xmm0
cvttss2si %xmm0, %ecx
leaq -0x50(%rbp), %rdi
callq 0x4ccb
movq -0x50(%rbp), %rsi
movq -0x48(%rbp), %rdx
movq %r14, %rdi
callq 0x2180
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49ad
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x49c6
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x1e0(%rbp), %rsi
movq %rbx, %rdi
callq 0x2200
movq 0x45d4(%rip), %rsi      # 0x8fb0
leaq -0x1f8(%rbp), %rdi
callq 0x2100
leaq -0x178(%rbp), %rdi
callq 0x2070
movq %rbx, %rax
addq $0x1e0, %rsp            # imm = 0x1E0
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4a47
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a2c
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x4a2c
jmp 0x4a29
movq %rax, %rbx
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4a4a
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x4a4a
movq %rax, %rbx
movq 0x455f(%rip), %rsi      # 0x8fb0
leaq -0x1f8(%rbp), %rdi
callq 0x2100
leaq -0x178(%rbp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2270
nop
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/Common.cpp
// Function: Trim(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void Trim(string& str)
{
    string::size_type pos = str.find_last_not_of(' ');
    if(pos != string::npos)
    {
        str.erase(pos + 1);
        pos = str.find_first_not_of(' ');
        if(pos != string::npos) str.erase(0, pos);
    }
    else str.erase(str.begin(), str.end());
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x20, %esi
movq $-0x1, %rdx
callq 0x21b0
cmpq $-0x1, %rax
je 0x264c
leaq 0x1(%rax), %rdx
movq 0x8(%rbx), %rcx
cmpq %rax, %rcx
jbe 0x2661
movq %rdx, 0x8(%rbx)
movq (%rbx), %rax
movb $0x0, (%rax,%rdx)
movq %rbx, %rdi
movl $0x20, %esi
xorl %edx, %edx
callq 0x2230
cmpq $-0x1, %rax
je 0x265a
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x20a0
movq (%rbx), %rax
movq $0x0, 0x8(%rbx)
movb $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x3a23(%rip), %rdi      # 0x608b
leaq 0x3a08(%rip), %rsi      # 0x6077
xorl %eax, %eax
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/Common.cpp
// Function: GetBBTime[abi:cxx11]()
string GetBBTime()
{
    string ret = "";
    char buf[256];
    struct tm* local;
    time_t t;

    t = time(NULL);
    local = localtime(&t);

    sprintf(buf, "%02d:%02d:%02d", local->tm_hour, local->tm_min, local->tm_sec);
    ret += buf;

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movq %rdi, %rbx
leaq 0x10(%rdi), %r15
movq %r15, (%rdi)
leaq 0x3ddf(%rip), %rdx      # 0x6476
movq %rdx, %rsi
callq 0x2a2c
xorl %edi, %edi
callq 0x2240
leaq -0x20(%rbp), %rdi
movq %rax, (%rdi)
callq 0x21e0
movl 0x8(%rax), %edx
movl (%rax), %r8d
movl 0x4(%rax), %ecx
leaq 0x3942(%rip), %rsi      # 0x6004
leaq -0x120(%rbp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2080
movq %rbx, %rdi
movq %r14, %rsi
callq 0x23b0
movq %rbx, %rax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r15, %rdi
je 0x2705
movq (%r15), %rsi
incq %rsi
callq 0x2290
movq %r14, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/Common.cpp
// Function: DelSockFdFromSet(int)
void DelSockFdFromSet(int sockFd)
{
    if ((sockFd > 0) && (FD_ISSET(sockFd, &gReadSockFdSet)))
    {
        FD_CLR(sockFd, &gReadSockFdSet);
    }

    if ((sockFd > 0) && (FD_ISSET(sockFd, &gWriteSockFdSet)))
    {
        FD_CLR(sockFd, &gWriteSockFdSet);
    }

    while ((gMaxSockFd > 0) && (!FD_ISSET(gMaxSockFd, &gReadSockFdSet)))
    {
        gMaxSockFd--;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0x873d(%rip), %rax      # 0xaea0
testl %edi, %edi
jle 0x27a4
movl %edi, %edx
shrl $0x6, %edx
movl $0x1, %esi
movl %edi, %ecx
shlq %cl, %rsi
movq (%rax,%rdx,8), %r8
btq %rdi, %r8
movq %rsi, %rcx
notq %rcx
jae 0x278d
andq %rcx, %r8
movq %r8, (%rax,%rdx,8)
leaq 0x878c(%rip), %rdi      # 0xaf20
movq (%rdi,%rdx,8), %r8
testq %rsi, %r8
je 0x27a4
andq %rcx, %r8
movq %r8, (%rdi,%rdx,8)
movl 0x87f6(%rip), %ecx      # 0xafa0
testl %ecx, %ecx
jle 0x27cd
movl %ecx, %edx
shrl $0x6, %edx
movq (%rax,%rdx,8), %rdx
btq %rcx, %rdx
jb 0x27cd
leal -0x1(%rcx), %edx
movl %edx, 0x87da(%rip)      # 0xafa0
cmpl $0x1, %ecx
movl %edx, %ecx
jg 0x27ae
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/Common.cpp
// Function: CloseSockFd(int)
void CloseSockFd(int sockFd)
{
    if (sockFd > 0)
    {
        gRunnerManager.DeleteRunner(sockFd);
        DelSockFdFromSet(sockFd);
        
        close(sockFd);        
    }
}

// Assembly:
testl %edi, %edi
jle 0x27fd
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x867e(%rip), %rdi      # 0xae60
movl %ebx, %esi
callq 0x4c10
movl %ebx, %edi
callq 0x2758
movl %ebx, %edi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x23c0
retq
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/Common.cpp
// Function: SockSendPacket(int, char*, int)
int SockSendPacket(int sockFd, char* buf, int bufLen)
{
    int ret = -1;

    if ((sockFd > 0) && (buf != NULL) && (bufLen > 0))
    {
        int nLeft = bufLen;        
        int nSend = 0;
        int tmpRet = 0;
        int errCount = 0;

        while (nLeft > 0)
        {
            tmpRet = send(sockFd, (buf + nSend), nLeft, 0);

            if (tmpRet < 0)
            {
                if (/*(errno == EAGAIN) || */(errno == EWOULDBLOCK) || (errno == EINTR) || (errno == EINPROGRESS))
                {
                    errCount++;
                    
                    if (errCount > 5)
                    {
                        gLog.Write("SockSendPacket: error count exceeds 2 times! errno %d\n", errno);
                        break;
                    }
                    else
                    {
                        usleep(1000);
                        continue;
                    }
                }
                else
                {
                    gLog.Write("SockSendPacket: send socket error! errno %d\n", errno);
                    break;
                }
            }
            else if (tmpRet == 0)
            {
                ret = 0;
                break;
            }
            else
            {
                errCount = 0;
                
                nLeft -= tmpRet;
                nSend += tmpRet;
                ret = nSend;
            }
        }
    }

    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebx
movl %edi, %r15d
testl %edi, %edi
setle %al
testq %rsi, %rsi
sete %cl
testl %edx, %edx
setle %dl
orb %al, %dl
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
orb %cl, %dl
jne 0x28d4
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %edi, %edi
movb $0x1, %r14b
movq %rsi, -0x38(%rbp)
movl %ecx, -0x2c(%rbp)
movl %edi, -0x30(%rbp)
movl %edi, %r13d
addq %rsi, %r13
movl %ebx, %ebx
movl $0x6, %r12d
movl %r15d, %edi
movq %r13, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2150
testl %eax, %eax
jns 0x2896
callq 0x2040
movl (%rax), %edx
cmpl $0x4, %edx
je 0x287f
cmpl $0x73, %edx
je 0x287f
cmpl $0xb, %edx
jne 0x28bc
decl %r12d
je 0x28b3
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2330
testb $0x1, %r14b
jne 0x2855
jmp 0x28d1
je 0x28e5
movl -0x30(%rbp), %edi
addl %eax, %edi
movl %ebx, %ecx
subl %eax, %ecx
testl %ecx, %ecx
setg %r14b
movl %edi, %ecx
subl %eax, %ebx
movq -0x38(%rbp), %rsi
jg 0x2841
jmp 0x28d4
leaq 0x3759(%rip), %rsi      # 0x6013
jmp 0x28c3
leaq 0x3787(%rip), %rsi      # 0x604a
leaq 0x858e(%rip), %rdi      # 0xae58
xorl %eax, %eax
callq 0x3974
movl -0x2c(%rbp), %edi
movl %edi, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %edi, %edi
jmp 0x28d4
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/InnerInitiator.cpp
// Function: InnerInitiator::SocketRead(int)
void InnerInitiator::SocketRead(int sockFd)
{
    int newSockFd = accept(mSockFd, (sockaddr*)&mAddr, (socklen_t*)&mAddrLen);

    if (newSockFd > 0)
    {
        InnerRunner* pInnerRunner = new InnerRunner();
        
        if (pInnerRunner != NULL)
        {
            pInnerRunner->SetSockFd(newSockFd);
            //printf("New INNER runner socket. newSockFd %d\n", newSockFd);
        
            AddSockFdIntoSet(newSockFd);            
            gRunnerManager.AddRunner(newSockFd, pInnerRunner);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl 0xc(%rdi), %eax
leaq 0x28(%rdi), %rsi
leaq 0x38(%rdi), %rdx
movl %eax, %edi
callq 0x20d0
testl %eax, %eax
jle 0x307e
movl %eax, %ebx
movl $0x30, %edi
callq 0x2270
movq %rax, %r14
movq %rax, %rdi
callq 0x30a8
movl %ebx, 0xc(%r14)
movl %ebx, %edi
callq 0x270d
leaq 0x7df0(%rip), %rdi      # 0xae60
movl %ebx, %esi
movq %r14, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x4c80
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movl $0x30, %esi
movq %r14, %rdi
callq 0x2290
movq %rbx, %rdi
callq 0x2380
nop
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/InnerRunner.cpp
// Function: InnerRunner::SendPendingMsg()
void InnerRunner::SendPendingMsg()
{
    if (mSockFd > 0)
    {
        for (int index = 0; index < mSendMsg.size(); index++)
        {
        	char* msgPos = ((char*)(mSendMsg[index].c_str()));
        	int msgLen = mSendMsg[index].length();

        	char* msgBuf = new char[msgLen + 1];

        	memset(msgBuf, 0, msgLen + 1);
        	memcpy(msgBuf, msgPos, msgLen);

            //printf("INNER: Send message to client. mSockFd %d, length %d\n", mSockFd, msgLen);
            //PrintBuf(msgBuf, msgLen);

        	if ((gRoleType == MIDDLE) || (gRoleType == SERVER))
        	{
        		for (int index = 0; index < msgLen; index++)
        		{
        			msgBuf[index] = msgBuf[index] ^ SIMPLE_XOR_VALUE;
        		}
        	}

            int sendBytes = SockSendPacket(mSockFd, msgBuf, msgLen);

            if (sendBytes <= 0)
            {
            	delete [] msgBuf;
                ClearAll();

                return;
            }

            delete [] msgBuf;
        }

        mSendMsg.clear();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
cmpl $0x0, 0xc(%rdi)
jle 0x32d8
movq %rdi, %r12
movq 0x10(%rdi), %rax
cmpq %rax, 0x18(%rdi)
setne %cl
je 0x32b3
xorl %ebx, %ebx
movq %r12, -0x38(%rbp)
movb %cl, -0x29(%rbp)
movq %rbx, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %r12
movq 0x8(%rax,%rcx), %r14
leal 0x1(%r14), %eax
movslq %eax, %r13
movq %r13, %rdi
callq 0x2030
movq %rax, %r15
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x2180
movslq %r14d, %rdx
movq %r15, %rdi
movq %r12, %rsi
callq 0x2200
leaq 0x5fd6(%rip), %rax      # 0x91f8
movl (%rax), %eax
decl %eax
cmpl $0x1, %eax
ja 0x3247
testl %r14d, %r14d
jle 0x3247
movl %r14d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %ecx, %ecx
xorb $-0x5b, (%r15,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x323a
movq -0x38(%rbp), %r12
movl 0xc(%r12), %edi
movq %r15, %rsi
movl %r14d, %edx
callq 0x27fe
movl %eax, %r14d
movq %r15, %rdi
callq 0x2310
testl %r14d, %r14d
jg 0x3293
movq 0x28(%r12), %rdi
testq %rdi, %rdi
je 0x3284
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x28(%r12)
movq (%r12), %rax
movq %r12, %rdi
callq *0x8(%rax)
testl %r14d, %r14d
jle 0x32d2
incq %rbx
movq 0x10(%r12), %rax
movq 0x18(%r12), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rbx, %rcx
seta %cl
ja 0x31db
movq 0x10(%r12), %rsi
addq $0x10, %r12
movq %r12, %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3870
testb $0x1, -0x29(%rbp)
je 0x32b3
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/InnerRunner.cpp
// Function: InnerRunner::ClearAll()
void InnerRunner::ClearAll()
{
    //printf("Error! Clear all! SockFd %d\n", mSockFd);
    
    if (mOuterRunner != NULL)
    {
        delete mOuterRunner;
        mOuterRunner = NULL;
    }

    delete this;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %rdi
testq %rdi, %rdi
je 0x347e
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x28(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *0x8(%rax)
nop
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/Log.cpp
// Function: Log::Write(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Log::Write(string log)
{
    FILE* fp;

    fp = fopen(LOG_FILE, "a");

    if (fp != NULL)
    {
        time_t t;
        struct tm* local;
        char buf[2048];
        
        t = time(NULL);
        local = localtime(&t);

        sprintf(buf, "(%04d-%02d-%02d %02d:%02d:%02d) %s\n", (local->tm_year + 1900), (local->tm_mon + 1), local->tm_mday, local->tm_hour, local->tm_min, local->tm_sec, log.c_str());
        fputs(buf, fp);  

        printf(buf); // Also print to the screen

        fclose(fp);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movq %rsi, %r14
leaq 0x29d0(%rip), %rdi      # 0x62ae
leaq 0x29e1(%rip), %rsi      # 0x62c6
callq 0x22e0
testq %rax, %rax
je 0x3965
movq %rax, %rbx
xorl %edi, %edi
callq 0x2240
leaq -0x20(%rbp), %rdi
movq %rax, (%rdi)
callq 0x21e0
movl $0x76c, %edx            # imm = 0x76C
addl 0x14(%rax), %edx
movl 0x10(%rax), %ecx
incl %ecx
movl 0xc(%rax), %r8d
movl 0x8(%rax), %r9d
movl (%rax), %r10d
movl 0x4(%rax), %r11d
subq $0x8, %rsp
leaq 0x299c(%rip), %rsi      # 0x62c8
leaq -0x820(%rbp), %r15
movq %r15, %rdi
xorl %eax, %eax
pushq (%r14)
pushq %r10
pushq %r11
callq 0x2080
addq $0x20, %rsp
movq %r15, %rdi
movq %rbx, %rsi
callq 0x22b0
movq %r15, %rdi
xorl %eax, %eax
callq 0x2050
movq %rbx, %rdi
callq 0x2260
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/huanghuide[P]SimpleNetworkTunnel/Log.cpp
// Function: Log::Write(char*, ...)
void Log::Write(char* format, ...)
{
    char buf[2048];
    va_list args;
    
    va_start(args, format);
    vsprintf(buf, format, args);
    va_end(args);

    string bufStr(buf);
    Write(bufStr);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x910, %rsp            # imm = 0x910
leaq -0x130(%rbp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x39d9
movaps %xmm0, -0x100(%rbp)
movaps %xmm1, -0xf0(%rbp)
movaps %xmm2, -0xe0(%rbp)
movaps %xmm3, -0xd0(%rbp)
movaps %xmm4, -0xc0(%rbp)
movaps %xmm5, -0xb0(%rbp)
movaps %xmm6, -0xa0(%rbp)
movaps %xmm7, -0x90(%rbp)
leaq -0x80(%rbp), %rdx
movq %rdi, 0x10(%rdx)
leaq 0x10(%rbp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
leaq -0x930(%rbp), %rbx
movq %rbx, %rdi
callq 0x2140
leaq -0x30(%rbp), %r15
movq %r15, -0x10(%r15)
movq %rbx, %rdi
callq 0x2120
leaq (%rax,%rbp), %rdx
addq $-0x930, %rdx           # imm = 0xF6D0
leaq -0x40(%rbp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2a2c
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x3772
leaq -0x60(%rbp), %rbx
movq %rbx, %rsi
callq 0x38c4
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x3a6b
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2290
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x3a80
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2290
addq $0x910, %rsp            # imm = 0x910
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x3aa8
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2290
movq %rbx, %rdi
callq 0x2380