LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Mulan-Szechuan-Sauce[P]javelin/src/node.cpp
// Function: NIdentifier::set_type(Type*)
void NIdentifier::set_type(Type *type) {
  auto vd = (VariableDefinition *)scope->findDefinition(name);
  if (vd->get_type()->isUnset()) {
    vd->set_type(type);
  } else if (vd->get_type()->cpp_type_string() != type->cpp_type_string()) {
    throw std::runtime_error(name + " is already a "
                             + vd->type->cpp_type_string());
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
leaq -0x78(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rdx
addq %rsi, %rdx
leaq -0x88(%rbp), %r12
movq %r12, %rdi
callq 0x9fb4
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *(%rax)
movq %rax, %r15
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0xca13
callq 0x51b0
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x10(%rcx)
testb %al, %al
je 0xca37
movq (%r15), %rax
movq %r15, %rdi
movq %rbx, %rsi
callq *0x20(%rax)
jmp 0xcab3
movq (%r15), %rax
movq %r15, %rdi
callq *0x18(%rax)
movq (%rax), %rcx
leaq -0x68(%rbp), %rdi
movq %rax, %rsi
callq *(%rcx)
movq (%rbx), %rax
leaq -0x48(%rbp), %rdi
movq %rbx, %rsi
callq *(%rax)
movq -0x60(%rbp), %rdx
cmpq -0x40(%rbp), %rdx
jne 0xca7f
movq -0x48(%rbp), %rbx
testq %rdx, %rdx
je 0xca88
movq -0x68(%rbp), %rdi
movq %rbx, %rsi
callq 0x51e0
testl %eax, %eax
setne %r12b
jmp 0xca8b
movb $0x1, %r12b
movq -0x48(%rbp), %rbx
jmp 0xca8b
xorl %r12d, %r12d
leaq -0x38(%rbp), %rax
cmpq %rax, %rbx
je 0xca9c
movq %rbx, %rdi
callq 0x51b0
leaq -0x58(%rbp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0xcaae
callq 0x51b0
testb %r12b, %r12b
jne 0xcac5
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
addq $0x10, %r14
movl $0x10, %edi
callq 0x5120
movq %rax, %rbx
leaq 0x324b(%rip), %rdx      # 0xfd28
leaq -0x48(%rbp), %rdi
movq %r14, %rsi
callq 0xd23c
movq 0x8(%r15), %rsi
movq (%rsi), %rax
leaq -0xa8(%rbp), %rdi
callq *(%rax)
leaq -0x68(%rbp), %rdi
leaq -0x48(%rbp), %rsi
leaq -0xa8(%rbp), %rdx
callq 0xd296
movb $0x1, %r15b
leaq -0x68(%rbp), %rsi
movq %rbx, %rdi
callq 0x52e0
xorl %r15d, %r15d
movq 0x84ca(%rip), %rsi      # 0x14ff0
movq 0x8493(%rip), %rdx      # 0x14fc0
movq %rbx, %rdi
callq 0x5320
movq %rax, %r14
movq -0x68(%rbp), %rdi
cmpq %r13, %rdi
je 0xcb4e
callq 0x51b0
jmp 0xcb4e
movq %rax, %r14
movb $0x1, %r15b
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xcb63
callq 0x51b0
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xcb75
callq 0x51b0
testb %r15b, %r15b
jne 0xcb96
jmp 0xcbc6
movq %rax, %r14
movq -0x48(%rbp), %rdi
leaq -0x38(%rbp), %rax
cmpq %rax, %rdi
je 0xcb96
callq 0x51b0
jmp 0xcb96
movq %rax, %r14
movq %rbx, %rdi
callq 0x5170
jmp 0xcbc6
movq %rax, %r14
leaq -0x58(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0xcbc1
jmp 0xcbc6
movq %rax, %r14
movq -0x88(%rbp), %rdi
cmpq %r13, %rdi
je 0xcbc6
callq 0x51b0
movq %r14, %rdi
callq 0x5340
// File: /workspace/github_cpp_makefile_star2_O3/Mulan-Szechuan-Sauce[P]javelin/src/node.cpp
// Function: NFunctionCallExpression::generate_itr_header(NIdentifier*)
void NFunctionCallExpression::generate_itr_header(NIdentifier *id) {
  FunctionDefinition *def = (FunctionDefinition *)scope->findDefinition(this->id->name);
  if (def->hasCustomIterator()) {
    def->generateItrCallForArgs(id, args);
  } else {
    NExpression::generate_itr_header(id);
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %r15
movq 0x10(%rdi), %rax
leaq -0x38(%rbp), %r13
movq %r13, -0x10(%r13)
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %r12
movq %r12, %rdi
callq 0x9fb4
movq (%r15), %rax
movq %r15, %rdi
movq %r12, %rsi
callq *(%rax)
movq %rax, %r15
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xccb2
callq 0x51b0
movq (%r15), %rax
movq %r15, %rdi
callq *0x30(%rax)
testb %al, %al
je 0xccd1
movq 0x18(%r14), %rdx
movq (%r15), %rax
movq %r15, %rdi
movq %rbx, %rsi
callq *0x38(%rax)
jmp 0xccdc
movq %r14, %rdi
movq %rbx, %rsi
callq 0xbda0
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r13, %rdi
je 0xccfc
callq 0x51b0
movq %rbx, %rdi
callq 0x5340
// File: /workspace/github_cpp_makefile_star2_O3/Mulan-Szechuan-Sauce[P]javelin/src/node.cpp
// Function: NOpType_str[abi:cxx11](NOpType)
string NOpType_str(NOpType t) {
  switch (t) {
  case N_LT:  return "<";
  case N_GT:  return ">";
  case N_EQ:  return "==";
  case N_NEQ: return "!=";
  case N_GTE: return ">=";
  case N_LTE: return "<=";
  case N_NOT: return "!";
  case N_AND: return "&&";
  case N_OR:  return "||";
  case N_ADD: return "+";
  case N_SUB: return "-";
  case N_MUL: return "*";
  case N_DIV: return "/";
  case N_SL: return "<<";
  case N_SR: return ">>";
  case N_BA: return "&";
  case N_BO: return "|";
  case N_BN: return "~";
  case N_BX: return "^";
  default:    return "<type string undeclared>";
  }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rdi)
cmpl $0x12, %esi
ja 0xd21c
movl %esi, %eax
leaq 0x2aee(%rip), %rcx      # 0xfbb0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x2cc3(%rip), %rsi      # 0xfd95
leaq 0x2cbd(%rip), %rdx      # 0xfd96
jmp 0xd22a
leaq 0x2ca5(%rip), %rsi      # 0xfd8a
leaq 0x2c9f(%rip), %rdx      # 0xfd8b
jmp 0xd22a
leaq 0x2c9f(%rip), %rsi      # 0xfd97
leaq 0x2c9a(%rip), %rdx      # 0xfd99
jmp 0xd22a
leaq 0x2c85(%rip), %rsi      # 0xfd90
leaq 0x2c7f(%rip), %rdx      # 0xfd91
jmp 0xd22a
leaq 0x2c60(%rip), %rsi      # 0xfd7e
leaq 0x2c5b(%rip), %rdx      # 0xfd80
jmp 0xd22a
leaq 0x2c61(%rip), %rsi      # 0xfd92
leaq 0x2c5b(%rip), %rdx      # 0xfd93
jmp 0xd22a
leaq 0x2c48(%rip), %rsi      # 0xfd8c
leaq 0x2c42(%rip), %rdx      # 0xfd8d
jmp 0xd22a
leaq 0x2c21(%rip), %rsi      # 0xfd78
leaq 0x2c1c(%rip), %rdx      # 0xfd7a
jmp 0xd22a
leaq 0x2c1d(%rip), %rsi      # 0xfd87
leaq 0x2c17(%rip), %rdx      # 0xfd88
jmp 0xd22a
leaq 0x2bfe(%rip), %rsi      # 0xfd7b
leaq 0x2bf9(%rip), %rdx      # 0xfd7d
jmp 0xd22a
leaq 0x2bf9(%rip), %rsi      # 0xfd89
leaq 0x2bf4(%rip), %rdx      # 0xfd8b
jmp 0xd22a
leaq 0x2bf5(%rip), %rsi      # 0xfd98
leaq 0x2bef(%rip), %rdx      # 0xfd99
jmp 0xd22a
leaq 0x2be9(%rip), %rsi      # 0xfd9c
leaq 0x2be3(%rip), %rdx      # 0xfd9d
jmp 0xd22a
leaq 0x2bbe(%rip), %rsi      # 0xfd81
leaq 0x2bb9(%rip), %rdx      # 0xfd83
jmp 0xd22a
leaq 0x2bc1(%rip), %rsi      # 0xfd94
leaq 0x2bbc(%rip), %rdx      # 0xfd96
jmp 0xd22a
leaq 0x2ba1(%rip), %rsi      # 0xfd84
leaq 0x2b9b(%rip), %rdx      # 0xfd85
jmp 0xd22a
leaq 0x2ba7(%rip), %rsi      # 0xfd9a
leaq 0x2ba1(%rip), %rdx      # 0xfd9b
jmp 0xd22a
leaq 0x2b8b(%rip), %rsi      # 0xfd8e
leaq 0x2b85(%rip), %rdx      # 0xfd8f
jmp 0xd22a
leaq 0x2b73(%rip), %rsi      # 0xfd86
leaq 0x2b6e(%rip), %rdx      # 0xfd88
jmp 0xd22a
leaq 0x2b7b(%rip), %rsi      # 0xfd9e
leaq 0x2b8c(%rip), %rdx      # 0xfdb6
movq %rbx, %rdi
callq 0x9f16
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Mulan-Szechuan-Sauce[P]javelin/src/node.hpp
// Function: NAssignment::addToRootStmts()
virtual void addToRootStmts() {
    // We want it in both lists!
    NStatement::addToRootStmts();

    extern std::vector<NAssignment*> rootAssignStmts;
    rootAssignStmts.push_back(this);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x8dc8
movq %rbx, -0x10(%rbp)
leaq 0x7eb5(%rip), %rax      # 0x15230
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0xd38f
movq %rbx, (%rsi)
addq $0x8, 0x8(%rax)
jmp 0xd39f
leaq 0x7e9a(%rip), %rdi      # 0x15230
leaq -0x10(%rbp), %rdx
callq 0xd948
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Mulan-Szechuan-Sauce[P]javelin/src/node.hpp
// Function: NList::generate_itr_header(NIdentifier*)
virtual void generate_itr_header(NIdentifier *id) {
    Type *t = type->get_itr_type();
    cout << "for (" << t->cpp_type_string() << ' ' << id->name << " : ";
    generate();
    cout << ") {" << endl;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r15
movq %rdi, %r14
movq 0x18(%rdi), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movq %rax, %r12
movq 0x7bed(%rip), %rbx      # 0x14fc8
leaq 0x2865(%rip), %rsi      # 0xfc47
movl $0x5, %edx
movq %rbx, %rdi
callq 0x5220
movq (%r12), %rax
leaq -0x50(%rbp), %r13
movq %r13, %rdi
movq %r12, %rsi
callq *(%rax)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %rbx, %rdi
callq 0x5220
leaq -0x29(%rbp), %rsi
movb $0x20, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x5220
movq 0x10(%r15), %rsi
movq 0x18(%r15), %rdx
movq %rax, %rdi
callq 0x5220
leaq 0x230a(%rip), %rsi      # 0xf744
movl $0x3, %edx
movq %rax, %rdi
callq 0x5220
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd459
callq 0x51b0
movq (%r14), %rax
movq %r14, %rdi
callq *0x10(%rax)
leaq 0x22f5(%rip), %rsi      # 0xf75e
movl $0x3, %edx
movq %rbx, %rdi
callq 0x5220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5150
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x40(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xd4c1
callq 0x51b0
movq %rbx, %rdi
callq 0x5340
nop
// File: /workspace/github_cpp_makefile_star2_O3/Mulan-Szechuan-Sauce[P]javelin/src/node.hpp
// Function: NReturn::generate(int)
virtual void generate(int level) {
    NStatement::generate(level);
    cout << "return ";
    if (expr) expr->generate();
    cout << ';' << endl;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
testl %esi, %esi
jle 0xd7f2
movl %esi, %r14d
movq 0x77f2(%rip), %r15      # 0x14fc8
leaq 0x1bfd(%rip), %r12      # 0xf3da
movl $0x2, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x5220
decl %r14d
jne 0xd7dd
movq 0x77cf(%rip), %rdi      # 0x14fc8
leaq 0x25ca(%rip), %rsi      # 0xfdca
movl $0x7, %edx
callq 0x5220
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0xd819
movq (%rdi), %rax
callq *0x10(%rax)
leaq -0x21(%rbp), %rsi
movb $0x3b, (%rsi)
movq 0x77a1(%rip), %rdi      # 0x14fc8
movl $0x1, %edx
callq 0x5220
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
callq 0x5150
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Mulan-Szechuan-Sauce[P]javelin/src/node.hpp
// Function: NForStatement::generate(int)
virtual void generate(int level) {
    NStatement::generate(level);
    Type *itr_type = iterable->get_type()->get_itr_type();

    iterable->generate_itr_header(itr_name);
    stmt->generate(level + 1);
    printIndent(level);
    cout << "}" << endl;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
testl %esi, %esi
jle 0xd8a5
movq 0x7742(%rip), %r15      # 0x14fc8
leaq 0x1b4d(%rip), %r12      # 0xf3da
movl %ebx, %r13d
movl $0x2, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x5220
decl %r13d
jne 0xd890
movq 0x18(%r14), %rdi
movq (%rdi), %rax
callq *(%rax)
movq (%rax), %rcx
movq %rax, %rdi
callq *0x8(%rcx)
movq 0x10(%r14), %rsi
movq 0x18(%r14), %rdi
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%r14), %rdi
leal 0x1(%rbx), %esi
movq (%rdi), %rax
callq *(%rax)
testl %ebx, %ebx
jle 0xd8f7
movq 0x76ec(%rip), %r14      # 0x14fc8
leaq 0x1af7(%rip), %r15      # 0xf3da
movl $0x2, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5220
decl %ebx
jne 0xd8e3
movq 0x76ca(%rip), %rbx      # 0x14fc8
leaq 0x1b32(%rip), %rsi      # 0xf437
movl $0x1, %edx
movq %rbx, %rdi
callq 0x5220
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x51c0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x5030
movq %rax, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5150
nop
// File: /workspace/github_cpp_makefile_star2_O3/j-faria[P]kima/examples/many_planets/kima_setup.cpp
// Function: main
int main(int argc, char** argv)
{
    datafile = "HD10180.kms.rv";

    load(datafile, "kms", 1);

    Sampler<RVmodel> sampler = setup<RVmodel>(argc, argv);
    sampler.run(50);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x6c0, %rsp            # imm = 0x6C0
movq %rsi, %rbx
movl %edi, %ebp
movq 0x30152(%rip), %rdx     # 0x50548
leaq 0x30143(%rip), %r14     # 0x50540
leaq 0x224e9(%rip), %rcx     # 0x428ed
movl $0xe, %r8d
movq %r14, %rdi
xorl %esi, %esi
callq 0x6600
leaq 0x8(%rsp), %rdx
movl $0x1, (%rdx)
leaq 0x1d0ea(%rip), %rsi     # 0x3d510
movq %r14, %rdi
callq 0x20625
leaq 0x8(%rsp), %r14
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x20728
movq %r14, %rdi
movl $0x32, %esi
callq 0x207fa
leaq 0x8(%rsp), %rdi
callq 0x209d8
xorl %eax, %eax
addq $0x6c0, %rsp            # imm = 0x6C0
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq 0x8(%rsp), %rdi
callq 0x209d8
movq %rbx, %rdi
callq 0x6710
// File: /workspace/github_cpp_makefile_star2_O3/skyetheguy[P]gait_cycle_phase_detection/processSignal.cpp
// Function: processSignal::updateState(int, float)
void processSignal::updateState(int time, float sensorValue)
{

	if (dataRecord.size() < 5)
	{
		dataRecord.push_back(sensorValue);
	}
	else
	{
		dataRecord.push_back(sensorValue);
		dataRecord.pop_front();
	}


	lastDirection = direction;
	lastTime = currTime;


	currTime = time;

	if (lastReading < smoothData)
	{
		direction = 0;
	}
	else 
	{
		direction = 1;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
movss %xmm0, -0x1c(%rbp)
movq 0x60(%rdi), %rax
movq %rax, %rcx
subq 0x40(%rdi), %rcx
shrq $0x3, %rcx
cmpq $0x1, %rax
adcq $-0x1, %rcx
leaq 0x18(%rdi), %r15
shlq $0x7, %rcx
movq 0x38(%rdi), %rdx
movq 0x48(%rdi), %rax
movq %rax, %rsi
subq 0x50(%rdi), %rsi
sarq $0x2, %rsi
subq 0x28(%rdi), %rdx
sarq $0x2, %rdx
addq %rsi, %rdx
addq %rcx, %rdx
movq 0x58(%rdi), %rcx
addq $-0x4, %rcx
cmpq $0x4, %rdx
ja 0x35ea
cmpq %rcx, %rax
je 0x35fd
movss %xmm0, (%rax)
addq $0x4, %rax
movq %rax, 0x48(%rbx)
jmp 0x361f
cmpq %rcx, %rax
je 0x360b
movss %xmm0, (%rax)
addq $0x4, %rax
movq %rax, 0x48(%rbx)
jmp 0x3617
leaq -0x1c(%rbp), %rsi
movq %r15, %rdi
callq 0x3988
jmp 0x361f
leaq -0x1c(%rbp), %rsi
movq %r15, %rdi
callq 0x3988
movq %r15, %rdi
callq 0x37ba
movl 0x8(%rbx), %eax
movl %eax, 0xc(%rbx)
movl 0x10(%rbx), %eax
movl %eax, 0x14(%rbx)
movl %r14d, 0x10(%rbx)
movss (%rbx), %xmm0
xorl %eax, %eax
ucomiss 0x4(%rbx), %xmm0
setbe %al
movl %eax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: main
int main(int argc, char** argv) {
    // Initialize better output for the console if we're on Windows
    init();

    // The command loop is very simple. Convert arguements into individual std::string components,
    // recursively call process_todos until no commands are left.

    std::queue<std::string>* commands = proc_commands(argv, argc);
    if(commands->empty()) {
        read_todos(true);
    } else {
        process_todos(commands, true);
    }
    delete commands;            

    return(0);
}

// Assembly:
pushq %rbx
movl %edi, %eax
movq %rsi, %rdi
movl %eax, %esi
callq 0x15169
movq %rax, %rbx
movq 0x30(%rax), %rax
cmpq 0x10(%rbx), %rax
je 0x15146
movq %rbx, %rdi
movl $0x1, %esi
callq 0x154f5
jmp 0x15150
movl $0x1, %edi
callq 0x15249
movq %rbx, %rdi
callq 0x16e76
movl $0x50, %esi
movq %rbx, %rdi
callq 0x17970
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: match_one_or_more(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
bool match_one_or_more(std::string input, std::string compare) {
    if(input.length() > 0 && compare.length() > 0) {
        std::string command = compare;
        if(input.length() < command.length()) {
            command = command.substr(0, input.length());
        }

        return input.compare(command) == 0;
    }
    return false;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
cmpq $0x0, 0x8(%rdi)
je 0x16206
movq 0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x16206
movq %rdi, %rbx
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsi), %rsi
addq %rsi, %rdx
movq %rsp, %r14
movq %r14, %rdi
callq 0x1706c
movq 0x8(%rbx), %rcx
cmpq 0x8(%r14), %rcx
jae 0x161de
leaq 0x20(%rsp), %rdi
movq %rsp, %rsi
xorl %edx, %edx
callq 0x89c60
movq %rsp, %rdi
leaq 0x20(%rsp), %r14
movq %r14, %rsi
callq 0x873d0
movq (%r14), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x161de
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x17970
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x893e0
testl %eax, %eax
sete %bl
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x16208
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x17970
jmp 0x16208
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x16216
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x1622f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x17970
movq %rbx, %rdi
callq 0xb83a0
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: todo_init(bool)
void todo_init(bool is_local) {
    char* userdir = get_userdir();
    char path[PATHMAX];
    if(is_local) {
        sprintf(path, ".%s.todo", SEPARATOR);
    } else {
        sprintf(path, "%s%s.todo", userdir, SEPARATOR);
    }

    FILE* fp = fopen(path, "w");
    if(fp) {
        ccout << "Created " << path << std::endl;
        fclose(fp);
    } else {
        ccout << "Error creating " << path << std::endl;
    }    
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movl %edi, %ebx
leaq 0xa5008(%rip), %rdi     # 0xbb254
callq 0x124b0
testl %ebx, %ebx
je 0x1626f
leaq 0xa4ffd(%rip), %rsi     # 0xbb259
leaq 0xa4fff(%rip), %rdx     # 0xbb262
movq %rsp, %rdi
xorl %eax, %eax
callq 0x12370
jmp 0x1628a
leaq 0xa4fee(%rip), %rsi     # 0xbb264
leaq 0xa4fe5(%rip), %rcx     # 0xbb262
movq %rsp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x12370
leaq 0xa8e45(%rip), %rsi     # 0xbf0d6
movq %rsp, %rdi
callq 0x121f0
testq %rax, %rax
je 0x16306
movq %rax, %rbx
leaq 0xe11b8(%rip), %r14     # 0xf7460
leaq 0xa4fbf(%rip), %rsi     # 0xbb26e
movl $0x8, %edx
movq %r14, %rdi
callq 0x80a80
movq %rsp, %r15
movq %r15, %rdi
callq 0x122f0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x80a80
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %r14, %rdi
callq 0x80580
movq %rax, %rdi
callq 0x7fb50
movq %rbx, %rdi
callq 0x12580
jmp 0x16361
leaq 0xe1153(%rip), %rbx     # 0xf7460
leaq 0xa4f63(%rip), %rsi     # 0xbb277
movl $0xf, %edx
movq %rbx, %rdi
callq 0x80a80
movq %rsp, %r14
movq %r14, %rdi
callq 0x122f0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x80a80
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x80580
movq %rax, %rdi
callq 0x7fb50
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: get_todos[abi:cxx11](bool)
std::vector<std::string> get_todos(bool local_mode)  {
    char* userdir = get_userdir();
    char path[PATHMAX];
    if(local_mode) {
        sprintf(path, ".%s.todo", SEPARATOR);
    } else {
        sprintf(path, "%s%s.todo", userdir, SEPARATOR);
    }

    FILE* fp = fopen(path, "r");
    std::vector<std::string> buffer;
    if(fp) {
        do {
            char line[PATHMAX];
            char* res = fgets(line, PATHMAX, fp);
            if(res) {
                buffer.push_back(std::string(res));
            } else {
                break;
            }
        } while(true);
        fclose(fp);
    } else {
        usage();        
    }    
    
    return buffer;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2028, %rsp           # imm = 0x2028
movl %esi, %ebp
movq %rdi, %rbx
leaq 0xa4ec9(%rip), %rdi     # 0xbb254
callq 0x124b0
testl %ebp, %ebp
je 0x163b0
leaq 0xa4ebe(%rip), %rsi     # 0xbb259
leaq 0xa4ec0(%rip), %rdx     # 0xbb262
leaq 0x20(%rsp), %rdi
xorl %eax, %eax
callq 0x12370
jmp 0x163cd
leaq 0xa4ead(%rip), %rsi     # 0xbb264
leaq 0xa4ea4(%rip), %rcx     # 0xbb262
leaq 0x20(%rsp), %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x12370
leaq 0xa972b(%rip), %rsi     # 0xbfaff
leaq 0x20(%rsp), %rdi
callq 0x121f0
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
testq %rax, %rax
je 0x16483
movq %rax, %r14
leaq 0x1020(%rsp), %rdi
movl $0x1000, %esi           # imm = 0x1000
movq %rax, %rdx
callq 0x12260
testq %rax, %rax
je 0x16479
movq %rax, %r13
leaq 0x10(%rsp), %rbp
movq %rsp, %r15
leaq 0x1020(%rsp), %r12
movq %rbp, (%rsp)
movq %r13, %rdi
callq 0x122f0
leaq (%rax,%r13), %rdx
movq %r15, %rdi
movq %r13, %rsi
callq 0x17296
movq %rbx, %rdi
movq %r15, %rsi
callq 0x17600
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x16461
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x17970
movq %r12, %rdi
movl $0x1000, %esi           # imm = 0x1000
movq %r14, %rdx
callq 0x12260
movq %rax, %r13
testq %rax, %rax
jne 0x16425
movq %r14, %rdi
callq 0x12580
jmp 0x16488
callq 0x16008
movq %rbx, %rax
addq $0x2028, %rsp           # imm = 0x2028
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1649f
movq %rax, %r14
jmp 0x164bd
movq %rax, %r14
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x164bd
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x17970
movq %rbx, %rdi
callq 0x16d8e
movq %r14, %rdi
callq 0xb83a0
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: concat_remainder(std::queue<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::deque<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>*)
std::string concat_remainder(std::queue<std::string>* command_list) {
    std::string s;
    while(!command_list->empty()) {
        s += command_list->front();
        command_list->pop();
        if(!command_list->empty()) { s += " "; }
    }

    return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x10(%rdi), %r12
movq %r12, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x10(%rsi), %rax
cmpq %rax, 0x30(%rsi)
je 0x1653b
movq %rsi, %r14
leaq 0xa5041(%rip), %r15     # 0xbb540
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0x889f0
movq %r14, %rdi
callq 0x17854
movq 0x10(%r14), %rax
movq 0x30(%r14), %rcx
cmpq %rax, %rcx
je 0x16536
movq %rbx, %rdi
movq %r15, %rsi
callq 0x88b30
movq 0x10(%r14), %rax
movq 0x30(%r14), %rcx
cmpq %rax, %rcx
jne 0x164ff
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
cmpq %r12, %rdi
je 0x16561
movq (%r12), %rsi
incq %rsi
callq 0x17970
movq %r14, %rdi
callq 0xb83a0
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: write_todo(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void write_todo(std::string msg, bool local_mode) {
    char* userdir = get_userdir();
    char path[PATHMAX];
    if(local_mode) {
        sprintf(path, ".%s.todo", SEPARATOR);
    } else {
        sprintf(path, "%s%s.todo", userdir, SEPARATOR);
    }

    FILE* fp = fopen(path, "a");
    if(fp) {
        fseek(fp, 0, SEEK_END);
        fprintf(fp, "X:%s\n", msg.c_str());
        ccout << "Added!" << std::endl;
        fclose(fp);
    } else {
        ccout << "Error adding todo." << std::endl;
    }    
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movl %esi, %ebp
movq %rdi, %rbx
leaq 0xa4cd4(%rip), %rdi     # 0xbb254
callq 0x124b0
testl %ebp, %ebp
je 0x165a3
leaq 0xa4cc9(%rip), %rsi     # 0xbb259
leaq 0xa4ccb(%rip), %rdx     # 0xbb262
movq %rsp, %rdi
xorl %eax, %eax
callq 0x12370
jmp 0x165be
leaq 0xa4cba(%rip), %rsi     # 0xbb264
leaq 0xa4cb1(%rip), %rcx     # 0xbb262
movq %rsp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x12370
leaq 0xa8b02(%rip), %rsi     # 0xbf0c7
movq %rsp, %rdi
callq 0x121f0
testq %rax, %rax
je 0x1664d
movq %rax, %r14
movq %rax, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x12150
movq (%rbx), %rdx
leaq 0xa4cac(%rip), %rsi     # 0xbb29a
movq %r14, %rdi
xorl %eax, %eax
callq 0x12670
leaq 0xe0e61(%rip), %rbx     # 0xf7460
leaq 0xa4c9a(%rip), %rsi     # 0xbb2a0
movl $0x6, %edx
movq %rbx, %rdi
callq 0x80a80
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x80580
movq %rax, %rdi
callq 0x7fb50
movq %r14, %rdi
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %rbp
jmp 0x12580
leaq 0xe0e0c(%rip), %rbx     # 0xf7460
leaq 0xa4c4c(%rip), %rsi     # 0xbb2a7
movl $0x12, %edx
movq %rbx, %rdi
callq 0x80a80
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x80580
movq %rax, %rdi
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r14
popq %rbp
jmp 0x7fb50
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: rewrite_todos(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>, bool)
void rewrite_todos(std::vector<std::string> buffer, bool local) {
    char* userdir = get_userdir();
    char path[PATHMAX];
    if(local) {
        sprintf(path, ".%s.todo", SEPARATOR);
    } else {
        sprintf(path, "%s%s.todo", userdir, SEPARATOR);
    }

    FILE* fp = fopen(path, "w");
    if(fp) {
        for(int i = 0; i < buffer.size(); i++) {
            // This guard here skips any blank lines. This is a little 'cheat' to allow for
            // easier deletion. Just set the respective line to be blank, and it'll be 'skipped' 
            // during output.
            if(buffer[i].length() == 0) { continue; }
            fprintf(fp, "%s", buffer[i].c_str());
        }        
        fclose(fp);        
    } else {
        ccout << "Error updating todos." << std::endl;
    }    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x1000, %rsp           # imm = 0x1000
movl %esi, %ebp
movq %rdi, %rbx
leaq 0xa4b9f(%rip), %rdi     # 0xbb254
callq 0x124b0
testl %ebp, %ebp
je 0x166d8
leaq 0xa4b94(%rip), %rsi     # 0xbb259
leaq 0xa4b96(%rip), %rdx     # 0xbb262
movq %rsp, %rdi
xorl %eax, %eax
callq 0x12370
jmp 0x166f3
leaq 0xa4b85(%rip), %rsi     # 0xbb264
leaq 0xa4b7c(%rip), %rcx     # 0xbb262
movq %rsp, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x12370
leaq 0xa89dc(%rip), %rsi     # 0xbf0d6
movq %rsp, %rdi
callq 0x121f0
testq %rax, %rax
je 0x16767
movq %rax, %r14
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq %rax, %rcx
je 0x16750
movl $0x8, %r15d
xorl %r12d, %r12d
cmpq $0x0, (%rax,%r15)
je 0x1673a
movq -0x8(%rax,%r15), %rdi
movq %r14, %rsi
callq 0x12400
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
incq %r12
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x5, %rdx
addq $0x20, %r15
cmpq %r12, %rdx
ja 0x1671f
movq %r14, %rdi
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x12580
leaq 0xe0cf2(%rip), %rbx     # 0xf7460
leaq 0xa4b45(%rip), %rsi     # 0xbb2ba
movl $0x15, %edx
movq %rbx, %rdi
callq 0x80a80
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x80580
movq %rax, %rdi
addq $0x1000, %rsp           # imm = 0x1000
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x7fb50
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: complete_todo(unsigned int, bool)
void complete_todo(unsigned int index, bool local) {
    auto todos = get_todos(local);
    if(todos.size() == 0 || index > todos.size() - 1) {
        ccout << "No item with index " << index << "." << std::endl;
    } else {
        todos[index][0] = 'O';
        ccout << "Item " << index << " completed!" << std::endl;
    }

    rewrite_todos(todos, local);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %esi, %ebx
movl %edi, %ebp
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x1636e
movq (%r14), %rax
movq 0x8(%r14), %rcx
movl %ebp, %r14d
subq %rax, %rcx
je 0x167ec
sarq $0x5, %rcx
decq %rcx
cmpq %r14, %rcx
jae 0x16840
leaq 0xe0c6d(%rip), %rdi     # 0xf7460
leaq 0xa4ad6(%rip), %rsi     # 0xbb2d0
movl $0x13, %edx
callq 0x80a80
leaq 0xe0c55(%rip), %rdi     # 0xf7460
movq %r14, %rsi
callq 0x81380
movq %rax, %r14
leaq 0xa8813(%rip), %rsi     # 0xbf030
movl $0x1, %edx
movq %rax, %rdi
callq 0x80a80
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x61bd0
jmp 0x168a0
movq %r14, %rcx
shlq $0x5, %rcx
movq (%rax,%rcx), %rax
movb $0x4f, (%rax)
leaq 0xe0c0b(%rip), %rdi     # 0xf7460
leaq 0xa4a88(%rip), %rsi     # 0xbb2e4
movl $0x5, %edx
callq 0x80a80
leaq 0xe0bf3(%rip), %rdi     # 0xf7460
movq %r14, %rsi
callq 0x81380
movq %rax, %r14
leaq 0xa4a6b(%rip), %rsi     # 0xbb2ea
movl $0xb, %edx
movq %rax, %rdi
callq 0x80a80
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %r14, %rdi
callq 0x80580
movq %rax, %rdi
callq 0x7fb50
movq %rsp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x16dec
movzbl %bl, %esi
movq %rsp, %rdi
callq 0x1669a
movq %rsp, %rdi
callq 0x16d8e
leaq 0x18(%rsp), %rdi
callq 0x16d8e
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x16d8e
jmp 0x168f6
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x16d8e
movq %rbx, %rdi
callq 0xb83a0
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: delete_todo(unsigned int, bool)
void delete_todo(unsigned int index, bool local) {
    auto todos = get_todos(local);
    if(todos.size() == 0 || index > todos.size() - 1) {
        ccout << "No item with index " << index << "." << std::endl;
    } else {
        todos[index] = "";
        ccout << "Item " << index << " deleted." << std::endl;
    }

    rewrite_todos(todos, local);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl %esi, %ebx
movl %edi, %ebp
leaq 0x18(%rsp), %r14
movq %r14, %rdi
callq 0x1636e
movq (%r14), %rax
movq 0x8(%r14), %rcx
movl %ebp, %r14d
subq %rax, %rcx
je 0x1693c
sarq $0x5, %rcx
decq %rcx
cmpq %r14, %rcx
jae 0x16990
leaq 0xe0b1d(%rip), %rdi     # 0xf7460
leaq 0xa4986(%rip), %rsi     # 0xbb2d0
movl $0x13, %edx
callq 0x80a80
leaq 0xe0b05(%rip), %rdi     # 0xf7460
movq %r14, %rsi
callq 0x81380
movq %rax, %r14
leaq 0xa86c3(%rip), %rsi     # 0xbf030
movl $0x1, %edx
movq %rax, %rdi
callq 0x80a80
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x61bd0
jmp 0x16a03
movq %r14, %rcx
shlq $0x5, %rcx
leaq (%rax,%rcx), %rdi
movq 0x8(%rax,%rcx), %rdx
leaq 0xa48f2(%rip), %rcx     # 0xbb299
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x87fd0
leaq 0xe0aa8(%rip), %rdi     # 0xf7460
leaq 0xa4925(%rip), %rsi     # 0xbb2e4
movl $0x5, %edx
callq 0x80a80
leaq 0xe0a90(%rip), %rdi     # 0xf7460
movq %r14, %rsi
callq 0x81380
movq %rax, %r14
leaq 0xa4914(%rip), %rsi     # 0xbb2f6
movl $0x9, %edx
movq %rax, %rdi
callq 0x80a80
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %r14, %rdi
callq 0x80580
movq %rax, %rdi
callq 0x7fb50
movq %rsp, %rdi
leaq 0x18(%rsp), %rsi
callq 0x16dec
movzbl %bl, %esi
movq %rsp, %rdi
callq 0x1669a
movq %rsp, %rdi
callq 0x16d8e
leaq 0x18(%rsp), %rdi
callq 0x16d8e
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
movq %rsp, %rdi
callq 0x16d8e
jmp 0x16a59
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x16d8e
movq %rbx, %rdi
callq 0xb83a0
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: sweep_todos(bool)
void sweep_todos(bool local) {
    auto todos = get_todos(local);
    int count = 0;
    for(int i = 0; i < todos.size(); i++) {
        if(todos[i].length() > 2) {
            if(todos[i][0] != 'X') {
                todos[i] = "";
                count++;
            }
        }
    }
    
    rewrite_todos(todos, local);
    ccout << "Removed " << count << " completed todo" << (count > 1 ? "s" : "") << " from the list!" << std::endl;     
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %edi, %ebp
movq %rsp, %rbx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1636e
movq (%rbx), %rax
movq 0x8(%rbx), %rcx
cmpq %rax, %rcx
je 0x16ae8
xorl %r15d, %r15d
leaq 0xa47fd(%rip), %r14     # 0xbb299
xorl %r12d, %r12d
xorl %ebx, %ebx
movq 0x8(%rax,%r15), %rdx
cmpq $0x3, %rdx
jb 0x16ad0
leaq (%rax,%r15), %rdi
movq (%rdi), %rsi
cmpb $0x58, (%rsi)
je 0x16ad0
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x87fd0
incl %ebx
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
incq %r12
movq %rcx, %rdx
subq %rax, %rdx
sarq $0x5, %rdx
addq $0x20, %r15
cmpq %r12, %rdx
ja 0x16aa1
jmp 0x16aea
xorl %ebx, %ebx
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x16dec
movzbl %bpl, %esi
leaq 0x18(%rsp), %rdi
callq 0x1669a
leaq 0x18(%rsp), %rdi
callq 0x16d8e
leaq 0xe094a(%rip), %rdi     # 0xf7460
leaq 0xa47e3(%rip), %rsi     # 0xbb300
movl $0x8, %edx
callq 0x80a80
leaq 0xe0932(%rip), %rdi     # 0xf7460
movl %ebx, %esi
callq 0x81350
movq %rax, %r14
leaq 0xa47ca(%rip), %rsi     # 0xbb309
movl $0xf, %edx
movq %rax, %rdi
callq 0x80a80
xorl %edx, %edx
cmpl $0x2, %ebx
setge %dl
leaq 0xa85e1(%rip), %rax     # 0xbf13c
leaq 0xa4737(%rip), %rsi     # 0xbb299
cmovgeq %rax, %rsi
movq %r14, %rdi
callq 0x80a80
leaq 0xa47a4(%rip), %rsi     # 0xbb319
movl $0xf, %edx
movq %r14, %rdi
callq 0x80a80
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %r14, %rdi
callq 0x80580
movq %rax, %rdi
callq 0x7fb50
movq %rsp, %rdi
callq 0x16d8e
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x16d8e
jmp 0x16bd2
jmp 0x16bcf
movq %rax, %rbx
movq %rsp, %rdi
callq 0x16d8e
movq %rbx, %rdi
callq 0xb83a0
// File: /workspace/github_cpp_makefile_star2_O3/64Mega[P]todo-cli/src/todo.cpp
// Function: purge_todos(bool)
void purge_todos(bool local) {
    auto todos = get_todos(local);
    int count = 0;
    for(int i = 0; i < todos.size(); i++) {
        if(todos[i].length() > 2) {            
            todos[i] = "";
            count++;            
        }
    }
    
    rewrite_todos(todos, local);
    ccout << "Deleted " << count << " todo" << (count > 1 ? "s" : "") << " from the list." << std::endl;     
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movl %edi, %ebp
movq %rsp, %rbx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1636e
movq (%rbx), %rdi
movq 0x8(%rbx), %rax
cmpq %rdi, %rax
je 0x16c56
xorl %r15d, %r15d
leaq 0xa4686(%rip), %r14     # 0xbb299
xorl %r12d, %r12d
xorl %ebx, %ebx
movq 0x8(%rdi,%r15), %rdx
cmpq $0x3, %rdx
jb 0x16c3e
addq %r15, %rdi
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x87fd0
incl %ebx
movq (%rsp), %rdi
movq 0x8(%rsp), %rax
incq %r12
movq %rax, %rcx
subq %rdi, %rcx
sarq $0x5, %rcx
addq $0x20, %r15
cmpq %r12, %rcx
ja 0x16c18
jmp 0x16c58
xorl %ebx, %ebx
leaq 0x18(%rsp), %rdi
movq %rsp, %rsi
callq 0x16dec
movzbl %bpl, %esi
leaq 0x18(%rsp), %rdi
callq 0x1669a
leaq 0x18(%rsp), %rdi
callq 0x16d8e
leaq 0xe07dc(%rip), %rdi     # 0xf7460
leaq 0xa469e(%rip), %rsi     # 0xbb329
movl $0x8, %edx
callq 0x80a80
leaq 0xe07c4(%rip), %rdi     # 0xf7460
movl %ebx, %esi
callq 0x81350
movq %rax, %r14
leaq 0xa4666(%rip), %rsi     # 0xbb313
movl $0x5, %edx
movq %rax, %rdi
callq 0x80a80
xorl %edx, %edx
cmpl $0x2, %ebx
setge %dl
leaq 0xa8473(%rip), %rax     # 0xbf13c
leaq 0xa45c9(%rip), %rsi     # 0xbb299
cmovgeq %rax, %rsi
movq %r14, %rdi
callq 0x80a80
leaq 0xa464f(%rip), %rsi     # 0xbb332
movl $0xf, %edx
movq %r14, %rdi
callq 0x80a80
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x61bd0
movsbl %al, %esi
movq %r14, %rdi
callq 0x80580
movq %rax, %rdi
callq 0x7fb50
movq %rsp, %rdi
callq 0x16d8e
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rdi
callq 0x16d8e
jmp 0x16d40
jmp 0x16d3d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x16d8e
movq %rbx, %rdi
callq 0xb83a0
// File: /workspace/github_cpp_makefile_star2_O3/exrok[P]evdoublebind/./src/make_config.cc
// Function: parse_raw_tap(int, xkb_keymap*, unsigned int*, char*)
void parse_raw_tap(int line, xkb_keymap *keymap, xkb_keycode_t keys[2], char *arguments) {
    ArgParser args{arguments};
    int count = 0;
    while (args.next()) {
        xkb_keycode_t keycode = parse_keycode(keymap, args.value);
        if (keycode < 0) {
            fprintf(stderr,"CONFIG ERROR[line:%d]: unknown key: %s\n",line, args.value);
            exit(1);
        }
        if (count > 1) {
            fprintf(stderr,"CONFIG ERROR[line:%d]: to many for raw keys specified, max is 2",line);
            exit(1);
        }
        keys[count++] = keycode;
    }
    for (int i = count; i < 2; i++) keys[i] = -1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movl %edi, %ebp
movq %rsp, %rdi
movq %rcx, (%rdi)
xorl %r12d, %r12d
movb %r12b, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movb %r12b, 0x18(%rdi)
callq 0x44a6
testb %al, %al
je 0x3941
xorl %r12d, %r12d
movq %rsp, %r15
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x3868
cmpq $0x2, %r12
je 0x3962
movl %eax, (%rbx,%r12,4)
incq %r12
movq %r15, %rdi
callq 0x44a6
testb %al, %al
jne 0x3915
cmpq $0x1, %r12
jne 0x3955
movl %r12d, %eax
movl $0xffffffff, (%rbx,%rax,4) # imm = 0xFFFFFFFF
testq %rax, %rax
movl $0x1, %eax
je 0x3944
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %ebp, %edi
callq 0x333b
// File: /workspace/github_cpp_makefile_star2_O3/exrok[P]evdoublebind/./src/make_config.cc
// Function: parse_unused_keys(xkb_keymap*, Config&, char*)
void parse_unused_keys(xkb_keymap *keymap, Config &config, char *arguments) {
    ArgParser args{arguments};
    while (args.next()) {
        xkb_keycode_t keycode = parse_keycode(keymap, args.value);
        if (keycode < 0) {
            fprintf(stderr,"CONFIG ERROR: unknown unused key: %s \n", args.value);
            exit(1);
        }
        config.unused_keys.push(keycode);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsp, %rdi
movq %rdx, (%rdi)
xorl %eax, %eax
movb %al, 0x8(%rdi)
movq $0x0, 0x10(%rdi)
movb %al, 0x18(%rdi)
callq 0x44a6
testb %al, %al
je 0x39d5
leaq 0x20(%rbx), %r15
movq %rsp, %r12
movq 0x10(%rsp), %rsi
movq %r14, %rdi
callq 0x3868
movl %eax, %ebp
movq %r15, %rdi
callq 0x463a
movq 0x20(%rbx), %rax
movslq 0x2c(%rbx), %rcx
leal 0x1(%rcx), %edx
movl %edx, 0x2c(%rbx)
movl %ebp, (%rax,%rcx,4)
movq %r12, %rdi
callq 0x44a6
testb %al, %al
jne 0x39a1
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/exrok[P]evdoublebind/./src/make_config.cc
// Function: generate_modifier_mapping(_IO_FILE*, char const*, char**)
void generate_modifier_mapping(FILE * file, const char *keyname, char *syms[4]) {
    for(int i = 0; i < 4; i++) {
        if (syms[i] == NULL) return;
        for(auto &mod : ModifierTable) {
            if (strcmp(mod.sym, syms[i]) == 0) {
                fprintf(file, "   modifier_map %s { <%s> };\n", mod.map_name, keyname);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x5fa3(%rip), %r13      # 0x99a0
xorl %ebp, %ebp
cmpq $0x0, (%rbx,%rbp,8)
je 0x3a4c
movl $0x8, %r12d
movq -0x8(%r12,%r13), %rdi
movq (%rbx,%rbp,8), %rsi
callq 0x3140
testl %eax, %eax
jne 0x3a36
movq (%r12,%r13), %rdx
movq %r15, %rdi
leaq 0x2241(%rip), %rsi      # 0x5c6d
movq %r14, %rcx
xorl %eax, %eax
callq 0x3150
addq $0x10, %r12
cmpq $0xd8, %r12
jne 0x3a0c
incq %rbp
cmpq $0x4, %rbp
jne 0x39ff
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/exrok[P]evdoublebind/./src/make_config.cc
// Function: print_keysyms(_IO_FILE*, char**)
void print_keysyms(FILE * file, char *syms[4]) {
    char *last = NULL;
    if (syms[0] == NULL) return;
    for(int i = 0; i < 4; i++) {
        if (syms[i] != NULL) last = syms[i];
        if (i != 0) {
            fprintf(file, ", ");
        }
        fprintf(file,"%s", last);
    }
}

// Assembly:
cmpq $0x0, (%rsi)
je 0x3abf
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
xorl %r13d, %r13d
leaq 0x2211(%rip), %r15      # 0x5c8b
xorl %r12d, %r12d
movq (%rbx,%r13,8), %rax
testq %rax, %rax
cmovneq %rax, %r12
testq %r13, %r13
je 0x3aa2
movl $0x2, %esi
movl $0x1, %edx
movq %r15, %rdi
movq %r14, %rcx
callq 0x3240
movq %r12, %rdi
movq %r14, %rsi
callq 0x30d0
incq %r13
cmpq $0x4, %r13
jne 0x3a7d
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/exrok[P]evdoublebind/./src/make_config.cc
// Function: file_contents(char const*)
char * file_contents( const char *path) {
    int fd = open(path, O_RDONLY);
    if (fd == -1) return NULL;
    int offset = lseek(fd, 0, SEEK_END);
    if (offset < 1) {
        close(fd);
        return NULL;
    }
    lseek(fd, 0, SEEK_SET);
    char * buffer = (char*) malloc(offset + 1);
    if (read(fd, buffer, offset) < (offset - 1)) {
        free(buffer);
        close(fd);
        return NULL;
    }
    buffer[offset] = '\0';
    close(fd);
    return buffer;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
xorl %r14d, %r14d
xorl %esi, %esi
xorl %eax, %eax
callq 0x31c0
cmpl $-0x1, %eax
je 0x3b43
movl %eax, %ebx
xorl %r14d, %r14d
movl %eax, %edi
xorl %esi, %esi
movl $0x2, %edx
callq 0x30c0
movq %rax, %r15
testl %r15d, %r15d
jle 0x3b3c
movl %ebx, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x30c0
leal 0x1(%r15), %edi
callq 0x3170
movq %rax, %r14
movl %r15d, %r12d
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movl %ebx, %edi
movq %rax, %rsi
movq %r12, %rdx
callq 0x3120
decl %r15d
cmpq %r15, %rax
jge 0x3b37
movq %r14, %rdi
callq 0x3040
xorl %r14d, %r14d
jmp 0x3b3c
movb $0x0, (%r14,%r12)
movl %ebx, %edi
callq 0x3100
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/exrok[P]evdoublebind/./src/make_config.cc
// Function: parse_arguments(Settings&&, int, char**)
Settings parse_arguments(Settings &&setting, int argc, char **argv){
    opterr = 0;
    optind = 0;
    char *cvalue = NULL;
    int c;
    bool suppress_no_input_error = false;
    while ((c = getopt (argc, argv, "gahr:m:l:v:o:x:c:")) != -1)
        switch(c){
            case 'g':
                install_xkb_rule();
                suppress_no_input_error = true;
                continue;
            case 'a':
                setting.only_arguments = true;
                continue;
            case 'h':
                print_usage();
                exit(0);
            case 'l':
                setting.xkb_names.layout = optarg;
                continue;
            case 'm':
                setting.xkb_names.model = optarg;
                continue;
            case 'r':
                setting.xkb_names.rules = optarg;
                continue;
            case 'o':
                setting.xkb_names.options = optarg;
                continue;
            case 'v':
                setting.xkb_names.variant = optarg;
                continue;
            case 'x':
                setting.xkb_conf_output = optarg;
                continue;
            case 'c':
                setting.evdoublebind_conf_output = optarg;
                continue;
        }
    if (argc - optind < 1) {
        if (suppress_no_input_error) {
            exit(0);
        } else {
            fprintf(stderr, "No config specfied\n");
            print_usage();
            exit(1);
        }
    }
    setting.input_conf = argv[optind];
    return setting;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, 0x10(%rsp)
movq 0x4c8d(%rip), %rax      # 0x8ff0
xorl %ecx, %ecx
movl %ecx, (%rax)
movq 0x4c5a(%rip), %rax      # 0x8fc8
movl $0x0, 0xc(%rsp)
movl %ecx, (%rax)
leaq 0x23c3(%rip), %r12      # 0x6742
leaq 0xc7e(%rip), %rbx       # 0x5004
movq 0x4c43(%rip), %r13      # 0x8fd0
movl %ebp, %edi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3200
leal -0x61(%rax), %ecx
cmpl $0x17, %ecx
ja 0x43f7
movslq (%rbx,%rcx,4), %rax
addq %rbx, %rax
jmpq *%rax
movb $0x1, 0x28(%r14)
jmp 0x438d
movq (%r13), %rax
movq %rax, 0x18(%r14)
jmp 0x438d
movq (%r13), %rax
movq %rax, 0x8(%r14)
jmp 0x438d
movq (%r13), %rax
movq %rax, 0x20(%r14)
jmp 0x438d
movq (%r13), %rax
movq %rax, 0x40(%r14)
jmp 0x438d
movq (%r13), %rax
movq %rax, 0x10(%r14)
jmp 0x438d
movq (%r13), %rax
movq %rax, 0x38(%r14)
jmp 0x438d
movq (%r13), %rax
movq %rax, (%r14)
jmp 0x438d
cmpl $-0x1, %eax
jne 0x438d
jmp 0x440b
callq 0x3260
movb $0x1, %al
movl %eax, 0xc(%rsp)
jmp 0x438d
movq 0x4bb6(%rip), %rax      # 0x8fc8
movslq (%rax), %rax
cmpl %ebp, %eax
jge 0x444f
movq (%r15,%rax,8), %rax
movq %rax, 0x30(%r14)
movl $0x9, %ecx
movq 0x10(%rsp), %rax
movq %rax, %rdi
movq %r14, %rsi
rep  movsq (%rsi), %es:(%rdi)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x4335
xorl %edi, %edi
callq 0x3230
testb $0x1, 0xc(%rsp)
jne 0x4448
callq 0x3520
// File: /workspace/github_cpp_makefile_star2_O3/exrok[P]evdoublebind/./src/make_config.cc
// Function: ArgParser::next()
bool next() {
        value = NULL;
        if (end == true) return false;
        if (restore != '\0') *c = restore;
        c = skip_ws(c);
        if (*c == '\0') {
            end = true;
            return false;
        }
        value = c;
        while (*c && !(*c == '\t' || *c == ' ')) c++;
        if (*c == '\0') {
            end = true;
            return true;
        }
        restore = *c;
        *c = '\0';
        return true;
    }

// Assembly:
movq $0x0, 0x10(%rdi)
cmpb $0x0, 0x18(%rdi)
jne 0x4508
movb 0x8(%rdi), %al
testb %al, %al
je 0x44c0
movq (%rdi), %rcx
movb %al, (%rcx)
movq (%rdi), %rax
movzbl (%rax), %ecx
cmpl $0x20, %ecx
je 0x44d0
cmpl $0x9, %ecx
jne 0x44d5
incq %rax
jmp 0x44c3
movq %rax, (%rdi)
cmpb $0x0, (%rax)
je 0x4504
movq %rax, 0x10(%rdi)
incq %rax
movzbl -0x1(%rax), %ecx
testl %ecx, %ecx
je 0x450b
cmpl $0x9, %ecx
je 0x44fb
cmpl $0x20, %ecx
je 0x44fb
movq %rax, (%rdi)
jmp 0x44e1
movb %cl, 0x8(%rdi)
movb $0x0, -0x1(%rax)
jmp 0x450f
movb $0x1, 0x18(%rdi)
xorl %eax, %eax
retq
movb $0x1, 0x18(%rdi)
movb $0x1, %al
retq