LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: msu-starx[P]starx/pid.cpp
// Function: PID::setSampleTime(int)
void PID::setSampleTime(int newSampleTime){
    if(newSampleTime > 0) {
        double ratio = newSampleTime / sampleTime;
        kiGain *= ratio;
        kdGain /= ratio;
        sampleTime = newSampleTime;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
cmpl $0x0, -0xc(%rbp)
jle 0xb5c7
movq -0x20(%rbp), %rcx
movslq -0xc(%rbp), %rax
movq 0x18(%rcx), %rcx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, %xmm0
movaps 0xc93(%rip), %xmm1      # 0xc210
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0xc97(%rip), %xmm1      # 0xc220
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, -0x18(%rbp)
movsd -0x18(%rbp), %xmm0
mulsd 0x68(%rax), %xmm0
movsd %xmm0, 0x68(%rax)
movsd -0x18(%rbp), %xmm1
movsd 0x70(%rax), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x70(%rax)
movslq -0xc(%rbp), %rcx
movq %rcx, 0x18(%rax)
popq %rbp
retq
nopl (%rax)
// File: msu-starx[P]starx/pid.cpp
// Function: PID::setOutputLimits(double, double)
void PID::setOutputLimits(double Min, double Max){
    if(Min >= Max) return;
    outMin = Min;
    outMax = Max;
    if(inAuto) {
        if(outputValue > outMax) outputValue = outMax;
        else if(outputValue < outMin) outputValue = outMin;
        if(iTerm > outMax) iTerm = outMax;
        else if(iTerm < outMin) iTerm = outMin;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movsd %xmm0, -0x10(%rbp)
movsd %xmm1, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x20(%rbp)
movsd -0x10(%rbp), %xmm0
ucomisd -0x18(%rbp), %xmm0
jb 0xb5fb
jmp 0xb6b6
movq -0x20(%rbp), %rax
movsd -0x10(%rbp), %xmm0
movsd %xmm0, 0x78(%rax)
movsd -0x18(%rbp), %xmm0
movsd %xmm0, 0x80(%rax)
testb $0x1, 0x10(%rax)
je 0xb6b6
movq -0x20(%rbp), %rax
movsd 0x30(%rax), %xmm0
ucomisd 0x80(%rax), %xmm0
jbe 0xb646
movq -0x20(%rbp), %rax
movsd 0x80(%rax), %xmm0
movsd %xmm0, 0x30(%rax)
jmp 0xb66a
movq -0x20(%rbp), %rax
movsd 0x30(%rax), %xmm1
movsd 0x78(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xb668
movq -0x20(%rbp), %rax
movsd 0x78(%rax), %xmm0
movsd %xmm0, 0x30(%rax)
jmp 0xb66a
movq -0x20(%rbp), %rax
movsd 0x48(%rax), %xmm0
ucomisd 0x80(%rax), %xmm0
jbe 0xb690
movq -0x20(%rbp), %rax
movsd 0x80(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
jmp 0xb6b4
movq -0x20(%rbp), %rax
movsd 0x48(%rax), %xmm1
movsd 0x78(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xb6b2
movq -0x20(%rbp), %rax
movsd 0x78(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
jmp 0xb6b4
jmp 0xb6b6
popq %rbp
retq
nopl (%rax,%rax)
// File: msu-starx[P]starx/pid.cpp
// Function: PID::setMode(int)
void PID::setMode(int Mode){
    bool newAuto = Mode == AUTOMATIC;
    if(newAuto && !inAuto) {
        this->initialize();
    }
    inAuto = newAuto;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rcx
movq %rcx, -0x18(%rbp)
movl -0xc(%rbp), %eax
cmpl 0x4(%rcx), %eax
sete %al
andb $0x1, %al
movb %al, -0xd(%rbp)
testb $0x1, -0xd(%rbp)
je 0xb6fe
movq -0x18(%rbp), %rax
testb $0x1, 0x10(%rax)
jne 0xb6fe
movq -0x18(%rbp), %rdi
callq 0xb720
movq -0x18(%rbp), %rax
movb -0xd(%rbp), %cl
andb $0x1, %cl
movb %cl, 0x10(%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: msu-starx[P]starx/pid.cpp
// Function: PID::initialize()
void PID::initialize(void){
    lastInput = inputValue;
    iTerm = outputValue;
    if(iTerm > outMax) iTerm = outMax;
    else if(iTerm < outMin) iTerm = outMin;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movsd 0x28(%rax), %xmm0
movsd %xmm0, 0x58(%rax)
movsd 0x30(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
movsd 0x48(%rax), %xmm0
ucomisd 0x80(%rax), %xmm0
jbe 0xb766
movq -0x10(%rbp), %rax
movsd 0x80(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
jmp 0xb78a
movq -0x10(%rbp), %rax
movsd 0x48(%rax), %xmm1
movsd 0x78(%rax), %xmm0
ucomisd %xmm1, %xmm0
jbe 0xb788
movq -0x10(%rbp), %rax
movsd 0x78(%rax), %xmm0
movsd %xmm0, 0x48(%rax)
jmp 0xb78a
popq %rbp
retq
nopl (%rax)
// File: msu-starx[P]starx/pid.cpp
// Function: PID::setControllerDirection(int)
void PID::setControllerDirection(int Direction){
    if(inAuto && Direction != controllerDirection) {
        kpGain = (0 - kpGain);
        kiGain = (0 - kiGain);
        kdGain = (0 - kdGain);
    }
    controllerDirection = Direction;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
testb $0x1, 0x10(%rax)
je 0xb7e0
movq -0x18(%rbp), %rcx
movl -0xc(%rbp), %eax
cmpl 0x14(%rcx), %eax
je 0xb7e0
movq -0x18(%rbp), %rax
xorps %xmm0, %xmm0
subsd 0x60(%rax), %xmm0
movsd %xmm0, 0x60(%rax)
xorps %xmm0, %xmm0
subsd 0x68(%rax), %xmm0
movsd %xmm0, 0x68(%rax)
xorps %xmm0, %xmm0
subsd 0x70(%rax), %xmm0
movsd %xmm0, 0x70(%rax)
movq -0x18(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, 0x14(%rax)
popq %rbp
retq
nopl (%rax)
// File: msu-starx[P]starx/serial.cpp
// Function: SerialPort::openPort()
void SerialPort::openPort(void){
    fileDescriptor = open(portName, O_RDWR | O_NOCTTY);
    // portName = Name of serial port
    // O_RDWR = Allows read/write access to serial port
    // O_NOCTTY = No terminal will control the process
    // O_NDELAY = Non blocking mode (do not care about the DCD line status)
    if (fileDescriptor == -1) {
        perror("\nOpen_Port: Unable to open serial port =");
    }
    else{
        printf("\nPort %s opened successfully!\n", portName);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movq 0x118(%rax), %rdi
movl $0x102, %esi            # imm = 0x102
movb $0x0, %al
callq 0x2170
movl %eax, %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
cmpl $-0x1, 0x4(%rax)
jne 0xb834
leaq 0xa03(%rip), %rdi       # 0xc230
callq 0x21d0
jmp 0xb84d
movq -0x10(%rbp), %rax
movq 0x118(%rax), %rsi
leaq 0xa13(%rip), %rdi       # 0xc259
movb $0x0, %al
callq 0x2050
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: msu-starx[P]starx/serial.cpp
// Function: SerialPort::writePort(char const*)
void SerialPort::writePort(const char* bufferWrite){
    bytesWrite = write(fileDescriptor, bufferWrite, strlen(bufferWrite));
    if(bytesWrite < 0) {
        fputs("write() of bytes failed!\n", stderr);
    }
    //*// Debug SerialPort::writePort
    if(bytesWrite > 0) {
        printf("Sent: %s", bufferWrite);
        printf("\n");
    }//*/
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl 0x4(%rax), %eax
movl %eax, -0x24(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x20e0
movl -0x24(%rbp), %edi
movq -0x20(%rbp), %rsi
movq %rax, %rdx
callq 0x2080
movq %rax, %rcx
movq -0x18(%rbp), %rax
movl %ecx, 0x8(%rax)
cmpl $0x0, 0x8(%rax)
jge 0xbba4
movq 0x643b(%rip), %rax      # 0x11fd0
movq (%rax), %rsi
leaq 0x759(%rip), %rdi       # 0xc2f8
callq 0x22a0
movq -0x18(%rbp), %rax
cmpl $0x0, 0x8(%rax)
jle 0xbbce
movq -0x10(%rbp), %rsi
leaq 0x759(%rip), %rdi       # 0xc312
movb $0x0, %al
callq 0x2050
leaq 0x749(%rip), %rdi       # 0xc310
movb $0x0, %al
callq 0x2050
addq $0x30, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: msu-starx[P]starx/serial.cpp
// Function: SerialPort::readPort()
char* SerialPort::readPort(void){
    bytesRead = read(fileDescriptor, &bufferRead, bufferSize);
    bufferRead[bytesRead] = 0;
    //*// Debug SerialPort::readPort
    if(bytesRead > 0) {
        printf("Received: %s", bufferRead);
        printf("\n");
    }//*/
    return bufferRead;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rsi
movq %rsi, -0x10(%rbp)
movl 0x4(%rsi), %edi
addq $0x15, %rsi
movl $0xff, %edx
callq 0x2320
movq %rax, %rcx
movq -0x10(%rbp), %rax
movl %ecx, 0xc(%rax)
movslq 0xc(%rax), %rcx
movb $0x0, 0x15(%rax,%rcx)
cmpl $0x0, 0xc(%rax)
jle 0xbc42
movq -0x10(%rbp), %rsi
addq $0x15, %rsi
leaq 0x6ee(%rip), %rdi       # 0xc31b
movb $0x0, %al
callq 0x2050
leaq 0x6d5(%rip), %rdi       # 0xc310
movb $0x0, %al
callq 0x2050
movq -0x10(%rbp), %rax
addq $0x15, %rax
addq $0x10, %rsp
popq %rbp
retq
// File: sidscrazy[P]Paxos/./paxos_message.h
// Function: receive_packet(int)
message *receive_packet (int fd){
	message *m = (message *) malloc (sizeof (message));
	if (m == NULL){
		return NULL;
	}

	char buf[1024];
	size_t len = sizeof (message);
	size_t r = recv (fd, buf, len, MSG_DONTWAIT);
	if (r != len){
		free (m);
		return NULL;
	}

	memcpy (m, buf, sizeof (message));
	return m;


}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x430, %rsp            # imm = 0x430
movl %edi, -0xc(%rbp)
movl $0x20, %edi
callq 0x2260
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x24e0
movq $0x0, -0x8(%rbp)
jmp 0x2567
movq $0x20, -0x428(%rbp)
movl -0xc(%rbp), %edi
leaq -0x420(%rbp), %rsi
movq -0x428(%rbp), %rdx
movl $0x40, %ecx
callq 0x2070
movq %rax, -0x430(%rbp)
movq -0x430(%rbp), %rax
cmpq -0x428(%rbp), %rax
je 0x2530
movq -0x18(%rbp), %rdi
callq 0x2220
movq $0x0, -0x8(%rbp)
jmp 0x2567
movq -0x18(%rbp), %rax
movq -0x420(%rbp), %rcx
movq %rcx, (%rax)
movq -0x418(%rbp), %rcx
movq %rcx, 0x8(%rax)
movq -0x410(%rbp), %rcx
movq %rcx, 0x10(%rax)
movq -0x408(%rbp), %rcx
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rax
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
addq $0x430, %rsp            # imm = 0x430
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sidscrazy[P]Paxos/./paxos_message.h
// Function: ping(int, MSG_TYPE)
void ping (int fd, MSG_TYPE ty){
	message *m = (message *) malloc (sizeof (message));
	if (m == NULL){
		return;
	}
	m->receiver = -1;
	m->value = NO_VALUE;
	m->round = -1;
	m->type = ty;
	write (fd, (char *)m, sizeof (message));
	free (m);

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl %edi, -0x4(%rbp)
movl %esi, -0x8(%rbp)
movl $0x20, %edi
callq 0x2260
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x25d5
jmp 0x261a
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x4(%rax)  # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movl $0xffffffff, 0x8(%rax)  # imm = 0xFFFFFFFF
movq -0x10(%rbp), %rax
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movl -0x8(%rbp), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x10(%rax)
movl -0x4(%rbp), %edi
movq -0x10(%rbp), %rsi
movl $0x20, %edx
callq 0x2080
movq -0x10(%rbp), %rdi
callq 0x2220
addq $0x10, %rsp
popq %rbp
retq
// File: sidscrazy[P]Paxos/./paxos_message.h
// Function: dump_message(message*)
void dump_message (message *m) {
	std::cout << "Paxos Message Start" << std::endl;
	std::cout << "Sender: " << m->sender << std::endl;
	std::cout << "Receier: " << m->receiver << std::endl;
	std::cout << "Value: " << m->value << std::endl;
	std::cout << "Round: " << m->round << std::endl;
	std::cout << "Type: " << m->type << std::endl;
	std::cout << "Paxos Message End" << std::endl;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq 0xa9a5(%rip), %rdi      # 0xcfd8
leaq 0x59ea(%rip), %rsi      # 0x8024
callq 0x21e0
movq %rax, %rdi
movq 0xa977(%rip), %rsi      # 0xcfc0
callq 0x2200
movq 0xa983(%rip), %rdi      # 0xcfd8
leaq 0x59dc(%rip), %rsi      # 0x8038
callq 0x21e0
movq %rax, %rdi
movq -0x8(%rbp), %rax
movl (%rax), %esi
callq 0x2310
movq %rax, %rdi
movq 0xa947(%rip), %rsi      # 0xcfc0
callq 0x2200
movq 0xa953(%rip), %rdi      # 0xcfd8
leaq 0x59b5(%rip), %rsi      # 0x8041
callq 0x21e0
movq %rax, %rdi
movq -0x8(%rbp), %rax
movl 0x4(%rax), %esi
callq 0x2310
movq %rax, %rdi
movq 0xa916(%rip), %rsi      # 0xcfc0
callq 0x2200
movq 0xa922(%rip), %rdi      # 0xcfd8
leaq 0x598e(%rip), %rsi      # 0x804b
callq 0x21e0
movq %rax, %rdi
movq -0x8(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x2310
movq %rax, %rdi
movq 0xa8e5(%rip), %rsi      # 0xcfc0
callq 0x2200
movq 0xa8f1(%rip), %rdi      # 0xcfd8
leaq 0x5965(%rip), %rsi      # 0x8053
callq 0x21e0
movq %rax, %rdi
movq -0x8(%rbp), %rax
movl 0xc(%rax), %esi
callq 0x2310
movq %rax, %rdi
movq 0xa8b4(%rip), %rsi      # 0xcfc0
callq 0x2200
movq 0xa8c0(%rip), %rdi      # 0xcfd8
leaq 0x593c(%rip), %rsi      # 0x805b
callq 0x21e0
movq %rax, %rdi
movq -0x8(%rbp), %rax
movl 0x10(%rax), %esi
callq 0x2310
movq %rax, %rdi
movq 0xa883(%rip), %rsi      # 0xcfc0
callq 0x2200
movq 0xa88f(%rip), %rdi      # 0xcfd8
leaq 0x5912(%rip), %rsi      # 0x8062
callq 0x21e0
movq %rax, %rdi
movq 0xa861(%rip), %rsi      # 0xcfc0
callq 0x2200
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: main
int main (){
	/* Listen for initialization message */
	message *m;
	while (true){
		m = (receive_packet (1));
		if (m != NULL){
			break;
		}
	}

	PaxosNode node (m);
	free (m);
	node.run ();
	return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x130, %rsp            # imm = 0x130
movl $0x0, -0x4(%rbp)
movl $0x1, %edi
callq 0x24b0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x2799
jmp 0x279b
jmp 0x2782
movq -0x10(%rbp), %rsi
leaq -0x118(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x28b0
movq -0x10(%rbp), %rdi
callq 0x2220
movq -0x130(%rbp), %rdi
callq 0x2a00
jmp 0x27c9
movl $0x0, -0x4(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x2af0
movl -0x4(%rbp), %eax
addq $0x130, %rsp            # imm = 0x130
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x120(%rbp)
movl %eax, -0x124(%rbp)
leaq -0x118(%rbp), %rdi
callq 0x2af0
movq -0x120(%rbp), %rdi
callq 0x2320
nopw %cs:(%rax,%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::PaxosNode(message*)
PaxosNode (message *m){
		if (m->type != MSG_INIT) {
			exit (1);
		}
		id = m->sender;
		role = m->receiver;
		num_nodes = m->value;
		n = 0;
		v = NO_VALUE;
		state = NO_VALUE;
		log = new PaxosNodeLogger (id);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x28(%rbp)
movb $0x0, 0x18(%rdi)
addq $0x28, %rdi
callq 0x2b40
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
callq 0x2b40
movq -0x28(%rbp), %rdi
addq $0x78, %rdi
movq %rdi, -0x40(%rbp)
callq 0x2b60
movq -0x28(%rbp), %rdi
addq $0xc8, %rdi
movq %rdi, -0x38(%rbp)
callq 0x2b90
movq -0x28(%rbp), %rdi
addq $0xe0, %rdi
movq %rdi, -0x30(%rbp)
callq 0x2bb0
movq -0x28(%rbp), %rax
movl $0x5, 0xf8(%rax)
movl $0x2, 0xfc(%rax)
movq -0x10(%rbp), %rax
cmpl $0x0, 0x10(%rax)
je 0x2947
movl $0x1, %edi
callq 0x2230
movq -0x28(%rbp), %rax
movq -0x10(%rbp), %rcx
movl (%rcx), %ecx
movl %ecx, (%rax)
movq -0x10(%rbp), %rcx
movl 0x4(%rcx), %ecx
movl %ecx, 0x8(%rax)
movq -0x10(%rbp), %rcx
movl 0x8(%rcx), %ecx
movl %ecx, 0x4(%rax)
movl $0x0, 0x10(%rax)
movl $0xffffffff, 0xc(%rax)  # imm = 0xFFFFFFFF
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
movl $0x228, %edi            # imm = 0x228
callq 0x21f0
movq %rax, -0x48(%rbp)
jmp 0x298c
movq -0x48(%rbp), %rdi
movq -0x28(%rbp), %rax
movl (%rax), %esi
callq 0x71a0
jmp 0x299d
movq -0x28(%rbp), %rax
movq -0x48(%rbp), %rcx
movq %rcx, 0x20(%rax)
addq $0x50, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x29d2
movq -0x48(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
callq 0x21d0
movq -0x30(%rbp), %rdi
callq 0x2bd0
movq -0x38(%rbp), %rdi
callq 0x2c30
movq -0x40(%rbp), %rdi
callq 0x2c90
movq -0x18(%rbp), %rdi
callq 0x2320
nopw %cs:(%rax,%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::run()
void run (){
		std::thread t ([this]{ this->network_listener(); });
		message *m;
		while (true){
			m = NULL;
			queue_lock.lock ();
			if (!messages.empty ()){
				m = messages.front ();
				messages.pop ();
			}
			queue_lock.unlock ();
			
			process_message (m);
			proposer_state_update ();
			check_consensus ();
			check_timeout ();	
		}

	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movq %rax, -0x18(%rbp)
leaq -0x10(%rbp), %rdi
leaq -0x18(%rbp), %rsi
callq 0x3c90
jmp 0x2a27
movq -0x38(%rbp), %rdi
movq $0x0, -0x20(%rbp)
addq $0x50, %rdi
callq 0x3d40
jmp 0x2a3e
movq -0x38(%rbp), %rdi
addq $0x78, %rdi
callq 0x3d70
movb %al, -0x39(%rbp)
jmp 0x2a50
movb -0x39(%rbp), %al
testb $0x1, %al
jne 0x2a9f
jmp 0x2a59
movq -0x38(%rbp), %rdi
addq $0x78, %rdi
callq 0x3d90
movq %rax, -0x48(%rbp)
jmp 0x2a6c
movq -0x38(%rbp), %rdi
movq -0x48(%rbp), %rax
movq (%rax), %rax
movq %rax, -0x20(%rbp)
addq $0x78, %rdi
callq 0x3db0
jmp 0x2a86
jmp 0x2a9f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x28(%rbp)
movl %eax, -0x2c(%rbp)
leaq -0x10(%rbp), %rdi
callq 0x4510
jmp 0x2ae3
movq -0x38(%rbp), %rdi
addq $0x50, %rdi
callq 0x3dd0
jmp 0x2aae
movq -0x38(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x3df0
jmp 0x2abd
movq -0x38(%rbp), %rdi
callq 0x42b0
jmp 0x2ac8
movq -0x38(%rbp), %rdi
callq 0x4330
jmp 0x2ad3
movq -0x38(%rbp), %rdi
callq 0x44b0
jmp 0x2ade
jmp 0x2a25
movq -0x28(%rbp), %rdi
callq 0x2320
nopl (%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::proposer_state_update()
void proposer_state_update () {
		if ((role & PROPOSER)){
			if (prepare_acks.size () == 0 && state == NO_VALUE){
				prepare ();
			} else if (votes.size () == 0 && state == PREPARING) {
				propose ();
			}

		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x10(%rbp)
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4327
movq -0x10(%rbp), %rdi
addq $0xe0, %rdi
callq 0x5980
cmpq $0x0, %rax
jne 0x42fa
movq -0x10(%rbp), %rax
cmpl $-0x1, 0x14(%rax)
jne 0x42fa
movq -0x10(%rbp), %rdi
callq 0x6f30
jmp 0x4325
movq -0x10(%rbp), %rdi
addq $0xc8, %rdi
callq 0x5fd0
cmpq $0x0, %rax
jne 0x4323
movq -0x10(%rbp), %rax
cmpl $-0x4, 0x14(%rax)
jne 0x4323
movq -0x10(%rbp), %rdi
callq 0x6ff0
jmp 0x4325
jmp 0x4327
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::check_consensus()
void check_consensus () {
		if ((role & LEARNER)&& (role & PROPOSER) &&
			state == PROPOSING) {
			int valid_votes = 0;
			for (int i = 0; i < votes.size (); i++){
				if (votes [i]->v == v && votes [i]->n == n){
					valid_votes++;
				}
			}
			if (valid_votes > (num_nodes % 2 == 0 ? num_nodes / 2 : 1 + (num_nodes / 2))) {
				message cons (id, -1, v, n, MSG_CONSENSUS);
				network_lock.lock ();
				send_message (0, &cons);
				network_lock.unlock ();
				safe_exit (&cons);
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl 0x8(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x44a8
movq -0x38(%rbp), %rax
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x44a8
movq -0x38(%rbp), %rax
cmpl $-0x5, 0x14(%rax)
jne 0x44a8
movl $0x0, -0xc(%rbp)
movl $0x0, -0x10(%rbp)
movq -0x38(%rbp), %rdi
movslq -0x10(%rbp), %rax
movq %rax, -0x40(%rbp)
addq $0xc8, %rdi
callq 0x5fd0
movq %rax, %rcx
movq -0x40(%rbp), %rax
cmpq %rcx, %rax
jae 0x4402
movq -0x38(%rbp), %rdi
addq $0xc8, %rdi
movslq -0x10(%rbp), %rsi
callq 0x5ff0
movq -0x38(%rbp), %rcx
movq (%rax), %rax
movl 0x8(%rax), %eax
cmpl 0xc(%rcx), %eax
jne 0x43f5
movq -0x38(%rbp), %rdi
addq $0xc8, %rdi
movslq -0x10(%rbp), %rsi
callq 0x5ff0
movq -0x38(%rbp), %rcx
movq (%rax), %rax
movl 0x4(%rax), %eax
cmpl 0x10(%rcx), %eax
jne 0x43f5
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x43f7
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x4382
movq -0x38(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, -0x44(%rbp)
movl 0x4(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x4430
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x48(%rbp)
jmp 0x4445
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl $0x1, %eax
movl %eax, -0x48(%rbp)
movl -0x44(%rbp), %eax
movl -0x48(%rbp), %ecx
cmpl %ecx, %eax
jle 0x44a6
movq -0x38(%rbp), %rax
movl (%rax), %esi
movl 0xc(%rax), %ecx
movl 0x10(%rax), %r8d
leaq -0x30(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x6, %r9d
callq 0x5600
movq -0x38(%rbp), %rdi
addq $0x28, %rdi
callq 0x3d40
movq -0x38(%rbp), %rdi
xorl %esi, %esi
leaq -0x30(%rbp), %rdx
callq 0x5640
movq -0x38(%rbp), %rdi
addq $0x28, %rdi
callq 0x3dd0
movq -0x38(%rbp), %rdi
leaq -0x30(%rbp), %rsi
callq 0x5aa0
jmp 0x44a8
addq $0x50, %rsp
popq %rbp
retq
nop
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::check_timeout()
void check_timeout (){
		if (role & PROPOSER){
			time_t timeStamp = time(0);
			if (timeStamp - timeout  > TIMEOUT) {
				clear_responses ();
				proposer_state_update ();
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x4505
xorl %eax, %eax
movl %eax, %edi
callq 0x21c0
movq -0x18(%rbp), %rcx
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rax
subq 0x100(%rcx), %rax
cmpq $0x8, %rax
jle 0x4503
movq -0x18(%rbp), %rdi
callq 0x58d0
movq -0x18(%rbp), %rdi
callq 0x42b0
jmp 0x4505
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::network_listener()
void network_listener (){
		message *m;
		while (true){
			network_lock.lock ();
			m = receive_packet (1);
			network_lock.unlock ();
			if (m != NULL){
				queue_lock.lock ();
				messages.push (m);
				queue_lock.unlock ();
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq -0x18(%rbp), %rdi
addq $0x28, %rdi
callq 0x3d40
movl $0x1, %edi
callq 0x24b0
movq -0x18(%rbp), %rdi
movq %rax, -0x10(%rbp)
addq $0x28, %rdi
callq 0x3dd0
cmpq $0x0, -0x10(%rbp)
je 0x48ce
movq -0x18(%rbp), %rdi
addq $0x50, %rdi
callq 0x3d40
movq -0x18(%rbp), %rdi
addq $0x78, %rdi
leaq -0x10(%rbp), %rsi
callq 0x48d0
movq -0x18(%rbp), %rdi
addq $0x50, %rdi
callq 0x3dd0
jmp 0x4874
// File: sidscrazy[P]Paxos/./paxos_constants.h
// Function: message::message(int, int, int, int, MSG_TYPE)
message (int s, int recv, int v, int rnd, MSG_TYPE ty){
		sender = s;
		receiver = recv;
		value = v;
		round = rnd;
		type = ty;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movl %edx, -0x10(%rbp)
movl %ecx, -0x14(%rbp)
movl %r8d, -0x18(%rbp)
movl %r9d, -0x1c(%rbp)
movq -0x8(%rbp), %rax
movl -0xc(%rbp), %ecx
movl %ecx, (%rax)
movl -0x10(%rbp), %ecx
movl %ecx, 0x4(%rax)
movl -0x14(%rbp), %ecx
movl %ecx, 0x8(%rax)
movl -0x18(%rbp), %ecx
movl %ecx, 0xc(%rax)
movl -0x1c(%rbp), %ecx
movl %ecx, 0x10(%rax)
popq %rbp
retq
nopl (%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::clear_responses()
void clear_responses (){
		if (role & LEARNER){
			for (int i = 0; i < votes.size (); i++){
				free (votes [i]);
			}
			votes.clear ();
		}
		prepare_acks.clear ();
		state = NO_VALUE;
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movl 0x8(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
je 0x5951
movl $0x0, -0xc(%rbp)
movq -0x18(%rbp), %rdi
movslq -0xc(%rbp), %rax
movq %rax, -0x20(%rbp)
addq $0xc8, %rdi
callq 0x5fd0
movq %rax, %rcx
movq -0x20(%rbp), %rax
cmpq %rcx, %rax
jae 0x5941
movq -0x18(%rbp), %rdi
addq $0xc8, %rdi
movslq -0xc(%rbp), %rsi
callq 0x5ff0
movq (%rax), %rdi
callq 0x2220
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x58f6
movq -0x18(%rbp), %rdi
addq $0xc8, %rdi
callq 0x6010
movq -0x18(%rbp), %rdi
addq $0xe0, %rdi
callq 0x6030
movq -0x18(%rbp), %rax
movl $0xffffffff, 0x14(%rax) # imm = 0xFFFFFFFF
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::safe_exit(message*)
void safe_exit (message *m) {
		log->CloseLogFile ();
		m->type = MSG_TEARDOWN;
		network_lock.lock ();
		send_message (0, m);
		while (true){
			m = receive_packet (1);
			if (m != NULL){
				if (m->type == MSG_TEARDOWN){
					network_lock.unlock ();
					exit (0);
				}
			}
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x18(%rbp)
movq 0x20(%rax), %rdi
callq 0x75d0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl $0x8, 0x10(%rax)
addq $0x28, %rdi
callq 0x3d40
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rdx
xorl %esi, %esi
callq 0x5640
movl $0x1, %edi
callq 0x24b0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
je 0x5b1d
movq -0x10(%rbp), %rax
cmpl $0x8, 0x10(%rax)
jne 0x5b1b
movq -0x18(%rbp), %rdi
addq $0x28, %rdi
callq 0x3dd0
xorl %edi, %edi
callq 0x2230
jmp 0x5b1d
jmp 0x5ae8
nop
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::simulate_crash()
void simulate_crash (){
		int c = rand () % 100;
		int crash_type = rand () % 100;
		if (c < p_crash){
			/* Don't sleep while holding locks. It's fine
			   to just modify system state accordingly when
			   waking up. */
			network_lock.lock ();
			log->Crash ();
			notify_crash (CRASH_ENTRY);
			network_lock.unlock ();

			int crash_duration = (rand () % (CRASH_DUR * 3) ) + 1;
			sleep (crash_duration);

			network_lock.lock ();
			queue_lock.lock ();
			while (!messages.empty ()) {
				message *m = messages.front ();
				messages.pop ();
				free (m);
			}
			queue_lock.unlock ();
			/* Machine Failure. Clear all current
			   state and then recover from log. */
			if (crash_type < crash_dist) {
				clear_responses ();
			}


			clear_network ();
			log->ResumeFromCrash ();
			notify_crash (RESUME_ENTRY);
			network_lock.unlock ();
		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
callq 0x2050
movl $0x64, %ecx
cltd
idivl %ecx
movl %edx, -0xc(%rbp)
callq 0x2050
movq -0x28(%rbp), %rcx
movl $0x64, %esi
cltd
idivl %esi
movl %edx, -0x10(%rbp)
movl -0xc(%rbp), %eax
cmpl 0xf8(%rcx), %eax
jge 0x5c68
movq -0x28(%rbp), %rdi
addq $0x28, %rdi
callq 0x3d40
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x7a60
movq -0x28(%rbp), %rdi
movl $0x2, %esi
callq 0x6e70
movq -0x28(%rbp), %rdi
addq $0x28, %rdi
callq 0x3dd0
callq 0x2050
movl $0x6, %ecx
cltd
idivl %ecx
addl $0x1, %edx
movl %edx, -0x14(%rbp)
movl -0x14(%rbp), %edi
callq 0x2150
movq -0x28(%rbp), %rdi
addq $0x28, %rdi
callq 0x3d40
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
callq 0x3d40
movq -0x28(%rbp), %rdi
addq $0x78, %rdi
callq 0x3d70
xorb $-0x1, %al
testb $0x1, %al
jne 0x5be6
jmp 0x5c12
movq -0x28(%rbp), %rdi
addq $0x78, %rdi
callq 0x3d90
movq -0x28(%rbp), %rdi
movq (%rax), %rax
movq %rax, -0x20(%rbp)
addq $0x78, %rdi
callq 0x3db0
movq -0x20(%rbp), %rdi
callq 0x2220
jmp 0x5bd1
movq -0x28(%rbp), %rdi
addq $0x50, %rdi
callq 0x3dd0
movq -0x28(%rbp), %rcx
movl -0x10(%rbp), %eax
cmpl 0xfc(%rcx), %eax
jge 0x5c37
movq -0x28(%rbp), %rdi
callq 0x58d0
movq -0x28(%rbp), %rdi
callq 0x6ef0
movq -0x28(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x7bd0
movq -0x28(%rbp), %rdi
movl $0x3, %esi
callq 0x6e70
movq -0x28(%rbp), %rdi
addq $0x28, %rdi
callq 0x3dd0
addq $0x30, %rsp
popq %rbp
retq
nop
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::notify_crash(int)
void notify_crash (int code) {
		message m (id, -1, code, n, MSG_CRASH);
		auto now = std::chrono::system_clock::now();
   		m.timestamp = std::chrono::duration_cast<std::chrono::nanoseconds>(now.time_since_epoch()).count();
		send_packet (0, &m);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rax
movl (%rax), %esi
movl -0xc(%rbp), %ecx
movl 0x10(%rax), %r8d
leaq -0x30(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x9, %r9d
callq 0x5600
callq 0x2030
movq %rax, -0x38(%rbp)
leaq -0x38(%rbp), %rdi
callq 0x5ca0
movq %rax, -0x48(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x5c70
movq %rax, -0x40(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x5cc0
movq %rax, -0x18(%rbp)
xorl %edi, %edi
leaq -0x30(%rbp), %rsi
callq 0x2580
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax,%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::clear_network()
void clear_network () {
		message *m;
		while (true){
			m = receive_packet (1);
			if (m == NULL){
				break;
			} else {
				free (m);
			}
		}

	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movl $0x1, %edi
callq 0x24b0
movq %rax, -0x10(%rbp)
cmpq $0x0, -0x10(%rbp)
jne 0x6f13
jmp 0x6f1e
movq -0x10(%rbp), %rdi
callq 0x2220
jmp 0x6efc
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nop
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::prepare()
void prepare (){
		if (role & PROPOSER){
			n += 1;
			message m (id, -1, -1, n, MSG_PREPARE);

			clear_responses ();
			network_lock.lock ();
			send_message (0, &m);
			network_lock.unlock ();
			prepare_acks.push_back (id);
			state = PREPARING;
			timeout = time(0);
			simulate_crash ();

		}
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movl 0x8(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x6fe5
movq -0x30(%rbp), %rax
movl 0x10(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x10(%rax)
movl (%rax), %esi
movl 0x10(%rax), %r8d
leaq -0x28(%rbp), %rdi
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
movl $0x1, %r9d
movl %ecx, %edx
callq 0x5600
movq -0x30(%rbp), %rdi
callq 0x58d0
movq -0x30(%rbp), %rdi
addq $0x28, %rdi
callq 0x3d40
movq -0x30(%rbp), %rdi
xorl %esi, %esi
leaq -0x28(%rbp), %rdx
callq 0x5640
movq -0x30(%rbp), %rdi
addq $0x28, %rdi
callq 0x3dd0
movq -0x30(%rbp), %rsi
movq %rsi, %rdi
addq $0xe0, %rdi
callq 0x59c0
movq -0x30(%rbp), %rax
movl $0xfffffffc, 0x14(%rax) # imm = 0xFFFFFFFC
xorl %eax, %eax
movl %eax, %edi
callq 0x21c0
movq -0x30(%rbp), %rdi
movq %rax, 0x100(%rdi)
callq 0x5b20
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::propose()
void propose (){

		if ((num_nodes % 2 == 0 ? num_nodes / 2 : 1 + (num_nodes / 2)) > prepare_acks.size ()){
			return;
		}

		proposed_v = true;

		state = PROPOSING;

		if (v == NO_VALUE){
			v = rand () % 250;
		}
		vote *vo = (vote *) malloc (sizeof (vote));
		vo->node = id;
		vo->n = n;
		vo->v = v;
		votes.push_back (vo);

		message m (id, -1, v, n, MSG_PROPOSE);
		network_lock.lock ();
		send_message (0, &m);
		network_lock.unlock ();
		timeout  = time(0);
		simulate_crash ();
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x38(%rbp)
movl 0x4(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
cmpl $0x0, %edx
jne 0x7028
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
movl %eax, -0x3c(%rbp)
jmp 0x703d
movq -0x38(%rbp), %rax
movl 0x4(%rax), %eax
movl $0x2, %ecx
cltd
idivl %ecx
addl $0x1, %eax
movl %eax, -0x3c(%rbp)
movq -0x38(%rbp), %rdi
movl -0x3c(%rbp), %eax
cltq
movq %rax, -0x48(%rbp)
addq $0xe0, %rdi
callq 0x5980
movq %rax, %rcx
movq -0x48(%rbp), %rax
cmpq %rcx, %rax
jbe 0x7067
jmp 0x7131
movq -0x38(%rbp), %rax
movb $0x1, 0x18(%rax)
movl $0xfffffffb, 0x14(%rax) # imm = 0xFFFFFFFB
cmpl $-0x1, 0xc(%rax)
jne 0x7090
callq 0x2050
movl $0xfa, %ecx
cltd
idivl %ecx
movq -0x38(%rbp), %rax
movl %edx, 0xc(%rax)
movl $0xc, %edi
callq 0x2260
movq -0x38(%rbp), %rdi
movq %rax, -0x10(%rbp)
movl (%rdi), %ecx
movq -0x10(%rbp), %rax
movl %ecx, (%rax)
movl 0x10(%rdi), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x4(%rax)
movl 0xc(%rdi), %ecx
movq -0x10(%rbp), %rax
movl %ecx, 0x8(%rax)
addq $0xc8, %rdi
leaq -0x10(%rbp), %rsi
callq 0x5a30
movq -0x38(%rbp), %rax
movl (%rax), %esi
movl 0xc(%rax), %ecx
movl 0x10(%rax), %r8d
leaq -0x30(%rbp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x3, %r9d
callq 0x5600
movq -0x38(%rbp), %rdi
addq $0x28, %rdi
callq 0x3d40
movq -0x38(%rbp), %rdi
xorl %esi, %esi
leaq -0x30(%rbp), %rdx
callq 0x5640
movq -0x38(%rbp), %rdi
addq $0x28, %rdi
callq 0x3dd0
xorl %eax, %eax
movl %eax, %edi
callq 0x21c0
movq -0x38(%rbp), %rdi
movq %rax, 0x100(%rdi)
callq 0x5b20
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: sidscrazy[P]Paxos/./plan/PaxosNodeLogger.cpp
// Function: PaxosNodeLogger::PaxosNodeLogger(int)
PaxosNodeLogger::PaxosNodeLogger(int nodeid)
{
    nodeuniqueid = nodeid;
    SetLogFileName(nodeid);
    OpenLogFile(logfilename);
    AddLogFileHeader();
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x60, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x48(%rbp)
movq %rdi, %rax
movq %rax, -0x58(%rbp)
callq 0x2300
movq -0x48(%rbp), %rdi
addq $0x200, %rdi            # imm = 0x200
movq %rdi, -0x50(%rbp)
callq 0x2280
movq -0x48(%rbp), %rdi
movl -0xc(%rbp), %eax
movl %eax, 0x220(%rdi)
movl -0xc(%rbp), %esi
callq 0x7270
jmp 0x71ee
movq -0x58(%rbp), %rsi
addq $0x200, %rsi            # imm = 0x200
leaq -0x40(%rbp), %rdi
callq 0x20b0
jmp 0x7204
movq -0x58(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0x7340
jmp 0x7213
leaq -0x40(%rbp), %rdi
callq 0x2110
movq -0x58(%rbp), %rdi
callq 0x7390
jmp 0x7227
addq $0x60, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
jmp 0x7250
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x18(%rbp)
movl %eax, -0x1c(%rbp)
leaq -0x40(%rbp), %rdi
callq 0x2110
movq -0x50(%rbp), %rdi
callq 0x2110
movq -0x48(%rbp), %rdi
callq 0x22c0
movq -0x18(%rbp), %rdi
callq 0x2320
nopl (%rax,%rax)
// File: sidscrazy[P]Paxos/./plan/PaxosNodeLogger.cpp
// Function: PaxosNodeLogger::AddLogFileHeader()
int PaxosNodeLogger::AddLogFileHeader(void)
{
    if (myfile.is_open()) // should always be true
    {
        // Now add header to the file
        myfile << "timeStamp" << ",";
        myfile << "nodeid" << ",";
        myfile << "receiverid" << ",";
        myfile << "nodeAlive" << ",";
        myfile << "N" << ",";
        myfile << "value" << ",";
        myfile << "nodeRole" << ",";
        myfile << "maxPromisedN" << ",";
        myfile << "consensusValue" << ",";
        myfile << "currentAction" << ",";
        return 1;
    }
    return 0; // file not open, return that failed to add header to the log file.
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x10(%rbp)
movq -0x10(%rbp), %rdi
movq %rdi, -0x18(%rbp)
callq 0x2170
testb $0x1, %al
jne 0x73b2
jmp 0x74f1
movq -0x18(%rbp), %rdi
leaq 0xe29(%rip), %rsi       # 0x81e6
callq 0x21e0
movq %rax, %rdi
leaq 0xe24(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xe16(%rip), %rsi       # 0x81f2
callq 0x21e0
movq %rax, %rdi
leaq 0xe05(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xdfe(%rip), %rsi       # 0x81f9
callq 0x21e0
movq %rax, %rdi
leaq 0xde6(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xdea(%rip), %rsi       # 0x8204
callq 0x21e0
movq %rax, %rdi
leaq 0xdc7(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xdef(%rip), %rsi       # 0x8228
callq 0x21e0
movq %rax, %rdi
leaq 0xda8(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xdb6(%rip), %rsi       # 0x820e
callq 0x21e0
movq %rax, %rdi
leaq 0xd89(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xd9d(%rip), %rsi       # 0x8214
callq 0x21e0
movq %rax, %rdi
leaq 0xd6a(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xd87(%rip), %rsi       # 0x821d
callq 0x21e0
movq %rax, %rdi
leaq 0xd4b(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xd75(%rip), %rsi       # 0x822a
callq 0x21e0
movq %rax, %rdi
leaq 0xd2c(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0xd65(%rip), %rsi       # 0x8239
callq 0x21e0
movq %rax, %rdi
leaq 0xd0d(%rip), %rsi       # 0x81f0
callq 0x21e0
movl $0x1, -0x4(%rbp)
jmp 0x74f8
movl $0x0, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: sidscrazy[P]Paxos/./plan/PaxosNodeLogger.cpp
// Function: PaxosNodeLogger::CrashSequence(message*)
void PaxosNodeLogger::CrashSequence (message *m){
    myfile << "\n"; // get to the new line for next entry.
    myfile << m->timestamp        << ",";         // get to the new line for next entry.
    myfile << m->sender     << ",";         // string: unique guid for the node which owns this log file, same as file name.
    myfile << "-1" << ",";
    myfile << m->value         << ",";         // int: denotes if the node is alive is crashed state.
    myfile << "-1"                  << ",";         // int: The value of N proposed or accepted by a node. In say Broadcast action, its value is redundant.
    myfile << "-1"            << ",";         // string: Pick value v of highest proposal number -> this is the v we are talking about
    myfile << "-1"           << ",";         // int: Proposer, Acceptor, Learner.
    myfile << "-1"      << ",";         // int: Maximum Promised value of N so far for the node. Even leader can have a promised N
    myfile << "-1"     << ","; 
    myfile << "-1"      << ",";         // int Current action on the node as the logging is happening      
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rdi
movq %rdi, -0x18(%rbp)
leaq 0x928(%rip), %rsi       # 0x8247
callq 0x21e0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movq 0x18(%rax), %rsi
callq 0x2340
movq %rax, %rdi
leaq 0x8b1(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl (%rax), %esi
callq 0x2310
movq %rax, %rdi
leaq 0x893(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0x8df(%rip), %rsi       # 0x824c
callq 0x21e0
movq %rax, %rdi
leaq 0x874(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
movq -0x10(%rbp), %rax
movl 0x8(%rax), %esi
callq 0x2310
movq %rax, %rdi
leaq 0x855(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0x8a1(%rip), %rsi       # 0x824c
callq 0x21e0
movq %rax, %rdi
leaq 0x836(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0x882(%rip), %rsi       # 0x824c
callq 0x21e0
movq %rax, %rdi
leaq 0x817(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0x863(%rip), %rsi       # 0x824c
callq 0x21e0
movq %rax, %rdi
leaq 0x7f8(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0x844(%rip), %rsi       # 0x824c
callq 0x21e0
movq %rax, %rdi
leaq 0x7d9(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0x825(%rip), %rsi       # 0x824c
callq 0x21e0
movq %rax, %rdi
leaq 0x7ba(%rip), %rsi       # 0x81f0
callq 0x21e0
movq -0x18(%rbp), %rdi
leaq 0x806(%rip), %rsi       # 0x824c
callq 0x21e0
movq %rax, %rdi
leaq 0x79b(%rip), %rsi       # 0x81f0
callq 0x21e0
addq $0x20, %rsp
popq %rbp
retq
// File: ArashPartow[P]exprtk-extras/exprtk_gnuplot.cpp
// Function: main
int main()
{
   exprtk_gnuplot_fx plotter;

   plotter
      .set_expression("clamp(-1.0,sin(2 * pi * x) + cos(x / 2 * pi),+1.0)")
      .set_domain(-5,+5)
      .set_title("ExprTk GNUPlot Example");

   plotter.plot();

   return 0;
}

// Assembly:
subq $0xe8, %rsp
movl $0x0, 0xe4(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x118a30
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x18(%rsp)
callq 0x1116a0
movq 0x18(%rsp), %rdx
leaq 0x32ff55(%rip), %rsi    # 0x44854f
leaq 0x60(%rsp), %rdi
callq 0x118970
jmp 0x118606
leaq 0x80(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x118a80
movq %rax, 0x10(%rsp)
jmp 0x11861f
movq 0x10(%rsp), %rdi
movsd 0x32a9dc(%rip), %xmm0   # 0x443008
movsd 0x32a9dc(%rip), %xmm1   # 0x443010
callq 0x118ab0
movq %rax, 0x8(%rsp)
jmp 0x118640
leaq 0x27(%rsp), %rdi
movq %rdi, (%rsp)
callq 0x1116a0
movq (%rsp), %rdx
leaq 0x32ff29(%rip), %rsi    # 0x448582
leaq 0x28(%rsp), %rdi
callq 0x118970
jmp 0x118665
movq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x118ae0
jmp 0x118676
leaq 0x28(%rsp), %rdi
callq 0x1117e8
leaq 0x27(%rsp), %rdi
callq 0x1117d0
leaq 0x60(%rsp), %rdi
callq 0x1117e8
leaq 0x5f(%rsp), %rdi
callq 0x1117d0
leaq 0x80(%rsp), %rdi
callq 0x118b10
jmp 0x1186ad
movl $0x0, 0xe4(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x118b50
movl 0xe4(%rsp), %eax
addq $0xe8, %rsp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x118730
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x118726
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
jmp 0x11871c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x28(%rsp), %rdi
callq 0x1117e8
leaq 0x27(%rsp), %rdi
callq 0x1117d0
leaq 0x60(%rsp), %rdi
callq 0x1117e8
leaq 0x5f(%rsp), %rdi
callq 0x1117d0
jmp 0x11874a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x50(%rsp)
movl %eax, 0x4c(%rsp)
leaq 0x80(%rsp), %rdi
callq 0x118b50
movq 0x50(%rsp), %rdi
callq 0x111480
nopw %cs:(%rax,%rax)
// File: ArashPartow[P]exprtk-extras/exprtk_gnuplot.cpp
// Function: exprtk_gnuplot_fx::generate_gp_script()
bool generate_gp_script()
   {
      std::ofstream stream("plot.gp");

      if (!stream)
      {
         return false;
      }

      stream << "set term png\n";
      stream << "set output 'plot.png'\n";
      stream << "set xrange[" << min_x_ << ":" << max_x_ <<"]\n";
      stream << "set yrange[" << min_y_ << ":" << max_y_ <<"]\n";
      stream << "set xzeroaxis\n";
      stream << "set yzeroaxis\n";
      stream << "plot 'data.dat' using 1:2:(1.0) smooth unique title '" << title_ <<"'\n";

      return true;
   }

// Assembly:
subq $0x288, %rsp            # imm = 0x288
movq %rdi, 0x278(%rsp)
movq 0x278(%rsp), %rax
movq %rax, 0x58(%rsp)
leaq 0x333fcd(%rip), %rsi    # 0x44d0f0
leaq 0x78(%rsp), %rdi
movl $0x10, %edx
callq 0x111270
movq 0x78(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0x78(%rsp,%rax), %rdi
callq 0x111060
movb %al, 0x67(%rsp)
jmp 0x11914b
movb 0x67(%rsp), %al
testb $0x1, %al
jne 0x119155
jmp 0x119187
movb $0x0, 0x287(%rsp)
movl $0x1, 0x68(%rsp)
jmp 0x119316
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x70(%rsp)
movl %eax, 0x6c(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x111510
jmp 0x119331
leaq 0x333f6a(%rip), %rsi    # 0x44d0f8
leaq 0x78(%rsp), %rdi
callq 0x111420
jmp 0x11919a
leaq 0x333f65(%rip), %rsi    # 0x44d106
leaq 0x78(%rsp), %rdi
callq 0x111420
jmp 0x1191ad
leaq 0x333f69(%rip), %rsi    # 0x44d11d
leaq 0x78(%rsp), %rdi
callq 0x111420
movq %rax, 0x50(%rsp)
jmp 0x1191c5
movq 0x50(%rsp), %rdi
movq 0x58(%rsp), %rax
movsd 0x40(%rax), %xmm0
callq 0x111570
movq %rax, 0x48(%rsp)
jmp 0x1191e0
movq 0x48(%rsp), %rdi
leaq 0x32fa84(%rip), %rsi    # 0x448c70
callq 0x111420
movq %rax, 0x40(%rsp)
jmp 0x1191f8
movq 0x40(%rsp), %rdi
movq 0x58(%rsp), %rax
movsd 0x48(%rax), %xmm0
callq 0x111570
movq %rax, 0x38(%rsp)
jmp 0x119213
movq 0x38(%rsp), %rdi
leaq 0x333f0a(%rip), %rsi    # 0x44d129
callq 0x111420
jmp 0x119226
leaq 0x333eff(%rip), %rsi    # 0x44d12c
leaq 0x78(%rsp), %rdi
callq 0x111420
movq %rax, 0x30(%rsp)
jmp 0x11923e
movq 0x30(%rsp), %rdi
movq 0x58(%rsp), %rax
movsd 0x50(%rax), %xmm0
callq 0x111570
movq %rax, 0x28(%rsp)
jmp 0x119259
movq 0x28(%rsp), %rdi
leaq 0x32fa0b(%rip), %rsi    # 0x448c70
callq 0x111420
movq %rax, 0x20(%rsp)
jmp 0x119271
movq 0x20(%rsp), %rdi
movq 0x58(%rsp), %rax
movsd 0x58(%rax), %xmm0
callq 0x111570
movq %rax, 0x18(%rsp)
jmp 0x11928c
movq 0x18(%rsp), %rdi
leaq 0x333e91(%rip), %rsi    # 0x44d129
callq 0x111420
jmp 0x11929f
leaq 0x333e92(%rip), %rsi    # 0x44d138
leaq 0x78(%rsp), %rdi
callq 0x111420
jmp 0x1192b2
leaq 0x333e8e(%rip), %rsi    # 0x44d147
leaq 0x78(%rsp), %rdi
callq 0x111420
jmp 0x1192c5
leaq 0x333e8a(%rip), %rsi    # 0x44d156
leaq 0x78(%rsp), %rdi
callq 0x111420
movq %rax, 0x10(%rsp)
jmp 0x1192dd
movq 0x58(%rsp), %rsi
movq 0x10(%rsp), %rdi
callq 0x111250
movq %rax, 0x8(%rsp)
jmp 0x1192f3
movq 0x8(%rsp), %rdi
leaq 0x333e1b(%rip), %rsi    # 0x44d11a
callq 0x111420
jmp 0x119306
movb $0x1, 0x287(%rsp)
movl $0x1, 0x68(%rsp)
leaq 0x78(%rsp), %rdi
callq 0x111510
movb 0x287(%rsp), %al
andb $0x1, %al
addq $0x288, %rsp            # imm = 0x288
retq
movq 0x70(%rsp), %rdi
callq 0x111480
nopl (%rax,%rax)
// File: ra101[P]Generic-BlockChain-container-cpp/./includes/rsa.hpp
// Function: ra::rsa_key_pair::create_key(unsigned long)
void rsa_key_pair::create_key(unsigned long seed)
    {
        random_prime_engine<std::default_random_engine> eng(seed);
        do
        {
            // two random prime int
            int p1 = eng();
            int p2 = eng();

            int n = p1 * p2;
            int phin = n - p1 - p2 + 1; //(p1-1)*(p2-1)
            int e = get_e(phin);
            int k = get_k(phin, e);
            int d = (k * phin + 1) / e;

            // multipplication to BIG_NO is way to concatenate n and e or d
            public_key = n * BIG_NO + e;
            private_key = n * BIG_NO + d;
        } while (!are_keys_valid());
    }

// 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)
movq -0x10(%rbp), %rsi
leaq -0x28(%rbp), %rdi
leaq 0x6961(%rip), %rdx      # 0xa008
callq 0x41f0
leaq -0x28(%rbp), %rdi
callq 0x4240
movl %eax, -0x2c(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x4240
movq -0x50(%rbp), %rdi
movl %eax, -0x30(%rbp)
movl -0x2c(%rbp), %eax
imull -0x30(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
subl -0x2c(%rbp), %eax
subl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %esi
callq 0x37b0
movq -0x50(%rbp), %rdi
movl %eax, -0x3c(%rbp)
movl -0x38(%rbp), %esi
movl -0x3c(%rbp), %edx
callq 0x37f0
movl %eax, -0x40(%rbp)
movl -0x40(%rbp), %eax
imull -0x38(%rbp), %eax
addl $0x1, %eax
cltd
idivl -0x3c(%rbp)
movl %eax, %ecx
movq -0x50(%rbp), %rax
movl %ecx, -0x44(%rbp)
movslq -0x34(%rbp), %rcx
movabsq $0x174876e800, %rdx     # imm = 0x174876E800
imulq %rdx, %rcx
movslq -0x3c(%rbp), %rdx
addq %rdx, %rcx
movq %rcx, 0x8(%rax)
movslq -0x34(%rbp), %rcx
movabsq $0x174876e800, %rdx     # imm = 0x174876E800
imulq %rdx, %rcx
movslq -0x44(%rbp), %rdx
addq %rdx, %rcx
movq %rcx, (%rax)
movq -0x50(%rbp), %rdi
callq 0x3840
xorb $-0x1, %al
testb $0x1, %al
jne 0x36ac
addq $0x50, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: ra101[P]Generic-BlockChain-container-cpp/./includes/rsa.hpp
// Function: ra::encrypt(unsigned long, unsigned long long)
std::size_t encrypt(std::size_t digest, unsigned long long int others_public_key)
    {
        int n = others_public_key / BIG_NO; // retrive n
        int e = others_public_key % BIG_NO; // retrive e
        long long int res = 1;              // Initialize result
        long long int x = digest;
        x = x % n; // Update x if it is more than or
                   // equal to n
        while (e > 0)
        {
            // If e is odd, multiply x with result
            if (e & 1)
                res = (res * x) % n;
            // e must be even now
            e = e >> 1; // e = e/2
            x = (x * x) % n;
        }
        return res;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x10(%rbp), %rax
movabsq $0x174876e800, %rcx     # imm = 0x174876E800
xorl %edx, %edx
divq %rcx
movl %eax, -0x14(%rbp)
movq -0x10(%rbp), %rax
movabsq $0x174876e800, %rcx     # imm = 0x174876E800
xorl %edx, %edx
divq %rcx
movl %edx, %eax
movl %eax, -0x18(%rbp)
movq $0x1, -0x20(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rax
movslq -0x14(%rbp), %rcx
cqto
idivq %rcx
movq %rdx, -0x28(%rbp)
cmpl $0x0, -0x18(%rbp)
jle 0x3982
movl -0x18(%rbp), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x3962
movq -0x20(%rbp), %rax
imulq -0x28(%rbp), %rax
movslq -0x14(%rbp), %rcx
cqto
idivq %rcx
movq %rdx, -0x20(%rbp)
movl -0x18(%rbp), %eax
sarl %eax
movl %eax, -0x18(%rbp)
movq -0x28(%rbp), %rax
imulq -0x28(%rbp), %rax
movslq -0x14(%rbp), %rcx
cqto
idivq %rcx
movq %rdx, -0x28(%rbp)
jmp 0x393b
movq -0x20(%rbp), %rax
popq %rbp
retq
nopl (%rax,%rax)