LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/Alcaro[P]bridges/game.cpp
// Function: (anonymous namespace)::birds::reset(bool)
void reset(bool force)
	{
		if (frame < -800/spd) return; // approaching but not on the screen = leave them there, so they appear earlier
		
		// first, pick a center for the birds, anywhere in the screen that's at least 100px from the edge
		xmid = 100 + g_rand(640-200);
		ymid = 100 + g_rand(480-200);
		
		// then pick a random direction
		angle = (float)g_rand.rand32()/65536/65536 * M_PI*2;
		
		frame = -800/spd;
		if (!force)
		{
			frame -= 60*60 + g_rand(60*60);
		}
	}

// Assembly:
cmpl $0xffffff38, 0xc(%rdi)  # imm = 0xFFFFFF38
jl 0x22107
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
leaq 0x243a9(%rip), %r14     # 0x46410
movq %r14, %rdi
movl $0x1b8, %esi            # imm = 0x1B8
callq 0x16b6e
addl $0x64, %eax
cvtsi2ss %rax, %xmm0
movss %xmm0, (%rbx)
movq %r14, %rdi
movl $0x118, %esi            # imm = 0x118
callq 0x16b6e
addl $0x64, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movss %xmm0, 0x4(%rbx)
movq %r14, %rdi
callq 0x16860
movl %eax, %eax
xorps %xmm0, %xmm0
cvtsi2ss %rax, %xmm0
movss 0xfc2d(%rip), %xmm1     # 0x31ce4
mulss %xmm1, %xmm0
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
mulsd 0xff1d(%rip), %xmm0     # 0x31fe8
addsd %xmm0, %xmm0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, 0x8(%rbx)
movl $0xffffff38, 0xc(%rbx)  # imm = 0xFFFFFF38
testb %bpl, %bpl
jne 0x22103
leaq 0x24325(%rip), %rdi     # 0x46410
movl $0xe10, %esi            # imm = 0xE10
callq 0x16b6e
movl 0xc(%rbx), %ecx
subl %eax, %ecx
addl $0xfffff1f0, %ecx       # imm = 0xFFFFF1F0
movl %ecx, 0xc(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/Alcaro[P]bridges/game.cpp
// Function: (anonymous namespace)::game_impl::background()
void background()
	{
		if (tileset == 0)
		{
			out.insert_tile(0, 0, 640, 480, ((bgpos/15) & 1) ? resources::bg0b : resources::bg0);
		}
		if (tileset == 1)
		{
			int off = (bgpos/6)%21;
			out.insert_tile(0, 0, 640, 480, resources::bg1, off, 21-off);
		}
		if (tileset == 2)
		{
			out.insert_tile(0, 0, 640, 480, resources::bg2);
		}
		
		bgpos++;
		//must be a multiple of
		//- 30 (bg0 animation)
		//- 6*21 (bg1 animation)
		//- 90 (castle flag animation)
		bgpos %= 630;
	}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x48(%rdi), %eax
testl %eax, %eax
jne 0x2215e
leaq 0x28(%rbx), %rdi
movslq 0x44(%rbx), %rax
imulq $-0x77777777, %rax, %rcx # imm = 0x88888889
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %eax
shrl $0x1f, %eax
shrl $0x3, %ecx
addl %eax, %ecx
testb $0x1, %cl
jne 0x22140
leaq 0x23f02(%rip), %r9      # 0x46040
jmp 0x22147
leaq 0x23f11(%rip), %r9      # 0x46058
xorl %esi, %esi
xorl %edx, %edx
movl $0x280, %ecx            # imm = 0x280
movl $0x1e0, %r8d            # imm = 0x1E0
callq 0xc52c
movl 0x48(%rbx), %eax
cmpl $0x1, %eax
jne 0x221cb
movslq 0x44(%rbx), %rax
imulq $0x2aaaaaab, %rax, %rax # imm = 0x2AAAAAAB
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
cltq
imulq $0x30c30c31, %rax, %rcx # imm = 0x30C30C31
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x22, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,4), %edx
leal (%rcx,%rdx,4), %ecx
subl %ecx, %eax
leaq 0x28(%rbx), %rdi
movl $0x15, %r10d
subl %eax, %r10d
leaq 0x23ec3(%rip), %r9      # 0x46070
xorl %esi, %esi
xorl %edx, %edx
movl $0x280, %ecx            # imm = 0x280
movl $0x1e0, %r8d            # imm = 0x1E0
pushq %r10
pushq %rax
callq 0xc67e
addq $0x10, %rsp
movl 0x48(%rbx), %eax
cmpl $0x2, %eax
jne 0x221ef
leaq 0x28(%rbx), %rdi
leaq 0x23ead(%rip), %r9      # 0x46088
xorl %esi, %esi
xorl %edx, %edx
movl $0x280, %ecx            # imm = 0x280
movl $0x1e0, %r8d            # imm = 0x1E0
callq 0xc52c
movl 0x44(%rbx), %eax
movl %eax, %ecx
incl %ecx
movslq %ecx, %rcx
imulq $-0x2ff2ff2f, %rcx, %rcx # imm = 0xD00D00D1
shrq $0x20, %rcx
addl %eax, %ecx
incl %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x9, %ecx
addl %edx, %ecx
imull $0x276, %ecx, %ecx      # imm = 0x276
negl %ecx
addl %ecx, %eax
incl %eax
movl %eax, 0x44(%rbx)
popq %rbx
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/Alcaro[P]bridges/gamemap.cpp
// Function: gamemap::reset()
void gamemap::reset()
{
	for (int y=0;y<height;y++)
	for (int x=0;x<width;x++)
	{
		island& here = map[y][x];
		
		here.totbridges = 0;
		if (here.bridges[0] <= 2) here.bridges[0] = 0;
		if (here.bridges[1] <= 2) here.bridges[1] = 0;
		if (here.bridges[2] <= 2) here.bridges[2] = 0;
		if (here.bridges[3] <= 2) here.bridges[3] = 0;
	}
}

// Assembly:
movslq 0x4(%rdi), %rax
testq %rax, %rax
jle 0x23149
movl (%rdi), %ecx
addq $0x17, %rdi
movq %rcx, %rdx
shlq $0x2, %rdx
leaq (%rdx,%rdx,2), %rdx
xorl %esi, %esi
testl %ecx, %ecx
jle 0x2313a
xorl %r8d, %r8d
movb $0x0, -0xa(%rdi,%r8)
cmpb $0x2, -0x3(%rdi,%r8)
ja 0x23109
movb $0x0, -0x3(%rdi,%r8)
cmpb $0x2, -0x2(%rdi,%r8)
ja 0x23117
movb $0x0, -0x2(%rdi,%r8)
cmpb $0x2, -0x1(%rdi,%r8)
ja 0x23125
movb $0x0, -0x1(%rdi,%r8)
cmpb $0x2, (%rdi,%r8)
ja 0x23131
movb $0x0, (%rdi,%r8)
addq $0xc, %r8
cmpq %r8, %rdx
jne 0x230f5
incq %rsi
addq $0x4b0, %rdi            # imm = 0x4B0
cmpq %rax, %rsi
jne 0x230ee
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 %rdi, 0x8(%rsp)
movl (%rsi), %r15d
movq %rsi, (%rsp)
movl 0x4(%rsi), %ebx
leal 0x1(%r15), %eax
imull %ebx, %eax
incl %eax
movslq %eax, %rdx
leaq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x3170
testl %ebx, %ebx
jle 0x234a2
movq (%rsp), %rax
leaq 0xe(%rax), %rdx
xorl %esi, %esi
xorl %r13d, %r13d
movq (%rsp), %r12
testl %r15d, %r15d
jle 0x23473
movq %rdx, 0x10(%rsp)
movq %rdx, %rbx
xorl %ebp, %ebp
movq %rsi, 0x18(%rsp)
movswq (%rbx), %rax
leaq (%rsi,%rbp), %rcx
movl %eax, %eax
cmpq %rax, %rcx
jne 0x23439
movzbl -0x2(%rbx), %ecx
cmpl $0xff, %ecx
je 0x233eb
cmpl $0xfe, %ecx
jne 0x233f0
movb $0x23, %r14b
jmp 0x23405
movb $0x20, %r14b
jmp 0x23405
cmpb $0x9, %cl
jg 0x233fa
addb $0x30, %cl
jmp 0x23402
cmpb $0x23, %cl
ja 0x2344e
addb $0x37, %cl
movl %ecx, %r14d
movq %r12, %rdi
leaq 0x20(%rsp), %rsi
movl %r15d, %edx
movl %ebp, %ecx
movl %r13d, %r8d
callq 0x234d7
movl (%r12), %r15d
leal 0x1(%r15), %eax
imull %r13d, %eax
cltq
addq %rsp, %rax
addq $0x20, %rax
movb %r14b, (%rbp,%rax)
movq 0x18(%rsp), %rsi
incq %rbp
movslq %r15d, %rax
addq $0xc, %rbx
cmpq %rax, %rbp
jl 0x233c3
jmp 0x23467
addb $-0x50, %cl
movb $-0x1, %r14b
cmpb $0x3, %cl
ja 0x23405
shlb $0x3, %cl
movl $0x67796272, %r14d      # imm = 0x67796272
shrl %cl, %r14d
jmp 0x23405
movq (%rsp), %rax
movl 0x4(%rax), %ebx
movq 0x10(%rsp), %rdx
leal 0x1(%r15), %eax
movl %r13d, %ecx
imull %eax, %ecx
addl %r15d, %ecx
movslq %ecx, %rax
movb $0xa, 0x20(%rsp,%rax)
incq %r13
movslq %ebx, %rax
addq $0x64, %rsi
addq $0x4b0, %rdx            # imm = 0x4B0
cmpq %rax, %r13
jl 0x233ab
leaq 0x20(%rsp), %r14
movq %r14, %rdi
callq 0x30f0
movq 0x8(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x194bc
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_O3/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), %eax
movl %ecx, 0x34(%rsp)
movslq %ecx, %rcx
leal 0x1(%rcx), %edx
leal -0x1(%rcx), %esi
movslq %r8d, %r13
movslq %eax, %rbp
movl %edx, 0x30(%rsp)
movslq %edx, %rax
movl %esi, 0x2c(%rsp)
movslq %esi, %rsi
movq %r13, %r9
imulq %rbp, %r9
addq %r9, %rsi
addq %rax, %r9
imulq $0x4b0, %r13, %rax      # imm = 0x4B0
leaq (%rcx,%rcx,2), %rdx
leaq (%rax,%rdx,4), %rax
movq %rdi, 0x18(%rsp)
leaq (%rdi,%rax), %rbx
addq $0x17, %rbx
leaq -0x1(%r13), %r14
imulq %rbp, %r14
addq %rcx, %r14
incq %r13
imulq %rbp, %r13
addq %rcx, %r13
cmpb $0x3, -0x3(%rbx)
jne 0x23591
cmpb $0x0, (%r15,%r9)
jne 0x23591
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 0x234d7
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %rsi
cmpb $0x3, -0x2(%rbx)
jne 0x235d2
cmpb $0x0, (%r15,%r14)
jne 0x235d2
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 0x234d7
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %rsi
cmpb $0x3, -0x1(%rbx)
jne 0x23611
cmpb $0x0, (%r15,%rsi)
jne 0x23611
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 0x234d7
movq 0x8(%rsp), %r9
movq 0x10(%rsp), %rsi
cmpb $0x3, (%rbx)
jne 0x2363d
cmpb $0x0, (%r15,%r13)
jne 0x2363d
movb $0x5e, (%r15,%r13)
incl %r12d
addq %rbp, %rsi
addq %rbp, %r9
addq $0x4b0, %rbx            # imm = 0x4B0
addq %rbp, %r14
addq %rbp, %r13
jmp 0x23552
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
movq 0x10(%rsi), %rax
movq %rax, 0x10(%rdi)
movups (%rsi), %xmm0
movups %xmm0, (%rdi)
movups 0x18(%rsi), %xmm0
movups %xmm0, 0x18(%rdi)
movq 0x28(%rsi), %rax
movq %rax, 0x28(%rdi)
testq %rax, %rax
jne 0x23739
leaq 0x30(%rbx), %rdi
xorl %esi, %esi
callq 0x3560
leaq 0x58(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x32c0
movaps 0xef71(%rip), %xmm0     # 0x32610
movups %xmm0, 0x84(%rbx)
movabsq $0xf423f00000000, %rax  # imm = 0xF423F00000000
movq %rax, 0xa0(%rbx)
movb $0x0, 0xa8(%rbx)
callq 0x1bc48
shlq $0x10, %rax
movq %rax, 0x78(%rbx)
callq 0x1bbf2
movl 0x14(%r14), %ecx
imulq $0x10624dd3, %rcx, %rcx # imm = 0x10624DD3
shrq $0x25, %rcx
cmpl %ecx, %eax
cmovbl %eax, %ecx
cmpl $0x20, %ecx
movl $0x20, %eax
cmovbl %ecx, %eax
cmpl $0x1, %eax
adcl $0x0, %eax
movl %eax, 0x80(%rbx)
decb %al
movb %al, 0xa9(%rbx)
leaq 0x265e(%rip), %rax      # 0x25d68
movq %rsp, %r14
movq %rax, 0x8(%r14)
movq %rbx, (%r14)
movq $0x0, 0x10(%r14)
movq %r14, %rdi
movl $0x3, %esi
callq 0x1bb00
movq %r14, %rdi
callq 0xac38
addq $0x18, %rsp
popq %rbx
popq %r14
retq
incq (%rax)
jmp 0x23680
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x237b0
leaq 0x25e8(%rip), %rax      # 0x25d68
leaq 0x20(%rsp), %r15
movq %rax, 0x8(%r15)
movq %r14, (%r15)
movq $0x0, 0x10(%r15)
movq %r15, %rdi
movl $0x3, %esi
callq 0x1bb00
movq %r15, %rdi
callq 0xac38
decb 0xa9(%r14)
movq %rbx, %rdi
callq 0x3250
leaq 0x8(%rsp), %r15
leaq 0x20(%rsp), %rdx
movq %r14, %rdi
movq %r15, %rsi
callq 0x238ca
movq %rbx, %rdi
callq 0x3520
movq %r14, %rdi
movq %r15, %rsi
callq 0x25320
cmpb $0x0, 0xa8(%r14)
jne 0x23857
leaq 0x8(%rsp), %r15
leaq 0x20(%rsp), %r12
cmpl $0x0, 0x84(%r14)
movl 0x80(%r14), %eax
je 0x2380b
cmpl 0x14(%r14), %eax
jae 0x23857
incl %eax
movl %eax, 0x80(%r14)
movq 0x78(%r14), %rax
incq %rax
movq %rax, 0x78(%r14)
movq %rax, 0x8(%rsp)
movq %rbx, %rdi
callq 0x3250
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x238ca
movq %rbx, %rdi
callq 0x3520
movq %r14, %rdi
movq %r15, %rsi
callq 0x25320
cmpb $0x0, 0xa8(%r14)
je 0x237f4
movl 0x80(%r14), %eax
cmpl 0x88(%r14), %eax
jne 0x23873
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_O3/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 0x2389f
movq 0x78(%rdi), %rax
incq %rax
movq %rax, 0x78(%rdi)
movq %rax, (%rdx)
movb $0x1, %al
retq
cmpb $0x0, 0xa8(%rdi)
jne 0x238bc
cmpl $0x0, 0x84(%rdi)
movl 0x80(%rdi), %eax
je 0x238bf
cmpl 0x14(%rdi), %eax
jb 0x238bf
xorl %eax, %eax
retq
incl %eax
movl %eax, 0x80(%rdi)
jmp 0x2388e
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 %rbx
subq $0x18, %rsp
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x10(%rsp), %rdi
movq %rdx, -0x10(%rdi)
movq %r15, -0x8(%rdi)
movq $0x0, (%rdi)
callq 0x16828
movq (%rbx), %rsi
movq %rsp, %rdi
callq 0x23a28
movb $0x1, 0x8(%rbx)
movb $0x1, %al
cmpl $0x1, 0x8(%r14)
jg 0x23925
movzbl (%r15), %ecx
movzbl 0x1(%r15), %edx
imull %ecx, %edx
cmpl $0x5, %edx
jb 0x23925
movb $0x0, 0x8(%rbx)
xorl %eax, %eax
cmpb $0x0, 0xc(%r15)
jne 0x23944
movq %r14, %rdi
callq 0x26574
testb %al, %al
je 0x23941
movb $0x0, 0x8(%rbx)
jmp 0x23a1c
movb 0x8(%rbx), %al
testb $0x1, %al
je 0x23a1c
movq %r14, %rdi
callq 0x26d3a
movl %eax, 0xc(%rbx)
movl $0x0, 0x10(%rbx)
cmpb $0x0, 0x8(%r15)
jne 0x23a1c
movl 0x4(%r14), %eax
testl %eax, %eax
jle 0x239fc
movl (%r14), %ecx
addq $0xc, %r14
xorl %edx, %edx
xorl %esi, %esi
xorl %edi, %edi
movl %edx, %r8d
movl %ecx, %r9d
testl %ecx, %ecx
jle 0x239ea
movzwl %r8w, %r10d
shrl $0x2, %r10d
imull $0x147b, %r10d, %r10d   # imm = 0x147B
shrl $0x11, %r10d
imull $0x64, %r10d, %r11d
movl %r8d, %ebp
subl %r11d, %ebp
movzwl %bp, %r11d
imulq $0x4b0, %r10, %r10      # imm = 0x4B0
addq %r14, %r10
leaq (%r11,%r11,2), %r11
cmpb $0x0, (%r10,%r11,4)
js 0x239e2
leaq (%r10,%r11,4), %r10
xorl %r11d, %r11d
cmpb $0x1, 0x4(%r10)
sete %r11b
xorl %ebp, %ebp
cmpb $0x1, 0x7(%r10)
sete %bpl
addl %r11d, %esi
addl %ebp, %esi
incl %r8d
decl %r9d
jne 0x2398c
incl %edi
addl $0x64, %edx
cmpl %eax, %edi
jne 0x23982
movl %esi, %eax
cvtsi2ss %rax, %xmm0
jmp 0x239ff
xorps %xmm0, %xmm0
movss 0xec69(%rip), %xmm1     # 0x32670
callq 0x35b0
mulss 0xec60(%rip), %xmm0     # 0x32674
cvttss2si %xmm0, %rax
addl %eax, 0x10(%rbx)
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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 0x253b4
incl 0x84(%rdi)
movl 0xc(%rsi), %eax
movl 0x90(%rdi), %ecx
cmpl %ecx, %eax
jbe 0x2534b
movl %eax, 0x90(%rdi)
movl %eax, %ecx
movl 0x8c(%rdi), %edx
cmpl %edx, %eax
jae 0x2535d
movl %eax, 0x8c(%rdi)
movl %eax, %edx
subl %edx, %ecx
jbe 0x253b5
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 0x253b8
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_O3/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
subq $0x20, %rsp
movq %rsi, %r15
movq %rdi, %r14
callq 0x2546a
movq %rax, %rbx
testq %rax, %rax
je 0x2545a
leaq 0x18(%rsp), %rdi
movq %r15, -0x10(%rdi)
movq %r14, -0x8(%rdi)
movq $0x0, (%rdi)
callq 0x16828
leaq 0x8(%rsp), %rdi
movq %rbx, %rsi
callq 0x23a28
testq %rbx, %rbx
setne %al
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x25d4c
leaq 0x30(%r15), %r14
movq %r14, %rdi
callq 0x3520
cmpl $0x0, 0x84(%r15)
je 0x2549d
movq 0x98(%r15), %r15
jmp 0x254a0
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_O3/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:
movl %esi, %eax
movl %eax, %r8d
movzwl %ax, %ecx
movl %ecx, %eax
shll $0x4, %eax
movzwl 0x8(%rdi,%rax), %eax
cmpw %ax, %cx
jne 0x28694
cmpw %si, %r8w
je 0x286c6
movzwl %si, %eax
shll $0x4, %eax
movzwl 0x8(%rdi,%rax), %esi
movw %r8w, 0x8(%rdi,%rax)
cmpw %r8w, %si
jne 0x286af
movl %edx, %eax
movl %eax, %r9d
movzwl %ax, %esi
movl %esi, %eax
shll $0x4, %eax
movzwl 0x8(%rdi,%rax), %eax
cmpw %ax, %si
jne 0x286c8
cmpw %dx, %r9w
je 0x286fa
movzwl %dx, %eax
shll $0x4, %eax
movzwl 0x8(%rdi,%rax), %edx
movw %r9w, 0x8(%rdi,%rax)
cmpw %r9w, %dx
jne 0x286e3
movb $0x1, %al
cmpw %r9w, %r8w
jne 0x28703
retq
shll $0x4, %ecx
shll $0x4, %esi
movzwl 0xc(%rdi,%rcx), %edx
shll $0x4, %edx
movw %r9w, 0xa(%rdi,%rdx)
movzwl 0xc(%rdi,%rsi), %edx
movl %edx, %r9d
shll $0x4, %r9d
movw %r8w, 0xa(%rdi,%r9)
movw %dx, 0xc(%rdi,%rcx)
movw %r8w, 0x8(%rdi,%rsi)
movzwl 0xe(%rdi,%rcx), %r8d
cmpw $0x50, %r8w
setb %r9b
movzwl 0xe(%rdi,%rsi), %edx
cmpw $0x50, %dx
setb %sil
testb %sil, %r9b
jne 0x28702
cmpw %dx, %r8w
je 0x28702
cmpw $0x50, %r8w
jb 0x2876b
cmpw $0x4f, %dx
jbe 0x2876b
xorl %eax, %eax
retq
cmpw %dx, %r8w
jae 0x28702
addq %rcx, %rdi
movw %dx, 0xe(%rdi)
retq
nop
// File: /workspace/github_cpp_makefile_star2_O3/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:
cmpl $0xffff, %edx           # imm = 0xFFFF
je 0x287b9
movl %edx, %ecx
movl %ecx, %eax
movzwl %cx, %r8d
movl %r8d, %ecx
shll $0x4, %ecx
movzwl 0x8(%rdi,%rcx), %ecx
cmpw %cx, %r8w
jne 0x28784
cmpw %dx, %ax
je 0x287bd
movzwl %dx, %ecx
shll $0x4, %ecx
movzwl 0x8(%rdi,%rcx), %edx
movw %ax, 0x8(%rdi,%rcx)
cmpw %ax, %dx
jne 0x287a0
movl %eax, %edx
jmp 0x287bd
movw $0xffff, %dx            # imm = 0xFFFF
movl %esi, %ecx
movl %ecx, %eax
movzwl %cx, %r8d
movl %r8d, %ecx
shll $0x4, %ecx
movzwl 0x8(%rdi,%rcx), %ecx
cmpw %cx, %r8w
jne 0x287bf
cmpw %si, %ax
je 0x287f0
movzwl %si, %ecx
shll $0x4, %ecx
movzwl 0x8(%rdi,%rcx), %esi
movw %ax, 0x8(%rdi,%rcx)
cmpw %ax, %si
jne 0x287db
movl %eax, %ecx
movzwl %cx, %ecx
shll $0x4, %ecx
addq %rdi, %rcx
xorl %esi, %esi
movzwl (%rcx,%rsi,2), %r9d
cmpw $-0x1, %r9w
je 0x2885e
movl %r9d, %r10d
movl %r10d, %r8d
movzwl %r10w, %r11d
movl %r11d, %r10d
shll $0x4, %r10d
movzwl 0x8(%rdi,%r10), %r10d
cmpw %r10w, %r11w
jne 0x2880c
cmpw %r9w, %r8w
je 0x28846
movzwl %r9w, %r10d
shll $0x4, %r10d
movzwl 0x8(%rdi,%r10), %r9d
movw %r8w, 0x8(%rdi,%r10)
cmpw %r8w, %r9w
jne 0x2882c
cmpw %ax, %r8w
jne 0x28854
movw $0xffff, (%rcx,%rsi,2)  # imm = 0xFFFF
jmp 0x2885e
cmpw %dx, %r8w
movw $0xffff, %dx            # imm = 0xFFFF
jne 0x28875
incq %rsi
cmpq $0x4, %rsi
jne 0x287fd
movzwl 0xa(%rcx), %ecx
cmpw %ax, %cx
jne 0x287f2
movw $0xffff, %ax            # imm = 0xFFFF
retq
movzwl (%rcx,%rsi,2), %eax
retq
// File: /workspace/github_cpp_makefile_star2_O3/Alcaro[P]bridges/./arlib/game.h
// Function: gameview* gameview::create<aropengl>(aropengl&, unsigned int, unsigned int, unsigned int, cstring)
static gameview* create(Taropengl& gl, uint32_t width, uint32_t height, uint32_t glflags, cstring windowtitle)
{
#ifndef _WIN32
	uintptr_t window;
	if (!gl.create(width, height, root_parent(), &window, glflags)) return NULL;
	return create_finish(window, width, height, windowtitle);
#else
	// GL only works on child windows on windows
	uintptr_t parent;
	uintptr_t* child;
	gameview* ret = create(width, height, windowtitle, &parent, &child);
	if (!gl.create(width, height, parent, child, glflags)) { delete ret; return NULL; }
	return ret;
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x8(%rsp)
movq %r8, %r14
movl %ecx, %r12d
movl %edx, %ebp
movl %esi, %r15d
movq %rdi, %r13
callq 0xa47a
leaq 0x8(%r13), %rbx
leaq 0x10(%rsp), %rcx
movl %r15d, %edi
movl %ebp, %esi
movq %rax, %rdx
movl %r12d, %r8d
callq 0x16444
leaq 0x7d74(%rip), %rdx      # 0x32f36
movq %r13, %rdi
movq %rax, %rsi
movq %rbx, %rcx
callq 0x167c0
testb %al, %al
je 0x2b1ed
movq 0x10(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
movq %r14, %rcx
movq 0x8(%rsp), %r8
callq 0xa42c
jmp 0x2b1ef
xorl %eax, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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
subq $0x18, %rsp
movq %r8, %r12
movq %rcx, %r13
movq %rdx, %r15
movl %esi, %ebp
movq %rdi, %rbx
movl $0x28, %edi
callq 0x3340
movq %rax, %r14
leaq 0x8(%rax), %rdi
movb $0xf, 0x17(%rax)
xorl %eax, %eax
movb %al, 0x8(%r14)
movl $0x1000001, 0x19(%r14)  # imm = 0x1000001
movb %al, 0x1d(%r14)
leaq 0x1a776(%rip), %rax     # 0x459c0
movq %rax, (%r14)
movq %r12, 0x20(%r14)
leaq 0x8(%rsp), %rax
movq %r15, (%rax)
movq %r13, 0x8(%rax)
movq %r13, %rcx
shrq $0x38, %rcx
xorq $0xf, %rcx
testq %r13, %r13
movl %r13d, %edx
cmovnsq %rcx, %rdx
cmovnsq %rax, %r15
movq %r15, %rsi
callq 0x195fc
movb %bpl, 0x18(%r14)
leaq 0x10(%rbx), %rdi
movq 0x18(%rbx), %r15
leaq 0x1(%r15), %rsi
callq 0x2b320
movq 0x10(%rbx), %rax
leaq (%rax,%r15,8), %rsi
leaq (%rax,%r15,8), %rdi
addq $0x8, %rdi
movq %r15, %rdx
notq %rdx
addq 0x18(%rbx), %rdx
shlq $0x3, %rdx
callq 0x3600
movq 0x10(%rbx), %rax
movq %r14, (%rax,%r15,8)
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2b517
movq %rdx, %r8
movq %rdi, %rcx
shrq $0x10, %rcx
movzwl %di, %edi
testq %rdx, %rdx
je 0x2b510
movq %r8, %rax
shrq $0x4, %rax
movabsq $0x179baa6bb6398b7, %rdx # imm = 0x179BAA6BB6398B7
mulq %rdx
shrq %rdx
imulq $0x15b0, %rdx, %rdx     # imm = 0x15B0
movq %r8, %rax
subq %rdx, %rax
movl $0x80078071, %edx       # imm = 0x80078071
xorl %r9d, %r9d
cmpq $0x8, %rax
jb 0x2b4b8
movzbl (%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x1(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
movzbl 0x2(%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x3(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
movzbl 0x4(%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x5(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
movzbl 0x6(%rsi,%r9), %r10d
addl %edi, %r10d
addl %r10d, %ecx
movzbl 0x7(%rsi,%r9), %edi
addl %r10d, %edi
addl %edi, %ecx
addq $0x8, %r9
leal 0x7(%r9), %r10d
cmpl %eax, %r10d
jb 0x2b44d
addq %r9, %rsi
movq %rax, %r10
subq %r9, %r10
jbe 0x2b4d8
xorl %r9d, %r9d
movzbl (%rsi,%r9), %r11d
addl %r11d, %edi
addl %edi, %ecx
incq %r9
cmpq %r9, %r10
jne 0x2b4c3
addq %r10, %rsi
movl %edi, %r9d
imulq %rdx, %r9
shrq $0x2f, %r9
imull $0xfff1, %r9d, %r9d     # imm = 0xFFF1
subl %r9d, %edi
movl %ecx, %r9d
imulq %rdx, %r9
shrq $0x2f, %r9
imull $0xfff1, %r9d, %r9d     # imm = 0xFFF1
subl %r9d, %ecx
subq %rax, %r8
movl $0x15b0, %eax           # imm = 0x15B0
jne 0x2b444
shll $0x10, %ecx
orl %edi, %ecx
jmp 0x2b51c
movl $0x1, %ecx
movq %rcx, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2b723
movq 0xb0(%rbx), %rcx
subq 0x88(%rbx), %rcx
movq %rcx, (%rax)
movq 0xa0(%rbx), %rax
testq %rax, %rax
je 0x2b783
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 0x2b794
xorl %eax, %eax
cmpl $0x0, 0x74(%rbx)
sete %al
jmp 0x2b796
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/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, %eax
andl $0xfff, %eax            # imm = 0xFFF
imull $0x5556, %eax, %edx     # imm = 0x5556
movl $0xaaac, %esi           # imm = 0xAAAC
addl %esi, %edx
shrl $0x10, %edx
incl %edx
movl %edx, 0x14(%rdi)
movl %ecx, %edx
shrl $0xe, %edx
andl $0x1, %edx
movl %edx, 0x1c(%rdi)
shrl $0x2, %eax
imull $0x5556, %eax, %eax     # imm = 0x5556
addl %esi, %eax
shrl $0x10, %eax
incl %eax
movl %eax, 0x18(%rdi)
testw %cx, %cx
js 0x2cea4
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)
xorl %edx, %edx
movq %rdx, 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)
movl %edx, 0x6c(%rbx)
movq %rdx, 0x64(%rbx)
movss 0xa13d(%rip), %xmm1     # 0x37030
movups %xmm1, 0x20(%rbx)
leaq 0x81ca(%rbx), %rdi
movups %xmm0, 0x88(%rbx)
movups %xmm0, 0x98(%rbx)
movl %edx, 0xa8(%rbx)
movups %xmm0, 0xb0(%rbx)
movq %rdx, 0xc0(%rbx)
movl $0x280, %edx            # imm = 0x280
xorl %esi, %esi
callq 0x3170
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 %r13d, %r13d
orb %cl, %al
jne 0x2cfbb
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
movl %r8d, 0x4(%rsp)
movl $0x4df78, %edi          # imm = 0x4DF78
callq 0x3490
testq %rax, %rax
je 0x2cfbb
movq %rax, %rbp
movq %rax, %rdi
movq %r12, %rsi
movq %r15, %rdx
movl 0x4(%rsp), %ecx
callq 0x2ce44
movq %rbp, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0x4, %ecx
callq 0x2ce08
xorl %r13d, %r13d
cmpl $0x1, %eax
sete %r13b
movq %rbp, %rdi
callq 0x3430
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2d018
movl %ecx, %r8d
movq %rdx, %rbx
movq $0x0, (%rdx)
movq %rsp, %rcx
movl $0x1, 0x18(%rcx)
leaq 0x1f(%rip), %rdx        # 0x2d020
callq 0x2cf3b
testl %eax, %eax
je 0x2d018
movq (%rsp), %rax
movq %rax, (%rbx)
movq 0x10(%rsp), %rax
jmp 0x2d01a
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x2d082
xorl %ebp, %ebp
cmpl $0x0, 0x18(%rbx)
je 0x2d09c
movl $0x80, %eax
addq %r12, %r12
cmpq $0x81, %r12
cmovbq %rax, %r12
cmpq %r12, %r13
ja 0x2d051
movq 0x10(%rbx), %rdi
movq %r12, %rsi
callq 0x3610
testq %rax, %rax
je 0x2d09c
movq %rax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq (%rbx), %rdi
jmp 0x2d086
movq 0x10(%rbx), %rax
addq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3280
movq %r13, (%rbx)
movl $0x1, %ebp
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_O3/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 0x2d0ef
movq %rsp, %rax
movq %rdi, 0x10(%rax)
movq %rsi, 0x8(%rax)
leaq -0xb4(%rip), %r9        # 0x2d020
movq %rdx, %rdi
movq %rcx, %rsi
movq %r9, %rdx
movq %rax, %rcx
callq 0x2cf3b
testl %eax, %eax
je 0x2d0ef
movq (%rsp), %rax
jmp 0x2d0f1
xorl %eax, %eax
addq $0x28, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O3/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 0x3f7c
jns 0x3f81
movl $0x10, %edi
callq 0x20d0
movq %rax, %rbx
leaq 0x1153(%rip), %rsi      # 0x50b1
movq %rax, %rdi
callq 0x20a0
movq 0x3083(%rip), %rsi      # 0x6ff0
movq 0x303c(%rip), %rdx      # 0x6fb0
movq %rbx, %rdi
callq 0x22c0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
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_O3/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 0x425d
movsbl %bpl, %esi
movq %r15, %rdi
callq 0x2140
movq %r14, %rdi
movl $0x1, %esi
callq 0x4024
movq %r14, %rdi
xorl %esi, %esi
callq 0x404c
leaq 0x48(%r14), %rsi
movq %rsp, %r12
movq %r12, %rdi
movq %r15, %rdx
callq 0x42f7
movq %r14, %rdi
movq %r12, %rsi
callq 0x3f0a
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x424b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2180
testl %ebx, %ebx
setne %al
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
cmpq $0x0, 0x70(%r14)
je 0x41fc
cmpl $0x7f, %ebp
je 0x4273
cmpl $0x15, %ebp
je 0x4280
cmpl $0x8, %ebp
jne 0x41fc
movq %r15, %rdi
callq 0x2200
jmp 0x41fc
movq $0x0, 0x70(%r14)
movq 0x68(%r14), %rax
movb $0x0, (%rax)
jmp 0x41fc
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x42b2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x2180
movq %rbx, %rdi
callq 0x22d0
// File: /workspace/github_cpp_makefile_star2_O3/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 %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
leaq 0xf8(%rdi), %r14
leaq -0x30(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x40(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2a4e
movq %r14, %rdi
movq %r15, %rsi
callq 0x3a6e
movq %rax, %r14
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x2b43
callq 0x21a0
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2b8a
movq %rbx, %rdi
callq 0x2cf8
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x2b64
callq 0x2200
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x40(%rbp), %rdi
cmpq %r12, %rdi
je 0x2b82
callq 0x21a0
movq %rbx, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O3/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 $0x48, %rsp
movl (%rdi), %eax
testl %eax, %eax
js 0x2cb5
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xf8(%rdi), %r15
xorl %r12d, %r12d
leaq -0x50(%rbp), %r13
movq 0x38(%rbx), %rcx
movq 0x40(%rbx), %rdx
subq %rcx, %rdx
je 0x2bf7
sarq $0x3, %rdx
movl %r12d, %esi
subl %eax, %esi
xorps %xmm0, %xmm0
cvtsi2sd %esi, %xmm0
cmpq $0x1, %rdx
adcq $0x0, %rdx
xorl %eax, %eax
movsd 0x8(%r14), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, (%rcx,%rax,8)
incq %rax
cmpq %rax, %rdx
jne 0x2be0
leaq -0x70(%rbp), %rdi
movq %rbx, %rdx
callq 0x3770
leaq -0x40(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x70(%rbp), %rsi
movq -0x68(%rbp), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2a4e
movq %r15, %rdi
movq %r13, %rsi
callq 0x427a
movapd %xmm0, %xmm1
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2c49
movsd %xmm1, -0x30(%rbp)
callq 0x21a0
movsd -0x30(%rbp), %xmm1
divsd 0x8(%r14), %xmm1
xorpd %xmm0, %xmm0
ucomisd %xmm1, %xmm0
jbe 0x2c6c
addsd 0x2417(%rip), %xmm1     # 0x5078
movapd %xmm1, %xmm0
callq 0x2060
jmp 0x2c7d
addsd 0x23fc(%rip), %xmm1     # 0x5070
movapd %xmm1, %xmm0
callq 0x2290
cvttsd2si %xmm0, %eax
movq 0x10(%r14), %rcx
movl %eax, (%rcx,%r12,4)
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2c9b
callq 0x21a0
leaq 0x1(%r12), %rcx
movslq (%r14), %rax
movq %rax, %rdx
addq %rax, %rdx
cmpq %rdx, %r12
movq %rcx, %r12
jl 0x2bb9
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
jmp 0x2cde
movq %rax, %rbx
movq -0x50(%rbp), %rdi
leaq -0x40(%rbp), %rax
cmpq %rax, %rdi
je 0x2cde
callq 0x21a0
movq -0x70(%rbp), %rdi
leaq -0x60(%rbp), %rax
cmpq %rax, %rdi
je 0x2cf0
callq 0x21a0
movq %rbx, %rdi
callq 0x22b0
// File: /workspace/github_cpp_makefile_star2_O3/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 $0x38, %rsp
movq %rdi, %rbx
leaq 0xf8(%rdi), %r14
leaq -0x48(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%rsi), %rax
movq 0x8(%rsi), %rdx
addq %rax, %rdx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
movq %rax, %rsi
callq 0x2a4e
movq %r14, %rdi
movq %r15, %rsi
callq 0x3a6e
movq %rax, %r14
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x314d
callq 0x21a0
xorpd %xmm0, %xmm0
movq 0x3e78(%rip), %r15      # 0x6fd0
movq %rbx, %rdi
movq %r14, %rsi
movsd %xmm0, -0x30(%rbp)
callq 0x3270
movq %rbx, %rdi
callq 0x2cf8
movsd -0x30(%rbp), %xmm0
addsd 0x1f0b(%rip), %xmm0     # 0x5088
movsd %xmm0, -0x30(%rbp)
mulsd 0x1f06(%rip), %xmm0     # 0x5090
movsd %xmm0, -0x38(%rbp)
callq 0x2110
movq %rax, %r12
addq $0x186a0, %r12          # imm = 0x186A0
callq 0x2110
cmpq %r12, %rax
jl 0x319e
cvttsd2si -0x38(%rbp), %r13d
movl $0x4, %edx
movq %r15, %rdi
leaq 0x1edb(%rip), %rsi      # 0x5098
callq 0x21d0
movq %r15, %rdi
movsd -0x30(%rbp), %xmm0
callq 0x2270
movq %rax, %r12
imull $0xcccccccd, %r13d, %eax # imm = 0xCCCCCCCD
addl $0x19999998, %eax       # imm = 0x19999998
rorl %eax
xorl %edx, %edx
cmpl $0x19999999, %eax       # imm = 0x19999999
setb %dl
leaq 0x1ed5(%rip), %rsi      # 0x50c6
leaq 0x1ecd(%rip), %rax      # 0x50c5
cmovbq %rax, %rsi
movq %r12, %rdi
callq 0x21d0
movl $0x3, %edx
movq %r12, %rdi
leaq 0x1e8a(%rip), %rsi      # 0x509d
callq 0x21d0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x21b0
movsbl %al, %esi
movq %r12, %rdi
callq 0x2040
movq %rax, %rdi
callq 0x2120
movq %rbx, %rdi
movl $0x3, %esi
callq 0x342a
movsd -0x30(%rbp), %xmm0
jmp 0x3158
movq %rax, %rbx
movq -0x58(%rbp), %rdi
cmpq %r12, %rdi
je 0x3268
callq 0x21a0
movq %rbx, %rdi
callq 0x22b0