LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/murry2018[P]mogazi/kakaotalk_chat.cpp
// Function: kakaotalk::chat::chat(std::istream&)
chat::chat(istream& in) {
    if (in) {
      string s;
      int c;
      while (in && (c = in.get()) != '\r')
        s.push_back(c);
      c = in.get(); // eliminate '\n'
      if (!(c == '\n' || c == EOF))
        throw runtime_error("Unexpected File Format");
      full_content = s;
      analyse();
    } else {
      throw domain_error("End of File");
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, -0x38(%rbp)
movq %rax, (%rdi)
xorl %eax, %eax
movq %rax, 0x8(%rdi)
movb %al, 0x10(%rdi)
leaq 0x38(%rdi), %rcx
movq %rcx, -0x30(%rbp)
movq %rcx, 0x28(%rdi)
movq %rax, 0x30(%rdi)
movb %al, 0x38(%rdi)
leaq 0x58(%rdi), %r12
movq %r12, 0x48(%rdi)
movq %rax, 0x50(%rdi)
movb %al, 0x58(%rdi)
movq (%rsi), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%rsi,%rax)
jne 0x6203
movq %rsi, %r14
leaq -0x48(%rbp), %r13
movq %r13, -0x10(%r13)
movq $0x0, -0x8(%r13)
movb $0x0, (%r13)
leaq -0x58(%rbp), %r15
movq (%r14), %rax
movq -0x18(%rax), %rax
testb $0x5, 0x20(%r14,%rax)
jne 0x61b9
movq %r14, %rdi
callq 0x4390
cmpl $0xd, %eax
je 0x61b9
movsbl %al, %esi
movq %r15, %rdi
callq 0x42a0
jmp 0x6190
movq %r14, %rdi
callq 0x4390
cmpl $-0x1, %eax
je 0x61cb
cmpl $0xa, %eax
jne 0x6237
leaq -0x58(%rbp), %rsi
movq %rbx, %rdi
callq 0x41b0
movq %rbx, %rdi
callq 0x62f0
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x61f4
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42f0
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x4170
movq %rax, %r15
leaq 0xffc8(%rip), %rsi      # 0x161df
movq %rax, %rdi
callq 0x4200
movq 0x18d52(%rip), %rsi     # 0x1ef78
movq 0x18d63(%rip), %rdx     # 0x1ef90
movq %r15, %rdi
callq 0x4480
jmp 0x6269
movl $0x10, %edi
callq 0x4170
movq %rax, %r15
leaq 0xff7d(%rip), %rsi      # 0x161c8
movq %rax, %rdi
callq 0x4110
movq 0x18d96(%rip), %rsi     # 0x1eff0
movq 0x18d3f(%rip), %rdx     # 0x1efa0
movq %r15, %rdi
callq 0x4480
movq %rax, %r14
movq %r15, %rdi
callq 0x4270
jmp 0x628d
movq %rax, %r14
jmp 0x62a2
movq %rax, %r14
movq %r15, %rdi
callq 0x4270
jmp 0x62a2
jmp 0x628a
movq %rax, %r14
movq -0x58(%rbp), %rdi
cmpq %r13, %rdi
je 0x62a2
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x42f0
movq 0x48(%rbx), %rdi
cmpq %r12, %rdi
je 0x62b7
movq (%r12), %rsi
incq %rsi
callq 0x42f0
movq 0x28(%rbx), %rdi
cmpq -0x30(%rbp), %rdi
je 0x62d0
movq -0x30(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x42f0
movq (%rbx), %rdi
cmpq -0x38(%rbp), %rdi
je 0x62e8
movq -0x38(%rbp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x42f0
movq %r14, %rdi
callq 0x44a0
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/entropy.cpp
// Function: Entropy::estimate() const
double Entropy::estimate() const 
{
    double HEsti = 0;
    int symbolnumber = 0;
    for ( const auto & pair : fin )
    {
        int N = pair.first;
        symbolnumber += pair.second;
        if ( N > N_thr) // plug-in
        {
            double x = (double)N / (double)n;
            HEsti += (-x*log(x)+0.5/n) * (pair.second);
        }
        else // polynomial
        {
            HEsti += getCoeff(N) * (pair.second);
        }
    }
    HEsti += 1.0*getCoeff(0) * (k-symbolnumber);
    
    HEsti = (HEsti > 0)? HEsti:0;
    // HEsti = (HEsti < log(k))?HEsti:log(k);

    return HEsti/log(2); // return the estimated entropy (bits)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %r14
movq 0x30(%rdi), %r15
xorl %ebp, %ebp
xorpd %xmm0, %xmm0
cmpq %r15, %r14
je 0x24e6
movsd %xmm0, 0x8(%rsp)
movl (%r14), %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
addl 0x4(%r14), %ebp
ucomisd 0x8(%rbx), %xmm0
jbe 0x24b6
xorps %xmm1, %xmm1
cvtsi2sdl 0x1c(%rbx), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
callq 0x2150
movapd %xmm0, %xmm1
xorps %xmm2, %xmm2
cvtsi2sdl 0x1c(%rbx), %xmm2
movsd 0x1b62(%rip), %xmm0     # 0x4008
divsd %xmm2, %xmm0
mulsd 0x10(%rsp), %xmm1
subsd %xmm1, %xmm0
jmp 0x24be
movq %rbx, %rdi
callq 0x2528
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%r14), %xmm1
mulsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
addq $0x8, %r14
cmpq %r15, %r14
jne 0x2466
jmp 0x24ec
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x2528
movl 0x20(%rbx), %eax
subl %ebp, %eax
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
mulsd %xmm1, %xmm0
addsd 0x8(%rsp), %xmm0
maxsd 0x1b04(%rip), %xmm0     # 0x4018
divsd 0x1af4(%rip), %xmm0     # 0x4010
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/entropy.cpp
// Function: Entropy::getCoeff(int) const
double Entropy::getCoeff( int N ) const
{
    if ( N < 0 )
    {
        std::cerr<<"Compute g(N) for negative N!!"<<std::endl;
        exit(1);
    }
    int L0 = ( N > L )? L:N;
    double gL = a[L0];
    for (int i = L0; i>0; i--) 
        gL = a[i-1] + gL * (N-i+1) / Ratio;
    gL = (gL * Ratio + log(n/Ratio) * N)/n;
    return gL;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
testl %esi, %esi
js 0x25dd
movl %esi, %ebp
movq %rdi, %rbx
movl 0x18(%rdi), %esi
cmpl %ebp, %esi
cmovgel %ebp, %esi
movslq %esi, %rcx
movq 0x40(%rdi), %rax
movsd (%rax,%rcx,8), %xmm1
testl %ecx, %ecx
jle 0x2589
movsd 0x10(%rbx), %xmm0
movl %esi, %ecx
incq %rcx
movl %ebp, %edx
subl %esi, %edx
incl %edx
xorps %xmm2, %xmm2
cvtsi2sd %edx, %xmm2
mulsd %xmm1, %xmm2
divsd %xmm0, %xmm2
addsd -0x10(%rax,%rcx,8), %xmm2
decq %rcx
incl %edx
movapd %xmm2, %xmm1
cmpq $0x1, %rcx
jg 0x2563
jmp 0x258d
movapd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
movsd 0x10(%rbx), %xmm1
movsd %xmm1, 0x10(%rsp)
xorps %xmm0, %xmm0
cvtsi2sdl 0x1c(%rbx), %xmm0
divsd %xmm1, %xmm0
callq 0x2150
xorps %xmm1, %xmm1
cvtsi2sd %ebp, %xmm1
mulsd %xmm1, %xmm0
movsd 0x8(%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x1c(%rbx), %xmm1
divsd %xmm1, %xmm0
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
movq 0x3a0c(%rip), %rdi      # 0x5ff0
leaq 0x1a3d(%rip), %rsi      # 0x4028
callq 0x2180
movq %rax, %rdi
callq 0x20c0
movl $0x1, %edi
callq 0x21f0
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/entropy.cpp
// Function: Entropy::estimate_Miller_Madow() const
double Entropy::estimate_Miller_Madow() const
{
    double HEsti = 0;
    int symbolnumber = 0;
    for ( const auto & pair : fin )
    {
        int N = pair.first;
        symbolnumber += pair.second;
        if ( N>0 )
        {
            double x = (double)N / (double)n;
            HEsti += (-x*log(x)) * (pair.second);
        }
    }
    return (HEsti+1.0*(symbolnumber-1)/n/2)/log(2); // return the bias-corrected empirical entropy (bits)
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %r14
movq 0x30(%rdi), %r15
cmpq %r15, %r14
je 0x2732
xorl %ebp, %ebp
xorpd %xmm2, %xmm2
movl (%r14), %eax
addl 0x4(%r14), %ebp
testl %eax, %eax
jle 0x271e
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x1c(%rbx), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
movsd %xmm2, 0x10(%rsp)
callq 0x2150
movsd 0x10(%rsp), %xmm2
mulsd 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x4(%r14), %xmm1
mulsd %xmm0, %xmm1
subsd %xmm1, %xmm2
addq $0x8, %r14
cmpq %r15, %r14
jne 0x26d2
decl %ebp
xorps %xmm0, %xmm0
cvtsi2sd %ebp, %xmm0
jmp 0x273e
xorpd %xmm2, %xmm2
movsd 0x18e2(%rip), %xmm0     # 0x4020
xorps %xmm1, %xmm1
cvtsi2sdl 0x1c(%rbx), %xmm1
divsd %xmm1, %xmm0
mulsd 0x18b6(%rip), %xmm0     # 0x4008
addsd %xmm2, %xmm0
divsd 0x18b2(%rip), %xmm0     # 0x4010
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/entropy.cpp
// Function: Entropy::setFin(std::shared_ptr<std::map<int, int, std::less<int>, std::allocator<std::pair<int const, int>>> const>)
void Entropy::setFin(std::shared_ptr< const std::map<int, int> > ptr_fin_map) 
{
    fin.clear();
    n = 0;
    for ( auto it = ptr_fin_map->begin(); it != ptr_fin_map->end(); ++it )
    {
        int freq = it->first, cnt = it->second;
        fin.push_back( std::make_pair( freq, cnt ) );
        n += (freq * cnt);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2811
movq %rax, 0x30(%r14)
movl $0x0, 0x1c(%r14)
movq (%rbx), %rax
movq 0x18(%rax), %r15
addq $0x8, %rax
cmpq %rax, %r15
je 0x286d
leaq 0x28(%r14), %r12
movl 0x20(%r15), %ebp
movl 0x24(%r15), %r13d
movq %r13, %rax
shlq $0x20, %rax
orq %rbp, %rax
movq %rax, (%rsp)
movq %r12, %rdi
movq %rsp, %rsi
callq 0x2f24
imull %ebp, %r13d
addl %r13d, 0x1c(%r14)
movq %r15, %rdi
callq 0x21e0
movq %rax, %r15
movq (%rbx), %rax
addq $0x8, %rax
cmpq %rax, %r15
jne 0x282d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/entropy.cpp
// Function: Entropy::setHist(std::vector<int, std::allocator<int>> const&)
void Entropy::setHist( const std::vector<int> &hist )
{
    fin.clear();
    n = 0;
    
    std::map<int, int> fin_map;
    for ( const auto & freq : hist )
    {
        auto iter = fin_map.find( freq );
        if ( iter == fin_map.end() )
            fin_map.insert( std::make_pair( freq,1 ) );
        else
            ++(iter->second);
    }
    
    for ( auto it = fin_map.begin(); it != fin_map.end(); ++it )
    {
        int freq = it->first, cnt = it->second;
        fin.push_back( std::make_pair( freq, cnt ) );
        n += (freq * cnt);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq %rax, 0x30(%rdi)
je 0x2a29
movq %rax, 0x30(%rbx)
xorl %eax, %eax
movl %eax, 0x1c(%rbx)
leaq 0x10(%rsp), %r13
movl %eax, (%r13)
movq %rax, 0x8(%r13)
movq %r13, 0x10(%r13)
movq %r13, 0x18(%r13)
movq %rax, 0x20(%r13)
movq (%rsi), %r12
movq 0x8(%rsi), %rbp
cmpq %rbp, %r12
je 0x2ac7
leaq 0x8(%rsp), %r14
movq %rsp, %r15
movq 0x18(%rsp), %rcx
movq %r13, %rax
testq %rcx, %rcx
je 0x2a86
movl (%r12), %edx
movq %r13, %rax
xorl %esi, %esi
cmpl %edx, 0x20(%rcx)
setl %sil
cmovgeq %rcx, %rax
movq 0x10(%rcx,%rsi,8), %rcx
testq %rcx, %rcx
jne 0x2a6f
movq %r13, %rcx
cmpq %r13, %rax
je 0x2a9c
movl (%r12), %ecx
cmpl 0x20(%rax), %ecx
cmovlq %r13, %rax
movq %rax, %rcx
cmpq %r13, %rcx
je 0x2aa6
incl 0x24(%rcx)
jmp 0x2abe
movl (%r12), %eax
btsq $0x20, %rax
movq %rax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x309a
addq $0x4, %r12
cmpq %rbp, %r12
jne 0x2a5b
movq 0x20(%rsp), %r14
cmpq %r13, %r14
je 0x2b14
leaq 0x28(%rbx), %r15
movq %rbx, %r12
movl 0x20(%r14), %ebp
movl 0x24(%r14), %ebx
movq %rbx, %rax
shlq $0x20, %rax
orq %rbp, %rax
movq %rax, (%rsp)
movq %r15, %rdi
movq %rsp, %rsi
callq 0x2f24
imull %ebp, %ebx
addl %ebx, 0x1c(%r12)
movq %r12, %rbx
movq %r14, %rdi
callq 0x2120
movq %rax, %r14
cmpq %r13, %rax
jne 0x2ad5
leaq 0x8(%rsp), %rdi
callq 0x2ed4
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b2f
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x2ed4
movq %rbx, %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/entropy.cpp
// Function: Entropy::setDegree(int)
void Entropy::setDegree( int deg )
{
    L = deg;
    a.clear();
    
    std::fstream fd_coeffs("coeffs.txt");
    // ignore the first L-1 lines
    fd_coeffs.seekg(std::ios::beg);
    for( int i = 0; i < L-1; ++i )
        fd_coeffs.ignore(std::numeric_limits<std::streamsize>::max(),'\n');
    // Read line L
    int test_L;
    fd_coeffs >> test_L;
    if ( L != test_L )
    {
        std::cerr<<"Read the wrong line!!"<<std::endl;
        exit(1);
    }
    double coeff;
    for (int i = 0; i <= L; i++)
    {
        fd_coeffs >> coeff;
        a.push_back(coeff);
    }
    fd_coeffs.close();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x220, %rsp            # imm = 0x220
movq %rdi, %rbx
movl %esi, 0x18(%rdi)
movq 0x40(%rdi), %rax
cmpq %rax, 0x48(%rdi)
je 0x2d0b
movq %rax, 0x48(%rbx)
leaq 0x1334(%rip), %rsi      # 0x4046
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movl $0x18, %edx
callq 0x2210
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2200
cmpl $0x2, 0x18(%rbx)
jl 0x2d62
xorl %ebp, %ebp
leaq 0x10(%rsp), %r14
movabsq $0x7fffffffffffffff, %r15 # imm = 0x7FFFFFFFFFFFFFFF
movq %r14, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x2100
incl %ebp
movl 0x18(%rbx), %eax
decl %eax
cmpl %eax, %ebp
jl 0x2d47
leaq 0x10(%rsp), %rdi
leaq 0x4(%rsp), %rsi
callq 0x20e0
movl 0x18(%rbx), %eax
cmpl 0x4(%rsp), %eax
jne 0x2df2
cmpl $0x0, 0x18(%rbx)
js 0x2dce
leaq 0x40(%rbx), %r14
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
leaq 0x10(%rsp), %r15
leaq 0x8(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x2110
movq 0x48(%rbx), %rsi
cmpq 0x50(%rbx), %rsi
je 0x2dbc
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x48(%rbx)
jmp 0x2dc7
movq %r14, %rdi
movq %r12, %rdx
callq 0x31e0
incl %ebp
cmpl 0x18(%rbx), %ebp
jl 0x2d93
leaq 0x10(%rsp), %rdi
callq 0x2040
leaq 0x10(%rsp), %rdi
callq 0x2070
addq $0x220, %rsp            # imm = 0x220
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x31f7(%rip), %rdi      # 0x5ff0
leaq 0x1251(%rip), %rsi      # 0x4051
movl $0x15, %edx
callq 0x21d0
movq 0x31df(%rip), %rdi      # 0x5ff0
callq 0x20c0
movl $0x1, %edi
callq 0x21f0
jmp 0x2e28
jmp 0x2e28
jmp 0x2e28
jmp 0x2e28
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2070
movq %rbx, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/main_test.cpp
// Function: print_param(Entropy const&)
void print_param(const Entropy &entropy)
{
    printf("Parameters:\n");
    printf("Alphabet size\t\t=%d\n", entropy.getAlphabetSize());
    printf("Polynoimal degree\t=%d\n", entropy.getDegree());
    printf("Approximation interval\t=[0,%.2f/n]\n", entropy.getInterval());
    printf("Plug-in threshold\t=%d\n",(int)floor(entropy.getThreshold())+1);
    printf("\n");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xa88(%rip), %rdi       # 0x418f
callq 0x2250
movl 0x20(%rbx), %esi
leaq 0x993(%rip), %rdi       # 0x40a9
xorl %eax, %eax
callq 0x2030
movl 0x18(%rbx), %esi
leaq 0x996(%rip), %rdi       # 0x40bd
xorl %eax, %eax
callq 0x2030
movsd 0x10(%rbx), %xmm0
leaq 0x99a(%rip), %rdi       # 0x40d4
movb $0x1, %al
callq 0x2030
movsd 0x8(%rbx), %xmm0
callq 0x2280
cvttsd2si %xmm0, %esi
incl %esi
leaq 0x9a0(%rip), %rdi       # 0x40f8
xorl %eax, %eax
callq 0x2030
movl $0xa, %edi
popq %rbx
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/Albuso0[P]entropy/main_test.cpp
// Function: print_results(Entropy const&)
void print_results(const Entropy &entropy)
{
    printf("Results:\n");
    printf("Sample size\t=%d\n",entropy.getSampleSize());
    printf("Plug in\t\t=%.6f bits\n",entropy.estimate_plug());
    printf("Miller Madow\t=%.6f bits\n",entropy.estimate_Miller_Madow());
    printf("Polynomial\t=%.6f bits\n",entropy.estimate());
    printf("\n");
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xa26(%rip), %rdi       # 0x419b
callq 0x2250
movl 0x1c(%rbx), %esi
leaq 0x98b(%rip), %rdi       # 0x410f
xorl %eax, %eax
callq 0x2030
movq %rbx, %rdi
callq 0x276a
leaq 0x986(%rip), %rdi       # 0x4120
movb $0x1, %al
callq 0x2030
movq %rbx, %rdi
callq 0x26b2
leaq 0x985(%rip), %rdi       # 0x4135
movb $0x1, %al
callq 0x2030
movq %rbx, %rdi
callq 0x243c
leaq 0x988(%rip), %rdi       # 0x414e
movb $0x1, %al
callq 0x2030
movl $0xa, %edi
popq %rbx
jmp 0x2220
// File: /workspace/github_cpp_makefile_star2_O1/st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: srv_open()
static int srv_open()
{
   struct sockaddr_in sin;

   srv_sock = socket(PF_INET,SOCK_DGRAM,0);
   if (srv_sock == -1)
   {
      traceit("Failed to create server socket,errno=%d\n",errno);
      return 1;
   }
   memset(&sin,0,sizeof(struct sockaddr_in));
   sin.sin_family = AF_INET;
   sin.sin_port = htons(LISTEN_PORT);
   sin.sin_addr.s_addr = inet_addr(LISTEN_IP);

   if (bind(srv_sock,(struct sockaddr *)&sin,sizeof(struct sockaddr_in)) != 0)
   {
      traceit("Failed to bind server socket on IP %s, port %d, errno=%d\n",
              LISTEN_IP, LISTEN_PORT,errno);
      close(srv_sock); srv_sock = -1;
      return 1;
   }
   fcntl(srv_sock,F_SETFL,O_NONBLOCK); 

   return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl $0x2, %edi
movl $0x2, %esi
xorl %edx, %edx
callq 0x20b0
movl %eax, 0xdc66(%rip)      # 0x11238
cmpl $-0x1, %eax
je 0x3655
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movw $0x2, (%rbx)
movzwl 0xdc58(%rip), %eax      # 0x11244
rolw $0x8, %ax
movw %ax, 0x2(%rbx)
leaq 0x11505(%rip), %rdi     # 0x14b00
callq 0x2220
movl %eax, 0x4(%rbx)
movl 0xdc2f(%rip), %edi      # 0x11238
movq %rbx, %rsi
movl $0x10, %edx
callq 0x2080
testl %eax, %eax
je 0x3671
movl 0xdc24(%rip), %ebx      # 0x11244
callq 0x2050
movl (%rax), %ecx
leaq 0x8f83(%rip), %rdi      # 0xc5b1
leaq 0x114cb(%rip), %rsi     # 0x14b00
movl %ebx, %edx
xorl %eax, %eax
callq 0x26fc
movl 0xdbf4(%rip), %edi      # 0x11238
callq 0x2440
movl $0xffffffff, 0xdbe5(%rip) # imm = 0xFFFFFFFF
jmp 0x366a
callq 0x2050
movl (%rax), %esi
leaq 0x8f25(%rip), %rdi      # 0xc588
xorl %eax, %eax
callq 0x26fc
movl $0x1, %ebx
jmp 0x368a
movl 0xdbc1(%rip), %edi      # 0x11238
xorl %ebx, %ebx
movl $0x4, %esi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x2150
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: cmd_open()
static int cmd_open()
{
   struct sockaddr_in sin;

   cmd_sock = socket(PF_INET,SOCK_DGRAM,0);
   if (cmd_sock == -1)
   {
      traceit("Failed to create cmd socket,errno=%d\n",errno);
      return 1;
   }
   memset(&sin,0,sizeof(struct sockaddr_in));
   sin.sin_family = AF_INET;
   sin.sin_port = htons(COMMAND_PORT);
   sin.sin_addr.s_addr = inet_addr(LISTEN_IP);

   if (bind(cmd_sock,(struct sockaddr *)&sin,sizeof(struct sockaddr_in)) != 0)
   {
      traceit("Failed to bind cmd socket on IP %s, port %d, errno=%d\n",
              LISTEN_IP, COMMAND_PORT,errno);
      close(cmd_sock); cmd_sock = -1;
      return 1;
   }
   fcntl(cmd_sock,F_SETFL,O_NONBLOCK);

   return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl $0x2, %edi
movl $0x2, %esi
xorl %edx, %edx
callq 0x20b0
movl %eax, 0xdb8e(%rip)      # 0x1123c
cmpl $-0x1, %eax
je 0x3731
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movw $0x2, (%rbx)
movzwl 0xdb80(%rip), %eax      # 0x11248
rolw $0x8, %ax
movw %ax, 0x2(%rbx)
leaq 0x11429(%rip), %rdi     # 0x14b00
callq 0x2220
movl %eax, 0x4(%rbx)
movl 0xdb57(%rip), %edi      # 0x1123c
movq %rbx, %rsi
movl $0x10, %edx
callq 0x2080
testl %eax, %eax
je 0x374d
movl 0xdb4c(%rip), %ebx      # 0x11248
callq 0x2050
movl (%rax), %ecx
leaq 0x8f07(%rip), %rdi      # 0xc611
leaq 0x113ef(%rip), %rsi     # 0x14b00
movl %ebx, %edx
xorl %eax, %eax
callq 0x26fc
movl 0xdb1c(%rip), %edi      # 0x1123c
callq 0x2440
movl $0xffffffff, 0xdb0d(%rip) # imm = 0xFFFFFFFF
jmp 0x3746
callq 0x2050
movl (%rax), %esi
leaq 0x8eac(%rip), %rdi      # 0xc5eb
xorl %eax, %eax
callq 0x26fc
movl $0x1, %ebx
jmp 0x3766
movl 0xdae9(%rip), %edi      # 0x1123c
xorl %ebx, %ebx
movl $0x4, %esi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x2150
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: ref_open()
static int ref_open()
{
   struct sockaddr_in sin;

   ref_sock = socket(PF_INET,SOCK_DGRAM,0);
   if (ref_sock == -1)
   {
      traceit("Failed to create ref socket,errno=%d\n",errno);
      return 1;
   }
   memset(&sin,0,sizeof(struct sockaddr_in));
   sin.sin_family = AF_INET;
   sin.sin_port = htons(20001);
   sin.sin_addr.s_addr = inet_addr(LISTEN_IP);

   if (bind(ref_sock,(struct sockaddr *)&sin,sizeof(struct sockaddr_in)) != 0)
   {
      traceit("Failed to bind ref socket on IP %s, port 20001, errno=%d\n",
              LISTEN_IP, errno);
      close(ref_sock); ref_sock = -1;
      return 1;
   }
   fcntl(ref_sock,F_SETFL,O_NONBLOCK);

   return 0;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl $0x2, %edi
movl $0x2, %esi
xorl %edx, %edx
callq 0x20b0
movl %eax, 0xdab6(%rip)      # 0x11240
cmpl $-0x1, %eax
je 0x37f7
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movl $0x214e0002, (%rbx)     # imm = 0x214E0002
leaq 0x1135b(%rip), %rdi     # 0x14b00
callq 0x2220
movl %eax, 0x4(%rbx)
movl 0xda8d(%rip), %edi      # 0x11240
movq %rbx, %rsi
movl $0x10, %edx
callq 0x2080
testl %eax, %eax
je 0x3813
callq 0x2050
movl (%rax), %edx
leaq 0x8e9c(%rip), %rdi      # 0xc66e
leaq 0x11327(%rip), %rsi     # 0x14b00
xorl %eax, %eax
callq 0x26fc
movl 0xda5a(%rip), %edi      # 0x11240
callq 0x2440
movl $0xffffffff, 0xda4b(%rip) # imm = 0xFFFFFFFF
jmp 0x380c
callq 0x2050
movl (%rax), %esi
leaq 0x8e43(%rip), %rdi      # 0xc648
xorl %eax, %eax
callq 0x26fc
movl $0x1, %ebx
jmp 0x382c
movl 0xda27(%rip), %edi      # 0x11240
xorl %ebx, %ebx
movl $0x4, %esi
movl $0x800, %edx            # imm = 0x800
xorl %eax, %eax
callq 0x2150
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: mute_users(bool)
static void mute_users(bool mute)
{
   a_user_list_type::iterator pos;
   struct a_user *a_user_ptr;

   inbound_type::iterator pos2;
   inbound *inbound_ptr;

   for (pos = a_user_list.begin(); pos != a_user_list.end(); pos++)
   {
      a_user_ptr = (struct a_user *)pos->second;
      a_user_ptr->isMute = mute;
   }

   for (pos2 = inbound_list.begin(); pos2 != inbound_list.end(); pos2++)
   {
      inbound_ptr = (inbound *)pos2->second;
      inbound_ptr->isMute = mute;
   }
   return;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x7caa(%rip), %rax      # 0x112e8
leaq 0x7c93(%rip), %r14      # 0x112d8
cmpq %r14, %rax
je 0x965b
movq 0x40(%rax), %rcx
movb %bl, 0x9(%rcx)
movq %rax, %rdi
callq 0x2170
jmp 0x9645
movq 0x7c56(%rip), %rax      # 0x112b8
leaq 0x7c3f(%rip), %r14      # 0x112a8
cmpq %r14, %rax
je 0x967f
movq 0x40(%rax), %rcx
movb %bl, 0x9(%rcx)
movq %rax, %rdi
callq 0x2170
jmp 0x9669
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: mute_call(char*, bool)
static bool mute_call(char *call, bool mute)
{
   bool found = false;
   a_user_list_type::iterator pos;
   struct a_user *a_user_ptr;

   inbound_type::iterator pos2;
   inbound *inbound_ptr;

   for (pos = a_user_list.begin(); pos != a_user_list.end(); pos++)
   {
      a_user_ptr = (struct a_user *)pos->second;
      if (strcmp(a_user_ptr->call, call) == 0)
      {
         found = true;
         a_user_ptr->isMute = mute;
      }
   }

   for (pos2 = inbound_list.begin(); pos2 != inbound_list.end(); pos2++)
   {
      inbound_ptr = (inbound *)pos2->second;
      if (strcmp(inbound_ptr->call, call) == 0)
      {
         found = true;
         inbound_ptr->isMute = mute;
      }
   }

   return found;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
movq 0x7c4a(%rip), %r15      # 0x112e8
leaq 0x7c33(%rip), %r13      # 0x112d8
xorl %ebp, %ebp
cmpq %r13, %r15
je 0x96d7
movq 0x40(%r15), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2330
testl %eax, %eax
jne 0x96c7
movb %bl, 0x9(%r12)
movb $0x1, %bpl
movq %r15, %rdi
callq 0x2170
movq %rax, %r15
cmpq %r13, %rax
jne 0x96ac
movq 0x7bda(%rip), %r15      # 0x112b8
leaq 0x7bc3(%rip), %r13      # 0x112a8
cmpq %r13, %r15
je 0x9715
movq 0x40(%r15), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2330
testl %eax, %eax
jne 0x9705
movb %bl, 0x9(%r12)
movb $0x1, %bpl
movq %r15, %rdi
callq 0x2170
movq %rax, %r15
cmpq %r13, %rax
jne 0x96ea
andb $0x1, %bpl
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/st0ne[P]XReflectorPlus/dxrfd.cpp
// Function: link_to_xrf(char, char*, char, char*)
static int link_to_xrf(char local_mod, char *ref, char remote_mod, char *IP)
{
   short counter;
   char request[CALL_SIZE + 3];
   struct sockaddr_in sin;
   a_user_list_type::iterator user_pos;

   if (remote_mod == 'X')
      remote_mod = ' ';  /* unlink request */
   else
   {
      user_pos = a_user_list.find(IP);
      if (user_pos != a_user_list.end())
      {
         /* It already exists */
         traceit("Remote reflector [%s] ip=%s already linked, unlink first\n", ref, IP); 
         return 0;
      }
   }

   /* send the request to the remote XRF reflector */
   strcpy(request, OWNER);
   request[8] = local_mod;
   request[9] = remote_mod;
   request[10] = '\0';

   memset(&sin,0,sizeof(struct sockaddr_in));
   sin.sin_family = AF_INET;
   sin.sin_port = htons(LISTEN_PORT);
   sin.sin_addr.s_addr = inet_addr(IP);

   traceit("Sending request [%s] to reflector %s\n", request, ref);

   for (counter = 0; counter < 5; counter++)
      sendto(srv_sock, request, CALL_SIZE + 3,
             0,(struct sockaddr *)&sin,
             sizeof(struct sockaddr_in));

   return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %rbx
movl %edi, %ebp
movb $0x20, %r13b
cmpb $0x58, %r15b
je 0x9e96
leaq 0x10(%rsp), %r12
leaq 0xf(%rsp), %rdx
movq %r12, %rdi
movq %r14, %rsi
callq 0xa270
leaq 0x7488(%rip), %rdi      # 0x112d0
movq %r12, %rsi
callq 0xb06c
movq %rax, %r12
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9e6e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
leaq 0x7463(%rip), %rax      # 0x112d8
movl %r15d, %r13d
cmpq %rax, %r12
je 0x9e96
leaq 0x3290(%rip), %rdi      # 0xd114
movq %rbx, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x26fc
jmp 0x9f24
leaq 0xac3b(%rip), %rsi      # 0x14ad8
leaq 0x35(%rsp), %r15
movq %r15, %rdi
callq 0x21e0
movb %bpl, 0x8(%r15)
movb %r13b, 0x9(%r15)
movb $0x0, 0xa(%r15)
xorps %xmm0, %xmm0
leaq 0x40(%rsp), %r12
movaps %xmm0, (%r12)
movw $0x2, (%r12)
movzwl 0x7372(%rip), %eax      # 0x11244
rolw $0x8, %ax
movw %ax, 0x2(%r12)
movq %r14, %rdi
callq 0x2220
movl %eax, 0x4(%r12)
leaq 0x325e(%rip), %rdi      # 0xd14e
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x26fc
movw $0x5, %bx
movl 0x7331(%rip), %edi      # 0x11238
movl $0xb, %edx
movq %r15, %rsi
xorl %ecx, %ecx
movq %r12, %r8
movl $0x10, %r9d
callq 0x2060
decw %bx
jne 0x9f01
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x9f51
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2230
movq %rbx, %rdi
callq 0x23f0
nop
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/Menu.cpp
// Function: Menu::displayMenu() const
void Menu :: displayMenu() const {
  cout << endl << endl;
  for (size_t i = 0; i != options.size(); ++i) {
    cout << i + 1 << ". " << options[i] << endl;
  }
  cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r14
movq 0x20173(%rip), %rbx     # 0x24fc0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq 0x10(%r14), %rax
cmpq 0x8(%r14), %rax
je 0x4f37
movl $0x8, %ebx
xorl %r15d, %r15d
movq 0x20105(%rip), %r12     # 0x24fc0
leaq 0x1618e(%rip), %r13     # 0x1b050
incq %r15
movq %r12, %rdi
movq %r15, %rsi
callq 0x41a0
movq %rax, %rbp
movl $0x2, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x42f0
movq 0x8(%r14), %rax
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq %rbp, %rdi
callq 0x42f0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbp, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq 0x10(%r14), %rax
subq 0x8(%r14), %rax
sarq $0x5, %rax
addq $0x20, %rbx
cmpq %rax, %r15
jne 0x4ec2
movq 0x20082(%rip), %rbx     # 0x24fc0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x41b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/Menu.cpp
// Function: Menu::getSelection()
int Menu :: getSelection() {
  string input;
  int option;
  do {
    cout << endl << "Please enter an option: "
	 << endl << endl << "> ";
    getline(cin, input);
    option = atoi(input.c_str());
  } while (option < 1 || option > options.size());
  return option;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x1ffa4(%rip), %r14     # 0x24fc0
movq 0x1ffad(%rip), %r13     # 0x24fd0
leaq 0x8(%rsp), %rbp
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %r14, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq %rax, %r15
movl $0x18, %edx
movq %rax, %rdi
leaq 0x15ff2(%rip), %rsi     # 0x1b053
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movl $0x2, %edx
movq %rax, %rdi
leaq 0x15fa6(%rip), %rsi     # 0x1b06c
callq 0x42f0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %edx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x4460
movq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x43b0
testl %eax, %eax
jle 0x5028
movl %eax, %r12d
movl %eax, %eax
movq 0x10(%rbx), %rcx
subq 0x8(%rbx), %rcx
sarq $0x5, %rcx
cmpq %rax, %rcx
jb 0x5028
leaq 0x18(%rsp), %rax
cmpq %rax, %r15
je 0x5137
movq 0x18(%rsp), %rsi
incq %rsi
movq %r15, %rdi
callq 0x42a0
movl %r12d, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5168
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
movq %rbx, %rdi
callq 0x4430
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/AllMenus.cpp
// Function: BasicMenu::BasicMenu()
BasicMenu :: BasicMenu()
  : Menu() {
  options.push_back("Display stats");
  options.push_back("Check invnentory");
  options.push_back("Move");
  options.push_back("Go to Main Menu");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x4e10
leaq 0x1f4fe(%rip), %rax     # 0x24688
movq %rax, (%rbx)
leaq 0x8(%rbx), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15ed3(%rip), %rsi     # 0x1b075
leaq 0x15ed9(%rip), %rdx     # 0x1b082
leaq 0x8(%rsp), %rdi
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x51d7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15e9d(%rip), %rsi     # 0x1b083
leaq 0x15ea6(%rip), %rdx     # 0x1b093
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5216
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15e6f(%rip), %rsi     # 0x1b094
leaq 0x15e6c(%rip), %rdx     # 0x1b098
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5255
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15e35(%rip), %rsi     # 0x1b099
leaq 0x15e3d(%rip), %rdx     # 0x1b0a8
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5294
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x52ac
jmp 0x52c8
jmp 0x52ac
jmp 0x52c8
jmp 0x52ac
jmp 0x52c8
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x52cb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x52cb
movq %rax, %r15
leaq 0x1f37e(%rip), %rax     # 0x24650
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x625c
movq %r15, %rdi
callq 0x4430
nop
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/AllMenus.cpp
// Function: BattleMenu::BattleMenu()
BattleMenu :: BattleMenu()
  : Menu() {
  options.push_back("Display stats");
  options.push_back("Attack");
  options.push_back("Cast spell");
  options.push_back("Use potion");
  options.push_back("Change weapon/armor");
  options.push_back("Go to Main Menu");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x4e10
leaq 0x1f39c(%rip), %rax     # 0x246a0
movq %rax, (%rbx)
leaq 0x8(%rbx), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15d59(%rip), %rsi     # 0x1b075
leaq 0x15d5f(%rip), %rdx     # 0x1b082
leaq 0x8(%rsp), %rdi
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5351
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15d49(%rip), %rsi     # 0x1b0a9
leaq 0x15d48(%rip), %rdx     # 0x1b0af
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5390
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15d11(%rip), %rsi     # 0x1b0b0
leaq 0x15d14(%rip), %rdx     # 0x1b0ba
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x53cf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15cdd(%rip), %rsi     # 0x1b0bb
leaq 0x15ce0(%rip), %rdx     # 0x1b0c5
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x540e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15ca9(%rip), %rsi     # 0x1b0c6
leaq 0x15cb5(%rip), %rdx     # 0x1b0d9
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x544d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15c3d(%rip), %rsi     # 0x1b099
leaq 0x15c45(%rip), %rdx     # 0x1b0a8
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x548c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x54ac
jmp 0x54c8
jmp 0x54ac
jmp 0x54c8
jmp 0x54ac
jmp 0x54c8
jmp 0x54ac
jmp 0x54c8
jmp 0x54ac
jmp 0x54c8
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x54cb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x54cb
movq %rax, %r15
leaq 0x1f17e(%rip), %rax     # 0x24650
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x625c
movq %r15, %rdi
callq 0x4430
nop
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/AllMenus.cpp
// Function: MarketMenu::MarketMenu()
MarketMenu :: MarketMenu()
  : Menu() {
  options.push_back("Display Items/Spells");
  options.push_back("Buy Item/Spell");
  options.push_back("Sell Item/Spell");
  options.push_back("Exit Market");
  options.push_back("Go to Main Menu");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x4e10
leaq 0x1f1b4(%rip), %rax     # 0x246b8
movq %rax, (%rbx)
leaq 0x8(%rbx), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15bbe(%rip), %rsi     # 0x1b0da
leaq 0x15bcb(%rip), %rdx     # 0x1b0ee
leaq 0x8(%rsp), %rdi
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5551
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15b8f(%rip), %rsi     # 0x1b0ef
leaq 0x15b96(%rip), %rdx     # 0x1b0fd
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5590
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15b5f(%rip), %rsi     # 0x1b0fe
leaq 0x15b67(%rip), %rdx     # 0x1b10d
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x55cf
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15b30(%rip), %rsi     # 0x1b10e
leaq 0x15b34(%rip), %rdx     # 0x1b119
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x560e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15a7c(%rip), %rsi     # 0x1b099
leaq 0x15a84(%rip), %rdx     # 0x1b0a8
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x564d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x5669
jmp 0x5685
jmp 0x5669
jmp 0x5685
jmp 0x5669
jmp 0x5685
jmp 0x5669
jmp 0x5685
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5688
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x5688
movq %rax, %r15
leaq 0x1efc1(%rip), %rax     # 0x24650
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x625c
movq %r15, %rdi
callq 0x4430
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/AllMenus.cpp
// Function: InventoryMenu::InventoryMenu()
InventoryMenu :: InventoryMenu()
  : Menu() {
  options.push_back("Display Items/Spells");
  options.push_back("Equip Item/Spell");
  options.push_back("Discard Item/Spell");
  options.push_back("Use Potion");
  options.push_back("Exit Inventory");
  options.push_back("Go to Main Menu");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x4e10
leaq 0x1f010(%rip), %rax     # 0x246d0
movq %rax, (%rbx)
leaq 0x8(%rbx), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15a02(%rip), %rsi     # 0x1b0da
leaq 0x15a0f(%rip), %rdx     # 0x1b0ee
leaq 0x8(%rsp), %rdi
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x570d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x159fe(%rip), %rsi     # 0x1b11a
leaq 0x15a07(%rip), %rdx     # 0x1b12a
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x574c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x159d0(%rip), %rsi     # 0x1b12b
leaq 0x159db(%rip), %rdx     # 0x1b13d
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x578b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x159a4(%rip), %rsi     # 0x1b13e
leaq 0x159a7(%rip), %rdx     # 0x1b148
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x57ca
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15970(%rip), %rsi     # 0x1b149
leaq 0x15977(%rip), %rdx     # 0x1b157
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5809
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15881(%rip), %rsi     # 0x1b099
leaq 0x15889(%rip), %rdx     # 0x1b0a8
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5848
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x5868
jmp 0x5884
jmp 0x5868
jmp 0x5884
jmp 0x5868
jmp 0x5884
jmp 0x5868
jmp 0x5884
jmp 0x5868
jmp 0x5884
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5887
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x5887
movq %rax, %r15
leaq 0x1edc2(%rip), %rax     # 0x24650
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x625c
movq %r15, %rdi
callq 0x4430
nop
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/AllMenus.cpp
// Function: MainMenu::MainMenu()
MainMenu :: MainMenu()
  : Menu() {
  options.push_back("Play");
  options.push_back("GenerateMap");
  options.push_back("Help");
  options.push_back("Quit");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
callq 0x4e10
leaq 0x1ee28(%rip), %rax     # 0x246e8
movq %rax, (%rbx)
leaq 0x8(%rbx), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x15880(%rip), %rsi     # 0x1b158
leaq 0x1587d(%rip), %rdx     # 0x1b15c
leaq 0x8(%rsp), %rdi
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x590d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x15841(%rip), %rsi     # 0x1b15d
leaq 0x15845(%rip), %rdx     # 0x1b168
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x594c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x1580e(%rip), %rsi     # 0x1b169
leaq 0x1580b(%rip), %rdx     # 0x1b16d
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x598b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x8(%rsp), %rdi
movq %r12, (%rdi)
leaq 0x157d4(%rip), %rsi     # 0x1b16e
leaq 0x157d1(%rip), %rdx     # 0x1b172
callq 0x6520
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x62b8
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x59ca
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
jmp 0x59e2
jmp 0x59fe
jmp 0x59e2
jmp 0x59fe
jmp 0x59e2
jmp 0x59fe
movq %rax, %r15
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x5a01
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42a0
jmp 0x5a01
movq %rax, %r15
leaq 0x1ec48(%rip), %rax     # 0x24650
addq $0x10, %rax
movq %rax, (%rbx)
movq %r14, %rdi
callq 0x625c
movq %r15, %rdi
callq 0x4430
nop
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/AllMenus.cpp
// Function: MainMenu::welcome() const
void MainMenu :: welcome() const {  
  cout << endl << "Welcome to ..." << endl;

  displayMenu();

  cout << "Type any of the above options to enter (i.e : \"GenerateMap\" or \"Help\")"
       << endl << endl;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movq 0x1f591(%rip), %rbx     # 0x24fc0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq %rax, %r15
leaq 0x15713(%rip), %rsi     # 0x1b173
movl $0xe, %edx
movq %rax, %rdi
callq 0x42f0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %r15, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq (%r14), %rax
movq %r14, %rdi
callq *(%rax)
leaq 0x156df(%rip), %rsi     # 0x1b182
movl $0x46, %edx
movq %rbx, %rdi
callq 0x42f0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x41b0
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/menu/AllMenus.cpp
// Function: MainMenu::help() const
void MainMenu::help() const {
	ifstream helpFile;

	helpFile.open("input/help.info");

	if (helpFile.is_open()) {
		cout << endl;
		cout << helpFile.rdbuf();
	} else {
		cerr << "A problem occured while opening \"input/help.info\" ";
		cout << endl<< endl;
	}

	string answer;
	  while (answer != "Y" && answer != "y") {
		cout << endl << "Exit to Main Menu?(Y/n) : ";
		cin >> answer;
	  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x228, %rsp            # imm = 0x228
leaq 0x20(%rsp), %rbx
movq %rbx, %rdi
callq 0x42e0
leaq 0x1521e(%rip), %rsi     # 0x1b29f
movq %rbx, %rdi
movl $0x8, %edx
callq 0x4170
leaq 0x98(%rsp), %rdi
callq 0x40a0
testb %al, %al
je 0x60e1
movq 0x1ef1a(%rip), %rdi     # 0x24fc0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq 0x1eeff(%rip), %rdi     # 0x24fc0
callq 0x4040
movq %rax, %rdi
callq 0x41b0
leaq 0x30(%rsp), %rsi
movq 0x1eee6(%rip), %rdi     # 0x24fc0
callq 0x4080
jmp 0x6152
movq 0x1ef00(%rip), %rdi     # 0x24fe8
leaq 0x151c0(%rip), %rsi     # 0x1b2af
movl $0x32, %edx
callq 0x42f0
movq 0x1eec0(%rip), %rdi     # 0x24fc0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq 0x1eea5(%rip), %rdi     # 0x24fc0
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x15c41(%rip), %rbx     # 0x1bdae
movq %rsp, %r14
leaq 0x14fe4(%rip), %r15     # 0x1b15b
movq 0x1ee42(%rip), %r12     # 0x24fc0
leaq 0x1515d(%rip), %r13     # 0x1b2e2
movq 0x1ee44(%rip), %rbp     # 0x24fd0
movq %r14, %rdi
movq %rbx, %rsi
callq 0x40d0
testl %eax, %eax
je 0x61ef
movq %r14, %rdi
movq %r15, %rsi
callq 0x40d0
testl %eax, %eax
je 0x61ef
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x4270
movsbl %al, %esi
movq %r12, %rdi
callq 0x4040
movq %rax, %rdi
callq 0x41b0
movl $0x1a, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x42f0
movq %rbp, %rdi
movq %r14, %rsi
callq 0x4330
jmp 0x618c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x620a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x20(%rsp), %rdi
callq 0x4480
addq $0x228, %rsp            # imm = 0x228
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x6249
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x6249
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42a0
leaq 0x20(%rsp), %rdi
callq 0x4480
movq %rbx, %rdi
callq 0x4430
nop
// File: /workspace/github_cpp_makefile_star2_O1/arisKoutsou[P]oopproj/./src/grid/Grid.cpp
// Function: Grid::Tile::~Tile()
Grid :: Tile :: ~Tile() {
  while (livings.empty() == false) {
    delete livings.front();
    livings.pop_front();
  }

  delete market;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x8(%rdi), %r15
movq 0x8(%rdi), %rax
cmpq %r15, %rax
je 0x6611
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0x65ee
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x8(%rbx), %r14
decq 0x18(%rbx)
movq %r14, %rdi
callq 0x43f0
movl $0x18, %esi
movq %r14, %rdi
callq 0x42a0
movq 0x8(%rbx), %rax
jmp 0x65da
movq 0x20(%rbx), %rbx
testq %rbx, %rbx
je 0x662f
movq %rbx, %rdi
callq 0xfcfa
movl $0x58, %esi
movq %rbx, %rdi
callq 0x42a0
movq (%r15), %rdi
cmpq %r15, %rdi
je 0x664c
movq (%rdi), %rbx
movl $0x18, %esi
callq 0x42a0
movq %rbx, %rdi
cmpq %r15, %rbx
jne 0x6637
popq %rbx
popq %r14
popq %r15
retq