LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/rofl0r[P]ascc/tokenizer.c
// Function: tokenizer_read_until
int tokenizer_read_until(struct tokenizer *t, const char* marker, int stop_at_nl)
{
	int c, marker_is_nl = !strcmp(marker, "\n");
	char *s = t->buf;
	while(1) {
		c = tokenizer_getc(t);
		if(c == EOF) {
			*s = 0;
			return 0;
		}
		if(c == '\n') {
			t->line++;
			t->column = 0;
			if(stop_at_nl) {
				*s = 0;
				if(marker_is_nl) return 1;
				return 0;
			}
		}
		if(!sequence_follows(t, c, marker))
			s = assign_bufchar(t, s, c);
		else
			break;
	}
	*s = 0;
	size_t i;
	for(i=strlen(marker); i > 0; )
		tokenizer_ungetc(t, marker[--i]);
	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
cmpb $0xa, (%rsi)
jne 0x17b36
xorl %ebx, %ebx
cmpb $0x0, 0x1(%r14)
sete %bl
leaq 0x120(%r15), %r13
movq %r15, %rdi
callq 0x17901
movl %eax, %r12d
cmpl $0xa, %eax
je 0x17b5b
cmpl $-0x1, %r12d
je 0x17bbb
movq %r15, %rdi
movl %r12d, %esi
jmp 0x17b73
incl 0x8(%r15)
movl $0x0, 0xc(%r15)
testl %ebp, %ebp
jne 0x17bbd
movq %r15, %rdi
movl $0xa, %esi
movq %r14, %rdx
callq 0x17bd3
testl %eax, %eax
jne 0x17b8c
incl 0xc(%r15)
movb %r12b, (%r13)
incq %r13
jmp 0x17b3d
movb $0x0, (%r13)
movq %r14, %rdi
callq 0x31a0
movl $0x1, %ebx
testq %rax, %rax
je 0x17bc2
movq %rax, %r12
movsbl -0x1(%r14,%r12), %esi
movq %r15, %rdi
callq 0x17957
decq %r12
jne 0x17ba6
jmp 0x17bc2
xorl %ebx, %ebx
movb $0x0, (%r13)
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/rofl0r[P]ascc/tokenizer.c
// Function: sequence_follows
static int sequence_follows(struct tokenizer *t, int c, const char *which)
{
	if(!which || !which[0]) return 0;
	size_t i = 0;
	while(c == which[i]) {
		if(!which[++i]) break;
		c = tokenizer_getc(t);
	}
	if(!which[i]) return 1;
	while(i > 0) {
		tokenizer_ungetc(t, c);
		c = which[--i];
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
xorl %ebx, %ebx
testq %rdx, %rdx
je 0x17c3e
movq %rdx, %r14
movsbl (%rdx), %eax
testl %eax, %eax
sete %cl
cmpl %esi, %eax
setne %al
orb %cl, %al
jne 0x17c3e
movq %rdi, %r15
xorl %r12d, %r12d
movl $0x1, %ebx
cmpb $0x0, 0x1(%r14,%r12)
je 0x17c3e
movq %r15, %rdi
callq 0x17901
movsbl 0x1(%r14,%r12), %ecx
incq %r12
cmpl %ecx, %eax
je 0x17c01
testb %cl, %cl
je 0x17c3e
xorl %ebx, %ebx
testq %r12, %r12
je 0x17c3e
movq %r15, %rdi
movl %eax, %esi
callq 0x17957
movsbl -0x1(%r14,%r12), %eax
decq %r12
jne 0x17c29
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/rofl0r[P]ascc/tokenizer.c
// Function: ignore_until
static int ignore_until(struct tokenizer *t, const char* marker, int col_advance)
{
	t->column += col_advance;
	int c;
	do {
		c = tokenizer_getc(t);
		if(c == EOF) return 0;
		if(c == '\n') {
			t->line++;
			t->column = 0;
		} else t->column++;
	} while(!sequence_follows(t, c, marker));
	t->column += strlen(marker)-1;
	return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
addl %edx, 0xc(%rdi)
movq %rbx, %rdi
callq 0x17901
cmpl $0xa, %eax
je 0x17c76
cmpl $-0x1, %eax
je 0x17ca6
movl 0xc(%rbx), %ecx
incl %ecx
jmp 0x17c80
incl 0x8(%rbx)
movl $0xa, %eax
xorl %ecx, %ecx
movl %ecx, 0xc(%rbx)
movq %rbx, %rdi
movl %eax, %esi
movq %r14, %rdx
callq 0x17bd3
testl %eax, %eax
je 0x17c5d
movq %r14, %rdi
callq 0x31a0
movl 0xc(%rbx), %ecx
addl %ecx, %eax
decl %eax
movl %eax, 0xc(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/rofl0r[P]ascc/tokenizer.c
// Function: is_valid_float_until
static int is_valid_float_until(const char*s, const char* until) {
	int got_digits = 0, got_dot = 0;
	while(s < until) {
		if(isdigit(*s)) got_digits = 1;
		else if(*s == '.') {
			if(got_dot) return 0;
			got_dot = 1;
		} else return 0;
		++s;
	}
	return got_digits | (got_dot << 1);
}

// Assembly:
xorl %eax, %eax
cmpq %rsi, %rdi
jae 0x1860c
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq 0x3340
movq (%rax), %rdx
xorl %ecx, %ecx
xorl %esi, %esi
xorl %eax, %eax
movsbq (%r14), %rdi
testb $0x8, 0x1(%rdx,%rdi,2)
jne 0x185f2
cmpb $0x2e, %dil
jne 0x18605
testl %ecx, %ecx
movl $0x1, %ecx
je 0x185f7
jmp 0x18605
movl $0x1, %esi
incq %r14
cmpq %rbx, %r14
jne 0x185d6
addl %ecx, %ecx
orl %esi, %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/rofl0r[P]ascc/tokenizer.c
// Function: has_ul_tail
static int has_ul_tail(const char *p) {
	char tail[4];
	int tc = 0, c;
	while(tc < 4 ) {
		if(!*p) break;
		c = tolower(*p);
		if(c == 'u' || c == 'l') {
			tail[tc++] = c;
		} else {
			return 0;
		}
		p++;
	}
	if(tc == 1) return 1;
	if(tc == 2) {
		if(!memcmp(tail, "lu", 2)) return 1;
		if(!memcmp(tail, "ul", 2)) return 1;
		if(!memcmp(tail, "ll", 2)) return 1;
	}
	if(tc == 3) {
		if(!memcmp(tail, "llu", 3)) return 1;
		if(!memcmp(tail, "ull", 3)) return 1;
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
xorl %ebx, %ebx
movsbq (%r14,%rbx), %r15
testq %r15, %r15
je 0x1890b
callq 0x30c0
movq (%rax), %rax
movl (%rax,%r15,4), %eax
cmpl $0x75, %eax
je 0x188fc
cmpl $0x6c, %eax
jne 0x18971
movb %al, 0xc(%rsp,%rbx)
incq %rbx
cmpq $0x4, %rbx
jne 0x188dc
jmp 0x18971
cmpl $0x3, %ebx
je 0x1893e
cmpl $0x2, %ebx
je 0x1891c
cmpl $0x1, %ebx
jne 0x18971
jmp 0x18973
movl $0x1, %ebx
cmpw $0x756c, 0xc(%rsp)      # imm = 0x756C
je 0x18973
cmpw $0x6c75, 0xc(%rsp)      # imm = 0x6C75
je 0x18973
cmpw $0x6c6c, 0xc(%rsp)      # imm = 0x6C6C
jne 0x18971
jmp 0x18973
movzwl 0xc(%rsp), %eax
xorl $0x6c6c, %eax           # imm = 0x6C6C
movzbl 0xe(%rsp), %ecx
xorl $0x75, %ecx
movl $0x1, %ebx
orw %ax, %cx
je 0x18973
movzwl 0xc(%rsp), %eax
xorl $0x6c75, %eax           # imm = 0x6C75
movzbl 0xe(%rsp), %ecx
xorl $0x6c, %ecx
orw %ax, %cx
je 0x18973
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/rofl0r[P]ascc/eval_if.c
// Function: emit_token
char* emit_token(char* out, struct token *tok, char *strbuf) {
	if(tok->type == TT_SEP)
		sprintf(out, "%c", tok->value);
	else if(strbuf)
		strcat(out, strbuf);
	return out + strlen(out);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
cmpl $0x9, (%rsi)
jne 0x18994
movb 0xc(%rsi), %al
movb %al, (%rbx)
movb $0x0, 0x1(%rbx)
jmp 0x189a4
testq %rdx, %rdx
je 0x189a4
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x3570
movq %rbx, %rdi
callq 0x31a0
addq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/rofl0r[P]ascc/eval_if.c
// Function: x_tokenizer_next_of
static int x_tokenizer_next_of(struct tokenizer *t, struct token *tok, int fail_unk) {
	int ret = tokenizer_next(t, tok);
	if(tok->type == TT_OVERFLOW) {
		error("max token length of 4095 exceeded!");
		return 0;
	} else if (fail_unk && ret == 0) {
		error("tokenizer encountered unknown token");
		return 0;
	} else if (tok->type == TT_SEP && tok->value == '\t') {
		tok->value = ' ';
	}
	return 1;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
callq 0x17a1c
movl (%rbx), %ecx
cmpl $0xb, %ecx
jne 0x18e2f
leaq 0x4a2e(%rip), %rdi      # 0x1d85b
jmp 0x18e3e
testl %ebp, %ebp
je 0x18e4c
testl %eax, %eax
jne 0x18e4c
leaq 0x4a40(%rip), %rdi      # 0x1d87e
callq 0x16f42
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
movl $0x1, %eax
cmpl $0x9, %ecx
jne 0x18e45
cmpl $0x9, 0xc(%rbx)
jne 0x18e45
movl $0x20, 0xc(%rbx)
jmp 0x18e45
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/loader.h
// Function: Boss::Loader::~Loader()
~Loader()
    {
      Locator->DelService(Service::Locator::Id::ClassFactoryService);
      ClsFactory.second.Release();
      SrvRegistry.second.Release();
      Private::SetServiceLocator(0);
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movq (%rdi), %rax
movl $0x16d1a76d, %esi       # imm = 0x16D1A76D
callq *0x38(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x179bc
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, 0x20(%rbx)
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x179d3
movq (%rdi), %rax
callq *0x18(%rax)
xorl %r14d, %r14d
movq %r14, 0x10(%rbx)
callq 0x17146
movq 0xe3b2a(%rip), %rdi     # 0xfb510
movq %r14, 0xe3b23(%rip)     # 0xfb510
testq %rdi, %rdi
je 0x179f8
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x20(%rbx), %rdi
testq %rdi, %rdi
je 0x17a07
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x18(%rbx), %rdi
movq $0x0, 0x20(%rbx)
callq 0x18c80
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x17a27
movq (%rdi), %rax
callq *0x18(%rax)
leaq 0x8(%rbx), %rdi
movq $0x0, 0x10(%rbx)
callq 0x18c80
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x17a46
movq (%rdi), %rax
callq *0x18(%rax)
movq $0x0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
jmp 0x17a61
jmp 0x17a61
jmp 0x17a61
jmp 0x17a61
jmp 0x17a61
jmp 0x17a61
movq %rax, %rdi
callq 0x17a69
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/../core/base.h
// Function: Boss::RefObjPtr<Boss::ServiceLocator> Boss::Base<Boss::ServiceLocator>::Create<>()
static RefObjPtr<T> Create(Args const & ... args)
    {
      Private::ModuleCounter::ScopedLock Lock;
      RefObjPtr<T> NewInst(new Base<T>(args ...));
      Private::FinalizeConstruct<T>::Construct(NewInst.Get());
      return std::move(NewInst);
    }

// Assembly:
pushq %rbx
movq %rdi, %rbx
lock
incl 0xe3a69(%rip)           # 0xfb50c
movl $0x88, %edi
callq 0x1b9e0
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x40(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x10(%rax)
movq $0x0, 0x60(%rax)
movl $0x1, 0x28(%rax)
movq %rax, %rcx
addq $0x70, %rcx
movq %rcx, 0x40(%rax)
movq $0x1, 0x48(%rax)
movups %xmm0, 0x50(%rax)
movl $0x3f800000, 0x60(%rax) # imm = 0x3F800000
movups %xmm0, 0x68(%rax)
leaq 0xdcdb0(%rip), %rcx     # 0xf48a8
movq %rcx, (%rax)
leaq 0xdcdfe(%rip), %rcx     # 0xf4900
movq %rcx, 0x8(%rax)
leaq 0xdce43(%rip), %rcx     # 0xf4950
movq %rcx, 0x78(%rax)
movl $0x0, 0x80(%rax)
lock
incl 0xe39ea(%rip)           # 0xfb50c
lock
incl 0x80(%rax)
movb $0x1, 0x10(%rax)
movq %rax, (%rbx)
lock
decl 0xe39d5(%rip)           # 0xfb50c
movq %rbx, %rax
popq %rbx
retq
lock
decl 0xe39c9(%rip)           # 0xfb50c
movq %rax, %rdi
callq 0xbb070
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/../core/base.h
// Function: Boss::Base<Boss::RawBuffer>::Release()
virtual UInt BOSS_CALL Release()
    {
      UInt CurValue = Counter.fetch_sub(1, std::memory_order_relaxed);
      if (CurValue == 1)
      {
        Private::BeforeRelease<T>::Release(static_cast<T *>(this));
        std::atomic_thread_fence(std::memory_order_acquire);
        delete this;
      }
      return CurValue - 1;
    }

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
lock
xaddl %ebx, 0x38(%rdi)
cmpl $0x1, %ebx
jne 0x19a02
movq %rdi, %r14
movb $0x0, 0x10(%rdi)
lock
decl 0xe1b35(%rip)           # 0xfb50c
leaq 0xdb642(%rip), %rax     # 0xf5020
movq %rax, (%rdi)
leaq 0xdb688(%rip), %rax     # 0xf5070
movq %rax, 0x8(%rdi)
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x199fa
callq 0x1a420
movq %r14, %rdi
callq 0x1a420
decl %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/../core/base.h
// Function: Boss::Base<Boss::ServiceLocator>::QueryInterface(unsigned int, void**)
static RetCode Query(ObjType *obj, InterfaceId ifaceId, Ptr *iface)
      {
        if (ifaceId == InterfaceTraits<T>::Id)
        {
          *iface = static_cast<T *>(obj);
          return Status::Ok;
        }
        return QueryFromInterfacesList<T>::Query(static_cast<T *>(obj), ifaceId, iface);
      }

// Assembly:
cmpl $0x2cc77d66, %esi       # imm = 0x2CC77D66
je 0x18157
movl $0x3, %eax
cmpl $0x29d4d8a5, %esi       # imm = 0x29D4D8A5
jne 0x18167
leaq 0x8(%rdi), %rax
movq %rax, (%rdx)
lock
incl 0x80(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/service_locator.h
// Function: Boss::ServiceLocator::GetService(unsigned int, Boss::IBase**) const
virtual RetCode BOSS_CALL GetService(UInt serviceId, IBase **service) const
    {
      if (!service || *service)
        return Status::InvalidArgument;
      std::lock_guard<std::recursive_mutex> Lock(Mtx);
      ServicePool::iterator Iter = Services.find(serviceId);
      if (Iter == Services.end())
        return Status::Fail;
      return Iter->second.QueryInterface(service);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, 0x4(%rsp)
movl $0x5, %ebp
testq %rdx, %rdx
je 0x181d5
movq %rdx, %r14
cmpq $0x0, (%rdx)
jne 0x181d5
movq %rdi, %r15
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x14610
testl %eax, %eax
jne 0x181e2
addq $0x40, %r15
leaq 0x4(%rsp), %rsi
movq %r15, %rdi
callq 0x18520
movl $0x2, %ebp
testq %rax, %rax
je 0x181cd
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0x181cd
movq (%rdi), %rax
movl $0x2cc77d66, %esi       # imm = 0x2CC77D66
movq %r14, %rdx
callq *0x20(%rax)
movl %eax, %ebp
movq %rbx, %rdi
callq 0x14670
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x16257
movq %rax, %r14
movq %rbx, %rdi
callq 0x14670
movq %r14, %rdi
callq 0xbb070
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/service_locator.h
// Function: Boss::ServiceLocator::AddService(unsigned int, Boss::IBase*)
virtual RetCode BOSS_CALL AddService(UInt serviceId, IBase *service)
    {
      if (!service)
        return Status::InvalidArgument;
      std::lock_guard<std::recursive_mutex> Lock(Mtx);
      if (Services.find(serviceId) != Services.end())
        return Status::Fail;
      Services[serviceId] = service;
      return Status::Ok;
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, 0x4(%rsp)
testq %rdx, %rdx
je 0x18261
movq %rdx, %r14
movq %rdi, %r15
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x14610
testl %eax, %eax
jne 0x18273
addq $0x40, %r15
leaq 0x4(%rsp), %rsi
movq %r15, %rdi
callq 0x18520
movl $0x2, %ebp
testq %rax, %rax
jne 0x18257
leaq 0x4(%rsp), %rsi
movq %r15, %rdi
callq 0x185b8
xorl %ebp, %ebp
movq %rax, %rdi
movq %r14, %rsi
callq 0x1857c
movq %rbx, %rdi
callq 0x14670
jmp 0x18266
movl $0x5, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x16257
jmp 0x1827c
movq %rax, %r14
movq %rbx, %rdi
callq 0x14670
movq %r14, %rdi
callq 0xbb070
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/service_locator.h
// Function: Boss::ServiceLocator::DelService(unsigned int)
virtual RetCode BOSS_CALL DelService(UInt serviceId)
    {
      std::lock_guard<std::recursive_mutex> Lock(Mtx);
      ServicePool::iterator Iter = Services.find(serviceId);
      if (Iter == Services.end())
        return Status::Fail;
      Services.erase(Iter);
      return Status::Ok;
    }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movl %esi, 0xc(%rsp)
leaq 0x18(%rdi), %rbx
movq %rbx, %rdi
callq 0x14610
testl %eax, %eax
jne 0x182ec
addq $0x40, %r14
leaq 0xc(%rsp), %rsi
movq %r14, %rdi
callq 0x18520
testq %rax, %rax
je 0x182d4
xorl %ebp, %ebp
movq %r14, %rdi
movq %rax, %rsi
callq 0x1888e
jmp 0x182d9
movl $0x2, %ebp
movq %rbx, %rdi
callq 0x14670
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movl %eax, %edi
callq 0x16257
movq %rax, %r14
movq %rbx, %rdi
callq 0x14670
movq %r14, %rdi
callq 0xbb070
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/module_holder.h
// Function: Boss::RefObjQIPtr<Boss::IServiceRegistry> Boss::ModuleHolder::CreateObject<Boss::IServiceRegistry>(unsigned int)
RefObjQIPtr<T> CreateObject(ClassId classId)
    {
      RefObjQIPtr<T> Ret(CreateObject(classId));
      if (!Ret.Get())
        throw ModuleHolderException("Interface not found.");
      return std::move(Ret);
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x18cbe
movq $0x0, 0x8(%rsp)
movq (%r14), %rdi
testq %rdi, %rdi
je 0x18ad4
movq (%rdi), %rax
leaq 0x8(%rsp), %rdx
movl $0xb64aa402, %esi       # imm = 0xB64AA402
callq *0x20(%rax)
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x18abc
movq (%rdi), %rax
callq *0x18(%rax)
movq 0x8(%rsp), %rax
testq %rax, %rax
je 0x18ad4
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
movl $0x10, %edi
callq 0x1a710
movq %rax, %r14
leaq 0xa5680(%rip), %rsi     # 0xbe168
movq %rax, %rdi
callq 0x2dcd0
leaq 0xdc099(%rip), %rax     # 0xf4b90
movq %rax, (%r14)
leaq 0xdc067(%rip), %rsi     # 0xf4b68
leaq 0xb848(%rip), %rdx      # 0x24350
movq %r14, %rdi
callq 0x1b760
movq %rax, %rbx
jmp 0x18b20
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a770
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x18b47
movq (%rdi), %rax
callq *0x18(%rax)
jmp 0x18b47
jmp 0x18b4f
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x18b47
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rdi
callq 0xbb070
movq %rax, %rdi
callq 0x17a69
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/nix/dll_holder.h
// Function: Boss::Private::DllHolder::UnloadDll()
void UnloadDll()
      {
        if (DllInst)
        {
          int Res = dlclose(DllInst);
          assert(!Res && "Failed to unload dll.");
          Unused(Res);
        }
        DllInst = 0;
      }

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x18c95
callq 0x146e0
testl %eax, %eax
jne 0x18c9e
movq $0x0, (%rbx)
popq %rbx
retq
leaq 0xa5453(%rip), %rdi     # 0xbe0f8
leaq 0xa546c(%rip), %rsi     # 0xbe118
leaq 0xa548a(%rip), %rcx     # 0xbe13d
movl $0x4f, %edx
callq 0x14150
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/module_holder.h
// Function: Boss::ModuleHolder::CreateObject(unsigned int)
IBasePtr CreateObject(ClassId classId)
    {
      typedef RetCode (*PFNBossCreateObject)(ClassId, IBase **);
      IBasePtr Ret;
      auto *BossCreateObject = Dll.GetProc<PFNBossCreateObject>("BossCreateObject");
      if (BossCreateObject(classId, Ret.GetPPtr()) != Status::Ok)
        throw ModuleHolderException("Failed to create object.");
      return std::move(Ret);
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, (%rsp)
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa5495(%rip), %rsi     # 0xbe17d
leaq 0xa549e(%rip), %rdx     # 0xbe18d
leaq 0x8(%rsp), %rdi
callq 0x1a0f4
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
callq 0x18dba
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x18d18
callq 0x1a420
movq %rsp, %rsi
movl %ebp, %edi
callq *%r14
testl %eax, %eax
jne 0x18d39
movq (%rsp), %rax
movq %rax, (%rbx)
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a710
movq %rax, %r14
leaq 0xa5441(%rip), %rsi     # 0xbe18e
movq %rax, %rdi
callq 0x2dcd0
leaq 0xdbe34(%rip), %rax     # 0xf4b90
movq %rax, (%r14)
leaq 0xdbe02(%rip), %rsi     # 0xf4b68
leaq 0xb5e3(%rip), %rdx      # 0x24350
movq %r14, %rdi
callq 0x1b760
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a770
jmp 0x18d9b
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x18d9b
callq 0x1a420
jmp 0x18d9b
jmp 0x18d98
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x18daa
movq (%rdi), %rax
callq *0x18(%rax)
movq %rbx, %rdi
callq 0xbb070
movq %rax, %rdi
callq 0x17a69
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/nix/dll_holder.h
// Function: unsigned int (*Boss::Private::DllHolder::GetProc<unsigned int (*)(unsigned int, Boss::IBase**)>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&))(unsigned int, Boss::IBase**)
T GetProc(const std::string &procName)
      {
        if (DllInst == nullptr)
          throw DllHolderException("Library was not loaded.");
        void *Proc = dlsym(DllInst, procName.c_str());
        if (!Proc)
          throw DllHolderException("Function \"" + procName + "\" not found.");
        return reinterpret_cast<T>(Proc);
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x48, %rsp
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x18de7
movq %rsi, %r14
movq (%rsi), %rsi
callq 0x145e0
testq %rax, %rax
je 0x18e19
addq $0x48, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x1a710
movq %rax, %rbx
leaq 0xa53ac(%rip), %rsi     # 0xbe1a7
movq %rax, %rdi
callq 0x18f1c
leaq 0xdbd1e(%rip), %rsi     # 0xf4b28
leaq 0xb53f(%rip), %rdx      # 0x24350
movq %rbx, %rdi
callq 0x1b760
movl $0x10, %edi
callq 0x1a710
movq %rax, %rbx
leaq 0xa5392(%rip), %rsi     # 0xbe1bf
leaq 0x28(%rsp), %rdi
movq %r14, %rdx
callq 0x18bed
leaq 0xa5389(%rip), %rsi     # 0xbe1ca
leaq 0x28(%rsp), %rdi
callq 0x8eb30
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
jne 0x18e6c
movups (%rcx), %xmm0
movups %xmm0, (%r15)
jmp 0x18e79
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movb $0x1, %bpl
movq %rbx, %rdi
callq 0x4b940
leaq 0xdbca9(%rip), %rax     # 0xf4b50
movq %rax, (%rbx)
xorl %ebp, %ebp
leaq 0xdbc75(%rip), %rsi     # 0xf4b28
leaq 0xb496(%rip), %rdx      # 0x24350
movq %rbx, %rdi
callq 0x1b760
movq %rax, %r14
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x18ed4
callq 0x1a420
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18ee7
callq 0x1a420
testb %bpl, %bpl
jne 0x18f0b
jmp 0x18f13
movq %rax, %r14
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x18f0b
callq 0x1a420
jmp 0x18f0b
jmp 0x18f08
movq %rax, %r14
movq %rbx, %rdi
callq 0x1a770
movq %r14, %rdi
callq 0xbb070
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/file_stream.h
// Function: Boss::Private::IOFileStream<Boss::IIStream>::Read(unsigned int, Boss::IBuffer**)
virtual RetCode BOSS_CALL Read(UInt bytes, IBuffer **buffer)
      {
        if (!buffer || *buffer)
          return Status::InvalidArgument;
        assert(!!File && "File not open.");
        if (!File)
          return Status::Fail;
        try
        {
          if (!bytes)
            return Base<RawBuffer>::Create(nullptr, 0).QueryInterface(buffer);
          std::vector<char> Buffer(bytes);
          std::size_t Res = std::fread(&Buffer[0], 1, Buffer.size(), File);
          if (!Res || Res > Buffer.size())
            return Status::Fail;
          return Base<RawBuffer>::Create(&Buffer[0], Res).QueryInterface(buffer);
        }
        catch (...)
        {
        }
        return Status::Fail;
      }

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movl $0x5, %ebp
testq %rdx, %rdx
je 0x19155
movq %rdx, %rbx
cmpq $0x0, (%rdx)
je 0x19160
movl %ebp, %eax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rdi, %r14
cmpq $0x0, 0x8(%rdi)
je 0x1927d
testl %esi, %esi
je 0x1920a
movl %esi, %esi
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %rdx
callq 0x197d0
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rdx
subq %rdi, %rdx
movq 0x8(%r14), %rcx
movl $0x1, %esi
callq 0x14470
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x19260
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rcx
subq %rdi, %rcx
movl $0x2, %ebp
cmpq %rcx, %rax
ja 0x1926a
leaq 0x28(%rsp), %rsi
movq %rdi, (%rsi)
movq %rsp, %rdi
leaq 0x8(%rsp), %rdx
callq 0x19830
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x19260
movq (%rdi), %rax
movl $0xaaa58dc, %esi        # imm = 0xAAA58DC
movq %rbx, %rdx
callq *0x28(%rax)
movl %eax, %ebp
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x19265
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x19265
leaq 0x8(%rsp), %rsi
movq $0x0, (%rsi)
movq %rsp, %rdx
movl $0x0, (%rdx)
leaq 0x10(%rsp), %rdi
callq 0x19738
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x192f9
movq (%rdi), %rax
movl $0xaaa58dc, %esi        # imm = 0xAAA58DC
movq %rbx, %rdx
callq *0x28(%rax)
movl %eax, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x19155
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x19155
movl $0x2, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x19155
callq 0x1a420
jmp 0x19155
leaq 0xa5025(%rip), %rdi     # 0xbe2a9
leaq 0xa4f6d(%rip), %rsi     # 0xbe1f8
leaq 0xa5032(%rip), %rcx     # 0xbe2c4
movl $0x3e, %edx
callq 0x14150
jmp 0x192b4
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x192bf
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x192bf
jmp 0x192b4
movq %rax, %rdi
callq 0x17a69
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x192ec
callq 0x1a420
jmp 0x192ec
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x192ec
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x192ec
jmp 0x192b4
jmp 0x192e9
movq %rax, %rbx
movq %rbx, %rdi
callq 0x1a870
callq 0x1a8e0
movl $0x2, %ebp
jmp 0x19155
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/file_stream.h
// Function: Boss::Private::IOFileStream<Boss::IIStream>::Read(Boss::IBuffer**)
virtual RetCode BOSS_CALL Read(IBuffer **buffer)
      {
        if (!buffer || *buffer)
          return Status::InvalidArgument;
        assert(!!File && "File not open.");
        if (!File)
          return Status::Fail;
        try
        {
          std::vector<char> Buffer;
          for (std::vector<char> Tmp(ReadBufSize) ; !std::feof(File) ; )
          {
            std::size_t Res = std::fread(&Tmp[0], 1, Tmp.size(), File);
            if (!Res || Res > Tmp.size())
              return Status::Fail;
            std::copy(std::begin(Tmp), std::end(Tmp), std::back_inserter(Buffer));
          }
          return Base<RawBuffer>::Create(Buffer.empty() ? nullptr : &Buffer[0], Buffer.size()).QueryInterface(buffer);
        }
        catch (...)
        {
        }
        return Status::Fail;
      }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl $0x5, %ebp
testq %rsi, %rsi
je 0x19435
movq %rsi, %rbx
cmpq $0x0, (%rsi)
jne 0x19435
movq %rdi, %r14
cmpq $0x0, 0x8(%rdi)
je 0x19446
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x2000, %edi           # imm = 0x2000
callq 0x1b9e0
movq %rax, %r15
movq %rax, %r12
addq $0x2000, %r12           # imm = 0x2000
movl $0x2000, %edx           # imm = 0x2000
movq %rax, %rdi
xorl %esi, %esi
callq 0x140d0
leaq 0x10(%rsp), %r13
movq 0x8(%r14), %rdi
callq 0x14530
testl %eax, %eax
jne 0x193b8
movq 0x8(%r14), %rcx
movl $0x1, %esi
movl $0x2000, %edx           # imm = 0x2000
movq %r15, %rdi
callq 0x14470
addq $-0x2001, %rax          # imm = 0xDFFF
cmpq $-0x2000, %rax          # imm = 0xE000
jb 0x19419
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x19cac
jmp 0x19377
movq %r15, %rdi
callq 0x1a420
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
xorl %edx, %edx
subq %rax, %rcx
cmovneq %rax, %rdx
leaq 0x30(%rsp), %rsi
movq %rdx, (%rsi)
leaq 0x28(%rsp), %rdx
movq %rcx, (%rdx)
leaq 0x8(%rsp), %rdi
callq 0x19830
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19421
movq (%rdi), %rax
movl $0xaaa58dc, %esi        # imm = 0xAAA58DC
movq %rbx, %rdx
callq *0x28(%rax)
movl %eax, %ebp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19426
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x19426
movq %r15, %rdi
callq 0x1a420
movl $0x2, %ebp
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x19435
callq 0x1a420
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa4e5c(%rip), %rdi     # 0xbe2a9
leaq 0xa4da4(%rip), %rsi     # 0xbe1f8
leaq 0xa4f03(%rip), %rcx     # 0xbe35e
movl $0x54, %edx
callq 0x14150
movq %rax, %rdi
callq 0x17a69
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x19496
movq (%rdi), %rax
callq *0x20(%rax)
jmp 0x19496
jmp 0x19465
jmp 0x19486
movq %rax, %rbx
jmp 0x19496
movq %rax, %rbx
movq %r15, %rdi
callq 0x1a420
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x194a5
callq 0x1a420
movq %rbx, %rdi
callq 0x1a870
callq 0x1a8e0
movl $0x2, %ebp
jmp 0x19435
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/file_stream.h
// Function: Boss::Private::IOFileStream<Boss::IIStream>::Write(void const*, unsigned int)
virtual RetCode BOSS_CALL Write(void const *data, UInt bytes)
      {
        if (!data || !bytes)
          return Status::False;
        assert(!!File && "File not open.");
        if (!File)
          return Status::Fail;
        return std::fwrite(data, 1, bytes, File) == bytes ? Status::Ok : Status::Fail;;
      }

// Assembly:
pushq %rbx
movq %rsi, %r8
testq %rsi, %rsi
sete %cl
testl %edx, %edx
sete %sil
movl $0x1, %eax
orb %cl, %sil
jne 0x194fe
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x19500
movl %edx, %ebx
movl $0x1, %esi
movq %r8, %rdi
movq %rbx, %rdx
callq 0x14600
movq %rax, %rcx
xorl %eax, %eax
cmpq %rbx, %rcx
setne %al
addl %eax, %eax
popq %rbx
retq
leaq 0xa4da2(%rip), %rdi     # 0xbe2a9
leaq 0xa4cea(%rip), %rsi     # 0xbe1f8
leaq 0xa4ec6(%rip), %rcx     # 0xbe3db
movl $0x6d, %edx
callq 0x14150
nop
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/buffer.h
// Function: Boss::RawBuffer::RawBuffer(void const*, unsigned int)
RawBuffer(void const *data, UInt bytes)
      : Buffer([&] ()
               {
                 return !bytes ? std::move(std::vector<char>()) :
                   std::move(std::vector<char>(reinterpret_cast<char const *>(data),
                                               reinterpret_cast<char const *>(data) + bytes)); 
               } ()
              )
    {
    }

// Assembly:
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movb $0x0, 0x10(%rdi)
leaq 0xdb735(%rip), %rax     # 0xf5020
movq %rax, (%rdi)
leaq 0xdb77b(%rip), %rax     # 0xf5070
movq %rax, 0x8(%rdi)
testl %edx, %edx
je 0x19926
movl %edx, %edx
addq %rsi, %rdx
leaq 0x10(%rsp), %r14
leaq 0xf(%rsp), %rcx
movq %r14, %rdi
callq 0x19bd4
movq 0x10(%r14), %rax
movaps (%r14), %xmm0
movups %xmm0, 0x18(%rbx)
movq %rax, 0x28(%rbx)
jmp 0x19938
addq $0x18, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/common/buffer.h
// Function: Boss::RawBuffer::GetData(void const**) const
virtual RetCode BOSS_CALL GetData(void const **data) const
    {
      if (!data || *data)
        return  Status::InvalidArgument;
      *data = Buffer.empty() ? 0 : &Buffer[0];
      return Status::Ok;
    }

// Assembly:
movl $0x5, %eax
testq %rsi, %rsi
je 0x19a42
cmpq $0x0, (%rsi)
je 0x19a43
retq
movq 0x18(%rdi), %rcx
xorl %eax, %eax
cmpq 0x20(%rdi), %rcx
movl $0x0, %edx
cmovneq %rcx, %rdx
movq %rdx, (%rsi)
retq
// File: /workspace/github_cpp_makefile_star2_O3/tdv[P]boss/boss/include/plugin/module_holder.h
// Function: Boss::ModuleHolder::SetServiceLocator(Boss::IServiceLocator*)
void SetServiceLocator(IServiceLocator *locator)
    {
      typedef RetCode (*PFNBossSetServiceLocator)(IServiceLocator *);
      auto *BossSetServiceLocator = Dll.GetProc<PFNBossSetServiceLocator>("BossSetServiceLocator");
      RefObjPtr<IServiceLocator> Inst;
      if (BossSetServiceLocator(locator) != Status::Ok)
        throw ModuleHolderException("Failed to set ServiceLocator.");
    }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x10(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0xa45ca(%rip), %rsi     # 0xbe4b5
leaq 0xa45d8(%rip), %rdx     # 0xbe4ca
movq %rsp, %rdi
callq 0x1a0f4
movq %rsp, %rsi
movq %r14, %rdi
callq 0x19f92
movq %rax, %r14
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x19f16
callq 0x1a420
movq %rbx, %rdi
callq *%r14
testl %eax, %eax
jne 0x19f2a
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0x10, %edi
callq 0x1a710
movq %rax, %r14
leaq 0xa458d(%rip), %rsi     # 0xbe4cb
movq %rax, %rdi
callq 0x2dcd0
leaq 0xdac43(%rip), %rax     # 0xf4b90
movq %rax, (%r14)
leaq 0xdac11(%rip), %rsi     # 0xf4b68
leaq 0xa3f2(%rip), %rdx      # 0x24350
movq %r14, %rdi
callq 0x1b760
movq %rax, %rbx
movq %r14, %rdi
callq 0x1a770
jmp 0x19f89
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r15, %rdi
je 0x19f89
callq 0x1a420
jmp 0x19f89
movq %rax, %rbx
movq %rbx, %rdi
callq 0xbb070
nop
// File: /workspace/github_cpp_makefile_star2_O3/reddragon[P]packed-memory-array/impl1.cpp
// Function: main
int main() {
    
    PackedMemoryArray<int> pma(2);
    
    Timer t;
    t.start();
    for(int i = 3; i < 10000000; i++) {
        pma.insert_element(i);
    }
    double time_taken = t.stop();
    std::cout << "Head Inserts: " << time_taken/10000000.0 << std::endl;
    //pma.print();

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x90, %rsp
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
movl $0x2, %esi
callq 0x1426
leaq 0x8(%rsp), %rdi
xorl %esi, %esi
callq 0x1130
movl $0x3, %ebp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x1daa
movslq %eax, %rcx
movq 0x28(%rsp), %rdx
movl (%rdx,%rcx,4), %edx
movq %rbx, %rdi
movl %ebp, %esi
movl %eax, %ecx
callq 0x1e32
incl %ebp
cmpl $0x989680, %ebp         # imm = 0x989680
jne 0x131e
leaq 0x18(%rsp), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x1130
movq 0x8(%rsp), %r15
movq 0x10(%rsp), %r14
movq (%rbx), %r12
movq 0x8(%rbx), %rbx
movq 0x3c68(%rip), %rdi      # 0x4fd8
leaq 0x1cd9(%rip), %rsi      # 0x3050
movl $0xe, %edx
callq 0x1100
cvtsi2sd %r12, %xmm0
cvtsi2sd %rbx, %xmm1
movsd 0x1c75(%rip), %xmm2     # 0x3008
mulsd %xmm2, %xmm0
cvtsi2sd %r15, %xmm3
addsd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %r14, %xmm1
mulsd %xmm2, %xmm3
addsd %xmm1, %xmm3
subsd %xmm3, %xmm0
divsd 0x1c54(%rip), %xmm0     # 0x3010
movq 0x3c15(%rip), %rdi      # 0x4fd8
callq 0x1120
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x10d0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x10a0
leaq 0x28(%rsp), %rdi
callq 0x1552
xorl %eax, %eax
addq $0x90, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1410
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x1552
movq %rbx, %rdi
callq 0x1160
nop
// File: /workspace/github_cpp_makefile_star2_O3/reddragon[P]packed-memory-array/impl1.cpp
// Function: PackedMemoryArray<int>::PackedMemoryArray(int)
PackedMemoryArray<E>::PackedMemoryArray(E e) : t_0(VAL_T_0), t_l(VAL_T_L), c(VAL_C) {
    // Assert that c is a power of 2 and > 1
#ifndef OPTIMIZE
    assert(c > 1 && !(c & (c-1)));
#endif
    s = 0;
    // Get the new store
    store.resize(c*1);
    // Resize the bitmask as well
    exists.resize((size_t)ceil(c));
    insert_element_at(e, 0);
    
    // One liner log2 since c is a power of 2 :-P
    int log2n = __builtin_popcount(store.size()-1);
    if(log2n & (log2n-1)) {
        // log2n is not a power of 2, round it up to the nearest power of 2.
        segment_size = (int)floor(log2(1<<(log2n+1)));
    }
    else {
        // log2n is a power of 2, so, all is fine.
        segment_size = log2n;
    }
    l = log2n - log2(segment_size);

    // Now assert that the upper thresholds are sane, and you do not go out of balance the very first time.
#ifndef OPTIMIZE
    assert(!is_too_full());
#endif
    // And we have set this thing in motion. Pray!
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x18(%rdi), %r14
xorl %eax, %eax
movq %rax, 0x28(%rdi)
movl %eax, 0x30(%rdi)
movq %rax, 0x38(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movups %xmm0, 0x10(%rdi)
movl %eax, 0x20(%rdi)
movapd 0x1bc8(%rip), %xmm0     # 0x3020
movupd %xmm0, 0x40(%rdi)
movl $0x2, 0x50(%rdi)
movl %eax, 0x58(%rdi)
movl $0x2, %esi
callq 0x157e
movl 0x50(%rbx), %esi
movq %r14, %rdi
xorl %edx, %edx
callq 0x15b0
movq (%rbx), %rax
movl %ebp, (%rax)
movq 0x18(%rbx), %rcx
orq $0x1, (%rcx)
incl 0x58(%rbx)
movq 0x8(%rbx), %rcx
subq %rax, %rcx
shrq $0x2, %rcx
decl %ecx
movl %ecx, %eax
shrl %eax
andl $0x55555555, %eax       # imm = 0x55555555
subl %eax, %ecx
movl $0x33333333, %eax       # imm = 0x33333333
movl %ecx, %edx
andl %eax, %edx
shrl $0x2, %ecx
andl %eax, %ecx
addl %edx, %ecx
movl %ecx, %eax
shrl $0x4, %eax
addl %ecx, %eax
andl $0xf0f0f0f, %eax        # imm = 0xF0F0F0F
imull $0x1010101, %eax, %r14d # imm = 0x1010101
shrl $0x18, %r14d
leal -0x1(%r14), %ecx
movl %r14d, %eax
testl %ecx, %r14d
je 0x14f8
movl $0x2, %eax
movl %r14d, %ecx
shll %cl, %eax
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x1170
callq 0x1150
cvttsd2si %xmm0, %eax
movl %eax, 0x5c(%rbx)
xorps %xmm0, %xmm0
cvtsi2sd %r14d, %xmm0
movsd %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
callq 0x1170
movsd (%rsp), %xmm1
subsd %xmm0, %xmm1
cvttsd2si %xmm1, %eax
movl %eax, 0x54(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq %r14, %rdi
callq 0x1baa
movq %rbx, %rdi
callq 0x1190
movq %r15, %rdi
callq 0x1160
movq %rax, %rdi
callq 0x161d
// File: /workspace/github_cpp_makefile_star2_O3/reddragon[P]packed-memory-array/impl1.cpp
// Function: PackedMemoryArray<int>::upper_bound(int)
int PackedMemoryArray<E>::upper_bound(E e) {
    int l = 0, r = ((int)store.size())/segment_size, pos; 
    while(l != r) {
        int m = l + (r - l + 1)/2;
        pos = upper_bound_in_segment(e, m);
        if (pos == -1) 
            r = m-1;
        else
            l = m; 
    }
    pos = upper_bound_in_segment(e, l);
    return pos;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x8(%rdi), %rax
subq (%rdi), %rax
movl %esi, %ebp
shrq $0x2, %rax
cltd
idivl 0x5c(%rdi)
testl %eax, %eax
je 0x1e13
movl %eax, %r14d
xorl %r12d, %r12d
movl %r14d, %eax
subl %r12d, %eax
movl %eax, %ecx
incl %ecx
shrl $0x1f, %ecx
leal (%rax,%rcx), %r13d
incl %r13d
sarl %r13d
leal (%r12,%r13), %r15d
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
callq 0x1eee
cmpl $-0x1, %eax
je 0x1e05
movl %r15d, %r12d
jmp 0x1e0c
leal (%r12,%r13), %r14d
decl %r14d
cmpl %r14d, %r12d
jne 0x1dd3
jmp 0x1e16
xorl %r14d, %r14d
movq %rbx, %rdi
movl %ebp, %esi
movl %r14d, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1eee
nop
// File: /workspace/github_cpp_makefile_star2_O3/reddragon[P]packed-memory-array/impl1.cpp
// Function: PackedMemoryArray<int>::insert_element_after(int, int, int)
void PackedMemoryArray<E>::insert_element_after(E e, E after, int pos) {
    // Find where we can insert
    int loc;
    loc = pos;
#ifndef OPTIMIZE
    assert(loc != -1);
#endif
    int insert_at = ++loc;
    // Do we have space at the location we want to insert?
    if(insert_at < (int)store.size() && !ELEM_EXISTS_AT(insert_at)) {
        // Great! Now insert it there.
        insert_element_at(e, insert_at);
        return;
    }
    // The not so nice part begins here.
    int node_index, node_level;
    if(smallest_interval_in_balance(insert_at, &node_index, &node_level) == -1) {
        // No more space left in the PMA. Resize!
        expand_PMA(e);
    }
    else {
        // Rebalance one particular level
        rebalance(node_index, node_level, e);
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
incl %ecx
movq (%rdi), %rax
movq 0x8(%rdi), %rdx
subq %rax, %rdx
shrq $0x2, %rdx
cmpl %edx, %ecx
jge 0x1e96
movslq %ecx, %rdx
leal 0x3f(%rcx), %esi
testl %ecx, %ecx
cmovnsl %ecx, %esi
sarl $0x6, %esi
movslq %esi, %rsi
shlq $0x3, %rsi
addq 0x18(%r14), %rsi
movabsq $-0x8000000000000000, %r8 # imm = 0x8000000000000000
leaq 0x3f(%r8), %r9
andq %rdx, %r9
xorl %edi, %edi
cmpq %r8, %r9
setbe %dil
movl $0x1, %r8d
shlq %cl, %r8
movq -0x8(%rsi,%rdi,8), %r9
btq %rcx, %r9
jae 0x1ecf
leaq 0x4(%rsp), %rdx
movq %rsp, %rax
movq %r14, %rdi
movl %ecx, %esi
movq %rax, %rcx
callq 0x1f60
cmpl $-0x1, %eax
je 0x1ec3
movl 0x4(%rsp), %esi
movl (%rsp), %edx
movq %r14, %rdi
movl %ebx, %ecx
callq 0x2426
jmp 0x1ee5
movq %r14, %rdi
movl %ebx, %esi
callq 0x2126
jmp 0x1ee5
leaq -0x8(,%rdi,8), %rcx
movl %ebx, (%rax,%rdx,4)
orq %r8, %r9
movq %r9, (%rsi,%rcx)
incl 0x58(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/reddragon[P]packed-memory-array/impl1.cpp
// Function: PackedMemoryArray<int>::upper_bound_in_segment(int, int)
int PackedMemoryArray<E>::upper_bound_in_segment(E e, int v) {
    int best = -1;
    for(int i = v*segment_size; i < (v+1)*segment_size; i++)
        if(ELEM_EXISTS_AT(i) && store[i] <= e) 
            return best = i;
    return best;
}

// Assembly:
movl 0x5c(%rdi), %ecx
movl %ecx, %eax
imull %edx, %eax
incl %edx
imull %ecx, %edx
cmpl %edx, %eax
jge 0x1f59
pushq %rbx
movabsq $-0x8000000000000000, %rdx # imm = 0x8000000000000000
movq (%rdi), %r8
movq 0x18(%rdi), %rdi
cltq
leaq 0x3f(%rdx), %r9
leal 0x3f(%rax), %r10d
testl %eax, %eax
cmovnsl %eax, %r10d
sarl $0x6, %r10d
movslq %r10d, %r10
leaq (%rdi,%r10,8), %r10
movq %rax, %r11
andq %r9, %r11
xorl %ebx, %ebx
cmpq %rdx, %r11
setbe %bl
movq -0x8(%r10,%rbx,8), %r10
btq %rax, %r10
jae 0x1f4b
cmpl %esi, (%r8,%rax,4)
jle 0x1f57
incq %rax
decl %ecx
jne 0x1f17
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/cauimsouza[P]rikudo-solver/src/rikudo_solver/main.cpp
// Function: solves_rikudo(std::basic_ifstream<char, std::char_traits<char>>&, std::basic_ofstream<char, std::char_traits<char>>&)
void solves_rikudo(std::ifstream &ifile, std::ofstream &ofile)
{
    Graph graph(ifile);

    int begin, end;
    ifile >> begin >> end;

    graph.unique_sol(begin, end, ofile);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0xb0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq -0xc0(%rbp), %rdi
movq %r14, %rsi
callq 0x3808
leaq -0x18(%rbp), %rsi
movq %r14, %rdi
callq 0x2130
leaq -0x14(%rbp), %rsi
movq %rax, %rdi
callq 0x2130
movl -0x18(%rbp), %esi
movl -0x14(%rbp), %edx
leaq -0xc0(%rbp), %rdi
movq %rbx, %rcx
callq 0x6722
movq -0x30(%rbp), %rdi
testq %rdi, %rdi
je 0x297f
callq 0x21d0
leaq -0x48(%rbp), %rbx
movq %rbx, %rdi
callq 0x3122
movq -0x28(%rbx), %rdi
testq %rdi, %rdi
je 0x29ad
callq 0x21d0
xorl %eax, %eax
movq %rax, -0x70(%rbp)
movl %eax, -0x68(%rbp)
movq %rax, -0x60(%rbp)
movl %eax, -0x58(%rbp)
movq %rax, -0x50(%rbp)
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
callq 0x3122
movq -0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x29ca
callq 0x21d0
movq -0xb8(%rbp), %rdi
testq %rdi, %rdi
je 0x29db
callq 0x21d0
addq $0xb0, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %rbx
leaq -0xc0(%rbp), %rdi
callq 0x3176
movq %rbx, %rdi
callq 0x2380
// File: /workspace/github_cpp_makefile_star2_O3/cauimsouza[P]rikudo-solver/src/rikudo_solver/graph.cpp
// Function: Graph::backtracking(int, int, int, bool)
bool Graph::backtracking(int v,
                         int n,
                         int last,
                         bool count)
{
    visited[v] = true;
    path[n] = v;

    if (n == n_vertices - 1)
    {
        visited[v] = false;
        if(v == last){
            paths.push_back(path);
            return true;
        }
        
        return false;
    }

    for (int neighbor : adj_list[v])
    {
        if (!visited[neighbor] && backtracking(neighbor, n + 1, last, count) && !count)
            return true;
    }

    visited[v] = false;
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %ecx, %r12d
movq %rdi, %rbx
movabsq $-0x8000000000000000, %r9 # imm = 0x8000000000000000
movslq %esi, %rcx
movq 0x50(%rdi), %rax
leal 0x3f(%rcx), %edi
testl %ecx, %ecx
cmovnsl %esi, %edi
sarl $0x6, %edi
movslq %edi, %r13
leaq (%rax,%r13,8), %r15
leaq 0x3f(%r9), %rdi
andq %rcx, %rdi
xorl %r10d, %r10d
cmpq %r9, %rdi
setbe %r10b
movq -0x8(%r15,%r10,8), %r9
movq %r9, %rdi
btsq %rcx, %rdi
movq %rdi, -0x8(%r15,%r10,8)
movl %edx, -0x2c(%rbp)
movslq %edx, %r11
movq 0x90(%rbx), %r14
movl %ecx, (%r14,%r11,4)
movl $0x1, %r14d
shlq %cl, %r14
leaq -0x8(,%r10,8), %rdx
movl (%rbx), %r10d
decl %r10d
cmpl %r11d, %r10d
jne 0x368a
notq %r14
andq %r14, %r9
movq %r9, (%r15,%rdx)
cmpl %r12d, %esi
jne 0x375d
leaq 0x90(%rbx), %rsi
addq $0x78, %rbx
movq %rbx, %rdi
callq 0x73fa
movb $0x1, %al
jmp 0x375f
movq %rdx, -0x38(%rbp)
movq %r13, -0x40(%rbp)
movq 0x38(%rbx), %rdx
leaq (%rcx,%rcx,2), %rcx
movq (%rdx,%rcx,8), %r15
movq 0x8(%rdx,%rcx,8), %r13
cmpq %r13, %r15
je 0x3747
movq %r14, -0x48(%rbp)
movl %r12d, -0x30(%rbp)
incl -0x2c(%rbp)
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
leaq 0x3f(%rdi), %r14
movzbl %r8b, %r12d
movslq (%r15), %rsi
leal 0x3f(%rsi), %eax
testq %rsi, %rsi
cmovnsl %esi, %eax
sarl $0x6, %eax
cltq
shlq $0x3, %rax
addq 0x50(%rbx), %rax
movq %rsi, %rcx
andq %r14, %rcx
xorl %edx, %edx
cmpq %rdi, %rcx
setbe %dl
movq -0x8(%rax,%rdx,8), %rax
btq %rsi, %rax
jb 0x3726
movq %rbx, %rdi
movl -0x2c(%rbp), %edx
movl -0x30(%rbp), %ecx
movl %r12d, %r8d
callq 0x35d4
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
xorb $0x1, %al
movl %r12d, %ecx
orb %al, %cl
cmpb $0x1, %cl
jne 0x3683
addq $0x4, %r15
cmpq %r13, %r15
jne 0x36c9
movq 0x50(%rbx), %rax
movq -0x40(%rbp), %rcx
leaq (%rax,%rcx,8), %rcx
movq -0x38(%rbp), %rdx
movq (%rdx,%rcx), %rdi
movq -0x48(%rbp), %r14
movq -0x40(%rbp), %rcx
leaq (%rax,%rcx,8), %rax
notq %r14
andq %rdi, %r14
movq -0x38(%rbp), %rcx
movq %r14, (%rcx,%rax)
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/cauimsouza[P]rikudo-solver/src/rikudo_solver/graph.cpp
// Function: Graph::valid(std::vector<int, std::allocator<int>> const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>> const&, std::vector<std::pair<int, int>, std::allocator<std::pair<int, int>>> const&)
bool Graph::valid(const std::vector<int> &candidate,
                  const std::vector< std::pair<int,int> >& map,
                  const std::vector< std::pair<int,int> >& diamonds)
{    
    for(auto pair : map){
        int ith = pair.first;
        int vertex = pair.second;
        if(candidate[ith] != vertex)    return false;
    }

    for(auto pair : diamonds){
        int u = pair.first;
        int v = pair.second;
        for(int ith = 0; ith < candidate.size(); ith++)
            if(candidate[ith] == u){
                if(ith > 0 && candidate[ith-1] == v)    continue;
                if(ith < candidate.size() - 1 && candidate[ith+1] == v) continue;
                return false;
            }
    }

    return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
movq (%rdx), %rax
movq 0x8(%rdx), %rdx
cmpq %rdx, %rax
je 0x3798
movq (%rsi), %rdi
movslq (%rax), %r8
movl (%rdi,%r8,4), %r8d
cmpl 0x4(%rax), %r8d
jne 0x3802
addq $0x8, %rax
cmpq %rdx, %rax
jne 0x3782
movq (%rcx), %rdx
movq 0x8(%rcx), %rcx
movb $0x1, %al
cmpq %rcx, %rdx
je 0x3804
movq (%rsi), %rdi
movq 0x8(%rsi), %rsi
movq %rsi, %r8
subq %rdi, %r8
sarq $0x2, %r8
leaq -0x1(%r8), %r9
cmpq $0x1, %r8
adcq $0x0, %r8
cmpq %rdi, %rsi
je 0x37f7
movl (%rdx), %r10d
movl 0x4(%rdx), %r11d
xorl %ebx, %ebx
cmpl %r10d, (%rdi,%rbx,4)
jne 0x37ef
testq %rbx, %rbx
je 0x37e3
cmpl %r11d, -0x4(%rdi,%rbx,4)
je 0x37ef
cmpq %rbx, %r9
jbe 0x3802
cmpl %r11d, 0x4(%rdi,%rbx,4)
jne 0x3802
incq %rbx
cmpq %rbx, %r8
jne 0x37d1
addq $0x8, %rdx
cmpq %rcx, %rdx
jne 0x37c3
jmp 0x3804
xorl %eax, %eax
popq %rbx
popq %rbp
retq
nop