LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/FabienBounoir[P]JustePrix-CLI/meilleurScore.cpp
// Function: MeilleurScore::sauvegarderScore(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void MeilleurScore::sauvegarderScore(int nbCoups, string nom)
{
    string ligneFichierScore;
    ofstream fichierScore(this->getFichierDifficulte().c_str());
    
    stringstream stringNbCoups;
    stringNbCoups << nbCoups;

    string creationScore = stringNbCoups.str() + " " + nom;
    this->donneeFichier.push_back(make_pair(nbCoups, creationScore));
    sort(donneeFichier.begin(), donneeFichier.end());

    for(unsigned int i=0;i < donneeFichier.size(); i++)
    {
        fichierScore << donneeFichier[i].second << endl;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x410, %rsp            # imm = 0x410
movq %rdx, %r14
leaq 0x78(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movl %esi, %ebp
movq %rdi, %rbx
movb $0x0, (%rax)
leaq 0x18(%rdi), %rsi
leaq 0x88(%rsp), %rdi
callq 0x2250
movq 0x88(%rsp), %rsi
leaq 0x210(%rsp), %rdi
pushq $0x10
popq %rdx
callq 0x2200
leaq 0x88(%rsp), %rdi
callq 0x20b0
leaq 0x88(%rsp), %rdi
callq 0x2110
leaq 0x98(%rsp), %rdi
movl %ebp, %esi
callq 0x22f0
leaq 0xa0(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x22a0
leaq 0xf87(%rip), %rdx       # 0x50f2
movq %rsp, %rdi
leaq 0x28(%rsp), %rsi
callq 0x42fe
leaq 0x48(%rsp), %rdi
movq %rsp, %rsi
movq %r14, %rdx
callq 0x42df
movq %rsp, %r14
movq %r14, %rdi
callq 0x20b0
leaq 0x28(%rsp), %rdi
callq 0x20b0
movl %ebp, (%r14)
leaq 0x8(%rsp), %r14
leaq 0x48(%rsp), %rsi
movq %r14, %rdi
callq 0x2250
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x3946
movq %r14, %rdi
callq 0x20b0
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
callq 0x4326
xorl %r15d, %r15d
pushq $0x28
popq %r12
leaq 0x210(%rsp), %r14
movl %r15d, %r15d
movq (%rbx), %rcx
movq 0x8(%rbx), %rax
subq %rcx, %rax
cqto
idivq %r12
cmpq %r15, %rax
jbe 0x4218
imulq $0x28, %r15, %rax
leaq (%rcx,%rax), %rsi
addq $0x8, %rsi
movq %r14, %rdi
callq 0x21a0
movq %rax, %rdi
callq 0x20c0
incl %r15d
jmp 0x41e0
leaq 0x48(%rsp), %rdi
callq 0x20b0
leaq 0x88(%rsp), %rdi
callq 0x2140
leaq 0x210(%rsp), %rdi
callq 0x2270
leaq 0x68(%rsp), %rdi
callq 0x20b0
addq $0x410, %rsp            # imm = 0x410
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x42a1
movq %rax, %rbx
movq %r14, %rdi
callq 0x20b0
jmp 0x42a4
jmp 0x42a1
movq %rax, %rbx
movq %rsp, %rdi
callq 0x20b0
jmp 0x4277
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x42a9
jmp 0x4280
movq %rax, %rbx
jmp 0x42ae
movq %rax, %rbx
jmp 0x42bb
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x20b0
jmp 0x42c8
movq %rax, %rbx
jmp 0x42c8
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x20b0
leaq 0x88(%rsp), %rdi
callq 0x2140
leaq 0x210(%rsp), %rdi
callq 0x2270
leaq 0x68(%rsp), %rdi
callq 0x20b0
movq %rbx, %rdi
callq 0x2300
// File: /workspace/github_cpp_makefile_star2_O2/s-yata[P]louds-patricia/louds-patricia.cpp
// Function: louds::(anonymous namespace)::BitVector::add(unsigned long)
void add(uint64_t bit) {
    if (n_bits % 256 == 0) {
      words.resize((n_bits + 256) / 64);
    }
    set(n_bits, bit);
    ++n_bits;
  }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq 0x48(%rdi), %rsi
movq %rdi, %rbx
testb %sil, %sil
jne 0x2414
addq $0x100, %rsi            # imm = 0x100
movq %rbx, %rdi
shrq $0x6, %rsi
callq 0x37c8
movq 0x48(%rbx), %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x248a
incq 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/s-yata[P]louds-patricia/louds-patricia.cpp
// Function: louds::(anonymous namespace)::BitVector::set(unsigned long, unsigned long)
void set(uint64_t i, uint64_t bit) {
    if (bit) {
      words[i / 64] |= (1UL << (i % 64));
    } else {
      words[i / 64] &= ~(1UL << (i % 64));
    }
  }

// Assembly:
pushq $0x1
popq %rax
shlxq %rsi, %rax, %rax
testq %rdx, %rdx
je 0x24a3
movq (%rdi), %rcx
shrq $0x6, %rsi
orq %rax, (%rcx,%rsi,8)
retq
movq (%rdi), %rcx
notq %rax
shrq $0x6, %rsi
andq %rax, (%rcx,%rsi,8)
retq
// File: /workspace/github_cpp_makefile_star2_O2/s-yata[P]louds-patricia/louds-patricia.cpp
// Function: louds::PatriciaImpl::size() const
uint64_t size() const {
    uint64_t size = 0;
    size += louds_.size();
    size += outs_.size();
    size += links_.size();
    size += labels_.size();
    size += tail_bits_.size();
    size += tail_bytes_.size();
    return size;
  }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
addq $0x48, %rdi
callq 0x2b02
leaq 0x98(%rbx), %rdi
movq %rax, %r14
callq 0x2b02
leaq 0xe8(%rbx), %rdi
movq %rax, %r15
callq 0x2b02
addq %r14, %r15
movq %rax, %r12
leaq 0x150(%rbx), %rdi
addq %r15, %r12
addq 0x140(%rbx), %r12
subq 0x138(%rbx), %r12
callq 0x2b02
addq %r12, %rax
addq 0x1a8(%rbx), %rax
subq 0x1a0(%rbx), %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/smuething[P]dune-cxx11/15-allocate_shared.cc
// Function: main
int main()
{
  std::allocator<int> allocator;
  std::shared_ptr<int> p(std::allocate_shared<int>(allocator,4));
  assert(*p == 4);
  return 0;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
leaq 0xc(%rsp), %rdx
movl $0x4, (%rdx)
leaq 0x10(%rsp), %rbx
leaq 0xb(%rsp), %rsi
movq %rbx, %rdi
callq 0x1262
movq (%rbx), %rax
cmpl $0x4, (%rax)
jne 0x11c8
leaq 0x18(%rsp), %rdi
callq 0x11e6
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
leaq 0xe35(%rip), %rdi       # 0x2004
leaq 0xe36(%rip), %rsi       # 0x200c
leaq 0xe45(%rip), %rcx       # 0x2022
pushq $0x8
popq %rdx
callq 0x1040
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/kmerGraph.cpp
// Function: kmerGraph::reverseComplement(unsigned long long, parameter*)
unsigned long long kmerGraph::reverseComplement(unsigned long long a, parameter *parameters)
{
        unsigned long long rev = 0;
        for(int i=0; i<parameters->hashLength; i++){
                rev <<= 2;
                rev |= (3-(a&3));
                a >>= 2;
        }
        return rev;
}

// Assembly:
movl 0xaf8(%rdx), %ecx
xorl %eax, %eax
testl %ecx, %ecx
cmovlel %eax, %ecx
subl $0x1, %ecx
jb 0x25d1
movl %esi, %edx
andl $0x3, %edx
leaq (%rdx,%rax,4), %rax
xorq $0x3, %rax
shrq $0x2, %rsi
jmp 0x25b9
retq
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/kmerGraph.cpp
// Function: kmerGraph::stringToLongLong(char const*, int, int, parameter*)
unsigned long long kmerGraph::stringToLongLong(const char *buf, int start, int end, parameter *parameters)
{
        unsigned long long ret = 0;
        for(int i=start; i<end; i++){
                assert(buf[i]=='A'||buf[i]=='T'||buf[i]=='C'||buf[i]=='G');
		ret <<= 2;
                ret |= ((unsigned long long)parameters->nucleotideValue[(int)buf[i]]&3);
        }
        return ret;
}

// Assembly:
movslq %esi, %rsi
movslq %edx, %rdx
xorl %eax, %eax
movl $0x80045, %r8d          # imm = 0x80045
cmpq %rdx, %rsi
jge 0x2610
movzbl (%rdi,%rsi), %r9d
leal -0x41(%r9), %r10d
cmpl $0x13, %r10d
ja 0x2611
btl %r10d, %r8d
jae 0x2611
movzbl 0xb38(%rcx,%r9), %r9d
andl $0x3, %r9d
leaq (%r9,%rax,4), %rax
incq %rsi
jmp 0x25e0
retq
pushq %rax
leaq 0x39f7(%rip), %rdi      # 0x6010
leaq 0x3a23(%rip), %rsi      # 0x6043
leaq 0x3a2e(%rip), %rcx      # 0x6055
pushq $0x15
popq %rdx
callq 0x2160
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/kmerGraph.cpp
// Function: kmerGraph::longLongToString[abi:cxx11](unsigned long long, parameter*)
string kmerGraph::longLongToString(unsigned long long a, parameter *parameters)
{
	string descriptor;
        descriptor.clear();
        for(int i=0;i<parameters->hashLength;i++)
        {
                descriptor += parameters->nucleotideArray[a%4];
                a = (a>>2);
        }
        reverse(descriptor.begin(), descriptor.end());
	return descriptor;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
andq $0x0, 0x8(%rdi)
movq %rdx, %r14
movq %rsi, %r15
movb $0x0, 0x10(%rdi)
xorl %ebp, %ebp
cmpl 0xaf8(%r14), %ebp
jge 0x267a
movl %r15d, %eax
andl $0x3, %eax
movsbl 0xbb8(%r14,%rax), %esi
movq %rbx, %rdi
callq 0x21d0
shrq $0x2, %r15
incl %ebp
jmp 0x2652
movq (%rbx), %rdi
movq 0x8(%rbx), %rsi
addq %rdi, %rsi
callq 0x471f
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2699
movq %rax, %r14
movq %rbx, %rdi
callq 0x20e0
movq %r14, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/kmerGraph.cpp
// Function: kmerGraph::arcPos(unsigned long long&, unsigned long long&, char, char, int)
int kmerGraph::arcPos(unsigned long long &A, unsigned long long &B, char directA, char directB, int hashLength)
{
	int lastB;
	if(directB=='+')	lastB = B%4;
	else			lastB = 3-(B>>((hashLength-1)*2));
	
	if(directA=='-')	lastB += 4;
	assert(lastB>=0&&lastB<8);
	return lastB;
}

// Assembly:
movl %ecx, %esi
movq (%rdx), %rdx
cmpb $0x2b, %r8b
jne 0x26bc
andl $0x3, %edx
jmp 0x26d0
addl %r9d, %r9d
addb $-0x2, %r9b
movl %r9d, %ecx
shrq %cl, %rdx
pushq $0x3
popq %rax
subl %edx, %eax
movl %eax, %edx
leal 0x4(%rdx), %eax
cmpb $0x2d, %sil
cmovnel %edx, %eax
cmpl $0x8, %eax
jae 0x26e0
retq
pushq %rax
leaq 0x39c8(%rip), %rdi      # 0x60b0
leaq 0x3954(%rip), %rsi      # 0x6043
leaq 0x39cc(%rip), %rcx      # 0x60c2
pushq $0x30
popq %rdx
callq 0x2160
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/kmerGraph.cpp
// Function: kmerGraph::getProcsID(unsigned long long, int, MPIEnviroment*)
unsigned long long kmerGraph::getProcsID(unsigned long long kmerID, int hashLength, MPIEnviroment *MPIcontrol)
{
        unsigned long long revKmer = 0, tmpID = kmerID;
        for(int i=0;i<hashLength;i++)
        {
                revKmer = revKmer * 4;
                revKmer += ( 3 - tmpID%4 );
                tmpID = tmpID / 4;
        }

        if(revKmer>kmerID) revKmer = kmerID;

         unsigned int factor = 19;
         unsigned int numBytes = (hashLength + 3) / 4;

         unsigned long long sum = 0;
         for(unsigned i = 0; i < numBytes; i++){
                 sum = sum * factor + (revKmer & 0xFF);
                 revKmer >>= 8;
         }
         return sum % MPIcontrol->nprocs;
}

// Assembly:
movl %edx, %eax
xorl %edx, %edx
testl %eax, %eax
movl $0x0, %edi
cmovgl %eax, %edi
movq %rsi, %r8
subl $0x1, %edi
jb 0x2729
movl %r8d, %r9d
andl $0x3, %r9d
leaq (%r9,%rdx,4), %rdx
xorq $0x3, %rdx
shrq $0x2, %r8
jmp 0x270f
cmpq %rsi, %rdx
cmovbq %rdx, %rsi
addl $0x3, %eax
pushq $0x4
popq %rdi
cltd
idivl %edi
movl %eax, %edx
xorl %eax, %eax
subl $0x1, %edx
jb 0x2753
imulq $0x13, %rax, %rdi
movzbl %sil, %eax
addq %rdi, %rax
shrq $0x8, %rsi
jmp 0x273d
movslq 0x4(%rcx), %rcx
xorl %edx, %edx
divq %rcx
movq %rdx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/kmerGraph.cpp
// Function: kmerGraph::printKmerCounting(parameter*, MPIEnviroment*)
void kmerGraph::printKmerCounting(parameter *parameters, MPIEnviroment *MPIcontrol)
{
        ofstream fs(parameters->kmerGraph);
        if(!fs.is_open())
        {
                cout<<"Error opening file"<<endl;
                exit(1);
        }

	int lineLen = parameters->hashLength+1+4*8+5;
	int totLen = kmolecules.size()*lineLen;
	
	char *buf = new char [totLen];
	int i=0;

	for(unordered_map<unsigned long long, unsigned long long>::iterator I=kmolecules.begin(); I!=kmolecules.end(); I++)
	{
		sprintf(buf+i*lineLen, "%s ", longLongToString(I->first, parameters).c_str());
		unsigned char *p = (unsigned char *) &I->second;
		int t=0;
		/*for(int j=0;j<8;j++)	
		{
			t += p[j];
			sprintf(buf+i*lineLen+parameters->hashLength+1+j*4, "%3d ", (int) p[j]);
		}*/
		sprintf(buf+i*lineLen+parameters->hashLength+1+4*8, "%4d\n", t);	
		i++;	
	}
	buf[totLen] = 0;
	MPIcontrol->File_write(parameters->kmerGraph, buf, totLen);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x248, %rsp            # imm = 0x248
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r12
leaq 0x8f7(%rsi), %r14
leaq 0x48(%rsp), %rdi
pushq $0x10
popq %rdx
movq %r14, %rsi
callq 0x2260
leaq 0xb8(%rsp), %rdi
callq 0x2070
testb %al, %al
je 0x3e71
movq %r14, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movslq 0xaf8(%r15), %r14
addq $0x26, %r14
movl 0x18(%r12), %eax
imull %r14d, %eax
cltq
testl %eax, %eax
pushq $-0x1
popq %rdi
movq %rax, 0x10(%rsp)
cmovnsq %rax, %rdi
callq 0x2030
addq $0x10, %r12
leaq 0x28(%rsp), %rbx
leaq 0x2756(%rip), %rbp      # 0x652f
movq %rax, 0x8(%rsp)
movq %rax, %r13
movq (%r12), %r12
testq %r12, %r12
je 0x3e38
movq 0x8(%r12), %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x2630
movq 0x28(%rsp), %rdx
movq %r13, %rdi
leaq 0x2722(%rip), %rsi      # 0x652b
xorl %eax, %eax
callq 0x2060
movq %rbx, %rdi
callq 0x20e0
movslq 0xaf8(%r15), %rax
leaq (%rax,%r13), %rdi
addq $0x21, %rdi
movq %rbp, %rsi
xorl %edx, %edx
xorl %eax, %eax
callq 0x2060
addq %r14, %r13
jmp 0x3de1
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rdx
movb $0x0, (%rdx,%rcx)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x5632
leaq 0x48(%rsp), %rdi
callq 0x23a0
addq $0x248, %rsp            # imm = 0x248
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5140(%rip), %rdi      # 0x8fb8
leaq 0x2699(%rip), %rsi      # 0x6518
callq 0x2230
movq %rax, %rdi
callq 0x2100
pushq $0x1
popq %rdi
callq 0x22c0
jmp 0x3e9a
jmp 0x3e9a
jmp 0x3e9a
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x23a0
movq %rbx, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/bloomFilter.h
// Function: bloomFilter::bloomAdd(unsigned long long)
int bloomAdd(unsigned long long a)
	{
//		printf("bloomAdd: %llu\n", a);
//		fflush(stdout);	
		if(size==0)	return 0;
		unsigned long long minC = (1ull<<30);
		for(int i=0; i<funNum; i++)
		{
			unsigned long long pos = hashFun(a, i);		
			pos *= bits;
			unsigned long long sum=0;
			for(int j=0; j<bits; j++)
			{
				unsigned long long k = pos+j;
				sum = sum*2 + ((bitSet[k/64]>>(k%64))&1);
			}
			
			if(sum+1<(1ull<<bits))	sum++; 
			for(int j=0;j<bits;j++)
			{
				unsigned long long k = pos+j;
				bitSet[k/64] &= ~((unsigned long long) 1 << (k%64)); 
				bitSet[k/64] |= ( ((sum>>(bits-1-j))&1) << (k%64));
			}
			minC = min(minC, sum);
		}
		return (int) minC;
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x8(%rdi)
je 0x421c
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
movl $0x40000000, %ebx       # imm = 0x40000000
cmpl 0x14(%r15), %r12d
jge 0x421e
movq %r15, %rdi
movq %r14, %rsi
movl %r12d, %edx
callq 0x44de
movslq 0x10(%r15), %rcx
imulq %rcx, %rax
testl %ecx, %ecx
movl $0x0, %edx
cmovgl %ecx, %edx
movq (%r15), %rsi
movq %rax, %rdi
movq %rdx, %r9
xorl %r8d, %r8d
subq $0x1, %r9
jb 0x41c4
movq %rdi, %r10
shrq $0x6, %r10
movq (%rsi,%r10,8), %r10
xorl %r11d, %r11d
btq %rdi, %r10
setb %r11b
leaq (%r11,%r8,2), %r8
incq %rdi
jmp 0x419f
leaq 0x1(%r8), %rdi
movq %rdi, %r9
shrq %cl, %r9
testq %r9, %r9
cmovneq %r8, %rdi
leal -0x1(%rcx), %r8d
subq $0x1, %rdx
jb 0x420d
movq %rax, %r9
shrq $0x6, %r9
movq (%rsi,%r9,8), %r10
btrq %rax, %r10
xorl %r11d, %r11d
btq %r8, %rdi
setb %r11b
movl %eax, %ecx
shlq %cl, %r11
orq %r10, %r11
movq %r11, (%rsi,%r9,8)
decl %r8d
incq %rax
jmp 0x41d9
cmpq %rbx, %rdi
cmovbq %rdi, %rbx
incl %r12d
jmp 0x4169
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/kmerGraph.h
// Function: kmerGraph::kmerGraph()
kmerGraph()
	{
		size     = 0;
		read_pos = 0;
		commtime = 0;
		commtimetot = 0;
		cuttime = 0;
		storagetime = 0;	
		
		MPI_Type_contiguous(KMER_COMM_TYPE_LEN, MPI_UNSIGNED_LONG_LONG, &commType);
		MPI_Type_commit(&commType);
	}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x30(%rdi), %rax
movq %rax, (%rdi)
pushq $0x1
popq %rax
movq %rax, 0x8(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movl $0x3f800000, %ecx       # imm = 0x3F800000
movl %ecx, 0x20(%rdi)
movups %xmm0, 0x28(%rdi)
leaq 0x38(%rdi), %r14
leaq 0x68(%rdi), %rdx
movq %rdx, 0x38(%rdi)
movq %rax, 0x40(%rdi)
movups %xmm0, 0x48(%rdi)
movl %ecx, 0x58(%rdi)
leaq 0xa0(%rdi), %r15
movups %xmm0, 0x60(%rdi)
movups %xmm0, 0x70(%rdi)
movups %xmm0, 0x80(%rdi)
movups %xmm0, 0x90(%rdi)
movq 0x4d60(%rip), %rsi      # 0x8ff0
pushq $0xa
popq %rdi
movq %r15, %rdx
callq 0x2150
movq %r15, %rdi
callq 0x22e0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x451e
movq %rbx, %rdi
callq 0x451e
movq %r15, %rdi
callq 0x2420
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/bloomFilter.h
// Function: bloomFilter::hashFun(unsigned long long, int)
unsigned long long hashFun(unsigned long long a, int index)
	{
//		printf("hashFun a, index =%llu %d %d\n", a, index, factorArray.size());
//		fflush(stdout); 
         	unsigned long long factor = factorArray[index];
        	unsigned long long sum = 0;
         	for(unsigned i = 0; i<8; i++){
                 	sum = (sum * factor + (a & 0xFFFFFFFF))%size;
			if(a==0)	break;
			a = (a>>8);
         	}
         	return sum%size;
	}

// Assembly:
movslq %edx, %rax
movq 0x8(%rdi), %rcx
movq 0x18(%rdi), %rdx
movq (%rdx,%rax,8), %rdi
pushq $0x8
popq %r8
xorl %edx, %edx
subl $0x1, %r8d
jb 0x4512
imulq %rdi, %rdx
movl %esi, %eax
addq %rdx, %rax
xorl %edx, %edx
divq %rcx
testq %rsi, %rsi
je 0x4512
shrq $0x8, %rsi
jmp 0x44f3
movq %rdx, %rax
xorl %edx, %edx
divq %rcx
movq %rdx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/mympi.cpp
// Function: MPIEnviroment::init(int, char**)
void MPIEnviroment::init(int argc, char *argv[])
{
	elapsedTime = 0;
	locateTime = 0;
	readTime = 0;
	groupProc=1;
	MPI_Init(&argc, &argv);
	MPI_Comm_rank(MPI_COMM_WORLD, &rank);
	MPI_Comm_size(MPI_COMM_WORLD, &nprocs);
	MPI_Get_processor_name(processor_name, &namelen);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xc(%rsp), %rdi
movl %esi, (%rdi)
leaq 0x10(%rsp), %rsi
movq %rdx, (%rsi)
xorps %xmm0, %xmm0
movups %xmm0, 0x248(%rbx)
andq $0x0, 0x258(%rbx)
movl $0x1, 0x278(%rbx)
callq 0x2350
movq 0x3df7(%rip), %r14      # 0x8f98
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2340
leaq 0x4(%rbx), %rsi
movq %r14, %rdi
callq 0x2290
leaq 0x8(%rbx), %rdi
addq $0x20c, %rbx            # imm = 0x20C
movq %rbx, %rsi
callq 0x2280
addq $0x18, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/mympi.cpp
// Function: MPIEnviroment::File_open(char*)
void MPIEnviroment::File_open(char *File_name)
{
	if(rank%this->groupProc)	return;
	clock_t startTime, endTime;

	startTime = clock();	
        rc = MPI_File_open(MPI_COMM_SELF, File_name, MPI_MODE_RDONLY, MPI_INFO_NULL, &cFile);

        if(rc) {
                printf("Proc:%d Unable to open file \"%s\"\n", rank, File_name); fflush(stdout);
                exit(0);
        }
        else    {
                printf("Proc:%d file\"%s\" opened ...\n", rank, File_name);
        }
	endTime = clock();
	elapsedTime += endTime-startTime;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl (%rdi), %eax
cltd
idivl 0x278(%rdi)
testl %edx, %edx
jne 0x5338
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2170
movq %rax, %r15
leaq 0x218(%rbx), %r8
movq 0x3cd6(%rip), %rdi      # 0x8fd0
movq 0x3cc7(%rip), %rcx      # 0x8fc8
pushq $0x2
popq %rdx
movq %r14, %rsi
callq 0x2180
movl %eax, 0x210(%rbx)
movl (%rbx), %esi
testl %eax, %eax
jne 0x533e
leaq 0x18b7(%rip), %rdi      # 0x6bd6
movq %r14, %rdx
xorl %eax, %eax
callq 0x2040
callq 0x2170
subq %r15, %rax
addq %rax, 0x248(%rbx)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x186f(%rip), %rdi      # 0x6bb4
movq %r14, %rdx
xorl %eax, %eax
callq 0x2040
movq 0x3c2a(%rip), %rax      # 0x8f80
movq (%rax), %rdi
callq 0x22a0
xorl %edi, %edi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/mympi.cpp
// Function: MPIEnviroment::File_read(char*, long long)
unsigned long long MPIEnviroment::File_read(char *buf, long long int n)
{
	if(rank%this->groupProc)	return 0;
	clock_t startTime, endTime;
	startTime = clock();
	long long int len = n<datasize? n : datasize;
	MPI_File_read_at_all(cFile, read_offset, buf, len, MPI_CHAR, &status);
	read_offset += len;	
	datasize -= len;
	endTime = clock();
	elapsedTime += endTime-startTime;
	readTime += endTime-startTime;
	return len;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl (%rdi), %eax
cltd
idivl 0x278(%rdi)
testl %edx, %edx
je 0x55bc
xorl %ebx, %ebx
jmp 0x5622
movq %rsi, %r15
movq %rdi, %r14
callq 0x2170
movq %rax, %r12
movq 0x218(%r14), %rdi
movq 0x238(%r14), %rax
cmpq %rbx, %rax
cmovlq %rax, %rbx
movq 0x240(%r14), %rsi
leaq 0x260(%r14), %r9
movq 0x3994(%rip), %r8       # 0x8f88
movq %r15, %rdx
movl %ebx, %ecx
callq 0x23b0
addq %rbx, 0x240(%r14)
subq %rbx, 0x238(%r14)
callq 0x2170
subq %r12, %rax
addq %rax, 0x248(%r14)
addq %rax, 0x258(%r14)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Mengjintao[P]SWAPCounter/src/mympi.cpp
// Function: MPIEnviroment::File_write(char*, char const*, unsigned long long)
void MPIEnviroment::File_write(char *filename, const char *buf, unsigned long long int n)
{
	clock_t startTime, endTime;
	startTime = clock();
	MPI_File writeFile;
	rc = MPI_File_open(MPI_COMM_WORLD, filename, MPI_MODE_CREATE|MPI_MODE_WRONLY, MPI_INFO_NULL, &writeFile);
//        rc = MPI_File_open(MPI_COMM_WORLD, filename, MPI_MODE_CREATE|MPI_MODE_APPEND, MPI_INFO_NULL, &writeFile);
        if(rc) {
                printf("Proc:%d Unable to open file \"%s\"\n", rank, filename); fflush(stdout);
                exit(0);
        }
        else    {
                printf("Proc:%d file\"%s\" was opened ...\n", rank, filename);
        }

	char *localBuf = const_cast<char*> (buf);
	unsigned long long  startPos;
	MPI_Scan(&n, &startPos, 1, MPI_UNSIGNED_LONG_LONG, MPI_SUM, MPI_COMM_WORLD);
	startPos = startPos-n;

	MPI_Status writeStatus;
	MPI_File_write_at_all(writeFile, startPos, localBuf, n, MPI_CHAR, &writeStatus);
	MPI_File_close(&writeFile);

	endTime = clock();
	elapsedTime += endTime-startTime;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rcx, 0x8(%rsp)
callq 0x2170
movq %rax, %r14
movq 0x393c(%rip), %rdi      # 0x8f98
movq 0x3965(%rip), %rcx      # 0x8fc8
pushq $0x5
popq %rdx
movq %rsp, %r8
movq %r12, %rsi
callq 0x2180
movl %eax, 0x210(%rbx)
movl (%rbx), %esi
testl %eax, %eax
jne 0x570e
leaq 0x15d8(%rip), %rdi      # 0x6c60
movq %r12, %rdx
xorl %eax, %eax
callq 0x2040
movq 0x3957(%rip), %rcx      # 0x8ff0
movq 0x38d8(%rip), %r8       # 0x8f78
movq 0x38f1(%rip), %r9       # 0x8f98
leaq 0x8(%rsp), %r12
leaq 0x10(%rsp), %r13
pushq $0x1
popq %rdx
movq %r12, %rdi
movq %r13, %rsi
callq 0x2270
movq (%r13), %rsi
movq (%r12), %rcx
subq %rcx, %rsi
movq %rsi, (%r13)
movq %rsp, %r12
movq (%r12), %rdi
movq 0x38ac(%rip), %r8       # 0x8f88
leaq 0x18(%rsp), %r9
movq %r15, %rdx
callq 0x2310
movq %r12, %rdi
callq 0x2380
callq 0x2170
subq %r14, %rax
addq %rax, 0x248(%rbx)
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x149f(%rip), %rdi      # 0x6bb4
movq %r12, %rdx
xorl %eax, %eax
callq 0x2040
movq 0x385a(%rip), %rax      # 0x8f80
movq (%rax), %rdi
callq 0x22a0
xorl %edi, %edi
callq 0x22c0
nop
// File: /workspace/github_cpp_makefile_star2_O2/ArashPartow[P]exprtk/exprtk_simple_example_03.cpp
// Function: void polynomial<double>()
void polynomial()
{
   typedef exprtk::symbol_table<T> symbol_table_t;
   typedef exprtk::expression<T>   expression_t;
   typedef exprtk::parser<T>       parser_t;

   const std::string expression_string =
      "25x^5 - 35x^4 - 15x^3 + 40x^2 - 15x + 1";

   const T r0 = T(0);
   const T r1 = T(1);
         T  x = T(0);

   symbol_table_t symbol_table;
   symbol_table.add_variable("x",x);

   expression_t expression;
   expression.register_symbol_table(symbol_table);

   parser_t parser;
   parser.compile(expression_string,expression);

   const T delta = T(1.0 / 100.0);

   for (x = r0; x <= r1; x += delta)
   {
      printf("%19.15f\t%19.15f\n", x, expression.value());
   }
}

// Assembly:
pushq %rbx
subq $0xad0, %rsp            # imm = 0xAD0
leaq 0x129dff(%rip), %rsi    # 0x23a101
leaq 0x38(%rsp), %rdi
leaq 0x1a8(%rsp), %rdx
callq 0x1102b8
andq $0x0, 0x8(%rsp)
movq %rsp, %rdi
pushq $0x1
popq %rsi
callq 0x11054e
leaq 0x129d2d(%rip), %rsi    # 0x23a059
leaq 0x1a8(%rsp), %rdi
leaq 0x58(%rsp), %rdx
callq 0x1102b8
movq %rsp, %rdi
leaq 0x1a8(%rsp), %rsi
leaq 0x8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x110572
leaq 0x1a8(%rsp), %rdi
callq 0x10e5b8
leaq 0x18(%rsp), %rdi
callq 0x1105de
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x11063e
leaq 0x58(%rsp), %rdi
pushq $0x7f
popq %rsi
callq 0x11069a
leaq 0x1a8(%rsp), %rdi
leaq 0x58(%rsp), %rsi
callq 0x1107aa
leaq 0x58(%rsp), %rdi
callq 0x110dc2
leaq 0x1a8(%rsp), %rdi
leaq 0x38(%rsp), %rsi
leaq 0x18(%rsp), %rdx
callq 0x110e0a
xorpd %xmm1, %xmm1
leaq 0x129d65(%rip), %rbx    # 0x23a129
movsd %xmm1, 0x8(%rsp)
movsd 0x124c36(%rip), %xmm0   # 0x235008
ucomisd %xmm1, %xmm0
jb 0x110411
movsd %xmm1, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movapd %xmm0, %xmm1
movq %rbx, %rdi
movsd 0x10(%rsp), %xmm0
movb $0x2, %al
callq 0x10e060
movsd 0x8(%rsp), %xmm1
addsd 0x124c01(%rip), %xmm1   # 0x235010
jmp 0x1103c4
leaq 0x1a8(%rsp), %rdi
callq 0x11128c
leaq 0x18(%rsp), %rdi
callq 0x1113c6
movq %rsp, %rdi
callq 0x1113dc
leaq 0x38(%rsp), %rdi
callq 0x10e5b8
addq $0xad0, %rsp            # imm = 0xAD0
popq %rbx
retq
jmp 0x110479
movq %rax, %rbx
leaq 0x58(%rsp), %rdi
callq 0x110dc2
jmp 0x110489
jmp 0x110456
movq %rax, %rbx
jmp 0x110489
jmp 0x11046f
movq %rax, %rbx
leaq 0x1a8(%rsp), %rdi
callq 0x10e5b8
jmp 0x110493
movq %rax, %rbx
jmp 0x110493
movq %rax, %rbx
jmp 0x11049b
movq %rax, %rbx
leaq 0x1a8(%rsp), %rdi
callq 0x11128c
leaq 0x18(%rsp), %rdi
callq 0x1113c6
movq %rsp, %rdi
callq 0x1113dc
leaq 0x38(%rsp), %rdi
callq 0x10e5b8
movq %rbx, %rdi
callq 0x10e310
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNGame.cpp
// Function: DNGame::DNGame(int)
DNGame::DNGame(int i) : y_offset(3), x_offset(0), playerOne(NULL), playerTwo(NULL)
{
    switch (i) {
    case 1:
    {
        initLocalGameTwoHumans();
        break;
    }
    case 2:
    {
        initLocalGameHumanVsCPU();
        break;
    }
    case 3:
    {
        initRemoteGameTwoHumans();
        break;
    }
    case 27:
    {
        initLocalGameTwoDumb();
        break;
    }
    default:
    {
        break;
    }
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
callq 0x4684
movl $0x3, 0x138a0(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x138a4(%rbx)
andl $0x0, 0x138b4(%rbx)
cmpl $0x1b, %ebp
je 0x3d83
cmpl $0x2, %ebp
je 0x3d6f
cmpl $0x3, %ebp
je 0x3d79
cmpl $0x1, %ebp
jne 0x3d8b
movq %rbx, %rdi
callq 0x3da4
jmp 0x3d8b
movq %rbx, %rdi
callq 0x3ed0
jmp 0x3d8b
movq %rbx, %rdi
callq 0x3fe2
jmp 0x3d8b
movq %rbx, %rdi
callq 0x409a
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x4714
movq %r14, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNGame.cpp
// Function: DNGame::initLocalGameTwoHumans()
void DNGame::initLocalGameTwoHumans()
{
    string nameOfFirstPlayer, nameOfSecondPlayer;
    DNWindow::getInstance().startLocalGameTwoHumans(nameOfFirstPlayer, nameOfSecondPlayer);
    this->playerOne = new DNHumanPlayer(nameOfFirstPlayer, DNCellState(CROSS), &map);
    this->playerTwo = new DNHumanPlayer(nameOfSecondPlayer, DNCellState(CIRCLE), &map);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
callq 0x381e
leaq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
callq 0x7150
pushq $0x50
popq %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x68(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x33f0
leaq 0x68(%rsp), %rsi
pushq $0x2
popq %rdx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x4200
movq %r14, 0x138a8(%rbx)
leaq 0x68(%rsp), %rdi
callq 0x3170
pushq $0x50
popq %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x33f0
leaq 0x48(%rsp), %rsi
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x4200
movq %r14, 0x138b0(%rbx)
leaq 0x48(%rsp), %rdi
callq 0x3170
leaq 0x8(%rsp), %rdi
callq 0x3170
leaq 0x28(%rsp), %rdi
callq 0x3170
addq $0x88, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x3e99
jmp 0x3ea0
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x3170
jmp 0x3ea3
movq %rax, %rbx
pushq $0x50
popq %rsi
movq %r14, %rdi
callq 0x32f0
jmp 0x3eb3
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
leaq 0x28(%rsp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNGame.cpp
// Function: DNGame::initLocalGameHumanVsCPU()
void DNGame::initLocalGameHumanVsCPU()
{
    string nameOfFirstPlayer;
    DNWindow::getInstance().startLocalGameHumanVsCPU(nameOfFirstPlayer);
    this->playerOne = new DNHumanPlayer(nameOfFirstPlayer, DNCellState(CROSS), &map);
//    this->playerTwo = new DNDumbBotPlayer("CPU",DNCellState(CIRCLE), & map);
    this->playerTwo =new DNSmarterBotPlayer("CPU", CIRCLE, &map);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rdi, %rbx
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
callq 0x381e
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x72f8
pushq $0x50
popq %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x48(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x33f0
leaq 0x48(%rsp), %rsi
pushq $0x2
popq %rdx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x4200
movq %r14, 0x138a8(%rbx)
leaq 0x48(%rsp), %rdi
callq 0x3170
movl $0x80, %edi
callq 0x32d0
movq %rax, %r14
leaq 0x4532(%rip), %rsi      # 0x8481
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3c1e
leaq 0x28(%rsp), %rsi
pushq $0x1
popq %rdx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x5e20
movq %r14, 0x138b0(%rbx)
leaq 0x28(%rsp), %rdi
callq 0x3170
leaq 0x8(%rsp), %rdi
callq 0x3170
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3170
jmp 0x3fa6
movq %rax, %rbx
movl $0x80, %esi
jmp 0x3fc2
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x3170
jmp 0x3fbf
movq %rax, %rbx
pushq $0x50
popq %rsi
movq %r14, %rdi
callq 0x32f0
jmp 0x3fcf
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNGame.cpp
// Function: DNGame::initRemoteGameTwoHumans()
void DNGame::initRemoteGameTwoHumans()
{
    string nameOfPlayer;
    int server = DNWindow::getInstance().startRemoteGameTwoHumans(nameOfPlayer);
    server--;
    this->playerOne = new DNRemoteHumanPlayer(nameOfPlayer, DNCellState(CROSS), &map, (bool)server);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
callq 0x381e
movq %rsp, %rsi
movq %rax, %rdi
callq 0x73e4
movl %eax, %ebp
pushq $0x58
popq %rdi
callq 0x32d0
movq %rax, %r14
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
callq 0x33f0
xorl %r8d, %r8d
cmpl $0x1, %ebp
setne %r8b
leaq 0x20(%rsp), %rsi
pushq $0x2
popq %rdx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x5594
movq %r14, 0x138a8(%rbx)
leaq 0x20(%rsp), %rdi
callq 0x3170
movq %rsp, %rdi
callq 0x3170
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x3170
jmp 0x4079
movq %rax, %rbx
pushq $0x58
popq %rsi
movq %r14, %rdi
callq 0x32f0
jmp 0x4089
movq %rax, %rbx
movq %rsp, %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNLogService.cpp
// Function: DNLogService::operator<<(int)
DNLogService &  DNLogService::operator << (const int num){
    stringstream tmp;
    tmp << num;
    log(tmp.str());
    return sharedObject();
}

// Assembly:
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movl %esi, %ebx
leaq 0x28(%rsp), %rdi
callq 0x31f0
leaq 0x38(%rsp), %rdi
movl %ebx, %esi
callq 0x34b0
leaq 0x40(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x3460
leaq 0x8(%rsp), %rsi
callq 0x44b0
leaq 0x8(%rsp), %rdi
callq 0x3170
callq 0x3c5a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3210
movq %rbx, %rax
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
jmp 0x4633
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3210
movq %rbx, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNMap.cpp
// Function: DNMap::DNMap()
DNMap::DNMap(){
    this->size = 100;
    this->col = 100;
    this->row = 100;
    this->goal = 5;
    for (size_t i = 0; i < 100; i++) {
        for (size_t j = 0; j < 100; j++) {
            my_map[i][j] = new DNCell(i,j);
        }
    }
   
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq $0x64, (%rdi)
movabsq $0x6400000064, %rax     # imm = 0x6400000064
movq %rax, 0x8(%rdi)
movl $0x5, 0x10(%rdi)
addq $0x18, %rbx
xorl %r14d, %r14d
pushq $0x18
popq %r15
cmpq $0x64, %r14
je 0x46f4
xorl %r12d, %r12d
cmpq $0x64, %r12
je 0x46e8
movq %r15, %rdi
callq 0x32d0
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x3856
movq %r13, (%rbx,%r12,8)
incq %r12
jmp 0x46c0
incq %r14
addq $0x320, %rbx            # imm = 0x320
jmp 0x46b7
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %rbx
pushq $0x18
popq %rsi
movq %r13, %rdi
callq 0x32f0
movq %rbx, %rdi
callq 0x34d0
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNMap.cpp
// Function: DNMap::debugToFile()
void DNMap::debugToFile()
{
    
    std::stringstream ss;
    for (size_t i = 0; i < size; i++) {
        for (size_t j = 0; j < size; j++) {
            if (my_map[i][j]->getState() == CROSS) {
                ss << "X";
            }else if (my_map[i][j]->getState() == CIRCLE) {
                ss << "O";
            }
            else {
                ss << '.';
            }
        }
        ss << endl;

    }
    ss << endl << endl;
    
    DNLogService::sharedObject().log(ss.str());

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdi, %rbx
leaq 0x30(%rsp), %rdi
callq 0x31f0
leaq 0x18(%rbx), %r15
leaq 0x40(%rsp), %r14
xorl %ecx, %ecx
leaq 0x38ff(%rip), %r13      # 0x80ab
leaq 0x38fa(%rip), %r12      # 0x80ad
movq (%rbx), %rax
cmpq %rax, %rcx
jae 0x481f
movq %rcx, 0x8(%rsp)
xorl %ebp, %ebp
cmpq %rax, %rbp
jae 0x4806
movq (%r15,%rbp,8), %rdi
callq 0x3868
movq %r13, %rsi
cmpl $0x2, %eax
je 0x47e9
movq (%r15,%rbp,8), %rdi
callq 0x3868
movq %r12, %rsi
cmpl $0x1, %eax
jne 0x47f3
movq %r14, %rdi
callq 0x32c0
jmp 0x47fe
movq %r14, %rdi
pushq $0x2e
popq %rsi
callq 0x3380
incq %rbp
movq (%rbx), %rax
jmp 0x47c2
movq %r14, %rdi
callq 0x3190
movq 0x8(%rsp), %rcx
incq %rcx
addq $0x320, %r15            # imm = 0x320
jmp 0x47b3
movq %r14, %rdi
callq 0x3190
movq %rax, %rdi
callq 0x3190
callq 0x3c5a
movq %rax, %rbx
leaq 0x48(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x3460
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x44b0
leaq 0x10(%rsp), %rdi
callq 0x3170
leaq 0x30(%rsp), %rdi
callq 0x3210
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3170
jmp 0x488f
jmp 0x488c
jmp 0x488c
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3210
movq %rbx, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNMap.cpp
// Function: DNMap::recordMove(DNCellState, int, int, DNCellState&)
bool DNMap::recordMove(DNCellState  player, int y, int x, DNCellState & winner){
    if (this->my_map[x][y]->getState() == EMPTY) {
//        this->filled.push_back(this->my_map[x][y]);
        this->my_map[x][y]->setState(player);
        winner = this->checkForWinnerWithSymbol(player);
        return true;
    }
    
    return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movl %esi, %ebp
movq %rdi, %r14
movslq %ecx, %rax
imulq $0x320, %rax, %r12      # imm = 0x320
addq %rdi, %r12
movslq %edx, %r13
movq 0x18(%r12,%r13,8), %rdi
callq 0x3868
movl %eax, %r15d
testl %eax, %eax
jne 0x4ae4
leaq (%r12,%r13,8), %rax
addq $0x18, %rax
movq (%rax), %rdi
movl %ebp, %esi
callq 0x3864
movq %r14, %rdi
movl %ebp, %esi
callq 0x48a2
movl %eax, (%rbx)
testl %r15d, %r15d
sete %al
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNNetworkConnection.cpp
// Function: DNNetworkConnection::sendData(int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool DNNetworkConnection::sendData(int socketDescriptor, string message)
{
    if (send(socketDescriptor, (void *) message . c_str(), message . size(), 0) < 0) {
        string fekalError("ERROR => Send failed!");
        DNLogService::sharedObject() << "ERROR => " << "Send failed!" << "\n";
        DNWindow::getInstance().terminateWithErrorMessage(fekalError);
        return false;
    }
    DNLogService::sharedObject() << "INFO => " << "This data sent ==> " << message << "\n";
    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, %r14
movl %esi, %edi
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
xorl %ecx, %ecx
callq 0x31a0
movq %rax, %rbx
testq %rax, %rax
js 0x53ab
callq 0x3c5a
leaq 0x2dd5(%rip), %rsi      # 0x8135
movq %rax, %rdi
callq 0x4576
leaq 0x2f64(%rip), %rsi      # 0x82d3
movq %rax, %rdi
callq 0x4576
movq %rax, %r15
leaq 0x48(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x33f0
movq %r15, %rdi
movq %r12, %rsi
callq 0x4646
leaq 0x3172(%rip), %rsi      # 0x850e
movq %rax, %rdi
callq 0x4576
leaq 0x48(%rsp), %rdi
jmp 0x5426
leaq 0x2f0b(%rip), %rsi      # 0x82bd
leaq 0x28(%rsp), %rdi
leaq 0x7(%rsp), %rdx
callq 0x3c1e
callq 0x3c5a
leaq 0x2ce2(%rip), %rsi      # 0x80af
movq %rax, %rdi
callq 0x4576
leaq 0x2eea(%rip), %rsi      # 0x82c6
movq %rax, %rdi
callq 0x4576
leaq 0x3123(%rip), %rsi      # 0x850e
movq %rax, %rdi
callq 0x4576
callq 0x381e
movq %rax, %r14
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x33f0
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x7060
leaq 0x8(%rsp), %rdi
callq 0x3170
leaq 0x28(%rsp), %rdi
callq 0x3170
testq %rbx, %rbx
setns %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
jmp 0x545e
movq %rax, %rbx
jmp 0x5468
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
jmp 0x5463
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x34d0
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNNetworkConnection.cpp
// Function: DNNetworkConnection::receiveData[abi:cxx11](int)
string DNNetworkConnection::receiveData(int socketDescriptor)
{
    char buffer[1024];
    /* cekame na data. navratova hodnota = pocet ziskanych bajtu */
    memset(buffer, 0, sizeof ( buffer));

    recv(socketDescriptor, buffer, sizeof ( buffer), 0);
    stringstream ss;
    ss << buffer;
    DNLogService::sharedObject() << "INFO => " << "This Data received" << ss.str() << "\n";
    return ss.str();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x5b8, %rsp            # imm = 0x5B8
movl %edx, %ebp
movq %rdi, %rbx
leaq 0x1b0(%rsp), %r14
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x31c0
movl $0x400, %edx            # imm = 0x400
movl %ebp, %edi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x3100
leaq 0x28(%rsp), %rdi
callq 0x31f0
leaq 0x38(%rsp), %rdi
movq %r14, %rsi
callq 0x32c0
callq 0x3c5a
leaq 0x2c68(%rip), %rsi      # 0x8135
movq %rax, %rdi
callq 0x4576
leaq 0x2e0b(%rip), %rsi      # 0x82e7
movq %rax, %rdi
callq 0x4576
movq %rax, %r15
leaq 0x40(%rsp), %r14
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x3460
leaq 0x8(%rsp), %rsi
movq %r15, %rdi
callq 0x4646
leaq 0x3001(%rip), %rsi      # 0x850e
movq %rax, %rdi
callq 0x4576
leaq 0x8(%rsp), %rdi
callq 0x3170
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3460
leaq 0x28(%rsp), %rdi
callq 0x3210
movq %rbx, %rax
addq $0x5b8, %rsp            # imm = 0x5B8
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
jmp 0x5557
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3210
movq %rbx, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNRemoteHumanPlayer.cpp
// Function: DNRemoteHumanPlayer::DNRemoteHumanPlayer(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, DNCellState, DNMap*, bool)
DNRemoteHumanPlayer::DNRemoteHumanPlayer(string nick, DNCellState symbol, DNMap* map, bool server)
{
    
    this->nick = nick;
    this->symbol = symbol;
    this->game_map = map;
    this->amIServer = server;
    if(server) this->clientSocket = DNNetworkConnection::getInstance().startServer();
    else this->clientSocket = DNNetworkConnection::getInstance().connectToServer();
    cout << server;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %r8d, %ebp
movq %rcx, %r14
movl %edx, %r15d
movq %rdi, %rbx
leaq 0x18(%rdi), %rax
movq %rax, 0x8(%rdi)
andq $0x0, 0x10(%rdi)
addq $0x8, %rdi
movb $0x0, 0x18(%rbx)
leaq 0x676d(%rip), %rax      # 0xbd30
movq %rax, (%rbx)
callq 0x31b0
movl %r15d, 0x28(%rbx)
movq %r14, 0x48(%rbx)
movb %bpl, 0x50(%rbx)
testb %bpl, %bpl
je 0x55eb
callq 0x5dde
movq %rax, %rdi
callq 0x4afc
jmp 0x55f8
callq 0x5dde
movq %rax, %rdi
callq 0x4fda
movl %eax, 0x54(%rbx)
movzbl %bpl, %esi
movq 0x69d2(%rip), %rdi      # 0xbfd8
callq 0x3480
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x4250
movq %r14, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNRemoteHumanPlayer.cpp
// Function: DNRemoteHumanPlayer::transferQuitGame()
void DNRemoteHumanPlayer::transferQuitGame()
{
    DNNetworkConnection::getInstance().sendData(this->clientSocket, string("QUIT"));
    //close connection;
    DNNetworkConnection::getInstance().closeConnection(this->clientSocket);
    DNWindow::getInstance().terminateWithErrorMessage(string("You Have Quited this game :(   "));
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
callq 0x5dde
movq %rax, %r14
movl 0x54(%rbx), %ebp
leaq 0x276d(%rip), %rsi      # 0x83b4
leaq 0x30(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3c1e
leaq 0x30(%rsp), %rdx
movq %r14, %rdi
movl %ebp, %esi
callq 0x532e
leaq 0x30(%rsp), %rdi
callq 0x3170
callq 0x5dde
movl 0x54(%rbx), %esi
movq %rax, %rdi
callq 0x556a
callq 0x381e
movq %rax, %rbx
leaq 0x272b(%rip), %rsi      # 0x83b9
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3c1e
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x7060
leaq 0x10(%rsp), %rdi
callq 0x3170
addq $0x50, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
jmp 0x5cd1
jmp 0x5cd8
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3170
jmp 0x5cdb
movq %rax, %rbx
movq %rbx, %rdi
callq 0x34d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNRemoteHumanPlayer.cpp
// Function: DNRemoteHumanPlayer::transferTurn(int, int)
void DNRemoteHumanPlayer::transferTurn(int y, int x)
{
    stringstream tmp;
    tmp << y << ';' << x << endl;
    DNLogService::sharedObject() << "going to sent data " << "\n";
    DNNetworkConnection::getInstance().sendData(this->clientSocket, tmp.str());
    DNLogService::sharedObject() << "data sent" << "\n";
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1b0, %rsp            # imm = 0x1B0
movl %edx, %ebp
movl %esi, %r14d
movq %rdi, %rbx
leaq 0x28(%rsp), %rdi
callq 0x31f0
leaq 0x38(%rsp), %rdi
movl %r14d, %esi
callq 0x34b0
pushq $0x3b
popq %rsi
movq %rax, %rdi
callq 0x3380
movq %rax, %rdi
movl %ebp, %esi
callq 0x34b0
movq %rax, %rdi
callq 0x3190
callq 0x3c5a
leaq 0x265f(%rip), %rsi      # 0x8396
movq %rax, %rdi
callq 0x4576
leaq 0x27c8(%rip), %rsi      # 0x850e
movq %rax, %rdi
callq 0x4576
callq 0x5dde
movq %rax, %r14
movl 0x54(%rbx), %ebx
leaq 0x40(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x3460
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movl %ebx, %esi
callq 0x532e
leaq 0x8(%rsp), %rdi
callq 0x3170
callq 0x3c5a
leaq 0x261d(%rip), %rsi      # 0x83aa
movq %rax, %rdi
callq 0x4576
leaq 0x2772(%rip), %rsi      # 0x850e
movq %rax, %rdi
callq 0x4576
leaq 0x28(%rsp), %rdi
callq 0x3210
addq $0x1b0, %rsp            # imm = 0x1B0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x3170
jmp 0x5dcc
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x3210
movq %rbx, %rdi
callq 0x34d0
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNWindow.cpp
// Function: DNWindow::init()
void DNWindow::init()
{
    initscr();
    raw();
    keypad(stdscr, TRUE);
    noecho();
    drawMainMenu();
    refresh();
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x3430
callq 0x30f0
movq 0x5af3(%rip), %rax      # 0xbfd0
movq (%rax), %rdi
pushq $0x1
popq %rsi
callq 0x3130
callq 0x3360
movq %rbx, %rdi
callq 0x64f6
nop
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNWindow.cpp
// Function: DNWindow::drawMainMenu()
void DNWindow::drawMainMenu()
{
    drawHeader();
    drawMenu();
    drawOptions();
    drawCommandLine();
    string input = "";
    drawCommandLine();
    inputString(input);
    executeMenuOption(input);


}

// Assembly:
pushq %rbx
subq $0x50, %rsp
movq %rdi, %rbx
callq 0x657a
callq 0x6a6e
callq 0x6796
callq 0x6ae2
leaq 0x1ff6(%rip), %rsi      # 0x850f
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x3c1e
callq 0x6ae2
leaq 0x10(%rsp), %rsi
movq %rbx, %rdi
callq 0x6c16
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x33f0
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x6d04
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x3170
jmp 0x6568
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x3170
movq %rbx, %rdi
callq 0x34d0
// File: /workspace/github_cpp_makefile_star2_O2/syky27[P]TicTacToe/src/DNWindow.cpp
// Function: DNWindow::drawHeader()
void DNWindow::drawHeader()
{
    struct winsize w;
    ioctl(STDOUT_FILENO, TIOCGWINSZ, &w);
    for (int i = 0; i < w.ws_col; i++) {
        if (i == 0) {
            addch(ACS_ULCORNER);
            continue;
        }
        if (i == w.ws_col - 1) {
            addch(ACS_URCORNER);
            continue;
        }
        addch(ACS_HLINE);
    }
    addch(ACS_VLINE);
    printw("TicTacToe\n");
    move(1, w.ws_col - 1);
    addch(ACS_VLINE);
    for (int i = 0; i < w.ws_col; i++) {
        if (i == 0) {
            addch(ACS_LLCORNER);
            continue;
        }
        if (i == w.ws_col - 1) {
            addch(ACS_LRCORNER);
            continue;
        }
        addch(ACS_HLINE);
    }
    refreshDN();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
xorl %ebp, %ebp
pushq $0x1
popq %rdi
movq %rsp, %rdx
movl $0x5413, %esi           # imm = 0x5413
xorl %eax, %eax
callq 0x3400
movl $0x1b0, %r15d           # imm = 0x1B0
movq 0x5a2e(%rip), %rbx      # 0xbfd0
movq 0x5a07(%rip), %r14      # 0xbfb0
movzwl 0x2(%rsp), %ecx
cmpl %ecx, %ebp
jae 0x65d8
decl %ecx
movl $0x1ac, %eax            # imm = 0x1AC
cmpl %ecx, %ebp
je 0x65c2
movl $0x1c4, %eax            # imm = 0x1C4
testl %ebp, %ebp
cmoveq %r15, %rax
movq (%rbx), %rdi
movl (%r14,%rax), %esi
callq 0x30d0
incl %ebp
jmp 0x65a9
movq (%rbx), %rdi
movl 0x1e0(%r14), %esi
callq 0x30d0
leaq 0x1e66(%rip), %rdi      # 0x8454
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x32e0
movzwl 0x2(%rsp), %esi
decl %esi
pushq $0x1
popq %rdi
callq 0x31e0
movq (%rbx), %rdi
movl 0x1e0(%r14), %esi
callq 0x30d0
movl $0x1b4, %r15d           # imm = 0x1B4
movzwl 0x2(%rsp), %ecx
cmpl %ecx, %ebp
jae 0x664a
decl %ecx
movl $0x1a8, %eax            # imm = 0x1A8
cmpl %ecx, %ebp
je 0x6634
movl $0x1c4, %eax            # imm = 0x1C4
testl %ebp, %ebp
cmoveq %r15, %rax
movq (%rbx), %rdi
movl (%r14,%rax), %esi
callq 0x30d0
incl %ebp
jmp 0x661b
callq 0x34a0
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq