LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::moveFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool, bool)
int FileSys::moveFile(string source, string dest, 
						bool sourceInFileSys, bool destInFileSys) {
	int ret = -1;
	if (source != dest) {
		ret = copyFile(source, dest, sourceInFileSys, destInFileSys);
		if (ret >= 0) {
			if (sourceInFileSys) {
				ret = removeFile(source);
			} else {
				ret = remove(source.c_str());
			}
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %ecx, %r12d
movq %rdx, %r13
movq %rsi, %r14
movq %rdi, 0x30(%rsp)
movq 0x8(%rsi), %rbx
cmpq 0x8(%rdx), %rbx
jne 0x426f
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x4363
movl %r8d, 0xc(%rsp)
movq (%r13), %rsi
movq (%r14), %rbp
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x2200
testl %eax, %eax
jne 0x4277
jmp 0x4363
movl %r8d, 0xc(%rsp)
movq (%r14), %rbp
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
addq %rbp, %rbx
leaq 0x10(%rsp), %rdi
movq %rbp, %rsi
movq %rbx, %rdx
callq 0x4e42
leaq 0x48(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x38(%rsp), %rdi
callq 0x4e42
movzbl %r12b, %ecx
movzbl 0xc(%rsp), %r8d
leaq 0x10(%rsp), %rsi
leaq 0x38(%rsp), %rdx
movq 0x30(%rsp), %r13
movq %r13, %rdi
callq 0x3416
movl %eax, %r15d
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x42ec
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x4308
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21f0
testl %r15d, %r15d
js 0x4363
testb %r12b, %r12b
je 0x4358
leaq 0x68(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
callq 0x4e42
movq %r13, %rdi
movq %rbx, %rsi
callq 0x40c6
movq (%rbx), %rdi
xorl %r15d, %r15d
cmpq %r12, %rdi
je 0x4363
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x4363
movq (%r14), %rdi
callq 0x23d0
movl %eax, %r15d
movl %r15d, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x38(%rsp), %rdi
cmpq %rbp, %rdi
je 0x4394
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x21f0
jmp 0x4394
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x43b0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::printFile(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int FileSys::printFile(string name) {
	int ret = -1;
	int index;
	int cluster;
	int leftOver;
	int offset;
	int clusterSize = boot->clusterSize;
	void *clusterData;

	index = findIndexForFile(name);
	if (index != -1) {
		clusterData = malloc(clusterSize);
		cluster = directoryTable[index].index;
		leftOver = directoryTable[index].size % clusterSize;

		while (fileAllocationTable[cluster] != 0xFFFF) {
			offset = clusterSize * cluster;
			fseek(file, offset, SEEK_SET);
			fread(clusterData, clusterSize, 1, file);
			cout << (char*)clusterData;
			cluster = fileAllocationTable[cluster];
		}
		offset = clusterSize * cluster;
		fseek(file, offset, SEEK_SET);
		while (leftOver > 0) {
			cout << (char)fgetc(file);
			leftOver--;
		}

		free(clusterData);
		ret = 0;
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x58(%rdi), %rax
movslq (%rax), %r14
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq 0x8(%rsp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x4e42
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3138
movl %eax, %ebp
movq (%r15), %rdi
cmpq %r12, %rdi
je 0x4416
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpl $-0x1, %ebp
je 0x4525
movq %r14, %rdi
callq 0x22b0
movq %rax, %r15
movslq %ebp, %rax
movq 0x38(%rbx), %rsi
movq 0x40(%rbx), %rdx
shlq $0x7, %rax
movl 0x70(%rdx,%rax), %ecx
movl 0x74(%rdx,%rax), %eax
xorl %edx, %edx
divl %r14d
movl %edx, %r12d
movslq %ecx, %rbp
cmpl $0xffff, (%rsi,%rbp,4)  # imm = 0xFFFF
je 0x44cb
movq 0x6b74(%rip), %r13      # 0xafd0
movslq %ecx, %rsi
imulq %r14, %rsi
movq 0x20(%rbx), %rdi
xorl %edx, %edx
callq 0x2220
movq 0x20(%rbx), %rcx
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rsi
callq 0x22e0
testq %r15, %r15
je 0x449f
movq %r15, %rdi
callq 0x20b0
movq %r13, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x2240
jmp 0x44b8
movq (%r13), %rax
movq -0x18(%rax), %rax
leaq (%rax,%r13), %rdi
movl 0x20(%r13,%rax), %esi
orl $0x1, %esi
callq 0x2380
movq 0x38(%rbx), %rax
movl (%rax,%rbp,4), %ecx
movslq %ecx, %rbp
cmpl $0xffff, (%rax,%rbp,4)  # imm = 0xFFFF
jne 0x445c
imull %ecx, %r14d
movq 0x20(%rbx), %rdi
movslq %r14d, %rsi
xorl %ebp, %ebp
xorl %edx, %edx
callq 0x2220
testl %r12d, %r12d
jle 0x451b
movq 0x6ae5(%rip), %r14      # 0xafd0
leaq 0x7(%rsp), %r13
movq 0x20(%rbx), %rdi
callq 0x2350
movb %al, 0x7(%rsp)
movl $0x1, %edx
movq %r14, %rdi
movq %r13, %rsi
callq 0x2240
leal -0x1(%r12), %eax
cmpl $0x1, %r12d
movl %eax, %r12d
ja 0x44f0
movq %r15, %rdi
callq 0x2260
jmp 0x452a
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/emr4378[P]FAT-File-System/FileSys.cpp
// Function: FileSys::printInfo(int, std::vector<DirectoryTableEntry, std::allocator<DirectoryTableEntry>>*)
void FileSys::printInfo(int width, vector<DirectoryTableEntry> *table) {
	printFAT(width);
	showStructure();
	if (table != NULL) {
		printDirectoryTable(*table);
	}
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbx
movq %rdi, %r14
callq 0x49d4
movq %r14, %rdi
callq 0x453c
testq %rbx, %rbx
je 0x49ab
movq %rsp, %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4dbe
movq %r14, %rsi
callq 0x2bfc
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x49ab
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21f0
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x49cc
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::prompt()
void Shell::prompt() {
	char input[256];
	do {
		cout << "os1shell->";
		cin.getline(input, 256);
		runCommand(input);
		
	} while (!cin.eof());
	cout << endl;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movq %rdi, %r14
leaq 0x10(%rsp), %rbx
movq 0x531c(%rip), %r15      # 0xafd0
movq 0x5325(%rip), %r12      # 0xafe0
leaq 0x20(%rsp), %r13
movq %rsp, %rbp
movl $0xa, %edx
movq %r15, %rdi
leaq 0x2529(%rip), %rsi      # 0x81fb
callq 0x2240
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %ecx
movl $0x100, %edx            # imm = 0x100
movq %r12, %rdi
movq %r13, %rsi
callq 0x2400
movq %rbx, (%rsp)
movq %r13, %rdi
callq 0x20b0
leaq (%rsp,%rax), %rdx
addq $0x20, %rdx
movq %rbp, %rdi
movq %r13, %rsi
callq 0x50cc
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5dae
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x5d3f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
movq (%r12), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x20(%r12,%rax)
je 0x5cc3
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq (%rsp), %rdi
cmpq %rbx, %rdi
je 0x5da5
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %r14, %rdi
callq 0x23b0
nop
// File: /workspace/github_cpp_makefile_star2_O3/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::getTokens(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
void Shell::getTokens(string orig, string delims, string tokens[]) {
	int i;
	int j;
	int lastPos;
	int c;
	string origDup;
	string token;

	origDup = orig;
	j = 0;
	lastPos = 0;
	i = 0;

	while ( ( j = origDup.find_first_of(delims, lastPos) ) != -1 ) {
		token = origDup.substr(lastPos, j-lastPos);
		if (!token.empty()) {
			tokens[i] = token;
			i++;
		}
		lastPos = j + 1;
	}
	token = origDup.substr(lastPos);
	tokens[i] = token;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, (%rsp)
movq %rdx, %r14
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
xorl %eax, %eax
movq %rax, -0x8(%r15)
movb %al, (%r15)
leaq 0x18(%rsp), %r12
movq %r12, -0x10(%r12)
movq %rax, -0x8(%r12)
movb %al, (%r12)
leaq 0x28(%rsp), %rdi
callq 0x20f0
movq (%r14), %rsi
movq 0x8(%r14), %rcx
xorl %ebp, %ebp
leaq 0x28(%rsp), %rdi
xorl %edx, %edx
callq 0x2300
movq %rax, %r13
movl $0x0, %ebx
cmpl $-0x1, %r13d
je 0x642e
leaq 0x28(%rsp), %r12
xorl %ebx, %ebx
xorl %r15d, %r15d
movl %r13d, %eax
subl %r15d, %eax
movslq %eax, %rcx
leaq 0x48(%rsp), %r15
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x2210
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2280
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x63da
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21f0
cmpq $0x0, 0x10(%rsp)
je 0x63f9
movslq %ebp, %rdi
shlq $0x5, %rdi
addq (%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x20f0
incl %ebp
movl %r13d, %r15d
incl %r15d
movslq %r15d, %rbx
movq (%r14), %rsi
movq 0x8(%r14), %rcx
movq %r12, %rdi
movq %rbx, %rdx
callq 0x2300
movq %rax, %r13
cmpl $-0x1, %r13d
jne 0x6395
movslq %ebp, %rbp
leaq 0x38(%rsp), %r15
leaq 0x18(%rsp), %r12
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x2210
leaq 0x8(%rsp), %rdi
leaq 0x48(%rsp), %rbx
movq %rbx, %rsi
callq 0x2280
movq (%rbx), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6473
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x21f0
shlq $0x5, %rbp
movq (%rsp), %rdi
addq %rbp, %rdi
leaq 0x8(%rsp), %rsi
callq 0x20f0
movq 0x8(%rsp), %rdi
cmpq %r12, %rdi
je 0x649f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0x64b6
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21f0
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x64cb
jmp 0x64cb
jmp 0x64cb
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x64ea
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6506
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21f0
movq %rbx, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::isCommandSupported(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool Shell::isCommandSupported(string cmd) {
	string cmds[] = {"ls", "touch", "cp", "mv", "rm", "df", "cat"};
	int i;
	bool ret = false;
	for (i = 0; i < 7 && ret == false; i++) {
		if (cmd == cmds[i]) {
			ret = true;
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xe8, %rsp
movq %rsi, %r15
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1892(%rip), %rsi      # 0x8036
leaq 0x188d(%rip), %rdx      # 0x8038
movq %rsp, %rbx
movq %rbx, %rdi
callq 0x50cc
leaq 0x20(%rsp), %r14
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a7c(%rip), %rsi      # 0x8247
leaq 0x1a7a(%rip), %rdx      # 0x824c
movq %r14, %rdi
callq 0x50cc
leaq 0x40(%rsp), %r14
leaq 0x50(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a5e(%rip), %rsi      # 0x824d
leaq 0x1a59(%rip), %rdx      # 0x824f
movq %r14, %rdi
callq 0x50cc
leaq 0x60(%rsp), %r14
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a3d(%rip), %rsi      # 0x8250
leaq 0x1a38(%rip), %rdx      # 0x8252
movq %r14, %rdi
callq 0x50cc
leaq 0x80(%rsp), %r14
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x1a16(%rip), %rsi      # 0x8253
leaq 0x1a11(%rip), %rdx      # 0x8255
movq %r14, %rdi
callq 0x50cc
leaq 0xa0(%rsp), %r14
leaq 0xb0(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x19ef(%rip), %rsi      # 0x8256
leaq 0x19ea(%rip), %rdx      # 0x8258
movq %r14, %rdi
callq 0x50cc
leaq 0xc0(%rsp), %r14
leaq 0xd0(%rsp), %r12
movq %r12, -0x10(%r12)
leaq 0x19c7(%rip), %rsi      # 0x8259
leaq 0x19c3(%rip), %rdx      # 0x825c
movq %r14, %rdi
callq 0x50cc
movq 0x8(%r15), %r14
movq $-0x1, %r13
leaq 0x8(%rsp), %rbp
cmpq (%rbp), %r14
jne 0x68d1
movb $0x1, %bl
testq %r14, %r14
je 0x68e0
movq -0x8(%rbp), %rsi
movq (%r15), %rdi
movq %r14, %rdx
callq 0x2200
testl %eax, %eax
je 0x68e0
incq %r13
addq $0x20, %rbp
cmpq $0x6, %r13
jb 0x68b1
xorl %ebx, %ebx
movq $-0xe0, %r14
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x68fd
movq (%r12), %rsi
incq %rsi
callq 0x21f0
addq $-0x20, %r12
addq $0x20, %r14
jne 0x68e7
movl %ebx, %eax
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6925
jmp 0x6925
jmp 0x6925
jmp 0x6925
jmp 0x6925
movq %rax, %r15
addq $-0x10, %r14
movq -0x10(%r14), %rdi
cmpq %rdi, %r14
je 0x6940
movq (%r14), %rsi
incq %rsi
callq 0x21f0
leaq -0x20(%r14), %rax
addq $-0x10, %r14
cmpq %rbx, %r14
movq %rax, %r14
jne 0x692c
movq %r15, %rdi
callq 0x23b0
// File: /workspace/github_cpp_makefile_star2_O3/emr4378[P]FAT-File-System/Shell.cpp
// Function: Shell::runRealCommand(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>*)
int Shell::runRealCommand(string tokens[]) {
	int ret = -1;
	int i;
	char* args[256];
	cout << "Command: ";
	i = 0;
	while (!tokens[i].empty()) {
		args[i] = (char*)malloc(sizeof(char)*tokens[i].length());
		strcpy(args[i], tokens[i].c_str());
		cout << args[i] << " ";
		i++;
	}
	args[i] = NULL;
	cout << endl;

	pid_t pID = fork();
	if (pID == 0) {
		//success,  Child stuffs
		execvp(*args, args);
		cout << "Not a valid command" << endl;
		exit(0);
	} else if (pID < 0) {
		//failure :(
		exit(-1);
	} else {
		//parent stuffs
		int status;
		pid_t tpid;
		do {
			tpid = wait(&status);
		} while (tpid != pID);

		while (i>0) {
			free(args[i]);
			i--;
		}

		ret = 0;
	}

	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x810, %rsp            # imm = 0x810
movq %rsi, %r14
movq 0x3ed6(%rip), %rbx      # 0xafd0
leaq 0x115c(%rip), %rsi      # 0x825d
movl $0x9, %edx
movq %rbx, %rdi
callq 0x2240
movq 0x8(%r14), %rdi
testq %rdi, %rdi
je 0x7192
xorl %r13d, %r13d
leaq 0x107d(%rip), %r15      # 0x819e
callq 0x22b0
movq %rax, %r12
movq %rax, 0x10(%rsp,%r13,8)
movq (%r14), %rsi
movq %rax, %rdi
callq 0x21a0
testq %r12, %r12
je 0x7156
movq %r12, %rdi
callq 0x20b0
movq %rbx, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x2240
jmp 0x716d
movq (%rbx), %rax
movq -0x18(%rax), %rax
leaq (%rbx,%rax), %rdi
movl 0x20(%rbx,%rax), %esi
orl $0x1, %esi
callq 0x2380
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x2240
incq %r13
movq 0x28(%r14), %rdi
addq $0x20, %r14
testq %rdi, %rdi
jne 0x7121
movl %r13d, %r15d
jmp 0x7198
xorl %r15d, %r15d
xorl %r13d, %r13d
movq $0x0, 0x10(%rsp,%r13,8)
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2050
movq %rax, %rdi
callq 0x2120
callq 0x2060
testl %eax, %eax
je 0x7217
js 0x7246
movl %eax, %ebx
leaq 0xc(%rsp), %r14
movq %r14, %rdi
callq 0x2290
cmpl %ebx, %eax
jne 0x71da
testl %r15d, %r15d
jle 0x7204
movl %r15d, %ebx
incq %rbx
movq 0x8(%rsp,%rbx,8), %rdi
callq 0x2260
decq %rbx
cmpq $0x1, %rbx
ja 0x71f1
xorl %eax, %eax
addq $0x810, %rsp            # imm = 0x810
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x10(%rsp), %rsi
movq (%rsi), %rdi
callq 0x2140
movq 0x3da5(%rip), %rdi      # 0xafd0
leaq 0x1035(%rip), %rsi      # 0x8267
callq 0x21c0
movq %rax, %rdi
callq 0x20c0
xorl %edi, %edi
callq 0x2270
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O3/marxn[P]pupp/3rdparty/gmp/gen-fib.c
// Function: header
void
header (int numb_bits)
{
  printf ("/* This file generated by gen-fib.c - DO NOT EDIT. */\n");
  printf ("\n");
  printf ("#if GMP_NUMB_BITS != %d\n", numb_bits);
  printf ("Error, error, this data is for %d bits\n", numb_bits);
  printf ("#endif\n");
  printf ("\n");
  printf ("#define FIB_TABLE_LIMIT         %d\n", fib_limit);
  printf ("#define FIB_TABLE_LUCNUM_LIMIT  %d\n", luc_limit);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x295c(%rip), %rdi      # 0xb45b
callq 0x1060
movl $0xa, %edi
callq 0x1040
leaq 0x1ff6(%rip), %rdi      # 0xab0b
movl %ebx, %esi
xorl %eax, %eax
callq 0x1080
leaq 0x1fff(%rip), %rdi      # 0xab24
movl %ebx, %esi
xorl %eax, %eax
callq 0x1080
leaq 0x2983(%rip), %rdi      # 0xb4b8
callq 0x1060
movl $0xa, %edi
callq 0x1040
movl 0x658a(%rip), %esi      # 0xf0d4
leaq 0x1ffb(%rip), %rdi      # 0xab4c
xorl %eax, %eax
callq 0x1080
movl 0x657a(%rip), %esi      # 0xf0d8
leaq 0x200b(%rip), %rdi      # 0xab70
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x1080
// File: /workspace/github_cpp_makefile_star2_O3/marxn[P]pupp/3rdparty/gmp/gen-fib.c
// Function: table
void
table (int numb_bits)
{
  int  i;

  printf ("/* This file generated by gen-fib.c - DO NOT EDIT. */\n");
  printf ("\n");
  printf ("#include \"gmp.h\"\n");
  printf ("#include \"gmp-impl.h\"\n");
  printf ("\n");
  printf ("#if GMP_NUMB_BITS != %d\n", numb_bits);
  printf ("Error, error, this data is for %d bits\n", numb_bits);
  printf ("#endif\n");
  printf ("\n");
  printf ("const mp_limb_t\n");
  printf ("__gmp_fib_table[FIB_TABLE_LIMIT+2] = {\n");

  for (i = 0; i < fnum; i++)
    {
      printf ("  CNST_LIMB (0x");
      mpz_out_str (stdout, 16, f[i]);
      printf ("),  /* %d */\n", i-1);
    }
  printf ("};\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edi, %ebx
leaq 0x28d2(%rip), %rdi      # 0xb45b
callq 0x1060
movl $0xa, %edi
callq 0x1040
leaq 0x28f2(%rip), %rdi      # 0xb491
callq 0x1060
leaq 0x28f7(%rip), %rdi      # 0xb4a2
callq 0x1060
movl $0xa, %edi
callq 0x1040
leaq 0x1f4a(%rip), %rdi      # 0xab0b
movl %ebx, %esi
xorl %eax, %eax
callq 0x1080
leaq 0x1f53(%rip), %rdi      # 0xab24
movl %ebx, %esi
xorl %eax, %eax
callq 0x1080
leaq 0x28d7(%rip), %rdi      # 0xb4b8
callq 0x1060
movl $0xa, %edi
callq 0x1040
leaq 0x28c8(%rip), %rdi      # 0xb4bf
callq 0x1060
leaq 0x28cc(%rip), %rdi      # 0xb4cf
callq 0x1060
cmpl $0x0, 0x64c1(%rip)      # 0xf0d0
jle 0x8c6e
leaq 0x1f7c(%rip), %rbx      # 0xab94
movq 0x63b9(%rip), %r15      # 0xefd8
leaq 0x1f7e(%rip), %r14      # 0xaba4
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1080
movq (%r15), %rdi
movq 0x6488(%rip), %rdx      # 0xf0c8
addq %r12, %rdx
movl $0x10, %esi
callq 0x802f
leal -0x1(%r13), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1080
incq %r13
movslq 0x646b(%rip), %rax      # 0xf0d0
addq $0x10, %r12
cmpq %rax, %r13
jl 0x8c2c
leaq 0x2881(%rip), %rdi      # 0xb4f6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1060
// File: /workspace/github_cpp_makefile_star2_O3/marxn[P]pupp/3rdparty/gmp/gen-fib.c
// Function: main
int
main (int argc, char *argv[])
{
  int  limb_bits, nail_bits, numb_bits;

  if (argc != 4)
    {
      fprintf (stderr, "Usage: gen-fib <header|table> <limbbits> <nailbits>\n");
      exit (1);
    }

  limb_bits = atoi (argv[2]);
  nail_bits = atoi (argv[3]);

  if (limb_bits <= 0
      || nail_bits < 0
      || nail_bits >= limb_bits)
    {
      fprintf (stderr, "Invalid limb/nail bits: %d %d\n",
               limb_bits, nail_bits);
      exit (1);
    }
  numb_bits = limb_bits - nail_bits;

  generate (numb_bits);

  if (strcmp (argv[1], "header") == 0)
    header (numb_bits);
  else if (strcmp (argv[1], "table") == 0)
    table (numb_bits);
  else
    {
      fprintf (stderr, "Invalid header/table choice: %s\n", argv[1]);
      exit (1);
    }

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpl $0x4, %edi
jne 0x8d0d
movq %rsi, %r14
movq 0x10(%rsi), %rdi
callq 0x10f0
movl %eax, %r15d
movq 0x18(%r14), %rdi
callq 0x10f0
testl %r15d, %r15d
jle 0x8d12
testl %eax, %eax
js 0x8d12
movl %r15d, %ebx
subl %eax, %ebx
jle 0x8d12
movl %ebx, %edi
callq 0x8906
movq 0x8(%r14), %r14
leaq 0x1f35(%rip), %rsi      # 0xac06
movq %r14, %rdi
callq 0x10b0
testl %eax, %eax
je 0x8cf9
leaq 0x1f29(%rip), %rsi      # 0xac0d
movq %r14, %rdi
callq 0x10b0
testl %eax, %eax
jne 0x8d1c
movl %ebx, %edi
callq 0x8b72
jmp 0x8d00
movl %ebx, %edi
callq 0x8af0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x12a8
movl %r15d, %edi
movl %eax, %esi
callq 0x12d0
movq %r14, %rdi
callq 0x12f8
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/film.cpp
// Function: film::film(int, double, double, double, int, double)
film::film(int L, double dx, double dt, double b, int ugao, double sigma): L(L), dx(dx), dt(dt), b(b), angle(ugao), sigma(sigma)
{
    h     = new double [L];
    y     = new double [L];
    q     = new double [L];
    r     = new double [L];
    r_fix = new double [L];
    
    noise = new double [L+2];
    ind   = new int    [L+4];     // Determines boundary conditions
    
    h2    = new double [L];       // To make calculations faster -> h2 = h^2, h3=h^3, ...
    h3    = new double [L];
    y2    = new double [L];
    y3    = new double [L];
    old_sol = new double [L];
    
    a = new double *[L];
    for(int i=0;i<L;i++)
        a[i]=new double [5];

    
    double a_min = 1.0;
    
    A     = 2*(1-cos(PI*ugao/180))*(a_min*b);
    B     = A*(a_min*b); // vdW: The min of vdW potential determins B..
    tol   = 1e-10;
    theta = 0.5;
    create_boundary_conditions(ind, L); // ind - index for h, includes zero-der. boundary conditions
    
    
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r14
movsd %xmm0, 0x8(%rdi)
movsd %xmm1, 0x10(%rdi)
movsd %xmm2, 0x8(%rsp)
movsd %xmm2, 0x18(%rdi)
movl %esi, 0x20(%rdi)
xorps %xmm0, %xmm0
cvtsi2sd %edx, %xmm0
movsd %xmm0, (%rsp)
movsd %xmm0, 0x88(%rdi)
movsd %xmm3, 0xa0(%rdi)
movaps 0x4403(%rip), %xmm0     # 0x7140
movups %xmm0, 0xa8(%rdi)
movl %esi, %r12d
leaq (,%r12,8), %r15
testl %esi, %esi
movq $-0x1, %r13
cmovsq %r13, %r15
movq %r15, %rdi
callq 0x2030
movq %rax, (%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x30(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x38(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x40(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x48(%r14)
leal 0x2(%rbx), %edi
shlq $0x3, %rdi
cmpl $-0x2, %ebx
cmovlq %r13, %rdi
callq 0x2030
movq %rax, 0x70(%r14)
leal 0x4(%rbx), %edi
shlq $0x2, %rdi
cmpl $-0x4, %ebx
cmovlq %r13, %rdi
callq 0x2030
movq %rax, 0x80(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x50(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x58(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x60(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x68(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x78(%r14)
movq %r15, %rdi
callq 0x2030
movq %rax, 0x28(%r14)
testl %ebx, %ebx
jle 0x2e31
xorl %r15d, %r15d
movl $0x28, %edi
callq 0x2030
movq 0x28(%r14), %rcx
movq %rax, (%rcx,%r15,8)
incq %r15
cmpq %r15, %r12
jne 0x2e17
movsd (%rsp), %xmm0
mulsd 0x4352(%rip), %xmm0     # 0x7190
divsd 0x4352(%rip), %xmm0     # 0x7198
callq 0x2360
movsd 0x41cd(%rip), %xmm1     # 0x7020
subsd %xmm0, %xmm1
addsd %xmm1, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd %xmm0, %xmm1
movsd %xmm1, 0x90(%r14)
mulsd %xmm0, %xmm1
movsd %xmm1, 0x98(%r14)
movaps 0x42be(%rip), %xmm0     # 0x7140
movups %xmm0, 0xa8(%r14)
movq 0x80(%r14), %rdi
movl %ebx, %esi
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x4362
nop
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/film.cpp
// Function: film::set_h2_3()
void film::set_h2_3()
{
    for(int i=0;i<L;i++)
    {
        y[i]=h[i];
        h2[i]=h[i]*h[i];
        h3[i]=h[i]*h2[i];
    }
    
}

// Assembly:
movslq 0x20(%rdi), %rax
testq %rax, %rax
jle 0x2eeb
movq (%rdi), %rcx
movq 0x30(%rdi), %rdx
movq 0x50(%rdi), %rsi
movq 0x58(%rdi), %rdi
xorl %r8d, %r8d
movsd (%rcx,%r8,8), %xmm0
movsd %xmm0, (%rdx,%r8,8)
mulsd %xmm0, %xmm0
movsd %xmm0, (%rsi,%r8,8)
mulsd (%rcx,%r8,8), %xmm0
movsd %xmm0, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rax
jne 0x2ec1
retq
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/film.cpp
// Function: film::create_noise(long*)
void film::create_noise(long *inic)
{
    double dht=sqrt(dt*sigma);
    static boost::variate_generator<boost::mt19937, boost::normal_distribution<> >
    generator(boost::mt19937(time(0)),boost::normal_distribution<>());

    
    for(int i=0;i<L;i++)
        noise[i+1]=dht/dx * sqrt(h3[i]/dx) * generator();
    
    // Boundary conditions for the noise:
    noise[0]=0;
    noise[1]=0;
    noise[2]=0;
    noise[L+1]=0;
    noise[L]=0;
    noise[L-1]=0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x9e8, %rsp            # imm = 0x9E8
movq %rdi, %rbx
movsd 0x10(%rdi), %xmm0
mulsd 0xa0(%rdi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2f52
sqrtsd %xmm0, %xmm0
jmp 0x2f57
callq 0x2150
movsd %xmm0, 0x18(%rsp)
movb 0x8c5d(%rip), %al       # 0xbbc0
testb %al, %al
je 0x3035
movslq 0x20(%rbx), %rax
testq %rax, %rax
jle 0x3009
xorl %r12d, %r12d
leaq 0x8266(%rip), %r14      # 0xb1e8
leaq 0x14(%rsp), %r15
movsd 0x8(%rbx), %xmm1
movq 0x58(%rbx), %rax
movsd (%rax,%r12,8), %xmm0
divsd %xmm1, %xmm0
ucomisd 0x41fe(%rip), %xmm0     # 0x71a0
jb 0x2faa
sqrtsd %xmm0, %xmm0
jmp 0x2fbb
movsd %xmm1, 0x8(%rsp)
callq 0x2150
movsd 0x8(%rsp), %xmm1
movsd 0x18(%rsp), %xmm2
divsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
movsd %xmm2, 0x8(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x3674
mulsd 0x8bd6(%rip), %xmm0     # 0xbbb8
addsd 0x8bc6(%rip), %xmm0     # 0xbbb0
mulsd 0x8(%rsp), %xmm0
movq 0x70(%rbx), %rcx
movsd %xmm0, 0x8(%rcx,%r12,8)
incq %r12
movslq 0x20(%rbx), %rax
cmpq %rax, %r12
jl 0x2f87
jmp 0x300d
movq 0x70(%rbx), %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, (%rcx)
xorl %edx, %edx
movq %rdx, 0x10(%rcx)
movq %rdx, 0x8(%rcx,%rax,8)
movupd %xmm0, -0x8(%rcx,%rax,8)
addq $0x9e8, %rsp            # imm = 0x9E8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x8b84(%rip), %rdi      # 0xbbc0
callq 0x2340
testl %eax, %eax
je 0x2f6b
xorl %edi, %edi
callq 0x21a0
leaq 0x14(%rsp), %rsi
movl %eax, (%rsi)
leaq 0x20(%rsp), %rdi
callq 0x35f6
leaq 0x8180(%rip), %rdi      # 0xb1e8
leaq 0x20(%rsp), %rsi
movl $0x9c8, %edx            # imm = 0x9C8
callq 0x2160
xorpd %xmm0, %xmm0
movhpd 0x3f9d(%rip), %xmm0     # xmm0 = xmm0[0],mem[0]
movupd %xmm0, 0x8b25(%rip)     # 0xbbb0
leaq 0x8b2e(%rip), %rdi      # 0xbbc0
callq 0x20f0
jmp 0x2f6b
movq %rax, %rbx
leaq 0x8b1a(%rip), %rdi      # 0xbbc0
callq 0x20e0
movq %rbx, %rdi
callq 0x2310
nop
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/film.cpp
// Function: film::create_funcional_st(double*, double*, double*, double)
void film::create_funcional_st(double *r1, double *h1, double *h13, double theta1)
{
    double dx4dt=dt/(dx*dx*dx*dx);
    
    for(int i=0;i<L;i++)
    {
        r1[i]=h1[i] - dx4dt*theta1*(
                       0.5*( h13[i]+h13[ind[i+3]] ) * (h1[ind[i+4]]-3*h1[ind[i+3]]+3*h1[i]-h1[ind[i+1]])
                      -0.5*( h13[ind[i+1]]+h13[i] ) * (h1[ind[i+3]]-3*h1[i]+3*h1[ind[i+1]]-h1[ind[i]]  )
                       );
    }
}

// Assembly:
movslq 0x20(%rdi), %rax
testq %rax, %rax
jle 0x31c4
movsd 0x8(%rdi), %xmm1
movapd %xmm1, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
mulsd %xmm1, %xmm2
movq 0x80(%rdi), %r8
movsd 0x10(%rdi), %xmm1
xorpd 0x4066(%rip), %xmm1     # 0x7150
divsd %xmm2, %xmm1
mulsd %xmm0, %xmm1
movl (%r8), %r9d
xorl %edi, %edi
movsd 0x40a9(%rip), %xmm0     # 0x71a8
movsd 0x40a9(%rip), %xmm2     # 0x71b0
movsd 0x40a9(%rip), %xmm3     # 0x71b8
movsd 0x40a9(%rip), %xmm4     # 0x71c0
movsd (%rdx,%rdi,8), %xmm5
movsd (%rcx,%rdi,8), %xmm6
movslq 0xc(%r8,%rdi,4), %r10
movsd (%rcx,%r10,8), %xmm7
addsd %xmm6, %xmm7
mulsd %xmm0, %xmm7
movslq 0x10(%r8,%rdi,4), %r11
movsd (%rdx,%r10,8), %xmm8
movapd %xmm5, %xmm9
mulsd %xmm2, %xmm9
addsd %xmm8, %xmm9
mulsd %xmm2, %xmm8
addsd (%rdx,%r11,8), %xmm8
movapd %xmm5, %xmm10
mulsd %xmm3, %xmm10
addsd %xmm8, %xmm10
movslq %r9d, %r9
movslq 0x4(%r8,%rdi,4), %r10
movsd (%rdx,%r10,8), %xmm8
subsd %xmm8, %xmm10
mulsd %xmm7, %xmm10
addsd (%rcx,%r10,8), %xmm6
mulsd %xmm3, %xmm8
addsd %xmm9, %xmm8
subsd (%rdx,%r9,8), %xmm8
mulsd %xmm4, %xmm6
mulsd %xmm8, %xmm6
addsd %xmm10, %xmm6
mulsd %xmm1, %xmm6
addsd %xmm5, %xmm6
movsd %xmm6, (%rsi,%rdi,8)
leaq 0x1(%rdi), %r11
movl %r10d, %r9d
movq %r11, %rdi
cmpq %r11, %rax
jne 0x3117
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/film.cpp
// Function: film::create_funcional_add_vdw_noise()
void film::create_funcional_add_vdw_noise()
{
    double dx2dt=dt/(dx*dx);
    
    for(int i=0;i<L;i++)
        r_fix[i] = r_fix[i] + dx2dt*(               // Multiply this by theta if vdw treated implicitly
                             ( 6.0*B/(h[ind[i+3]]+h[i]) - 2.0*A ) * (h[ind[i+3]] - h[i])
                            -( 6.0*B/(h[ind[i+1]]+h[i]) - 2.0*A ) * (h[i] - h[ind[i+1]])
                             )
        + ( noise[i+2] - noise[i] )/2.0;
}

// Assembly:
movslq 0x20(%rdi), %rax
testq %rax, %rax
jle 0x32bc
movsd 0x8(%rdi), %xmm1
movsd 0x10(%rdi), %xmm0
mulsd %xmm1, %xmm1
divsd %xmm1, %xmm0
movq (%rdi), %rcx
movq 0x48(%rdi), %rdx
movq 0x80(%rdi), %rsi
movq 0x70(%rdi), %r8
shlq $0x2, %rax
xorl %r9d, %r9d
movsd 0x3fc2(%rip), %xmm1     # 0x71c8
movsd 0x3fc2(%rip), %xmm2     # 0x71d0
movsd 0x3f92(%rip), %xmm3     # 0x71a8
movsd 0x98(%rdi), %xmm5
mulsd %xmm1, %xmm5
movslq 0xc(%rsi,%r9), %r10
movsd (%rcx,%r10,8), %xmm4
movsd (%rcx,%r9,2), %xmm6
movapd %xmm4, %xmm7
addsd %xmm6, %xmm7
movapd %xmm5, %xmm8
divsd %xmm7, %xmm8
movsd 0x90(%rdi), %xmm7
mulsd %xmm2, %xmm7
addsd %xmm7, %xmm8
subsd %xmm6, %xmm4
mulsd %xmm8, %xmm4
movslq 0x4(%rsi,%r9), %r10
movsd (%rcx,%r10,8), %xmm8
movapd %xmm6, %xmm9
addsd %xmm8, %xmm9
divsd %xmm9, %xmm5
addsd %xmm7, %xmm5
subsd %xmm8, %xmm6
mulsd %xmm5, %xmm6
subsd %xmm6, %xmm4
mulsd %xmm0, %xmm4
addsd (%rdx,%r9,2), %xmm4
movsd 0x10(%r8,%r9,2), %xmm5
subsd (%r8,%r9,2), %xmm5
mulsd %xmm3, %xmm5
addsd %xmm4, %xmm5
movsd %xmm5, (%rdx,%r9,2)
addq $0x4, %r9
cmpq %r9, %rax
jne 0x3216
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/initial_conditions.cpp
// Function: initial_condition(double*, int, double, double)
void initial_condition(double *h, int L, double dx, double b)   // Initial condition: Droplet as a  b + re^{(x-{x_mid})^4/r^4}
{
  int i; double height_drop, x_mid, x_pos; 

  x_mid=L/2*dx; 
  height_drop=1;  

  for(i=0;i<L;i++)
    {    x_pos=i*dx; 
	     h[i]=b + height_drop * exp(-pow((x_pos-x_mid)/height_drop,4));
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movsd %xmm0, 0x8(%rsp)
testl %esi, %esi
jle 0x3d24
movq %rdi, %rbx
movl %esi, %eax
shrl $0x1f, %eax
addl %esi, %eax
sarl %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
mulsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x10(%rsp)
movl %esi, %r14d
xorl %r15d, %r15d
movsd %xmm1, 0x18(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
mulsd 0x8(%rsp), %xmm0
subsd 0x10(%rsp), %xmm0
movsd 0x4d6e(%rip), %xmm1     # 0x8a68
callq 0x2300
xorpd 0x3449(%rip), %xmm0     # 0x7150
callq 0x2320
movsd 0x18(%rsp), %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, (%rbx,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x3cde
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/initial_conditions.cpp
// Function: initial_condition_sin(double*, int, double, double)
void initial_condition_sin(double *h, int L, double dx, double b)   // Initial condition: Droplet as a  b + re^{(x-{x_mid})^4/r^4}
{
    int i; double A, B;
    
    B=0.1; A=0.01;
    for(i=0;i<L;i++)
        h[i]= B + A*cos(2*PI*i*dx/2.66);
}

// Assembly:
testl %esi, %esi
jle 0x3d9c
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movapd %xmm0, %xmm1
movq %rdi, %rbx
movl %esi, %r14d
xorl %r15d, %r15d
movsd %xmm0, 0x8(%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
mulsd 0x4d12(%rip), %xmm0     # 0x8a70
mulsd %xmm1, %xmm0
divsd 0x4d0e(%rip), %xmm0     # 0x8a78
callq 0x2360
movsd 0x8(%rsp), %xmm1
mulsd 0x3293(%rip), %xmm0     # 0x7010
addsd 0x4cfb(%rip), %xmm0     # 0x8a80
movsd %xmm0, (%rbx,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x3d4e
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/initial_conditions.cpp
// Function: create_boundary_conditions(int*, int)
void create_boundary_conditions(int *ind, int L)
{ int i;
    for(i=0;i<L;i++)
        ind[i+2]=i;        //  ind[i] - to use boundary conditions, shifted for 2
    ind[0]=2; ind[1]=1; ind[L+2]=L-2; ind[L+3]=L-3;
}

// Assembly:
testl %esi, %esi
jle 0x43f8
movl %esi, %ecx
leal 0x1(%rsi), %eax
andl $-0x2, %eax
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa 0x4709(%rip), %xmm1     # 0x8a90
xorl %ecx, %ecx
movdqa 0x2dcf(%rip), %xmm2     # 0x7160
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0x46ff(%rip), %xmm4     # 0x8aa0
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %edx
notl %edx
testb $0x1, %dl
je 0x43d6
movl %ecx, 0x8(%rdi,%rcx,4)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %edx
testb $0x1, %dl
je 0x43eb
leal 0x1(%rcx), %edx
movl %edx, 0xc(%rdi,%rcx,4)
addq $0x2, %rcx
paddq %xmm4, %xmm1
cmpq %rcx, %rax
jne 0x43a1
movabsq $0x100000002, %rax      # imm = 0x100000002
movq %rax, (%rdi)
leal -0x2(%rsi), %eax
movslq %esi, %rcx
movl %eax, 0x8(%rdi,%rcx,4)
addl $-0x3, %esi
movl %esi, 0xc(%rdi,%rcx,4)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/newton-raphson_tools.cpp
// Function: elimination(double**, double*, double*, int const&)
void elimination(double ** a, double *r, double *q, const int& L)    // Gaussan elimination of 5 diagonal matrix, gives q out of Aq=r
{
  int i,j,l; double c;

  for(l=0;l<L-2;l++)
    for(j=0;j<2;j++)
     {
   	c=a[j+1+l][1-j]/a[l][2]; 
	a[j+1+l][1-j]=0;
   	for(i=1;i<4;i++)
      	    a[j+1+l][i-j]=a[j+1+l][i-j]-c*a[l][1+i];
    	    r[j+1+l]=r[j+1+l]-r[l]*c;
      }

  c=a[L-1][1] / a[L-2][2];
  a[L-1][1]=0;
  a[L-1][2]=a[L-1][2]-a[L-2][3]*c;

  r[L-1]=r[L-1]-r[L-2]*c;

  // calculating solution reverse 

   q[L-1]=r[L-1]/a[L-1][2];
   q[L-2]=(r[L-2] - q[L-1]*a[L-2][3])/a[L-2][2];

   for(i=L-3;i>=0;i--)
       q[i]=(r[i] - q[i+1]*a[i][3] - q[i+2]*a[i][4])/a[i][2];

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movslq (%rcx), %rax
leal -0x2(%rax), %ecx
cmpq $0x3, %rax
jl 0x4579
movl %ecx, %r8d
xorl %r9d, %r9d
movapd 0x2c7b(%rip), %xmm0     # 0x7150
movq (%rdi,%r9,8), %r10
movb $0x1, %r11b
xorl %r14d, %r14d
leaq (%r14,%r9), %rbx
movq 0x8(%rdi,%rbx,8), %r15
movq %r14, %r12
xorq $0x1, %r12
movsd (%r15,%r12,8), %xmm1
divsd 0x10(%r10), %xmm1
leaq (%r14,%r9), %rbx
incq %rbx
movq $0x0, (%r15,%r12,8)
movapd %xmm1, %xmm2
xorpd %xmm0, %xmm2
shlq $0x3, %r14
negq %r14
addq %r15, %r14
addq $0x8, %r14
xorl %r15d, %r15d
movsd 0x10(%r10,%r15,8), %xmm3
mulsd %xmm2, %xmm3
addsd (%r14,%r15,8), %xmm3
movsd %xmm3, (%r14,%r15,8)
incq %r15
cmpq $0x3, %r15
jne 0x4523
movsd (%rsi,%rbx,8), %xmm2
mulsd (%rsi,%r9,8), %xmm1
subsd %xmm1, %xmm2
movsd %xmm2, (%rsi,%rbx,8)
movl $0x1, %r14d
testb $0x1, %r11b
movl $0x0, %r11d
jne 0x44df
incq %r9
cmpq %r8, %r9
jne 0x44d5
movq -0x8(%rdi,%rax,8), %r8
movslq %ecx, %rcx
movq (%rdi,%rcx,8), %r9
movsd 0x8(%r8), %xmm0
movsd 0x10(%r8), %xmm1
divsd 0x10(%r9), %xmm0
movq $0x0, 0x8(%r8)
movq -0x10(%rdi,%rax,8), %r10
movsd 0x18(%r10), %xmm2
mulsd %xmm0, %xmm2
subsd %xmm2, %xmm1
movsd %xmm1, 0x10(%r8)
movsd -0x8(%rsi,%rax,8), %xmm1
mulsd -0x10(%rsi,%rax,8), %xmm0
subsd %xmm0, %xmm1
movsd %xmm1, -0x8(%rsi,%rax,8)
divsd 0x10(%r8), %xmm1
movsd %xmm1, -0x8(%rdx,%rax,8)
movsd (%rsi,%rcx,8), %xmm0
mulsd 0x18(%r9), %xmm1
subsd %xmm1, %xmm0
divsd 0x10(%r9), %xmm0
movsd %xmm0, (%rdx,%rcx,8)
cmpl $0x3, %eax
jl 0x4633
addl $-0x3, %eax
movsd (%rsi,%rax,8), %xmm0
movq (%rdi,%rax,8), %rcx
movsd 0x8(%rdx,%rax,8), %xmm1
movsd 0x10(%rdx,%rax,8), %xmm2
mulsd 0x18(%rcx), %xmm1
subsd %xmm1, %xmm0
mulsd 0x20(%rcx), %xmm2
subsd %xmm2, %xmm0
divsd 0x10(%rcx), %xmm0
movsd %xmm0, (%rdx,%rax,8)
addq $-0x1, %rax
jb 0x45fc
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/newton-raphson_tools.cpp
// Function: calculate_volume(int const&, double*, double const&)
double calculate_volume(const int& L, double *h, const double& dx)
{ int i; double vol=0;
    
for(i=0;i<L;i++)
    vol = vol + h[i];
    
return vol*dx;
}

// Assembly:
movslq (%rdi), %rax
xorpd %xmm0, %xmm0
testq %rax, %rax
jle 0x4d28
xorl %ecx, %ecx
addsd (%rsi,%rcx,8), %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0x4d1b
mulsd (%rdx), %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/newton-raphson_tools.cpp
// Function: check_volume(int const&, double&, double*, double*, double const&, double const&)
void check_volume(const int& L, double& vol_0, double *h, double *y, const double& dx, const double& jdt)
{
int i, maxq;
double vol;
    
    vol=calculate_volume(L,y,dx);

    if(fabs(vol-vol_0)/vol_0>0.03)
    {   cout<< "Problem!!!! No Volume conservation at " << jdt << "!! Initial vol:  " << vol_0 << "  and now:  " << vol << endl; vol_0=vol;
        vol=0; maxq=0;
        for(i=0;i<L;i++)
            if(fabs(h[i]-y[i])>vol)
                {vol=h[i]-y[i]; maxq=i;}
        cout<< vol << "  Biggest change at the position: " << maxq << "  and time:  "<< jdt <<  endl;
        vol=fabs(vol);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movq %rcx, %r14
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
movslq (%rdi), %rax
xorpd %xmm2, %xmm2
testq %rax, %rax
jle 0x4d63
xorl %ecx, %ecx
addsd (%r14,%rcx,8), %xmm2
incq %rcx
cmpq %rcx, %rax
jne 0x4d55
mulsd (%r8), %xmm2
movsd (%r13), %xmm0
movapd %xmm2, %xmm1
subsd %xmm0, %xmm1
andpd 0x3d72(%rip), %xmm1     # 0x8af0
divsd %xmm0, %xmm1
ucomisd 0x3d96(%rip), %xmm1     # 0x8b20
jbe 0x4e91
movq 0x6241(%rip), %rbp      # 0xafd8
leaq 0x3d8a(%rip), %rsi      # 0x8b28
movl $0x26, %edx
movq %rbp, %rdi
movsd %xmm2, (%rsp)
callq 0x2200
movsd (%rbx), %xmm0
movq %rbp, %rdi
callq 0x22d0
movq %rax, %rbp
leaq 0x3d89(%rip), %rsi      # 0x8b4f
movl $0x11, %edx
movq %rax, %rdi
callq 0x2200
movsd (%r13), %xmm0
movq %rbp, %rdi
callq 0x22d0
movq %rax, %rbp
leaq 0x3d76(%rip), %rsi      # 0x8b61
movl $0xc, %edx
movq %rax, %rdi
callq 0x2200
movq %rbp, %rdi
movsd (%rsp), %xmm0
callq 0x22d0
movq %rax, %rbp
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbp, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movsd (%rsp), %xmm0
movsd %xmm0, (%r13)
movslq (%r12), %rax
testq %rax, %rax
jle 0x4ea0
xorl %ecx, %ecx
xorpd %xmm2, %xmm2
movapd 0x3c9f(%rip), %xmm1     # 0x8af0
xorl %ebp, %ebp
movapd %xmm2, %xmm0
movsd (%r15,%rcx,8), %xmm3
subsd (%r14,%rcx,8), %xmm3
movapd %xmm3, %xmm4
andpd %xmm1, %xmm4
ucomisd %xmm2, %xmm4
cmoval %ecx, %ebp
cmpltsd %xmm4, %xmm0
andpd %xmm0, %xmm3
andnpd %xmm2, %xmm0
orpd %xmm3, %xmm0
incq %rcx
movapd %xmm0, %xmm2
cmpq %rcx, %rax
jne 0x4e57
jmp 0x4ea6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %ebp, %ebp
xorpd %xmm0, %xmm0
movq 0x612b(%rip), %rdi      # 0xafd8
callq 0x22d0
movq %rax, %r14
leaq 0x3cb2(%rip), %rsi      # 0x8b6e
movl $0x22, %edx
movq %rax, %rdi
callq 0x2200
movq %r14, %rdi
movl %ebp, %esi
callq 0x22f0
movq %rax, %r14
leaq 0x3cb4(%rip), %rsi      # 0x8b91
movl $0xd, %edx
movq %rax, %rdi
callq 0x2200
movsd (%rbx), %xmm0
movq %r14, %rdi
callq 0x22d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x2110
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/newton-raphson_tools.cpp
// Function: check_second_time_derivative(int const&, double*, double*, double*, double&, double, int&)
int check_second_time_derivative(const int& L, double *h, double *y, double *old_sol, double& dtt, double dt_old, int& no_good_solutions)
{ double maxq, t_err, dt=dtt;
    int i;

    maxq = (2*dt/dt_old)*(y[0]*dt_old+old_sol[0]*dt-(dt_old+dt)*h[0])/(h[0]*(dt+dt_old));

    for(i=0;i<L;i++)
    {   t_err = (2*dt/dt_old)*(y[i]*dt_old+old_sol[i]*dt-(dt_old+dt)*h[i])/(h[i]*(dt+dt_old));
        if(t_err>maxq) maxq=t_err;
    }
    
    if (maxq<0.01)
    {   no_good_solutions++;
        return 0;
    }
    else{ if(maxq>0.1)
            {   no_good_solutions=0;
                dtt=dt-pow(10,-fabs(round(log10(dt)))-2);
                //dtt=floorf(dt * pow(10,fabs(round(log10(dt)))+1) *100 ) / (100*pow(10,fabs(round(log10(dt)))+1));
                cout << "Time derivative error, repeat iteration for smaller dt " << dtt << endl;
                return 1;
            }
        }
    
return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %r8, %rbx
movsd (%r8), %xmm9
movapd %xmm9, %xmm1
addsd %xmm9, %xmm1
divsd %xmm0, %xmm1
movsd (%rcx), %xmm3
mulsd %xmm9, %xmm3
movsd (%rdx), %xmm2
mulsd %xmm0, %xmm2
addsd %xmm3, %xmm2
movapd %xmm9, %xmm3
addsd %xmm0, %xmm3
movsd (%rsi), %xmm4
mulsd %xmm3, %xmm4
subsd %xmm4, %xmm2
mulsd %xmm1, %xmm2
divsd %xmm4, %xmm2
movslq (%rdi), %rax
testq %rax, %rax
jle 0x4fda
movapd 0x21c6(%rip), %xmm4     # 0x7150
xorpd %xmm3, %xmm4
xorl %edi, %edi
movsd (%rcx,%rdi,8), %xmm6
mulsd %xmm9, %xmm6
movsd (%rdx,%rdi,8), %xmm7
mulsd %xmm0, %xmm7
movsd (%rsi,%rdi,8), %xmm8
movapd %xmm4, %xmm5
mulsd %xmm8, %xmm5
addsd %xmm6, %xmm7
addsd %xmm7, %xmm5
mulsd %xmm1, %xmm5
mulsd %xmm3, %xmm8
divsd %xmm8, %xmm5
maxsd %xmm2, %xmm5
incq %rdi
movapd %xmm5, %xmm2
cmpq %rdi, %rax
jne 0x4f90
jmp 0x4fde
movapd %xmm2, %xmm5
movsd 0x202a(%rip), %xmm0     # 0x7010
ucomisd %xmm5, %xmm0
jbe 0x4ff6
incl (%r9)
xorl %eax, %eax
jmp 0x50a6
xorl %eax, %eax
ucomisd 0x3a80(%rip), %xmm5     # 0x8a80
jbe 0x50a6
movl $0x0, (%r9)
movapd %xmm9, %xmm0
movsd %xmm9, (%rsp)
callq 0x20c0
callq 0x20a0
andpd 0x3ac6(%rip), %xmm0     # 0x8af0
movsd 0x219e(%rip), %xmm1     # 0x71d0
subsd %xmm0, %xmm1
movsd 0x1fea(%rip), %xmm0     # 0x7028
callq 0x2300
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movq 0x5f81(%rip), %r14      # 0xafd8
leaq 0x3b41(%rip), %rsi      # 0x8b9f
movl $0x37, %edx
movq %r14, %rdi
callq 0x2200
movsd (%rbx), %xmm0
movq %r14, %rdi
callq 0x22d0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/newton-raphson_tools.cpp
// Function: check_newton_convergence(int const&, double*, double*, double*, double&, double const&, int&, int&, int const&, double&)
int check_newton_convergence(const int& L, double *h, double *y, double *q, double& dt, const double& jdt, int& no_good_solutions, int& no_consecutive_neg, const int& no_newton_it, double& mq)
{   double maxq=0;
    int i;
    
    for(i=0;i<L;i++)
    {   if(maxq<fabs(q[i])) maxq=fabs(q[i]);
        
        if(y[i]+q[i]<0)
            {
            cout<< h[i] << "  at " << jdt << " , on the position " <<  i   << "  is negative!" << endl;
            no_consecutive_neg++;
            if(no_consecutive_neg>10) {cout << "Wrong parameters -> Simulation breaks!" << endl; return 2;}
            return 1;
            }
        else
        y[i]=y[i]+q[i];
    }
    
    if(no_newton_it>10)
        {   no_good_solutions=0;
            dt=dt-pow(10,-fabs(round(log10(dt)))-2);
            return 1;
        }
    
    mq=maxq;
    
return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %rbx
movslq (%rdi), %rax
testq %rax, %rax
jle 0x5117
movq %r9, %r15
movq 0x48(%rsp), %r13
xorpd %xmm1, %xmm1
xorl %r14d, %r14d
movapd 0x3a13(%rip), %xmm2     # 0x8af0
xorpd %xmm3, %xmm3
movsd (%rcx,%r14,8), %xmm0
movsd (%rdx,%r14,8), %xmm4
addsd %xmm0, %xmm4
ucomisd %xmm4, %xmm1
ja 0x518d
andpd %xmm2, %xmm0
maxsd %xmm3, %xmm0
movsd %xmm4, (%rdx,%r14,8)
incq %r14
movapd %xmm0, %xmm3
cmpq %r14, %rax
jne 0x50e1
jmp 0x511b
xorpd %xmm0, %xmm0
movq 0x50(%rsp), %rax
cmpl $0xb, (%rax)
jl 0x517d
movq 0x40(%rsp), %rax
movl $0x0, (%rax)
movsd (%rbx), %xmm0
movsd %xmm0, 0x8(%rsp)
callq 0x20c0
callq 0x20a0
andpd 0x39a4(%rip), %xmm0     # 0x8af0
movsd 0x207c(%rip), %xmm1     # 0x71d0
subsd %xmm0, %xmm1
movsd 0x1ec8(%rip), %xmm0     # 0x7028
callq 0x2300
movsd 0x8(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movl $0x1, %eax
jmp 0x527b
movq 0x58(%rsp), %rax
movsd %xmm0, (%rax)
xorl %eax, %eax
jmp 0x527b
movsd (%rsi,%r14,8), %xmm0
movq 0x5e3e(%rip), %rbx      # 0xafd8
movq %rbx, %rdi
callq 0x22d0
movq %rax, %r12
leaq 0x3a2b(%rip), %rsi      # 0x8bd7
movl $0x5, %edx
movq %rax, %rdi
callq 0x2200
movsd (%r15), %xmm0
movq %r12, %rdi
callq 0x22d0
movq %rax, %r15
leaq 0x3a0d(%rip), %rsi      # 0x8bdd
movl $0x13, %edx
movq %rax, %rdi
callq 0x2200
movq %r15, %rdi
movl %r14d, %esi
callq 0x22f0
movq %rax, %r14
leaq 0x39ff(%rip), %rsi      # 0x8bf1
movl $0xe, %edx
movq %rax, %rdi
callq 0x2200
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movl (%r13), %ecx
leal 0x1(%rcx), %eax
movl %eax, (%r13)
movl $0x1, %eax
cmpl $0xa, %ecx
jl 0x527b
leaq 0x39be(%rip), %rsi      # 0x8c00
movl $0x26, %edx
movq %rbx, %rdi
callq 0x2200
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2110
movl $0x2, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O3/snesic[P]stochastic_thin_films/read_write_msg.cpp
// Function: read_position(double*, int, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
int read_position(double *poz, int L, string filename)
{
	std::ifstream inFile(filename.c_str());
	int i,j; double vst; 
	
	
	// Make sure the file stream is good
	if(!inFile) {
		cout << endl << "Failed to open file " << filename << endl;
		return 1;
	}
	i=0; j=0;
	while(!inFile.eof() && i<L) 
	{  inFile >> vst;
		if(j==1) poz[i]=vst;
	   j++; 
	   if (j==2) {j=0; i++;}	
		
	}
    
return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r14
movq (%rdx), %rsi
leaq 0x10(%rsp), %r12
movq %r12, %rdi
movl $0x8, %edx
callq 0x2350
movq (%r12), %rax
movq -0x18(%rax), %rax
movl 0x30(%rsp,%rax), %eax
testb $0x5, %al
je 0x60a1
movq 0x4fb6(%rip), %rdi      # 0xafd8
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq 0x4f9b(%rip), %rdi      # 0xafd8
callq 0x2040
movq %rax, %rdi
callq 0x2110
movq %rax, %rbx
leaq 0x2dd1(%rip), %rsi      # 0x8e25
movl $0x14, %edx
movq %rax, %rdi
callq 0x2200
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x2200
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x21c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2040
movl $0x1, %ebp
movq %rax, %rdi
callq 0x2110
jmp 0x6106
andl $0x2, %eax
shrl %eax
testl %ebx, %ebx
setle %cl
xorl %ebp, %ebp
orb %al, %cl
jne 0x6106
movq %r14, %r15
xorl %r13d, %r13d
leaq 0x8(%rsp), %r12
xorl %r14d, %r14d
xorl %ebp, %ebp
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0x2100
cmpl $0x1, %r14d
je 0x60dc
movl $0x1, %r14d
jmp 0x60f1
movsd 0x8(%rsp), %xmm0
movslq %r13d, %r13
movsd %xmm0, (%r15,%r13,8)
incl %r13d
xorl %r14d, %r14d
movq 0x10(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x30(%rsp,%rax)
jne 0x6106
cmpl %ebx, %r13d
jl 0x60c1
leaq 0x10(%rsp), %rdi
callq 0x2060
movl %ebp, %eax
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x6126
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x2310