// File: sidscrazy[P]Paxos/paxos_node.cpp
// Function: PaxosNode::send_message(int, message*)
void send_message (int fd, message *m){
		auto now = std::chrono::system_clock::now();
   		m->timestamp = std::chrono::duration_cast<std::chrono::nanoseconds>(now.time_since_epoch()).count();
		if (m->type == MSG_CONSENSUS){
			log->AddRowToLogFile (MSG_ENTRY, n, to_string (v),
								  role, n, to_string (v), m->type, m->timestamp);
		} else {
			log->AddRowToLogFile (MSG_ENTRY, n, to_string (v),
								  role, n, "", m->type, m->timestamp);
		}

		send_packet (fd, m);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x120, %rsp            # imm = 0x120
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0xd0(%rbp)
callq 0x2030
movq %rax, -0x20(%rbp)
leaq -0x20(%rbp), %rdi
callq 0x5ca0
movq %rax, -0x30(%rbp)
leaq -0x30(%rbp), %rdi
callq 0x5c70
movq %rax, -0x28(%rbp)
leaq -0x28(%rbp), %rdi
callq 0x5cc0
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x18(%rax)
movq -0x18(%rbp), %rax
cmpl $0x6, 0x10(%rax)
jne 0x5783
movq -0xd0(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0xe8(%rbp)
movl 0xc(%rax), %esi
movl 0x10(%rax), %eax
movl %eax, -0xdc(%rbp)
leaq -0x50(%rbp), %rdi
callq 0x5ce0
movq -0xd0(%rbp), %rax
movl 0x8(%rax), %ecx
movl %ecx, -0xd8(%rbp)
movl 0xc(%rax), %esi
movl 0x10(%rax), %eax
movl %eax, -0xd4(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x5ce0
jmp 0x56f4
movl -0xd4(%rbp), %r9d
movl -0xd8(%rbp), %r8d
movl -0xdc(%rbp), %edx
movq -0xe8(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movq 0x18(%rax), %rsi
movq %rsp, %rax
movq %rsi, 0x10(%rax)
movl %ecx, 0x8(%rax)
leaq -0x70(%rbp), %rcx
movq %rcx, (%rax)
movl $0x1, %esi
leaq -0x50(%rbp), %rcx
callq 0x7600
jmp 0x573b
leaq -0x70(%rbp), %rdi
callq 0x2110
leaq -0x50(%rbp), %rdi
callq 0x2110
jmp 0x58a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x5775
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x2110
leaq -0x50(%rbp), %rdi
callq 0x2110
jmp 0x58bd
movq -0xd0(%rbp), %rax
movq 0x20(%rax), %rcx
movq %rcx, -0x108(%rbp)
movl 0xc(%rax), %esi
movl 0x10(%rax), %eax
movl %eax, -0xfc(%rbp)
leaq -0xa0(%rbp), %rdi
callq 0x5ce0
movq -0xd0(%rbp), %rax
movl 0x8(%rax), %ecx
movl %ecx, -0xf8(%rbp)
movl 0x10(%rax), %eax
movl %eax, -0xf4(%rbp)
leaq -0xc1(%rbp), %rdi
movq %rdi, -0xf0(%rbp)
callq 0x2330
movq -0xf0(%rbp), %rdx
leaq 0x2a61(%rip), %rsi      # 0x8248
leaq -0xc0(%rbp), %rdi
callq 0x2270
jmp 0x57f5
movl -0xf4(%rbp), %r9d
movl -0xf8(%rbp), %r8d
movl -0xfc(%rbp), %edx
movq -0x108(%rbp), %rdi
movq -0x18(%rbp), %rax
movl 0x10(%rax), %ecx
movq 0x18(%rax), %rsi
movq %rsp, %rax
movq %rsi, 0x10(%rax)
movl %ecx, 0x8(%rax)
leaq -0xc0(%rbp), %rcx
movq %rcx, (%rax)
movl $0x1, %esi
leaq -0xa0(%rbp), %rcx
callq 0x7600
jmp 0x5842
leaq -0xc0(%rbp), %rdi
callq 0x2110
leaq -0xc1(%rbp), %rdi
callq 0x2210
leaq -0xa0(%rbp), %rdi
callq 0x2110
jmp 0x58a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
jmp 0x588e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x78(%rbp)
movl %eax, -0x7c(%rbp)
leaq -0xc0(%rbp), %rdi
callq 0x2110
leaq -0xc1(%rbp), %rdi
callq 0x2210
leaq -0xa0(%rbp), %rdi
callq 0x2110
jmp 0x58bd
movl -0xc(%rbp), %edi
movq -0x18(%rbp), %rsi
callq 0x2580
addq $0x120, %rsp            # imm = 0x120
popq %rbp
retq
movq -0x78(%rbp), %rdi
callq 0x2320
nopw %cs:(%rax,%rax)