LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: kram[P]kram/./src/parser/parser.cpp
// Function: Parser::get_and_expect_token(lexer::Token)
lexer::Token* Parser::get_and_expect_token(lexer::Token expect) {
	lexer::Token* tok = this->get_token();

	if (expect.type != tok->type) {
		std::cout << "Expected: " << expect.print() << "\n";
		std::cout << "Got: " << tok->print() << "\n";
		exit(0);
	}

	return tok;
}

// Assembly:
subq $0xa8, %rsp
movq %rsi, 0x38(%rsp)
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq 0xa0(%rsp), %rdi
callq 0x21200
movq 0x38(%rsp), %rsi
movq %rax, 0x90(%rsp)
movl (%rsi), %eax
movq 0x90(%rsp), %rcx
cmpl (%rcx), %eax
je 0x22b34
movq 0x17599(%rip), %rdi     # 0x39fd8
leaq 0x9557(%rip), %rsi      # 0x2bf9d
callq 0x32d0
movq 0x38(%rsp), %rsi
movq %rax, 0x20(%rsp)
leaq 0x70(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0xd9e0
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
callq 0x32a0
movq %rax, 0x30(%rsp)
jmp 0x22a7a
movq 0x30(%rsp), %rdi
leaq 0x8ddb(%rip), %rsi      # 0x2b861
callq 0x32d0
jmp 0x22a8d
leaq 0x70(%rsp), %rdi
callq 0x31f0
movq 0x1753a(%rip), %rdi     # 0x39fd8
leaq 0x9503(%rip), %rsi      # 0x2bfa8
callq 0x32d0
movq %rax, 0x8(%rsp)
movq 0x90(%rsp), %rsi
leaq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xd9e0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x32a0
movq %rax, 0x18(%rsp)
jmp 0x22adc
movq 0x18(%rsp), %rdi
leaq 0x8d79(%rip), %rsi      # 0x2b861
callq 0x32d0
jmp 0x22aef
leaq 0x40(%rsp), %rdi
callq 0x31f0
xorl %edi, %edi
callq 0x3330
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x31f0
jmp 0x22b44
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x68(%rsp)
movl %eax, 0x64(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x31f0
jmp 0x22b44
movq 0x90(%rsp), %rax
addq $0xa8, %rsp
retq
movq 0x68(%rsp), %rdi
callq 0x3490
nop
// File: kram[P]kram/./src/parser/parser.cpp
// Function: Parser::keyword(lexer::Token*)
Instruction* Parser::keyword(lexer::Token* tok) {
	switch (tok->sub) {
		case lexer::Type::KEYWORD_CLASS: return this->keyword_class(); break;
		case lexer::Type::KEYWORD_FN: return this->keyword_fn(); break;
		case lexer::Type::KEYWORD_IF: return this->keyword_if(); break;
		case lexer::Type::KEYWORD_NEW: return this->keyword_new(); break;
		case lexer::Type::KEYWORD_WHILE: return this->keyword_while(); break;
		case lexer::Type::KEYWORD_RETURN: return this->keyword_return(); break;
		default: break;
	}

	std::cout << "Unknown keyword: " << tok->print() << "\n";
	exit(0);
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x68(%rsp)
movq %rsi, 0x60(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rax
movl 0x4(%rax), %eax
addl $-0xa, %eax
movl %eax, %ecx
movq %rcx, 0x28(%rsp)
subl $0x6, %eax
ja 0x22c50
movq 0x28(%rsp), %rax
leaq 0x9351(%rip), %rcx      # 0x2bf20
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq 0x20(%rsp), %rdi
callq 0x23c00
movq %rax, 0x70(%rsp)
jmp 0x22cd2
movq 0x20(%rsp), %rdi
callq 0x24120
movq %rax, 0x70(%rsp)
jmp 0x22cd2
movq 0x20(%rsp), %rdi
callq 0x24a40
movq %rax, 0x70(%rsp)
jmp 0x22cd2
movq 0x20(%rsp), %rdi
callq 0x25450
movq %rax, 0x70(%rsp)
jmp 0x22cd2
movq 0x20(%rsp), %rdi
callq 0x25ad0
movq %rax, 0x70(%rsp)
jmp 0x22cd2
movq 0x20(%rsp), %rdi
callq 0x260c0
movq %rax, 0x70(%rsp)
jmp 0x22cd2
jmp 0x22c52
movq 0x1737f(%rip), %rdi     # 0x39fd8
leaq 0x93a9(%rip), %rsi      # 0x2c009
callq 0x32d0
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rsi
leaq 0x40(%rsp), %rdi
movq %rdi, 0x10(%rsp)
callq 0xd9e0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x32a0
movq %rax, 0x18(%rsp)
jmp 0x22c94
movq 0x18(%rsp), %rdi
leaq 0x8bc1(%rip), %rsi      # 0x2b861
callq 0x32d0
jmp 0x22ca7
leaq 0x40(%rsp), %rdi
callq 0x31f0
xorl %edi, %edi
callq 0x3330
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x38(%rsp)
movl %eax, 0x34(%rsp)
leaq 0x40(%rsp), %rdi
callq 0x31f0
jmp 0x22cdc
movq 0x70(%rsp), %rax
addq $0x78, %rsp
retq
movq 0x38(%rsp), %rdi
callq 0x3490
nopw %cs:(%rax,%rax)
// File: kram[P]kram/./src/parser/parser.cpp
// Function: Parser::oper(lexer::Token*)
Instruction* Parser::oper(lexer::Token* tok) {
	switch (tok->sub) {
		case lexer::Type::OPERATOR_SQUARE_PAREN_LEFT: return this->oper_list_creation(); break;
		case lexer::Type::OPERATOR_MINUS:             return this->oper_minus();         break;
		default: break;
	}

	std::cout << "Unknown operator: " << tok->print() << "\n";
	exit(0);
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x58(%rsp)
movq %rsi, 0x50(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x50(%rsp), %rax
movl 0x4(%rax), %eax
movl %eax, 0x20(%rsp)
subl $0x22, %eax
je 0x22d3a
jmp 0x22d1b
movl 0x20(%rsp), %eax
subl $0x2e, %eax
jne 0x22d4e
jmp 0x22d26
movq 0x18(%rsp), %rdi
callq 0x231a0
movq %rax, 0x60(%rsp)
jmp 0x22dce
movq 0x18(%rsp), %rdi
callq 0x235d0
movq %rax, 0x60(%rsp)
jmp 0x22dce
jmp 0x22d50
movq 0x17281(%rip), %rdi     # 0x39fd8
leaq 0x9261(%rip), %rsi      # 0x2bfbf
callq 0x32d0
movq %rax, (%rsp)
movq 0x50(%rsp), %rsi
leaq 0x30(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0xd9e0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
callq 0x32a0
movq %rax, 0x10(%rsp)
jmp 0x22d90
movq 0x10(%rsp), %rdi
leaq 0x8ac5(%rip), %rsi      # 0x2b861
callq 0x32d0
jmp 0x22da3
leaq 0x30(%rsp), %rdi
callq 0x31f0
xorl %edi, %edi
callq 0x3330
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x31f0
jmp 0x22dd8
movq 0x60(%rsp), %rax
addq $0x68, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0x3490
nopw %cs:(%rax,%rax)
// File: kram[P]kram/./src/parser/parser.cpp
// Function: Parser::name(lexer::Token*, ON)
Instruction* Parser::name(lexer::Token* tok, ON on) {

	Instruction* ins;

	if (on == ON::FUNCTION_PARAMETER_LIST) {
		ins = new Instruction(Ins::FUNCTION_PARAMETER);
	} else {
		ins = new Instruction(Ins::NAME);
	}
	
	ins->name = tok->value;

	return this->lookahead(ins, on);
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movq 0x40(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpl $0x4, 0x34(%rsp)
jne 0x22f9a
movl $0x80, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movl $0xb, %esi
callq 0x26dd0
jmp 0x22f74
movq 0x8(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0x22fde
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
callq 0x32b0
jmp 0x2300d
movl $0x80, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
movl $0x3, %esi
callq 0x26dd0
jmp 0x22fba
movq (%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0x22fde
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x20(%rsp)
movl %eax, 0x1c(%rsp)
callq 0x32b0
jmp 0x2300d
movq 0x38(%rsp), %rsi
addq $0x8, %rsi
movq 0x28(%rsp), %rdi
addq $0x8, %rdi
callq 0x3040
movq 0x10(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x34(%rsp), %edx
callq 0x213f0
addq $0x48, %rsp
retq
movq 0x20(%rsp), %rdi
callq 0x3490
nopw (%rax,%rax)
// File: kram[P]kram/./src/parser/parser.cpp
// Function: Parser::boolean_init(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
Instruction* Parser::boolean_init(std::string val) {
	Instruction* ins = new Instruction(Ins::LITERAL);

	if (val == "true") {
		ins->value = new Value(Type::BOOL, 1);
	} else {
		ins->value = new Value(Type::BOOL, 0);
	}

	return ins;
}

// Assembly:
subq $0x48, %rsp
movq %rsi, 0x10(%rsp)
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl $0x80, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x18(%rsp)
movl $0x2, %esi
callq 0x26dd0
jmp 0x26374
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rsp)
leaq 0x4ec1(%rip), %rsi      # 0x2b24b
callq 0x4070
testb $0x1, %al
jne 0x26395
jmp 0x26402
movl $0x10, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, 0x8(%rsp)
movl $0x3, %esi
movsd 0x5071(%rip), %xmm0     # 0x2b428
callq 0x1dee0
jmp 0x263be
movq 0x8(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x28(%rax)
jmp 0x2644d
movq 0x18(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
callq 0x32b0
jmp 0x26457
movq 0x8(%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
callq 0x32b0
jmp 0x26457
movl $0x10, %edi
callq 0x32e0
movq %rax, %rdi
movq %rdi, %rax
movq %rax, (%rsp)
movl $0x3, %esi
xorps %xmm0, %xmm0
callq 0x1dee0
jmp 0x26425
movq (%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x28(%rax)
jmp 0x2644d
movq (%rsp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x28(%rsp)
movl %eax, 0x24(%rsp)
callq 0x32b0
jmp 0x26457
movq 0x30(%rsp), %rax
addq $0x48, %rsp
retq
movq 0x28(%rsp), %rdi
callq 0x3490
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/backend.cpp
// Function: BackEnd::initialize()
void BackEnd::initialize()
{
    decodedFrequencies.clear();
    realFrequenciesIndices.clear();

    // peeling engine checks for singletons only in the updated (changed) bins
    // initialize all to true so that all the bins are check on the first run through
    for (int binAbsoluteIndex = 0; binAbsoluteIndex < config->getBinsSum(); binAbsoluteIndex++)
    {
        changed[binAbsoluteIndex] = true;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
addq $0x30, %rdi
callq 0x5d20
movq -0x18(%rbp), %rdi
addq $0x68, %rdi
callq 0x5d40
movl $0x0, -0xc(%rbp)
movq -0x18(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, -0x1c(%rbp)
movq 0x10(%rax), %rdi
callq 0xeaf0
movl %eax, %ecx
movl -0x1c(%rbp), %eax
cmpl %ecx, %eax
jge 0x51bb
movq -0x18(%rbp), %rax
movq 0x80(%rax), %rax
movslq -0xc(%rbp), %rcx
movb $0x1, (%rax,%rcx)
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x5181
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/backend.cpp
// Function: BackEnd::printObservations()
void BackEnd::printObservations() {
    for (int stagePrint = 0; stagePrint < config->getBinsNb(); stagePrint++) {
        std::cout<< "-------------------------------" << std::endl;
        for (int r = 0; r < config->getBinNumItems(stagePrint); r++) {
            for (int c = 0; c < config->getDelaysNb(); c++) {
                std::cout << observationMatrix[r + config->getBinOffset(stagePrint)][c] << ", ";
            }
            std::cout << std::endl;
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl $0x0, -0xc(%rbp)
movq -0x20(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, -0x24(%rbp)
movq 0x10(%rax), %rdi
callq 0xeb10
movl %eax, %ecx
movl -0x24(%rbp), %eax
cmpl %ecx, %eax
jge 0x571c
movq 0x2a9a6(%rip), %rdi     # 0x2ffc8
leaq 0x1a9fb(%rip), %rsi     # 0x20024
callq 0x42b0
movq %rax, %rdi
movq 0x2a978(%rip), %rsi     # 0x2ffb0
callq 0x42f0
movl $0x0, -0x10(%rbp)
movq -0x20(%rbp), %rax
movl -0x10(%rbp), %ecx
movl %ecx, -0x28(%rbp)
movq 0x10(%rax), %rdi
movl -0xc(%rbp), %esi
callq 0xea50
movl %eax, %ecx
movl -0x28(%rbp), %eax
cmpl %ecx, %eax
jge 0x570c
movl $0x0, -0x14(%rbp)
movq -0x20(%rbp), %rax
movl -0x14(%rbp), %ecx
movl %ecx, -0x2c(%rbp)
movq 0x10(%rax), %rdi
callq 0xeb30
movl %eax, %ecx
movl -0x2c(%rbp), %eax
cmpl %ecx, %eax
jge 0x56eb
movq -0x20(%rbp), %rax
movq 0x28(%rax), %rcx
movq %rcx, -0x38(%rbp)
movl -0x10(%rbp), %ecx
movl %ecx, -0x3c(%rbp)
movq 0x10(%rax), %rdi
movl -0xc(%rbp), %esi
callq 0xeac0
movl -0x3c(%rbp), %ecx
movl %eax, %edx
movq -0x38(%rbp), %rax
addl %edx, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rsi
movslq -0x14(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rsi
movq 0x2a8fc(%rip), %rdi     # 0x2ffc8
callq 0x4370
movq %rax, %rdi
leaq 0x1b7e0(%rip), %rsi     # 0x20ebb
callq 0x42b0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x566e
movq 0x2a8d6(%rip), %rdi     # 0x2ffc8
movq 0x2a8b7(%rip), %rsi     # 0x2ffb0
callq 0x42f0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x5644
jmp 0x570e
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x55fb
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/backend.cpp
// Function: BackEnd::getHash(int, int)
int BackEnd::getHash(int stage, int spectralIndex)
{
    bool** subsamplingMatrix = config->getSubsamplingMatrix(stage);
    int ret = 0;

    for (int r = 0; r < config->getBinNumIndices(stage); r++) {
        bool currState = false;
        for (int c = 0; c < config->getSignalBitLength(); c++) {
            // currState = currState ^ (subsamplingMatrix[r][c] & (spectralIndexBinary[c] == 1));
            int shifted = 1 << (config->getSignalBitLength() - c - 1);
            currState = currState ^ (subsamplingMatrix[r][c] & ( (spectralIndex & shifted) == shifted));

        }
        if (currState)
            ret += 1<< (config->getBinNumIndices(stage)- r-1);
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq 0x10(%rax), %rdi
movl -0xc(%rbp), %esi
callq 0xec90
movq %rax, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl $0x0, -0x20(%rbp)
movq -0x38(%rbp), %rax
movl -0x20(%rbp), %ecx
movl %ecx, -0x3c(%rbp)
movq 0x10(%rax), %rdi
movl -0xc(%rbp), %esi
callq 0xea90
movl %eax, %ecx
movl -0x3c(%rbp), %eax
cmpl %ecx, %eax
jge 0x58cc
movb $0x0, -0x21(%rbp)
movl $0x0, -0x28(%rbp)
movq -0x38(%rbp), %rax
movl -0x28(%rbp), %ecx
movl %ecx, -0x40(%rbp)
movq 0x10(%rax), %rdi
callq 0xe940
movl %eax, %ecx
movl -0x40(%rbp), %eax
cmpl %ecx, %eax
jge 0x5891
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xe940
movl %eax, %ecx
subl -0x28(%rbp), %ecx
subl $0x1, %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, -0x2c(%rbp)
movb -0x21(%rbp), %al
andb $0x1, %al
movzbl %al, %eax
movq -0x18(%rbp), %rcx
movslq -0x20(%rbp), %rdx
movq (%rcx,%rdx,8), %rcx
movslq -0x28(%rbp), %rdx
movb (%rcx,%rdx), %cl
andb $0x1, %cl
movzbl %cl, %ecx
movl -0x10(%rbp), %edx
andl -0x2c(%rbp), %edx
cmpl -0x2c(%rbp), %edx
sete %dl
andb $0x1, %dl
movzbl %dl, %edx
andl %edx, %ecx
xorl %ecx, %eax
cmpl $0x0, %eax
setne %al
andb $0x1, %al
movb %al, -0x21(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x5806
testb $0x1, -0x21(%rbp)
je 0x58bc
movq -0x38(%rbp), %rax
movq 0x10(%rax), %rdi
movl -0xc(%rbp), %esi
callq 0xea90
movl %eax, %ecx
subl -0x20(%rbp), %ecx
subl $0x1, %ecx
movl $0x1, %eax
shll %cl, %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x1c(%rbp)
jmp 0x58be
movl -0x20(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x20(%rbp)
jmp 0x57d8
movl -0x1c(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::BinProcessor(Chrono*, Config const*, std::complex<double>**, std::vector<int, std::allocator<int>> const&)
BinProcessor::BinProcessor(Chrono *newChrono, const Config* newConfig, ffast_complex** newObservationMatrix, const std::vector<int>& newDelays):
    Step(newChrono, newConfig), observationMatrix(newObservationMatrix), delays(newDelays)
{
    signalLength     = config->getSignalLength();
    delaysNb         = config->getDelaysNb();
    chainsNb         = config->getChainsNb();
    delaysPerBunchNb = config->getDelaysPerBunchNb();

    MLdetection         = config->needToUseMaximumLikelihoodDetection();

    signalVector    = (ffast_complex*) malloc(delaysNb * sizeof(ffast_complex));
    thresholds      = (ffast_real*) malloc(config->getBinsNb() * sizeof(ffast_real));
    directionVector = (ffast_complex*) malloc(delaysNb * sizeof(ffast_complex));
    computeThresholds();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq %r8, -0x28(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x40(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x58e0
movq -0x40(%rbp), %rdi
leaq 0x2678c(%rip), %rax     # 0x2f908
movq %rax, (%rdi)
movq -0x20(%rbp), %rax
movq %rax, 0x18(%rdi)
addq $0x40, %rdi
xorps %xmm1, %xmm1
movaps %xmm1, %xmm0
callq 0x7dd0
jmp 0x9198
movq -0x40(%rbp), %rdi
addq $0x88, %rdi
movq %rdi, -0x48(%rbp)
movq -0x28(%rbp), %rsi
callq 0xa090
jmp 0x91b2
movq -0x40(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xe9a0
movl %eax, -0x4c(%rbp)
jmp 0x91c4
movq -0x40(%rbp), %rax
movl -0x4c(%rbp), %ecx
movl %ecx, 0x20(%rax)
movq 0x10(%rax), %rdi
callq 0xeb30
movl %eax, -0x50(%rbp)
jmp 0x91dc
movq -0x40(%rbp), %rax
movl -0x50(%rbp), %ecx
movl %ecx, 0x24(%rax)
movq 0x10(%rax), %rdi
callq 0xeb50
movl %eax, -0x54(%rbp)
jmp 0x91f4
movq -0x40(%rbp), %rax
movl -0x54(%rbp), %ecx
movl %ecx, 0x28(%rax)
movq 0x10(%rax), %rdi
callq 0xeb70
movl %eax, -0x58(%rbp)
jmp 0x920c
movq -0x40(%rbp), %rax
movl -0x58(%rbp), %ecx
movl %ecx, 0x2c(%rax)
movq 0x10(%rax), %rdi
callq 0xe9c0
movb %al, -0x59(%rbp)
jmp 0x9224
movq -0x40(%rbp), %rax
movb -0x59(%rbp), %cl
andb $0x1, %cl
movb %cl, 0x68(%rax)
movslq 0x24(%rax), %rdi
shlq $0x4, %rdi
callq 0x43e0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x50(%rax)
movq 0x10(%rax), %rdi
callq 0xeb10
movl %eax, -0x60(%rbp)
jmp 0x9257
movl -0x60(%rbp), %eax
movslq %eax, %rdi
shlq $0x3, %rdi
callq 0x43e0
movq %rax, %rcx
movq -0x40(%rbp), %rax
movq %rcx, 0x78(%rax)
movslq 0x24(%rax), %rdi
shlq $0x4, %rdi
callq 0x43e0
movq -0x40(%rbp), %rdi
movq %rax, 0x80(%rdi)
callq 0x92d0
jmp 0x9290
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x92b9
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
callq 0x5ad0
movq -0x40(%rbp), %rdi
callq 0x5e90
movq -0x30(%rbp), %rdi
callq 0x4540
nopl (%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::process()
void BinProcessor::process()
{
    if (MLdetection)
    {
        // MLprocess tries out all possible locations and estimates bin signal
        MLprocess();
    }
    else
    {
        computeLocation();
        estimateBinSignal();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
testb $0x1, 0x68(%rax)
je 0x9905
movq -0x10(%rbp), %rdi
callq 0x9920
jmp 0x9917
movq -0x10(%rbp), %rdi
callq 0x9ac0
movq -0x10(%rbp), %rdi
callq 0x9c80
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::adjustTo(int, int, int)
void BinProcessor::adjustTo(int newBinAbsoluteIndex, int newBinRelativeIndex, int newStage)
{
    binAbsoluteIndex = newBinAbsoluteIndex;
    binRelativeIndex = newBinRelativeIndex;
    stage   = newStage;
    samplingPattern = config->getSamplingPattern(stage);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movl -0xc(%rbp), %ecx
movl %ecx, 0x58(%rax)
movl -0x10(%rbp), %ecx
movl %ecx, 0x5c(%rax)
movl -0x14(%rbp), %ecx
movl %ecx, 0x60(%rax)
movq 0x10(%rax), %rdi
movl 0x60(%rax), %esi
callq 0xea20
movl %eax, %ecx
movq -0x20(%rbp), %rax
movl %ecx, 0x64(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::isSingleton()
bool BinProcessor::isSingleton()
{
    // a singleton is not zero-ton
    if (isZeroTon())
    {
        return false;
    }
    process();
    
    // if the bin is a singleton, when we peel the frequency from the bin
    // the remaining power should be coming from noise only
    // also we need the singleton to have energy larger than a threshold (minimumEnergy)

    if (noise / delaysNb <= thresholds[stage] && config->getDelaysNb()*std::norm(amplitude) > minimumEnergy)
    {
        // The bin is a singleton
        return true;
    }

    // The bin is a 'multi-ton'
    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x18(%rbp)
callq 0x9f80
testb $0x1, %al
jne 0x9eef
jmp 0x9ef5
movb $0x0, -0x1(%rbp)
jmp 0x9f68
movq -0x18(%rbp), %rdi
movq (%rdi), %rax
callq *0x10(%rax)
movq -0x18(%rbp), %rcx
movsd 0x70(%rcx), %xmm1
cvtsi2sdl 0x24(%rcx), %xmm0
divsd %xmm0, %xmm1
movq 0x78(%rcx), %rax
movslq 0x60(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
ucomisd %xmm1, %xmm0
jb 0x9f64
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xeb30
movq -0x18(%rbp), %rdi
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x20(%rbp)
addq $0x40, %rdi
callq 0xa180
movq -0x18(%rbp), %rax
movaps %xmm0, %xmm1
movsd -0x20(%rbp), %xmm0
mulsd %xmm1, %xmm0
ucomisd 0x30(%rax), %xmm0
jbe 0x9f64
movb $0x1, -0x1(%rbp)
jmp 0x9f68
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/binprocessor.cpp
// Function: BinProcessor::isZeroTon() const
bool BinProcessor::isZeroTon() const
{
    ffast_real energy = 0;

    for (int delayIndex=0; delayIndex<delaysNb; delayIndex++)
    {
        energy += std::norm(observationMatrix[binAbsoluteIndex][delayIndex]);
    }
    if (energy <= thresholds[stage])
    {
        return true;
    }

    return false;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movq -0x28(%rbp), %rcx
movl -0x1c(%rbp), %eax
cmpl 0x24(%rcx), %eax
jge 0x9fe4
movq -0x28(%rbp), %rcx
movq 0x18(%rcx), %rax
movslq 0x58(%rcx), %rcx
movq (%rax,%rcx,8), %rdi
movslq -0x1c(%rbp), %rax
shlq $0x4, %rax
addq %rax, %rdi
callq 0xa180
addsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x18(%rbp)
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0x9fa3
movq -0x28(%rbp), %rcx
movsd -0x18(%rbp), %xmm1
movq 0x78(%rcx), %rax
movslq 0x60(%rcx), %rcx
movsd (%rax,%rcx,8), %xmm0
ucomisd %xmm1, %xmm0
jb 0xa006
movb $0x1, -0x1(%rbp)
jmp 0xa00a
movb $0x0, -0x1(%rbp)
movb -0x1(%rbp), %al
andb $0x1, %al
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/include/utils.h
// Function: mapToInt(int, int, int, int)
inline int mapToInt(int shorter, int lenS, int longer, int lenL) {
    int shortCounter = 0;
    int ret = 0;
    for (int longCounter =0; longCounter < lenL; longCounter++) {
        if (longer & (1 << longCounter))
            if (shorter & (1 << shortCounter++))
                ret += (1 << longCounter);
    }
    return ret;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl %edx, -0xc(%rbp)
movl %ecx, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movl $0x0, -0x18(%rbp)
movl $0x0, -0x1c(%rbp)
movl -0x1c(%rbp), %eax
cmpl -0x10(%rbp), %eax
jge 0xa230
movl -0xc(%rbp), %eax
movl -0x1c(%rbp), %ecx
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0xa223
movl -0x4(%rbp), %eax
movl -0x14(%rbp), %ecx
movl %ecx, %edx
addl $0x1, %edx
movl %edx, -0x14(%rbp)
movl $0x1, %edx
shll %cl, %edx
movl %edx, %ecx
andl %ecx, %eax
cmpl $0x0, %eax
je 0xa221
movl -0x1c(%rbp), %ecx
movl $0x1, %eax
shll %cl, %eax
addl -0x18(%rbp), %eax
movl %eax, -0x18(%rbp)
jmp 0xa223
jmp 0xa225
movl -0x1c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x1c(%rbp)
jmp 0xa1d5
movl -0x18(%rbp), %eax
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: UCBASiCS[P]SPRIGHT/src/chrono.cpp
// Function: Chrono::average(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
double Chrono::average(const std::string& section)
{
    if (notEmpty(section))
    {
        double sum = 0;
        unsigned int timesNb = getSectionStopTimes(section).size();

        for (unsigned int i=0; i<timesNb; i++)
        {

	    sum += getSectionTime(section, i);
        }

        return sum/timesNb;
    }

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movq -0x18(%rbp), %rsi
callq 0xc440
testb $0x1, %al
jne 0xc517
jmp 0xc583
movq -0x30(%rbp), %rdi
xorps %xmm0, %xmm0
movsd %xmm0, -0x20(%rbp)
movq -0x18(%rbp), %rsi
callq 0xc390
movq %rax, %rdi
callq 0x88d0
movl %eax, -0x24(%rbp)
movl $0x0, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jae 0xc56b
movq -0x30(%rbp), %rdi
movq -0x18(%rbp), %rsi
movl -0x28(%rbp), %edx
callq 0xc480
addsd -0x20(%rbp), %xmm0
movsd %xmm0, -0x20(%rbp)
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0xc53e
movsd -0x20(%rbp), %xmm0
movl -0x24(%rbp), %eax
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0xc58b
xorps %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::Config(int, char**)
Config::Config(int newArgc, char** newArgv):argc(newArgc), argv(newArgv), helpDisplayed(false)
{
    bins.clear();
    setDefaultOptions();

    setOptionsFromCommandLine();

    if(distribution.size() == 0)
    {
      preprocessDistribution((char*) "1");
    }

    setBinOffsetsAndBinsSum();
    setSubsamplingMatrices();

    maxSNRdB = (maxSNRdB < SNRdB) ? SNRdB : maxSNRdB;


    chainsNb = (chainsNb >= 1) ? chainsNb : 1;
    if (!noisy)
      chainsNb = 1;

    delaysPerBunchNb = getSignalBitLength()+1;
    delaysNb = chainsNb * delaysPerBunchNb;
    


   assert( signalLength >= signalSparsity );
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movl -0xc(%rbp), %eax
movl %eax, (%rdi)
movq -0x18(%rbp), %rax
movq %rax, 0x8(%rdi)
movb $0x0, 0x11(%rdi)
addq $0x28, %rdi
movq %rdi, -0x38(%rbp)
callq 0xf8f0
movq -0x30(%rbp), %rdi
addq $0x40, %rdi
movq %rdi, -0x50(%rbp)
callq 0xf8f0
movq -0x30(%rbp), %rdi
addq $0x78, %rdi
movq %rdi, -0x48(%rbp)
callq 0x5940
movq -0x30(%rbp), %rdi
addq $0xb8, %rdi
movq %rdi, -0x40(%rbp)
callq 0xf910
movq -0x38(%rbp), %rdi
callq 0xf930
movq -0x30(%rbp), %rdi
callq 0xde10
jmp 0xdcb3
movq -0x30(%rbp), %rdi
callq 0xdef0
jmp 0xdcbe
movq -0x30(%rbp), %rdi
addq $0x78, %rdi
callq 0x88d0
cmpq $0x0, %rax
jne 0xdd1a
movq -0x30(%rbp), %rdi
leaq 0x124e0(%rip), %rsi     # 0x201bc
callq 0xe180
jmp 0xdce3
jmp 0xdd1a
movq -0x40(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0xf950
movq -0x48(%rbp), %rdi
callq 0x59a0
movq -0x50(%rbp), %rdi
callq 0x5ad0
movq -0x38(%rbp), %rdi
callq 0x5ad0
jmp 0xde03
movq -0x30(%rbp), %rdi
callq 0xe3c0
jmp 0xdd25
movq -0x30(%rbp), %rdi
callq 0xe730
jmp 0xdd30
movq -0x30(%rbp), %rax
movss 0x94(%rax), %xmm1
movss 0x6c(%rax), %xmm0
ucomiss %xmm1, %xmm0
jbe 0xdd56
movq -0x30(%rbp), %rax
movss 0x6c(%rax), %xmm0
movss %xmm0, -0x54(%rbp)
jmp 0xdd67
movq -0x30(%rbp), %rax
movss 0x94(%rax), %xmm0
movss %xmm0, -0x54(%rbp)
movq -0x30(%rbp), %rax
movss -0x54(%rbp), %xmm0
movss %xmm0, 0x94(%rax)
cmpl $0x1, 0x60(%rax)
jl 0xdd8a
movq -0x30(%rbp), %rax
movl 0x60(%rax), %eax
movl %eax, -0x58(%rbp)
jmp 0xdd94
movl $0x1, %eax
movl %eax, -0x58(%rbp)
jmp 0xdd94
movq -0x30(%rbp), %rax
movl -0x58(%rbp), %ecx
movl %ecx, 0x60(%rax)
testb $0x1, 0x68(%rax)
jne 0xddaf
movq -0x30(%rbp), %rax
movl $0x1, 0x60(%rax)
movq -0x30(%rbp), %rdi
callq 0xe940
movl %eax, -0x5c(%rbp)
jmp 0xddbd
movq -0x30(%rbp), %rcx
movl -0x5c(%rbp), %eax
addl $0x1, %eax
movl %eax, 0x64(%rcx)
movl 0x60(%rcx), %eax
imull 0x64(%rcx), %eax
movl %eax, 0x5c(%rcx)
movl 0x18(%rcx), %eax
cmpl 0x24(%rcx), %eax
jl 0xddde
jmp 0xddfd
leaq 0x123d9(%rip), %rdi     # 0x201be
leaq 0x123f1(%rip), %rsi     # 0x201dd
movl $0x2d, %edx
leaq 0x123f4(%rip), %rcx     # 0x201ec
callq 0x41a0
addq $0x60, %rsp
popq %rbp
retq
movq -0x20(%rbp), %rdi
callq 0x4540
nopl (%rax)
// File: UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::setDefaultOptions()
void Config::setDefaultOptions()
{
    outputFile = (char*) "sprightOutput.txt";
    
    signalLength = 64;
    signalLengthOriginal = signalLength;
    signalSparsityPeeling = 4;
    signalSparsity = 4;
    maximumLikelihood = false;
    countSamples = true;
    delaysPerBunchNb = getSignalBitLength() + 1;

    chainsNb = 1;

    /* for experiment mode */
    iterations = 1;
    experimentMode = true;
    // Phase = 0 implies phase of non-zero 
    // coefficients is uniformly random in [0,2*pi]. 
    phasesNb = 0; 
    displayIterationTime = false;
    noisy = false;
    SNRdB = 50;
    maxSNRdB = -std::numeric_limits<float>::infinity();
    verbose = false;
    reconstructSignalInBackEnd = false;
    defaultDelays = true;
    signalLogLength = log2(signalLength);

    bins.clear();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x10(%rbp)
leaq 0x123de(%rip), %rax     # 0x20209
movq %rax, 0xa8(%rdi)
movl $0x40, 0x18(%rdi)
movl 0x18(%rdi), %eax
movl %eax, 0x1c(%rdi)
movl $0x4, 0x90(%rdi)
movl $0x4, 0x24(%rdi)
movb $0x0, 0x20(%rdi)
movb $0x1, 0x77(%rdi)
callq 0xe940
movl %eax, %ecx
movq -0x10(%rbp), %rax
addl $0x1, %ecx
movl %ecx, 0x64(%rax)
movl $0x1, 0x60(%rax)
movl $0x1, 0x14(%rax)
movb $0x1, 0x10(%rax)
movl $0x0, 0x70(%rax)
movb $0x0, 0x75(%rax)
movb $0x0, 0x68(%rax)
movss 0x122ba(%rip), %xmm0    # 0x2014c
movss %xmm0, 0x6c(%rax)
callq 0xf9b0
movq -0x10(%rbp), %rax
movd %xmm0, %ecx
xorl $0x80000000, %ecx       # imm = 0x80000000
movd %ecx, %xmm0
movss %xmm0, 0x94(%rax)
movb $0x0, 0x74(%rax)
movb $0x0, 0x76(%rax)
movb $0x1, 0x98(%rax)
movl 0x18(%rax), %edi
callq 0xf9c0
movq -0x10(%rbp), %rdi
cvttsd2si %xmm0, %eax
movl %eax, 0xb0(%rdi)
addq $0x28, %rdi
callq 0xf930
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::preprocessDistribution(char*)
void Config::preprocessDistribution(char* newDistribution)
{
    std::vector<std::string> tempDistribution = split(newDistribution, ' ');

    distribution.clear();
    distribution.push_back(0);

    int l = tempDistribution.size()+1;

    for (int i = 1; i < l; ++i)
    {
       distribution.push_back(distribution[i-1]+atof(tempDistribution[i-1].c_str()));
   }

   for (int i = 1; i < l; ++i) 
   {
       distribution[i] = distribution[i]/distribution[l-1];
   }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x98(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x90(%rbp)
leaq -0x49(%rbp), %rdi
movq %rdi, -0x88(%rbp)
callq 0x4550
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdx
leaq -0x48(%rbp), %rdi
callq 0x5a20
jmp 0xe1d2
leaq -0x28(%rbp), %rdi
leaq -0x48(%rbp), %rsi
movl $0x20, %edx
callq 0x1dad0
jmp 0xe1e6
leaq -0x48(%rbp), %rdi
callq 0x4180
leaq -0x49(%rbp), %rdi
callq 0x4310
movq -0x98(%rbp), %rdi
addq $0x78, %rdi
movq %rdi, -0xa0(%rbp)
callq 0x5d40
movq -0xa0(%rbp), %rdi
movq $0x0, -0x68(%rbp)
leaq -0x68(%rbp), %rsi
callq 0x5c40
jmp 0xe229
leaq -0x28(%rbp), %rdi
callq 0xfa40
addq $0x1, %rax
movl %eax, -0x6c(%rbp)
movl $0x1, -0x70(%rbp)
movl -0x70(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jge 0xe319
movq -0x98(%rbp), %rdi
addq $0x78, %rdi
movq %rdi, -0xb0(%rbp)
movl -0x70(%rbp), %eax
decl %eax
movslq %eax, %rsi
callq 0xa530
movsd (%rax), %xmm0
movsd %xmm0, -0xa8(%rbp)
movl -0x70(%rbp), %eax
decl %eax
movslq %eax, %rsi
leaq -0x28(%rbp), %rdi
callq 0xfa60
movq %rax, %rdi
callq 0x40e0
movq %rax, %rdi
callq 0x43b0
movq -0xb0(%rbp), %rdi
movaps %xmm0, %xmm1
movsd -0xa8(%rbp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, -0x78(%rbp)
leaq -0x78(%rbp), %rsi
callq 0x5c40
jmp 0xe2be
jmp 0xe2c0
movl -0x70(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x70(%rbp)
jmp 0xe240
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
jmp 0xe2f1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x4180
leaq -0x49(%rbp), %rdi
callq 0x4310
jmp 0xe3b2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x58(%rbp)
movl %eax, -0x5c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xfaf0
jmp 0xe3b2
movl $0x1, -0x7c(%rbp)
movl -0x7c(%rbp), %eax
cmpl -0x6c(%rbp), %eax
jge 0xe3a0
movq -0x98(%rbp), %rdi
addq $0x78, %rdi
movslq -0x7c(%rbp), %rsi
callq 0xa530
movq -0x98(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0xc0(%rbp)
addq $0x78, %rdi
movl -0x6c(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0xa530
movsd -0xc0(%rbp), %xmm0
movq -0x98(%rbp), %rdi
divsd (%rax), %xmm0
movsd %xmm0, -0xb8(%rbp)
addq $0x78, %rdi
movslq -0x7c(%rbp), %rsi
callq 0xa530
movsd -0xb8(%rbp), %xmm0
movsd %xmm0, (%rax)
movl -0x7c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x7c(%rbp)
jmp 0xe320
leaq -0x28(%rbp), %rdi
callq 0xfaf0
addq $0xc0, %rsp
popq %rbp
retq
movq -0x58(%rbp), %rdi
callq 0x4540
nopl (%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/config.cpp
// Function: Config::setBins(char const*)
void Config::setBins(const char *newBins)
{
    bins.clear();
    // split: divides a string into multiple strings that are separated by space ' '.
    std::vector<std::string> tempBins = split(newBins, ' ');
    bins.clear();
    for(unsigned int stage=0; stage<tempBins.size(); stage++)
    {
        int value = atoi(tempBins[stage].c_str());
        bins.push_back(value);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
addq $0x28, %rdi
callq 0xf930
leaq -0x28(%rbp), %rdi
leaq -0x10(%rbp), %rsi
movl $0x20, %edx
callq 0x1db50
movq -0x48(%rbp), %rdi
addq $0x28, %rdi
callq 0xf930
movl $0x0, -0x2c(%rbp)
movl -0x2c(%rbp), %eax
movq %rax, -0x50(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xfa40
movq %rax, %rcx
movq -0x50(%rbp), %rax
cmpq %rcx, %rax
jae 0xf83b
movl -0x2c(%rbp), %eax
movl %eax, %esi
leaq -0x28(%rbp), %rdi
callq 0xfa60
movq %rax, %rdi
callq 0x40e0
movq %rax, %rdi
callq 0x4490
movq -0x48(%rbp), %rdi
movl %eax, -0x30(%rbp)
addq $0x28, %rdi
leaq -0x30(%rbp), %rsi
callq 0xfa80
jmp 0xf817
jmp 0xf819
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0xf7c7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0xfaf0
jmp 0xf84a
leaq -0x28(%rbp), %rdi
callq 0xfaf0
addq $0x50, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
callq 0x4540
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/customizedinput.cpp
// Function: CustomizedInput::process()
void CustomizedInput::process()
{
    chrono->start("Input");

    for (int k = 0; k < config->getSignalLength(); k++)
    {
	neededSamples.insert(k);
    }

    convertFileToTimeSignal();
    
    chrono->stop("Input");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x90(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x88(%rbp)
leaq -0x29(%rbp), %rdi
movq %rdi, -0x80(%rbp)
callq 0x4550
movq -0x80(%rbp), %rdx
leaq 0xf4f6(%rip), %rsi      # 0x20c23
leaq -0x28(%rbp), %rdi
callq 0x5a20
jmp 0x11738
movq -0x88(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0xc270
jmp 0x1174a
leaq -0x28(%rbp), %rdi
callq 0x4180
leaq -0x29(%rbp), %rdi
callq 0x4310
movl $0x0, -0x40(%rbp)
movq -0x90(%rbp), %rax
movl -0x40(%rbp), %ecx
movl %ecx, -0x94(%rbp)
movq 0x10(%rax), %rdi
callq 0xe9a0
movl %eax, %ecx
movl -0x94(%rbp), %eax
cmpl %ecx, %eax
jge 0x117df
movq -0x90(%rbp), %rdi
addq $0x50, %rdi
leaq -0x40(%rbp), %rsi
callq 0x11fe0
movq %rax, -0x50(%rbp)
movb %dl, -0x48(%rbp)
movl -0x40(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x40(%rbp)
jmp 0x11763
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x117d1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x4180
leaq -0x29(%rbp), %rdi
callq 0x4310
jmp 0x1187f
movq -0x90(%rbp), %rdi
callq 0x11890
movq -0x90(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xa8(%rbp)
leaq -0x71(%rbp), %rdi
movq %rdi, -0xa0(%rbp)
callq 0x4550
movq -0xa0(%rbp), %rdx
leaq 0xf408(%rip), %rsi      # 0x20c23
leaq -0x70(%rbp), %rdi
callq 0x5a20
jmp 0x11826
movq -0xa8(%rbp), %rdi
leaq -0x70(%rbp), %rsi
callq 0xc340
jmp 0x11838
leaq -0x70(%rbp), %rdi
callq 0x4180
leaq -0x71(%rbp), %rdi
callq 0x4310
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x11876
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x4180
leaq -0x71(%rbp), %rdi
callq 0x4310
movq -0x38(%rbp), %rdi
callq 0x4540
nopl (%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/customizedinput.cpp
// Function: CustomizedInput::process(std::vector<int, std::allocator<int>>)
void CustomizedInput::process(std::vector<int> delays)
{
    chrono->start("Input");

    findNeededSamples(delays);
    convertFileToTimeSignal();

    chrono->stop("Input");
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xc0, %rsp
movq %rsi, -0xa8(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xa0(%rbp)
movq 0x8(%rax), %rax
movq %rax, -0x98(%rbp)
leaq -0x31(%rbp), %rdi
movq %rdi, -0x90(%rbp)
callq 0x4550
movq -0x90(%rbp), %rdx
leaq 0xf045(%rip), %rsi      # 0x20c23
leaq -0x30(%rbp), %rdi
callq 0x5a20
jmp 0x11be9
movq -0x98(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0xc270
jmp 0x11bfb
leaq -0x30(%rbp), %rdi
callq 0x4180
leaq -0x31(%rbp), %rdi
callq 0x4310
movq -0xa8(%rbp), %rsi
leaq -0x60(%rbp), %rdi
movq %rdi, -0xb0(%rbp)
callq 0xa090
movq -0xa0(%rbp), %rdi
movq -0xb0(%rbp), %rsi
callq 0x11d40
jmp 0x11c39
leaq -0x60(%rbp), %rdi
callq 0x5ad0
movq -0xa0(%rbp), %rdi
callq 0x11890
movq -0xa0(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0xc0(%rbp)
leaq -0x81(%rbp), %rdi
movq %rdi, -0xb8(%rbp)
callq 0x4550
movq -0xb8(%rbp), %rdx
leaq 0xefa2(%rip), %rsi      # 0x20c23
leaq -0x80(%rbp), %rdi
callq 0x5a20
jmp 0x11c8c
movq -0xc0(%rbp), %rdi
leaq -0x80(%rbp), %rsi
callq 0xc340
jmp 0x11c9e
leaq -0x80(%rbp), %rdi
callq 0x4180
leaq -0x81(%rbp), %rdi
callq 0x4310
addq $0xc0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x11cdf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x4180
leaq -0x31(%rbp), %rdi
callq 0x4310
jmp 0x11d30
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x60(%rbp), %rdi
callq 0x5ad0
jmp 0x11d30
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
jmp 0x11d24
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x40(%rbp)
movl %eax, -0x44(%rbp)
leaq -0x80(%rbp), %rdi
callq 0x4180
leaq -0x81(%rbp), %rdi
callq 0x4310
movq -0x40(%rbp), %rdi
callq 0x4540
nopl (%rax)
// File: UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::ExperimentInput(Chrono*, Config const*)
ExperimentInput::ExperimentInput(Chrono* newChrono, const Config* newConfig): Input(newChrono, newConfig)
{
    // set the signal amplitudes to 1 and change
    // the noise variance to account for SNR
    signalMagnitude = 1;
    noiseStdDeviation = pow(10,-config->getSNRdB()/20);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movq -0x10(%rbp), %rsi
movq -0x18(%rbp), %rdx
callq 0x1d090
movq -0x30(%rbp), %rdi
leaq 0x1b914(%rip), %rax     # 0x2fc48
movq %rax, (%rdi)
addq $0x18, %rdi
movq %rdi, -0x48(%rbp)
callq 0x5920
movq -0x30(%rbp), %rdi
addq $0x50, %rdi
movq %rdi, -0x40(%rbp)
callq 0x5960
movq -0x30(%rbp), %rdi
addq $0x88, %rdi
movq %rdi, -0x38(%rbp)
callq 0x5920
movq -0x30(%rbp), %rax
movabsq $0x3ff0000000000000, %rcx # imm = 0x3FF0000000000000
movq %rcx, 0xc0(%rax)
movq 0x10(%rax), %rdi
callq 0xebb0
movss %xmm0, -0x28(%rbp)
jmp 0x1438e
movss -0x28(%rbp), %xmm0
movd %xmm0, %eax
xorl $0x80000000, %eax       # imm = 0x80000000
movd %eax, %xmm0
movss 0xc948(%rip), %xmm1     # 0x20cf0
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm1
movsd 0xbd10(%rip), %xmm0     # 0x200c8
callq 0x4530
movq -0x30(%rbp), %rax
movsd %xmm0, 0xd0(%rax)
addq $0x50, %rsp
popq %rbp
retq
movq -0x38(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x20(%rbp)
movl %eax, -0x24(%rbp)
callq 0x5a00
movq -0x40(%rbp), %rdi
callq 0x5980
movq -0x48(%rbp), %rdi
callq 0x5a00
movq -0x30(%rbp), %rdi
callq 0x11fc0
movq -0x20(%rbp), %rdi
callq 0x4540
nopl (%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::frequencyToTime()
void ExperimentInput::frequencyToTime()
{
    // go through the required sample indices
    for (auto t = neededSamples.cbegin(); t != neededSamples.cend(); ++t)
    {
        timeSignal[*t] = 0;
    	// go through the non-zero frequency components
        for (auto f = nonZeroFrequencies.cbegin(); f != nonZeroFrequencies.cend(); ++f)
        {
            timeSignal[*t] += f->second * (numOnes(*t & f->first) % 2 ? -1.0 : 1.0);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
addq $0x50, %rdi
callq 0x156e0
movq %rax, -0x10(%rbp)
movq -0x48(%rbp), %rdi
addq $0x50, %rdi
callq 0x15740
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x15710
testb $0x1, %al
jne 0x14afb
jmp 0x14c34
movq -0x48(%rbp), %rax
addq $0x18, %rax
movq %rax, -0x50(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x15770
movq -0x50(%rbp), %rdi
movq %rax, %rsi
callq 0x120f0
movq %rax, %rdi
xorps %xmm0, %xmm0
callq 0x5e60
movq -0x48(%rbp), %rdi
addq $0x88, %rdi
callq 0x5bb0
movq %rax, -0x20(%rbp)
movq -0x48(%rbp), %rdi
addq $0x88, %rdi
callq 0x5c10
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x5be0
testb $0x1, %al
jne 0x14b65
jmp 0x14c24
leaq -0x20(%rbp), %rdi
callq 0x5c70
addq $0x8, %rax
movq %rax, -0x70(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x15770
movl (%rax), %eax
movl %eax, -0x64(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x5c70
movl -0x64(%rbp), %edi
andl (%rax), %edi
callq 0x5dc0
movl $0x2, %ecx
cltd
idivl %ecx
movsd 0xc129(%rip), %xmm0     # 0x20cd0
movsd 0xb521(%rip), %xmm1     # 0x200d0
movsd %xmm1, -0x60(%rbp)
cmpl $0x0, %edx
movsd %xmm0, -0x58(%rbp)
jne 0x14bc8
movsd -0x60(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movq -0x70(%rbp), %rdi
movsd -0x58(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
leaq -0x40(%rbp), %rsi
callq 0x5d80
movq -0x48(%rbp), %rax
movsd %xmm0, -0x38(%rbp)
movsd %xmm1, -0x30(%rbp)
addq $0x18, %rax
movq %rax, -0x78(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x15770
movq -0x78(%rbp), %rdi
movq %rax, %rsi
callq 0x120f0
movq %rax, %rdi
leaq -0x38(%rbp), %rsi
callq 0xa370
leaq -0x20(%rbp), %rdi
callq 0x5ca0
jmp 0x14b3b
jmp 0x14c26
leaq -0x10(%rbp), %rdi
callq 0x15790
jmp 0x14ad4
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)
// File: UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::addNoise()
void ExperimentInput::addNoise()
{
    ffast_real signalPower = signalMagnitude * signalMagnitude;
    ffast_real noisePower = 0;
    ffast_real noiseNormFactor;
    ffast_real noisePhase;

    for (auto t = neededSamples.cbegin(); t != neededSamples.cend(); ++t)
    {
        noiseNormFactor = (ffast_real) -2*log(drand48());
        noisePhase = (ffast_real) 2*M_PI*drand48();
        noisePower += noiseNormFactor; // Standard deviation added later.
        timeSignal[*t] += std::polar( noiseStdDeviation * ((ffast_real) sqrt( (double) noiseNormFactor ) ) / sqrt(2) , noisePhase );
    }

    noisePower *= noiseStdDeviation * noiseStdDeviation;
    realSNR = signalPower * config->getSignalLength()/noisePower;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x58(%rbp)
movsd 0xc0(%rdi), %xmm0
mulsd 0xc0(%rdi), %xmm0
movsd %xmm0, -0x10(%rbp)
xorps %xmm0, %xmm0
movsd %xmm0, -0x18(%rbp)
addq $0x50, %rdi
callq 0x156e0
movq %rax, -0x30(%rbp)
movq -0x58(%rbp), %rdi
addq $0x50, %rdi
callq 0x15740
movq %rax, -0x38(%rbp)
leaq -0x30(%rbp), %rdi
leaq -0x38(%rbp), %rsi
callq 0x15710
testb $0x1, %al
jne 0x14ca8
jmp 0x14d8a
callq 0x4290
callq 0x4240
movaps %xmm0, %xmm1
movsd 0xc023(%rip), %xmm0     # 0x20ce0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x20(%rbp)
callq 0x4290
movq -0x58(%rbp), %rax
movaps %xmm0, %xmm1
movsd 0xbffe(%rip), %xmm0     # 0x20cd8
mulsd %xmm1, %xmm0
movsd %xmm0, -0x28(%rbp)
movsd -0x20(%rbp), %xmm0
addsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x18(%rbp)
movsd 0xd0(%rax), %xmm0
movsd %xmm0, -0x70(%rbp)
movsd -0x20(%rbp), %xmm0
callq 0x4220
movaps %xmm0, %xmm1
movsd -0x70(%rbp), %xmm0
mulsd %xmm1, %xmm0
movsd %xmm0, -0x68(%rbp)
movsd 0xb38e(%rip), %xmm0     # 0x200b0
callq 0x4220
movaps %xmm0, %xmm1
movsd -0x68(%rbp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, -0x50(%rbp)
leaq -0x50(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x15880
movq -0x58(%rbp), %rax
movsd %xmm0, -0x48(%rbp)
movsd %xmm1, -0x40(%rbp)
addq $0x18, %rax
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x15770
movq -0x60(%rbp), %rdi
movq %rax, %rsi
callq 0x120f0
movq %rax, %rdi
leaq -0x48(%rbp), %rsi
callq 0xa370
leaq -0x30(%rbp), %rdi
callq 0x15790
jmp 0x14c81
movq -0x58(%rbp), %rax
movsd 0xd0(%rax), %xmm0
mulsd 0xd0(%rax), %xmm0
mulsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x18(%rbp)
movsd -0x10(%rbp), %xmm0
movsd %xmm0, -0x78(%rbp)
movq 0x10(%rax), %rdi
callq 0xe9a0
movsd -0x78(%rbp), %xmm0
movl %eax, %ecx
movq -0x58(%rbp), %rax
cvtsi2sd %ecx, %xmm1
mulsd %xmm1, %xmm0
divsd -0x18(%rbp), %xmm0
movsd %xmm0, 0xc8(%rax)
addq $0x80, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::distribution(double, std::vector<double, std::allocator<double>>)
ffast_real ExperimentInput::distribution(ffast_real _urand, std::vector<double> F) 
{
    int l = F.size();
    for (int i = 1; i < l; ++i)
    {
        if(_urand < F[i])
            return ( ( (_urand-F[i])/(F[i]-F[i-1]) + ( (double) i) )/( (double) l-1.0) );
    }
    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rsi, -0x38(%rbp)
movq %rdi, %rax
movq -0x38(%rbp), %rdi
movq %rdi, -0x30(%rbp)
movq %rax, -0x10(%rbp)
movsd %xmm0, -0x18(%rbp)
movq %rdi, -0x20(%rbp)
callq 0x88d0
movl %eax, -0x24(%rbp)
movl $0x1, -0x28(%rbp)
movl -0x28(%rbp), %eax
cmpl -0x24(%rbp), %eax
jge 0x154ad
movq -0x30(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x40(%rbp)
movslq -0x28(%rbp), %rsi
callq 0xa530
movsd -0x40(%rbp), %xmm1
movsd (%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1549d
movq -0x30(%rbp), %rdi
movsd -0x18(%rbp), %xmm0
movsd %xmm0, -0x58(%rbp)
movslq -0x28(%rbp), %rsi
callq 0xa530
movsd -0x58(%rbp), %xmm0
movq -0x30(%rbp), %rdi
subsd (%rax), %xmm0
movsd %xmm0, -0x48(%rbp)
movslq -0x28(%rbp), %rsi
callq 0xa530
movq -0x30(%rbp), %rdi
movsd (%rax), %xmm0
movsd %xmm0, -0x50(%rbp)
movl -0x28(%rbp), %eax
subl $0x1, %eax
movslq %eax, %rsi
callq 0xa530
movsd -0x50(%rbp), %xmm1
movsd -0x48(%rbp), %xmm0
subsd (%rax), %xmm1
divsd %xmm1, %xmm0
cvtsi2sdl -0x28(%rbp), %xmm1
addsd %xmm1, %xmm0
cvtsi2sdl -0x24(%rbp), %xmm1
movsd 0xac42(%rip), %xmm2     # 0x200d0
subsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x154ba
jmp 0x1549f
movl -0x28(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x28(%rbp)
jmp 0x153e3
movsd 0xac1b(%rip), %xmm0     # 0x200d0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x60, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: UCBASiCS[P]SPRIGHT/src/experimentinput.cpp
// Function: ExperimentInput::getRandomPhase() const
ffast_real ExperimentInput::getRandomPhase() const
{
    if (config->getPhasesNb() < 1)
    {
       return 2*M_PI*drand48();
    }
    else if (config->getPhasesNb() == 1)
    {
        return 0;
    }
    else if (config->getPhasesNb() == 2)
    {
        return M_PI*std::round(drand48());
    }
    else
    {
        return (std::floor(config->getPhasesNb()*drand48())*2 + 1)*M_PI/config->getPhasesNb();
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x18(%rbp)
movq 0x10(%rax), %rdi
callq 0xebf0
cmpl $0x1, %eax
jge 0x15510
callq 0x4290
movaps %xmm0, %xmm1
movsd 0xb7d6(%rip), %xmm0     # 0x20cd8
mulsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x155cd
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xebf0
cmpl $0x1, %eax
jne 0x1552f
xorps %xmm0, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x155cd
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xebf0
cmpl $0x2, %eax
jne 0x15561
callq 0x4290
callq 0x40f0
movaps %xmm0, %xmm1
movsd 0xb792(%rip), %xmm0     # 0x20ce8
mulsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
jmp 0x155cd
movq -0x18(%rbp), %rax
movq 0x10(%rax), %rdi
callq 0xebf0
cvtsi2sd %eax, %xmm0
movsd %xmm0, -0x28(%rbp)
callq 0x4290
movaps %xmm0, %xmm1
movsd -0x28(%rbp), %xmm0
mulsd %xmm1, %xmm0
callq 0x4510
movq -0x18(%rbp), %rax
addsd %xmm0, %xmm0
movsd 0xab33(%rip), %xmm1     # 0x200d0
addsd %xmm1, %xmm0
movsd 0xb73f(%rip), %xmm1     # 0x20ce8
mulsd %xmm1, %xmm0
movsd %xmm0, -0x20(%rbp)
movq 0x10(%rax), %rdi
callq 0xebf0
movsd -0x20(%rbp), %xmm0
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, -0x8(%rbp)
movsd -0x8(%rbp), %xmm0
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)