LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/AgathokakologicalBit[P]wit/src/annotation/../context.hpp
// Function: akbit::system::Context::find(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&) const
std::vector<std::shared_ptr<DeclarationRecord>> find(std::string& name) const
    {
      std::vector<std::shared_ptr<DeclarationRecord>> results{};
      std::copy_if(this->declarations.begin(), this->declarations.end(),
                   std::back_inserter(results),
                   [&](auto& record) { return record->name == name; });
      if (!this->parent.lock()) return results;

      auto rest = this->parent.lock()->find(name);
      results.reserve(results.size() + rest.size());
      results.insert(results.end(), rest.begin(), rest.end());
      return results;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x18(%rsi), %rdi
movq 0x20(%rsi), %rsi
movq %rbx, %rdx
movq %r14, %rcx
callq 0x11e85
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x11ce2
movl 0x8(%rdi), %eax
testl %eax, %eax
je 0x11ce0
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%rdi)
jne 0x11cd0
jmp 0x11ce2
xorl %edi, %edi
testq %rdi, %rdi
je 0x11cf1
movl 0x8(%rdi), %eax
testl %eax, %eax
sete %al
jmp 0x11cf3
movb $0x1, %al
cmpq $0x0, 0x8(%r15)
sete %bpl
orb %al, %bpl
testq %rdi, %rdi
je 0x11d09
callq 0x6da4
testb %bpl, %bpl
jne 0x11db2
movq 0x10(%r15), %r12
testq %r12, %r12
je 0x11d35
movl 0x8(%r12), %eax
testl %eax, %eax
je 0x11d32
leal 0x1(%rax), %ecx
lock
cmpxchgl %ecx, 0x8(%r12)
jne 0x11d20
jmp 0x11d35
xorl %r12d, %r12d
testq %r12, %r12
je 0x11d46
movl 0x8(%r12), %eax
testl %eax, %eax
sete %al
jmp 0x11d48
movb $0x1, %al
testb %al, %al
jne 0x11d52
movq 0x8(%r15), %rsi
jmp 0x11d54
xorl %esi, %esi
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
callq 0x11c8e
testq %r12, %r12
je 0x11d6e
movq %r12, %rdi
callq 0x6da4
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x4, %rax
movq 0x10(%rsp), %rsi
subq 0x8(%rsp), %rsi
sarq $0x4, %rsi
addq %rax, %rsi
movq %rbx, %rdi
callq 0x11ee4
movq 0x8(%rbx), %rsi
movq 0x8(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq %rbx, %rdi
callq 0x12112
leaq 0x8(%rsp), %rdi
callq 0x11e3e
movq %rbx, %rax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x11dc4
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0x11e3e
jmp 0x11de8
movq %rax, %r14
testq %r12, %r12
je 0x11de8
movq %r12, %rdi
callq 0x6da4
jmp 0x11de8
movq %rax, %r14
movq %rbx, %rdi
callq 0x11e3e
movq %r14, %rdi
callq 0x3350
// File: /workspace/github_cpp_makefile_star2_O1/allasandeep[P]LocationBoundaryFinder/prog2.cc
// Function: main
int main()
{
	string regionName = "";
	PGconn *db;
	db = conn();
	cout<<"Enter the Region Name: ";
	//Reading the user input
	std::getline(cin,regionName);
	//Calling the getRegionData by passing regionName and db connection
	getRegionData(regionName,db);

	PQfinish(db);
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
leaq -0x28(%rbp), %r14
movq %r14, -0x10(%r14)
leaq 0x1ccb(%rip), %rdx      # 0x417d
leaq -0x38(%rbp), %rdi
movq %rdx, %rsi
callq 0x3838
callq 0x2405
movq %rax, %rbx
movq 0x3afb(%rip), %rdi      # 0x5fc8
leaq 0x1bd6(%rip), %rsi      # 0x40aa
movl $0x17, %edx
callq 0x2200
movq 0x3afb(%rip), %rdi      # 0x5fe0
movq (%rdi), %rax
addq -0x18(%rax), %rdi
movl $0xa, %esi
callq 0x2260
movsbl %al, %edx
movq 0x3ae0(%rip), %rdi      # 0x5fe0
leaq -0x38(%rbp), %rsi
callq 0x2030
leaq -0x48(%rbp), %r15
movq %r15, -0x10(%r15)
movq -0x38(%rbp), %rsi
movq -0x30(%rbp), %rdx
addq %rsi, %rdx
leaq -0x58(%rbp), %rdi
callq 0x372c
leaq -0x58(%rbp), %rdi
movq %rbx, %rsi
callq 0x25aa
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x2546
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2060
movq %rbx, %rdi
callq 0x21c0
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x2563
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2060
xorl %eax, %eax
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r15, %rdi
je 0x258d
movq -0x48(%rbp), %rsi
incq %rsi
callq 0x2060
jmp 0x258d
movq %rax, %rbx
movq -0x38(%rbp), %rdi
cmpq %r14, %rdi
je 0x25a2
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2060
movq %rbx, %rdi
callq 0x2160
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/main.cpp
// Function: allocate_pileup(int)
unsigned short** allocate_pileup(int l_sig)
{
  unsigned short** loaded_pileup = new unsigned short*[5];
  for (int i_allele = 0; i_allele < 5; i_allele++)
  {
    loaded_pileup[i_allele] = new unsigned short[l_sig + 2];
    memset(loaded_pileup[i_allele], 0, sizeof(unsigned short) * (l_sig + 2));
  } // i_allele loop.

  return loaded_pileup;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edi, %ebp
movl $0x28, %edi
callq 0x2040
movq %rax, %rbx
movslq %ebp, %rax
leaq 0x4(,%rax,2), %r14
cmpl $-0x2, %eax
movq $-0x1, %r15
cmovgeq %r14, %r15
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x2040
movq %rax, (%rbx,%r12,8)
movq %rax, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x20e0
incq %r12
cmpq $0x5, %r12
jne 0x2fef
movq %rbx, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/main.cpp
// Function: get_per_char_as_nuc_2_num_coding_array()
int* get_per_char_as_nuc_2_num_coding_array()
{
  // code all non-nucleotide values as 4, others as a:0, c:1, g:2, t:3.
  int* per_nuc_val = new int[256];
  for(int i = 0; i < 256; i++)
  {
    per_nuc_val[i] = 4;
  } // i loop.
  per_nuc_val[(int)'A'] = 0;
  per_nuc_val[(int)'C'] = 1;
  per_nuc_val[(int)'G'] = 2;
  per_nuc_val[(int)'T'] = 3;
  per_nuc_val[(int)'U'] = 3;
  per_nuc_val[(int)'a'] = 0;
  per_nuc_val[(int)'c'] = 1;
  per_nuc_val[(int)'g'] = 2;
  per_nuc_val[(int)'t'] = 3;
  per_nuc_val[(int)'u'] = 3;

  return(per_nuc_val);
}

// Assembly:
pushq %rax
movl $0x400, %edi            # imm = 0x400
callq 0x2040
xorl %ecx, %ecx
movaps 0x6fdf(%rip), %xmm0     # 0xa010
movups %xmm0, (%rax,%rcx,4)
addq $0x4, %rcx
cmpq $0x100, %rcx            # imm = 0x100
jne 0x3031
xorl %ecx, %ecx
movl %ecx, 0x104(%rax)
movl $0x1, %edx
movl %edx, 0x10c(%rax)
movl $0x2, %esi
movl %esi, 0x11c(%rax)
movabsq $0x300000003, %rdi      # imm = 0x300000003
movq %rdi, 0x150(%rax)
movl %ecx, 0x184(%rax)
movl %edx, 0x18c(%rax)
movl %esi, 0x19c(%rax)
movq %rdi, 0x1d0(%rax)
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/main.cpp
// Function: normalize_chr_id(char*)
void normalize_chr_id(char* raw_chr_id)
{
  if(t_string::starts_with(raw_chr_id, "chr") || 
    t_string::starts_with(raw_chr_id, "Chr") ||
    t_string::starts_with(raw_chr_id, "CHR"))
  {
    // Get rid of the first 3 characters.
    char temp[1000];
    strcpy(temp, &raw_chr_id[3]);
    strcpy(raw_chr_id, temp);
  }
  else
  {
    // No need to change.
    return;
  }
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x3e8, %rsp            # imm = 0x3E8
movq %rdi, %rbx
leaq 0x6f90(%rip), %rsi      # 0xa030
callq 0x85a0
testb %al, %al
jne 0x30cf
leaq 0x6f84(%rip), %rsi      # 0xa034
movq %rbx, %rdi
callq 0x85a0
testb %al, %al
jne 0x30cf
leaq 0x6f75(%rip), %rsi      # 0xa038
movq %rbx, %rdi
callq 0x85a0
testb %al, %al
je 0x30e9
leaq 0x3(%rbx), %rsi
movq %rsp, %r14
movq %r14, %rdi
callq 0x2130
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2130
addq $0x3e8, %rsp            # imm = 0x3E8
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/main.cpp
// Function: load_chromosome_lengths_per_tabbed_file(char*, std::vector<char*, std::allocator<char*>>*, std::vector<int, std::allocator<int>>*)
void load_chromosome_lengths_per_tabbed_file(char* chr_lengths_fp, vector<char*>* chr_ids, vector<int>* chr_lengths)
{
  FILE* f_l_chrs = open_f(chr_lengths_fp, "r");

  while(1)
  {
    char* cur_line = getline(f_l_chrs);
    if(cur_line == NULL)
    {
      break;
    }

    char cur_chr_id[1000];
    int cur_l_chr = 0;
    if(sscanf(cur_line, "%s %d", cur_chr_id, &cur_l_chr) != 2)
    {
      fprintf(stderr, "Could not read chromosome lengths from: %s\n", cur_line);
      exit(0);
    } // check if reading is succesful.

    // Normalize the chromosome id before adding it to the list.
    normalize_chr_id(cur_chr_id);
    chr_ids->push_back(t_string::copy_me_str(cur_chr_id));
    chr_lengths->push_back(cur_l_chr);
  } // file reading loop.

  fclose(f_l_chrs);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3f8, %rsp            # imm = 0x3F8
movq %rdx, %rbx
movq %rsi, %r14
leaq 0x6f24(%rip), %rsi      # 0xa036
callq 0x4b1e
movq %rax, %r15
leaq 0x10(%rsp), %r13
leaq 0x4(%rsp), %rbp
movq %r15, %rdi
callq 0x4954
testq %rax, %rax
je 0x31a4
movq %rax, %r12
movl $0x0, 0x4(%rsp)
movq %rax, %rdi
leaq 0x6ef6(%rip), %rsi      # 0xa03c
movq %r13, %rdx
movq %rbp, %rcx
xorl %eax, %eax
callq 0x2140
cmpl $0x2, %eax
jne 0x31be
movq %r13, %rdi
callq 0x308c
movq %r13, %rdi
callq 0x5a82
movq %rax, 0x8(%rsp)
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3fee
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x3194
movl 0x4(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x319f
movq %rbx, %rdi
movq %rbp, %rdx
callq 0x415a
testq %r12, %r12
jne 0x3124
movq %r15, %rdi
callq 0x2150
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %r12, %rdi
callq 0x2b7d
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/main.cpp
// Function: load_binary_sequence_file(char*, int&)
char* load_binary_sequence_file(char* bin_seq_fp, int& l_seq)
{
	FILE* f_bin_seq = open_f(bin_seq_fp, "rb");
	int l_bin_seq = 0;

	// Read the length.
	fread(&l_bin_seq, sizeof(int), 1, f_bin_seq);

	l_seq = l_bin_seq;

	// Read the sequence.
	char* bin_seq = new char[l_bin_seq + 2];
	fread(bin_seq, sizeof(char), l_bin_seq + 1, f_bin_seq);
	fclose(f_bin_seq);

	return(bin_seq);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
leaq 0x6810(%rip), %rsi      # 0xa06e
callq 0x4b1e
movq %rax, %rbx
leaq 0xc(%rsp), %r15
movl $0x0, (%r15)
movl $0x4, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %rax, %rcx
callq 0x2240
movslq (%r15), %r15
movl %r15d, (%r14)
leaq 0x2(%r15), %rdi
callq 0x2040
movq %rax, %r14
incq %r15
movl $0x1, %esi
movq %rax, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x2240
movq %rbx, %rdi
callq 0x2150
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/utils.cpp
// Function: get_absolute_fp(char*, char*)
void get_absolute_fp(char* fp, char* abs_fp)
{
	char cwd[1000];
	get_current_working_directory(cwd);

	if(fp[0] == '/')
	{
		strcpy(abs_fp, fp);
	}
	else
	{
		sprintf(abs_fp, "%s/%s", cwd, fp);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x7e0, %rsp            # imm = 0x7E0
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x3f0(%rsp), %r15
movl $0x3e8, %esi            # imm = 0x3E8
movq %r15, %rdi
callq 0x20c0
movq %rsp, %rdi
movq %r15, %rsi
callq 0x2130
cmpb $0x2f, (%rbx)
jne 0x434b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2130
jmp 0x4362
leaq 0x6660(%rip), %rsi      # 0xa9b2
movq %rsp, %rdx
movq %r14, %rdi
movq %rbx, %rcx
xorl %eax, %eax
callq 0x2060
addq $0x7e0, %rsp            # imm = 0x7E0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/utils.cpp
// Function: get_file_size(char*)
long int get_file_size(char* fp)
{
	FILE* f = NULL;

	// If the file is "stdin", load the standard input.
	if(strcmp(fp, "stdin") == 0)
	{
		fprintf(stderr, "Cannot buffer stdin.\n");
		return(-1);
	}
	else
	{
		// Open the file if it is not the stdin.
		f = fopen(fp, "rb");
		if (f == NULL) 
		{ 
			fprintf(stderr, "Could not open %s\n", fp);
			return(-1);
		} 
	}

	fseek(f, 0, SEEK_END);
	long int file_size = ftell(f);
	fprintf(stderr, "Loading %s of %ld bytes.\n", fp, file_size);

	return(file_size);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x5d17(%rip), %rsi      # 0xa315
callq 0x2210
testl %eax, %eax
jne 0x460e
callq 0x2da1
jmp 0x463d
leaq 0x5a59(%rip), %rsi      # 0xa06e
movq %rbx, %rdi
callq 0x2190
testq %rax, %rax
jne 0x4646
movq 0xa9b7(%rip), %rax      # 0xefe0
movq (%rax), %rdi
leaq 0x5a4a(%rip), %rsi      # 0xa07d
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2230
movq $-0x1, %r14
jmp 0x4681
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x2180
movq %r14, %rdi
callq 0x2030
movq %rax, %r14
movq 0xa976(%rip), %rax      # 0xefe0
movq (%rax), %rdi
leaq 0x63e2(%rip), %rsi      # 0xaa56
movq %rbx, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2230
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/utils.cpp
// Function: load_file(char*)
t_file_buffer* load_file(char* fp)
{
	FILE* f = NULL;

	// If the file is "stdin", load the standard input.
	if(strcmp(fp, "stdin") == 0)
	{
		fprintf(stderr, "Cannot buffer stdin.\n");
		return(NULL);
	}
	else
	{
		// Open the file if it is not the stdin.
		f = fopen(fp, "rb");
		if (f == NULL) 
		{ 
			fprintf(stderr, "Could not open %s\n", fp);
			return(NULL);
		} 
	}

	fseek(f, 0, SEEK_END);
	long int file_size = ftell(f);
if(__DUMP_UTIL_MESSAGES__)
{
	fprintf(stderr, "Loading %s of %ld bytes.\n", fp, file_size);
}

	fseek(f, 0, SEEK_SET);
	char* file_buff = new char[file_size + 1];

if(__DUMP_UTIL_MESSAGES__)
{
	fprintf(stderr, "Allocated buffer memory.\n");
}

	if (file_size != (long int)fread(file_buff, sizeof(char), file_size, f)) 
	{ 
		delete [] file_buff;
		return NULL;
	}

if(__DUMP_UTIL_MESSAGES__)
{
	fprintf(stderr, "Read successfully.\n");
}

	fclose(f);
	file_buff[file_size] = 0;

	t_file_buffer* file_buffer = new t_file_buffer();
	file_buffer->file_buffer = file_buff;
	file_buffer->f_ptr = 0;
	file_buffer->l_file = file_size;

	return file_buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
leaq 0x5c7a(%rip), %rsi      # 0xa315
callq 0x2210
testl %eax, %eax
je 0x4778
leaq 0x59bf(%rip), %rsi      # 0xa06e
movq %r15, %rdi
callq 0x2190
testq %rax, %rax
je 0x477f
movq %rax, %rbx
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x2180
movq %rbx, %rdi
callq 0x2030
movq %rax, %r14
cmpb $0x1, 0xaaae(%rip)      # 0xf192
je 0x479e
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2180
leaq 0x1(%r14), %rdi
callq 0x2040
movq %rax, %r15
cmpb $0x1, 0xaa89(%rip)      # 0xf192
je 0x47c1
movl $0x1, %esi
movq %r15, %rdi
movq %r14, %rdx
movq %rbx, %rcx
callq 0x2240
cmpq %rax, %r14
jne 0x4765
cmpb $0x1, 0xaa64(%rip)      # 0xf192
je 0x47cb
movq %rbx, %rdi
callq 0x2150
movb $0x0, (%r15,%r14)
movl $0x18, %edi
callq 0x2160
movq %rax, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %r15, (%rax)
movq $0x0, 0x8(%rax)
movq %r14, 0x10(%rax)
jmp 0x476f
movq %r15, %rdi
callq 0x21f0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
callq 0x2df5
jmp 0x476d
movq 0xa85a(%rip), %rax      # 0xefe0
movq (%rax), %rdi
leaq 0x58ed(%rip), %rsi      # 0xa07d
xorl %ebx, %ebx
movq %r15, %rdx
xorl %eax, %eax
callq 0x2230
jmp 0x476f
movq 0xa83b(%rip), %rax      # 0xefe0
movq (%rax), %rdi
leaq 0x62a7(%rip), %rsi      # 0xaa56
movq %r15, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x2230
jmp 0x46ea
callq 0x2dbd
jmp 0x470f
callq 0x2dd9
jmp 0x4734
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/utils.cpp
// Function: get_next_string(_IO_FILE*, char*, int)
int get_next_string(FILE* file, char* buff, int buff_size)
{
	memset(buff, 0, buff_size);

	int i_s = 0;
	int ret = 0;
	ret = getc(file);
	while(ret != ' ' && ret != EOF && ret != '\n' && ret != '\t')
	{		
		buff[i_s] = ret;
		i_s++;
		ret = getc(file);
	} // file reading loop.

	return(ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movslq %edx, %rdx
movq %rsi, %rdi
xorl %esi, %esi
callq 0x20e0
movabsq $0x200000c01, %r15      # imm = 0x200000C01
movq %r14, %rdi
callq 0x2070
movl %eax, %ecx
incl %ecx
cmpl $0x21, %ecx
ja 0x482d
btq %rcx, %r15
jb 0x4834
movb %al, (%rbx)
incq %rbx
jmp 0x4816
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/utils.cpp
// Function: line_empty(char*)
bool line_empty(char* line)
{
	int l = strlen(line);
	for(int i = 0; i < l; i++)
	{
		if(line[i] != ' ' &&
			line[i] != '\t' &&
			line[i] != '\n')
		{
			return(false);
		}
	}

	return(true);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x20a0
movq %rax, %rcx
testl %ecx, %ecx
setle %al
jle 0x4c33
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
movq %rcx, %rdx
negq %rdx
movl $0x1, %esi
movabsq $0x100000600, %rdi      # imm = 0x100000600
movzbl -0x1(%rbx,%rsi), %r8d
cmpq $0x20, %r8
ja 0x4c33
btq %r8, %rdi
jae 0x4c33
cmpq %rcx, %rsi
setae %al
leaq (%rdx,%rsi), %r8
incq %r8
incq %rsi
cmpq $0x1, %r8
jne 0x4c0b
andb $0x1, %al
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::t_string(char*)
t_string::t_string(char* string)
{
	// Allocate the memory.
	//this->obj_string = (char*)malloc(string_length(string) + 3);
	//this->obj_str_mem_size = string_length(string) + 1;

	this->string_buffer = new t_string_buffer();
	this->string_buffer->i_buff = 0;
	this->string_buffer->l_buffer_mem = IBS;
	this->string_buffer->string_buff = new char[IBS+3];

	this->copy(string);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movl $0x10, %edi
callq 0x2160
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, (%r14)
movq $0x1f4, 0x8(%rax)       # imm = 0x1F4
movl $0x1f7, %edi            # imm = 0x1F7
callq 0x2040
movq %rax, (%r15)
movb (%rbx), %al
testb %al, %al
je 0x50ab
incq %rbx
movsbl %al, %esi
movq %r14, %rdi
callq 0x5f56
movb (%rbx), %al
incq %rbx
testb %al, %al
jne 0x5097
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::t_string(t_string*)
t_string::t_string(t_string* string)
{
	// Allocate the memory.
	//this->obj_string = (char*)malloc(string_length(string) + 3);
	//this->obj_str_mem_size = string_length(string) + 1;
	this->string_buffer = new t_string_buffer();
	this->string_buffer->i_buff = 0;
	this->string_buffer->l_buffer_mem = IBS;
	this->string_buffer->string_buff = new char[IBS+3];

	this->copy(string);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movl $0x10, %edi
callq 0x2160
movq %rax, %r15
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, (%rbx)
movq $0x1f4, 0x8(%rax)       # imm = 0x1F4
movl $0x1f7, %edi            # imm = 0x1F7
callq 0x2040
movq %rax, (%r15)
movq (%r14), %rax
movq (%rax), %r14
movb (%r14), %al
testb %al, %al
je 0x5151
incq %r14
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5f56
movb (%r14), %al
incq %r14
testb %al, %al
jne 0x513c
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::t_string()
t_string::t_string()
{
	//this->obj_string = (char*)malloc(IBS + 3);
	//this->obj_str_mem_size = IBS;
	this->string_buffer = new t_string_buffer();
	this->string_buffer->i_buff = 0;
	this->string_buffer->l_buffer_mem = IBS;
	this->string_buffer->string_buff = new char[IBS+3];

	// Initialize the string.
	this->empty();
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x10, %edi
callq 0x2160
movq %rax, %r14
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, (%rbx)
movq $0x1f4, 0x8(%rax)       # imm = 0x1F4
movl $0x1f7, %edi            # imm = 0x1F7
callq 0x2040
movq %rax, (%r14)
movl $0x0, 0xc(%r14)
movb $0x0, (%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::sort_strings_per_prefix(char*, char*)
bool t_string::sort_strings_per_prefix(char* str1, char* str2)
{
	int l1 = t_string::string_length(str1);
	int l2 = t_string::string_length(str2);
	int max_l12 = (l1 > l2)?(l1):(l2);
	for(int i = 0; i < max_l12; i++)
	{
		// First string is shorter and the prefixes match exactly, put str1 frist.
		if(str1[i] == 0)
		{
			return(true);
		}

		// The second string is shorter, it should come before first.
		if(str2[i] == 0)
		{
			return(false);
		}

		if(str1[i] < str2[i])
		{
			return(true);
		}
		else if(str1[i] > str2[i])
		{
			return(false);
		}
	} // i loop.

	// Strings are exactly the same, return false to obey strict weak ordering.
	return(false);
}

// Assembly:
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
incl %r8d
cmpb $0x0, (%rdi,%r8)
jne 0x51ea
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
incl %edx
cmpb $0x0, (%rsi,%rdx)
jne 0x51f9
cmpl %edx, %r8d
movl %edx, %r9d
cmovgl %r8d, %r9d
testl %r9d, %r9d
setg %al
jle 0x5257
movb (%rdi), %r10b
movb $0x1, %cl
testb %r10b, %r10b
je 0x525b
movl %r9d, %r9d
cmpl %edx, %r8d
cmovgl %r8d, %edx
movl $0x1, %r8d
movb -0x1(%rsi,%r8), %r11b
testb %r11b, %r11b
je 0x5259
cmpb %r11b, %r10b
jl 0x525b
jg 0x5259
cmpq %r9, %r8
setb %al
cmpq %r8, %rdx
je 0x5257
movb (%rdi,%r8), %r10b
incq %r8
testb %r10b, %r10b
jne 0x522d
jmp 0x525b
jmp 0x525b
xorl %ecx, %ecx
andb %cl, %al
andb $0x1, %al
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::get_matching_prefix_length(char*, char*)
int t_string::get_matching_prefix_length(char* str1, char* str2)
{
	int l1 = string_length(str1);
	int l2 = string_length(str2);
	int l_str_2_match = (l1 < l2)?(l1):(l2);
	for(int i = 0; i < l_str_2_match; i++)
	{
		if(str1[i] != str2[i])
		{
			return(i);
		}
	} // i loop.

	return(l_str_2_match);
}

// Assembly:
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
incl %edx
cmpb $0x0, (%rdi,%rdx)
jne 0x52e1
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
incl %ecx
cmpb $0x0, (%rsi,%rcx)
jne 0x52ee
cmpl %ecx, %edx
movl %ecx, %eax
cmovll %edx, %eax
testl %eax, %eax
jle 0x531c
cmpl %ecx, %edx
cmovll %edx, %ecx
xorl %edx, %edx
movb (%rdi,%rdx), %r8b
cmpb (%rsi,%rdx), %r8b
jne 0x5320
incq %rdx
cmpq %rdx, %rcx
jne 0x5308
jmp 0x5322
xorl %ecx, %ecx
jmp 0x5322
movl %edx, %ecx
cmpl %eax, %ecx
cmovll %ecx, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::compare_strings_per_total_prefix(char*, char*)
bool t_string::compare_strings_per_total_prefix(char* str1, char* str2)
{
	int l1 = t_string::string_length(str1);
	int l2 = t_string::string_length(str2);
	int l_match_prefix = t_string::get_matching_prefix_length(str1, str2);

	if(l1 == l_match_prefix ||
		l2 == l_match_prefix)
	{
		return(true);
	}

	return(false);
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
xorl %ebx, %ebx
movl %ebx, %eax
incl %ebx
cmpb $0x0, (%rdi,%rax)
jne 0x532d
xorl %ebp, %ebp
movl %ebp, %eax
incl %ebp
cmpb $0x0, (%rsi,%rax)
jne 0x5339
callq 0x52dc
incl %eax
cmpl %ebx, %eax
sete %cl
cmpl %ebp, %eax
sete %al
orb %cl, %al
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::fast_search_string_per_prefix(char*, std::vector<char*, std::allocator<char*>>*, int, int)
int t_string::fast_search_string_per_prefix(char* query, vector<char*>* string_list, int i, int j)
{
	// Sort the string list.
	int i_mid = (i + j) / 2;

	if(i_mid == i ||
		i_mid == j)
	{
		return(i);
	}
	
	if(t_string::compare_strings(string_list->at(i_mid), query))
	{
		while(i_mid < (int)string_list->size() &&
			t_string::sort_strings_per_prefix(string_list->at(i_mid), query))
		{
			i_mid++;
		}

		// If the above loop hit the end, move back once.
		if(i_mid == (int)string_list->size())
		{
			i_mid--;
		}

		// If the above loop moved beyond the query move back once, which is the exact element just before query.
		if(i_mid > 0 &&
			!t_string::sort_strings_per_prefix(string_list->at(i_mid), query))
		{
			i_mid--;
		}

		return(i_mid);
	}
	else if(t_string::sort_strings_per_prefix(query, string_list->at(i_mid)))
	{
		return(t_string::fast_search_string_per_prefix(query, string_list, i, i_mid));
	}
	else if(!t_string::sort_strings_per_prefix(query, string_list->at(i_mid)))
	{
		return(t_string::fast_search_string_per_prefix(query, string_list, i_mid, j));
	}
	else
	{
		fprintf(stderr, "Fast searching failed @ %s(%d)\n", __FILE__, __LINE__);
		exit(0);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebx
movq %rsi, 0x10(%rsp)
movq %rdi, (%rsp)
movq (%rsp), %r13
leal (%rcx,%rbx), %eax
movl %eax, %r14d
shrl $0x1f, %r14d
addl %eax, %r14d
sarl %r14d
cmpl %ebx, %r14d
je 0x581e
cmpl %ecx, %r14d
je 0x581e
movq %rcx, 0x18(%rsp)
movq %rbx, 0x20(%rsp)
movslq %r14d, %r12
movq 0x10(%rsp), %rcx
movq (%rcx), %rax
movq 0x8(%rcx), %r15
subq %rax, %r15
movq %r15, %rbp
sarq $0x3, %rbp
cmpq %r12, %rbp
jbe 0x582f
movq (%rax,%r12,8), %rbx
movq %rbx, %rdi
movq %rax, 0x8(%rsp)
movq %r13, %rsi
callq 0x5860
testb %al, %al
jne 0x57b7
movq %r13, %rdi
movq %rbx, %rsi
callq 0x51e4
testb %al, %al
jne 0x57aa
movl %r14d, %ebx
movq 0x18(%rsp), %rcx
jmp 0x572b
movl %r14d, %ecx
movq 0x20(%rsp), %rbx
jmp 0x572b
movq %r12, %r13
cmpl %ebp, %r14d
movq 0x8(%rsp), %r12
jge 0x57f2
shrq $0x3, %r15
movslq %r15d, %rbx
movq %r13, %r14
movq (%rsp), %r15
cmpq %r14, %rbp
jbe 0x583b
movq (%r12,%r14,8), %rdi
movq %r15, %rsi
callq 0x51e4
testb %al, %al
je 0x57f2
incq %r14
cmpq %r14, %rbx
jne 0x57d2
movl %ebp, %r14d
xorl %eax, %eax
cmpl %ebp, %r14d
sete %al
movl %r14d, %ebx
subl %eax, %ebx
testl %ebx, %ebx
jle 0x581e
movl %ebx, %esi
cmpq %rsi, %rbp
jbe 0x5856
movq (%r12,%rsi,8), %rdi
movq (%rsp), %rsi
callq 0x51e4
xorb $0x1, %al
movzbl %al, %eax
subl %eax, %ebx
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x512e(%rip), %rdi      # 0xa964
movq %r12, %rsi
jmp 0x584c
cmpq %r13, %rbp
cmovaq %rbp, %r13
leaq 0x511b(%rip), %rdi      # 0xa964
movq %r13, %rsi
movq %rbp, %rdx
xorl %eax, %eax
callq 0x2250
leaq 0x5107(%rip), %rdi      # 0xa964
jmp 0x584c
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::compare_strings(char const*, char const*)
bool t_string::compare_strings(const char* str1, const char* str2)
{
	if(str1 == NULL || str2 == NULL)
	{
		return(false);
	}

	int str_len1 = string_length(str1);
	int str_len2 = string_length(str2);
	if(str_len1 != str_len2)
	{
		return(false);
	}

	for(int i = 0; i < str_len1; i++)
	{
		if(str1[i] != str2[i])
		{
			return(false);
		}
	}

	return(true);
}

// Assembly:
testq %rdi, %rdi
sete %cl
testq %rsi, %rsi
sete %dl
xorl %eax, %eax
orb %cl, %dl
jne 0x58c1
movl %eax, %ecx
incl %eax
cmpb $0x0, (%rdi,%rcx)
jne 0x5872
leal -0x1(%rax), %ecx
xorl %edx, %edx
movl %edx, %r8d
incl %edx
cmpb $0x0, (%rsi,%r8)
jne 0x5881
cmpl %edx, %eax
jne 0x58c2
testl %ecx, %ecx
setle %al
jle 0x58c1
movb (%rdi), %dl
cmpb (%rsi), %dl
jne 0x58c1
movl %ecx, %eax
movl $0x1, %edx
movq %rdx, %rcx
cmpq %rdx, %rax
je 0x58bb
movb (%rdi,%rcx), %r8b
leaq 0x1(%rcx), %rdx
cmpb (%rsi,%rcx), %r8b
je 0x58a5
cmpq %rax, %rcx
setae %al
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::fast_count_non_empty_tokens(char*, char*)
int t_string::fast_count_non_empty_tokens(char* str, char* delims)
{
	int n_delims = t_string::string_length(delims);
	int n_toks = 0;
	int l_cur_tok = 0;
	int i = 0;
	while(str[i] != 0)
	{
		//bool found_delim = false;
		for(int i_d = 0; i_d < n_delims; i_d++)
		{
			if(str[i] == delims[i_d])
			{
				if(l_cur_tok > 0)
				{
					n_toks++;
					l_cur_tok = 0;
				}
				else
				{
					// This is an empty token, do not count it.
				}
			}
			else
			{
				// This is a non-delim char, update the current token length.
				l_cur_tok++;
				break;
			}
		} // i_d loop.

		i++;
	} // string loop.

	if(l_cur_tok > 0)
	{
		n_toks++;
	}

	return(n_toks);
}

// Assembly:
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
incl %ecx
cmpb $0x0, (%rsi,%rcx)
jne 0x5a1d
movb (%rdi), %r11b
testb %r11b, %r11b
je 0x5a7e
pushq %rbp
pushq %rbx
movl %ecx, %edx
xorl %r8d, %r8d
xorl %r10d, %r10d
xorl %r9d, %r9d
xorl %eax, %eax
testl %ecx, %ecx
jle 0x5a64
xorl %ebx, %ebx
cmpb (%rsi,%rbx), %r11b
jne 0x5a61
xorl %ebp, %ebp
testl %r9d, %r9d
cmovnsl %r8d, %r9d
setg %bpl
addl %ebp, %eax
incq %rbx
cmpq %rbx, %rdx
jne 0x5a42
jmp 0x5a64
incl %r9d
movb 0x1(%rdi,%r10), %r11b
incq %r10
testb %r11b, %r11b
jne 0x5a3c
xorl %ecx, %ecx
testl %r9d, %r9d
setg %cl
addl %ecx, %eax
popq %rbx
popq %rbp
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::get_integers_in_string(char*)
vector<int>* t_string::get_integers_in_string(char* str)
{
	vector<int>* int_vector = new vector<int>();
	int l_str = t_string::string_length(str);

	// The number string.
	t_string* cur_int_str = new t_string();

	for(int char_i = 0; char_i < l_str; char_i++)
	{
		if(str[char_i] >= '0' && str[char_i] <= '9')
		{
			// Add this character.
			cur_int_str->concat_char(str[char_i]);
		}
		else
		{
			if(cur_int_str->length() > 0)
			{
				int new_num = str2num(cur_int_str, 10);

				// Add the new number
				int_vector->push_back(new_num); 

				cur_int_str->empty();
			}
		}
	} // char index.

	// Process the last string if it is a number.
	if(cur_int_str->length() > 0)
	{
		int new_num = str2num(cur_int_str, 10);

		// Add the new number
		int_vector->push_back(new_num); 

		cur_int_str->empty();
	}

	// Free integer storing string.
	delete(cur_int_str);

	return(int_vector);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movl $0x18, %edi
callq 0x2160
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movl $0xffffffff, %r13d      # imm = 0xFFFFFFFF
incl %r13d
cmpb $0x0, (%r15,%r13)
jne 0x5e03
movl $0x8, %edi
callq 0x2160
movq %rax, %r14
movl $0x10, %edi
callq 0x2160
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, (%r14)
movq $0x1f4, 0x8(%rax)       # imm = 0x1F4
movl $0x1f7, %edi            # imm = 0x1F7
callq 0x2040
movq %rax, (%r12)
movl $0x0, 0xc(%r12)
movb $0x0, (%rax)
testl %r13d, %r13d
jle 0x5ecd
movl %r13d, %r13d
xorl %ebp, %ebp
leaq 0x4(%rsp), %r12
movb (%r15,%rbp), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0x5e7a
movsbl %al, %esi
movq %r14, %rdi
callq 0x5f56
jmp 0x5ec5
movq (%r14), %rax
cmpl $0x0, 0xc(%rax)
jle 0x5ec5
movq (%rax), %rdi
movl $0xa, %esi
callq 0x85f6
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5eaa
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x5eb5
movq %rbx, %rdi
movq %r12, %rdx
callq 0x415a
movq (%r14), %rax
movl $0x0, 0xc(%rax)
movq (%rax), %rax
movb $0x0, (%rax)
incq %rbp
cmpq %rbp, %r13
jne 0x5e61
movq (%r14), %rax
cmpl $0x0, 0xc(%rax)
jle 0x5f17
movq (%rax), %rdi
movl $0xa, %esi
callq 0x85f6
movl %eax, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x5efc
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x5f07
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x415a
movq (%r14), %rax
movl $0x0, 0xc(%rax)
movq (%rax), %rax
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x5daa
movl $0x8, %esi
movq %r14, %rdi
callq 0x2170
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x8, %esi
movq %r14, %rdi
callq 0x2170
movq %rbx, %rdi
callq 0x22a0
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::get_integers_in_string()
vector<int>* t_string::get_integers_in_string()
{
	vector<int>* int_vector = new vector<int>();

	// The number string.
	t_string* cur_int_str = new t_string();

	int l_str = this->length();
	for(int char_i = 0; char_i < l_str; char_i++)
	{
		if(this->x(char_i) >= '0' && this->x(char_i) <= '9')
		{
			// Add this character.
			cur_int_str->concat_char(this->x(char_i));
		}
		else
		{
			if(cur_int_str->length() > 0)
			{
				int new_num = str2num(cur_int_str, 10);

				// Add the new number
				int_vector->push_back(new_num); 

				cur_int_str->empty();
			}
		}
	} // char index.

	// Process the last string if it is a number.
	if(cur_int_str->length() > 0)
	{
		int new_num = str2num(cur_int_str, 10);

		// Add the new number
		int_vector->push_back(new_num); 

		cur_int_str->empty();
	}

	// Free integer storing string.
	delete(cur_int_str);

	return(int_vector);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movl $0x18, %edi
callq 0x2160
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movl $0x8, %edi
callq 0x2160
movq %rax, %r14
movl $0x10, %edi
callq 0x2160
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, (%rax)
movq %rax, (%r14)
movq $0x1f4, 0x8(%rax)       # imm = 0x1F4
movl $0x1f7, %edi            # imm = 0x1F7
callq 0x2040
movq %rax, (%r12)
movl $0x0, 0xc(%r12)
movb $0x0, (%rax)
movq (%r15), %rax
movslq 0xc(%rax), %r13
testq %r13, %r13
jle 0x6100
xorl %ebp, %ebp
leaq 0x4(%rsp), %r12
movq (%r15), %rax
movq (%rax), %rax
movb (%rax,%rbp), %al
leal -0x30(%rax), %ecx
cmpb $0x9, %cl
ja 0x60ad
movsbl %al, %esi
movq %r14, %rdi
callq 0x5f56
jmp 0x60f8
movq (%r14), %rax
cmpl $0x0, 0xc(%rax)
jle 0x60f8
movq (%rax), %rdi
movl $0xa, %esi
callq 0x85f6
movl %eax, 0x4(%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x60dd
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x60e8
movq %rbx, %rdi
movq %r12, %rdx
callq 0x415a
movq (%r14), %rax
movl $0x0, 0xc(%rax)
movq (%rax), %rax
movb $0x0, (%rax)
incq %rbp
cmpq %rbp, %r13
jne 0x608f
movq (%r14), %rax
cmpl $0x0, 0xc(%rax)
jle 0x614a
movq (%rax), %rdi
movl $0xa, %esi
callq 0x85f6
movl %eax, (%rsp)
movq 0x8(%rbx), %rsi
cmpq 0x10(%rbx), %rsi
je 0x612f
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rbx)
jmp 0x613a
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x415a
movq (%r14), %rax
movl $0x0, 0xc(%rax)
movq (%rax), %rax
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x5daa
movl $0x8, %esi
movq %r14, %rdi
callq 0x2170
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x8, %esi
movq %r14, %rdi
callq 0x2170
movq %rbx, %rdi
callq 0x22a0
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::get_alphanumeric(char*)
char* t_string::get_alphanumeric(char* string)
{
	int l_str = t_string::string_length(string);
	char* alphanum_string = new char[l_str + 2];
	//memset(alphanum_string, 0, l_str);
	t_string::set_byte_buffer(alphanum_string, l_str, 0);
	int i_an = 0;
	for(int i = 0; i < l_str; i++)
	{
		// Update if this is an alphanumeric character.
		if((string[i] >= 'a' && string[i] <= 'z') ||
			(string[i] >= 'A' && string[i] <= 'Z') ||
			(string[i] >= '0' && string[i] <= '9'))
		{
			alphanum_string[i_an] = string[i];
			i_an++;
		}
	} // i loop.

	return(alphanum_string);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
incl %r12d
cmpb $0x0, (%rbx,%r12)
jne 0x61a5
leal 0x2(%r12), %eax
movslq %eax, %rdi
callq 0x2040
movq %rax, %r14
movl %r12d, %r15d
testl %r12d, %r12d
jle 0x61d4
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x20e0
testl %r12d, %r12d
jle 0x620a
xorl %eax, %eax
xorl %ecx, %ecx
movb (%rbx,%rax), %dl
leal -0x30(%rdx), %esi
cmpb $0xa, %sil
jb 0x61f9
movl %edx, %esi
andb $-0x21, %sil
addb $-0x41, %sil
cmpb $0x19, %sil
ja 0x6202
movslq %ecx, %rcx
movb %dl, (%r14,%rcx)
incl %ecx
incq %rax
cmpq %rax, %r15
jne 0x61dd
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::char_2_str(char)
char* t_string::char_2_str(const char char_val)
{
	char* char_str = new char[2];
	char_str[0] = char_val;
	char_str[1] = 0;

	return char_str;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
movl $0x2, %edi
callq 0x2040
movb %bl, (%rax)
movb $0x0, 0x1(%rax)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::substring(char const*, int, int)
char* t_string::substring(const char* str, int i, int j)
{
	//t_string* sub_str = new t_string();
	char* sub_str = NULL;

	int l_str = t_string::string_length(str);

	// Validity checks on the arguments.
	if(i > j ||
		i > l_str)
	{
		return(NULL);
	}
	else if(j >= l_str)
	{
		j = l_str-1;
	}

	sub_str = new char[j-i+1+2];
	sub_str[0] = 0; // Make this an empty string.

	// Copy the substring.
	int ip = i;
	int i_sub_str = 0;
	while(ip <= j)
	{
		sub_str[i_sub_str] = str[ip];

		i_sub_str++;
		ip++;
	}

	// End the string.
	sub_str[i_sub_str] = 0;

	return(sub_str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rbx,%rax)
jne 0x6249
cmpl %edx, %ebp
setg %cl
cmpl %ebp, %eax
setl %sil
orb %cl, %sil
je 0x6266
xorl %r14d, %r14d
jmp 0x62ad
leal -0x1(%rax), %r15d
cmpl %edx, %eax
cmovgl %edx, %r15d
movl %r15d, %eax
subl %ebp, %eax
addl $0x3, %eax
movslq %eax, %rdi
callq 0x2040
movq %rax, %r14
movb $0x0, (%rax)
subl %ebp, %r15d
jge 0x6290
xorl %r15d, %r15d
jmp 0x62a8
movslq %ebp, %rax
addq %rax, %rbx
leaq 0x1(%r15), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2100
incl %r15d
movb $0x0, (%r14,%r15)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::substring(int, int)
char* t_string::substring(int i, int j)
{
	//t_string* sub_str = new t_string();
	char* sub_str;

	// Validity checks on the arguments.
	if(i > j ||
		i > this->length() || 
		j > this->length())
	{
		return(NULL);
	}
	else
	{
		sub_str = (char*)malloc(sizeof(char) * (j-i+1+2));
		sub_str[0] = 0; // Make this an empty string.
	}

	// Copy the substring.
	int ip = i;
	int i_sub_str = 0;
	while(ip <= j)
	{
		sub_str[i_sub_str] = this->x(ip);

		i_sub_str++;
		ip++;
	}

	// End the string.
	sub_str[i_sub_str] = 0;

	return(sub_str);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %eax
subl %esi, %eax
jl 0x62e2
movl %edx, %ebx
movl %esi, %ebp
movq (%rdi), %r15
movl 0xc(%r15), %ecx
cmpl %esi, %ecx
setl %dl
cmpl %ebx, %ecx
setl %cl
orb %dl, %cl
je 0x62e7
xorl %r14d, %r14d
jmp 0x6319
addl $0x3, %eax
movslq %eax, %rdi
callq 0x2200
movq %rax, %r14
movb $0x0, (%rax)
subl %ebp, %ebx
jge 0x6300
xorl %ebx, %ebx
jmp 0x6314
movslq %ebp, %rsi
addq (%r15), %rsi
leaq 0x1(%rbx), %rdx
movq %r14, %rdi
callq 0x2100
incl %ebx
movb $0x0, (%r14,%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::split_string_list(std::vector<char*, std::allocator<char*>>*, int)
vector<vector<char*>*>* t_string::split_string_list(vector<char*>* string_list, int n_batches)
{
	vector<vector<char*>*>* batches = new vector<vector<char*>*>();

	int n_string_per_batch = (int)string_list->size() / n_batches;
	vector<char*>* current_batch = new vector<char*>();
	batches->push_back(current_batch);
	for(int i_str = 0; i_str < (int)string_list->size(); i_str++)
	{
		if((int)current_batch->size() == n_string_per_batch)
		{
			current_batch = new vector<char*>();
			batches->push_back(current_batch);
		}

		current_batch->push_back(string_list->at(i_str));
	} // i_str loop.

	return(batches);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movl $0x18, %edi
callq 0x2160
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
xorl %r15d, %r15d
movq %r15, 0x10(%rax)
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
cltd
idivl %ebp
movl %eax, %ebp
movl $0x18, %edi
callq 0x2160
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq %r15, 0x10(%rax)
movq %rax, (%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x6926
movq %rax, (%rsi)
addq $0x8, 0x8(%r14)
jmp 0x6931
movq %rsp, %rdx
movq %r14, %rdi
callq 0x901a
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
testl %eax, %eax
jle 0x69ee
xorl %r13d, %r13d
movq %rsp, %r12
xorl %r15d, %r15d
movq (%rsp), %rax
movq 0x8(%rax), %rcx
subq (%rax), %rcx
shrq $0x3, %rcx
cmpl %ecx, %ebp
jne 0x699b
movl $0x18, %edi
callq 0x2160
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq %rax, (%rsp)
movq 0x8(%r14), %rsi
cmpq 0x10(%r14), %rsi
je 0x6990
movq %rax, (%rsi)
addq $0x8, 0x8(%r14)
jmp 0x699b
movq %r14, %rdi
movq %r12, %rdx
callq 0x901a
movq (%rbx), %rdx
movq 0x8(%rbx), %rax
subq %rdx, %rax
sarq $0x3, %rax
cmpq %r15, %rax
jbe 0x6a00
movq (%rsp), %rdi
addq %r13, %rdx
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0x69cc
movq (%rdx), %rax
movq %rax, (%rsi)
addq $0x8, 0x8(%rdi)
jmp 0x69d1
callq 0x4e88
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
shrq $0x3, %rax
cltq
addq $0x8, %r13
cmpq %rax, %r15
jl 0x694d
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3f5d(%rip), %rdi      # 0xa964
movq %r15, %rsi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2250
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::copy_tokens_2_strs(std::vector<t_string*, std::allocator<t_string*>>*)
vector<char*>* t_string::copy_tokens_2_strs(t_string_tokens* toks)
{
	vector<char*>* strs = new vector<char*>();
	for (int i_t = 0; i_t < toks->size(); i_t++)
	{
		strs->push_back(toks->at(i_t)->str());
	} // i_t loop.

	return(strs);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x18, %edi
callq 0x2160
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movq (%rbx), %rax
cmpq %rax, 0x8(%rbx)
je 0x7492
xorl %r12d, %r12d
movq %rsp, %r15
movq (%rax,%r12,8), %rax
movq (%rax), %rax
movq (%rax), %rax
movq %rax, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x3fee
incq %r12
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
ja 0x7463
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::remove_beginning_spaces_tabs(char*)
char* t_string::remove_beginning_spaces_tabs(char* string)
{
	int i_last_space = 0;

	int l_str = t_string::string_length(string);

	for(int i = 0; i < l_str; i++)
	{
		if(string[i] != ' ' &&
			string[i] != '\t')
		{
			i_last_space = i;
			break;
		}
	}

	char* reloc_copy = new char[l_str + 2];

	// Relocate.
	copy(reloc_copy, &string[i_last_space]);
	
	return(reloc_copy);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rbx,%rax)
jne 0x78de
xorl %r14d, %r14d
testl %eax, %eax
jle 0x7909
movl %eax, %ecx
xorl %r12d, %r12d
movzbl (%rbx,%r12), %edx
cmpl $0x20, %edx
je 0x7901
cmpl $0x9, %edx
jne 0x790c
incq %r12
cmpq %r12, %rcx
jne 0x78f2
xorl %r12d, %r12d
addl $0x2, %eax
movslq %eax, %rdi
callq 0x2040
movq %rax, %r15
addq %r12, %rbx
movl %r14d, %r12d
incl %r14d
cmpb $0x0, (%rbx,%r12)
jne 0x791d
cmpl $0x1, %r14d
adcl $0x0, %r14d
movq %r15, %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2100
movb $0x0, (%r15,%r12)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::compare_prefixes(char const*, char const*)
bool t_string::compare_prefixes(const char* str1, const char* str2)
{
	int i = 0;
	while(str1[i] && str2[i])
	{
		if(str1[i] != str2[i])
		{
			return(false);
		} // comparison.

		i++;
	} // i loop.

	return(true);
}

// Assembly:
movb (%rdi), %cl
movb $0x1, %al
testb %cl, %cl
je 0x82e9
xorl %edx, %edx
movb (%rsi,%rdx), %r8b
testb %r8b, %r8b
je 0x82e9
cmpb %r8b, %cl
jne 0x82ea
movb 0x1(%rdi,%rdx), %cl
incq %rdx
testb %cl, %cl
jne 0x82d0
retq
xorl %eax, %eax
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/akdess[P]BAFExtract/src/ansi_string.cpp
// Function: t_string::ends_with(char const*, char const*)
bool t_string::ends_with(const char* full_string, const char* sub_str)
{
	if(string_length(full_string) < string_length(sub_str))
	{
		return(false);
	}

	// Go over all the characters of the sub-string and check if they match to the end of the string.
	int i_str = string_length(full_string) - 1;
	unsigned int i_sub = string_length(sub_str) - 1;
	while(1)
	{
		if(sub_str[i_sub] != full_string[i_str])
		{
			return(false);
		}

		if(i_sub == 0)
		{
			return(true);
		}
		else
		{
			i_sub--;
		}

		i_str--;		
	} // i loop.

	return(true);
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rdi,%rax)
jne 0x8541
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
incl %ecx
cmpb $0x0, (%rsi,%rcx)
jne 0x854e
cmpl %ecx, %eax
jge 0x855d
xorl %eax, %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
incl %eax
cmpb $0x0, (%rdi,%rax)
jne 0x8562
movl $0xfffffffe, %ecx       # imm = 0xFFFFFFFE
leal 0x2(%rcx), %edx
incl %ecx
cmpb $0x0, (%rsi,%rdx)
jne 0x856f
cltq
leaq (%rdi,%rax), %rdx
decq %rdx
movl %ecx, %eax
movb (%rsi,%rax), %dil
movb (%rdx), %r8b
cmpb %r8b, %dil
sete %al
addl $-0x1, %ecx
jae 0x859f
decq %rdx
cmpb %r8b, %dil
je 0x8583
retq
// File: /workspace/github_cpp_makefile_star2_O1/pstuifzand[P]magento-tools/src/magento-helpers.cpp
// Function: find_code_pool(char const*)
CodePool find_code_pool(const char* filename) {
    int n         = strlen(filename);
    const char* p = filename;

    while (1) {
        if (strncmp("app/code/", p, 9) == 0) {
            p += 9;
            n -= 9;
            break;
        }
        while (n && *p != '/') { ++p; --n; }
        if (!n) break;
        ++p; --n;
    }
    if (strncmp("cor", p, 3) == 0) return CodePool::CORE;
    if (strncmp("com", p, 3) == 0) return CodePool::COMMUNITY;
    if (strncmp("loc", p, 3) == 0) return CodePool::LOCAL;
    return CodePool::ERROR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0xce7(%rip), %rdi       # 0x3004
movl $0x9, %edx
movq %rbx, %rsi
callq 0x20a0
testl %eax, %eax
je 0x2388
movq %rbx, %rdi
callq 0x2090
leaq 0xcc7(%rip), %r14       # 0x3004
testl %eax, %eax
je 0x2392
leaq 0x1(%rbx), %r15
movl $0x1, %ebp
subl %eax, %ebp
cmpb $0x2f, -0x1(%r15)
je 0x235f
incq %r15
incl %ebp
cmpl $0x1, %ebp
jne 0x234c
jmp 0x237e
movl $0x9, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x20a0
movl %eax, %ecx
negl %ebp
movq %r15, %rbx
movl %ebp, %eax
testl %ecx, %ecx
jne 0x233d
jmp 0x238b
decl %eax
addq %rax, %rbx
incq %rbx
jmp 0x2392
movq %rbx, %r15
addq $0x9, %r15
movq %r15, %rbx
leaq 0xc75(%rip), %rdi       # 0x300e
movl $0x3, %edx
movq %rbx, %rsi
callq 0x20a0
testl %eax, %eax
je 0x23e3
leaq 0xc61(%rip), %rdi       # 0x3012
movl $0x3, %edx
movq %rbx, %rsi
callq 0x20a0
testl %eax, %eax
je 0x23e7
leaq 0xc4d(%rip), %rdi       # 0x3016
movl $0x3, %edx
movq %rbx, %rsi
callq 0x20a0
cmpl $0x1, %eax
movl $0x3, %eax
sbbl $0x0, %eax
jmp 0x23ec
xorl %eax, %eax
jmp 0x23ec
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq