LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/gamemap.cpp
// Function: gamemap::serialize()
string gamemap::serialize()
{
	char ret[100*101+1];
	memset(ret, 0, (width+1)*height+1);
	
	for (int y=0;y<height;y++)
	{
		for (int x=0;x<width;x++)
		{
			island& here = map[y][x];
			
			if (here.rootnode != y*100+x) continue;
			
			char ch = -1; // populations other than the listed ones are impossible, but gcc won't realize that
			
			if(0);
			else if (here.population == -1) ch = ' ';
			else if (here.population == -2) ch = '#';
			else if (here.population <  10) ch = '0'+here.population;
			else if (here.population <  36) ch = 'A'+here.population-10;
			else if (here.population == 80) ch = 'r';
			else if (here.population == 81) ch = 'b';
			else if (here.population == 82) ch = 'y';
			else if (here.population == 83) ch = 'g';
			
			serialize_fill(*this, ret, width, x, y);
			
			ret[(width+1)*y + x] = ch;
		}
		ret[(width+1)*y + width] = '\n';
	}
	
	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2798, %rsp           # imm = 0x2798
movq %rsi, %r14
movq %rdi, 0x8(%rsp)
movl (%rsi), %r15d
movl 0x4(%rsi), %ebp
leal 0x1(%r15), %eax
imull %ebp, %eax
incl %eax
movslq %eax, %rdx
leaq 0x20(%rsp), %rdi
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x3170
movq %r14, (%rsp)
leaq 0xe(%r14), %r12
xorl %r13d, %r13d
movslq %ebp, %rax
cmpq %rax, %r13
jge 0x1d997
movq %r12, 0x10(%rsp)
xorl %ebp, %ebp
movq %rbx, 0x18(%rsp)
movslq %r15d, %rax
cmpq %rax, %rbp
jge 0x1d963
movswq (%r12), %rax
leaq (%rbx,%rbp), %rcx
movl %eax, %eax
cmpq %rax, %rcx
jne 0x1d93e
movzbl -0x2(%r12), %ecx
cmpl $0xff, %ecx
je 0x1d8ed
cmpl $0xfe, %ecx
jne 0x1d8f2
movb $0x23, %r14b
jmp 0x1d907
movb $0x20, %r14b
jmp 0x1d907
cmpb $0x9, %cl
jg 0x1d8fc
addb $0x30, %cl
jmp 0x1d904
cmpb $0x23, %cl
ja 0x1d94a
addb $0x37, %cl
movl %ecx, %r14d
movq (%rsp), %rbx
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
movl %r15d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x1d9be
movl (%rbx), %r15d
leal 0x1(%r15), %eax
imull %r13d, %eax
cltq
addq %rsp, %rax
addq $0x20, %rax
movb %r14b, (%rbp,%rax)
movq 0x18(%rsp), %rbx
incq %rbp
addq $0xc, %r12
jmp 0x1d8b6
addb $-0x50, %cl
movb $-0x1, %r14b
cmpb $0x3, %cl
ja 0x1d907
shlb $0x3, %cl
movl $0x67796272, %r14d      # imm = 0x67796272
shrl %cl, %r14d
jmp 0x1d907
leal 0x1(%r15), %eax
movl %r13d, %ecx
imull %eax, %ecx
addl %r15d, %ecx
movslq %ecx, %rax
movb $0xa, 0x20(%rsp,%rax)
incq %r13
movq (%rsp), %rax
movl 0x4(%rax), %ebp
movq 0x10(%rsp), %r12
addq $0x4b0, %r12            # imm = 0x4B0
addq $0x64, %rbx
jmp 0x1d89e
leaq 0x20(%rsp), %rsi
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
callq 0x4242
movq %rbx, %rax
addq $0x2798, %rsp           # imm = 0x2798
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/gamemap.cpp
// Function: serialize_fill(gamemap&, char*, int, int, int)
static void serialize_fill(gamemap& map, char * ret, int width, int x, int y)
{
	if (map.map[y][x].bridges[0] == 3 && ret[(width+1)*y+(x+1)] == '\0')
	{
		ret[(width+1)*y+(x+1)] = '<';
		serialize_fill(map, ret, width, x+1, y);
	}
	if (map.map[y][x].bridges[1] == 3 && ret[(width+1)*(y-1)+x] == '\0')
	{
		ret[(width+1)*(y-1)+x] = 'v';
		serialize_fill(map, ret, width, x, y-1);
	}
	if (map.map[y][x].bridges[2] == 3 && ret[(width+1)*y+(x-1)] == '\0')
	{
		ret[(width+1)*y+(x-1)] = '>';
		serialize_fill(map, ret, width, x-1, y);
	}
	if (map.map[y][x].bridges[3] == 3 && ret[(width+1)*(y+1)+x] == '\0')
	{
		ret[(width+1)*(y+1)+x] = '^';
		serialize_fill(map, ret, width, x, y+1);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movl %r8d, %r12d
movq %rsi, %r15
movq %rdx, 0x20(%rsp)
leal 0x1(%rdx), %edx
movl %ecx, 0x34(%rsp)
movslq %ecx, %rax
leal 0x1(%rax), %ecx
leal -0x1(%rax), %esi
movslq %r8d, %r13
movslq %edx, %rbp
movl %ecx, 0x30(%rsp)
movslq %ecx, %rcx
movl %esi, 0x2c(%rsp)
movslq %esi, %rsi
movq %r13, %r9
imulq %rbp, %r9
addq %r9, %rsi
addq %rcx, %r9
imulq $0x4b0, %r13, %rcx      # imm = 0x4B0
imulq $0xc, %rax, %rdx
addq %rcx, %rdx
movq %rdi, 0x18(%rsp)
leaq (%rdi,%rdx), %rbx
addq $0x17, %rbx
leaq -0x1(%r13), %r14
imulq %rbp, %r14
addq %rax, %r14
incq %r13
imulq %rbp, %r13
addq %rax, %r13
cmpb $0x3, -0x3(%rbx)
jne 0x1da77
cmpb $0x0, (%r15,%r9)
jne 0x1da77
movb $0x3c, (%r15,%r9)
movq 0x18(%rsp), %rdi
movq %rsi, 0x10(%rsp)
movq %r15, %rsi
movq 0x20(%rsp), %rdx
movl 0x30(%rsp), %ecx
movl %r12d, %r8d
movq %r9, 0x8(%rsp)
callq 0x1d9be
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %rsi
cmpb $0x3, -0x2(%rbx)
jne 0x1dab8
cmpb $0x0, (%r15,%r14)
jne 0x1dab8
movb $0x76, (%r15,%r14)
leal -0x1(%r12), %r8d
movq 0x18(%rsp), %rdi
movq %rsi, 0x10(%rsp)
movq %r15, %rsi
movq 0x20(%rsp), %rdx
movl 0x34(%rsp), %ecx
movq %r9, 0x8(%rsp)
callq 0x1d9be
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %rsi
cmpb $0x3, -0x1(%rbx)
jne 0x1daf7
cmpb $0x0, (%r15,%rsi)
jne 0x1daf7
movb $0x3e, (%r15,%rsi)
movq 0x18(%rsp), %rdi
movq %rsi, 0x10(%rsp)
movq %r15, %rsi
movq 0x20(%rsp), %rdx
movl 0x2c(%rsp), %ecx
movl %r12d, %r8d
movq %r9, 0x8(%rsp)
callq 0x1d9be
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %rsi
cmpb $0x3, (%rbx)
jne 0x1db23
cmpb $0x0, (%r15,%r13)
jne 0x1db23
movb $0x5e, (%r15,%r13)
incl %r12d
addq %rbp, %rsi
addq %rbp, %r9
addq $0x4b0, %rbx            # imm = 0x4B0
addq %rbp, %r14
addq %rbp, %r13
jmp 0x1da38
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::generator(gamemap::genparams const&)
gamemap::generator::generator(const gamemap::genparams& par) : par(par)
{
	//WARNING: Even if this one is made constant, output will still be nondeterministic,
	//  due to threads finishing in varying order, making different maps seem superior;
	//  therefore, it is not allowed to override it.
	//A fixed random seed with exactly one thread will be deterministic.
	randseed = time_us() << 16;
	
#ifdef ARLIB_THREAD
	unsigned n_threads = thread_num_cores_idle();
	// don't spin up too many shortlived threads
	if (n_threads > par.quality / 500) n_threads = par.quality / 500;
	if (n_threads > 32) n_threads = 32; // more than 32 is just excessive, such high quality is pointless
	if (n_threads < 1) n_threads = 1;
	
	n_started = n_threads;
	n_more_threads = n_threads-1;
	thread_create(bind_this(&generator::threadproc), pri_idle);
#else
	n_started = 1;
#endif
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
callq 0x1fc0c
leaq 0x30(%rbx), %rdi
callq 0x6c80
leaq 0x58(%rbx), %rdi
callq 0x1fc28
movaps 0xda31(%rip), %xmm0     # 0x2b590
movups %xmm0, 0x84(%rbx)
movabsq $0xf423f00000000, %rax  # imm = 0xF423F00000000
movq %rax, 0xa0(%rbx)
movb $0x0, 0xa8(%rbx)
callq 0x173b0
shlq $0x10, %rax
movq %rax, 0x78(%rbx)
callq 0x17360
movl %eax, %ecx
movl 0x14(%r14), %eax
movl $0x1f4, %esi            # imm = 0x1F4
xorl %edx, %edx
divl %esi
cmpl %eax, %ecx
cmovbl %ecx, %eax
cmpl $0x20, %eax
pushq $0x20
popq %rcx
cmovbl %eax, %ecx
cmpl $0x1, %ecx
adcl $0x0, %ecx
movl %ecx, 0x80(%rbx)
decb %cl
movb %cl, 0xa9(%rbx)
leaq 0x209e(%rip), %rax      # 0x1fc66
movq %rsp, %r14
movq %rax, 0x8(%r14)
movq %rbx, (%r14)
andq $0x0, 0x10(%r14)
pushq $0x3
popq %rsi
movq %r14, %rdi
callq 0x17278
movq %r14, %rdi
callq 0x8f3c
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::threadproc()
void gamemap::generator::threadproc()
{
	gamemap map; // this object is huge, cache it to avoid pointless stack probing
	
	workitem w;
	synchronized(mut)
	{
		get_work(true, w);
		
#ifdef ARLIB_THREAD
		if (n_more_threads)
		{
			thread_create(bind_this(&generator::threadproc), pri_idle);
			n_more_threads--;
		}
#endif
	}
	
	while (true)
	{
		do_work(w, map);
		
		synchronized(mut)
		{
			finish_work(w);
			
			if (!get_work(false, w))
			{
				if (n_started == n_finished) sem.release();
				return; // not break, synchronized() uses a for loop internally
			}
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x24a28, %rsp          # imm = 0x24A28
movq %rdi, %r14
leaq 0x30(%rdi), %rbx
movq %rbx, %rdi
callq 0x3520
movq 0x78(%r14), %rax
incq %rax
movq %rax, 0x78(%r14)
movq %rax, 0x8(%rsp)
cmpb $0x0, 0xa9(%r14)
je 0x1dc5b
leaq 0x2036(%rip), %rax      # 0x1fc66
leaq 0x20(%rsp), %r15
movq %rax, 0x8(%r15)
movq %r14, (%r15)
andq $0x0, 0x10(%r15)
pushq $0x3
popq %rsi
movq %r15, %rdi
callq 0x17278
movq %r15, %rdi
callq 0x8f3c
decb 0xa9(%r14)
leaq 0x8(%rsp), %r15
leaq 0x20(%rsp), %r12
movq %rbx, %rdi
callq 0x3250
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1dd12
movq %rbx, %rdi
callq 0x3520
movq %r14, %rdi
movq %r15, %rsi
callq 0x1f23a
movq %r14, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x1dcd2
testb %al, %al
jne 0x1dc65
movl 0x80(%r14), %eax
cmpl 0x88(%r14), %eax
jne 0x1dcbb
addq $0x58, %r14
movq %r14, %rdi
callq 0x3650
movq %rbx, %rdi
callq 0x3250
addq $0x24a28, %rsp          # imm = 0x24A28
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::get_work(bool, gamemap::generator::workitem&)
bool gamemap::generator::get_work(bool first, workitem& w)
{
	if (!first)
	{
		if (stop) return false;
		if (n_valid > 0 && n_started >= par.quality) return false;
		n_started++;
	}
	
	randseed++;
	w.seed = randseed;
	return true;
}

// Assembly:
testl %esi, %esi
je 0x1dce7
movq 0x78(%rdi), %rax
incq %rax
movq %rax, 0x78(%rdi)
movq %rax, (%rdx)
movb $0x1, %al
retq
cmpb $0x0, 0xa8(%rdi)
jne 0x1dd04
cmpl $0x0, 0x84(%rdi)
movl 0x80(%rdi), %eax
je 0x1dd07
cmpl 0x14(%rdi), %eax
jb 0x1dd07
xorl %eax, %eax
retq
incl %eax
movl %eax, 0x80(%rdi)
jmp 0x1dcd6
nop
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::do_work(gamemap::generator::workitem&, gamemap&)
void gamemap::generator::do_work(workitem& w, gamemap& map)
{
	loc_generator lgen(map, par);
	lgen.generate_one(w.seed);
	
	//if (!map.finished()) abort();
	w.valid = true;
	if (map.numislands <= 1 && par.width*par.height >= 5) w.valid = false;
	if (!par.allow_ambiguous && map.solve_another()) w.valid = false;
	
	if (w.valid)
	{
		w.diff = map.difficulty();
		
		w.penalty = 0;
		if (!par.dense)
		{
			unsigned n_close = 0;
			
			for (int y=0;y<map.height;y++)
			for (int x=0;x<map.width;x++)
			{
				int idx = y*100+x;
				gamemap::island& here = map.get(idx);
				
				if (here.population < 0) continue;
				n_close += (here.bridgelen[0] == 1) + (here.bridgelen[3] == 1);
			}
			w.penalty += (unsigned)(5 * powf(n_close, 1.5f));
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x8(%rsp), %r12
movq %r12, %rdi
movq %rdx, %rsi
movq %r15, %rdx
callq 0x1de66
movq (%rbx), %rsi
movq %r12, %rdi
callq 0x1de7c
movb $0x1, 0x8(%rbx)
movb $0x1, %al
cmpl $0x1, 0x8(%r14)
jg 0x1dd69
movzbl (%r15), %ecx
movzbl 0x1(%r15), %edx
imull %ecx, %edx
cmpl $0x5, %edx
jb 0x1dd69
movb $0x0, 0x8(%rbx)
xorl %eax, %eax
cmpb $0x0, 0xc(%r15)
jne 0x1dd88
movq %r14, %rdi
callq 0x2017a
testb %al, %al
je 0x1dd85
movb $0x0, 0x8(%rbx)
jmp 0x1de59
movb 0x8(%rbx), %al
testb $0x1, %al
je 0x1de59
movq %r14, %rdi
callq 0x2063a
movl %eax, 0xc(%rbx)
andl $0x0, 0x10(%rbx)
cmpb $0x0, 0x8(%r15)
jne 0x1de59
movl (%r14), %edi
movl 0x4(%r14), %r8d
addq $0xc, %r14
xorl %r9d, %r9d
testl %edi, %edi
cmovlel %r9d, %edi
testl %r8d, %r8d
cmovlel %r9d, %r8d
movw $0x64, %r10w
xorl %ebp, %ebp
xorl %r11d, %r11d
cmpl %r8d, %ebp
je 0x1de34
movl %r9d, %ecx
movl %edi, %r15d
movl %ecx, %eax
xorl %edx, %edx
divw %r10w
subl $0x1, %r15d
jb 0x1de2c
movl %edx, %esi
movl %ecx, %eax
xorl %edx, %edx
divw %r10w
movzwl %ax, %eax
movzwl %si, %edx
imulq $0x4b0, %rax, %rax      # imm = 0x4B0
addq %r14, %rax
imulq $0xc, %rdx, %rdx
cmpb $0x0, (%rdx,%rax)
js 0x1de28
addq %rdx, %rax
xorl %edx, %edx
cmpb $0x1, 0x4(%rax)
sete %dl
xorl %esi, %esi
cmpb $0x1, 0x7(%rax)
sete %sil
addl %edx, %r11d
addl %esi, %r11d
incl %ecx
jmp 0x1ddda
incl %ebp
addl $0x64, %r9d
jmp 0x1ddcf
movl %r11d, %eax
cvtsi2ss %rax, %xmm0
movss 0xd77c(%rip), %xmm1     # 0x2b5c0
callq 0x35b0
mulss 0xd773(%rip), %xmm0     # 0x2b5c4
cvttss2si %xmm0, %rax
addl %eax, 0x10(%rbx)
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::finish_work(gamemap::generator::workitem&)
void gamemap::generator::finish_work(workitem& w)
{
	n_finished++;
	
	if (w.valid)
	{
		auto absdiff = [](unsigned a, unsigned b)->unsigned { if (a > b) return a-b; else return b-a; };
		
		n_valid++;
		
		if (w.diff > diff_max) diff_max = w.diff;
		if (w.diff < diff_min) diff_min = w.diff;
		
		unsigned ideal_diff = (diff_max-diff_min)*par.difficulty + diff_min;
//printf("%u,%u,%u=%u ",w.diff,ideal_diff,w.penalty,absdiff(w.diff,ideal_diff) + w.penalty);
//printf("%u,%u,%u=%u\n",best_diff, ideal_diff, best_pen,absdiff(best_diff,ideal_diff) + best_pen);
		if (diff_max<=diff_min || absdiff(w.diff, ideal_diff) + w.penalty <= absdiff(best_diff, ideal_diff) + best_pen)
		{
			best_seed = w.seed;
			best_diff = w.diff;
			best_pen = w.penalty;
//printf("%u-%u (#%u)\n",best_diff,w.penalty,n_valid);
		}
	}
}

// Assembly:
incl 0x88(%rdi)
cmpb $0x1, 0x8(%rsi)
jne 0x1f2ce
incl 0x84(%rdi)
movl 0xc(%rsi), %eax
movl 0x90(%rdi), %ecx
cmpl %ecx, %eax
jbe 0x1f265
movl %eax, 0x90(%rdi)
movl %eax, %ecx
movl 0x8c(%rdi), %edx
cmpl %edx, %eax
jae 0x1f277
movl %eax, 0x8c(%rdi)
movl %eax, %edx
subl %edx, %ecx
jbe 0x1f2cf
cvtsi2ss %rcx, %xmm0
movl %edx, %ecx
cvtsi2ss %rcx, %xmm1
mulss 0x10(%rdi), %xmm0
addss %xmm1, %xmm0
cvttss2si %xmm0, %rdx
movl 0xa0(%rdi), %ecx
movl %edx, %r8d
subl %ecx, %r8d
negl %r8d
movl %edx, %r9d
subl %ecx, %r9d
cmovbl %r8d, %r9d
movl %edx, %r8d
subl %eax, %r8d
negl %r8d
subl %eax, %edx
movl 0x10(%rsi), %ecx
cmovbl %r8d, %edx
addl %ecx, %edx
addl 0xa4(%rdi), %r9d
cmpl %r9d, %edx
jbe 0x1f2d2
retq
movl 0x10(%rsi), %ecx
movq (%rsi), %rdx
movq %rdx, 0x98(%rdi)
movl %eax, 0xa0(%rdi)
movl %ecx, 0xa4(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::done(unsigned int*)
bool gamemap::generator::done(unsigned* progress)
{
#ifdef ARLIB_THREAD
	synchronized(mut)
	{
		if (progress) *progress = n_finished;
		return n_finished == n_started;
	}
	return false; // unreachable, but gcc doesn't know that
#else
	if (progress) *progress = par.quality;
	return true;
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %r14
leaq 0x30(%rdi), %rbx
movq %rbx, %rdi
callq 0x3520
movl 0x88(%r14), %eax
testq %r15, %r15
je 0x1f312
movl %eax, (%r15)
cmpl 0x80(%r14), %eax
sete %bpl
movq %rbx, %rdi
callq 0x3250
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::finish(gamemap&)
bool gamemap::generator::finish(gamemap& map)
{
	uint64_t seed = pack();
	if (!seed) return false;
	unpack(par, seed, map);
	return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r15
callq 0x1f364
movq %rax, %r14
testq %rax, %rax
je 0x1f358
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x1f3b4
testq %r14, %r14
setne %al
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/generate.cpp
// Function: gamemap::generator::pack()
uint64_t gamemap::generator::pack()
{
#ifndef ARLIB_THREAD
	threadproc();
#endif
	sem.wait();
	
//printf("Generated %u maps (%u usable)\n", n_finished, n_valid);
//printf("Difficulty: %i (%f, desired %f), range %i-%i\n", best_diff,
//(best_diff-diff_min) / (float)(diff_max-diff_min), par.difficulty, diff_min, diff_max);
//puts(serialize());
	
	uint64_t ret;
	synchronized(mut) // must grab mutex after awaiting the semaphore, to avoid race condition on releasing vs freeing mutex
	{
		ret = n_valid ? best_seed : 0;
	}
	
	sem.release(); // in case some fool decides to call pack() multiple times
	return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
leaq 0x58(%rdi), %rbx
movq %rbx, %rdi
callq 0x1fc32
leaq 0x30(%r15), %r14
movq %r14, %rdi
callq 0x3520
cmpl $0x0, 0x84(%r15)
je 0x1f397
movq 0x98(%r15), %r15
jmp 0x1f39a
xorl %r15d, %r15d
movq %r14, %rdi
callq 0x3250
movq %rbx, %rdi
callq 0x3650
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/solver.cpp
// Function: (anonymous namespace)::linker::join(unsigned short, unsigned short)
bool join(uint16_t a, uint16_t b)
	{
		uint16_t r1 = root(a);
		uint16_t r2 = root(b);
		
		if (r1 == r2) return true;
		
		link_t& lr1 = links[r1];
		link_t& lr2 = links[r2];
		
		links[lr1.join_last].join_next = r2;
		links[lr2.join_last].join_next = r1;
		lr1.join_last = lr2.join_last;
		lr2.join_root = r1;
		
		if (lr1.castlecolor >= 80 || lr2.castlecolor >= 80)
		{
			if (lr1.castlecolor == lr2.castlecolor) return true;
			if (lr1.castlecolor >= 80 && lr2.castlecolor >= 80) return false;
			if (lr1.castlecolor < lr2.castlecolor) lr1.castlecolor = lr2.castlecolor;
		}
		return true;
	}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %r14d
movq %rdi, %rbx
callq 0x21e08
movl %eax, %ebp
movq %rbx, %rdi
movl %r14d, %esi
callq 0x21e08
movl %eax, %ecx
movb $0x1, %al
cmpw %cx, %bp
jne 0x21bc2
popq %rbx
popq %r14
popq %rbp
retq
movzwl %bp, %edx
shll $0x4, %edx
movzwl %cx, %edi
shll $0x4, %edi
movzwl 0xc(%rbx,%rdx), %esi
shll $0x4, %esi
movw %cx, 0xa(%rbx,%rsi)
movzwl 0xc(%rbx,%rdi), %ecx
movl %ecx, %esi
shll $0x4, %esi
movw %bp, 0xa(%rbx,%rsi)
movw %cx, 0xc(%rbx,%rdx)
movw %bp, 0x8(%rbx,%rdi)
movzwl 0xe(%rbx,%rdx), %esi
cmpw $0x50, %si
setb %r8b
movzwl 0xe(%rbx,%rdi), %ecx
cmpw $0x50, %cx
setb %dil
testb %dil, %r8b
jne 0x21bbd
cmpw %cx, %si
je 0x21bbd
cmpw $0x50, %si
jb 0x21c28
cmpw $0x4f, %cx
jbe 0x21c28
xorl %eax, %eax
jmp 0x21bbd
cmpw %cx, %si
jae 0x21bbd
addq %rdx, %rbx
movw %cx, 0xe(%rbx)
jmp 0x21bbd
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/solver.cpp
// Function: (anonymous namespace)::linker::query(unsigned short, unsigned short)
uint16_t query(uint16_t index, uint16_t other)
	{
		if (other != (uint16_t)-1) other = root(other);
		uint16_t r = root(index);
		uint16_t ni = r;
		do {
			link_t& link = links[ni];
			
			for (int i=0;i<4;i++)
			{
				if (link.links[i] != (uint16_t)-1)
				{
					uint16_t targetroot = root(link.links[i]);
					if (targetroot == r)
						link.links[i] = -1;
					else if (targetroot == other)
						other = -1;
					else
						return link.links[i];
				}
			}
			
			ni = link.join_next;
			//if (other != (uint16_t)-1) links[r].join_firstneighbor = ni;
		} while (ni != r);
		return -1;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %r14d
movq %rdi, %rbx
cmpl $0xffff, %edx           # imm = 0xFFFF
je 0x21c74
movzwl %dx, %esi
movq %rbx, %rdi
callq 0x21e08
movl %eax, %ebp
jmp 0x21c78
movw $0xffff, %bp            # imm = 0xFFFF
movzwl %r14w, %esi
movq %rbx, %rdi
callq 0x21e08
movl %eax, %r14d
movzwl %ax, %r15d
shll $0x4, %r15d
leaq (%rbx,%r15), %r13
xorl %r12d, %r12d
cmpq $0x4, %r12
je 0x21cd0
movzwl (%r13,%r12,2), %eax
cmpw $-0x1, %ax
je 0x21ccb
movzwl %ax, %esi
movq %rbx, %rdi
callq 0x21e08
cmpw %r14w, %ax
jne 0x21cc2
orw $-0x1, (%r13,%r12,2)
jmp 0x21ccb
cmpw %bp, %ax
movw $0xffff, %bp            # imm = 0xFFFF
jne 0x21ce1
incq %r12
jmp 0x21c96
movzwl 0xa(%r13), %eax
cmpw %r14w, %ax
jne 0x21c87
movw $0xffff, %ax            # imm = 0xFFFF
jmp 0x21ce9
addq %r15, %rbx
movzwl (%rbx,%r12,2), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/solver.cpp
// Function: (anonymous namespace)::linker::lookback(gamemap&, unsigned short, unsigned short, unsigned short&, bool&)
void lookback(gamemap& map, uint16_t link, uint16_t orig, uint16_t& topleft, bool& down)
	{
		gamemap::island& here = map.get(link);
		link_t& lhere = links[link];
		orig = root(orig);
		
		if (lhere.links[0] != (uint16_t)-1 && root(lhere.links[0]) == orig)
		{
			topleft = link;
			down = false;
			return;
		}
		
		if (lhere.links[1] != (uint16_t)-1 && root(lhere.links[1]) == orig)
		{
			topleft = link - here.bridgelen[1]*100;
			down = true;
			return;
		}
		
		if (lhere.links[2] != (uint16_t)-1 && root(lhere.links[2]) == orig)
		{
			topleft = link - here.bridgelen[2];
			down = false;
			return;
		}
		
		if (lhere.links[3] != (uint16_t)-1 && root(lhere.links[3]) == orig)
		{
			topleft = link;
			down = true;
			return;
		}
		
		abort(); // unreachable
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x10(%rsp)
movq %r8, 0x8(%rsp)
movl %edx, %ebp
movq %rsi, %r13
movq %rdi, %r12
movw $0x64, %si
movl %ebp, %eax
xorl %edx, %edx
divw %si
movl %eax, %r14d
movw %dx, 0x6(%rsp)
movl %ebp, %r15d
shll $0x4, %r15d
movl %ecx, %esi
callq 0x21e08
movl %eax, %ebx
movzwl (%r12,%r15), %eax
cmpw $-0x1, %ax
je 0x21d56
movzwl %ax, %esi
movq %r12, %rdi
callq 0x21e08
cmpw %bx, %ax
je 0x21dc3
movzwl %r14w, %eax
imulq $0x4b0, %rax, %rax      # imm = 0x4B0
addq %rax, %r13
movzwl 0x6(%rsp), %eax
imulq $0xc, %rax, %rax
leaq (%rax,%r13), %r14
addq $0xc, %r14
addq %r12, %r15
movzwl 0x2(%r15), %eax
cmpw $-0x1, %ax
je 0x21da1
movzwl %ax, %esi
movq %r12, %rdi
callq 0x21e08
cmpw %bx, %ax
jne 0x21da1
movsbl 0x5(%r14), %eax
imull $-0x64, %eax, %eax
addl %eax, %ebp
movb $0x1, %cl
jmp 0x21de4
movzwl 0x4(%r15), %eax
cmpw $-0x1, %ax
je 0x21dc7
movzwl %ax, %esi
movq %r12, %rdi
callq 0x21e08
cmpw %bx, %ax
jne 0x21dc7
movsbl 0x6(%r14), %eax
subl %eax, %ebp
xorl %ecx, %ecx
jmp 0x21de4
movzwl 0x6(%r15), %eax
cmpw $-0x1, %ax
je 0x21e02
movzwl %ax, %esi
movq %r12, %rdi
callq 0x21e08
movb $0x1, %cl
cmpw %bx, %ax
jne 0x21e02
movq 0x8(%rsp), %rax
movw %bp, (%rax)
movq 0x10(%rsp), %rax
movb %cl, (%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x3180
nop
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/./arlib/argparse.h
// Function: argparse::add(char, cstring, bool*)
arg_bool& add(char sname, cstring name, bool* target)
	{
		arg_bool* arg = new arg_bool(target);
		arg->name = name;
		arg->sname = sname;
		m_args.append_take(*arg);
		return *arg;
	}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %r12
pushq $0x28
popq %rdi
callq 0x3340
movq %rax, %r13
movq %rax, %rdi
movq %rbx, %rsi
callq 0x24478
leaq 0x8(%r13), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x5682
movb %bpl, 0x18(%r13)
addq $0x10, %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x244a2
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/./arlib/os.h
// Function: benchmark::next_cycle()
bool next_cycle()
	{
		uint32_t us_actual = t.us();
		if (us_actual > us)
		{
			us = us_actual;
			return false;
		}
		return true;
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x24652
movl 0xc(%rbx), %ecx
cmpl %eax, %ecx
jae 0x2464b
movl %eax, 0xc(%rbx)
cmpl %eax, %ecx
setae %al
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: mz_adler32
mz_ulong mz_adler32(mz_ulong adler, const unsigned char *ptr, size_t buf_len)
{
  mz_uint32 i, s1 = (mz_uint32)(adler & 0xffff), s2 = (mz_uint32)(adler >> 16); size_t block_len = buf_len % 5552;
  if (!ptr) return MZ_ADLER32_INIT;
  while (buf_len) {
    for (i = 0; i + 7 < block_len; i += 8, ptr += 8) {
      s1 += ptr[0], s2 += s1; s1 += ptr[1], s2 += s1; s1 += ptr[2], s2 += s1; s1 += ptr[3], s2 += s1;
      s1 += ptr[4], s2 += s1; s1 += ptr[5], s2 += s1; s1 += ptr[6], s2 += s1; s1 += ptr[7], s2 += s1;
    }
    for ( ; i < block_len; ++i) s1 += *ptr++, s2 += s1;
    s1 %= 65521U, s2 %= 65521U; buf_len -= block_len; block_len = 5552;
  }
  return (s2 << 16) + s1;
}

// Assembly:
testq %rsi, %rsi
je 0x247f3
movq %rdx, %rcx
movl $0x15b0, %r8d           # imm = 0x15B0
movq %rdx, %rax
xorl %edx, %edx
divq %r8
movq %rdx, %r8
movq %rdi, %r10
shrq $0x10, %r10
movzwl %di, %r9d
movl $0xfff1, %edi           # imm = 0xFFF1
testq %rcx, %rcx
je 0x247ea
xorl %r11d, %r11d
leal 0x7(%r11), %eax
cmpl %r8d, %eax
jae 0x247c0
movzbl (%rsi,%r11), %eax
addl %eax, %r9d
addl %r9d, %r10d
movzbl 0x1(%rsi,%r11), %eax
addl %r9d, %eax
addl %eax, %r10d
movzbl 0x2(%rsi,%r11), %edx
addl %eax, %edx
addl %edx, %r10d
movzbl 0x3(%rsi,%r11), %eax
addl %edx, %eax
addl %eax, %r10d
movzbl 0x4(%rsi,%r11), %edx
addl %eax, %edx
addl %edx, %r10d
movzbl 0x5(%rsi,%r11), %eax
addl %edx, %eax
addl %eax, %r10d
movzbl 0x6(%rsi,%r11), %edx
addl %eax, %edx
addl %edx, %r10d
movzbl 0x7(%rsi,%r11), %r9d
addl %edx, %r9d
addl %r9d, %r10d
addq $0x8, %r11
jmp 0x24749
movzbl (%rsi,%r11), %eax
addl %eax, %r9d
addl %r9d, %r10d
incq %r11
cmpl %r8d, %r11d
jb 0x247b2
movl %r9d, %eax
xorl %edx, %edx
divl %edi
movl %edx, %r9d
movl %r10d, %eax
xorl %edx, %edx
divl %edi
subq %r8, %rcx
addq %r11, %rsi
movl $0x15b0, %r8d           # imm = 0x15B0
movl %edx, %r10d
jmp 0x2473d
shll $0x10, %r10d
orl %r9d, %r10d
jmp 0x247f7
pushq $0x1
popq %r10
movq %r10, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: tdefl_flush_output_buffer
static tdefl_status tdefl_flush_output_buffer(tdefl_compressor *d)
{
  if (d->m_pIn_buf_size)
  {
    *d->m_pIn_buf_size = d->m_pSrc - (const mz_uint8 *)d->m_pIn_buf;
  }

  if (d->m_pOut_buf_size)
  {
    size_t n = MZ_MIN(*d->m_pOut_buf_size - d->m_out_buf_ofs, d->m_output_flush_remaining);
    memcpy((mz_uint8 *)d->m_pOut_buf + d->m_out_buf_ofs, d->m_output_buf + d->m_output_flush_ofs, n);
    d->m_output_flush_ofs += (mz_uint)n;
    d->m_output_flush_remaining -= (mz_uint)n;
    d->m_out_buf_ofs += n;

    *d->m_pOut_buf_size = d->m_out_buf_ofs;
  }

  return (d->m_finished && !d->m_output_flush_remaining) ? TDEFL_STATUS_DONE : TDEFL_STATUS_OKAY;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x98(%rdi), %rax
testq %rax, %rax
je 0x25a09
movq 0xb0(%rbx), %rcx
subq 0x88(%rbx), %rcx
movq %rcx, (%rax)
movq 0xa0(%rbx), %rax
testq %rax, %rax
je 0x25a69
movq (%rax), %r14
movq 0xc0(%rbx), %rdi
subq %rdi, %r14
movl 0x74(%rbx), %eax
cmpq %rax, %r14
cmovaeq %rax, %r14
movl 0x70(%rbx), %eax
addq 0x90(%rbx), %rdi
leaq (%rbx,%rax), %rsi
addq $0x392aa, %rsi          # imm = 0x392AA
movq %r14, %rdx
callq 0x3280
addl %r14d, 0x70(%rbx)
subl %r14d, 0x74(%rbx)
addq 0xc0(%rbx), %r14
movq %r14, 0xc0(%rbx)
movq 0xa0(%rbx), %rax
movq %r14, (%rax)
cmpl $0x0, 0x78(%rbx)
je 0x25a7a
xorl %eax, %eax
cmpl $0x0, 0x74(%rbx)
sete %al
jmp 0x25a7c
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: tdefl_init
tdefl_status tdefl_init(tdefl_compressor *d, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags)
{
  d->m_pPut_buf_func = pPut_buf_func; d->m_pPut_buf_user = pPut_buf_user;
  d->m_flags = (mz_uint)(flags); d->m_max_probes[0] = 1 + ((flags & 0xFFF) + 2) / 3; d->m_greedy_parsing = (flags & TDEFL_GREEDY_PARSING_FLAG) != 0;
  d->m_max_probes[1] = 1 + (((flags & 0xFFF) >> 2) + 2) / 3;
  if (!(flags & TDEFL_NONDETERMINISTIC_PARSING_FLAG)) MZ_CLEAR_OBJ(d->m_hash);
  d->m_lookahead_pos = d->m_lookahead_size = d->m_dict_size = d->m_total_lz_bytes = d->m_lz_code_buf_dict_pos = d->m_bits_in = 0;
  d->m_output_flush_ofs = d->m_output_flush_remaining = d->m_finished = d->m_block_index = d->m_bit_buffer = d->m_wants_to_finish = 0;
  d->m_pLZ_code_buf = d->m_lz_code_buf + 1; d->m_pLZ_flags = d->m_lz_code_buf; d->m_num_flags_left = 8;
  d->m_pOutput_buf = d->m_output_buf; d->m_pOutput_buf_end = d->m_output_buf; d->m_prev_return_status = TDEFL_STATUS_OKAY;
  d->m_saved_match_dist = d->m_saved_match_len = d->m_saved_lit = 0; d->m_adler32 = 1;
  d->m_pIn_buf = NULL; d->m_pOut_buf = NULL;
  d->m_pIn_buf_size = NULL; d->m_pOut_buf_size = NULL;
  d->m_flush = TDEFL_NO_FLUSH; d->m_pSrc = NULL; d->m_src_buf_left = 0; d->m_out_buf_ofs = 0;
  memset(&d->m_huff_count[0][0], 0, sizeof(d->m_huff_count[0][0]) * TDEFL_MAX_HUFF_SYMBOLS_0);
  memset(&d->m_huff_count[1][0], 0, sizeof(d->m_huff_count[1][0]) * TDEFL_MAX_HUFF_SYMBOLS_1);
  return TDEFL_STATUS_OKAY;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq %rsi, (%rdi)
movq %rdx, 0x8(%rdi)
movl %ecx, 0x10(%rdi)
movl %ecx, %esi
andl $0xfff, %esi            # imm = 0xFFF
leal 0x2(%rsi), %eax
movw $0x3, %di
xorl %edx, %edx
divw %di
incl %eax
movl $0xffff, %r8d           # imm = 0xFFFF
andl %r8d, %eax
movl %eax, 0x14(%rbx)
movl %ecx, %eax
shrl $0xe, %eax
andl $0x1, %eax
movl %eax, 0x1c(%rbx)
shrl $0x2, %esi
addl $0x2, %esi
movl %esi, %eax
xorl %edx, %edx
divw %di
incl %eax
andl %r8d, %eax
movl %eax, 0x18(%rbx)
testw %cx, %cx
js 0x260ee
leaq 0x292aa(%rbx), %rdi
movl $0x10000, %edx          # imm = 0x10000
xorl %esi, %esi
callq 0x3170
leaq 0x92aa(%rbx), %rax
leaq 0x92ab(%rbx), %rcx
xorps %xmm0, %xmm0
movups %xmm0, 0x54(%rbx)
movups %xmm0, 0x70(%rbx)
andq $0x0, 0x80(%rbx)
movq %rcx, 0x30(%rbx)
movq %rax, 0x38(%rbx)
movl $0x8, 0x50(%rbx)
leaq 0x392aa(%rbx), %rax
movq %rax, 0x40(%rbx)
movq %rax, 0x48(%rbx)
andl $0x0, 0x6c(%rbx)
andq $0x0, 0x64(%rbx)
movss 0x9e52(%rip), %xmm1     # 0x2ff90
movups %xmm1, 0x20(%rbx)
leaq 0x81ca(%rbx), %rdi
movups %xmm0, 0x88(%rbx)
movups %xmm0, 0x98(%rbx)
andl $0x0, 0xa8(%rbx)
movups %xmm0, 0xb0(%rbx)
andq $0x0, 0xc0(%rbx)
movl $0x280, %edx            # imm = 0x280
xorl %esi, %esi
callq 0x3170
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: tdefl_compress_mem_to_output
mz_bool tdefl_compress_mem_to_output(const void *pBuf, size_t buf_len, tdefl_put_buf_func_ptr pPut_buf_func, void *pPut_buf_user, int flags)
{
  tdefl_compressor *pComp; mz_bool succeeded; if (((buf_len) && (!pBuf)) || (!pPut_buf_func)) return MZ_FALSE;
  pComp = (tdefl_compressor*)MZ_MALLOC(sizeof(tdefl_compressor)); if (!pComp) return MZ_FALSE;
  succeeded = (tdefl_init(pComp, pPut_buf_func, pPut_buf_user, flags) == TDEFL_STATUS_OKAY);
  succeeded = succeeded && (tdefl_compress_buffer(pComp, pBuf, buf_len, TDEFL_FINISH) == TDEFL_STATUS_DONE);
  MZ_FREE(pComp); return succeeded;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r15
testq %rsi, %rsi
setne %al
testq %rdi, %rdi
sete %cl
andb %al, %cl
testq %rdx, %rdx
sete %al
xorl %ebp, %ebp
orb %cl, %al
jne 0x26204
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
movl %r8d, 0x4(%rsp)
movl $0x4df78, %edi          # imm = 0x4DF78
callq 0x3490
testq %rax, %rax
je 0x26204
movq %rax, %r12
movq %rax, %rdi
movq %r13, %rsi
movq %r15, %rdx
movl 0x4(%rsp), %ecx
callq 0x26086
pushq $0x4
popq %rcx
movq %r12, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x2604a
xorl %ebp, %ebp
cmpl $0x1, %eax
sete %bpl
movq %r12, %rdi
callq 0x3430
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: tdefl_compress_mem_to_heap
void *tdefl_compress_mem_to_heap(const void *pSrc_buf, size_t src_buf_len, size_t *pOut_len, int flags)
{
  tdefl_output_buffer out_buf; MZ_CLEAR_OBJ(out_buf);
  if (!pOut_len) return MZ_FALSE; else *pOut_len = 0;
  out_buf.m_expandable = MZ_TRUE;
  if (!tdefl_compress_mem_to_output(pSrc_buf, src_buf_len, tdefl_output_buffer_putter, &out_buf, flags)) return NULL;
  *pOut_len = out_buf.m_size; return out_buf.m_pBuf;
}

// Assembly:
pushq %rbx
subq $0x20, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
testq %rdx, %rdx
je 0x2625d
movl %ecx, %r8d
movq %rdx, %rbx
andq $0x0, (%rdx)
movq %rsp, %rcx
movl $0x1, 0x18(%rcx)
leaq 0x1f(%rip), %rdx        # 0x26265
callq 0x26188
testl %eax, %eax
je 0x2625d
movq (%rsp), %rax
movq %rax, (%rbx)
movq 0x10(%rsp), %rax
jmp 0x2625f
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: tdefl_output_buffer_putter
static mz_bool tdefl_output_buffer_putter(const void *pBuf, int len, void *pUser)
{
  tdefl_output_buffer *p = (tdefl_output_buffer *)pUser;
  size_t new_size = p->m_size + len;
  if (new_size > p->m_capacity)
  {
    size_t new_capacity = p->m_capacity; mz_uint8 *pNew_buf; if (!p->m_expandable) return MZ_FALSE;
    do { new_capacity = MZ_MAX(128U, new_capacity << 1U); } while (new_size > new_capacity);
    pNew_buf = (mz_uint8*)MZ_REALLOC(p->m_pBuf, new_capacity); if (!pNew_buf) return MZ_FALSE;
    p->m_pBuf = pNew_buf; p->m_capacity = new_capacity;
  }
  memcpy((mz_uint8*)p->m_pBuf + p->m_size, pBuf, len); p->m_size = new_size;
  return MZ_TRUE;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq (%rdx), %rdi
movq 0x8(%rdx), %r12
movslq %esi, %r15
leaq (%rdi,%r15), %r13
cmpq %r12, %r13
jbe 0x262c7
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
je 0x262df
movl $0x80, %eax
addq %r12, %r12
cmpq $0x81, %r12
cmovbq %rax, %r12
cmpq %r12, %r13
ja 0x26296
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x3610
testq %rax, %rax
je 0x262df
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rdi
jmp 0x262cb
movq 0x10(%rbx), %rax
addq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3280
movq %r13, (%rbx)
pushq $0x1
popq %rbp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/Alcaro[P]bridges/arlib/deps/miniz.c
// Function: tdefl_compress_mem_to_mem
size_t tdefl_compress_mem_to_mem(void *pOut_buf, size_t out_buf_len, const void *pSrc_buf, size_t src_buf_len, int flags)
{
  tdefl_output_buffer out_buf; MZ_CLEAR_OBJ(out_buf);
  if (!pOut_buf) return 0;
  out_buf.m_pBuf = (mz_uint8*)pOut_buf; out_buf.m_capacity = out_buf_len;
  if (!tdefl_compress_mem_to_output(pSrc_buf, src_buf_len, tdefl_output_buffer_putter, &out_buf, flags)) return 0;
  return out_buf.m_size;
}

// Assembly:
subq $0x28, %rsp
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
testq %rdi, %rdi
je 0x26332
movq %rsp, %rax
movq %rdi, 0x10(%rax)
movq %rsi, 0x8(%rax)
leaq -0xb2(%rip), %r9        # 0x26265
movq %rdx, %rdi
movq %rcx, %rsi
movq %r9, %rdx
movq %rax, %rcx
callq 0x26188
testl %eax, %eax
je 0x26332
movq (%rsp), %rax
jmp 0x26334
xorl %eax, %eax
addq $0x28, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O2/akojo[P]quickfind/match.cpp
// Function: match(__gnu_cxx::__normal_iterator<wstr*, std::vector<wstr, std::allocator<wstr>>>, __gnu_cxx::__normal_iterator<wstr*, std::vector<wstr, std::allocator<wstr>>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
vector<wstr>::iterator match(vector<wstr>::iterator begin, vector<wstr>::iterator end, const string& pattern)
{
    for_each(begin, end, [&](wstr& s) { s.score = smatch(s.str, pattern); });
    auto last = partition(begin, end, [](wstr& s) { return s.score > 0; });
    sort(begin, last);
    return last;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq (%rdx), %rax
movq 0x8(%rdx), %rcx
movq %rax, 0x18(%rsp)
addq %rax, %rcx
movq %rcx, 0x10(%rsp)
movq %rdi, 0x8(%rsp)
movq %rsi, 0x20(%rsp)
cmpq %rsi, %rdi
je 0x2cb7
movq 0x8(%rdi), %rax
movq %rax, 0x30(%rsp)
movq %rdi, 0x28(%rsp)
movq 0x10(%rdi), %r14
xorl %ebx, %ebx
movq 0x18(%rsp), %r12
xorl %r15d, %r15d
pushq $0x1
popq %r13
cmpq 0x10(%rsp), %r12
je 0x2c93
cmpq %rbx, %r14
je 0x2c93
movsbl (%r12), %edi
callq 0x2270
movl %eax, %ebp
movq 0x30(%rsp), %rax
movsbl (%rax,%rbx), %edi
callq 0x2270
cmpl $0x1, %r15d
sete %cl
incl %r15d
xorl %edx, %edx
cmpl %eax, %ebp
sete %dl
pushq $0x1
popq %rax
cmovel %eax, %r15d
addq %rdx, %r12
andb %cl, %dl
movzbl %dl, %eax
addl %eax, %r13d
incq %rbx
jmp 0x2c45
cmpq 0x10(%rsp), %r12
movl $0x0, %eax
cmovnel %eax, %r13d
movq 0x28(%rsp), %rdi
movl %r13d, (%rdi)
addq $0x28, %rdi
movq 0x20(%rsp), %rsi
jmp 0x2c1c
movq 0x8(%rsp), %r15
cmpq %rsi, %r15
je 0x2cfa
cmpl $0x0, (%r15)
jle 0x2ccd
addq $0x28, %r15
jmp 0x2cbc
addq $-0x28, %rsi
cmpq %r15, %rsi
je 0x2cfa
leaq -0x28(%rsi), %r12
cmpl $0x0, (%rsi)
movq %r12, %rsi
jle 0x2cd1
addq $0x28, %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x2d19
addq $0x28, %r15
movq %r12, %rsi
jmp 0x2cbc
movq 0x8(%rsp), %rdi
movq %r15, %rsi
callq 0x2d7c
movq %r15, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/akojo[P]quickfind/term.cpp
// Function: Term::Term(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
Term::Term(const string& ttyName)
{
    tty = fopen(ttyName.c_str(), "r+");
    if (!tty)
        throw invalid_argument("bad tty");
    setbuf(tty, nullptr);

    int fd = fileno(tty);
    if (tcgetattr(fd, &old_termios) < 0)
        throw runtime_error("failed to read terminal parameters");

    struct termios new_termios = old_termios;
    new_termios.c_lflag &= ~(ECHO | ICANON | IEXTEN | ISIG);
    if (tcsetattr(fd, TCSAFLUSH, &new_termios) < 0) {
        throw runtime_error(string("failed to set terminal parameters: ") + strerror(errno));
    }
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x90, %rsp
movq %rdi, %rbx
movq (%rsi), %rdi
leaq 0xb90(%rip), %rsi       # 0x4054
callq 0x21e0
movq %rax, (%rbx)
testq %rax, %rax
je 0x353b
movq %rax, %rdi
xorl %esi, %esi
callq 0x2250
movq (%rbx), %rdi
callq 0x21a0
movl %eax, %ebp
addq $0x8, %rbx
movl %eax, %edi
movq %rbx, %rsi
callq 0x21c0
testl %eax, %eax
js 0x3565
movups (%rbx), %xmm0
movups 0x10(%rbx), %xmm1
movups 0x20(%rbx), %xmm2
movups 0x2c(%rbx), %xmm3
leaq 0x50(%rsp), %rdx
movaps %xmm0, (%rdx)
movups %xmm3, 0x2c(%rdx)
movaps %xmm2, 0x20(%rdx)
movaps %xmm1, 0x10(%rdx)
andl $0xffff7ff4, 0xc(%rdx)  # imm = 0xFFFF7FF4
pushq $0x2
popq %rsi
movl %ebp, %edi
callq 0x2210
testl %eax, %eax
js 0x3595
addq $0x90, %rsp
popq %rbx
popq %r14
popq %rbp
retq
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %rbx
leaq 0xb0a(%rip), %rsi       # 0x4057
movq %rax, %rdi
callq 0x2300
movq 0x3a74(%rip), %rsi      # 0x6fd0
movq 0x3a5d(%rip), %rdx      # 0x6fc0
jmp 0x358d
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %rbx
leaq 0xae8(%rip), %rsi       # 0x405f
movq %rax, %rdi
callq 0x2090
movq 0x3a6a(%rip), %rsi      # 0x6ff0
movq 0x3a23(%rip), %rdx      # 0x6fb0
movq %rbx, %rdi
callq 0x22c0
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %rbx
leaq 0xadb(%rip), %rsi       # 0x4082
leaq 0x10(%rsp), %rdi
leaq 0xf(%rsp), %rdx
callq 0x284e
callq 0x2030
movl (%rax), %edi
callq 0x2070
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x37a9
movb $0x1, %bpl
leaq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x22a0
xorl %ebp, %ebp
movq 0x3a03(%rip), %rsi      # 0x6ff0
movq 0x39bc(%rip), %rdx      # 0x6fb0
movq %rbx, %rdi
callq 0x22c0
movq %rax, %r14
leaq 0x30(%rsp), %rdi
callq 0x20c0
jmp 0x3611
movq %rax, %r14
movb $0x1, %bpl
leaq 0x10(%rsp), %rdi
callq 0x20c0
testb %bpl, %bpl
jne 0x3629
jmp 0x3631
jmp 0x3626
jmp 0x3626
movq %rax, %r14
movq %rbx, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x22d0
nop
// File: /workspace/github_cpp_makefile_star2_O2/akojo[P]quickfind/term.cpp
// Function: Term::getchar()
int Term::getchar()
{
    int i;
    i = getc(tty);
    if (i == 0)
        return -1;
    if (i < 0)
        throw runtime_error("read error");
    return i;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %rdi
callq 0x2060
testl %eax, %eax
je 0x36c8
jns 0x36cb
pushq $0x10
popq %rdi
callq 0x20e0
movq %rax, %rbx
leaq 0xa07(%rip), %rsi       # 0x40b1
movq %rax, %rdi
callq 0x2090
movq 0x3937(%rip), %rsi      # 0x6ff0
movq 0x38f0(%rip), %rdx      # 0x6fb0
movq %rbx, %rdi
callq 0x22c0
pushq $-0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x2110
movq %r14, %rdi
callq 0x22d0
// File: /workspace/github_cpp_makefile_star2_O2/akojo[P]quickfind/prompt.cpp
// Function: Prompt::handle_key(Term::Key)
bool Prompt::handle_key(const Term::Key key)
{
    bool reset_selection = true;

    if (isprint(key)) {
        input.push_back(key);
    } else if (input.length() > 0) {
        if (key == Term::DEL || key == Term::BACKSPACE) {
            input.pop_back();
        } else if (key == Term::CTRL_U) {
            input.clear();
        }
        reset_selection = false;
    } else {
        reset_selection = false;
    }
    tty.move_to_col(1);
    tty.erase_line(Term::FORWARD);
    tty.puts(prompt + input);
    return reset_selection;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebp
movq %rdi, %r14
movl %esi, %edi
callq 0x22e0
movl %eax, %ebx
leaq 0x68(%r14), %r15
testl %eax, %eax
je 0x391a
movsbl %bpl, %esi
movq %r15, %rdi
callq 0x2140
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x376e
movq %r14, %rdi
xorl %esi, %esi
callq 0x3796
leaq 0x48(%r14), %rsi
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0x3993
movq %r14, %rdi
movq %r12, %rsi
callq 0x3658
testl %ebx, %ebx
setne %bl
movq %rsp, %rdi
callq 0x20c0
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x70(%r14)
je 0x38cc
cmpl $0x7f, %ebp
je 0x3930
cmpl $0x15, %ebp
je 0x393a
cmpl $0x8, %ebp
jne 0x38cc
movq %r15, %rdi
callq 0x21f0
jmp 0x38cc
andq $0x0, 0x70(%r14)
movq 0x68(%r14), %rax
movb $0x0, (%rax)
jmp 0x38cc
movq %rax, %rbx
movq %rsp, %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x22d0
// File: /workspace/github_cpp_makefile_star2_O2/xzebra[P]function-plotter/main.cpp
// Function: checkError(int, int)
bool checkError(int argc, int i) {
    if(i+1 >= argc) {
        std::cout << "Args error" << std::endl;
        return true;
    }
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movl %edi, %r14d
incl %ebx
cmpl %edi, %ebx
jl 0x24a9
movq 0x5b3b(%rip), %rdi      # 0x7fd0
leaq 0x2b7c(%rip), %rsi      # 0x5018
callq 0x2180
movq %rax, %rdi
callq 0x20d0
cmpl %r14d, %ebx
setge %al
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O2/xzebra[P]function-plotter/plot.cpp
// Function: Graph::Plot(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Graph::Plot(std::string infix) {
    Operation *op = mathParser.toPostfix(infix);
    fillValues(op);
    plot();
    clearMemory();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0xf8(%rdi), %r14
leaq -0x38(%rbp), %r15
movq %r15, %rdi
callq 0x2200
movq %r14, %rdi
movq %r15, %rsi
callq 0x331c
movq %rax, %r14
leaq -0x38(%rbp), %rdi
callq 0x20c0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2924
movq %rbx, %rdi
callq 0x2a4a
movq %rbx, %rdi
callq 0x2c30
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2290
// File: /workspace/github_cpp_makefile_star2_O2/xzebra[P]function-plotter/plot.cpp
// Function: Graph::fillValues(Operation*)
void Graph::fillValues(Operation *op) {
    for(int i = 0; i < size+size+1; ++i) {
        // Give each variable a value
        for(int j = 0; j < op->v_values.size(); j++) {
            op->v_values[j] = (i - (size)) * step;
        }
        // EQUATION
        std::string postfix_replaced = replaceVars(op);
        double value = mathParser.Solve(postfix_replaced);
        /// EQUATION
        value = value/step;
        values[i] = int(round(value));
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xf8(%rdi), %rax
movq %rax, -0x30(%rbp)
xorl %r15d, %r15d
leaq -0x78(%rbp), %r12
leaq -0x58(%rbp), %r13
movslq (%r14), %rdx
leaq (%rdx,%rdx), %rax
cmpq %rax, %r15
jg 0x2a18
movq 0x38(%rbx), %rax
movq 0x40(%rbx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movl %r15d, %esi
subl %edx, %esi
cvtsi2sd %esi, %xmm0
xorl %edx, %edx
cmpq %rdx, %rcx
je 0x2994
movsd 0x8(%r14), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rax,%rdx,8)
incq %rdx
jmp 0x297b
movq %r12, %rdi
movq %rbx, %rdx
callq 0x30cc
movq %r13, %rdi
movq %r12, %rsi
callq 0x2200
movq -0x30(%rbp), %rdi
movq %r13, %rsi
callq 0x38a4
movsd %xmm0, -0x38(%rbp)
movq %r13, %rdi
callq 0x20c0
movsd -0x38(%rbp), %xmm1
divsd 0x8(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x29eb
addsd 0x2670(%rip), %xmm1     # 0x5050
movapd %xmm1, %xmm0
callq 0x2050
jmp 0x29fc
addsd 0x2655(%rip), %xmm1     # 0x5048
movapd %xmm1, %xmm0
callq 0x2270
cvttsd2si %xmm0, %eax
movq 0x10(%r14), %rcx
movl %eax, (%rcx,%r15,4)
movq %r12, %rdi
callq 0x20c0
incq %r15
jmp 0x2951
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2a38
movq %rax, %rbx
leaq -0x58(%rbp), %rdi
callq 0x20c0
leaq -0x78(%rbp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2290
nop
// File: /workspace/github_cpp_makefile_star2_O2/xzebra[P]function-plotter/plot.cpp
// Function: Graph::Loop(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Graph::Loop(std::string infix) {
    Operation *op = mathParser.toPostfix(infix);
    double t = 0;
    for(;;) {
        fillValues(op, t);
        plot();
        t += 0.01;
        const int t100 = t * 100;
        sleep(100);
        std::cout << "t = " << t << (t100 % 10 == 0 ? " " : "") << " s " <<  std::endl;
        cls(3);
    }
    clearMemory();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0xf8(%rdi), %r14
leaq -0x50(%rbp), %r15
movq %r15, %rdi
callq 0x2200
movq %r14, %rdi
movq %r15, %rsi
callq 0x331c
movq %rax, %r14
leaq -0x50(%rbp), %rdi
callq 0x20c0
xorps %xmm0, %xmm0
movsd %xmm0, -0x30(%rbp)
leaq 0x23e2(%rip), %r15      # 0x5075
pushq $0x3
popq %r12
movq %rbx, %rdi
movq %r14, %rsi
movsd -0x30(%rbp), %xmm0
callq 0x2d50
movq %rbx, %rdi
callq 0x2a4a
movsd -0x30(%rbp), %xmm0
addsd 0x23a4(%rip), %xmm0     # 0x5060
movsd %xmm0, -0x30(%rbp)
mulsd 0x239f(%rip), %xmm0     # 0x5068
cvttsd2si %xmm0, %r13d
pushq $0x64
popq %rsi
callq 0x2e94
movq 0x52f3(%rip), %rdi      # 0x7fd0
leaq 0x238c(%rip), %rsi      # 0x5070
callq 0x2180
movq %rax, %rdi
movsd -0x30(%rbp), %xmm0
callq 0x2250
movq %rax, %rdi
movl %r13d, %eax
cltd
pushq $0xa
popq %rcx
idivl %ecx
leaq 0x2394(%rip), %rsi      # 0x509d
testl %edx, %edx
je 0x2d14
leaq 0x238a(%rip), %rsi      # 0x509e
callq 0x2180
movq %rax, %rdi
movq %r15, %rsi
callq 0x2180
movq %rax, %rdi
callq 0x20d0
movq %rbx, %rdi
movl %r12d, %esi
callq 0x2ec0
jmp 0x2c97
movq %rax, %rbx
leaq -0x50(%rbp), %rdi
callq 0x20c0
movq %rbx, %rdi
callq 0x2290