// File: /workspace/github_cpp_makefile_star2_O3/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
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdx, %rbx
movl %esi, -0x2c(%rbp)
movq %rdi, %r13
callq 0x2040
movq %rax, 0x18(%rbx)
movl 0xc(%r13), %r12d
movl %r12d, %r15d
negl %r15d
cmovsl %r12d, %r15d
movl 0x10(%r13), %eax
movl %eax, -0x30(%rbp)
movq %rbx, -0x40(%rbp)
cmpl $0x6, 0x10(%rbx)
movq 0x20(%r13), %rax
movq %rax, -0x38(%rbp)
jne 0x3462
movq %r13, -0x48(%rbp)
movl $0x1, %r14d
movl $0x1, %ebx
cmpl $0xa, %r15d
jb 0x34ce
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x34be
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x34cc
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x34ce
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3425
addl $-0x3, %ebx
jmp 0x34ce
movl $0x1, %r14d
cmpl $0xa, %r15d
jb 0x357b
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x34c3
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3578
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x357b
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3480
addl $-0x3, %r14d
jmp 0x357b
addl $-0x2, %ebx
jmp 0x34ce
addl $-0x2, %r14d
jmp 0x357b
decl %ebx
shrl $0x1f, %r12d
movl %r12d, %esi
addl %ebx, %esi
leaq -0x98(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0xa8(%rbp), %r13
movq %r13, %rdi
movl $0x2d, %edx
callq 0x2230
movq (%r13), %rdi
addq %r12, %rdi
movl %ebx, %esi
movl %r15d, %edx
callq 0x39ec
movq -0x48(%rbp), %rsi
movl 0xc(%rsi), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
cmpl $0xa, %r12d
jb 0x363c
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x356f
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3639
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x363c
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3531
addl $-0x3, %r14d
jmp 0x363c
addl $-0x2, %r14d
jmp 0x363c
decl %r14d
shrl $0x1f, %r12d
leal (%r14,%r12), %esi
leaq -0x78(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x88(%rbp), %rbx
movq %rbx, %rdi
movl $0x2d, %edx
callq 0x2230
addq (%rbx), %r12
movq %r12, %rdi
movl %r14d, %esi
movl %r15d, %edx
callq 0x39ec
movl 0x8(%r13), %ebx
movl 0x10(%r13), %r14d
leaq -0xb8(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1cad(%rip), %rdx      # 0x5278
leaq -0xc8(%rbp), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0x3a5e
movq -0x40(%rbp), %r10
movl 0x10(%r10), %eax
subq $0x8, %rsp
leaq -0x88(%rbp), %rcx
movq -0x38(%rbp), %rdi
movl $0x1, %esi
movl -0x30(%rbp), %edx
movl %ebx, %r8d
movl %r14d, %r9d
movq %r10, %r14
pushq 0x18(%r10)
pushq %rax
pushq %r15
callq 0x454a
addq $0x20, %rsp
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
movl -0x2c(%rbp), %ebx
je 0x3629
callq 0x21d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
jmp 0x36ce
decl %r14d
movl 0x8(%rsi), %ebx
movl 0x10(%rsi), %r13d
shrl $0x1f, %r15d
leal (%r14,%r15), %esi
leaq -0x58(%rbp), %rax
movq %rax, -0x10(%rax)
leaq -0x68(%rbp), %rdi
movl $0x2d, %edx
callq 0x2230
addq -0x68(%rbp), %r15
movq %r15, %rdi
movl %r14d, %esi
movl %r12d, %edx
callq 0x39ec
movq -0x40(%rbp), %r14
movl 0x10(%r14), %eax
subq $0x8, %rsp
leaq -0xa8(%rbp), %rcx
movq -0x38(%rbp), %rdi
movl $0x1, %esi
movl -0x30(%rbp), %edx
movl %ebx, %r8d
movl %r13d, %r9d
pushq 0x18(%r14)
pushq %rax
leaq -0x68(%rbp), %rax
pushq %rax
callq 0x454a
addq $0x20, %rsp
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
movl -0x2c(%rbp), %ebx
je 0x36c0
callq 0x21d0
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x36d8
callq 0x21d0
movl $0x20, %edx
movl %ebx, %edi
movq %r14, %rsi
callq 0x20a0
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
je 0x3729
callq 0x21d0
jmp 0x3729
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0x373c
callq 0x21d0
jmp 0x373c
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
jmp 0x3747
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x3751
callq 0x21d0
movq %rbx, %rdi
callq 0x2320
nop