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

    if (node != nullptr)
    {
        while (node->right != nullptr)
        {
            node = node->right;
        }

        TranslateExpression(node->left, file);
        node = node->parent;

        while (node->type == ARG_TYPE)
        {
            fprintf(file, ", ");
            TranslateExpression(node->left, file);
            node = node->parent;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x54ce
testq %rdi, %rdi
je 0x54c3
movq %rsi, %rbx
movq %rdi, %r14
movq 0x20(%rdi), %rdi
testq %rdi, %rdi
jne 0x546f
movq 0x18(%r14), %rdi
movq %rbx, %rsi
callq 0x5031
movq 0x10(%r14), %r15
cmpl $0x5, (%r15)
jne 0x54c3
leaq 0x20b9(%rip), %r14      # 0x7551
movl $0x2, %esi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x21b0
movq 0x18(%r15), %rdi
movq %rbx, %rsi
callq 0x5031
movq 0x10(%r15), %r15
cmpl $0x5, (%r15)
je 0x5498
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x132e(%rip), %rdi      # 0x6803
leaq 0x1d58(%rip), %rsi      # 0x7234
leaq 0x2049(%rip), %rcx      # 0x752c
movl $0x12e, %edx            # imm = 0x12E
callq 0x2090
// File: /workspace/github_cpp_makefile_star2_O3/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 0x5684
movl %esi, %r13d
movq %rdi, %rbx
testl %esi, %esi
je 0x5555
js 0x557c
movl $0x0, -0x2c(%rbp)
jmp 0x55bf
leaq 0xf2d(%rip), %rdi       # 0x6489
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 0x1ff3(%rip), %rdi      # 0x7576
movl $0x17, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x21b0
movl %r13d, %r14d
negl %r14d
cmpl $-0xc, %r13d
ja 0x55b5
movl $0x28, %edi
movq %rbx, %rsi
callq 0x2120
movb $0x1, %al
movl %eax, -0x2c(%rbp)
jmp 0x55bc
movl $0x0, -0x2c(%rbp)
movl %r14d, %r13d
xorl %r14d, %r14d
leaq 0x1fc5(%rip), %r12      # 0x758e
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 0x466d(%rip), %rax      # 0x9c60
movq (%rcx,%rax), %rdi
movq %rbx, %rsi
callq 0x20f0
movq %r14, %r13
testq %r14, %r14
je 0x5621
movl $0xc, %esi
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rcx
callq 0x21b0
decq %r13
jne 0x5607
movl -0x30(%rbp), %r13d
cmpl $0xa, %r13d
jle 0x5644
movl $0x3, %esi
movl $0x1, %edx
leaq 0x1f5f(%rip), %rdi      # 0x759b
movq %rbx, %rcx
callq 0x21b0
incq %r14
cmpl $0xa, %r13d
movl %r15d, %r13d
jae 0x55c9
cmpb $0x0, -0x2c(%rbp)
je 0x5675
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 0x1178(%rip), %rdi      # 0x6803
leaq 0x1ba2(%rip), %rsi      # 0x7234
leaq 0x1ebb(%rip), %rcx      # 0x7554
movl $0x145, %edx            # imm = 0x145
callq 0x2090
// File: /workspace/github_cpp_makefile_star2_O3/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 0x8627(%rip), %rax      # 0x11a78
movq %rax, (%rdi)
movq 0x8(%rdi), %r14
testq %r14, %r14
je 0x94b4
movq (%r14), %rbx
movq 0x8(%r14), %r12
cmpq %r12, %rbx
je 0x949e
movq %rdi, %r15
movq (%rbx), %r14
testq %r14, %r14
je 0x947c
movq %r14, %rdi
callq 0x98d2
movl $0x10, %esi
movq %r14, %rdi
callq 0x42f0
addq $0x8, %rbx
cmpq %r12, %rbx
jne 0x946c
movq 0x8(%r15), %r14
testq %r14, %r14
je 0x94c0
movq (%r14), %rbx
testq %rbx, %rbx
je 0x94c3
movq 0x10(%r14), %rsi
subq %rbx, %rsi
movq %rbx, %rdi
callq 0x42f0
jmp 0x94c3
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %r14d, %r14d
movl $0x18, %esi
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x42f0
// File: /workspace/github_cpp_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rdx, 0x8(%rsp)
movq (%rsi), %rdi
callq 0x4e72
movq %rbx, %rsi
subq %rax, %rsi
movq (%r14), %rdi
callq 0x4cfe
movq (%r14), %rdi
movq 0x28(%r15), %rax
addq 0x30(%r15), %rdi
testb $0x1, %al
je 0x97f2
movq (%rdi), %rcx
movq -0x1(%rcx,%rax), %rax
callq *%rax
testb %al, %al
jne 0x981d
movq 0x8(%r14), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x9813
movq %rbx, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0x981d
leaq 0x8(%rsp), %rdx
callq 0x9af0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0xa2f9
leaq -0x2a(%rip), %rax       # 0xa20e
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 0xa3cf
leaq 0x1(,%rbx,2), %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0xa20e
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xa392
callq 0xb30e
movq 0x8(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %r12, %rdx
jbe 0xa39c
cmpq %r15, %rdx
jbe 0xa3a4
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 0xa3a1
movq %rax, (%rcx,%rbx,8)
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xa371
callq 0xafac
jmp 0xa371
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 0xa356
movq (%r14), %rax
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *0x28(%rax)
incq %r12
jmp 0xa33d
movq 0x8(%r14), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %rdx
subq %rax, %rdx
sarq $0x3, %rdx
cmpq %rbx, %rdx
jbe 0xa381
movq %r15, (%rax,%rbx,8)
movb $0x1, %al
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x1e80(%rip), %rdi      # 0xc208
movq %rbx, %rsi
xorl %eax, %eax
callq 0x4410
movl $0x3, %edi
callq 0x4090
movq %r12, %r15
jmp 0xa3a4
movq %rbx, %r15
leaq 0x1e5d(%rip), %rdi      # 0xc208
movq %r15, %rsi
xorl %eax, %eax
callq 0x4410
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0xa3c7
callq 0xafac
movq %rbx, %rdi
callq 0x44c0
// File: /workspace/github_cpp_makefile_star2_O3/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 0x38f2
movl %eax, %r14d
movl 0x4(%rbx), %eax
movl $0x4, %r15d
movl %eax, %r12d
shll $0x8, %r12d
movq 0x8(%rbx), %rdi
callq 0x38f2
movzbl %al, %eax
orl %r12d, %eax
movl %eax, 0x4(%rbx)
decl %r15d
jne 0x2492
testb %r14b, %r14b
jne 0x24b9
cmpl (%rbx), %eax
jne 0x24bd
movb $0x1, 0x10(%rbx)
testb %r14b, %r14b
sete %al
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3a64(%rip), %xmm0     # 0x6004
cmpl %r12d, 0x4(%rdi)
jae 0x25cc
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 0x260c
movss 0x3a34(%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 0x24cc
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_O3/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 0x2679
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 0x2570
movl -0x2c(%rbp), %esi
leal (%rax,%rbx,2), %ebx
movl %r13d, %ecx
shll %cl, %eax
orl %eax, %r12d
incl %r13d
cmpl %r13d, %esi
jne 0x2653
jmp 0x267c
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_O3/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 0x3912
incq 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x8, %edi
callq 0x20b0
leaq 0x27cc(%rip), %rcx      # 0x60ef
movq %rcx, (%rax)
movq 0x5693(%rip), %rsi      # 0x8fc0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2240
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3976
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 0x3968
leaq 0xa8(%rbx), %rax
xorl %ecx, %ecx
xorl %edx, %edx
movw $0x400, (%rax,%rdx,2)   # imm = 0x400
incq %rdx
cmpq $0x40, %rdx
jne 0x3981
incq %rcx
subq $-0x80, %rax
cmpq $0x4, %rcx
jne 0x397f
xorl %eax, %eax
movw $0x400, 0x2a8(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0x10, %rax
jne 0x399f
xorl %eax, %eax
movw $0x400, 0x2c8(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0x73, %rax
jne 0x39b4
xorl %eax, %eax
movw $0x400, 0x3ae(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc0, %rax
jne 0x39c9
xorl %eax, %eax
movw $0x400, 0x52e(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x39e0
xorl %eax, %eax
movw $0x400, 0x546(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x39f5
xorl %eax, %eax
movw $0x400, 0x55e(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x3a0a
xorl %eax, %eax
movw $0x400, 0x576(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc, %rax
jne 0x3a1f
xorl %eax, %eax
movw $0x400, 0x58e(%rbx,%rax,2) # imm = 0x400
incq %rax
cmpq $0xc0, %rax
jne 0x3a34
leaq 0x70e(%rbx), %rdi
callq 0x4010
addq $0xb12, %rbx            # imm = 0xB12
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x4010
// File: /workspace/github_cpp_makefile_star2_O3/blackle[P]LZMA-Vizualizer/LzmaSpec.cpp
// Function: CLzmaDecoder::DecodeLiteral(unsigned int, unsigned int)
void DecodeLiteral(unsigned state, UInt32 rep0)
  {
    unsigned prevByte = 0;
    if (!OutWindow.IsEmpty())
      prevByte = OutWindow.GetByte(1);

    unsigned symbol = 1;
    unsigned litState = ((OutWindow.TotalPos & ((1 << lp) - 1)) << lc) + (prevByte >> (8 - lc));
    CProb *probs = &LitProbs[(UInt32)0x300 * litState];

    if (state >= 7)
    {
      unsigned matchByte = OutWindow.GetByte(rep0 + 1);
      do
      {
        unsigned matchBit = (matchByte >> 7) & 1;
        matchByte <<= 1;
        unsigned bit = RangeDec.DecodeBit(&probs[((1 + matchBit) << 8) + symbol]);
        symbol = (symbol << 1) | bit;
        if (matchBit != bit)
          break;
      }
      while (symbol < 0x100);
    }
    while (symbol < 0x100)
      symbol = (symbol << 1) | RangeDec.DecodeBit(&probs[symbol]);
    OutWindow.PutByte((Byte)(symbol - 0x100));
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x20(%rdi), %edi
testl %edi, %edi
jne 0x3a8b
xorl %r8d, %r8d
testb $0x1, 0x28(%rbx)
je 0x3aa5
movq 0x18(%rbx), %rax
xorl %r8d, %r8d
movl %edi, %ecx
subl $0x1, %ecx
jae 0x3a9d
movl 0x24(%rbx), %r8d
addl %r8d, %ecx
movzbl (%rax,%rcx), %r8d
movb 0x94(%rbx), %cl
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
shll %cl, %r9d
movb 0x8c(%rbx), %cl
notl %r9d
andl 0x2c(%rbx), %r9d
shll %cl, %r9d
leaq 0x18(%rbx), %r12
movb $0x8, %al
subb %cl, %al
movl %eax, %ecx
shrl %cl, %r8d
addl %r9d, %r8d
shll $0x8, %r8d
leal (%r8,%r8,2), %r15d
addq %r15, %r15
addq 0xa0(%rbx), %r15
movl $0x1, %ecx
cmpl $0x7, %esi
jb 0x3b59
movq %r12, -0x30(%rbp)
leal 0x1(%rdx), %esi
movq 0x18(%rbx), %rax
xorl %ecx, %ecx
cmpl %esi, %edi
jae 0x3b04
movl 0x24(%rbx), %ecx
notl %edx
addl %edx, %edi
addl %ecx, %edi
movzbl (%rax,%rdi), %r14d
movl $0x1, %ecx
movl %ecx, %r13d
movl %r14d, %r12d
shrl $0x7, %r12d
andl $0x1, %r12d
movl %r12d, %eax
shll $0x8, %eax
addl %ecx, %eax
leaq (%r15,%rax,2), %rsi
addq $0x200, %rsi            # imm = 0x200
movq %rbx, %rdi
callq 0x2570
leal (%rax,%r13,2), %ecx
cmpl $0x7f, %r13d
ja 0x3b4f
addl %r14d, %r14d
cmpl %eax, %r12d
je 0x3b14
cmpl $0x7f, %r13d
movq -0x30(%rbp), %r12
ja 0x3b7b
movl %ecx, %r14d
movl %r14d, %eax
leaq (%r15,%rax,2), %rsi
movq %rbx, %rdi
callq 0x2570
leal (%rax,%r14,2), %ecx
cmpl $0x80, %r14d
movl %ecx, %r14d
jb 0x3b5c
movzbl %cl, %esi
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3c64
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3c8e
movl $0x0, 0x8(%rdi)
movb $0x1, 0x10(%rdi)
addq $0x18, %rdi
movzbl %sil, %esi
popq %rbp
jmp 0x41c6
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2570
testl %eax, %eax
je 0x3d03
leaq 0x2(%r15), %rsi
movq %rbx, %rdi
callq 0x2570
testl %eax, %eax
je 0x3d3b
addq $0x204, %r15            # imm = 0x204
movl $0x1, %r14d
movl $0x8, %r12d
movl %r14d, %eax
leaq (%r15,%rax,2), %rsi
movq %rbx, %rdi
callq 0x2570
leal (%rax,%r14,2), %r14d
decl %r12d
jne 0x3ce2
addl $0xffffff10, %r14d      # imm = 0xFFFFFF10
jmp 0x3d70
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 0x2570
leal (%rax,%r14,2), %r14d
decl %r12d
jne 0x3d1d
addl $-0x8, %r14d
jmp 0x3d70
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 0x2570
leal (%rax,%r14,2), %r14d
decl %r12d
jne 0x3d58
movl %r14d, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2570
movl %eax, %r15d
leal (%r15,%r14,2), %r14d
decl %r12d
jne 0x3db5
addl $-0x40, %r14d
cmpl $0x4, %r14d
jb 0x3ea8
movl %r14d, %esi
shrl %esi
leal -0x1(%rsi), %r12d
orl $0x2, %r15d
movl %r12d, %ecx
shll %cl, %r15d
cmpl $0xd, %r14d
movq %r13, -0x38(%rbp)
ja 0x3e53
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)
xorl %r13d, %r13d
movl $0x1, %ebx
xorl %r14d, %r14d
movl %ebx, %eax
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rsi
movq -0x38(%rbp), %rdi
callq 0x2570
leal (%rax,%rbx,2), %ebx
movl %r13d, %ecx
shll %cl, %eax
orl %eax, %r14d
incl %r13d
cmpl %r13d, %r12d
jne 0x3e28
addl %r15d, %r14d
jmp 0x3ea8
addl $-0x5, %esi
movq %r13, %rdi
callq 0x2504
movl %eax, %r14d
shll $0x4, %r14d
leaq 0x2a8(%r13), %rax
movq %rax, -0x30(%rbp)
xorl %r12d, %r12d
movl $0x1, %ebx
xorl %r13d, %r13d
movl %ebx, %eax
movq -0x30(%rbp), %rcx
leaq (%rcx,%rax,2), %rsi
movq -0x38(%rbp), %rdi
callq 0x2570
leal (%rax,%rbx,2), %ebx
movl %r12d, %ecx
shll %cl, %eax
orl %eax, %r13d
incl %r12d
cmpl $0x4, %r12d
jne 0x3e7b
addl %r15d, %r14d
addl %r13d, %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_O3/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
movb (%rsi), %cl
cmpb $-0x1f, %cl
jae 0x3f99
movzbl %cl, %edx
imull $0x39, %edx, %eax
shrl $0x9, %eax
leal (%rax,%rax,8), %r8d
movl %ecx, %r9d
subb %r8b, %r9b
movzbl %r9b, %r8d
movl %r8d, 0x8c(%rdi)
imull $0x6d, %edx, %edx
shrl $0x8, %edx
subb %dl, %cl
shrb %cl
addb %dl, %cl
shrb $0x5, %cl
movzbl %cl, %ecx
movl %ecx, 0x90(%rdi)
imull $0x34, %eax, %ecx
movzbl %ch, %ecx
leal (%rcx,%rcx,4), %ecx
subb %cl, %al
movzbl %al, %eax
movl %eax, 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 0x3f6a
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 0x226d(%rip), %rcx      # 0x6217
movq %rcx, (%rax)
movq 0x500c(%rip), %rsi      # 0x8fc0
movq %rax, %rdi
xorl %edx, %edx
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4018
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 0x4040
xorl %edx, %edx
movw $0x400, (%rdi,%rdx,2)   # imm = 0x400
incq %rdx
cmpq $0x8, %rdx
jne 0x4051
incq %rcx
addq $0x10, %rax
addq $0x10, %rdi
cmpq $0x10, %rcx
jne 0x403e
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
movq 0x8(%rdi), %rsi
cmpq %rax, %rsi
je 0x434f
movq %rax, 0x8(%rbx)
movq %rax, %rsi
xorps %xmm0, %xmm0
movaps %xmm0, -0x20(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x436d
movups %xmm0, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x437d
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
movq 0x8(%rbx), %rsi
movaps 0x1c9c(%rip), %xmm0     # 0x6020
movups %xmm0, -0x20(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x43a3
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x43b3
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
movq 0x8(%rbx), %rsi
movaps 0x1c76(%rip), %xmm0     # 0x6030
movups %xmm0, -0x20(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x43d9
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x43e9
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
movq 0x8(%rbx), %rsi
movaps 0x1c50(%rip), %xmm0     # 0x6040
movups %xmm0, -0x20(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x440f
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x441f
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
movq 0x8(%rbx), %rsi
movaps 0x1c2a(%rip), %xmm0     # 0x6050
movups %xmm0, -0x20(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x443e
movups -0x20(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x444a
leaq -0x20(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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
movq 0x8(%rdi), %rsi
cmpq %rax, %rsi
je 0x4471
movq %rax, 0x8(%rbx)
movq %rax, %rsi
movaps 0x1be8(%rip), %xmm0     # 0x6060
movups %xmm0, -0x18(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x4497
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x44a7
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
movq 0x8(%rbx), %rsi
movaps 0x1bc2(%rip), %xmm0     # 0x6070
movups %xmm0, -0x18(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x44cd
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x44dd
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
movq 0x8(%rbx), %rsi
movaps 0x1b9c(%rip), %xmm0     # 0x6080
movups %xmm0, -0x18(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x4503
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rbx), %rsi
addq $0x10, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x4513
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
movq 0x8(%rbx), %rsi
movaps 0x1b76(%rip), %xmm0     # 0x6090
movups %xmm0, -0x18(%rbp)
cmpq 0x10(%rbx), %rsi
je 0x4532
movups -0x18(%rbp), %xmm0
movups %xmm0, (%rsi)
addq $0x10, 0x8(%rbx)
jmp 0x453e
leaq -0x18(%rbp), %rdx
movq %rbx, %rdi
callq 0x48a0
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x4632
cvtsi2ss %r14d, %xmm0
movss %xmm0, -0x2c(%rbp)
xorl %r12d, %r12d
leaq -0x58(%rbp), %r13
leaq 0x1ca8(%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 0x49ee
movss -0x38(%rbp), %xmm0
movss 0x1a55(%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 0x4ad2
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 0x4626
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2170
incl %r12d
cmpl %r12d, %r14d
jne 0x4591
leaq -0x1d8(%rbp), %rdi
leaq 0x1c0d(%rip), %rsi      # 0x624d
movl $0x4, %edx
callq 0x2180
movq -0x60(%rbp), %rbx
leaq -0x1d0(%rbp), %rsi
movq %rbx, %rdi
callq 0x2200
movq 0x494c(%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 0x4695
jmp 0x4695
movq %rax, %rbx
jmp 0x46b6
movq %rax, %rbx
movq -0x58(%rbp), %rdi
leaq -0x48(%rbp), %rax
cmpq %rax, %rdi
je 0x46b6
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2170
movq 0x48f3(%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_O3/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 0x49ee
leaq -0x1f8(%rbp), %rdi
callq 0x20f0
movss 0x18f0(%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 0x4be9
leaq -0x1e8(%rbp), %rdi
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
callq 0x2180
movq %rax, %r14
movss 0x1894(%rip), %xmm0     # 0x6008
movaps %xmm0, %xmm1
subss -0x2c(%rbp), %xmm1
movaps %xmm0, %xmm2
subss -0x28(%rbp), %xmm2
subss -0x24(%rbp), %xmm0
movss 0x1883(%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 0x4ad2
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 0x47db
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x47f4
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
leaq -0x1e0(%rbp), %rsi
movq %rbx, %rdi
callq 0x2200
movq 0x47a6(%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 0x4875
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x485a
movq -0x40(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x485a
jmp 0x4857
movq %rax, %rbx
leaq -0x60(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4878
movq -0x60(%rbp), %rsi
incq %rsi
callq 0x2170
jmp 0x4878
movq %rax, %rbx
movq 0x4731(%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_O3/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, -0x2c(%rbp)
testl %edi, %edi
setle %al
movq %rsi, -0x38(%rbp)
testq %rsi, %rsi
sete %cl
testl %edx, %edx
setle %dl
orb %al, %dl
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
orb %cl, %dl
jne 0x28d5
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
movl %ecx, -0x30(%rbp)
movl %r12d, %r13d
addq -0x38(%rbp), %r13
movl %ebx, %ebx
movl -0x2c(%rbp), %edi
movq %r13, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2150
testl %eax, %eax
jns 0x28a3
movl $0x6, %r15d
callq 0x2040
movq %rax, %r14
movl (%r14), %edx
cmpl $0x4, %edx
je 0x2880
cmpl $0x73, %edx
je 0x2880
cmpl $0xb, %edx
jne 0x28bc
decl %r15d
je 0x28b3
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2330
movl -0x2c(%rbp), %edi
movq %r13, %rsi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2150
testl %eax, %eax
js 0x286e
testl %eax, %eax
je 0x28e7
addl %eax, %r12d
movl %r12d, %ecx
subl %eax, %ebx
jg 0x2840
jmp 0x28d5
leaq 0x3759(%rip), %rsi      # 0x6013
jmp 0x28c3
leaq 0x3787(%rip), %rsi      # 0x604a
leaq 0x858e(%rip), %rdi      # 0xae58
xorl %eax, %eax
callq 0x392c
movl -0x30(%rbp), %r12d
movl %r12d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r12d, %r12d
jmp 0x28d5
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3084
movl %eax, %ebx
movl $0x30, %edi
callq 0x2270
movq %rax, %r14
movq %rax, %rdi
callq 0x30b0
movl %ebx, 0xc(%r14)
movl %ebx, %edi
callq 0x270d
leaq 0x7dea(%rip), %rdi      # 0xae60
movl %ebx, %esi
movq %r14, %rdx
popq %rbx
popq %r14
popq %rbp
jmp 0x4bdc
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_O3/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
pushq %rax
cmpl $0x0, 0xc(%rdi)
jle 0x32a1
movq %rdi, %r12
movq 0x10(%rdi), %rsi
cmpq %rsi, 0x18(%rdi)
je 0x3287
xorl %ebx, %ebx
movq %r12, -0x30(%rbp)
movq %rbx, %rax
shlq $0x5, %rax
movq (%rsi,%rax), %r12
movq 0x8(%rsi,%rax), %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 0x5fd7(%rip), %rax      # 0x91f8
movl (%rax), %eax
decl %eax
cmpl $0x1, %eax
ja 0x3246
testl %r14d, %r14d
jle 0x3246
movl %r14d, %eax
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
xorl %ecx, %ecx
xorb $-0x5b, (%r15,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x3239
movq -0x30(%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
jle 0x32b0
incq %rbx
movq 0x10(%r12), %rsi
movq 0x18(%r12), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rbx, %rax
ja 0x31dd
addq $0x10, %r12
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3828
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28(%r12), %rdi
testq %rdi, %rdi
je 0x32c9
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x28(%r12)
movq (%r12), %rax
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *0x8(%rax)
nop
// File: /workspace/github_cpp_makefile_star2_O3/huanghuide[P]SimpleNetworkTunnel/InnerRunner.cpp
// Function: InnerRunner::SocketRead(int)
void InnerRunner::SocketRead(int sockFd)
{
    bool successFlag = false;

    char buf[MSG_LEN];
    int recvLen = 0;

    while (true)
    {
        recvLen = recv(mSockFd, buf, MSG_LEN, 0);

        if (recvLen > 0)
        {
            if (mOuterRunner == NULL)
            {
                mOuterRunner = new OuterRunner(this);
            }

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

            //printf("INNER: Receive message from client. SockFd %d, length %d\n", mSockFd, recvLen);
            //PrintBuf(buf, recvLen);
            
            ProcessDataMessage(buf, recvLen);
            successFlag = true;

            break;
        }
        else if (recvLen == 0)
        {
            // socket is closed normally
            successFlag = false;
            
            break;
        }
        else
        {
            if ((errno == EWOULDBLOCK) || (errno == EINTR) || (errno == EINPROGRESS)) 
            {
                usleep(1000);
                continue;
            }
            else 
            {
                gLog.Write("InnerRunner::SocketRead: socket closed abnormally. errno %d\n", errno);
                successFlag = false;
                
                break;
            }
        }
    }

    if (!successFlag)
    {
        ClearAll();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x808, %rsp            # imm = 0x808
movq %rdi, %rbx
movl 0xc(%rdi), %edi
leaq -0x820(%rbp), %rsi
movl $0x800, %edx            # imm = 0x800
xorl %ecx, %ecx
callq 0x20e0
movq %rax, %r14
testl %r14d, %r14d
jg 0x3361
leaq -0x820(%rbp), %r15
testl %r14d, %r14d
je 0x33d4
callq 0x2040
movl (%rax), %edx
cmpl $0x4, %edx
je 0x333d
cmpl $0x73, %edx
je 0x333d
cmpl $0xb, %edx
jne 0x33bf
movl $0x3e8, %edi            # imm = 0x3E8
callq 0x2330
movl 0xc(%rbx), %edi
movl $0x800, %edx            # imm = 0x800
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x20e0
movq %rax, %r14
testl %r14d, %r14d
jle 0x331a
movq 0x28(%rbx), %r15
testq %r15, %r15
jne 0x3386
movl $0x60, %edi
callq 0x2270
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x418c
movq %r15, 0x28(%rbx)
leaq 0x5e6b(%rip), %rax      # 0x91f8
movl (%rax), %eax
decl %eax
cmpl $0x1, %eax
ja 0x33ab
movl %r14d, %eax
xorl %ecx, %ecx
xorb $-0x5b, -0x820(%rbp,%rcx)
incq %rcx
cmpq %rcx, %rax
jne 0x339b
leaq -0x820(%rbp), %rsi
movq %r15, %rdi
movl %r14d, %edx
callq 0x45d2
jmp 0x33f4
leaq 0x7a92(%rip), %rdi      # 0xae58
leaq 0x2e7c(%rip), %rsi      # 0x6249
xorl %eax, %eax
callq 0x392c
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x33eb
movq (%rdi), %rax
callq *0x8(%rax)
movq $0x0, 0x28(%rbx)
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x8(%rax)
addq $0x808, %rsp            # imm = 0x808
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x60, %esi
movq %r15, %rdi
callq 0x2290
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O3/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 0x345a
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_O3/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 0x2a18(%rip), %rdi      # 0x62ae
leaq 0x2a29(%rip), %rsi      # 0x62c6
callq 0x22e0
testq %rax, %rax
je 0x391d
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 0x29e4(%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_O3/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 0x3991
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 0x2a2e
leaq -0x50(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x60(%rbp), %rdi
callq 0x3726
leaq -0x60(%rbp), %rbx
movq %rbx, %rsi
callq 0x387c
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x3a23
movq -0x50(%rbp), %rsi
incq %rsi
callq 0x2290
movq -0x40(%rbp), %rdi
cmpq %r15, %rdi
je 0x3a38
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 0x3a60
movq -0x30(%rbp), %rsi
incq %rsi
callq 0x2290
movq %rbx, %rdi
callq 0x2380