LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: iTruth[P]klotski/klotski_board.cpp
// Function: klotski_board::update_zero_pos() const
void klotski_board::update_zero_pos() const{
	if(situation[zero_y][zero_x] == 0){
		return;
	}
	for (int i = 0; i < dy; ++i) {
		for (int j = 0; j < dx; ++j) {
			if(situation[i][j] == 0){
				zero_x = j;
				zero_y = i;
				return;
			}
		}
	}
	throw std::runtime_error("Can not find zero on klotski board");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq %rax, %rdi
addq $0x18, %rdi
movslq 0x14(%rax), %rsi
callq 0xe7c0
movq %rax, %rdi
movq -0x28(%rbp), %rax
movslq 0x10(%rax), %rsi
callq 0xe7e0
cmpl $0x0, (%rax)
jne 0xdf0e
jmp 0xdfd2
movl $0x0, -0xc(%rbp)
movq -0x28(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl 0xc(%rcx), %eax
jge 0xdf82
movl $0x0, -0x10(%rbp)
movq -0x28(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl 0x8(%rcx), %eax
jge 0xdf75
movq -0x28(%rbp), %rdi
addq $0x18, %rdi
movslq -0xc(%rbp), %rsi
callq 0xe7c0
movq %rax, %rdi
movslq -0x10(%rbp), %rsi
callq 0xe7e0
cmpl $0x0, (%rax)
jne 0xdf68
movq -0x28(%rbp), %rax
movl -0x10(%rbp), %ecx
movl %ecx, 0x10(%rax)
movl -0xc(%rbp), %ecx
movl %ecx, 0x14(%rax)
jmp 0xdfd2
jmp 0xdf6a
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0xdf28
jmp 0xdf77
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0xdf15
movl $0x10, %edi
callq 0x3130
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x30(%rbp)
leaq 0xa7b9(%rip), %rsi      # 0x18756
callq 0x30d0
jmp 0xdfa4
movq -0x30(%rbp), %rdi
movq 0x16041(%rip), %rsi     # 0x23ff0
movq 0x15fda(%rip), %rdx     # 0x23f90
callq 0x34b0
movq -0x30(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x3210
jmp 0xdfd8
addq $0x30, %rsp
popq %rbp
retq
movq -0x18(%rbp), %rdi
callq 0x34e0
nopw %cs:(%rax,%rax)
// File: iTruth[P]klotski/klotski_board.cpp
// Function: klotski_board::is_nums_linear(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&)
bool klotski_board::is_nums_linear(const klotski_board::situation_type& situation) noexcept{
	std::vector<int> linear_situation;
	for(const auto& i: situation){
		for(int j: i){
			linear_situation.push_back(j);
		}
	}
	std::sort(linear_situation.begin(), linear_situation.end());
	int last_num = -1;
	for(const auto i: linear_situation){
		if(last_num != i-1){
			return false;
		}
		last_num = i;
	}
	return true;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x10(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x5cf0
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x30(%rbp), %rdi
callq 0x7640
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rdi
callq 0x7670
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x7a30
testb $0x1, %al
jne 0xe36d
jmp 0xe3e9
leaq -0x38(%rbp), %rdi
callq 0x7aa0
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rdi
callq 0x7d30
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rdi
callq 0x7d60
movq %rax, -0x60(%rbp)
leaq -0x58(%rbp), %rdi
leaq -0x60(%rbp), %rsi
callq 0xb920
testb $0x1, %al
jne 0xe3af
jmp 0xe3d9
leaq -0x58(%rbp), %rdi
callq 0xb9d0
movl (%rax), %eax
movl %eax, -0x64(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x64(%rbp), %rsi
callq 0x5d10
jmp 0xe3cc
jmp 0xe3ce
leaq -0x58(%rbp), %rdi
callq 0xe690
jmp 0xe39c
jmp 0xe3db
leaq -0x38(%rbp), %rdi
callq 0x7ac0
jmp 0xe35a
leaq -0x28(%rbp), %rdi
movq %rdi, -0xa8(%rbp)
callq 0xafb0
movq -0xa8(%rbp), %rdi
movq %rax, -0x70(%rbp)
callq 0xae40
movq %rax, -0x78(%rbp)
movq -0x70(%rbp), %rdi
movq -0x78(%rbp), %rsi
callq 0xeae0
jmp 0xe41c
movl $0xffffffff, -0x7c(%rbp) # imm = 0xFFFFFFFF
leaq -0x28(%rbp), %rax
movq %rax, -0x88(%rbp)
movq -0x88(%rbp), %rdi
callq 0xafb0
movq %rax, -0x90(%rbp)
movq -0x88(%rbp), %rdi
callq 0xae40
movq %rax, -0x98(%rbp)
leaq -0x90(%rbp), %rdi
leaq -0x98(%rbp), %rsi
callq 0xb8c0
testb $0x1, %al
jne 0xe46d
jmp 0xe4b8
leaq -0x90(%rbp), %rdi
callq 0xb900
movl (%rax), %eax
movl %eax, -0x9c(%rbp)
movl -0x7c(%rbp), %eax
movl -0x9c(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
je 0xe4a1
movb $0x0, -0x1(%rbp)
movl $0x1, -0xa0(%rbp)
jmp 0xe4c6
movl -0x9c(%rbp), %eax
movl %eax, -0x7c(%rbp)
leaq -0x90(%rbp), %rdi
callq 0xb9f0
jmp 0xe454
movb $0x1, -0x1(%rbp)
movl $0x1, -0xa0(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x5e00
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rdi
callq 0x5bd0
nopw %cs:(%rax,%rax)
// File: iTruth[P]klotski/klotski_search.cpp
// Function: klotski_search::get_zero_pos(std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>> const&) const
std::tuple<int, int> klotski_search::get_zero_pos(const klotski_board::situation_type& situation_cur) const{
	int x = 0;
	int y = 0;
	for(auto i=situation_cur.cbegin(); i!=situation_cur.cend(); ++i, ++y){
		x = 0;
		for(auto j=i->cbegin(); j!=i->cend(); ++j, ++x){
			if(*j == 0){
				return std::make_tuple(x, y);
			}
		}
	}
	throw std::runtime_error("can not find zero");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x60(%rbp)
movq %rdi, %rax
movq %rax, -0x58(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x18(%rbp), %rdi
callq 0xe870
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rdi
callq 0xe8a0
movq %rax, -0x30(%rbp)
leaq -0x28(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x7a30
testb $0x1, %al
jne 0x1312d
jmp 0x131c9
movl $0x0, -0x1c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xe8d0
movq %rax, %rdi
callq 0xb850
movq %rax, -0x38(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xe8d0
movq %rax, %rdi
callq 0xb960
movq %rax, -0x40(%rbp)
leaq -0x38(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xb920
testb $0x1, %al
jne 0x13171
jmp 0x131b0
leaq -0x38(%rbp), %rdi
callq 0xb9d0
cmpl $0x0, (%rax)
jne 0x1319a
movq -0x60(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
leaq -0x20(%rbp), %rdx
callq 0x13640
movq -0x58(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
jmp 0x1319c
leaq -0x38(%rbp), %rdi
callq 0xe690
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x13149
jmp 0x131b2
leaq -0x28(%rbp), %rdi
callq 0x7ac0
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x1310a
movl $0x10, %edi
callq 0x3130
movq %rax, %rdi
movq %rdi, %rax
movq %rax, -0x68(%rbp)
leaq 0x566c(%rip), %rsi      # 0x18850
callq 0x30d0
jmp 0x131eb
movq -0x68(%rbp), %rdi
movq 0x10dfa(%rip), %rsi     # 0x23ff0
movq 0x10d93(%rip), %rdx     # 0x23f90
callq 0x34b0
movq -0x68(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x48(%rbp)
movl %eax, -0x4c(%rbp)
callq 0x3210
movq -0x48(%rbp), %rdi
callq 0x34e0
// File: iTruth[P]klotski/klotski_search.cpp
// Function: klotski_search::build_route(klotski_search::record_item const&)
void klotski_search::build_route(const record_item& item){
	const record_item* cur_item = &item;
	last_route.clear();
	auto last_orientation = record_item::Undefined;
	while(cur_item != nullptr){
		if(cur_item->Orientation != last_orientation){
			last_route.push_front(cur_item->situation);
			last_orientation = cur_item->Orientation;
		}
		cur_item = cur_item->prev;
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
addq $0x20, %rdi
callq 0x132e0
movl $0x2, -0x1c(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x1328c
movq -0x18(%rbp), %rax
movl 0x18(%rax), %eax
cmpl -0x1c(%rbp), %eax
je 0x1327e
movq -0x28(%rbp), %rdi
addq $0x20, %rdi
movq -0x18(%rbp), %rsi
callq 0x13680
movq -0x18(%rbp), %rax
movl 0x18(%rax), %eax
movl %eax, -0x1c(%rbp)
movq -0x18(%rbp), %rax
movq 0x20(%rax), %rax
movq %rax, -0x18(%rbp)
jmp 0x13250
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: veghead[P]vintage-wireless-keypad/cletus.cpp
// Function: Cletus::foundbit(int)
void Cletus::foundbit(int b) {
    if (debug) std::cout << "BIT:" << b << std::endl;
    // shift a bit into our store. 
    working_byte  = ((working_byte << 1) | (b & 1));
    // Once we have a 
    // byte's worth, push it into our vector
    if (++gotbits % BITS_PER_BYTE == 0) {
        bytes.push_back(working_byte);
        working_byte = 0;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
testb $0x1, 0x7c(%rax)
je 0x240a
movq 0x7bec(%rip), %rdi      # 0x9fd0
leaq 0x3c31(%rip), %rsi      # 0x601c
callq 0x2140
movq %rax, %rdi
movl -0xc(%rbp), %esi
callq 0x2230
movq %rax, %rdi
movq 0x7bb3(%rip), %rsi      # 0x9fb8
callq 0x2160
movq -0x18(%rbp), %rcx
movl 0x5c(%rcx), %eax
shll %eax
movl -0xc(%rbp), %edx
andl $0x1, %edx
orl %edx, %eax
movl %eax, 0x5c(%rcx)
movl 0x78(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x78(%rcx)
movl $0x8, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x2453
movq -0x18(%rbp), %rsi
movq %rsi, %rdi
addq $0x60, %rdi
addq $0x5c, %rsi
callq 0x2c40
movq -0x18(%rbp), %rax
movl $0x0, 0x5c(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)
// File: veghead[P]vintage-wireless-keypad/cletus.cpp
// Function: Cletus::dumpcode()
void Cletus::dumpcode() {
    if (bytes.size() < 1) return;

    for (int val : bytes) {
        try {
            std::string button = buttons.at(val);
            std::cout << button << " ";
        } catch (std::exception e) {
            std::cout << "Invalid (" << std::hex << val << ") ";
        }
    }
    std::cout << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x68(%rbp)
addq $0x60, %rdi
callq 0x2cb0
cmpq $0x1, %rax
jae 0x248b
jmp 0x2636
movq -0x68(%rbp), %rax
addq $0x60, %rax
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2cd0
movq %rax, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x2d00
movq %rax, -0x20(%rbp)
leaq -0x18(%rbp), %rdi
leaq -0x20(%rbp), %rsi
callq 0x2d30
testb $0x1, %al
jne 0x24c7
jmp 0x2623
leaq -0x18(%rbp), %rdi
callq 0x2d70
movq -0x68(%rbp), %rdi
movl (%rax), %eax
movl %eax, -0x24(%rbp)
leaq -0x24(%rbp), %rsi
callq 0x2d90
movq %rax, -0x70(%rbp)
jmp 0x24e8
movq -0x70(%rbp), %rsi
leaq -0x48(%rbp), %rdi
callq 0x20a0
jmp 0x24f7
movq 0x7ad2(%rip), %rdi      # 0x9fd0
leaq -0x48(%rbp), %rsi
callq 0x2120
movq %rax, -0x78(%rbp)
jmp 0x250d
movq -0x78(%rbp), %rdi
leaq 0x3b14(%rip), %rsi      # 0x602c
callq 0x2140
jmp 0x251f
leaq -0x48(%rbp), %rdi
callq 0x20d0
jmp 0x25f5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x2550
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x20d0
movl -0x54(%rbp), %eax
movl $0x1, %ecx
cmpl %ecx, %eax
jne 0x263f
movq -0x50(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x2180
movq %rax, %rsi
leaq -0x60(%rbp), %rdi
callq 0x2dc0
movq -0x88(%rbp), %rdi
callq 0x2090
movq 0x7a41(%rip), %rdi      # 0x9fd0
leaq 0x3a8b(%rip), %rsi      # 0x6021
callq 0x2140
movq %rax, -0x80(%rbp)
jmp 0x25a1
movq -0x80(%rbp), %rdi
leaq 0x834(%rip), %rsi       # 0x2de0
callq 0x2070
movq %rax, -0x90(%rbp)
jmp 0x25ba
movq -0x90(%rbp), %rdi
movl -0x24(%rbp), %esi
callq 0x2230
movq %rax, -0x98(%rbp)
jmp 0x25d2
movq -0x98(%rbp), %rdi
leaq 0x3a4b(%rip), %rsi      # 0x602b
callq 0x2140
jmp 0x25e7
leaq -0x60(%rbp), %rdi
callq 0x2270
callq 0x2220
jmp 0x25f7
leaq -0x18(%rbp), %rdi
callq 0x2e20
jmp 0x24b1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x2270
callq 0x2220
jmp 0x2621
jmp 0x263f
movq 0x79a6(%rip), %rdi      # 0x9fd0
movq 0x7987(%rip), %rsi      # 0x9fb8
callq 0x2160
addq $0xa0, %rsp
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x2240
movq %rax, %rdi
callq 0x2e10
// File: veghead[P]vintage-wireless-keypad/cletus.cpp
// Function: Cletus::reset()
void Cletus::reset() {
    if (debug) std::cout << "RESET" << std::endl;
    dumpcode();
    bytes.clear();
    gotbits = 0;
    working_byte = 0;
    sample_num = 0;
    lastlevel = 0;
    lastchange = 0;
    state = CletusState::QUIET;
    ticklength = 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
testb $0x1, 0x7c(%rax)
je 0x268c
movq 0x795f(%rip), %rdi      # 0x9fd0
leaq 0x39b6(%rip), %rsi      # 0x602e
callq 0x2140
movq %rax, %rdi
movq 0x7931(%rip), %rsi      # 0x9fb8
callq 0x2160
movq -0x10(%rbp), %rdi
callq 0x2460
movq -0x10(%rbp), %rdi
addq $0x60, %rdi
callq 0x2e40
movq -0x10(%rbp), %rax
movl $0x0, 0x78(%rax)
movl $0x0, 0x5c(%rax)
movq $0x0, 0x50(%rax)
movl $0x0, 0x58(%rax)
movq $0x0, 0x40(%rax)
movl $0x0, 0x38(%rax)
movq $0x0, 0x48(%rax)
addq $0x10, %rsp
popq %rbp
retq
// File: suyash[P]chan/examples/filter.cc
// Function: filter(chan::read_chan<int>&, chan::write_chan<int>&, int)
void filter(
	chan::read_chan<int>& in,
	chan::write_chan<int>& out,
	int f
) {
	for (int i = 0 ; i < 30 ; i++) {
		int x = 0;
		in >> x;

		if (x % f == 0) {
			out << x;
		}
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
cmpl $0x1e, -0x18(%rbp)
jge 0x23db
movl $0x0, -0x1c(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x1c(%rbp), %rsi
callq 0x27b0
movl -0x1c(%rbp), %eax
cltd
idivl -0x14(%rbp)
cmpl $0x0, %edx
jne 0x23ce
movq -0x10(%rbp), %rdi
movq (%rdi), %rax
leaq -0x1c(%rbp), %rsi
callq *0x18(%rax)
jmp 0x23d0
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x239a
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: suyash[P]chan/examples/filter.cc
// Function: main
int main() {
	chan::unbuffered_chan<int> ch;
	std::thread(producer, std::ref(ch)).detach();

	chan::unbuffered_chan<int> ch2;
	std::thread(filter, std::ref(ch), std::ref(ch2), 3).detach();

	for (int i = 0 ; i < 10 ; i++) {
		int x = 0;
		ch2 >> x;

		printf("%d\n", x);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x260, %rsp            # imm = 0x260
movl $0x0, -0x4(%rbp)
leaq -0x108(%rbp), %rdi
movq %rdi, -0x258(%rbp)
callq 0x27e0
movq -0x258(%rbp), %rdi
callq 0x2850
movq %rax, -0x118(%rbp)
leaq -0xef(%rip), %rsi       # 0x2340
leaq -0x110(%rbp), %rdi
leaq -0x118(%rbp), %rdx
callq 0x2880
jmp 0x2444
leaq -0x110(%rbp), %rdi
callq 0x2150
jmp 0x2452
leaq -0x110(%rbp), %rdi
callq 0x2940
leaq -0x228(%rbp), %rdi
callq 0x27e0
jmp 0x246c
leaq -0x108(%rbp), %rdi
callq 0x2850
movq %rax, -0x238(%rbp)
leaq -0x228(%rbp), %rdi
callq 0x2850
movq %rax, -0x240(%rbp)
movl $0x3, -0x244(%rbp)
leaq -0x123(%rip), %rsi      # 0x2380
leaq -0x230(%rbp), %rdi
leaq -0x238(%rbp), %rdx
leaq -0x240(%rbp), %rcx
leaq -0x244(%rbp), %r8
callq 0x2970
jmp 0x24c6
leaq -0x230(%rbp), %rdi
callq 0x2150
jmp 0x24d4
leaq -0x230(%rbp), %rdi
callq 0x2940
movl $0x0, -0x248(%rbp)
cmpl $0xa, -0x248(%rbp)
jge 0x25aa
movl $0x0, -0x24c(%rbp)
leaq -0x228(%rbp), %rdi
leaq -0x24c(%rbp), %rsi
callq 0x27b0
jmp 0x2516
movl -0x24c(%rbp), %esi
leaq 0x2ae1(%rip), %rdi      # 0x5004
xorl %eax, %eax
callq 0x2030
jmp 0x252c
jmp 0x252e
movl -0x248(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x248(%rbp)
jmp 0x24ea
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x120(%rbp)
movl %eax, -0x124(%rbp)
jmp 0x25da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x120(%rbp)
movl %eax, -0x124(%rbp)
leaq -0x110(%rbp), %rdi
callq 0x2940
jmp 0x25da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x120(%rbp)
movl %eax, -0x124(%rbp)
jmp 0x25ce
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x120(%rbp)
movl %eax, -0x124(%rbp)
leaq -0x230(%rbp), %rdi
callq 0x2940
jmp 0x25ce
leaq -0x228(%rbp), %rdi
callq 0x2a40
leaq -0x108(%rbp), %rdi
callq 0x2a40
movl -0x4(%rbp), %eax
addq $0x260, %rsp            # imm = 0x260
popq %rbp
retq
leaq -0x228(%rbp), %rdi
callq 0x2a40
leaq -0x108(%rbp), %rdi
callq 0x2a40
movq -0x120(%rbp), %rdi
callq 0x2160
nopw %cs:(%rax,%rax)
// File: sykeben[P]overos/boot.cpp
// Function: main
int main(int argc, char** argv) {
	// This is a simple system loader, it boots the kernel.
	
	clear_screen();
	cout << "[ OverOS Boot ]" << _TERM;
	cout << "Starting the kernel..." << _TERM;
	
	#ifdef _WIN32
		system(".\\os\\kernel"); // Begin kernel execution (win32).
	#else
		system("./os/kernel"); // Begin kernel execution (posix).
	#endif
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x0, -0x4(%rbp)
movl %edi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
callq 0x11c0
movq 0x2dd6(%rip), %rdi      # 0x3fd8
leaq 0xe01(%rip), %rsi       # 0x200a
callq 0x1050
movq %rax, %rdi
movl $0xa, %esi
callq 0x1060
movq 0x2db6(%rip), %rdi      # 0x3fd8
leaq 0xdf1(%rip), %rsi       # 0x201a
callq 0x1050
movq %rax, %rdi
movl $0xa, %esi
callq 0x1060
leaq 0xdef(%rip), %rdi       # 0x2031
callq 0x1030
xorl %eax, %eax
addq $0x10, %rsp
popq %rbp
retq
// File: ArashPartow[P]exprtk-extras/exprtk_exprgen.cpp
// Function: gen_perm(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, unsigned long, std::deque<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>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
inline void gen_perm(const std::string& s,
                     const std::size_t n,
                     std::deque<std::string>& perm_list,
                     const std::string prefix = "")
{
   if (n == 0)
   {
      perm_list.push_back(prefix);
      return;
   }

   for (std::size_t i = 0; i < s.size(); ++i)
   {
      gen_perm(s, n - 1, perm_list,prefix + s[i]);
   }
}

// Assembly:
subq $0x88, %rsp
movq %rcx, 0x28(%rsp)
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
cmpq $0x0, 0x78(%rsp)
jne 0x6d2f
movq 0x28(%rsp), %rsi
movq 0x70(%rsp), %rdi
callq 0x6f20
jmp 0x6df5
movq $0x0, 0x60(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x80(%rsp), %rdi
callq 0x2100
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jae 0x6df5
movq 0x80(%rsp), %rdi
movq %rdi, (%rsp)
movq 0x78(%rsp), %rax
decq %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x60(%rsp), %rsi
callq 0x21e0
movq 0x28(%rsp), %rsi
movsbl (%rax), %edx
leaq 0x40(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x7c80
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x18(%rsp), %rcx
callq 0x6cf0
jmp 0x6dbe
leaq 0x40(%rsp), %rdi
callq 0x20e0
movq 0x60(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x60(%rsp)
jmp 0x6d38
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x20e0
jmp 0x6dfd
addq $0x88, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0x2270
nopw (%rax,%rax)
// File: ctSkennerton[P]fxtract/util/sheap.c
// Function: sheap_pull
SCORE*
sheap_pull(SHEAP *shp)
{
    if (shp->hole < shp->count)
        shp->vec[shp->hole] = shp->vec[--shp->count];
    assert(shp->count > 0);
    SCORE *head = shp->vec[shp->hole = 0];
    int i;
    for (; (i = 2*shp->hole + 1) < shp->count; shp->hole = i) {
        i += i + 1 < shp->count && *shp->vec[i] >= *shp->vec[i+1];
        shp->vec[shp->hole] = shp->vec[i];
    }

    shp->count -= shp->count == shp->hole + 1;
    return head;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x18ec
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rdx
movl 0x4(%rdx), %ecx
addl $-0x1, %ecx
movl %ecx, 0x4(%rdx)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
cmpl $0x0, 0x4(%rax)
jle 0x18f8
jmp 0x1917
leaq 0x17fc(%rip), %rdi      # 0x30fb
leaq 0x1804(%rip), %rsi      # 0x310a
movl $0x3a, %edx
leaq 0x1820(%rip), %rcx      # 0x3132
callq 0x10a0
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
movl $0x0, 0x8(%rcx)
movq (%rax), %rax
movq %rax, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %eax
shll %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x19d1
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movq -0x8(%rbp), %rdx
xorl %eax, %eax
cmpl 0x4(%rdx), %ecx
movb %al, -0x15(%rbp)
jge 0x1990
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
movl -0x14(%rbp), %edx
addl $0x1, %edx
movslq %edx, %rdx
movq (%rcx,%rdx,8), %rcx
cmpl (%rcx), %eax
setge %al
movb %al, -0x15(%rbp)
movb -0x15(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
addl -0x14(%rbp), %eax
movl %eax, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
jmp 0x1931
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
movl 0x8(%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
sete %al
andb $0x1, %al
movzbl %al, %edx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
subl %edx, %ecx
movl %ecx, 0x4(%rax)
movq -0x10(%rbp), %rax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: ctSkennerton[P]fxtract/util/sheap.c
// Function: sheap_push
void
sheap_push(SHEAP *shp, SCORE *scp)
{
    assert(sheap_count(shp) < shp->size);
    shp->count += shp->count == shp->hole;
    int i;
    while ((i = shp->hole - 1) >= 0 && *shp->vec[i /= 2] > *scp) {
        shp->vec[shp->hole] = shp->vec[i];
        shp->hole = i;
    }

    shp->vec[shp->hole] = scp;
    shp->hole = shp->count;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
callq 0x1820
movq -0x8(%rbp), %rcx
cmpl (%rcx), %eax
jge 0x1a33
jmp 0x1a52
leaq 0x1713(%rip), %rdi      # 0x314d
leaq 0x16c9(%rip), %rsi      # 0x310a
movl $0x49, %edx
leaq 0x171d(%rip), %rcx      # 0x316a
callq 0x10a0
movq -0x8(%rbp), %rax
movl 0x4(%rax), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
sete %al
andb $0x1, %al
movzbl %al, %ecx
movq -0x8(%rbp), %rax
addl 0x4(%rax), %ecx
movl %ecx, 0x4(%rax)
movq -0x8(%rbp), %rax
movl 0x8(%rax), %ecx
subl $0x1, %ecx
movl %ecx, -0x14(%rbp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x15(%rbp)
jl 0x1abe
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
movq -0x10(%rbp), %rcx
cmpl (%rcx), %eax
setg %al
movb %al, -0x15(%rbp)
movb -0x15(%rbp), %al
testb $0x1, %al
jne 0x1ac7
jmp 0x1afa
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movl -0x14(%rbp), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
jmp 0x1a72
movq -0x10(%rbp), %rdx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movq -0x8(%rbp), %rcx
movslq 0x8(%rcx), %rcx
movq %rdx, (%rax,%rcx,8)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x8(%rbp), %rax
movl %ecx, 0x8(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: ctSkennerton[P]fxtract/util/sheap.c
// Function: sheap_dump
void
sheap_dump(SHEAP const*shp, FILE *fp)
{
    SCORE *base = shp->count ? (SCORE*)(void*)-1 : NULL;
    int i;
    for (i = 0; i < shp->count; ++i)
        if (base > shp->vec[i]) base = shp->vec[i];
    fprintf(fp, "size=%d count=%d hole=%d\n",
            shp->size, shp->count, shp->hole);
    for (i = 0; i < shp->count; ++i)
        if (i != shp->hole)
            fprintf(fp, "%d: @%04lx %d\n", i, shp->vec[i] - base, *shp->vec[i]);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movl 0x4(%rax), %edx
xorl %eax, %eax
movq $-0x1, %rcx
cmpl $0x0, %edx
cmovneq %rcx, %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x1ba5
movq -0x18(%rbp), %rax
movq -0x8(%rbp), %rcx
movq 0x10(%rcx), %rcx
movslq -0x1c(%rbp), %rdx
cmpq (%rcx,%rdx,8), %rax
jbe 0x1b98
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x18(%rbp)
jmp 0x1b9a
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1b62
movq -0x10(%rbp), %rdi
movq -0x8(%rbp), %rax
movl (%rax), %edx
movq -0x8(%rbp), %rax
movl 0x4(%rax), %ecx
movq -0x8(%rbp), %rax
movl 0x8(%rax), %r8d
leaq 0x15c7(%rip), %rsi      # 0x318c
movb $0x0, %al
callq 0x1190
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x4(%rcx), %eax
jge 0x1c3b
movl -0x1c(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x8(%rcx), %eax
je 0x1c2e
movq -0x10(%rbp), %rdi
movl -0x1c(%rbp), %edx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x1c(%rbp), %rcx
movq (%rax,%rcx,8), %rcx
movq -0x18(%rbp), %rax
subq %rax, %rcx
sarq $0x2, %rcx
movq -0x8(%rbp), %rax
movq 0x10(%rax), %rax
movslq -0x1c(%rbp), %rsi
movq (%rax,%rsi,8), %rax
movl (%rax), %r8d
leaq 0x157f(%rip), %rsi      # 0x31a6
movb $0x0, %al
callq 0x1190
jmp 0x1c30
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x1bd3
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/ptd2ns2.cc
// Function: Friis(double, double, double, double, double, double)
double Friis(double Pt, double Gt, double Gr, double lambda, double L, double d) {
	/*
	 * Friis free space equation:
	 *
	 *       Pt * Gt * Gr * (lambda^2)
	 *   P = --------------------------
	 *       (4 * pi * d)^2 * L
	 */
	if (d == 0.0) //XXX probably better check < MIN_DISTANCE or some such
		return Pt;
	double M = lambda / (4 * PI * d);

	return (Pt * Gt * Gr * (M * M)) / L;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movsd %xmm2, -0x20(%rbp)
movsd %xmm3, -0x28(%rbp)
movsd %xmm4, -0x30(%rbp)
movsd %xmm5, -0x38(%rbp)
movsd -0x38(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x377e
jp 0x377e
movsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x37c0
movsd -0x28(%rbp), %xmm0
movsd 0x687d(%rip), %xmm1     # 0xa008
mulsd -0x38(%rbp), %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
movsd -0x10(%rbp), %xmm0
mulsd -0x18(%rbp), %xmm0
mulsd -0x20(%rbp), %xmm0
movsd -0x40(%rbp), %xmm1
mulsd -0x40(%rbp), %xmm1
mulsd %xmm1, %xmm0
divsd -0x30(%rbp), %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
popq %rbp
retq
nopw (%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/ptd2ns2.cc
// Function: dround(double, double)
static double dround(double number, double precision) {
	number /= precision;
	if (number >= 0) {
		number = floor(number + 0.5);
	} else {
		number = ceil(number - 0.5);
	}
	number *= precision;
	return number;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movsd %xmm0, -0x8(%rbp)
movsd %xmm1, -0x10(%rbp)
movsd -0x10(%rbp), %xmm1
movsd -0x8(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x421c
movsd 0x5e3d(%rip), %xmm0     # 0xa048
addsd -0x8(%rbp), %xmm0
callq 0x3320
movsd %xmm0, -0x8(%rbp)
jmp 0x4237
movsd -0x8(%rbp), %xmm0
movsd 0x5e1f(%rip), %xmm1     # 0xa048
subsd %xmm1, %xmm0
callq 0x3060
movsd %xmm0, -0x8(%rbp)
movsd -0x10(%rbp), %xmm0
mulsd -0x8(%rbp), %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/ranvar.cc
// Function: ErlangRandomVariable::value()
double ErlangRandomVariable::value() {
	double result = 0;
	for (int i = 0; i < k_; i++) {
		result += rng_->exponential(lambda_);
	}
	return result;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rcx
movl -0x14(%rbp), %eax
cmpl 0x18(%rcx), %eax
jge 0x5e56
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
movsd 0x10(%rax), %xmm0
callq 0x6ce0
addsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x10(%rbp)
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x5e23
movsd -0x10(%rbp), %xmm0
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/ranvar.cc
// Function: HyperExponentialRandomVariable::value()
double HyperExponentialRandomVariable::value() {
	double temp, res;
	double u = Random::uniform();

	temp = sqrt((cov_ * cov_ - 1.0) / (2.0 * alpha_ * (1.0 - alpha_)));
	if (u < alpha_)
		res = Random::exponential(avg_ - temp * (1.0 - alpha_) * avg_);
	else
		res = Random::exponential(avg_ + temp * (alpha_) * avg_);
	return (res);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
callq 0x6ef0
movq -0x28(%rbp), %rax
movsd %xmm0, -0x20(%rbp)
movsd 0x18(%rax), %xmm0
movsd 0x18(%rax), %xmm1
mulsd %xmm1, %xmm0
movsd 0x3cd0(%rip), %xmm1     # 0xa248
addsd %xmm1, %xmm0
movsd 0x3cbc(%rip), %xmm1     # 0xa240
mulsd 0x20(%rax), %xmm1
movsd 0x3a7f(%rip), %xmm2     # 0xa010
subsd 0x20(%rax), %xmm2
mulsd %xmm2, %xmm1
divsd %xmm1, %xmm0
callq 0x3160
movq -0x28(%rbp), %rax
movsd %xmm0, -0x10(%rbp)
movsd -0x20(%rbp), %xmm1
movsd 0x20(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x660b
movq -0x28(%rbp), %rax
movsd 0x10(%rax), %xmm1
movsd -0x10(%rbp), %xmm0
movsd 0x3a3e(%rip), %xmm2     # 0xa010
subsd 0x20(%rax), %xmm2
mulsd %xmm2, %xmm0
movsd 0x10(%rax), %xmm2
movq %xmm0, %rax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq %rcx, %rax
movq %rax, %xmm0
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
callq 0x6f10
movsd %xmm0, -0x18(%rbp)
jmp 0x6635
movq -0x28(%rbp), %rax
movsd 0x10(%rax), %xmm1
movsd -0x10(%rbp), %xmm0
mulsd 0x20(%rax), %xmm0
movsd 0x10(%rax), %xmm2
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
callq 0x6f10
movsd %xmm0, -0x18(%rbp)
movsd -0x18(%rbp), %xmm0
addq $0x30, %rsp
popq %rbp
retq
// File: sergiosvieira[P]ptd2ns2/ranvar.cc
// Function: EmpiricalRandomVariable::loadCDF(char const*)
int EmpiricalRandomVariable::loadCDF(const char* filename) {
	FILE* fp;
	char line[256];
	CDFentry* e;

	fp = fopen(filename, "r");
	if (fp == 0)
		return 0;

	if (table_ == 0)
		table_ = new CDFentry[maxEntry_];
	for (numEntry_ = 0; fgets(line, 256, fp); numEntry_++) {
		if (numEntry_ >= maxEntry_) { // resize the CDF table
			maxEntry_ *= 2;
			e = new CDFentry[maxEntry_];
			for (int i = numEntry_ - 1; i >= 0; i--)
				e[i] = table_[i];
			delete table_;
			table_ = e;
		}
		e = &table_[numEntry_];
		// Use * and l together raises a warning
		sscanf(line, "%lf %*f %lf", &e->val_, &e->cdf_);
	}
	fclose(fp);
	return numEntry_;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x18(%rbp), %rdi
leaq 0x3936(%rip), %rsi      # 0xa12f
callq 0x3280
movq %rax, -0x20(%rbp)
cmpq $0x0, -0x20(%rbp)
jne 0x6815
movl $0x0, -0x4(%rbp)
jmp 0x69ee
movq -0x138(%rbp), %rax
cmpq $0x0, 0x30(%rax)
jne 0x685d
movq -0x138(%rbp), %rax
movslq 0x28(%rax), %rax
movl $0x10, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x3030
movq %rax, %rcx
movq -0x138(%rbp), %rax
movq %rcx, 0x30(%rax)
movq -0x138(%rbp), %rax
movl $0x0, 0x24(%rax)
leaq -0x120(%rbp), %rdi
movq -0x20(%rbp), %rdx
movl $0x100, %esi            # imm = 0x100
callq 0x32f0
cmpq $0x0, %rax
je 0x69d8
movq -0x138(%rbp), %rcx
movl 0x24(%rcx), %eax
cmpl 0x28(%rcx), %eax
jl 0x697f
movq -0x138(%rbp), %rax
movl 0x28(%rax), %ecx
shll %ecx
movl %ecx, 0x28(%rax)
movslq 0x28(%rax), %rax
movl $0x10, %ecx
mulq %rcx
movq %rax, %rdi
seto %cl
movq $-0x1, %rax
testb $0x1, %cl
cmovneq %rax, %rdi
callq 0x3030
movq %rax, %rcx
movq -0x138(%rbp), %rax
movq %rcx, -0x128(%rbp)
movl 0x24(%rax), %eax
subl $0x1, %eax
movl %eax, -0x12c(%rbp)
cmpl $0x0, -0x12c(%rbp)
jl 0x6944
movq -0x138(%rbp), %rax
movq 0x30(%rax), %rcx
movslq -0x12c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rcx
movq -0x128(%rbp), %rax
movslq -0x12c(%rbp), %rdx
shlq $0x4, %rdx
addq %rdx, %rax
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rcx
movq %rcx, 0x8(%rax)
movl -0x12c(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x12c(%rbp)
jmp 0x68ee
movq -0x138(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x140(%rbp)
cmpq $0x0, %rax
je 0x696d
movq -0x140(%rbp), %rdi
movl $0x10, %esi
callq 0x3200
movq -0x138(%rbp), %rax
movq -0x128(%rbp), %rcx
movq %rcx, 0x30(%rax)
movq -0x138(%rbp), %rcx
movq 0x30(%rcx), %rax
movslq 0x24(%rcx), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, -0x128(%rbp)
leaq -0x120(%rbp), %rdi
movq -0x128(%rbp), %rdx
addq $0x8, %rdx
movq -0x128(%rbp), %rcx
leaq 0x3894(%rip), %rsi      # 0xa250
movb $0x0, %al
callq 0x31c0
movq -0x138(%rbp), %rax
movl 0x24(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x24(%rax)
jmp 0x686b
movq -0x20(%rbp), %rdi
callq 0x31e0
movq -0x138(%rbp), %rax
movl 0x24(%rax), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw (%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/ranvar.cc
// Function: EmpiricalRandomVariable::value()
double EmpiricalRandomVariable::value() {
	if (numEntry_ <= 0)
		return 0;
	double u = rng_->uniform(minCDF_, maxCDF_);
	int mid = lookup(u);
	if (mid && interpolation_ && u < table_[mid].cdf_)
		return interpolate(u, table_[mid - 1].cdf_, table_[mid - 1].val_,
				table_[mid].cdf_, table_[mid].val_);
	return table_[mid].val_;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpl $0x0, 0x24(%rax)
jg 0x6a27
xorps %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x6b19
movq -0x28(%rbp), %rax
movq 0x8(%rax), %rdi
movsd 0x10(%rax), %xmm0
movsd 0x18(%rax), %xmm1
callq 0x6c80
movq -0x28(%rbp), %rdi
movsd %xmm0, -0x18(%rbp)
movsd -0x18(%rbp), %xmm0
callq 0x6b30
movl %eax, -0x1c(%rbp)
cmpl $0x0, -0x1c(%rbp)
je 0x6afc
movq -0x28(%rbp), %rax
cmpl $0x0, 0x20(%rax)
je 0x6afc
movq -0x28(%rbp), %rax
movsd -0x18(%rbp), %xmm1
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x6afc
movq -0x28(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
movq 0x30(%rdi), %rax
movl -0x1c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm1
movq 0x30(%rdi), %rax
movl -0x1c(%rbp), %ecx
subl $0x1, %ecx
movslq %ecx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm2
movq 0x30(%rdi), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd (%rax), %xmm3
movq 0x30(%rdi), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm4
movq (%rdi), %rax
callq *0x10(%rax)
movsd %xmm0, -0x8(%rbp)
jmp 0x6b19
movq -0x28(%rbp), %rax
movq 0x30(%rax), %rax
movslq -0x1c(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movsd 0x8(%rax), %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/ranvar.cc
// Function: EmpiricalRandomVariable::lookup(double)
int EmpiricalRandomVariable::lookup(double u) {
	// always return an index whose value is >= u
	int lo, hi, mid;
	if (u <= table_[0].cdf_)
		return 0;
	for (lo = 1, hi = numEntry_ - 1; lo < hi;) {
		mid = (lo + hi) / 2;
		if (u > table_[mid].cdf_)
			lo = mid + 1;
		else
			hi = mid;
	}
	return lo;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x30(%rbp)
movsd -0x18(%rbp), %xmm1
movq 0x30(%rax), %rax
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jb 0x6b61
movl $0x0, -0x4(%rbp)
jmp 0x6bc7
movq -0x30(%rbp), %rax
movl $0x1, -0x1c(%rbp)
movl 0x24(%rax), %eax
subl $0x1, %eax
movl %eax, -0x20(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x20(%rbp), %eax
jge 0x6bc1
movl -0x1c(%rbp), %eax
addl -0x20(%rbp), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, %ecx
movq -0x30(%rbp), %rax
movl %ecx, -0x24(%rbp)
movsd -0x18(%rbp), %xmm0
movq 0x30(%rax), %rax
movslq -0x24(%rbp), %rcx
shlq $0x4, %rcx
addq %rcx, %rax
ucomisd (%rax), %xmm0
jbe 0x6bb9
movl -0x24(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x6bbf
movl -0x24(%rbp), %eax
movl %eax, -0x20(%rbp)
jmp 0x6b75
movl -0x1c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
popq %rbp
retq
nopl (%rax)
// File: sergiosvieira[P]ptd2ns2/ranvar.cc
// Function: EmpiricalRandomVariable::interpolate(double, double, double, double, double)
double EmpiricalRandomVariable::interpolate(double x, double x1, double y1,
		double x2, double y2) {
	double value = y1 + (x - x1) * (y2 - y1) / (x2 - x1);
	if (interpolation_ == INTER_INTEGRAL) // round up
		return ceil(value);
	return value;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movsd %xmm1, -0x20(%rbp)
movsd %xmm2, -0x28(%rbp)
movsd %xmm3, -0x30(%rbp)
movsd %xmm4, -0x38(%rbp)
movq -0x10(%rbp), %rax
movsd -0x28(%rbp), %xmm0
movsd -0x18(%rbp), %xmm1
subsd -0x20(%rbp), %xmm1
movsd -0x38(%rbp), %xmm2
subsd -0x28(%rbp), %xmm2
mulsd %xmm2, %xmm1
movsd -0x30(%rbp), %xmm2
subsd -0x20(%rbp), %xmm2
divsd %xmm2, %xmm1
addsd %xmm1, %xmm0
movsd %xmm0, -0x40(%rbp)
cmpl $0x2, 0x20(%rax)
jne 0x6c44
movsd -0x40(%rbp), %xmm0
callq 0x3060
movsd %xmm0, -0x8(%rbp)
jmp 0x6c4e
movsd -0x40(%rbp), %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax)
// File: sergiosvieira[P]ptd2ns2/rng.cc
// Function: RNG::normal(double, double)
double RNG::normal(double avg, double std) {
	static int parity = 0;
	static double nextresult;
	double sam1, sam2, rad;

	if (std == 0)
		return avg;
	if (parity == 0) {
		sam1 = 2 * uniform() - 1;
		sam2 = 2 * uniform() - 1;
		while ((rad = sam1 * sam1 + sam2 * sam2) >= 1) {
			sam1 = 2 * uniform() - 1;
			sam2 = 2 * uniform() - 1;
		}
		rad = sqrt((-2 * log(rad)) / rad);
		nextresult = sam2 * rad;
		parity = 1;
		return (sam1 * rad * std + avg);
	} else {
		parity = 0;
		return (nextresult * std + avg);
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movsd %xmm1, -0x20(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
movsd -0x20(%rbp), %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x71fd
jp 0x71fd
movsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x7343
cmpl $0x0, 0x82ec(%rip)      # 0xf4f0
jne 0x731a
movq -0x40(%rbp), %rdi
callq 0x7170
movq -0x40(%rbp), %rdi
addsd %xmm0, %xmm0
movsd 0x3025(%rip), %xmm1     # 0xa248
addsd %xmm1, %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0x7170
addsd %xmm0, %xmm0
movsd 0x300b(%rip), %xmm1     # 0xa248
addsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
movsd -0x28(%rbp), %xmm0
movsd -0x28(%rbp), %xmm2
movsd -0x30(%rbp), %xmm1
mulsd -0x30(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x38(%rbp)
movsd 0x2da1(%rip), %xmm1     # 0xa010
ucomisd %xmm1, %xmm0
jb 0x72b3
movq -0x40(%rbp), %rdi
callq 0x7170
movq -0x40(%rbp), %rdi
addsd %xmm0, %xmm0
movsd 0x2fba(%rip), %xmm1     # 0xa248
addsd %xmm1, %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0x7170
addsd %xmm0, %xmm0
movsd 0x2fa0(%rip), %xmm1     # 0xa248
addsd %xmm1, %xmm0
movsd %xmm0, -0x30(%rbp)
jmp 0x7246
movsd -0x38(%rbp), %xmm0
callq 0x3180
movaps %xmm0, %xmm1
movsd 0x30d8(%rip), %xmm0     # 0xa3a0
mulsd %xmm1, %xmm0
divsd -0x38(%rbp), %xmm0
callq 0x3160
movsd %xmm0, -0x38(%rbp)
movsd -0x30(%rbp), %xmm0
mulsd -0x38(%rbp), %xmm0
movsd %xmm0, 0x820b(%rip)     # 0xf4f8
movl $0x1, 0x81f9(%rip)      # 0xf4f0
movsd -0x28(%rbp), %xmm0
mulsd -0x38(%rbp), %xmm0
movsd -0x20(%rbp), %xmm2
movsd -0x18(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x7343
movl $0x0, 0x81cc(%rip)      # 0xf4f0
movsd 0x81cc(%rip), %xmm0     # 0xf4f8
movsd -0x20(%rbp), %xmm2
movsd -0x18(%rbp), %xmm1
mulsd %xmm2, %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x40, %rsp
popq %rbp
retq
nop
// File: sergiosvieira[P]ptd2ns2/rng.cc
// Function: RNG::set_seed(long)
void RNG::set_seed(long seed) {
	if (seed == 0) {
		set_seed(HEURISTIC_SEED_SOURCE, seed);
	} else {
		unsigned long seed_vec[6] = { 0, 0, 0, 0, 0, 0 };
		for (int i = 0; i < 6; i++) {
			seed_vec[i] = (unsigned long) seed;
		}
		set_package_seed(seed_vec);
		init();
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x50(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x7485
movq -0x50(%rbp), %rdi
movq -0x10(%rbp), %rax
movl %eax, %edx
movl $0x2, %esi
callq 0x7350
jmp 0x74cc
leaq -0x40(%rbp), %rdi
xorl %esi, %esi
movl $0x30, %edx
callq 0x30f0
movl $0x0, -0x44(%rbp)
cmpl $0x6, -0x44(%rbp)
jge 0x74ba
movq -0x10(%rbp), %rcx
movslq -0x44(%rbp), %rax
movq %rcx, -0x40(%rbp,%rax,8)
movl -0x44(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x44(%rbp)
jmp 0x749c
leaq -0x40(%rbp), %rdi
callq 0x7e80
movq -0x50(%rbp), %rdi
callq 0x7ca0
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/rng.cc
// Function: RNGTest::RNGTest()
RNGTest::RNGTest()
{
	RNG rng(RNG::RAW_SEED_SOURCE, 1L);

	int i;
	long r;
	for (i = 0; i < 10000; i++)
	r = rng.uniform_positive_int();

#ifdef OLD_RNG
	if (r != 1043618065L) {
		fprintf (stderr, "r (%lu) != 1043618065L\n", r);
		exit(-1);
	}
#else
	if (r != 1179983147L) {
		fprintf (stderr, "r (%lu) != 1179983147L\n", r);
		exit(-1);
	}
#endif /* OLD_RNG */

	for (i = 10000; i < 551246; i++)
	r = rng.uniform_positive_int();

#ifdef OLD_RNG
	if (r != 1003L) {
		fprintf (stderr, "r (%lu) != 1003L\n", r);
		exit(-1);
	}
#else
	if (r != 817829295L) {
		fprintf (stderr, "r (%lu) != 817829295L\n", r);
		exit(-1);
	}
#endif /* OLD_RNG */

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x110, %rsp            # imm = 0x110
movq %rdi, -0x8(%rbp)
leaq -0x100(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x9000
movl $0x0, -0x104(%rbp)
cmpl $0x2710, -0x104(%rbp)   # imm = 0x2710
jge 0x756e
leaq -0x100(%rbp), %rdi
callq 0x9030
cltq
movq %rax, -0x110(%rbp)
movl -0x104(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x104(%rbp)
jmp 0x753c
cmpq $0x46551d2b, -0x110(%rbp) # imm = 0x46551D2B
je 0x75a4
movq 0x7a56(%rip), %rax      # 0xefd8
movq (%rax), %rdi
movq -0x110(%rbp), %rdx
leaq 0x2e9d(%rip), %rsi      # 0xa430
movb $0x0, %al
callq 0x32c0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3290
movl $0x2710, -0x104(%rbp)   # imm = 0x2710
cmpl $0x8694e, -0x104(%rbp)  # imm = 0x8694E
jge 0x75e0
leaq -0x100(%rbp), %rdi
callq 0x9030
cltq
movq %rax, -0x110(%rbp)
movl -0x104(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x104(%rbp)
jmp 0x75ae
cmpq $0x30bf15af, -0x110(%rbp) # imm = 0x30BF15AF
je 0x7616
movq 0x79e4(%rip), %rax      # 0xefd8
movq (%rax), %rdi
movq -0x110(%rbp), %rdx
leaq 0x2e43(%rip), %rsi      # 0xa448
movb $0x0, %al
callq 0x32c0
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x3290
addq $0x110, %rsp            # imm = 0x110
popq %rbp
retq
nop
// File: sergiosvieira[P]ptd2ns2/rng.cc
// Function: RNGTest::first_n(RNG::RNGSources, long, int)
void
RNGTest::first_n(RNG::RNGSources source, long seed, int n)
{
	RNG rng(source, seed);

	for (int i = 0; i < n; i++) {
		long r = rng.uniform_positive_int();
		printf("%10lu ", r);
	};
	printf("\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rax
movl %eax, %edx
leaq -0x118(%rbp), %rdi
callq 0x9000
movl $0x0, -0x11c(%rbp)
movl -0x11c(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x769e
leaq -0x118(%rbp), %rdi
callq 0x9030
cltq
movq %rax, -0x128(%rbp)
movq -0x128(%rbp), %rsi
leaq 0x2dd9(%rip), %rdi      # 0xa45f
movb $0x0, %al
callq 0x3040
movl -0x11c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x11c(%rbp)
jmp 0x7658
leaq 0x2f4e(%rip), %rdi      # 0xa5f3
movb $0x0, %al
callq 0x3040
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/rng.cc
// Function: RNGTest::first_n_mil(RNG::RNGSources, long, int, _IO_FILE*)
void
RNGTest::first_n_mil(RNG::RNGSources source, long seed, int n, FILE *outfile)
{
	RNG rng(source, seed);
	// print the first 1000 no, then every millionth upto n millions
	long m = n * 1000000;
	for (int i = 0; i < m; i++) {
		long r = rng.uniform_positive_int();
		if (i < 100 || (i % 1000000 == 0))
		fprintf(outfile, "%10lu ", r);
	};
	fprintf(outfile, "\n");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movl %ecx, -0x1c(%rbp)
movq %r8, -0x28(%rbp)
movl -0xc(%rbp), %esi
movq -0x18(%rbp), %rax
movl %eax, %edx
leaq -0x120(%rbp), %rdi
callq 0x9000
imull $0xf4240, -0x1c(%rbp), %eax # imm = 0xF4240
cltq
movq %rax, -0x128(%rbp)
movl $0x0, -0x12c(%rbp)
movslq -0x12c(%rbp), %rax
cmpq -0x128(%rbp), %rax
jge 0x7779
leaq -0x120(%rbp), %rdi
callq 0x9030
cltq
movq %rax, -0x138(%rbp)
cmpl $0x64, -0x12c(%rbp)
jl 0x774d
movl -0x12c(%rbp), %eax
movl $0xf4240, %ecx          # imm = 0xF4240
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x7766
movq -0x28(%rbp), %rdi
movq -0x138(%rbp), %rdx
leaq 0x2d00(%rip), %rsi      # 0xa45f
movb $0x0, %al
callq 0x32c0
jmp 0x7768
movl -0x12c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x12c(%rbp)
jmp 0x770c
movq -0x28(%rbp), %rdi
leaq 0x2e6f(%rip), %rsi      # 0xa5f3
movb $0x0, %al
callq 0x32c0
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/rng.cc
// Function: RNGTest::verbose_mil()
void
RNGTest::verbose_mil()
{
	FILE *outfile = NULL;
	outfile = fopen("temp.rands", "w");

	if (outfile == NULL)
	fprintf(stderr, "Cannot create temp.rands\n");

	fprintf (outfile, "default: ");
	first_n_mil(RNG::RAW_SEED_SOURCE, 188312339, 5, outfile);
	int i = 1;
	fprintf (outfile, "predef source %2u: ", i);
	first_n_mil(RNG::PREDEF_SEED_SOURCE, i, 5, outfile);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movq $0x0, -0x10(%rbp)
leaq 0x2ca3(%rip), %rdi      # 0xa466
leaq 0x2ca7(%rip), %rsi      # 0xa471
callq 0x3280
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x77f2
movq 0x77f7(%rip), %rax      # 0xefd8
movq (%rax), %rdi
leaq 0x2c88(%rip), %rsi      # 0xa473
movb $0x0, %al
callq 0x32c0
movq -0x10(%rbp), %rdi
leaq 0x2c90(%rip), %rsi      # 0xa48d
movb $0x0, %al
callq 0x32c0
movq -0x20(%rbp), %rdi
movq -0x10(%rbp), %r8
xorl %esi, %esi
movl $0xb396b13, %edx        # imm = 0xB396B13
movl $0x5, %ecx
callq 0x76c0
movl $0x1, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %edx
leaq 0x2c65(%rip), %rsi      # 0xa497
movb $0x0, %al
callq 0x32c0
movq -0x20(%rbp), %rdi
movslq -0x14(%rbp), %rdx
movq -0x10(%rbp), %r8
movl $0x1, %esi
movl $0x5, %ecx
callq 0x76c0
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: sergiosvieira[P]ptd2ns2/rng.cc
// Function: RNGTest::verbose()
void
RNGTest::verbose()
{
	printf ("default: ");
	first_n(RNG::RAW_SEED_SOURCE, 1L, 5);

	int i;
	for (i = 0; i < 64; i++) {
		printf ("predef source %2u: ", i);
		first_n(RNG::PREDEF_SEED_SOURCE, i, 5);
	};

	printf("heuristic seeds should be different from each other and on each run.\n");
	for (i = 0; i < 64; i++) {
		printf ("heuristic source %2u: ", i);
		first_n(RNG::HEURISTIC_SEED_SOURCE, i, 5);
	};
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
leaq 0x2c12(%rip), %rdi      # 0xa48d
movb $0x0, %al
callq 0x3040
movq -0x18(%rbp), %rdi
xorl %esi, %esi
movl $0x1, %edx
movl $0x5, %ecx
callq 0x7620
movl $0x0, -0xc(%rbp)
cmpl $0x40, -0xc(%rbp)
jge 0x78d7
movl -0xc(%rbp), %esi
leaq 0x2be9(%rip), %rdi      # 0xa497
movb $0x0, %al
callq 0x3040
movq -0x18(%rbp), %rdi
movslq -0xc(%rbp), %rdx
movl $0x1, %esi
movl $0x5, %ecx
callq 0x7620
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x789e
leaq 0x2bcd(%rip), %rdi      # 0xa4ab
movb $0x0, %al
callq 0x3040
movl $0x0, -0xc(%rbp)
cmpl $0x40, -0xc(%rbp)
jge 0x7925
movl -0xc(%rbp), %esi
leaq 0x2bf5(%rip), %rdi      # 0xa4f1
movb $0x0, %al
callq 0x3040
movq -0x18(%rbp), %rdi
movslq -0xc(%rbp), %rdx
movl $0x2, %esi
movl $0x5, %ecx
callq 0x7620
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x78ec
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)