// File: /workspace/github_cpp_makefile_star2_O1/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 0x3460
movq %r13, -0x48(%rbp)
movl $0x1, %r14d
movl $0x1, %ebx
cmpl $0xa, %r15d
jb 0x34cc
movl $0x4, %ebx
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x34bc
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x34ca
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x34cc
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %ebx
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x3423
addl $-0x3, %ebx
jmp 0x34cc
movl $0x1, %r14d
cmpl $0xa, %r15d
jb 0x3579
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r15d, %ecx
cmpl $0x63, %ecx
jbe 0x34c1
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3576
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x3579
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x347e
addl $-0x3, %r14d
jmp 0x3579
addl $-0x2, %ebx
jmp 0x34cc
addl $-0x2, %r14d
jmp 0x3579
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 0x39ea
movq -0x48(%rbp), %rsi
movl 0xc(%rsi), %r15d
movl %r15d, %r12d
negl %r12d
cmovsl %r15d, %r12d
cmpl $0xa, %r12d
jb 0x363a
movl $0x4, %r14d
movl $0xd1b71759, %eax       # imm = 0xD1B71759
movl %r12d, %ecx
cmpl $0x63, %ecx
jbe 0x356d
cmpl $0x3e7, %ecx            # imm = 0x3E7
jbe 0x3637
cmpl $0x2710, %ecx           # imm = 0x2710
jb 0x363a
movl %ecx, %edx
imulq %rax, %rdx
shrq $0x2d, %rdx
addl $0x4, %r14d
cmpl $0x1869f, %ecx          # imm = 0x1869F
movl %edx, %ecx
ja 0x352f
addl $-0x3, %r14d
jmp 0x363a
addl $-0x2, %r14d
jmp 0x363a
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 0x39ea
movl 0x8(%r13), %ebx
movl 0x10(%r13), %r14d
leaq -0xb8(%rbp), %r12
movq %r12, -0x10(%r12)
leaq 0x1caf(%rip), %rdx      # 0x5278
leaq -0xc8(%rbp), %r15
movq %r15, %rdi
movq %rdx, %rsi
callq 0x3a5c
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 0x4536
addq $0x20, %rsp
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
movl -0x2c(%rbp), %ebx
je 0x3627
callq 0x21d0
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
jmp 0x36cc
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 0x39ea
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 0x4536
addq $0x20, %rsp
movq -0x68(%rbp), %rdi
leaq -0x58(%rbp), %rax
cmpq %rax, %rdi
movl -0x2c(%rbp), %ebx
je 0x36be
callq 0x21d0
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
cmpq %rax, %rdi
je 0x36d6
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 0x3727
callq 0x21d0
jmp 0x3727
movq %rax, %rbx
movq -0xc8(%rbp), %rdi
cmpq %r12, %rdi
je 0x373a
callq 0x21d0
jmp 0x373a
movq %rax, %rbx
movq -0xa8(%rbp), %rdi
leaq -0x98(%rbp), %rax
jmp 0x3745
movq %rax, %rbx
movq -0x88(%rbp), %rdi
leaq -0x78(%rbp), %rax
cmpq %rax, %rdi
je 0x374f
callq 0x21d0
movq %rbx, %rdi
callq 0x2320
nop