LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/auton1[P]motiflocation/random.cpp
// Function: normrnd()
double normrnd(void)
{
	extern long *idum;
	static int iset=0;
	static double gset;
	double fac, r, v1, v2;

	if (iset == 0)
	{
		do
		{
			v1 = 2.0 * ran2() - 1.0;
			v2 = 2.0 * ran2() - 1.0;
			r = v1 * v1 + v2 * v2;
		} while (r >= 1.0);
		
		fac = sqrt(-2.0*log(r) / r);
		gset = v1 * fac;
		iset = 1;
		return v2*fac;
	} 
	else
	{
		iset = 0;
		return gset;
	}
}

// Assembly:
cmpb $0x0, 0x56c2(%rip)      # 0xd410
je 0x7d64
movb $0x0, 0x56b9(%rip)      # 0xd410
movsd 0x56b9(%rip), %xmm1     # 0xd418
jmp 0x7e14
subq $0x18, %rsp
callq 0x7a7b
movapd %xmm0, %xmm1
addsd %xmm0, %xmm1
movsd 0x1a83(%rip), %xmm0     # 0x9800
addsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
callq 0x7a7b
movsd (%rsp), %xmm3
addsd %xmm0, %xmm0
addsd 0x1a64(%rip), %xmm0     # 0x9800
movapd %xmm0, %xmm1
mulsd %xmm0, %xmm1
mulsd %xmm3, %xmm3
addsd %xmm1, %xmm3
ucomisd 0x181c(%rip), %xmm3     # 0x95d0
jae 0x7d68
movsd %xmm0, 0x10(%rsp)
movapd %xmm3, %xmm0
movsd %xmm3, 0x8(%rsp)
callq 0x31d0
mulsd 0x1a35(%rip), %xmm0     # 0x9808
divsd 0x8(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x7de9
sqrtsd %xmm0, %xmm0
jmp 0x7dee
callq 0x31c0
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd %xmm1, 0x5619(%rip)     # 0xd418
movb $0x1, 0x560a(%rip)      # 0xd410
movsd 0x10(%rsp), %xmm1
mulsd %xmm0, %xmm1
addq $0x18, %rsp
movapd %xmm1, %xmm0
retq
// File: /workspace/github_cpp_makefile_star2_O1/auton1[P]motiflocation/random.cpp
// Function: poissrnd(double)
int poissrnd(double xm)
{
	//float gammln(float xx);
	static double sq, alxm, g, oldm=(-1.0);
	double em,t,y;
	
	if (xm < 12.0) { 
		if (xm != oldm) {
			oldm=xm;
			g=exp(-xm); 
		}
		em = -1;
		t=1.0;
		do {
			++em;
			t *= ran2();
		} while (t > g);
	} else { 
		if (xm != oldm) { 
			oldm=xm;
			sq=sqrt(2.0*xm);
			alxm=log(xm);
			g = xm*alxm - gammln(xm + 1.0);
		}
		do {
			do { 
				y=tan(PI * ran2());
				em=sq*y+xm; 
			} while (em < 0.0); 
			em=floor(em); 
			t=0.9*(1.0+y*y)*exp(em*alxm-gammln(em+1.0)-g);
		} while (ran2() > t);
	}
	return (int)em;
}

// Assembly:
subq $0x28, %rsp
movapd %xmm0, %xmm2
movsd 0x177e(%rip), %xmm0     # 0x9830
ucomisd %xmm2, %xmm0
movsd 0x5202(%rip), %xmm0     # 0xd2c0
jbe 0x813b
ucomisd %xmm2, %xmm0
jne 0x80c8
jnp 0x80e9
movsd %xmm2, 0x51f0(%rip)     # 0xd2c0
xorpd 0x1778(%rip), %xmm2     # 0x9850
movapd %xmm2, %xmm0
callq 0x34e0
movsd %xmm0, 0x5347(%rip)     # 0xd430
movsd 0x170f(%rip), %xmm0     # 0x9800
movsd 0x14d7(%rip), %xmm1     # 0x95d0
movsd 0x532f(%rip), %xmm2     # 0xd430
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, (%rsp)
addsd 0x14bc(%rip), %xmm0     # 0x95d0
movsd %xmm0, 0x8(%rsp)
callq 0x7a7b
movsd (%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd 0x10(%rsp), %xmm1
ja 0x8107
jmp 0x827a
ucomisd %xmm2, %xmm0
movapd %xmm2, 0x10(%rsp)
jne 0x8149
jnp 0x81bc
movsd %xmm2, 0x516f(%rip)     # 0xd2c0
movapd %xmm2, %xmm0
addsd %xmm2, %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x8169
sqrtsd %xmm0, %xmm0
jmp 0x8174
callq 0x31c0
movapd 0x10(%rsp), %xmm2
movsd %xmm0, 0x52a4(%rip)     # 0xd420
movapd %xmm2, %xmm0
callq 0x31d0
movsd %xmm0, (%rsp)
movsd %xmm0, 0x5296(%rip)     # 0xd428
movsd 0x1436(%rip), %xmm0     # 0x95d0
addsd 0x10(%rsp), %xmm0
callq 0x7ca4
movsd (%rsp), %xmm1
mulsd 0x10(%rsp), %xmm1
subsd %xmm0, %xmm1
movsd %xmm1, 0x5274(%rip)     # 0xd430
callq 0x7a7b
mulsd 0x166f(%rip), %xmm0     # 0x9838
callq 0x3170
movapd %xmm0, %xmm2
movsd 0x5246(%rip), %xmm0     # 0xd420
mulsd %xmm2, %xmm0
addsd 0x10(%rsp), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm0, %xmm1
ja 0x81bc
movsd %xmm2, (%rsp)
callq 0x3450
movapd %xmm0, %xmm2
movsd (%rsp), %xmm3
mulsd %xmm3, %xmm3
movsd 0x13c3(%rip), %xmm1     # 0x95d0
addsd %xmm1, %xmm3
mulsd 0x1627(%rip), %xmm3     # 0x9840
movsd %xmm3, (%rsp)
addsd %xmm1, %xmm0
movsd 0x51fe(%rip), %xmm1     # 0xd428
movsd %xmm2, 0x8(%rsp)
mulsd %xmm2, %xmm1
movsd %xmm1, 0x20(%rsp)
callq 0x7ca4
movsd 0x20(%rsp), %xmm1
subsd %xmm0, %xmm1
subsd 0x51df(%rip), %xmm1     # 0xd430
movapd %xmm1, %xmm0
callq 0x34e0
mulsd (%rsp), %xmm0
movsd %xmm0, (%rsp)
callq 0x7a7b
ucomisd (%rsp), %xmm0
ja 0x81bc
movsd 0x8(%rsp), %xmm0
cvttsd2si %xmm0, %eax
addq $0x28, %rsp
retq
// File: /workspace/github_cpp_makefile_star2_O1/roberty65[P]bServer/frame/testServer/src/mtServer.cpp
// Function: worker(void*)
static void *worker(void *p)
{
	int fd = (int)(long)p;
	char buf[8192];

	while (true) {
		ssize_t rlen = ::read(fd, buf, sizeof buf);
		if (rlen < 0) {
			if (errno == EAGAIN) continue;
			fprintf(stderr, "socket %d read failed: %m\n", fd);
			break;
		}
		else if (rlen == 0) {
			fprintf(stderr, "socket %d is closed by peer\n", fd);
			break;
		}	

		ssize_t wlen = ::write(fd, buf, rlen);
		if (wlen != rlen) {
			fprintf(stderr, "socket %d write failed: %m\n", fd);
			break;
		}
	}

	close(fd);
	return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2008, %rsp           # imm = 0x2008
movq %rdi, %rbx
movq %rsp, %r15
leaq 0x1e1a(%rip), %r13      # 0x3048
leaq 0x1e2e(%rip), %r14      # 0x3063
leaq 0x1e44(%rip), %rbp      # 0x3080
movl $0x2000, %edx           # imm = 0x2000
movl %ebx, %edi
movq %r15, %rsi
callq 0x1190
testq %rax, %rax
js 0x1269
je 0x127b
movq %rax, %r12
movl %ebx, %edi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1070
cmpq %r12, %rax
je 0x123c
jmp 0x1278
callq 0x1030
cmpl $0xb, (%rax)
je 0x123c
movq %r13, %r14
jmp 0x127b
movq %rbp, %r14
movq 0x3d5e(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x1180
movl %ebx, %edi
callq 0x11f0
xorl %eax, %eax
addq $0x2008, %rsp           # imm = 0x2008
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/roberty65[P]bServer/frame/testServer/src/mtServer.cpp
// Function: main
int main(int argc, char **argv)
{
	if (argc < 2) {
		fprintf(stderr, "Usage: %s host\n", argv[0]);
		exit(1);
	}
	
	const char *host = argv[1];
	int cfd, fd = beyondy::XbsServer(host, 1024);

	if (fd < 0) {
		fprintf(stderr, "listen at %s failed: %m\n", host);
		exit(2);
	}

	while (true) {
		if ((cfd = ::accept(fd, NULL, NULL)) < 0)
			continue;
		pthread_t tid;
		errno = pthread_create(&tid, NULL, worker, (void *)(long)cfd);
		if (errno) {
			fprintf(stderr, "pthread-create failed: %m\n");
			close(cfd);
		}
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x1, %edi
jle 0x1430
movq 0x8(%rsi), %r14
movq %r14, %rdi
movl $0x400, %esi            # imm = 0x400
xorl %edx, %edx
movl $0x3, %ecx
callq 0x18fe
testl %eax, %eax
js 0x1455
movl %eax, %ebx
leaq -0x1c9(%rip), %r14      # 0x1210
movq %rsp, %r15
leaq 0x1c4a(%rip), %r12      # 0x302d
movl %ebx, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1060
testl %eax, %eax
js 0x13e3
movl %eax, %ebp
movl %eax, %ecx
movq %r15, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x11e0
movl %eax, %r13d
callq 0x1030
movl %r13d, (%rax)
testl %r13d, %r13d
je 0x13e3
movq 0x3bc6(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x1180
movl %ebp, %edi
callq 0x11f0
jmp 0x13e3
movq 0x3ba9(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
movq (%rsi), %rdx
leaq 0x1bc0(%rip), %rsi      # 0x3004
xorl %eax, %eax
callq 0x1180
movl $0x1, %edi
callq 0x1150
movq 0x3b84(%rip), %rax      # 0x4fe0
movq (%rax), %rdi
leaq 0x1bae(%rip), %rsi      # 0x3014
movq %r14, %rdx
xorl %eax, %eax
callq 0x1180
movl $0x2, %edi
callq 0x1150
nop
// File: /workspace/github_cpp_makefile_star2_O1/tap3edit[P]tap3xml/tap3xml.cpp
// Function: help()
void help()
{
    cerr << "Copyright (C) 2005-2018 Javier Gutierrez <https://github.com/tap3edit>\n";
    cerr << "Usage: tap3xml -x|-a inputfile [outputfile]\n";
    cerr << "  -x: ASN -> XML\n";
    cerr << "  -a: XML -> ASN\n";
    exit(1);
}

// Assembly:
pushq %rbx
movq 0x175f3(%rip), %rbx     # 0x1dff0
leaq 0xf7be(%rip), %rsi      # 0x161c2
movq %rbx, %rdi
callq 0x42b0
leaq 0xf7f7(%rip), %rsi      # 0x1620a
movq %rbx, %rdi
callq 0x42b0
leaq 0xf815(%rip), %rsi      # 0x16237
movq %rbx, %rdi
callq 0x42b0
leaq 0xf818(%rip), %rsi      # 0x16249
movq %rbx, %rdi
callq 0x42b0
movl $0x1, %edi
callq 0x4380
// File: /workspace/github_cpp_makefile_star2_O1/tap3edit[P]tap3xml/tap3xml.cpp
// Function: get_specfilename[abi:cxx11](TapInfo*)
string get_specfilename(TapInfo *tapinfo)
{
    ostringstream    spec_filename;

    spec_filename << tapinfo->type();
    spec_filename << setw(2) << setfill('0') << tapinfo->version();
    spec_filename << setw(2) << setfill('0') << tapinfo->release();
    spec_filename << ".asn";

    return get_specdir(spec_filename.str());
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x20(%rsp), %rdi
callq 0x4420
movq %rsp, %rdi
movq %r14, %rsi
callq 0x846c
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
leaq 0x20(%rsp), %rdi
callq 0x4340
leaq 0x10(%rsp), %r12
movq -0x10(%r12), %rdi
cmpq %r12, %rdi
je 0x6a9b
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x20(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x30(%rsp,%rcx)
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %r15
addq $0x20, %r15
cmpb $0x0, 0xe1(%r15)
jne 0x6adf
movq %r15, %rdi
movl $0x20, %esi
callq 0x42a0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %r14, %rdi
callq 0x845c
leaq 0x20(%rsp), %rdi
movl %eax, %esi
callq 0x4560
movq 0x20(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x30(%rsp,%rcx)
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %r15
addq $0x20, %r15
cmpb $0x0, 0xe1(%r15)
jne 0x6b3f
movq %r15, %rdi
movl $0x20, %esi
callq 0x42a0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %r14, %rdi
callq 0x8460
leaq 0x20(%rsp), %rdi
movl %eax, %esi
callq 0x4560
leaq 0xf517(%rip), %rsi      # 0x16079
leaq 0x20(%rsp), %rdi
movl $0x4, %edx
callq 0x4340
leaq 0x28(%rsp), %rsi
movq %rsp, %rdi
callq 0x44e0
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x6de3
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x6b9f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x1741a(%rip), %rsi     # 0x1dfc0
leaq 0x20(%rsp), %rdi
callq 0x4170
leaq 0x90(%rsp), %rdi
callq 0x4100
movq %rbx, %rax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x6bf0
jmp 0x6c04
jmp 0x6c01
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c04
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x6c04
jmp 0x6c01
movq %rax, %rbx
movq 0x173b5(%rip), %rsi     # 0x1dfc0
leaq 0x20(%rsp), %rdi
callq 0x4170
leaq 0x90(%rsp), %rdi
callq 0x4100
movq %rbx, %rdi
callq 0x4590
// File: /workspace/github_cpp_makefile_star2_O1/tap3edit[P]tap3xml/tap3xml.cpp
// Function: get_specsuplfilename[abi:cxx11](TapInfo*)
string get_specsuplfilename (TapInfo *tapinfo)
{
    ostringstream    spec_filename;

    spec_filename << "TAP";
    spec_filename << setw(2) << setfill('0') << tapinfo->suplversion();
    spec_filename << setw(2) << setfill('0') << tapinfo->suplrelease();
    spec_filename << ".asn";

    return get_specdir(spec_filename.str());
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x1a0, %rsp            # imm = 0x1A0
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x28(%rsp), %r15
movq %r15, %rdi
callq 0x4420
leaq 0xf55b(%rip), %rsi      # 0x161ab
movl $0x3, %edx
movq %r15, %rdi
callq 0x4340
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x38(%rsp,%rcx)
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %r15
addq $0x28, %r15
cmpb $0x0, 0xe1(%r15)
jne 0x6ca1
movq %r15, %rdi
movl $0x20, %esi
callq 0x42a0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %r14, %rdi
callq 0x8468
leaq 0x28(%rsp), %rdi
movl %eax, %esi
callq 0x4560
movq 0x28(%rsp), %rax
movq -0x18(%rax), %rcx
movq $0x2, 0x38(%rsp,%rcx)
movq -0x18(%rax), %rax
leaq (%rsp,%rax), %r15
addq $0x28, %r15
cmpb $0x0, 0xe1(%r15)
jne 0x6d01
movq %r15, %rdi
movl $0x20, %esi
callq 0x42a0
movb %al, 0xe0(%r15)
movb $0x1, 0xe1(%r15)
movb $0x30, 0xe0(%r15)
movq %r14, %rdi
callq 0x8464
leaq 0x28(%rsp), %rdi
movl %eax, %esi
callq 0x4560
leaq 0xf355(%rip), %rsi      # 0x16079
leaq 0x28(%rsp), %rdi
movl $0x4, %edx
callq 0x4340
leaq 0x30(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x44e0
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x6de3
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d6a
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
movq 0x1724f(%rip), %rsi     # 0x1dfc0
leaq 0x28(%rsp), %rdi
callq 0x4170
leaq 0x98(%rsp), %rdi
callq 0x4100
movq %rbx, %rax
addq $0x1a0, %rsp            # imm = 0x1A0
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dbd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x42e0
jmp 0x6dbd
jmp 0x6dba
movq %rax, %rbx
movq 0x171fc(%rip), %rsi     # 0x1dfc0
leaq 0x28(%rsp), %rdi
callq 0x4170
leaq 0x98(%rsp), %rdi
callq 0x4100
movq %rbx, %rdi
callq 0x4590
// File: /workspace/github_cpp_makefile_star2_O1/tap3edit[P]tap3xml/TapInfo.cpp
// Function: TapInfo::tree(treenode*)
void TapInfo::tree(treenode *tree)
{
    int i;

    _version=_release=_suplversion=_suplrelease=-1;
    _type="ERR";
    _findtreeversion(tree, 0);

    if (_type=="RAP")
    {
        i=_version;
        _version=_suplversion;
        _suplversion=i;

        i=_release;
        _release=_suplrelease;
        _suplrelease=i;

        if ( _suplversion < 0 )
            _suplversion=3;

        if ( _suplrelease < 0 )
            _suplrelease=1;

    }

    if (_type=="ACK" )
    {
        _version=1;
        _release=1;
        _suplversion=3;
        _suplrelease=1;
        _type="RAP";
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r15
movq %rdi, %r14
leaq 0x18(%rdi), %rbx
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x8(%rdi)
movq 0x20(%rdi), %rdx
leaq 0xdddd(%rip), %rcx      # 0x1617c
movl $0x3, %r8d
movq %rbx, %rdi
xorl %esi, %esi
callq 0x44c0
movq %r14, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x7ff8
leaq 0xdde4(%rip), %rsi      # 0x161a7
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
jne 0x8407
movl 0x8(%r14), %ecx
movl 0xc(%r14), %eax
movl %eax, 0x8(%r14)
movl %ecx, 0xc(%r14)
movl 0x10(%r14), %eax
movl 0x14(%r14), %edx
movl %edx, 0x10(%r14)
movl %eax, 0x14(%r14)
testl %ecx, %ecx
jns 0x83fb
movl $0x3, 0xc(%r14)
testl %eax, %eax
jns 0x8407
movl $0x1, 0x14(%r14)
leaq 0xdea8(%rip), %rsi      # 0x162b6
movq %rbx, %rdi
callq 0x40d0
testl %eax, %eax
je 0x8420
popq %rbx
popq %r14
popq %r15
retq
movabsq $0x300000001, %rax      # imm = 0x300000001
movq %rax, 0x8(%r14)
movabsq $0x100000001, %rax      # imm = 0x100000001
movq %rax, 0x10(%r14)
movq 0x20(%r14), %rdx
leaq 0xdd60(%rip), %rcx      # 0x161a7
movl $0x3, %r8d
movq %rbx, %rdi
xorl %esi, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x44c0
// File: /workspace/github_cpp_makefile_star2_O1/wellenvogel[P]simple-cpp-threads/test.cpp
// Function: MyRunnable::run()
virtual void run() {
        {
            Synchronized x(mmutex);
            currentState=RUNNING;
        }
        cout << "Thread "<<id<<" started" << endl;
        while(true){
            {
                Synchronized x(mmutex);
                if (requestedState==STOP){
                    currentState=STOP;
                    cout << "stopping thread "<<id<<endl;
                    return;
                }
                condition->wait(x,1000);
            }
            cout << "hello thread " <<id<< endl;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0x8(%rdi), %rax
leaq -0x38(%rbp), %r14
movq %rax, -0x40(%rbp)
movq %rax, (%r14)
movb $0x0, 0x8(%r14)
movq %r14, %rdi
callq 0x2b58
movb $0x1, 0x8(%r14)
movl $0x1, 0x3c(%rbx)
movq %r14, %rdi
callq 0x2b3e
movq 0x25ed(%rip), %r15      # 0x4fd8
leaq 0x68e(%rip), %rsi       # 0x3080
movl $0x7, %edx
movq %r15, %rdi
callq 0x2130
movl 0x40(%rbx), %esi
movq %r15, %rdi
callq 0x21b0
movq %rax, %r12
leaq 0x674(%rip), %rsi       # 0x3088
movl $0x8, %edx
movq %rax, %rdi
callq 0x2130
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
movq -0x40(%rbp), %rax
movq %rax, -0x38(%rbp)
movb $0x0, -0x30(%rbp)
movq %r14, %rdi
callq 0x2b58
movb $0x1, -0x30(%rbp)
movl 0x38(%rbx), %r13d
cmpl $0x2, %r13d
jne 0x2abd
movl $0x2, 0x3c(%rbx)
movl $0x10, %edx
movq %r15, %rdi
leaq 0x610(%rip), %rsi       # 0x3091
callq 0x2130
movl 0x40(%rbx), %esi
movq %r15, %rdi
callq 0x21b0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x2110
movsbl %al, %esi
movq %r12, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x20b0
jmp 0x2ae3
movq 0x30(%rbx), %r12
addq $0x8, %r12
callq 0x2140
addq $0x3b9aca00, %rax       # imm = 0x3B9ACA00
movq %rax, -0x48(%rbp)
movq %r12, %rdi
movq %r14, %rsi
leaq -0x48(%rbp), %rdx
callq 0x2bde
movq %r14, %rdi
callq 0x2b3e
cmpl $0x2, %r13d
je 0x2b1b
movl $0xd, %edx
movq %r15, %rdi
leaq 0x5a2(%rip), %rsi       # 0x30a2
callq 0x2130
movl 0x40(%rbx), %esi
movq %r15, %rdi
callq 0x21b0
movq %rax, %r12
movq (%rax), %rax
jmp 0x2a25
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x38(%rbp), %rdi
callq 0x2b3e
movq %rbx, %rdi
callq 0x21c0
// File: /workspace/github_cpp_makefile_star2_O1/lhartmann[P]orangepi-i2s-steppers/check.cpp
// Function: main
int main() {
	uint32_t r, c=0;
	while (cin.read((char*)&r, 4)) {
		if (r & 2) {
			cout << c << endl;
			c = 0;
		}
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x2e05(%rip), %rdi      # 0x3fe0
leaq 0x4(%rsp), %rsi
movl $0x4, %edx
callq 0x1080
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x1264
movq 0x2de1(%rip), %rbx      # 0x3fe0
leaq 0x4(%rsp), %r14
movq 0x2dc5(%rip), %r15      # 0x3fd0
testb $0x2, 0x4(%rsp)
je 0x1246
movq %r15, %rdi
xorl %esi, %esi
callq 0x1040
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x1070
movsbl %al, %esi
movq %r12, %rdi
callq 0x1030
movq %rax, %rdi
callq 0x1050
movl $0x4, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1080
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
je 0x120b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/simonho288[P]webassembly_cppvsjs/main.cpp
// Function: ProcessProducts()
auto ProcessProducts() {
  vector<Product> products_orig = CreateProducts();

  // Find the products which the price between 100 & 150
  vector<Product> products1;
  copy_if(products_orig.begin(), products_orig.end(), std::back_inserter(products1), [](const Product& p) {
    return (p._price >= 20.0) && (p._price <= 200.0);
  });

  // Find the products which the product description contains "pretium"
  vector<Product> products2; // working products
  copy_if(products1.begin(), products1.end(), std::back_inserter(products2), [](const Product& p) {
    return (p._description.find("pretium") != std::string::npos);
  });

  // Sort the products by price ascending using Lambda (requires C++ 14)
  sort(products2.begin(), products2.end(), Product::CompareByPrice);

  return products2;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
leaq -0x58(%rbp), %r15
movq %r15, %rdi
callq 0x233c
xorpd %xmm0, %xmm0
movapd %xmm0, -0x40(%rbp)
movq $0x0, -0x30(%rbp)
movq (%r15), %r14
movq 0x8(%r15), %r12
cmpq %r12, %r14
je 0x2a4b
leaq -0x40(%rbp), %r15
movsd 0x40(%r14), %xmm0
ucomisd 0x25e1(%rip), %xmm0     # 0x5008
jb 0x2a42
movsd 0x25df(%rip), %xmm1     # 0x5010
ucomisd %xmm0, %xmm1
jb 0x2a42
movq %r15, %rdi
movq %r14, %rsi
callq 0x31d4
addq $0x48, %r14
cmpq %r12, %r14
jne 0x2a19
xorpd %xmm0, %xmm0
movupd %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
movq -0x40(%rbp), %r14
movq -0x38(%rbp), %r12
cmpq %r12, %r14
je 0x2a9c
leaq 0x2ebe(%rip), %r15      # 0x592d
leaq 0x20(%r14), %rdi
movl $0x7, %ecx
movq %r15, %rsi
xorl %edx, %edx
callq 0x2190
cmpq $-0x1, %rax
je 0x2a93
movq %rbx, %rdi
movq %r14, %rsi
callq 0x31d4
addq $0x48, %r14
cmpq %r12, %r14
jne 0x2a6f
movq (%rbx), %r14
movq 0x8(%rbx), %r15
cmpq %r15, %r14
je 0x2af1
movq %r15, %rax
subq %r14, %rax
sarq $0x3, %rax
movabsq $-0x71c71c71c71c71c7, %rcx # imm = 0x8E38E38E38E38E39
imulq %rax, %rcx
bsrq %rcx, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
leaq 0x3cc(%rip), %rcx       # 0x2ea0
movq %r14, %rdi
movq %r15, %rsi
callq 0x3529
leaq 0x3ba(%rip), %rdx       # 0x2ea0
movq %r14, %rdi
movq %r15, %rsi
callq 0x367a
leaq -0x40(%rbp), %rdi
callq 0x2e62
leaq -0x58(%rbp), %rdi
callq 0x2e62
movq %rbx, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2b1a
movq %rax, %r14
jmp 0x2b25
movq %rax, %r14
movq %rbx, %rdi
callq 0x2e62
leaq -0x40(%rbp), %rdi
callq 0x2e62
leaq -0x58(%rbp), %rdi
callq 0x2e62
movq %r14, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/simonho288[P]webassembly_cppvsjs/main.cpp
// Function: ProcessMillionTimes
double EMSCRIPTEN_KEEPALIVE ProcessMillionTimes(int argc, char** argv) {
  clock_t begin = clock();

  vector<Product> products;
  for (int i = 0; i < 1000000; i++) {
    products = ProcessProducts();
  }

  clock_t end = clock();
  double elapsed_secs = double(end - begin) / CLOCKS_PER_SEC;

  // Print all final product(s)
  for (auto it : products) {
    cout << it << endl;
  }

  return elapsed_secs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
callq 0x2080
movq %rax, %r12
xorps %xmm0, %xmm0
movaps %xmm0, -0x50(%rbp)
movq $0x0, -0x40(%rbp)
movl $0xf4240, %ebx          # imm = 0xF4240
leaq -0xc0(%rbp), %r14
leaq -0xa0(%rbp), %r15
movq %r14, %rdi
callq 0x29da
xorps %xmm0, %xmm0
movaps %xmm0, -0xa0(%rbp)
movaps -0x50(%rbp), %xmm0
movq -0x40(%rbp), %rax
movups -0xc0(%rbp), %xmm1
movaps %xmm1, -0x50(%rbp)
movq -0xb0(%rbp), %rcx
movq %rcx, -0x40(%rbp)
movaps -0xa0(%rbp), %xmm1
movaps %xmm0, -0xa0(%rbp)
movq %rax, -0x90(%rbp)
movups %xmm1, -0xc0(%rbp)
movq $0x0, -0xb0(%rbp)
movq %r15, %rdi
callq 0x2e62
movq %r14, %rdi
callq 0x2e62
decl %ebx
jne 0x2b7d
movq %r12, -0x30(%rbp)
callq 0x2080
movq %rax, -0xa8(%rbp)
movq -0x50(%rbp), %r14
movq -0x48(%rbp), %r13
cmpq %r13, %r14
je 0x2cd4
leaq -0x70(%rbp), %r15
leaq -0xa0(%rbp), %r12
leaq -0x90(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x2eb4
movq %r15, -0x80(%rbp)
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
addq %rsi, %rdx
leaq -0x80(%rbp), %rdi
callq 0x2eb4
movsd 0x40(%r14), %xmm0
movsd %xmm0, -0x60(%rbp)
movq 0x537a(%rip), %rdi      # 0x7fd8
movq %r12, %rsi
callq 0x43b8
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2090
movq -0x80(%rbp), %rdi
cmpq %r15, %rdi
je 0x2ca5
movq -0x70(%rbp), %rsi
incq %rsi
callq 0x2100
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x2cc7
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2100
addq $0x48, %r14
cmpq %r13, %r14
jne 0x2c14
movq -0xa8(%rbp), %rax
subq -0x30(%rbp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x2329(%rip), %xmm0     # 0x5018
movsd %xmm0, -0x30(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x2e62
movsd -0x30(%rbp), %xmm0
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x2d3d
movq %rax, %rbx
movq -0xa0(%rbp), %rdi
leaq -0x90(%rbp), %rax
cmpq %rax, %rdi
je 0x2d51
movq -0x90(%rbp), %rsi
incq %rsi
callq 0x2100
jmp 0x2d51
movq %rax, %rbx
jmp 0x2d51
movq %rax, %rbx
leaq -0xa0(%rbp), %rdi
callq 0x2e1c
leaq -0x50(%rbp), %rdi
callq 0x2e62
movq %rbx, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/simonho288[P]webassembly_cppvsjs/main.cpp
// Function: main
int main()
{
#if !defined(NDEBUG)
  double time = ProcessMillionTimes(0, 0);
  cout << "Elapsed second: " << time << endl;
  getchar();
#endif

  return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
callq 0x2b3f
movsd %xmm0, -0x10(%rbp)
movq 0x525f(%rip), %rbx      # 0x7fd8
leaq 0x2b27(%rip), %rsi      # 0x58a7
movl $0x10, %edx
movq %rbx, %rdi
callq 0x2120
movq %rbx, %rdi
movsd -0x10(%rbp), %xmm0
callq 0x2170
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq %rbx, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2090
callq 0x2140
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/simonho288[P]webassembly_cppvsjs/product.cpp
// Function: operator<<(std::ostream&, Product const&)
ostream& operator<<(ostream& sm, const Product& p) {
  const size_t MAX_DESCIPTION_LEN = 50;
  sm << "Name: " << p._name << endl;
  if (p._description.length() > MAX_DESCIPTION_LEN) {
    sm << "Description: " << p._description.substr(0, MAX_DESCIPTION_LEN - 1) << "..." << endl;
  } else {
    sm << "Description: " << p._description << endl;
  }
  sm << "Price: " << p._price << endl;
  return sm;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x1563(%rip), %rsi      # 0x5935
movl $0x6, %edx
callq 0x2120
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x2120
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2090
movq 0x28(%r14), %r15
leaq 0x151c(%rip), %rsi      # 0x593c
movl $0xd, %edx
movq %rbx, %rdi
callq 0x2120
cmpq $0x33, %r15
jb 0x44b2
leaq 0x20(%r14), %rsi
leaq -0x38(%rbp), %r15
movl $0x31, %ecx
movq %r15, %rdi
xorl %edx, %edx
callq 0x2110
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %rbx, %rdi
callq 0x2120
movq %rax, %r15
leaq 0x14e7(%rip), %rsi      # 0x594a
movl $0x3, %edx
movq %rax, %rdi
callq 0x2120
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2090
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x44ec
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2100
jmp 0x44ec
movq 0x20(%r14), %rsi
movq 0x28(%r14), %rdx
movq %rbx, %rdi
callq 0x2120
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq %r15, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2090
leaq 0x145b(%rip), %rsi      # 0x594e
movl $0x7, %edx
movq %rbx, %rdi
callq 0x2120
movsd 0x40(%r14), %xmm0
movq %rbx, %rdi
callq 0x2170
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x20e0
movsbl %al, %esi
movq %r14, %rdi
callq 0x2030
movq %rax, %rdi
callq 0x2090
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq -0x28(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4562
movq -0x28(%rbp), %rsi
incq %rsi
callq 0x2100
movq %rbx, %rdi
callq 0x21a0
// File: /workspace/github_cpp_makefile_star2_O1/onfe[P]Completionist/src/completionist.cpp
// Function: complete(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
string complete(string inp) {
  string out;
  cout << "Getting suggestions for \"" << inp << "\". \n";
  pvc_t results = suggest(pl, st, inp, 4);
  cout << "Got " << results.size() <<" suggestions.\n";
  for (int i = 0; i < results.size(); ++i) {
    cout << results[i].phrase + "\n";
  }

  return out;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x10(%rdi), %rax
movq %rax, (%rsp)
movq %rax, (%rdi)
movq $0x0, 0x8(%rdi)
movb $0x0, 0x10(%rdi)
movq 0x6a92(%rip), %rdi      # 0x8fd0
leaq 0x3adb(%rip), %rsi      # 0x6020
movl $0x19, %edx
movq %rbx, 0x8(%rsp)
callq 0x2160
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq 0x6a6e(%rip), %rdi      # 0x8fd0
callq 0x2160
leaq 0x3acc(%rip), %rsi      # 0x603a
movl $0x4, %edx
movq %rax, %rdi
callq 0x2160
leaq 0x6bd6(%rip), %rsi      # 0x9158
leaq 0x6be7(%rip), %rdx      # 0x9170
leaq 0x10(%rsp), %rdi
movq %r14, %rcx
movl $0x4, %r8d
callq 0x3324
movq 0x6a2d(%rip), %rdi      # 0x8fd0
leaq 0x3a95(%rip), %rsi      # 0x603f
movl $0x4, %edx
callq 0x2160
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movabsq $-0x3333333333333333, %rax # imm = 0xCCCCCCCCCCCCCCCD
imulq %rax, %rsi
movq 0x69f9(%rip), %rdi      # 0x8fd0
callq 0x20e0
leaq 0x3a61(%rip), %rsi      # 0x6044
movl $0xe, %edx
movq %rax, %rdi
callq 0x2160
movq 0x10(%rsp), %rax
cmpq %rax, 0x18(%rsp)
je 0x2697
movl $0x10, %ebx
leaq 0x38(%rsp), %r13
xorl %ebp, %ebp
leaq 0x28(%rsp), %r14
leaq 0x3a25(%rip), %r15      # 0x603d
movq 0x69b1(%rip), %r12      # 0x8fd0
movq %r13, 0x28(%rsp)
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x2ed2
movq %r14, %rdi
movq %r15, %rsi
callq 0x2250
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %r12, %rdi
callq 0x2160
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x266c
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2150
incq %rbp
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
movabsq $-0x3333333333333333, %rdx # imm = 0xCCCCCCCCCCCCCCCD
imulq %rdx, %rcx
addq $0x28, %rbx
cmpq %rbp, %rcx
ja 0x261f
leaq 0x10(%rsp), %rdi
callq 0x2d50
movq 0x8(%rsp), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x26b9
jmp 0x26be
movq %rax, %r14
jmp 0x26e9
movq %rax, %r14
jmp 0x26df
jmp 0x26c5
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r13, %rdi
je 0x26df
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2150
leaq 0x10(%rsp), %rdi
callq 0x2d50
movq 0x8(%rsp), %rax
movq (%rax), %rdi
cmpq (%rsp), %rdi
je 0x2706
movq (%rsp), %rax
movq (%rax), %rsi
incq %rsi
callq 0x2150
movq %r14, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/onfe[P]Completionist/src/SegmentTree.cpp
// Function: SegmentTree::calcHeap(int)
int SegmentTree::calcHeap(int len) {
  int out = 0;
  while (len > 1) {
    len /= 2;
    ++out;
  }
  out = 1 << (out + 2);
  return out;
}

// Assembly:
xorl %ecx, %ecx
cmpl $0x2, %esi
jl 0x4fc2
xorl %ecx, %ecx
movl %esi, %eax
shrl %eax
incl %ecx
cmpl $0x3, %esi
movl %eax, %esi
ja 0x4fb7
movl $0x4, %eax
shll %cl, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/onfe[P]Completionist/src/SegmentTree.cpp
// Function: SegmentTree::init(std::vector<unsigned int, std::allocator<unsigned int>>)
void SegmentTree::init(std::vector<uint32_t> elements) {
  if (elements.empty()) {
    this->init(0);
  } else {
    this->init(elements.size());
    // start the recursive build process
    this->build(0, 0, elements.size() -1, elements);
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq 0x8(%rsi), %rsi
cmpq %rsi, %rax
je 0x5046
subq %rax, %rsi
shrq $0x2, %rsi
movq %rbx, %rdi
callq 0x4f72
movq 0x8(%r14), %r15
subq (%r14), %r15
shrq $0x2, %r15
decl %r15d
movq %rsp, %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2e46
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl %r15d, %ecx
movq %r12, %r8
callq 0x5094
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x503a
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movl $0x0, (%rbx)
leaq 0x8(%rbx), %rdi
movq 0x8(%rbx), %rax
cmpq %rax, 0x10(%rbx)
je 0x505e
movq %rax, 0x10(%rbx)
movl $0x4, %esi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x52e2
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x508c
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/onfe[P]Completionist/src/SegmentTree.cpp
// Function: SegmentTree::build(unsigned int, unsigned int, unsigned int, std::vector<unsigned int, std::allocator<unsigned int>>)
uip_t SegmentTree::build (
  uint32_t heapidx,
  uint32_t idx1,
  uint32_t idx2,
  std::vector<uint32_t> weights
) {
  uint32_t midpoint = idx1 + (idx2 - idx1) / 2;
  // if idx1 = idx 2, must be pointing at 1 element.
  if (idx1 == idx2) {
    // add the pair [weight, index] to the heap.
    this->heap[heapidx] = uip_t(weights[idx1], idx1);
    return this->heap[heapidx];

  } else {
    // otherwise, get the child nodes (recursive step)
    uip_t left = this->build(heapidx*2 + 1, idx1, midpoint, weights);
    uip_t right = this->build(heapidx*2 + 2, midpoint+1, idx2, weights);
    // and set the values of this node to the best child weight
    this->heap[heapidx] = (left.first > right.first ? left : right);
    return this->heap[heapidx];
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r13
movl %edx, %r15d
movl %esi, %r12d
movl %ecx, %ebp
subl %edx, %ebp
jne 0x50cd
movl %r15d, %eax
movq (%r13), %rcx
movl (%rcx,%rax,4), %ecx
movl %r12d, %eax
movq 0x8(%rdi), %rdx
leaq (%rdx,%rax,8), %rax
movl %ecx, (%rax)
jmp 0x5192
movl %ecx, 0xc(%rsp)
shrl %ebp
addl %r15d, %ebp
leal 0x1(,%r12,2), %ebx
leaq 0x18(%rsp), %rax
movq %rdi, %r14
movq %rax, %rdi
movq %r13, %rsi
callq 0x2e46
movq %r14, 0x10(%rsp)
movq %r14, %rdi
movl %ebx, %esi
movl %r15d, %edx
movl %ebp, %ecx
leaq 0x18(%rsp), %r8
callq 0x5094
movq %rax, %r14
leal (%r12,%r12), %r15d
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x5128
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
addl $0x2, %r15d
incl %ebp
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2e46
movq 0x10(%rsp), %rdi
movl %r15d, %esi
movl %ebp, %edx
movl 0xc(%rsp), %ecx
movq %rbx, %r8
callq 0x5094
movq %rax, %r15
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0x516e
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x2150
cmpl %r15d, %r14d
movl %r12d, %eax
movq 0x10(%rsp), %rcx
movq 0x8(%rcx), %rcx
leaq (%rcx,%rax,8), %rax
movl %r15d, %ecx
cmoval %r14d, %ecx
movl %ecx, (%rax)
cmovaq %r14, %r15
shrq $0x20, %r15
movl %r15d, 0x4(%rax)
movq (%rax), %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x40(%rsp), %rcx
movq %rax, %rbx
movq 0x30(%rsp), %rdi
jmp 0x51c4
leaq 0x28(%rsp), %rcx
movq %rax, %rbx
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0x51d4
movq (%rcx), %rsi
subq %rdi, %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/onfe[P]Completionist/src/SegmentTree.cpp
// Function: SegmentTree::qmax(unsigned int, unsigned int, unsigned int, unsigned int, unsigned int)
uip_t SegmentTree::qmax(
  uint32_t heapidx,
  uint32_t idx1,
  uint32_t idx2,
  uint32_t firstidx,
  uint32_t lastidx
) {
  // std::cout << "h1:" << heapidx << " i1:" << idx1 << " i2:" << idx2 << " f:" << firstidx << " l:" << lastidx << std::endl;
  if (idx1 > idx2 || firstidx > idx2 || lastidx < idx1) {
    // the indexes provided are incorrect, return [-1, -1].
    return uip_t((uint32_t)0 - 1, (uint32_t)0 - 1);
  }

  if (idx1 >= firstidx && idx2 <= lastidx) {
    // if node within range, return the node.
    return this->heap[heapidx];
  }

  // otherwise, check the children.
  uint32_t midpoint = idx1 + (idx2 - idx1) / 2;
  uip_t left = this->qmax(heapidx*2 + 1, idx1, midpoint, firstidx, lastidx);
  uip_t right = this->qmax(heapidx*2 + 2, midpoint+1, idx2, firstidx, lastidx);

  if (left.second == (uint32_t)0 - 1) {
    return right;
  } else if (right.second == (uint32_t)0 - 1) {
    return left;
  } else {
    return left.first > right.first? left : right;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %ecx, %r14d
movl %edx, %r12d
movl %esi, %r13d
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
movl %ecx, %r15d
subl %edx, %r15d
setb %al
cmpl %ecx, %r8d
seta %cl
cmpl %edx, %r9d
setb %dl
orb %al, %dl
orb %cl, %dl
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jne 0x52c6
movl %r9d, %ebx
movl %r8d, %ebp
cmpl %r8d, %r12d
setb %al
cmpl %r9d, %r14d
seta %cl
orb %al, %cl
je 0x52b8
shrl %r15d
leal (%r15,%r12), %ecx
leal 0x1(,%r13,2), %esi
movq %rdi, 0x10(%rsp)
movl %r12d, %edx
movl %ebp, %r8d
movl %ebx, %r9d
callq 0x51f0
movq %rax, 0x8(%rsp)
leal 0x2(,%r13,2), %esi
leal (%r15,%r12), %edx
incl %edx
movq 0x10(%rsp), %rdi
movl %r14d, %ecx
movl %ebp, %r8d
movl %ebx, %r9d
callq 0x51f0
movq 0x8(%rsp), %rdx
movabsq $-0x100000000, %rsi     # imm = 0xFFFFFFFF00000000
leaq -0x1(%rsi), %rcx
cmpq %rcx, %rdx
ja 0x52c3
cmpq %rcx, %rax
jbe 0x52da
andq %rdx, %rsi
movq %rdx, %rax
jmp 0x52c6
movl %r13d, %eax
movq 0x8(%rdi), %rcx
movq (%rcx,%rax,8), %rax
andq %rax, %rsi
movl %eax, %eax
orq %rsi, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpl %eax, %edx
cmovaq %rdx, %rax
jmp 0x52c3
// File: /workspace/github_cpp_makefile_star2_O1/WojciechMula[P]utf16utf8/tests/unittest.cpp
// Function: compare_strings(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
bool compare_strings(const std::string& reference, const std::string& result) {
    const size_t reference_size = reference.size();
    const size_t result_size = result.size();
    if (reference_size != result_size) {
        printf("Different lengths: %lu != %lu\n", reference_size, result_size);
        printf("reference = "); dump(reference); putchar('\n');
        printf("result    = "); dump(result); putchar('\n');
        return false;
    }

    for (size_t i=0; i < reference_size; i++) {
        if (reference[i] != result[i]) {
            printf("Difference at %lu\n", i);
            printf("reference = "); dump(reference); putchar('\n');
            printf("result    = "); dump(result); putchar('\n');
            return false;
        }
    }

    return true;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rdi), %rsi
movq 0x8(%rbx), %rdx
cmpq %rdx, %rsi
jne 0x46de
testq %rsi, %rsi
sete %bpl
je 0x4743
movq (%r14), %rcx
movq (%rbx), %rdx
movb (%rcx), %al
cmpb (%rdx), %al
jne 0x46f0
leaq -0x1(%rsi), %rdi
xorl %r8d, %r8d
cmpq %r8, %rdi
je 0x474a
movb 0x1(%rcx,%r8), %r9b
leaq 0x1(%r8), %rax
cmpb 0x1(%rdx,%r8), %r9b
movq %rax, %r8
je 0x46b9
cmpq %rsi, %rax
setae %bpl
jmp 0x46f2
leaq 0x6a6d(%rip), %rdi      # 0xb152
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x2030
jmp 0x4703
xorl %eax, %eax
leaq 0x6a92(%rip), %rdi      # 0xb18b
movq %rax, %rsi
xorl %eax, %eax
callq 0x2030
leaq 0x6a67(%rip), %rdi      # 0xb171
xorl %eax, %eax
callq 0x2030
movq %r14, %rdi
callq 0x4648
movl $0xa, %edi
callq 0x21b0
leaq 0x6a54(%rip), %rdi      # 0xb17e
xorl %eax, %eax
callq 0x2030
movq %rbx, %rdi
callq 0x4648
movl $0xa, %edi
callq 0x21b0
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movb $0x1, %bpl
jmp 0x4743
// File: /workspace/github_cpp_makefile_star2_O1/WojciechMula[P]utf16utf8/tests/unittest.cpp
// Function: validate(std::vector<unsigned short, std::allocator<unsigned short>> const&, unsigned long)
bool validate(const std::vector<uint16_t>& input, size_t size) {
    // reference
    std::string tmp;
    tmp.resize(4 * size);
    utf16_to_utf8(input.data(), (uint8_t*)tmp.data());
    const std::string reference{tmp.c_str()};

    // SSE
    tmp.assign("");
    tmp.resize(8 * size);
    const size_t output_size = sse_convert_utf16_to_utf8(input.data(), size, (uint8_t*)tmp.data());
    const std::string sse{tmp.data(), output_size};

    if(! compare_strings(reference, sse) ) {
        display<uint16_t>(input);
        return false;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
leaq (,%rsi,4), %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x2050
movq (%rbx), %rdi
movq 0x8(%rsp), %rsi
callq 0x48dc
movq 0x8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rdx
callq 0x2070
leaq 0x8(%rsp), %rdi
movq 0x8(%rdi), %rdx
leaq 0x69b7(%rip), %rcx      # 0xb170
xorl %esi, %esi
xorl %r8d, %r8d
callq 0x21e0
leaq (,%r14,8), %rsi
leaq 0x8(%rsp), %rdi
xorl %edx, %edx
callq 0x2050
movq (%rbx), %rdi
movq 0x8(%rsp), %rdx
movq %r14, %rsi
callq 0x3aa0
movq 0x8(%rsp), %rsi
leaq 0x38(%rsp), %r14
movq %r14, -0x10(%r14)
addq %rsi, %rax
leaq 0x28(%rsp), %rdi
movq %rax, %rdx
callq 0x5aaa
leaq 0x48(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x4682
movl %eax, %ebp
testb %al, %al
jne 0x4822
movq %rbx, %rdi
callq 0x57eb
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x4839
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4854
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x486b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movl %ebp, %eax
addq $0x68, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x28(%rsp), %rdi
cmpq %r14, %rdi
je 0x48a2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x2170
jmp 0x48a2
jmp 0x489f
jmp 0x489f
jmp 0x489a
movq %rax, %rbx
jmp 0x48bd
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x48bd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x2170
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x48d4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2210
// File: /workspace/github_cpp_makefile_star2_O1/WojciechMula[P]utf16utf8/tests/unittest.cpp
// Function: validate_no_surrogates()
bool validate_no_surrogates() {
    puts("Test transcoding random string (without surrogates)");
    std::random_device rd{};
    RandomUTF16 generator(rd,
        /* 1 byte */  1,
        /* 2 bytes */ 1,
        /* 3 bytes */ 1,
        /* 4 bytes */ 0
    );
    for(size_t t = 0; t < 10000; t++) {
      const auto UTF16 = generator.generate(512);
      const size_t size = UTF16.size() - 1;
      if(!validate(UTF16, size)) {
          return false;
      }
      if(!validate_hybrid(UTF16, size)) {
          return false;
      }
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2788, %rsp           # imm = 0x2788
leaq 0x64ee(%rip), %rdi      # 0xb19e
callq 0x21d0
leaq 0x1400(%rsp), %rbx
movq %rbx, %rdi
callq 0x5892
leaq 0x20(%rsp), %rdi
movq %rbx, %rsi
movl $0x1, %edx
movl $0x1, %ecx
movl $0x1, %r8d
xorl %r9d, %r9d
callq 0x23fc
xorl %ebx, %ebx
leaq 0x8(%rsp), %r14
leaq 0x20(%rsp), %r15
xorl %r13d, %r13d
movl $0x200, %edx            # imm = 0x200
movq %r14, %rdi
movq %r15, %rsi
callq 0x250a
movq 0x10(%rsp), %r12
subq 0x8(%rsp), %r12
sarq %r12
decq %r12
movq %r14, %rdi
movq %r12, %rsi
callq 0x474f
testb %al, %al
je 0x4d67
movq %r14, %rdi
movq %r12, %rsi
callq 0x4b0b
movl %eax, %ebp
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4d47
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
testb %bpl, %bpl
je 0x4d7e
cmpq $0x270f, %r13           # imm = 0x270F
leaq 0x1(%r13), %rax
setae %bl
movq %rax, %r13
cmpq $0x2710, %rax           # imm = 0x2710
jne 0x4cf4
jmp 0x4d7e
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4d7e
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x13c0(%rsp), %rdi
testq %rdi, %rdi
je 0x4d9b
movq 0x13d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x13a8(%rsp), %rdi
testq %rdi, %rdi
je 0x4db8
movq 0x13b8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0x1400(%rsp), %rdi
callq 0x2150
andb $0x1, %bl
movl %ebx, %eax
addq $0x2788, %rsp           # imm = 0x2788
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4e21
movq %rax, %rbx
jmp 0x4e0c
movq %rax, %rbx
jmp 0x4e02
movq %rax, %rbx
movq 0x8(%rsp), %rdi
testq %rdi, %rdi
je 0x4e02
movq 0x18(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0x20(%rsp), %rdi
callq 0x590c
leaq 0x1400(%rsp), %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x5a9f
// File: /workspace/github_cpp_makefile_star2_O1/WojciechMula[P]utf16utf8/tests/unittest.cpp
// Function: validate_surrogates()
bool validate_surrogates() {
    puts("Test transcoding random string (only surrogates)");
    std::random_device rd{};
    RandomUTF16 generator(rd,
        /* 1 byte */  0,
        /* 2 bytes */ 0,
        /* 3 bytes */ 0,
        /* 4 bytes */ 1
    );
    for(size_t t = 0; t < 10000; t++) {
      const long seed = 1;
      const auto UTF16 = generator.generate(512, seed);
      const size_t size = UTF16.size() - 1;

      return validate(UTF16, size) && validate_hybrid(UTF16, size);
    }
    return true;
}

// Assembly:
pushq %rbx
subq $0x2780, %rsp           # imm = 0x2780
leaq 0x639a(%rip), %rdi      # 0xb1d2
callq 0x21d0
leaq 0x13f8(%rsp), %rbx
movq %rbx, %rdi
callq 0x5892
leaq 0x18(%rsp), %rdi
movq %rbx, %rsi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movl $0x1, %r9d
callq 0x23fc
movq %rsp, %rdi
leaq 0x18(%rsp), %rsi
movl $0x200, %edx            # imm = 0x200
movl $0x1, %ecx
callq 0x2648
movq %rsp, %rdi
movq 0x8(%rdi), %rbx
subq (%rdi), %rbx
sarq %rbx
decq %rbx
movq %rbx, %rsi
callq 0x474f
testb %al, %al
je 0x4ea9
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x4b0b
movl %eax, %ebx
jmp 0x4eab
xorl %ebx, %ebx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4ec1
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x13b8(%rsp), %rdi
testq %rdi, %rdi
je 0x4ede
movq 0x13c8(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq 0x13a0(%rsp), %rdi
testq %rdi, %rdi
je 0x4efb
movq 0x13b0(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0x13f8(%rsp), %rdi
callq 0x2150
movl %ebx, %eax
addq $0x2780, %rsp           # imm = 0x2780
popq %rbx
retq
jmp 0x4f57
movq %rax, %rbx
jmp 0x4f38
movq %rax, %rbx
jmp 0x4f42
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x4f38
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
leaq 0x18(%rsp), %rdi
callq 0x590c
leaq 0x13f8(%rsp), %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x2210
movq %rax, %rdi
callq 0x5a9f
// File: /workspace/github_cpp_makefile_star2_O1/WojciechMula[P]utf16utf8/tests/unittest.cpp
// Function: validate_all()
bool validate_all() {
    puts("Validate all input values");
    std::vector<uint16_t> input;
    input.resize(8 + 1);

    for (uint16_t value=1; value <= 0x0800; value++) {
        if (value >= 0xd800 && value <= 0xdfff) // skip reserved values
            continue;

        for (int i=0; i < 8; i++)
            input[i] = value;

        if (!validate(input, 8)) {
            printf("Failed for %04x\n", value);
            return false;
        }
        if (!validate_hybrid(input, 8)) {
            printf("Failed for %04x\n", value);
            return false;
        }
    }

    return true;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
leaq 0x6294(%rip), %rdi      # 0xb203
callq 0x21d0
vxorps %xmm0, %xmm0, %xmm0
movq %rsp, %rdi
vmovaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movl $0x9, %esi
callq 0x594a
movw $0x1, %r15w
xorl %ebx, %ebx
movq %rsp, %r14
movq (%rsp), %rax
xorl %ecx, %ecx
movw %r15w, (%rax,%rcx,2)
incq %rcx
cmpq $0x8, %rcx
jne 0x4fa1
movl $0x8, %esi
movq %r14, %rdi
callq 0x474f
testb %al, %al
je 0x4fe9
movl $0x8, %esi
movq %r14, %rdi
callq 0x4b0b
testb %al, %al
je 0x4fe9
cmpw $0x800, %r15w           # imm = 0x800
leal 0x1(%r15), %eax
setae %bl
movl %eax, %r15d
cmpw $0x801, %ax             # imm = 0x801
jne 0x4f9b
jmp 0x4ffb
movzwl %r15w, %esi
leaq 0x6229(%rip), %rdi      # 0xb21d
xorl %eax, %eax
callq 0x2030
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x5011
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
andb $0x1, %bl
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
jmp 0x5022
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x503b
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x2170
movq %rbx, %rdi
callq 0x2210