LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::error minijson::parse_number<char const*>(char const*&, minijson::value&)
inline error
parse_number(Iter& i, value& v) {
  Iter p = i;

#define _IS_NUM(x)  ('0' <= x && x <= '9')
#define _IS_ALNUM(x)  (('0' <= x && x <= '9') || ('a' <= x && x <= 'f') || ('A' <= x && x <= 'F'))
  if (*i == '0' && *(i + 1) == 'x' && _IS_ALNUM(*(i+2))) {
    i += 3;
    while (_IS_ALNUM(*i)) i++;
    v = (number) strtod(p, nullptr);
  } else {
    while (_IS_NUM(*i)) i++;
    if (*i == '.') {
      i++;
      if (!_IS_NUM(*i)) {
        i = p;
        return invalid_token_error;
      }
      while (_IS_NUM(*i)) i++;
    }
    if (*i == 'e') {
      i++;
      if (!_IS_NUM(*i)) {
        i = p;
        return invalid_token_error;
      }
      while (_IS_NUM(*i)) i++;
    }
    v = (number) strtod(p, nullptr);
  }
  if (*i && nullptr == strchr(":,\x7d]\r\n ", *i)) {
    i = p;
    return invalid_token_error;
  }
  return no_error;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movq (%rdi), %r14
movb (%r14), %cl
cmpb $0x30, %cl
jne 0x3e59
cmpb $0x78, 0x1(%r14)
jne 0x3e59
movb 0x2(%r14), %dl
leal -0x30(%rdx), %esi
movabsq $0x3f0000003f, %rax     # imm = 0x3F0000003F
cmpb $0xa, %sil
jb 0x3e31
movzbl %dl, %edx
addl $-0x41, %edx
cmpl $0x25, %edx
ja 0x3e59
btq %rdx, %rax
jae 0x3e59
leaq 0x3(%r14), %rcx
movq %rcx, (%rbx)
movb (%rcx), %dl
leal -0x30(%rdx), %esi
cmpb $0xa, %sil
jb 0x3e54
movzbl %dl, %edx
addl $-0x41, %edx
cmpl $0x25, %edx
ja 0x3ec3
btq %rdx, %rax
jae 0x3ec3
incq %rcx
jmp 0x3e35
leaq 0x1(%r14), %rax
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x3e6f
movq %rax, (%rbx)
movb (%rax), %cl
incq %rax
jmp 0x3e5d
cmpb $0x2e, %cl
jne 0x3e93
movq %rax, (%rbx)
movb (%rax), %cl
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x3efb
incq %rax
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x3e93
movq %rax, (%rbx)
movb (%rax), %cl
jmp 0x3e81
decq %rax
cmpb $0x65, %cl
jne 0x3ec3
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
movb 0x1(%rax), %cl
leal -0x30(%rcx), %edx
cmpb $0x9, %dl
ja 0x3efb
addq $0x2, %rax
addb $-0x30, %cl
cmpb $0x9, %cl
ja 0x3ec3
movq %rax, (%rbx)
movb (%rax), %cl
incq %rax
jmp 0x3eb1
xorl %r12d, %r12d
movq %r14, %rdi
xorl %esi, %esi
callq 0x2120
movl $0x3, (%r15)
movsd %xmm0, 0x8(%r15)
movq (%rbx), %rax
movsbl (%rax), %esi
testl %esi, %esi
je 0x3f02
leaq 0x12ac(%rip), %rdi      # 0x519a
pushq $0x8
popq %rdx
callq 0x21b0
testq %rax, %rax
jne 0x3f02
movq %r14, (%rbx)
pushq $0x2
popq %r12
movl %r12d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/mattn[P]minijson/./minijson.h
// Function: minijson::error minijson::parse_string<char const*>(char const*&, minijson::value&)
inline error
parse_string(Iter& i, value& v) {
  if (*i != '"') return invalid_token_error;

  char t = *i++;
  Iter p = i;
  std::stringstream ss;
  
  while (*i && *i != t) {
    if (*i == '\\' && *(i+1)) {
      i++;
      if (*i == 'n') ss << "\n";
      else if (*i == 'r') ss << "\r";
      else if (*i == 't') ss << "\t";
      else ss << *i;
    } else {
      ss << *i;
    }
    i++;
  }
  if (!*i) return invalid_token_error;
  v = std::string(p, i-p);
  i++;
  if (*i && nullptr == strchr(":,\x7d]\r\n ", *i)) {
    i = p;
    return invalid_token_error;
  }
  return no_error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq (%rdi), %rax
cmpb $0x22, (%rax)
jne 0x3fbf
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rsp)
movq %rcx, (%rdi)
movb (%rax), %bpl
leaq 0x30(%rsp), %rdi
callq 0x20f0
leaq 0x40(%rsp), %r12
movq (%rbx), %rdx
leaq 0x1246(%rip), %r13      # 0x51a2
leaq 0x1157(%rip), %r14      # 0x50ba
movb (%rdx), %al
testb %al, %al
je 0x3fc4
cmpb %bpl, %al
je 0x3fc4
cmpb $0x5c, %al
jne 0x3f98
cmpb $0x0, 0x1(%rdx)
je 0x3f98
incq %rdx
movq %rdx, (%rbx)
movzbl (%rdx), %eax
cmpl $0x74, %eax
je 0x3fa5
movq %r13, %rsi
cmpl $0x72, %eax
je 0x3fac
cmpl $0x6e, %eax
jne 0x3f98
movq %r14, %rsi
jmp 0x3fac
movsbl %al, %esi
movq %r12, %rdi
callq 0x21c0
jmp 0x3fb4
leaq 0x1118(%rip), %rsi      # 0x50c4
movq %r12, %rdi
callq 0x2170
movq (%rbx), %rdx
incq %rdx
movq %rdx, (%rbx)
jmp 0x3f63
pushq $0x2
popq %rbp
jmp 0x4036
pushq $0x2
popq %r14
testb %al, %al
je 0x4029
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x10(%rsp), %rdi
movq 0x8(%rsp), %r12
movq %r12, %rsi
callq 0x3740
leaq 0x10(%rsp), %rsi
movq %r15, %rdi
callq 0x46e6
leaq 0x10(%rsp), %rdi
callq 0x2090
movq (%rbx), %rax
leaq 0x1(%rax), %rcx
movq %rcx, (%rbx)
movsbl 0x1(%rax), %esi
xorl %ebp, %ebp
testl %esi, %esi
je 0x402c
leaq 0x1181(%rip), %rdi      # 0x519a
pushq $0x8
popq %rdx
callq 0x21b0
testq %rax, %rax
jne 0x402c
movq %r12, (%rbx)
movl %r14d, %ebp
leaq 0x30(%rsp), %rdi
callq 0x2110
movl %ebp, %eax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x2090
jmp 0x405e
jmp 0x405b
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x2260
// File: /workspace/github_cpp_makefile_star2_O2/tdv[P]boss/boss/examples/simple_object/main.cpp
// Function: main
int main()
{
  try
  {
    Boss::RefObjPtr<MyNs::ISimpleObject> Inst = Boss::Base<MyNs::SimpleObject>::Create();
    Inst->HelloWorld();
  }
  catch (std::exception const &e)
  {
    std::cerr << "Error: " << e.what() << std::endl;
  }
  return 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
leaq 0x10(%rsp), %rdi
callq 0x1612c
leaq 0x10(%rsp), %rdi
movq (%rdi), %rax
leaq 0x8(%rax), %rbx
testq %rax, %rax
cmoveq %rax, %rbx
movq %rbx, 0x8(%rsp)
andq $0x0, (%rdi)
callq 0x1619c
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x28(%rax)
leaq 0x8(%rsp), %rdi
callq 0x161ac
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movq %rdx, %r14
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x161ac
jmp 0x160ca
movq %rdx, %r14
movq %rax, %rbx
cmpl $0x1, %r14d
jne 0x1611c
movq %rbx, %rdi
callq 0x166b0
movq %rax, %rbx
leaq 0xdf1fe(%rip), %rdi     # 0xf52e0
leaq 0xa3f1b(%rip), %rsi     # 0xba004
callq 0x80680
movq %rax, %r14
movq (%rbx), %rax
movq %rbx, %rdi
callq *0x10(%rax)
movq %r14, %rdi
movq %rax, %rsi
callq 0x80680
movq %rax, %rdi
callq 0x7ff60
callq 0x16720
jmp 0x160a8
movq %rax, %rbx
callq 0x16720
movq %rbx, %rdi
callq 0xb7030
movq %rax, %rdi
callq 0x161bc
// File: /workspace/github_cpp_makefile_star2_O2/haught[P]cws_plugin/cws_plugin.cpp
// Function: split[abi:cxx11](char const*, char const*)
std::vector<std::string> split(const char *s, const char *delim)
{
	std::vector<std::string> result;
	if (s && strlen(s))
	{
		int len = strlen(s);
		char *src = new char[len + 1];
		strcpy(src, s);
		src[len] = '\0';
		char *tokenptr = strtok(src, delim);
		while (tokenptr != NULL)
		{
			std::string tk = tokenptr;
			result.emplace_back(tk);
			tokenptr = strtok(NULL, delim);
		}
		delete[] src;
	}
	return result;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
testq %rsi, %rsi
je 0x25da
movq %rdx, %r14
movq %rsi, %r12
movq %rsi, %rdi
callq 0x2100
testq %rax, %rax
je 0x25da
movq %rax, %r13
shlq $0x20, %r13
movabsq $0x100000000, %rdi      # imm = 0x100000000
addq %r13, %rdi
sarq $0x20, %rdi
callq 0x2030
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0x21e0
sarq $0x20, %r13
movb $0x0, (%r15,%r13)
movq %r15, -0x38(%rbp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x2300
movq %rax, %r15
leaq -0x58(%rbp), %r12
leaq -0x29(%rbp), %r13
testq %r15, %r15
je 0x25d1
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x4b8c
movq %rbx, %rdi
movq %r12, %rsi
callq 0x4bc8
xorl %edi, %edi
movq %r14, %rsi
callq 0x2300
movq %rax, %r15
movq %r12, %rdi
callq 0x2110
jmp 0x259c
movq -0x38(%rbp), %rdi
callq 0x2250
movq %rbx, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x25ee
movq %rax, %r14
jmp 0x25ff
movq %rax, %r14
leaq -0x58(%rbp), %rdi
callq 0x2110
movq %rbx, %rdi
callq 0x4c0e
movq %r14, %rdi
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O2/haught[P]cws_plugin/cws_plugin.cpp
// Function: main
int main(int argc, char **argv) {
	int i;
	map<string, string> valueMap;
	char fileName[1024];
	for (int i = 0; i < argc; i++) {
		cout << "arg" <<  i << ":" << argv[i] << endl;
	}
	if (argc <3) {
		cout << "error:Invalid parameter,format:" << argv[0] << "input output" << endl;	//Error to UI
		exit(0);
	}
	sprintf(fileName, "%s/run.gcode",argv[1]);
	readGcode(fileName, valueMap);


	sprintf(fileName, "%s/default.slicing", argv[1]);
	writeDefault_slicing(fileName, valueMap);

	sprintf(fileName, "%s/manifest.xml", argv[1]);
	writeManifest_xml(argv[1],fileName, valueMap);

	sprintf(fileName, "%s/1.gcode", argv[1]);
	write_1_gcode(fileName, valueMap);



	cout << "progress:0" << endl;				//progross to UI

	cout << "info:" << endl;				//progross to UI

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x438, %rsp            # imm = 0x438
leaq -0x58(%rbp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
xorl %r15d, %r15d
testl %edi, %edi
movl $0x0, %r12d
movl %edi, -0x2c(%rbp)
cmovgl %edi, %r12d
movq %rsi, %rbx
leaq 0x267f(%rip), %r13      # 0x707c
leaq 0x2315(%rip), %r14      # 0x6d19
cmpq %r15, %r12
je 0x4a47
movq 0x55c8(%rip), %rdi      # 0x9fd8
movq %r13, %rsi
callq 0x21f0
movq %rax, %rdi
movl %r15d, %esi
callq 0x2340
movq %rax, %rdi
movq %r14, %rsi
callq 0x21f0
movq (%rbx,%r15,8), %rsi
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2120
incq %r15
jmp 0x4a04
cmpl $0x3, -0x2c(%rbp)
jl 0x4b3a
movq 0x8(%rbx), %rdx
leaq 0x2651(%rip), %rsi      # 0x70ad
leaq -0x460(%rbp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x2070
leaq -0x60(%rbp), %rsi
movq %r14, %rdi
callq 0x4792
movq 0x8(%rbx), %rdx
leaq 0x2636(%rip), %rsi      # 0x70ba
movq %r14, %rdi
xorl %eax, %eax
callq 0x2070
leaq -0x60(%rbp), %rsi
movq %r14, %rdi
callq 0x38f9
movq 0x8(%rbx), %rdx
leaq 0x2628(%rip), %rsi      # 0x70cd
movq %r14, %rdi
xorl %eax, %eax
callq 0x2070
movq 0x8(%rbx), %rdi
leaq -0x60(%rbp), %rdx
movq %r14, %rsi
callq 0x34a3
movq 0x8(%rbx), %rdx
leaq 0x2613(%rip), %rsi      # 0x70dd
leaq -0x460(%rbp), %rbx
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2070
leaq -0x60(%rbp), %rsi
movq %rbx, %rdi
callq 0x260f
movq 0x54ea(%rip), %rdi      # 0x9fd8
leaq 0x25f3(%rip), %rsi      # 0x70e8
callq 0x21f0
movq %rax, %rdi
callq 0x2120
movq 0x54cf(%rip), %rdi      # 0x9fd8
leaq 0x25e3(%rip), %rsi      # 0x70f3
callq 0x21f0
movq %rax, %rdi
callq 0x2120
leaq -0x60(%rbp), %rdi
callq 0x4d20
xorl %eax, %eax
addq $0x438, %rsp            # imm = 0x438
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x5497(%rip), %rdi      # 0x9fd8
leaq 0x2538(%rip), %rsi      # 0x7080
callq 0x21f0
movq (%rbx), %rsi
movq %rax, %rdi
callq 0x21f0
leaq 0x2541(%rip), %rsi      # 0x70a0
movq %rax, %rdi
callq 0x21f0
movq %rax, %rdi
callq 0x2120
xorl %edi, %edi
callq 0x2240
jmp 0x4b78
movq %rax, %rbx
leaq -0x60(%rbp), %rdi
callq 0x4d20
movq %rbx, %rdi
callq 0x2350
// File: /workspace/github_cpp_makefile_star2_O2/ambersun1234[P]AVL_Tree/src/avl.h
// Function: AVLTree<int>::remove(node<int>*, int)
node< itemType >* AVLTree< itemType >::remove( node< itemType > *root , itemType target ) {
	if ( root == nullptr ) return nullptr;

	if ( root->getData() == target ) { // target found
		if ( root->isLeaf() ) { // no children
			delete root;
			root = nullptr;
			return root;
		}
		else {
			itemType returnValue;
			node< itemType > *temp = this->findSmallestNodeHelper( root , returnValue );

			if ( temp == nullptr ) { // no smallest node found , but may have right children
				return root->getRightChild();
			}
			else { // smallest children found
				root->setLeftChild( temp );
				root->setData( returnValue );
				if ( root->unbalanced() ) this->doRotation( root );
				return root;
			}
		}
	}

	else if ( root->getData() > target ) root->setLeftChild( this->remove( root->getLeftChild() , target ) );
	else if ( root->getData() < target ) root->setRightChild( this->remove( root->getRightChild() , target ) );

	if ( root->unbalanced() ) this->doRotation( root );
	root->setHeight( root->getMaxHeight() );
	return root;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, (%rsp)
testq %rsi, %rsi
je 0x1acd
movq %rsi, %r14
movq %rdi, %rbx
movl (%rsi), %eax
cmpl %edx, %eax
jne 0x1ad4
movq 0x10(%r14), %rax
orq 0x8(%r14), %rax
jne 0x1ada
pushq $0x20
popq %rsi
movq %r14, %rdi
callq 0x10f0
xorl %eax, %eax
jmp 0x1b66
jle 0x1b1a
pushq $0x8
jmp 0x1b1e
leaq 0xc(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b70
movq (%rsp), %r14
testq %rax, %rax
je 0x1b5f
movq %rax, 0x8(%r14)
movl 0xc(%rsp), %eax
movl %eax, (%r14)
movq %r14, %rdi
callq 0x1918
movq %rsp, %r14
testb %al, %al
je 0x1b63
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1948
jmp 0x1b63
jge 0x1b30
pushq $0x10
popq %r15
movq (%r14,%r15), %rsi
movq %rbx, %rdi
callq 0x1a9a
movq %rax, (%r14,%r15)
movq %r14, %rdi
callq 0x1918
testb %al, %al
je 0x1b4d
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1948
movq (%r14), %r14
movq %r14, %rdi
callq 0x1a02
movl %eax, 0x18(%r14)
movq (%rsp), %rax
jmp 0x1b66
addq $0x10, %r14
movq (%r14), %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/ambersun1234[P]AVL_Tree/src/avl.h
// Function: AVLTree<int>::findSmallestNode(node<int>*, int&)
node< itemType >* AVLTree< itemType >::findSmallestNode( node< itemType > *root , itemType &returnValue ) {
	if ( root == nullptr ) return nullptr;

	if ( root->getRightChild() == nullptr ) {
		returnValue = root->getData();
		node< itemType > *temp = root->getLeftChild();

		delete root;
		root = nullptr;
		return temp;
	}
	root->setRightChild( this->findSmallestNode( root->getRightChild() , returnValue ) );
	if ( root != nullptr && root->unbalanced() ) this->doRotation( root );
	root->setHeight( root->getMaxHeight() );
	return root;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, (%rsp)
testq %rsi, %rsi
je 0x1c4b
movq %rsi, %rbx
movq 0x10(%rsi), %rsi
testq %rsi, %rsi
je 0x1c50
movq %rdi, %r14
callq 0x1bf8
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
callq 0x1918
testb %al, %al
je 0x1c3a
movq %rsp, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1948
movq (%rbx), %rbx
movq %rbx, %rdi
callq 0x1a02
movl %eax, 0x18(%rbx)
movq (%rsp), %r14
jmp 0x1c63
xorl %r14d, %r14d
jmp 0x1c63
movl (%rbx), %eax
movl %eax, (%rdx)
movq 0x8(%rbx), %r14
pushq $0x20
popq %rsi
movq %rbx, %rdi
callq 0x10f0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/ambersun1234[P]AVL_Tree/src/avl.h
// Function: AVLTree<int>::findPredecessor(node<int>*, int) const
itemType AVLTree< itemType >::findPredecessor( node< itemType > *root , itemType target ) const {
	if ( root == nullptr ) return INT_MIN;

	if ( root->getData() > target ) {
		return max( INT_MIN , findPredecessor( root->getLeftChild() , target ) );
	}
	else {
		return max( root->getData() , findPredecessor( root->getRightChild() , target ) );
	}
}

// Assembly:
movl $0x80000000, %eax       # imm = 0x80000000
testq %rsi, %rsi
je 0x1c8f
movl (%rsi), %ecx
cmpl %edx, %ecx
jle 0x1c84
movq 0x8(%rsi), %rsi
jmp 0x1c73
movq 0x10(%rsi), %rsi
cmpl %eax, %ecx
cmovgl %ecx, %eax
jmp 0x1c73
retq
// File: /workspace/github_cpp_makefile_star2_O2/ambersun1234[P]AVL_Tree/src/avl.h
// Function: AVLTree<int>::inorderTraversal(node<int>*, void (*)(node<int>&, std::ostream&))
void AVLTree< itemType >::inorderTraversal( node< itemType > *root , void visit( node< itemType > &record , ostream& os ) ) {
	if ( root == nullptr ) return;
	this->inorderTraversal( root->getLeftChild() , visit );
	visit( *root , cout );
	this->inorderTraversal( root->getRightChild() , visit );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x4328(%rip), %r12      # 0x5fd0
testq %r14, %r14
je 0x1cca
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x1c90
movq %r14, %rdi
movq %r12, %rsi
callq *%rbx
movq 0x10(%r14), %r14
jmp 0x1ca8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/ambersun1234[P]AVL_Tree/src/avl.h
// Function: AVLTree<int>::preorderTraversal(node<int>*, void (*)(node<int>&, std::ostream&))
void AVLTree< itemType >::preorderTraversal( node< itemType > *root , void visit( node< itemType > &record , ostream& os ) ) {
	if ( root == nullptr ) return;
	visit( *root , cout );
	this->preorderTraversal( root->getLeftChild() , visit );
	this->preorderTraversal( root->getRightChild() , visit );
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x42e2(%rip), %r12      # 0x5fd0
testq %r14, %r14
je 0x1d10
movq %r14, %rdi
movq %r12, %rsi
callq *%rbx
movq 0x8(%r14), %rsi
movq %r15, %rdi
movq %rbx, %rdx
callq 0x1cd6
movq 0x10(%r14), %r14
jmp 0x1cee
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/ambersun1234[P]AVL_Tree/src/avl.h
// Function: AVLTree<int>::postorderTraversal(node<int>*, void (*)(node<int>&, std::ostream&))
void AVLTree< itemType >::postorderTraversal( node< itemType > *root , void visit( node< itemType > &record , ostream& os ) ) {
	if ( root == nullptr ) return;
	this->postorderTraversal( root->getLeftChild() , visit );
	this->postorderTraversal( root->getRightChild() , visit );
	visit( *root , cout );
}

// Assembly:
testq %rsi, %rsi
je 0x1d5b
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rsi
movq %rdx, %r15
callq 0x1d1c
movq 0x10(%rbx), %rsi
movq %r14, %rdi
movq %r15, %rdx
callq 0x1d1c
movq 0x4282(%rip), %rsi      # 0x5fd0
movq %rbx, %rdi
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
jmpq *%rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/bin_to_jass_disk.cpp
// Function: read_u32(_IO_FILE*)
uint32_t read_u32(FILE* f)
{
    uint32_t x;
    size_t ret = fread(&x, sizeof(uint32_t), 1, f);
    if (feof(f)) {
        return 0;
    }
    if (ret != 1) {
        exit(EXIT_FAILURE);
    }
    return x;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
leaq 0x4(%rsp), %rdi
pushq $0x4
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x2250
movq %rax, %rbx
movq %r14, %rdi
callq 0x2270
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jne 0x24b3
cmpq $0x1, %rbx
jne 0x24bb
movl 0x4(%rsp), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
pushq $0x1
popq %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/bin_to_jass_disk.cpp
// Function: read_uint32_list(std::vector<unsigned int, std::allocator<unsigned int>>&, _IO_FILE*)
void read_uint32_list(std::vector<uint32_t>& list, FILE* f)
{
    uint32_t list_len = read_u32(f);
    list.resize(list_len);
    if (list_len != 0) {
        read_u32s(f, list.data(), list_len);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x247c
movl %eax, %ebp
movl %eax, %r15d
movq %r14, %rdi
movq %r15, %rsi
callq 0x3774
testl %ebp, %ebp
je 0x2528
movq (%r14), %rsi
movq %rbx, %rdi
movq %r15, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x24c3
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/bin_to_jass_disk.cpp
// Function: read_and_write_doclist(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 read_and_write_doclist(std::string docid_file,
                            std::string out_file) {
  std::ifstream docids(docid_file);
  std::ofstream out(out_file);
  std::vector<uint64_t> offsets;
  std::string doc;

  out << "SENTINEL" << '\0';
  offsets.push_back(out.tellp());

  while (docids >> doc) {
    offsets.push_back(out.tellp());
    out << doc << '\0';
  }

  // Now write the offsets
  out.write((char *)&offsets[0], offsets.size() * sizeof(uint64_t));

  uint64_t total_docs = offsets.size();
  // Now write the number of docs
  out.write((char *)&total_docs, sizeof(uint64_t));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x450, %rsp            # imm = 0x450
movq %rsi, %rbx
movq %rdi, %rsi
leaq 0x248(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x2280
leaq 0x48(%rsp), %rdi
pushq $0x10
popq %rdx
movq %rbx, %rsi
callq 0x22f0
andq $0x0, 0x20(%rsp)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, 0x10(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x55aa3(%rip), %rsi     # 0x58034
leaq 0x48(%rsp), %rdi
callq 0x2160
movq %rax, %rdi
xorl %esi, %esi
callq 0x21a0
leaq 0x48(%rsp), %rdi
callq 0x2130
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3bd8
leaq 0x248(%rsp), %rbx
leaq 0x28(%rsp), %r14
leaq 0x48(%rsp), %r15
leaq 0x10(%rsp), %r12
leaq 0x8(%rsp), %r13
movq %rbx, %rdi
movq %r14, %rsi
callq 0x21e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2625
movq %r15, %rdi
callq 0x2130
movq %rax, 0x8(%rsp)
movq %r12, %rdi
movq %r13, %rsi
callq 0x3bd8
movq %r15, %rdi
movq %r14, %rsi
callq 0x2150
movq %rax, %rdi
xorl %esi, %esi
callq 0x21a0
jmp 0x25dd
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
subq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x2210
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x3, %rax
leaq 0x8(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x48(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x2210
leaq 0x28(%rsp), %rdi
callq 0x20c0
leaq 0x10(%rsp), %rdi
callq 0x3ba4
leaq 0x48(%rsp), %rdi
callq 0x2240
leaq 0x248(%rsp), %rdi
callq 0x2060
addq $0x450, %rsp            # imm = 0x450
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
jmp 0x26a8
movq %rax, %rbx
jmp 0x26c9
jmp 0x26a8
jmp 0x26a8
jmp 0x26a8
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x20c0
leaq 0x10(%rsp), %rdi
callq 0x3ba4
leaq 0x48(%rsp), %rdi
callq 0x2240
leaq 0x248(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
callq 0x22c0
// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/bin_to_jass_disk.cpp
// Function: usage(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void usage(std::string program) {
  std::cerr << program << " <ds2i_prefix> <docid file> <lexicon file>"
            << "<max quantized score [256 = 8 bit quant, 512 = 9 bit quant]><q|G [QMX, EliasGammaSIMD]>\n";
  std::cerr << "e.g. " << program << " wsj wsj.documents wsj.terms 256 G\n";
  exit(EXIT_FAILURE);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x59bbe(%rip), %r14     # 0x5cfe8
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2150
leaq 0x54ce7(%rip), %rsi     # 0x58123
movq %rax, %rdi
callq 0x2160
leaq 0x54d03(%rip), %rsi     # 0x5814e
movq %rax, %rdi
callq 0x2160
leaq 0x54d4d(%rip), %rsi     # 0x581a7
movq %r14, %rdi
callq 0x2160
movq %rax, %rdi
movq %rbx, %rsi
callq 0x2150
leaq 0x54d39(%rip), %rsi     # 0x581ad
movq %rax, %rdi
callq 0x2160
pushq $0x1
popq %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/compress_integer_elias_gamma_simd_vb.cpp
// Function: JASS::compress_integer_elias_gamma_simd_vb::decode(unsigned int*, unsigned long, void const*, unsigned long)
void compress_integer_elias_gamma_simd_vb::decode(integer *decoded, size_t integers_to_decode, const void *source_as_void, size_t source_length)
		{
		__m256i mask;
		const uint8_t *source = (const uint8_t *)source_as_void;
		size_t vb_length = *(const uint32_t *)source_as_void;
		const uint8_t *end_of_source = (const uint8_t *)source_as_void + source_length - vb_length;
		source += sizeof(uint32_t);
		__m256i *into = (__m256i *)decoded;
		uint64_t selector = 0;
		__m256i payload1;
		__m256i payload2;

		while (1)
			{
			if (selector == 0)
				{
				if (source >= end_of_source)
					break;
				selector = *(uint32_t *)source;
				payload1 = _mm256_loadu_si256((__m256i *)(source + 4));
				payload2 = _mm256_loadu_si256((__m256i *)(source + 36));
				source += 68;
				}

			uint32_t width = (uint32_t)find_first_set_bit(selector);
			mask = _mm256_loadu_si256((__m256i *)mask_set[width]);
			_mm256_storeu_si256(into, _mm256_and_si256(payload1, mask));
			_mm256_storeu_si256(into + 1, _mm256_and_si256(payload2, mask));
			payload1 = _mm256_srli_epi32(payload1, width);
			payload2 = _mm256_srli_epi32(payload2, width);

			into += 2;
			selector >>= width;
			}

		if (vb_length != 0)
			compress_integer_variable_byte::decode((integer *)into, vb_length, source, vb_length);
		}

// Assembly:
movq %rcx, %rdx
movq %rsi, %rdi
movl (%rcx), %esi
addq %rcx, %r8
subq %rsi, %r8
addq $0x4, %rdx
xorl %r10d, %r10d
pushq $0x40
popq %rax
leaq 0x1c5f(%rip), %r9       # 0x59340
testq %r10, %r10
jne 0x576fc
cmpq %r8, %rdx
jae 0x5773e
movl (%rdx), %r10d
vmovdqu 0x4(%rdx), %ymm0
vmovdqu 0x24(%rdx), %ymm1
addq $0x44, %rdx
movq %rax, %rcx
testq %r10, %r10
je 0x57708
bsfq %r10, %rcx
incq %rcx
vmovd %ecx, %xmm2
movl %ecx, %r11d
shll $0x6, %r11d
vmovdqa (%r11,%r9), %ymm3
vpand %ymm0, %ymm3, %ymm4
vmovdqu %ymm4, (%rdi)
vpand %ymm1, %ymm3, %ymm3
vpsrld %xmm2, %ymm0, %ymm0
vmovdqu %ymm3, 0x20(%rdi)
vpsrld %xmm2, %ymm1, %ymm1
addq $0x40, %rdi
shrq %cl, %r10
jmp 0x576e1
testq %rsi, %rsi
je 0x5774e
movq %rsi, %rcx
vzeroupper
jmp 0x577ae
vzeroupper
retq
// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/./compress_integer_variable_byte.h
// Function: JASS::compress_integer_variable_byte::static_decode(unsigned int*, unsigned long, void const*, unsigned long)
static inline void static_decode(integer *decoded, size_t integers_to_decode, const void *source_as_void, size_t source_length)
				{
				const uint8_t *source = static_cast<const uint8_t *>(source_as_void);
				const uint8_t *end = source + source_length;		// compute the stopping condition

				while (source < end)
					{
					decompress_into(decoded, source);
					decoded++;
					}
				}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rcx, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movq %rdx, (%r15)
addq %rdx, %rbx
cmpq %rbx, %rdx
jae 0x577e3
movq %r14, %rdi
movq %r15, %rsi
callq 0x577ee
addq $0x4, %r14
movq 0x8(%rsp), %rdx
jmp 0x577c8
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/JMMackenzie[P]binary_to_jass/compress_integer_variable_byte.cpp
// Function: JASS::compress_integer_variable_byte::encode(void*, unsigned long, unsigned int const*, unsigned long)
size_t compress_integer_variable_byte::encode(void *encoded_as_void, size_t encoded_buffer_length, const integer *source, size_t source_integers)
		{
		uint8_t *encoded = static_cast<uint8_t *>(encoded_as_void);
		size_t used = 0;						// the number of bytes of storage used so far

		const integer *end = source + source_integers;			// the end of the input sequence
		
		/*
			Iterate over each integer in the input sequence
		*/
		for (const integer *current = source; current < end; current++)
			{
			/*
				find out how much space it'll take
			*/
			size_t needed = bytes_needed_for(*current);
			
			/*
				make sure it'll fit in the output buffer
			*/
			if (used + needed > encoded_buffer_length)
				return 0;				// didn't fit so return failure state.
			
			/*
				it fits so encode and add to the size used
			*/
			compress_into(encoded, *current);
			used += needed;
			}

		return used;
		}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rcx, %r14
movq %rdx, %r15
leaq 0x8(%rsp), %r12
movq %rsi, (%r12)
leaq (%rcx,%r8,4), %r13
xorl %ebx, %ebx
cmpq %r13, %r14
jae 0x578ce
movl (%r14), %edi
callq 0x57752
addq %rax, %rbx
cmpq %r15, %rbx
ja 0x578cc
movl (%r14), %esi
movq %r12, %rdi
callq 0x578e0
addq $0x4, %r14
jmp 0x578a6
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/bcthomas[P]shrinksam/src/shrinksam.cpp
// Function: show_usage(int)
void show_usage(int status) {
	cerr << Shrinksam::progname << " - shrinks a SAM file while maintaining mate pair information" << endl;
	cerr << endl << "(Written by bct - 2013)" << endl;
	cerr << endl << "Usage:" << endl;
	cerr << Shrinksam::progname << " -i <sam infile name> -k <shrunk sam outfile name>" << endl << endl;
	cerr << Shrinksam::progname << " -k <shrunk sam outfile name> <stdin>" << endl << endl;
	cerr << Shrinksam::progname << " < <stdin> > out" << endl << endl;

	cerr << "  Options:" << endl;
	cerr << "    -i, --input,        Optional - if not given, will read from stdin" << endl;
	cerr << "    -k, --shrunk,       Name for shrunk SAM output file" << endl;
	cerr << "    -d, --delete-input, Delete the input sam file (requires -i argument)" << endl;
	cerr << "    -u, --unpaired,     SAM file was from an unpaired mapping" << endl;
	cerr << "    -h, --help,         Display this help and exit" << endl;
	cerr << "    -v, --verbose,      Print extra details during the run" << endl;
	cerr << "    --version,          Output version information and exit" << endl;

	exit(status);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
movq 0x5dff(%rip), %rsi      # 0x8328
movq 0x5ac0(%rip), %r14      # 0x7ff0
movq %r14, %rdi
callq 0x2210
leaq 0x2aeb(%rip), %rsi      # 0x502a
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x2110
leaq 0x2b0a(%rip), %rsi      # 0x5068
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x2110
leaq 0x2b03(%rip), %rsi      # 0x5080
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
movq 0x5d94(%rip), %rsi      # 0x8328
movq %r14, %rdi
callq 0x2210
leaq 0x2ae4(%rip), %rsi      # 0x5087
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x2110
movq 0x5d66(%rip), %rsi      # 0x8328
movq %r14, %rdi
callq 0x2210
leaq 0x2ae9(%rip), %rsi      # 0x50ba
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x2110
movq 0x5d38(%rip), %rsi      # 0x8328
movq %r14, %rdi
callq 0x2210
leaq 0x2ae1(%rip), %rsi      # 0x50e0
movq %rax, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
movq %rax, %rdi
callq 0x2110
leaq 0x2ad3(%rip), %rsi      # 0x50f1
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
leaq 0x2ac7(%rip), %rsi      # 0x50fc
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
leaq 0x2af6(%rip), %rsi      # 0x5142
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
leaq 0x2b17(%rip), %rsi      # 0x517a
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
leaq 0x2b49(%rip), %rsi      # 0x51c3
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
leaq 0x2b70(%rip), %rsi      # 0x5201
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
leaq 0x2b8c(%rip), %rsi      # 0x5234
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
leaq 0x2bb0(%rip), %rsi      # 0x526f
movq %r14, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x2110
movl %ebx, %edi
callq 0x2270
// File: /workspace/github_cpp_makefile_star2_O2/bcthomas[P]shrinksam/src/sam.h
// Function: Shrinksam::Sam::find_cigar(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
std::string Sam::find_cigar(const std::string s) {
		for(std::vector<std::string>::iterator it = other.begin(); it != other.end(); ++it) {
			if ((*it).find(s) == 0)
				return(*it);
		}
		return("");
	}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %rbx
movq 0xd8(%rsi), %r15
cmpq 0xe0(%r12), %r15
je 0x2ba6
movq %r15, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x23c0
testq %rax, %rax
je 0x2bbc
addq $0x20, %r15
jmp 0x2b84
leaq 0x2908(%rip), %rsi      # 0x54b5
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x32de
jmp 0x2bc7
movq %rbx, %rdi
movq %r15, %rsi
callq 0x22a0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/bcthomas[P]shrinksam/src/process_stream.cpp
// Function: parse_read_name(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
std::string parse_read_name(const string &oldname) {
	if ( (oldname.rfind("/1") == string::npos) && (oldname.rfind("/2") == string::npos) )
		return(oldname);
	else {
		std::string::size_type len = oldname.length();
		return(oldname.substr(0,len-2));
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x2859(%rip), %rsi      # 0x5440
pushq $-0x1
popq %rdx
movq %r14, %rdi
callq 0x2340
cmpq $-0x1, %rax
jne 0x2c10
leaq 0x2844(%rip), %rsi      # 0x5443
pushq $-0x1
popq %rdx
movq %r14, %rdi
callq 0x2340
cmpq $-0x1, %rax
je 0x2c30
movq 0x8(%r14), %rcx
addq $-0x2, %rcx
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x2250
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22a0
jmp 0x2c25
// File: /workspace/github_cpp_makefile_star2_O2/bcthomas[P]shrinksam/src/sam.h
// Function: Shrinksam::operator<<(std::ostream&, Shrinksam::Sam const&)
std::ostream& operator<< (std::ostream &o, const Sam &i) {
				o << i.qname   << "\t"
				  << i.flag    << "\t"
				  << i.rname   << "\t"
				  << i.pos     << "\t"
				  << i.mapq    << "\t"
				  << i.cigar   << "\t"
				  << i.rnext   << "\t"
				  << i.pnext   << "\t"
				  << i.tlen    << "\t"
				  << i.seq     << "\t"
				  << i.qual    << "\t";
				for( auto it = i.other.begin(); it != i.other.end(); ++it) {
					if (++it != i.other.end()) { // incr to see what next element is
						--it;                    // next element is not end(), so decr
						o << *it << "\t";
					} else {
						--it;                    // decr to go back to right pos
						o << *it;
					}
				}
				return o;
			}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
callq 0x2200
leaq 0x1f32(%rip), %r15      # 0x54b4
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movl 0x20(%r14), %esi
movq %rax, %rdi
callq 0x2360
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
leaq 0x28(%r14), %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movl 0x48(%r14), %esi
movq %rax, %rdi
callq 0x2360
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movl 0x4c(%r14), %esi
movq %rax, %rdi
callq 0x2360
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
leaq 0x50(%r14), %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
leaq 0x70(%r14), %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movl 0x90(%r14), %esi
movq %rax, %rdi
callq 0x2360
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movl 0x94(%r14), %esi
movq %rax, %rdi
callq 0x2360
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
leaq 0x98(%r14), %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
leaq 0xb8(%r14), %rsi
movq %rax, %rdi
callq 0x2200
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movq 0xd8(%r14), %rsi
movq 0xe0(%r14), %r13
cmpq %r13, %rsi
je 0x36b3
leaq 0x20(%rsi), %r12
movq %rbx, %rdi
callq 0x2200
cmpq %r13, %r12
je 0x36ae
movq %rax, %rdi
movq %r15, %rsi
callq 0x2210
movq %r12, %rsi
jmp 0x3686
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/distributions/Empirical.cpp
// Function: DNest4::Empirical::Empirical(char const*)
Empirical::Empirical(const char* filename)
{
    string value;
	ifstream file(filename);
    while(file >> value) {
        data.push_back(stod(value));
    }
	file.close();
    // std::cout << "done reading data from " << filename << std::endl;
    std::sort(data.begin(), data.end());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rdi, %r14
leaq 0x5c6fa(%rip), %rax     # 0x63370
movq %rax, (%rdi)
leaq 0x8(%rdi), %rbx
andq $0x0, 0x18(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%rdi)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x28(%rsp), %rdi
pushq $0x8
popq %rdx
callq 0x6740
leaq 0x28(%rsp), %r15
leaq 0x8(%rsp), %r12
movq %rsp, %r13
movq %r15, %rdi
movq %r12, %rsi
callq 0x64e0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x6ce9
movq %r12, %rdi
xorl %esi, %esi
callq 0x6f9f
movsd %xmm0, (%rsp)
movq %rbx, %rdi
movq %r13, %rsi
callq 0x71a2
jmp 0x6cb4
leaq 0x28(%rsp), %rdi
callq 0x60a0
movq 0x8(%r14), %rdi
movq 0x10(%r14), %rsi
callq 0x731f
leaq 0x28(%rsp), %rdi
callq 0x60f0
leaq 0x8(%rsp), %rdi
callq 0x6798
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
jmp 0x6d3b
jmp 0x6d2e
jmp 0x6d2e
movq %rax, %r14
leaq 0x28(%rsp), %rdi
callq 0x60f0
leaq 0x8(%rsp), %rdi
callq 0x6798
movq %rbx, %rdi
callq 0x716e
movq %r14, %rdi
callq 0x66e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/distributions/Empirical.cpp
// Function: DNest4::Empirical::cdf_inverse(double) const
double Empirical::cdf_inverse(double p) const
{
    if(p < 0.0 || p > 1.0)
        throw std::domain_error("Input to cdf_inverse must be in [0, 1].");
    
    double poi = -0.5*(1 - p) + p*(data.size()-0.5);

    size_t left = max(int64_t(floor(poi)), int64_t(0));
    size_t right = min(int64_t(ceil(poi)), int64_t(data.size() - 1));

    double datLeft = data.at(left);
    double datRight = data.at(right);

    double t = poi - left;
    double quantile = (1 - t)*datLeft + t*datRight;

    return quantile;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x6f14
ucomisd 0x35205(%rip), %xmm0    # 0x3c030
ja 0x6f14
movsd 0x351f7(%rip), %xmm3    # 0x3c030
subsd %xmm0, %xmm3
leaq 0x8(%rdi), %rbx
movq 0x10(%rdi), %r14
subq 0x8(%rdi), %r14
sarq $0x3, %r14
movq %r14, %xmm1
punpckldq 0x351b6(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x351be(%rip), %xmm1    # 0x3c020
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
movsd 0x351c2(%rip), %xmm1    # 0x3c038
addsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
mulsd %xmm1, %xmm3
addsd %xmm2, %xmm3
movapd %xmm3, %xmm0
movsd %xmm3, (%rsp)
callq 0x6660
cvttsd2si %xmm0, %rax
xorl %r15d, %r15d
testq %rax, %rax
cmovgq %rax, %r15
movsd (%rsp), %xmm0
callq 0x6080
cvttsd2si %xmm0, %rax
decq %r14
cmpq %rax, %r14
cmovgeq %rax, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x7082
cvtsi2sd %r15, %xmm0
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
movsd 0x3514e(%rip), %xmm0    # 0x3c030
subsd %xmm1, %xmm0
mulsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq %rbx, %rdi
movq %r14, %rsi
callq 0x7082
movsd (%rsp), %xmm0
mulsd (%rax), %xmm0
addsd 0x8(%rsp), %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
pushq $0x10
popq %rdi
callq 0x61d0
movq %rax, %rbx
leaq 0x3511a(%rip), %rsi     # 0x3c040
movq %rax, %rdi
callq 0x6280
movq 0x5d003(%rip), %rsi     # 0x63f38
movq 0x5d024(%rip), %rdx     # 0x63f60
movq %rbx, %rdi
callq 0x6690
movq %rax, %r14
movq %rbx, %rdi
callq 0x6340
movq %r14, %rdi
callq 0x66e0
nop
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/distributions/Gaussian_from_Tc.cpp
// Function: DNest4::Gaussian_from_Tc::Gaussian_from_Tc(double, double, double, double)
Gaussian_from_Tc::Gaussian_from_Tc(double Tc, double errTc, double P, double errP)
    {
        double t0 = Data::get_instance().M0_epoch;

        // propagate uncertainty on Tc and P to phi
        double A, B, AoB, sA, sB;
        A = t0 - Tc;
        B = (2 * M_PI * P);
        AoB = A / B;
        sA = errTc;
        sB = (2 * M_PI * errP);

        // build the Gaussian distribution for phi
        m = AoB;
        s = fabs(AoB) * sqrt(pow(sA/A, 2) + pow(sB/B, 2));
        d = Gaussian(m, s);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movaps %xmm3, 0x20(%rsp)
movaps %xmm2, 0x10(%rsp)
movaps %xmm1, 0x30(%rsp)
movsd %xmm0, 0x8(%rsp)
movq %rdi, %rbx
leaq 0x5bb0a(%rip), %rax     # 0x63430
movq %rax, (%rdi)
addq $0x18, %rdi
movsd 0x346fb(%rip), %xmm1    # 0x3c030
xorps %xmm0, %xmm0
callq 0x3a140
leaq 0x5cc3c(%rip), %rax     # 0x64580
movsd 0x100(%rax), %xmm1
subsd 0x8(%rsp), %xmm1
movsd 0x347f6(%rip), %xmm2    # 0x3c150
movapd 0x10(%rsp), %xmm3
mulsd %xmm2, %xmm3
movapd %xmm1, %xmm0
divsd %xmm3, %xmm0
movapd %xmm3, %xmm4
movapd 0x20(%rsp), %xmm3
mulsd %xmm2, %xmm3
movsd %xmm0, 0x8(%rbx)
movapd 0x347d9(%rip), %xmm2    # 0x3c160
andpd %xmm0, %xmm2
unpcklpd 0x30(%rsp), %xmm3       # xmm3 = xmm3[0],mem[0]
unpcklpd %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0]
divpd %xmm4, %xmm3
mulpd %xmm3, %xmm3
movapd %xmm3, %xmm1
unpckhpd %xmm3, %xmm1            # xmm1 = xmm1[1],xmm3[1]
addsd %xmm3, %xmm1
sqrtsd %xmm1, %xmm1
mulsd %xmm2, %xmm1
movsd %xmm1, 0x10(%rbx)
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x3a140
movq 0x18(%r14), %rax
movq %rax, 0x30(%rbx)
movups 0x8(%r14), %xmm0
movups %xmm0, 0x20(%rbx)
addq $0x68, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/distributions/mixGaussianLogUniform.cpp
// Function: DNest4::mixGaussianLogUniform::cdf_inverse(double) const
double mixGaussianLogUniform::cdf_inverse(double p) const
{
    // not implemented
    // throw std::runtime_error("cdf_inverse not implemented for `mixGaussianLogUniform`");

    // estimate cdf_inverse with bisection
    double tol = 2e-12, a = lower, b = upper;
    double c = a;

    while ((b - a) >= tol)
    {
        c = (a + b) / 2;
        if (cdf(c) - p == 0.0)
            break;
        else if ((cdf(c) - p) * (cdf(a) - p) < 0)
            b = c;
        else
            a = c;
    }

    return c;
}

// Assembly:
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movsd 0x18(%rdi), %xmm3
movsd 0x20(%rdi), %xmm1
movapd %xmm3, %xmm4
movsd %xmm0, 0x8(%rsp)
movapd %xmm1, %xmm0
subsd %xmm3, %xmm0
ucomisd 0x345f4(%rip), %xmm0    # 0x3c1a0
jb 0x7c65
movapd %xmm3, %xmm0
movsd %xmm1, 0x20(%rsp)
addsd %xmm1, %xmm0
mulsd 0x345d0(%rip), %xmm0    # 0x3c198
movq (%rbx), %rax
movq %rbx, %rdi
movapd %xmm0, 0x10(%rsp)
movapd %xmm3, 0x30(%rsp)
callq *0x10(%rax)
xorpd %xmm1, %xmm1
subsd 0x8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jne 0x7bef
jnp 0x7c5f
movq (%rbx), %rax
movq %rbx, %rdi
movapd 0x10(%rsp), %xmm0
callq *0x10(%rax)
subsd 0x8(%rsp), %xmm0
movsd %xmm0, 0x28(%rsp)
movq (%rbx), %rax
movq %rbx, %rdi
movapd 0x30(%rsp), %xmm0
callq *0x10(%rax)
xorpd %xmm3, %xmm3
movsd 0x8(%rsp), %xmm2
subsd %xmm2, %xmm0
mulsd 0x28(%rsp), %xmm0
ucomisd %xmm0, %xmm3
movapd 0x10(%rsp), %xmm4
movapd %xmm4, %xmm1
ja 0x7c43
movsd 0x20(%rsp), %xmm1
cmpltsd %xmm3, %xmm0
movapd 0x30(%rsp), %xmm3
andpd %xmm0, %xmm3
andnpd %xmm4, %xmm0
orpd %xmm0, %xmm3
jmp 0x7b9c
movapd 0x10(%rsp), %xmm4
movapd %xmm4, %xmm0
addq $0x40, %rsp
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/distributions/mixGaussianLogUniform.cpp
// Function: DNest4::mixGaussianLogUniform::perturb(double&, DNest4::RNG&) const
double mixGaussianLogUniform::perturb(double& x, RNG& rng) const
{
    x = cdf(x);
    x += rng.randh();
    wrap(x, 0.0, 1.0);
    if (rng.rand_int(2) == 0)
        x = G.cdf_inverse(x);
    else
        x = LU.cdf_inverse(x);
    return 0.0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movsd (%rsi), %xmm0
movq (%rdi), %rax
callq *0x10(%rax)
movsd %xmm0, (%rbx)
movq %r15, %rdi
callq 0x38bee
addsd (%rbx), %xmm0
movsd %xmm0, (%rbx)
movsd 0x34330(%rip), %xmm1    # 0x3c030
xorpd %xmm0, %xmm0
movq %rbx, %rdi
callq 0x39141
pushq $0x2
popq %rsi
movq %r15, %rdi
callq 0x38cc4
movsd (%rbx), %xmm0
testl %eax, %eax
je 0x7d2d
addq $0x48, %r14
movq %r14, %rdi
callq 0x3a9c0
jmp 0x7d39
addq $0x28, %r14
movq %r14, %rdi
callq 0x3a1cc
movsd %xmm0, (%rbx)
xorps %xmm0, %xmm0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/RVConditionalPrior.cpp
// Function: RVConditionalPrior::from_prior(DNest4::RNG&)
void RVConditionalPrior::from_prior(RNG& rng)
{
    if(hyperpriors)
    {
        center = log_muP_prior->generate(rng);
        width = wP_prior->generate(rng);
        muK = exp(log_muK_prior->generate(rng));
    }
}

// Assembly:
leaq 0x3eedd(%rip), %rax     # 0x4700e
cmpb $0x1, (%rax)
jne 0x8182
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq 0x70(%rdi), %rdi
callq 0x39b9c
movsd %xmm0, 0x8(%rbx)
movq 0x80(%rbx), %rdi
movq %r14, %rsi
callq 0x39b9c
movsd %xmm0, 0x10(%rbx)
movq 0x90(%rbx), %rdi
movq %r14, %rsi
callq 0x39b9c
callq 0x6700
movsd %xmm0, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/j-faria[P]kima/src/RVConditionalPrior.cpp
// Function: RVConditionalPrior::perturb_hyperparameters(DNest4::RNG&)
double RVConditionalPrior::perturb_hyperparameters(RNG& rng)
{
    double logH = 0.;

    if(hyperpriors)
    {
        int which = rng.rand_int(3);

        if(which == 0)
            log_muP_prior->perturb(center, rng);
        else if(which == 1)
            wP_prior->perturb(width, rng);
        else
        {
            muK = log(muK);
            log_muK_prior->perturb(muK, rng);
            muK = exp(muK);
        }
    }

    return logH;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x3ee7e(%rip), %rax     # 0x4700e
cmpb $0x1, (%rax)
jne 0x8205
movq %rsi, %r14
movq %rdi, %rbx
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x38cc4
cmpl $0x1, %eax
je 0x81b9
testl %eax, %eax
jne 0x81d1
movq 0x70(%rbx), %rdi
addq $0x8, %rbx
jmp 0x81c4
movq 0x80(%rbx), %rdi
addq $0x10, %rbx
movq %rbx, %rsi
movq %r14, %rdx
callq 0x39bb6
jmp 0x8205
leaq 0x18(%rbx), %r15
movsd 0x18(%rbx), %xmm0
callq 0x63b0
movsd %xmm0, 0x18(%rbx)
movq 0x90(%rbx), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x39bb6
movsd 0x18(%rbx), %xmm0
callq 0x6700
movsd %xmm0, 0x18(%rbx)
xorps %xmm0, %xmm0
popq %rbx
popq %r14
popq %r15
retq