LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::term()
obj_t* tscrpt_t::term() {
	obj_t *o(factor());
	while(more()){ // mul,div
		obj_t *l(0),*r(0);
		try {
			if     (is('*')){ o=mul(l=o, r=factor()); }
			else if(is('/')){ o=div(l=o, r=factor()); }
			else if(is('%')){ o=rem(l=o, r=factor()); }
			else break;
		}catch(std::runtime_error& e){
			delete l;
			delete r;
			clear();
			throw;
		}
		delete l;
		delete r;
	}
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x365a
movq %rax, %r14
movq (%rbx), %rax
cmpq %rax, (%rax)
je 0x33e7
xorl %r13d, %r13d
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x2a, %esi
movl $0x1, %edx
callq 0x3006
testb %al, %al
je 0x32fa
movq %r14, %r13
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x365a
movq %rax, %r15
movq %r14, %r13
movq %rax, %rbp
movq %r14, %rsi
movq %rax, %rdx
callq 0x3814
jmp 0x3378
xorl %r13d, %r13d
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x2f, %esi
movl $0x1, %edx
callq 0x3006
testb %al, %al
je 0x3338
movq %r14, %r13
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x365a
movq %rax, %r15
movq %r14, %r13
movq %rax, %rbp
movq %r14, %rsi
movq %rax, %rdx
callq 0x3954
jmp 0x3378
xorl %r13d, %r13d
xorl %ebp, %ebp
movq %rbx, %rdi
movl $0x25, %esi
movl $0x1, %edx
callq 0x3006
testb %al, %al
je 0x33e0
movq %r14, %r13
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x365a
movq %rax, %r15
movq %r14, %r13
movq %rax, %rbp
movq %r14, %rsi
movq %rax, %rdx
callq 0x3a64
movq %rax, %r12
testq %r14, %r14
je 0x33a5
movq 0x8(%r14), %rdi
leaq 0x18(%r14), %rax
cmpq %rax, %rdi
je 0x3398
movq (%rax), %rsi
incq %rsi
callq 0x2150
movl $0x30, %esi
movq %r14, %rdi
callq 0x2150
movb $0x1, %bpl
testq %r15, %r15
je 0x33d2
movq 0x8(%r15), %rdi
leaq 0x18(%r15), %rax
cmpq %rax, %rdi
je 0x33c5
movq (%rax), %rsi
incq %rsi
callq 0x2150
movl $0x30, %esi
movq %r15, %rdi
callq 0x2150
movq %r12, %r14
testb %bpl, %bpl
jne 0x32b0
jmp 0x33ea
xorl %ebp, %ebp
movq %r14, %r12
jmp 0x33d2
movq %r14, %r12
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
cmpl $0x1, %edx
jne 0x3429
movq %r14, %rdi
movl %edx, %esi
movq %r13, %rdx
movq %rbp, %rcx
callq 0x2280
movq %rbx, %rdi
callq 0x2790
callq 0x21c0
movq %rax, %r14
callq 0x2210
movq %r14, %rdi
callq 0x2240
movq %rax, %rdi
callq 0x3b74
nop
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::add(obj_t*, obj_t*)
obj_t* tscrpt_t::add(obj_t* l, obj_t* r) {
	obj_t* o(0);
	verbose(VTRACE,"parse: %s+%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'){
		o = new obj_t('N', l->value() + r->value());
	}else if(l->type=='S'){
		o = new obj_t('S', l->str() + r->str());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r14
movq %rsi, %r15
cmpl $0x9, 0x6cf7(%rip)      # 0xa148
jl 0x347a
movq %r15, %rdi
callq 0x2662
movq (%rax), %rbx
movq %r14, %rdi
callq 0x2662
movq (%rax), %rdx
leaq 0x3d75(%rip), %rdi      # 0x71e5
movq %rbx, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%r15), %eax
cmpl $0x53, %eax
je 0x34c9
cmpl $0x4e, %eax
jne 0x354d
movl $0x30, %edi
callq 0x2140
movq %rax, %rbx
movq %r15, %rdi
callq 0x261c
movl %eax, %ebp
movq %r14, %rdi
callq 0x261c
addl %ebp, %eax
movb $0x4e, (%rbx)
leaq 0x18(%rbx), %rcx
movq %rcx, 0x8(%rbx)
movq $0x0, 0x10(%rbx)
movb $0x0, 0x18(%rbx)
movl %eax, 0x28(%rbx)
jmp 0x353f
movl $0x30, %edi
callq 0x2140
movq %rax, %rbx
movq %r15, %rdi
callq 0x2662
movq %rax, %r15
movq %r14, %rdi
callq 0x2662
leaq 0x8(%rsp), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x3b7f
movb $0x53, (%rbx)
leaq 0x8(%rbx), %rdi
movq %rbx, %rax
addq $0x18, %rax
movq %rax, 0x8(%rbx)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
addq %rsi, %rdx
callq 0x3ca8
movl $0x0, 0x28(%rbx)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x353f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x42e1(%rip), %rdi      # 0x7835
leaq 0x3e6f(%rip), %rsi      # 0x73ca
leaq 0x3c91(%rip), %rcx      # 0x71f3
movl $0xcd, %edx
callq 0x2100
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x358f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2150
jmp 0x358f
movq %rax, %r14
movl $0x30, %esi
movq %rbx, %rdi
callq 0x2150
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::sub(obj_t*, obj_t*)
obj_t* tscrpt_t::sub(obj_t* l, obj_t* r){
	obj_t* o(0);
	verbose(VTRACE,"parse: %s-%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'||l->type=='S'){
		o = new obj_t('N', l->value() - r->value());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x9, 0x6b90(%rip)      # 0xa148
jl 0x35e1
movq %r14, %rdi
callq 0x2662
movq (%rax), %r15
movq %rbx, %rdi
callq 0x2662
movq (%rax), %rdx
leaq 0x3c43(%rip), %rdi      # 0x721a
movq %r15, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%r14), %eax
cmpl $0x53, %eax
je 0x35ef
cmpl $0x4e, %eax
jne 0x363b
movl $0x30, %edi
callq 0x2140
movq %rax, %r15
movq %r14, %rdi
callq 0x261c
movl %eax, %ebp
movq %rbx, %rdi
callq 0x261c
subl %eax, %ebp
movb $0x4e, (%r15)
leaq 0x18(%r15), %rax
movq %rax, 0x8(%r15)
movq $0x0, 0x10(%r15)
movb $0x0, 0x18(%r15)
movl %ebp, 0x28(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x41f3(%rip), %rdi      # 0x7835
leaq 0x3d81(%rip), %rsi      # 0x73ca
leaq 0x3bd8(%rip), %rcx      # 0x7228
movl $0xd5, %edx
callq 0x2100
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::factor()
obj_t* tscrpt_t::factor() {
	obj_t *o(0);
	bool minus=false;
	if     (is('+')){ } // unary-operator
	else if(is('-')){ minus=true; }
//	else if(is('!')){ assert(0); }
//	else if(is('~')){ assert(0); }
//	else if(is('*')){ assert(0); }
//	else if(is('&')){ assert(0); }
	if      (is('(')){ o=expr(); be(')'); }
	else if (eq('I')){ assert(0); }
	else if (eq('N')||eq('S')){ o=obj(); }
	else throw std::runtime_error("factor: syntax error");
	if (minus) {
		obj_t l('N',-1), *r;
		o=mul(&l,r=o);
		delete r;
	}
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movl $0x2b, %esi
movl $0x1, %edx
callq 0x3006
testb %al, %al
je 0x367e
xorl %ebp, %ebp
jmp 0x3692
movq %rbx, %rdi
movl $0x2d, %esi
movl $0x1, %edx
callq 0x3006
movl %eax, %ebp
movq %rbx, %rdi
movl $0x28, %esi
movl $0x1, %edx
callq 0x3006
movq %rbx, %rdi
testb %al, %al
je 0x36c2
callq 0x30be
movq %rax, %r14
movq %rbx, %rdi
movl $0x29, %esi
callq 0x3238
jmp 0x370b
movl $0x49, %esi
xorl %edx, %edx
callq 0x3006
testb %al, %al
jne 0x3794
movq %rbx, %rdi
movl $0x4e, %esi
xorl %edx, %edx
callq 0x3006
testb %al, %al
jne 0x3700
movq %rbx, %rdi
movl $0x53, %esi
xorl %edx, %edx
callq 0x3006
testb %al, %al
je 0x37b3
movq %rbx, %rdi
callq 0x31b4
movq %rax, %r14
testb %bpl, %bpl
je 0x3786
leaq 0x20(%rsp), %r15
movb $0x4e, -0x18(%r15)
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
movl $0xffffffff, 0x10(%r15) # imm = 0xFFFFFFFF
leaq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x3814
movq %rax, %rbx
testq %r14, %r14
je 0x376c
movq 0x8(%r14), %rdi
leaq 0x18(%r14), %rax
cmpq %rax, %rdi
je 0x375f
movq (%rax), %rsi
incq %rsi
callq 0x2150
movl $0x30, %esi
movq %r14, %rdi
callq 0x2150
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x3783
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %r14
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x409a(%rip), %rdi      # 0x7835
leaq 0x3c28(%rip), %rsi      # 0x73ca
leaq 0x3a0d(%rip), %rcx      # 0x71b6
movl $0xbb, %edx
callq 0x2100
movl $0x10, %edi
callq 0x20e0
movq %rax, %r14
leaq 0x3a09(%rip), %rsi      # 0x71d0
movq %rax, %rdi
callq 0x20b0
movq 0x6822(%rip), %rsi      # 0x9ff8
movq 0x67e3(%rip), %rdx      # 0x9fc0
movq %r14, %rdi
callq 0x2220
movq %rax, %rbx
movq %r14, %rdi
callq 0x2120
jmp 0x380c
movq %rax, %rbx
movq 0x10(%rsp), %rdi
cmpq %r15, %rdi
je 0x380c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2150
movq %rbx, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::mul(obj_t*, obj_t*)
obj_t* tscrpt_t::mul(obj_t* l, obj_t* r){
	obj_t* o(0);
	verbose(VTRACE,"parse: %s*%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'){
		o = new obj_t('N', l->value() * r->value());
	}else if(l->type=='S'){
		o = new obj_t('S', "");
		std::string& s=o->str();
		for(int i=r->value();i>0;--i) s.append(l->str());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
cmpl $0x9, 0x691f(%rip)      # 0xa148
jl 0x3852
movq %rbx, %rdi
callq 0x2662
movq (%rax), %r14
movq %r15, %rdi
callq 0x2662
movq (%rax), %rdx
leaq 0x3a07(%rip), %rdi      # 0x724f
movq %r14, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%rbx), %eax
cmpl $0x53, %eax
je 0x38a4
cmpl $0x4e, %eax
jne 0x391c
movl $0x30, %edi
callq 0x2140
movq %rax, %r14
movq %rbx, %rdi
callq 0x261c
movl %eax, %ebx
movq %r15, %rdi
callq 0x261c
imull %ebx, %eax
movb $0x4e, (%r14)
leaq 0x18(%r14), %rcx
movq %rcx, 0x8(%r14)
movq $0x0, 0x10(%r14)
movb $0x0, 0x18(%r14)
movl %eax, 0x28(%r14)
jmp 0x3910
movl $0x30, %edi
callq 0x2140
movq %rax, %r14
movb $0x53, (%rax)
leaq 0x8(%rax), %rdi
addq $0x18, %rax
movq %rax, 0x8(%r14)
leaq 0x3b00(%rip), %rdx      # 0x73c7
movq %rdx, %rsi
callq 0x3bda
movl $0x0, 0x28(%r14)
movq %r14, %rdi
callq 0x2662
movq %rax, %r12
movq %r15, %rdi
callq 0x261c
testl %eax, %eax
jle 0x3910
movl %eax, %ebp
incl %ebp
movq %rbx, %rdi
callq 0x2662
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, %rdi
callq 0x2090
decl %ebp
cmpl $0x1, %ebp
jg 0x38f2
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3f12(%rip), %rdi      # 0x7835
leaq 0x3aa0(%rip), %rsi      # 0x73ca
leaq 0x392c(%rip), %rcx      # 0x725d
movl $0xe1, %edx
callq 0x2100
movq %rax, %rbx
movl $0x30, %esi
movq %r14, %rdi
callq 0x2150
movq %rbx, %rdi
callq 0x2240
nop
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::div(obj_t*, obj_t*)
obj_t* tscrpt_t::div(obj_t* l, obj_t* r){
	obj_t* o(0);
	verbose(VTRACE,"parse: %s/%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'||l->type=='S'){
		if(r->value()==0) throw std::runtime_error("div: divide by zero");
		o = new obj_t('N', l->value() / r->value());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x9, 0x67e0(%rip)      # 0xa148
jl 0x3991
movq %r14, %rdi
callq 0x2662
movq (%rax), %r15
movq %rbx, %rdi
callq 0x2662
movq (%rax), %rdx
leaq 0x38fd(%rip), %rdi      # 0x7284
movq %r15, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%r14), %eax
cmpl $0x53, %eax
je 0x39a3
cmpl $0x4e, %eax
jne 0x3a32
movq %rbx, %rdi
callq 0x261c
testl %eax, %eax
je 0x3a00
movl $0x30, %edi
callq 0x2140
movq %rax, %r15
movq %r14, %rdi
callq 0x261c
movl %eax, %ebp
movq %rbx, %rdi
callq 0x261c
movl %eax, %ecx
movl %ebp, %eax
cltd
idivl %ecx
movb $0x4e, (%r15)
leaq 0x18(%r15), %rcx
movq %rcx, 0x8(%r15)
movq $0x0, 0x10(%r15)
movb $0x0, 0x18(%r15)
movl %eax, 0x28(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x387e(%rip), %rsi      # 0x7292
movq %rax, %rdi
callq 0x20b0
movq 0x65d5(%rip), %rsi      # 0x9ff8
movq 0x6596(%rip), %rdx      # 0x9fc0
movq %rbx, %rdi
callq 0x2220
leaq 0x3dfc(%rip), %rdi      # 0x7835
leaq 0x398a(%rip), %rsi      # 0x73ca
leaq 0x385f(%rip), %rcx      # 0x72a6
movl $0xea, %edx
callq 0x2100
movq %rax, %r14
movq %rbx, %rdi
callq 0x2120
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/tscrpt.cpp
// Function: tscrpt_t::rem(obj_t*, obj_t*)
obj_t* tscrpt_t::rem(obj_t* l, obj_t* r){
	obj_t* o(0);
	verbose(VTRACE,"parse: %s%%%s\n",l->str().c_str(), r->str().c_str());
	if(l->type=='N'||l->type=='S'){
		if(r->value()==0) throw std::runtime_error("div: divide by zero");
		o = new obj_t('N', l->value() % r->value());
	}else assert(0);
	return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
cmpl $0x9, 0x66d0(%rip)      # 0xa148
jl 0x3aa1
movq %r14, %rdi
callq 0x2662
movq (%rax), %r15
movq %rbx, %rdi
callq 0x2662
movq (%rax), %rdx
leaq 0x3836(%rip), %rdi      # 0x72cd
movq %r15, %rsi
xorl %eax, %eax
callq 0x2040
movzbl (%r14), %eax
cmpl $0x53, %eax
je 0x3ab3
cmpl $0x4e, %eax
jne 0x3b42
movq %rbx, %rdi
callq 0x261c
testl %eax, %eax
je 0x3b10
movl $0x30, %edi
callq 0x2140
movq %rax, %r15
movq %r14, %rdi
callq 0x261c
movl %eax, %ebp
movq %rbx, %rdi
callq 0x261c
movl %eax, %ecx
movl %ebp, %eax
cltd
idivl %ecx
movb $0x4e, (%r15)
leaq 0x18(%r15), %rax
movq %rax, 0x8(%r15)
movq $0x0, 0x10(%r15)
movb $0x0, 0x18(%r15)
movl %edx, 0x28(%r15)
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movl $0x10, %edi
callq 0x20e0
movq %rax, %rbx
leaq 0x376e(%rip), %rsi      # 0x7292
movq %rax, %rdi
callq 0x20b0
movq 0x64c5(%rip), %rsi      # 0x9ff8
movq 0x6486(%rip), %rdx      # 0x9fc0
movq %rbx, %rdi
callq 0x2220
leaq 0x3cec(%rip), %rdi      # 0x7835
leaq 0x387a(%rip), %rsi      # 0x73ca
leaq 0x3785(%rip), %rcx      # 0x72dc
movl $0xf3, %edx
callq 0x2100
movq %rax, %r14
movq %rbx, %rdi
callq 0x2120
movq %r14, %rdi
callq 0x2240
// File: /workspace/github_cpp_makefile_star2_O1/yukioc[P]tscrpt/t-tscrpt.cpp
// Function: main
int main(int argc, char* argv[])
{
//	symbol_table.insert(symbol(":"));

	mu_run_test(t_estrndup);
	mu_run_test(t_number);
	mu_run_test(t_string);
	mu_run_test(t_unaryop);
	mu_run_test(t_mul);
	mu_run_test(t_div);
	mu_run_test(t_rem);
	mu_run_test(t_add);
	mu_run_test(t_sub);
	mu_show_failures();
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl 0x385e(%rip), %ebx      # 0xa16c
incl 0x385c(%rip)            # 0xa170
callq 0x3d38
cmpl 0x384d(%rip), %ebx      # 0xa16c
leaq 0x10b1(%rip), %r15      # 0x79d7
leaq 0x10b1(%rip), %rbx      # 0x79de
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x107d(%rip), %r14      # 0x79b8
leaq 0x108a(%rip), %rsi      # 0x79cc
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x381a(%rip), %ebp      # 0xa16c
incl 0x3818(%rip)            # 0xa170
callq 0x4542
cmpl 0x3809(%rip), %ebp      # 0xa16c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x1074(%rip), %rsi      # 0x79e5
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x37eb(%rip), %ebp      # 0xa16c
incl 0x37e9(%rip)            # 0xa170
callq 0x4844
cmpl 0x37da(%rip), %ebp      # 0xa16c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x104e(%rip), %rsi      # 0x79ee
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x37bc(%rip), %ebp      # 0xa16c
incl 0x37ba(%rip)            # 0xa170
callq 0x4b28
cmpl 0x37ab(%rip), %ebp      # 0xa16c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x1028(%rip), %rsi      # 0x79f7
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x378d(%rip), %ebp      # 0xa16c
incl 0x378b(%rip)            # 0xa170
callq 0x4de2
cmpl 0x377c(%rip), %ebp      # 0xa16c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0x1003(%rip), %rsi      # 0x7a01
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x375e(%rip), %ebp      # 0xa16c
incl 0x375c(%rip)            # 0xa170
callq 0x5408
cmpl 0x374d(%rip), %ebp      # 0xa16c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0xfda(%rip), %rsi       # 0x7a07
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x372f(%rip), %ebp      # 0xa16c
incl 0x372d(%rip)            # 0xa170
callq 0x5798
cmpl 0x371e(%rip), %ebp      # 0xa16c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0xfb1(%rip), %rsi       # 0x7a0d
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x3700(%rip), %ebp      # 0xa16c
incl 0x36fe(%rip)            # 0xa170
callq 0x5c95
cmpl 0x36ef(%rip), %ebp      # 0xa16c
movq %rbx, %rdx
cmoveq %r15, %rdx
leaq 0xf88(%rip), %rsi       # 0x7a13
movq %r14, %rdi
xorl %eax, %eax
callq 0x2040
movl 0x36d1(%rip), %ebp      # 0xa16c
incl 0x36cf(%rip)            # 0xa170
callq 0x62e7
cmpl 0x36c0(%rip), %ebp      # 0xa16c
cmoveq %r15, %rbx
leaq 0xf62(%rip), %rsi       # 0x7a19
movq %r14, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2040
movl 0x36a2(%rip), %esi      # 0xa16c
movl 0x36a4(%rip), %edx      # 0xa174
movl 0x369a(%rip), %ecx      # 0xa170
leaq 0xf42(%rip), %rdi       # 0x7a1f
xorl %eax, %eax
callq 0x2040
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/tokenizer.cc
// Function: parsePipeTokens(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
vector<vector<string>> parsePipeTokens(vector<string> tokens) {
    vector<vector<string>> parsedTokens;
    // Create a temporary vector for a single token group. Fill it and add it to parsedTokens on pipe character
    vector<string> temp;
    size_t num_tokens = tokens.size();

    for (size_t i = 0; i < num_tokens; i++) {
        if (tokens[i] != "|") {
            temp.push_back(tokens[i]);
        } else {
            parsedTokens.push_back(temp);
            temp.clear();
        }
    }
    parsedTokens.push_back(temp);

    return parsedTokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %r12
xorl %eax, %eax
movq %rax, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq %rax, 0x10(%rsp)
movaps %xmm0, (%rsp)
movq 0x8(%rsi), %rbp
subq (%rsi), %rbp
movq %rdi, 0x20(%rsp)
je 0x4102
movq %rsi, %r14
sarq $0x5, %rbp
cmpq $0x1, %rbp
adcq $0x0, %rbp
xorl %ebx, %ebx
movq %rbx, %r13
shlq $0x5, %r13
movq (%r14), %rdi
addq %r13, %rdi
leaq 0x2150(%rip), %rsi      # 0x61df
callq 0x20b0
testl %eax, %eax
je 0x40a8
addq (%r14), %r13
movq %rsp, %rdi
movq %r13, %rsi
callq 0x4184
jmp 0x40f6
movq %r12, %rdi
movq %rsp, %rsi
callq 0x41c2
movq (%rsp), %r13
movq 0x8(%rsp), %r15
cmpq %r13, %r15
je 0x40f6
leaq 0x10(%r13), %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0x40db
movq (%r12), %rsi
incq %rsi
callq 0x2290
leaq 0x20(%r12), %rax
addq $0x10, %r12
cmpq %r15, %r12
movq %rax, %r12
jne 0x40c5
movq %r13, 0x8(%rsp)
movq 0x20(%rsp), %r12
incq %rbx
cmpq %rbp, %rbx
jne 0x407b
movq %rsp, %rsi
movq %r12, %rdi
callq 0x41c2
movq %rsp, %rdi
callq 0x37f8
movq %r12, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4129
movq %rax, %r14
movq %rsp, %rdi
callq 0x37f8
movq 0x20(%rsp), %rdi
callq 0x38de
movq %r14, %rdi
callq 0x2490
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/utils.cc
// Function: parse_memory(long)
char* parse_memory(long int memory) {
    char* response = (char*)malloc(1024 * sizeof(char));
    if (memory <= 1024) {
        int mem = (int)memory;
        sprintf(response, "%dB", mem);
    } else if (memory <= 1024 * 1024) {
        int mem = (int)(memory / 1024.0);
        sprintf(response, "%dKB", mem);
    } else {
        int mem = (int)(memory / (1024.0 * 1024.0));
        sprintf(response, "%dMB", mem);
    }
    return response;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x2380
movq %rax, %rbx
cmpq $0x400, %r14            # imm = 0x400
jg 0x46e4
leaq 0x1bf4(%rip), %rsi      # 0x62d0
movq %rbx, %rdi
movl %r14d, %edx
jmp 0x471d
cvtsi2sd %r14, %xmm0
cmpq $0x100000, %r14         # imm = 0x100000
jg 0x4707
mulsd 0x1bce(%rip), %xmm0     # 0x62c8
cvttsd2si %xmm0, %edx
leaq 0x1bcf(%rip), %rsi      # 0x62d4
jmp 0x471a
mulsd 0x1bb1(%rip), %xmm0     # 0x62c0
cvttsd2si %xmm0, %edx
leaq 0x1bbf(%rip), %rsi      # 0x62d9
movq %rbx, %rdi
xorl %eax, %eax
callq 0x2070
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/utils.cc
// Function: parse_time(long)
char* parse_time(long int time) {
    int days = time / (24 * 3600);
    int hours = (time - (days * 24 * 3600)) / 3600;
    int minutes = (time - hours * 3600) / 60;

    char* response = (char*)malloc(1024 * sizeof(char));

    if (hours == 0) {
        sprintf(response, "%d minutes", minutes);
    } else if (days == 0) {
        if (hours == 1)
            sprintf(response, "%d hour, %d minutes", hours, minutes);
        else
            sprintf(response, "%d hours, %d minutes", hours, minutes);
    } else {
        if (days == 1)
            sprintf(response, "%d day, %d hours, %d minutes", days, hours, minutes);
        else
            sprintf(response, "%d days, %d hours, %d minutes", days, hours, minutes);
    }
    return response;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movabsq $0x1845c8a0ce512957, %rcx # imm = 0x1845C8A0CE512957
movq %rdi, %rax
imulq %rcx
movq %rdx, %r12
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xd, %r12
addq %rax, %r12
movabsq $0x1518000000000, %rcx  # imm = 0x1518000000000
imulq %r12, %rcx
sarq $0x20, %rcx
movq %rdi, %rax
subq %rcx, %rax
movabsq $0x48d159e26af37c05, %rcx # imm = 0x48D159E26AF37C05
imulq %rcx
movq %rdx, %r14
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0xa, %r14
addq %rax, %r14
movabsq $0xe1000000000, %rax    # imm = 0xE1000000000
imulq %r14, %rax
sarq $0x20, %rax
subq %rax, %rdi
movabsq $-0x7777777777777777, %rcx # imm = 0x8888888888888889
movq %rdi, %rax
imulq %rcx
movq %rdx, %r15
addq %rdi, %r15
movq %r15, %rax
shrq $0x3f, %rax
shrq $0x5, %r15
addl %eax, %r15d
movl $0x400, %edi            # imm = 0x400
callq 0x2380
movq %rax, %rbx
testl %r14d, %r14d
je 0x47fb
cmpl $0x1, %r12d
je 0x4811
testl %r12d, %r12d
jne 0x4822
cmpl $0x1, %r14d
jne 0x483e
leaq 0x1aed(%rip), %rsi      # 0x62de
movq %rbx, %rdi
movl $0x1, %edx
jmp 0x484b
leaq 0x1ae5(%rip), %rsi      # 0x62e7
movq %rbx, %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x2070
jmp 0x4855
leaq 0x1ada(%rip), %rsi      # 0x62f2
movq %rbx, %rdi
movl $0x1, %edx
jmp 0x482f
leaq 0x1ae6(%rip), %rsi      # 0x630f
movq %rbx, %rdi
movl %r12d, %edx
movl %r14d, %ecx
movl %r15d, %r8d
xorl %eax, %eax
callq 0x2070
jmp 0x4855
leaq 0x1ad3(%rip), %rsi      # 0x6318
movq %rbx, %rdi
movl %r14d, %edx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x2070
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/utils.cc
// Function: getHistoryFilename()
char* getHistoryFilename() {
    char* histfile = (char*)malloc(BUFSIZE * sizeof(char));
    uid_t uid = geteuid();
    struct passwd* pw = getpwuid(uid);
    if (!pw) {
        histfile = NULL;
    }
    histfile = pw->pw_dir;

    char* fullFilePath = (char*)malloc(BUFSIZE * sizeof(char));
    sprintf(fullFilePath, "%s/%s", histfile, HISTORYFILENAME);
    return fullFilePath;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
callq 0x2170
movl %eax, %edi
callq 0x22d0
movq 0x20(%rax), %rbx
movl $0x1000, %edi           # imm = 0x1000
callq 0x2380
movq %rax, %r14
leaq 0x1aa1(%rip), %rsi      # 0x632d
leaq 0x1aa0(%rip), %rcx      # 0x6333
movq %rax, %rdi
movq %rbx, %rdx
xorl %eax, %eax
callq 0x2070
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/utils.cc
// Function: getUsername[abi:cxx11]()
string getUsername() {
    char* username = (char*)malloc(BUFSIZE * sizeof(char));
    uid_t uid = geteuid();
    struct passwd* pw = getpwuid(uid);
    if (!pw) {
        username = (char*)"";
    }
    username = pw->pw_name;

    return string(username);
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
callq 0x2170
movl %eax, %edi
callq 0x22d0
movq (%rax), %rsi
leaq 0xf(%rsp), %rdx
movq %rbx, %rdi
callq 0x4146
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/utils.cc
// Function: getHostname[abi:cxx11]()
string getHostname() {
    char* hostname = (char*)malloc(BUFSIZE * sizeof(char));
    int ret = gethostname(hostname, BUFSIZE);
    if (ret < 0) {
        hostname = (char*)"";
    }
    return string(hostname);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1000, %edi           # imm = 0x1000
callq 0x2380
movq %rax, %r14
movl $0x1000, %esi           # imm = 0x1000
movq %rax, %rdi
callq 0x2410
testl %eax, %eax
leaq 0x1f84(%rip), %rsi      # 0x6886
cmovnsq %r14, %rsi
leaq 0x7(%rsp), %rdx
movq %rbx, %rdi
callq 0x4146
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/utils.cc
// Function: getOSName[abi:cxx11]()
string getOSName() {
    ifstream infile("/etc/os-release");

    if (infile.good()) {
        string temp;
        getline(infile, temp);
        string OSName = temp.substr(temp.find("=") + 2, temp.size() - 1);
        OSName.pop_back();
        return OSName;
    }
    return "Unknown Linux Distribution";
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x230, %rsp            # imm = 0x230
movq %rdi, %rbx
leaq 0x1a0e(%rip), %rsi      # 0x6342
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x24b0
movq (%r14), %rax
movq -0x18(%rax), %rcx
cmpl $0x0, 0x48(%rsp,%rcx)
je 0x4976
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0x19f2(%rip), %rsi      # 0x6354
leaq 0x1a05(%rip), %rdx      # 0x636e
movq %rbx, %rdi
callq 0x41ee
jmp 0x49fe
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
movq $0x0, -0x8(%r15)
movb $0x0, (%r15)
addq -0x18(%rax), %r14
movq %r14, %rdi
movl $0xa, %esi
callq 0x2270
movsbl %al, %edx
leaq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x24c0
leaq 0x199d(%rip), %rsi      # 0x6352
leaq 0x8(%rsp), %r14
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x2480
leaq 0x2(%rax), %rdx
movq 0x8(%r14), %rcx
decq %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x22b0
movq %rbx, %rdi
callq 0x2330
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x49fe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2290
leaq 0x28(%rsp), %rdi
callq 0x2080
movq %rbx, %rax
addq $0x230, %rsp            # imm = 0x230
popq %rbx
popq %r14
popq %r15
retq
movq %rax, %rbx
jmp 0x4a37
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x4a37
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x2290
leaq 0x28(%rsp), %rdi
callq 0x2080
movq %rbx, %rdi
callq 0x2490
nopl (%rax)
// File: /workspace/github_cpp_makefile_star2_O1/mukul-mehta[P]meta/builtins.cc
// Function: metash_history(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>)
int metash_history(unused vector<string> tokens) {
    HIST_ENTRY** hist_list = history_list();

    if (!hist_list)
        return 1;

    for (int i = 0; i < history_length; i++)
        printf("%s%d%s: %s\n", RED, i + history_base, NORM, hist_list[i]->line);

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
callq 0x2470
testq %rax, %rax
je 0x543c
movq 0x3bec(%rip), %rbx      # 0x8fd8
cmpl $0x0, (%rbx)
jle 0x5438
movq %rax, %r14
leaq 0x1557(%rip), %r15      # 0x6952
leaq 0xda2(%rip), %r12       # 0x61a4
leaq 0xd8a(%rip), %r13       # 0x6193
xorl %ebp, %ebp
movq 0x3bde(%rip), %rax      # 0x8ff0
movl (%rax), %edx
addl %ebp, %edx
movq (%r14,%rbp,8), %rax
movq (%rax), %r8
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rcx
xorl %eax, %eax
callq 0x2030
incq %rbp
movslq (%rbx), %rax
cmpq %rax, %rbp
jl 0x540b
xorl %eax, %eax
jmp 0x5441
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb_dump.c
// Function: text
static void text(MDB_val *v)
{
	unsigned char *c, *end;

	putchar(' ');
	c = v->mv_data;
	end = c + v->mv_size;
	while (c < end) {
		if (isprint(*c)) {
			putchar(*c);
		} else {
			putchar('\\');
			hex(*c);
		}
		c++;
	}
	putchar('\n');
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x20, %edi
callq 0x2040
movq (%rbx), %r14
testq %r14, %r14
jle 0x2e96
movq 0x8(%rbx), %r15
addq %r15, %r14
callq 0x2460
movq %rax, %rbx
leaq 0xc40d(%rip), %r12      # 0xf260
movq (%rbx), %rax
movzbl (%r15), %edi
testb $0x40, 0x1(%rax,%rdi,2)
jne 0x2e89
movl $0x5c, %edi
callq 0x2040
movzbl (%r15), %r13d
movl %r13d, %eax
shrl $0x4, %eax
movsbl (%rax,%r12), %edi
callq 0x2040
andl $0xf, %r13d
movsbl (%r13,%r12), %edi
callq 0x2040
incq %r15
cmpq %r14, %r15
jb 0x2e53
movl $0xa, %edi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x2040
// File: /workspace/github_cpp_makefile_star2_O1/jvanns[P]verbatim/sub/lmdb/libraries/liblmdb/mdb_dump.c
// Function: byte
static void byte(MDB_val *v)
{
	unsigned char *c, *end;

	putchar(' ');
	c = v->mv_data;
	end = c + v->mv_size;
	while (c < end) {
		hex(*c++);
	}
	putchar('\n');
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x20, %edi
callq 0x2040
movq (%rbx), %r14
testq %r14, %r14
jle 0x2efe
movq 0x8(%rbx), %rbx
addq %rbx, %r14
leaq 0xc38c(%rip), %r15      # 0xf260
movzbl (%rbx), %r12d
incq %rbx
movl %r12d, %eax
shrl $0x4, %eax
movsbl (%rax,%r15), %edi
callq 0x2040
andl $0xf, %r12d
movsbl (%r12,%r15), %edi
callq 0x2040
cmpq %r14, %rbx
jb 0x2ed4
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x2040
nop
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/main.cpp
// Function: main
int main() {
    functional_test<rmq_zkw>();
    functional_test<rmq_ind>();
    functional_test<rmq_block>();
    performance_test<rmq_zkw>(10000000, 10000000, 10);
    performance_test<rmq_st>(10000000, 10000000, 10);
    performance_test<rmq_ind>(10000000, 10000000, 10);
    performance_test<rmq_block>(10000000, 10000000, 10);
    return 0;
}

// Assembly:
pushq %rax
callq 0x1310
callq 0x1408
callq 0x1500
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movl $0xa, %edx
callq 0x15f8
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movl $0xa, %edx
callq 0x1860
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movl $0xa, %edx
callq 0x1ac8
movl $0x989680, %edi         # imm = 0x989680
movl $0x989680, %esi         # imm = 0x989680
movl $0xa, %edx
callq 0x1d30
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/main.cpp
// Function: void functional_test<librmq::rmq_zkw>()
void functional_test() {
    for (int i = 0; i < 100; i++) 
        functional_test_instance<TSolver<int>>(gen() % 10 + 1);
    for (int i = 0; i < 100; i++) 
        functional_test_instance<TSolver<int>>(gen() % 50 + 1);
    for (int i = 0; i < 20; i++) 
        functional_test_instance<TSolver<int>>(gen() % 100000 + 1);
    for (int i = 0; i < 10; i++) 
        functional_test_instance<TSolver<int>>(gen() % 1000000 + 1);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl $0x64, %ebp
leaq 0xf2d90(%rip), %rbx     # 0xf40b0
movabsq $-0x3333333333333333, %r14 # imm = 0xCCCCCCCCCCCCCCCD
movq %rbx, %rdi
callq 0x2204
movq %rax, %rdi
mulq %r14
shrq $0x3, %rdx
addl %edx, %edx
leal (%rdx,%rdx,4), %eax
subl %eax, %edi
incl %edi
callq 0x1f98
decl %ebp
jne 0x132a
movl $0x64, %ebp
leaq 0xf2d56(%rip), %rbx     # 0xf40b0
movabsq $-0x5c28f5c28f5c28f5, %r14 # imm = 0xA3D70A3D70A3D70B
movq %rbx, %rdi
callq 0x2204
movq %rax, %rdi
shrq %rax
mulq %r14
shrq $0x4, %rdx
imull $0x32, %edx, %eax
subl %eax, %edi
incl %edi
callq 0x1f98
decl %ebp
jne 0x1364
movl $0x14, %ebp
leaq 0xf2d1b(%rip), %rbx     # 0xf40b0
movabsq $0xa7c5ac471b47843, %r14 # imm = 0xA7C5AC471B47843
movq %rbx, %rdi
callq 0x2204
movq %rax, %rdi
shrq $0x5, %rax
mulq %r14
shrq $0x7, %rdx
imull $0x186a0, %edx, %eax    # imm = 0x186A0
subl %eax, %edi
incl %edi
callq 0x1f98
decl %ebp
jne 0x139f
movl $0xa, %ebp
leaq 0xf2cdc(%rip), %rbx     # 0xf40b0
movabsq $0x431bde82d7b634db, %r14 # imm = 0x431BDE82D7B634DB
movq %rbx, %rdi
callq 0x2204
movq %rax, %rdi
mulq %r14
shrq $0x12, %rdx
imull $0xf4240, %edx, %eax    # imm = 0xF4240
subl %eax, %edi
incl %edi
callq 0x1f98
decl %ebp
jne 0x13de
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/./librmq/zkw.h
// Function: librmq::rmq_zkw<int>::rmq_zkw(unsigned long, int const*)
rmq_zkw(size_t n, const T *data) : n(n), data(data) {
        ntot = n;
        while (ntot & (ntot - 1)) ntot += ntot & -ntot;
        tr = new size_t[ntot << 1];
        std::iota(tr + ntot, tr + ntot + n, 0);
        std::fill(tr + ntot + n, tr + ntot + ntot, 0);
        for (size_t i = ntot - 1; i > 0; i--)
            tr[i] = data[tr[i<<1]] < data[tr[i<<1|1]] ? tr[i<<1] : tr[i<<1|1];
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq %rsi, (%rdi)
movq %rdx, 0x10(%rdi)
movq %rsi, %r13
leaq -0x1(%r13), %rax
testq %rax, %r13
je 0x229b
movq %r13, %rax
negq %rax
andq %r13, %rax
addq %rax, %r13
jmp 0x2284
movq %r13, 0x8(%r12)
movabsq $0x7000000000000000, %rax # imm = 0x7000000000000000
andq %r13, %rax
movq %r13, %rbp
shlq $0x4, %rbp
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rbp, %rdi
callq 0x1030
movq %rax, %r15
movq %rax, 0x18(%r12)
testq %r14, %r14
je 0x2382
movabsq $0x1fffffffffffffff, %rcx # imm = 0x1FFFFFFFFFFFFFFF
leaq (%r14,%rcx), %rax
andq %rax, %rcx
andl $0x1, %eax
negq %rax
addq %rcx, %rax
addq $0x2, %rax
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
leaq (%r15,%r13,8), %rcx
addq $0x8, %rcx
movdqa 0xef343(%rip), %xmm1    # 0xf1650
xorl %edx, %edx
movdqa 0xef349(%rip), %xmm2    # 0xf1660
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0xef349(%rip), %xmm4    # 0xf1670
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x235e
movq %rdx, -0x8(%rcx,%rdx,8)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x2375
leaq 0x1(%rdx), %rsi
movq %rsi, (%rcx,%rdx,8)
addq $0x2, %rdx
paddq %xmm4, %xmm1
cmpq %rdx, %rax
jne 0x2327
movq %r13, %rdx
subq %r14, %rdx
je 0x239d
leaq (%r15,%r13,8), %rax
leaq (%rax,%r14,8), %rdi
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x1080
decq %r13
je 0x23c8
leaq (%r15,%rbp), %rax
addq $-0x8, %rax
movq -0x8(%rax), %rcx
movq (%rax), %rdx
movl (%rbx,%rcx,4), %esi
cmpl (%rbx,%rdx,4), %esi
cmovlq %rcx, %rdx
movq %rdx, (%r15,%r13,8)
addq $-0x10, %rax
decq %r13
jne 0x23aa
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/./librmq/zkw.h
// Function: librmq::rmq_zkw<int>::query(unsigned long, unsigned long)
size_t query(size_t l, size_t r) {
        size_t ret = l;
        l += ntot - 1;
        r += ntot;
        while (l ^ r ^ 1) {
            if ((~l & 1) && data[tr[l ^ 1]] < data[ret]) ret = tr[l ^ 1]; 
            if (( r & 1) && data[tr[r ^ 1]] < data[ret]) ret = tr[r ^ 1];
            l >>= 1;
            r >>= 1;
        }
        return ret;
    }

// Assembly:
movq %rsi, %rax
movq 0x8(%rdi), %rsi
leaq (%rax,%rsi), %rcx
decq %rcx
addq %rsi, %rdx
movq %rdx, %rsi
xorq %rcx, %rsi
cmpq $0x1, %rsi
je 0x2452
movq 0x10(%rdi), %rsi
movq 0x18(%rdi), %rdi
movabsq $0x1ffffffffffffffe, %r8 # imm = 0x1FFFFFFFFFFFFFFE
testb $0x1, %cl
jne 0x2421
movq 0x8(%rdi,%rcx,8), %r9
movl (%rsi,%r9,4), %r10d
cmpl (%rsi,%rax,4), %r10d
jl 0x241e
movq %rax, %r9
movq %r9, %rax
testb $0x1, %dl
je 0x2440
movq %rdx, %r9
andq %r8, %r9
movq (%rdi,%r9,8), %r9
movl (%rsi,%r9,4), %r10d
cmpl (%rsi,%rax,4), %r10d
jl 0x243d
movq %rax, %r9
movq %r9, %rax
shrq %rcx
shrq %rdx
movq %rdx, %r9
xorq %rcx, %r9
cmpq $0x1, %r9
jne 0x2407
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/./librmq/st.h
// Function: librmq::rmq_st<int>::init(unsigned long, int const*, unsigned long*)
void init(size_t n, const T *data, size_t *first = nullptr) {
        this->n = n; this->data = data;
        if (first) {
            st[0] = first; 
        } else { 
            st[0] = new size_t[n]; std::iota(st[0], st[0] + n, size_t(0));
        }
        for (size_t lv = 0; (2 << lv) <= n; lv++) {
            st[lv+1] = new size_t[n - (2 << lv) + 1];
            for (size_t i = 0; i + (2 << lv) <= n; i++) {
                size_t p1 = st[lv][i], p2 = st[lv][i + (1 << lv)];
                st[lv+1][i] = (data[p1] < data[p2] ? p1 : p2);
            }
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsi, (%rdi)
movq %rdx, 0x1e8(%rdi)
testq %rcx, %rcx
je 0x2480
movq %rcx, 0x8(%r15)
jmp 0x2551
movq %r14, %rax
shrq $0x3d, %rax
leaq (,%r14,8), %rcx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x1030
movq %rax, 0x8(%r15)
testq %r14, %r14
je 0x2551
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
leaq (%r14,%rdx), %rcx
andq %rcx, %rdx
andl $0x1, %ecx
negq %rcx
addq %rdx, %rcx
addq $0x2, %rcx
movq %rdx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movdqa 0xef174(%rip), %xmm1    # 0xf1650
xorl %edx, %edx
movdqa 0xef17a(%rip), %xmm2    # 0xf1660
pxor %xmm2, %xmm0
pcmpeqd %xmm3, %xmm3
movdqa 0xef17a(%rip), %xmm4    # 0xf1670
movdqa %xmm1, %xmm5
pxor %xmm2, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
movd %xmm5, %esi
notl %esi
testb $0x1, %sil
je 0x252c
movq %rdx, (%rax,%rdx,8)
pxor %xmm3, %xmm5
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x2544
leaq 0x1(%rdx), %rsi
movq %rsi, 0x8(%rax,%rdx,8)
addq $0x2, %rdx
paddq %xmm4, %xmm1
cmpq %rdx, %rcx
jne 0x24f6
cmpq $0x2, %r14
jb 0x25f3
movl $0x2, %r13d
xorl %edx, %edx
movq $-0x1, %rbp
movq %rdx, %r12
movq %r14, %rax
subq %r13, %rax
leaq 0x1(%rax), %rcx
movabsq $0x1fffffffffffffff, %rdx # imm = 0x1FFFFFFFFFFFFFFF
cmpq %rdx, %rcx
leaq 0x8(,%rax,8), %rdi
cmovaq %rbp, %rdi
callq 0x1030
leaq 0x1(%r12), %rdx
movq %rax, 0x10(%r15,%r12,8)
movl $0x1, %esi
movl %r12d, %ecx
shll %cl, %esi
movq 0x8(%r15,%r12,8), %rcx
movslq %esi, %rsi
leaq (%rcx,%rsi,8), %rsi
xorl %edi, %edi
movq (%rcx,%rdi,8), %r8
movq (%rsi,%rdi,8), %r9
movl (%rbx,%r8,4), %r10d
cmpl (%rbx,%r9,4), %r10d
cmovlq %r8, %r9
movq %r9, (%rax,%rdi,8)
leaq (%rdi,%r13), %r8
incq %r8
incq %rdi
cmpq %r14, %r8
jbe 0x25b7
movl $0x2, %eax
movl %edx, %ecx
shll %cl, %eax
movslq %eax, %r13
cmpq %r14, %r13
jbe 0x256a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/./librmq/ind.h
// Function: librmq::rmq_ind<int>::query(unsigned long, unsigned long)
size_t query(size_t l, size_t r) {
        size_t lb = l / SEGLEN, rb = r / SEGLEN;
        if (lb != rb) { // speculative policy
            size_t ret = st.query(lb, std::min(nr_blocks, rb + 1));
            if (ret >= l and ret < r) return ret;
        } else {
            size_t base = lb * SEGLEN;
            return lookup_table[segid[lb]][l - base][r - base - 1] + base;
        } 
        
        size_t lbase = lb * SEGLEN, rbase = rb * SEGLEN;
        size_t v = lookup_suf[segid[lb]][l - lbase] + lbase;
        if (r != rbase) {
            size_t v2 = lookup_pref[segid[rb]][r - rbase - 1] + rbase;
            if (data[v2] < data[v]) v = v2;
        }
        if (lb + 1 == rb) return v;
        size_t vv = st.query(lb + 1, rb);
        return data[vv] < data[v] ? vv : v;
    }

// Assembly:
pushq %rbx
movq %rsi, %r8
shrq $0x3, %r8
movq %rdx, %r9
shrq $0x3, %r9
cmpq %r9, %r8
jne 0x2c19
movq %rsi, %rcx
andq $-0x8, %rcx
movq 0x18(%rdi), %rax
movslq (%rax,%r8,4), %rax
andl $0x7, %esi
movq %rcx, %rdi
notq %rdi
shlq $0x6, %rax
addq 0xf13bb(%rip), %rax     # 0xf3fc0
addq %rdx, %rdi
leaq (%rax,%rsi,8), %rax
movsbq (%rax,%rdi), %rax
addq %rcx, %rax
jmp 0x2d18
leaq 0x1(%r9), %rax
movq 0x8(%rdi), %r11
movq 0x208(%rdi), %r10
cmpq %r11, %rax
cmovbq %rax, %r11
movq %r11, %rax
subq %r8, %rax
bsrq %rax, %rcx
movl %ecx, %eax
movl $0x1, %ebx
shll %cl, %ebx
movq 0x28(%rdi,%rax,8), %rax
movq (%rax,%r8,8), %rcx
movslq %ebx, %rbx
subq %rbx, %r11
movq (%rax,%r11,8), %rax
movl (%r10,%rcx,4), %r11d
cmpl (%r10,%rax,4), %r11d
cmovlq %rcx, %rax
cmpq %rsi, %rax
setae %cl
cmpq %rdx, %rax
setb %r11b
testb %r11b, %cl
jne 0x2d18
movq %rsi, %rbx
andq $-0x8, %rbx
movq %rdx, %rcx
andq $-0x8, %rcx
movq 0x18(%rdi), %r11
movslq (%r11,%r8,4), %rax
shlq $0x3, %rax
addq 0xf1338(%rip), %rax     # 0xf3fd0
andl $0x7, %esi
movsbq (%rsi,%rax), %rax
addq %rbx, %rax
cmpq %rdx, %rcx
je 0x2cd1
movslq (%r11,%r9,4), %rsi
andl $0x7, %edx
shlq $0x3, %rsi
addq 0xf1326(%rip), %rsi     # 0xf3fe0
movsbq -0x1(%rdx,%rsi), %rdx
addq %rdx, %rcx
movq 0x10(%rdi), %rdx
movl (%rdx,%rcx,4), %esi
cmpl (%rdx,%rax,4), %esi
cmovlq %rcx, %rax
leaq 0x1(%r8), %rdx
movq %r9, %rcx
subq %rdx, %rcx
je 0x2d18
bsrq %rcx, %rcx
movl %ecx, %edx
movl $0x1, %esi
shll %cl, %esi
movq 0x28(%rdi,%rdx,8), %rcx
movq 0x8(%rcx,%r8,8), %rdx
movslq %esi, %rsi
subq %rsi, %r9
movq (%rcx,%r9,8), %rcx
movl (%r10,%rdx,4), %esi
cmpl (%r10,%rcx,4), %esi
cmovlq %rdx, %rcx
movq 0x10(%rdi), %rdx
movl (%rdx,%rcx,4), %esi
cmpl (%rdx,%rax,4), %esi
cmovlq %rcx, %rax
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/./librmq/block.h
// Function: librmq::rmq_block<int>::query(unsigned long, unsigned long)
size_t query(size_t l, size_t r) {
        size_t lb = l / BLOCKSZ, rb = r / BLOCKSZ;
        if (lb != rb) { // speculative policy
            size_t ret = st.query(lb, std::min(nr_blocks, rb + 1));
            if (ret >= l and ret < r) return ret;
        } else {
            return std::min_element(data + l, data + r) - data;
        }
        size_t lbase = lb * BLOCKSZ, rbase = rb * BLOCKSZ;
        size_t v = suf[l];
        if (r != rbase) {
            size_t v2 = pref[r - 1];
            if (data[v2] < data[v]) v = v2;
        }
        if (lb + 1 == rb) return v;
        size_t vv = st.query(lb + 1, rb);
        return data[vv] < data[v] ? vv : v;
    }

// Assembly:
movq %rsi, %r9
shrq $0xa, %r9
movq %rdx, %r8
shrq $0xa, %r8
cmpq %r8, %r9
jne 0x3201
movq 0x10(%rdi), %rcx
leaq (%rcx,%rsi,4), %r8
leaq (%rcx,%rdx,4), %rax
cmpq %rdx, %rsi
sete %r9b
leaq (%rcx,%rsi,4), %rdi
addq $0x4, %rdi
cmpq %rax, %rdi
sete %al
orb %r9b, %al
je 0x32cd
movq %r8, %rax
jmp 0x32f6
leaq 0x1(%r8), %rax
movq 0x8(%rdi), %r10
cmpq %r10, %rax
cmovbq %rax, %r10
movq %r10, %rax
subq %r9, %rax
bsrq %rax, %rcx
movl %ecx, %eax
movq 0x30(%rdi,%rax,8), %rax
movl $0x1, %r11d
shll %cl, %r11d
movq (%rax,%r9,8), %rcx
movslq %r11d, %r11
subq %r11, %r10
movq (%rax,%r10,8), %rax
movq 0x210(%rdi), %r10
movl (%r10,%rcx,4), %r11d
cmpl (%r10,%rax,4), %r11d
cmovlq %rcx, %rax
cmpq %rsi, %rax
setae %cl
cmpq %rdx, %rax
setb %r11b
testb %r11b, %cl
jne 0x32cc
movq 0x20(%rdi), %rax
movq (%rax,%rsi,8), %rax
movq %rdx, %rcx
shlq $0x36, %rcx
je 0x3285
movq 0x10(%rdi), %rcx
movq 0x18(%rdi), %rsi
movq -0x8(%rsi,%rdx,8), %rdx
movl (%rcx,%rdx,4), %esi
cmpl (%rcx,%rax,4), %esi
cmovlq %rdx, %rax
leaq 0x1(%r9), %rdx
movq %r8, %rcx
subq %rdx, %rcx
je 0x32cc
bsrq %rcx, %rcx
movl %ecx, %edx
movl $0x1, %esi
shll %cl, %esi
movq 0x30(%rdi,%rdx,8), %rcx
movq 0x8(%rcx,%r9,8), %rdx
movslq %esi, %rsi
subq %rsi, %r8
movq (%rcx,%r8,8), %rcx
movl (%r10,%rdx,4), %esi
cmpl (%r10,%rcx,4), %esi
cmovlq %rdx, %rcx
movq 0x10(%rdi), %rdx
movl (%rdx,%rcx,4), %esi
cmpl (%rdx,%rax,4), %esi
cmovlq %rcx, %rax
retq
shlq $0x2, %rdx
shlq $0x2, %rsi
subq %rsi, %rdx
addq $-0x4, %rdx
movl (%rdi), %esi
movq %rdi, %rax
cmpl (%r8), %esi
jl 0x32e9
movq %r8, %rax
addq $0x4, %rdi
movq %rax, %r8
addq $-0x4, %rdx
jne 0x32dc
subq %rcx, %rax
sarq $0x2, %rax
retq
// File: /workspace/github_cpp_makefile_star2_O1/wx-csy[P]librmq/./librmq/block.h
// Function: librmq::rmq_block<int>::init_block(int const*, unsigned long)
void init_block(const T *data, size_t si) {
        size_t ptr = si * BLOCKSZ;
        for (int i = 0; i < BLOCKSZ; i++) {
            if (i) {
                pref[ptr + i] = data[i] < data[pref[ptr + i - 1]] ? 
                    i : pref[ptr + i - 1];
            } else {
                pref[ptr + i] = i;
            }
        }
        for (int i = BLOCKSZ - 1; i >= 0; i--) {
            if (i == BLOCKSZ - 1) {
                suf[ptr + i] = i;
            } else {
                suf[ptr + i] = data[i] < data[suf[ptr + i + 1]] ?
                    i : suf[ptr + i + 1];
            }
        }
        for (int i = 0; i < BLOCKSZ; i++) pref[ptr + i] += ptr;
        for (int i = 0; i < BLOCKSZ; i++) suf[ptr + i] += ptr;
    }

// Assembly:
pushq %rbx
movq %rdx, %rax
shlq $0xa, %rax
movq 0x18(%rdi), %rcx
shlq $0xd, %rdx
leaq (%rcx,%rdx), %r8
xorl %r9d, %r9d
testq %r9, %r9
je 0x337b
movl (%rsi,%r9,4), %r10d
movq -0x8(%r8,%r9,8), %r11
cmpl (%rsi,%r11,4), %r10d
cmovlq %r9, %r11
movq %r11, (%r8,%r9,8)
jmp 0x337f
movq %r9, (%rcx,%rax,8)
incq %r9
cmpq $0x400, %r9             # imm = 0x400
jne 0x335f
movq 0x20(%rdi), %rcx
leaq (%rcx,%rax,8), %r8
movq %rax, %r9
orq $0x3ff, %r9             # imm = 0x3FF
movl $0x3ff, %r10d           # imm = 0x3FF
cmpq $0x3ff, %r10            # imm = 0x3FF
jne 0x33b6
movq $0x3ff, (%rcx,%r9,8)    # imm = 0x3FF
jmp 0x33cb
movl (%rsi,%r10,4), %r11d
movq 0x8(%r8,%r10,8), %rbx
cmpl (%rsi,%rbx,4), %r11d
cmovlq %r10, %rbx
movq %rbx, (%r8,%r10,8)
addq $-0x1, %r10
jb 0x33a3
movq %rax, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
movq 0x18(%rdi), %rax
addq %rdx, %rax
xorl %ecx, %ecx
movdqu (%rax,%rcx,8), %xmm1
paddq %xmm0, %xmm1
movdqu %xmm1, (%rax,%rcx,8)
addq $0x2, %rcx
cmpq $0x400, %rcx            # imm = 0x400
jne 0x33e4
addq 0x20(%rdi), %rdx
xorl %eax, %eax
movdqu (%rdx,%rax,8), %xmm1
paddq %xmm0, %xmm1
movdqu %xmm1, (%rdx,%rax,8)
addq $0x2, %rax
cmpq $0x400, %rax            # imm = 0x400
jne 0x3405
popq %rbx
retq