// File: Rjerk[P]ratabase/Server.cpp
// Function: ratabase::Server::sendRespond()
bool Server::sendRespond()
{
    LOG_INFO << "sending respond...";
    string msg = rm_->getMsg();
    LOG_DEBUG << "ger reply from manager: " << msg;
    LOG_INFO << "sock: " << connsock_;
    ssize_t nread = sockets::write(connsock_, msg.c_str(), msg.size());
    LOG_INFO << nread ;
    if (nread > 0) {
        LOG_DEBUG << "send buf: " << msg;
        return true;
    }
    return false;
}

// Assembly:
subq $0x888, %rsp            # imm = 0x888
movq %rdi, 0x878(%rsp)
movq 0x878(%rsp), %rax
movq %rax, 0x88(%rsp)
callq 0x12170
cmpl $0x2, %eax
jg 0x8eeb
leaq 0xb219(%rip), %rsi      # 0x1407d
leaq 0xb390(%rip), %rcx      # 0x141fb
leaq 0x6f0(%rsp), %rdi
movq %rdi, 0x78(%rsp)
movl $0x7c, %edx
movl $0x2, %r8d
callq 0x11e00
movq 0x78(%rsp), %rdi
callq 0x121a0
movq %rax, 0x80(%rsp)
jmp 0x8e9c
movq 0x80(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb31f(%rip), %rsi      # 0x141ce
callq 0x3390
jmp 0x8eb6
leaq 0x6f0(%rsp), %rdi
callq 0x12060
jmp 0x8eeb
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x6e8(%rsp)
movl %eax, 0x6e4(%rsp)
leaq 0x6f0(%rsp), %rdi
callq 0x12060
jmp 0x92a6
movq 0x88(%rsp), %rdi
addq $0x10, %rdi
callq 0x9550
movq %rax, %rsi
leaq 0x6c0(%rsp), %rdi
callq 0x9560
callq 0x12170
movl %eax, 0x74(%rsp)
jmp 0x8f17
movl 0x74(%rsp), %eax
cmpl $0x1, %eax
jg 0x8fde
leaq 0xb152(%rip), %rsi      # 0x1407d
leaq 0xb2c9(%rip), %rcx      # 0x141fb
leaq 0x538(%rsp), %rdi
movl $0x7e, %edx
movl $0x1, %r8d
callq 0x11e00
jmp 0x8f4c
leaq 0x538(%rsp), %rdi
callq 0x121a0
movq %rax, 0x68(%rsp)
jmp 0x8f60
movq 0x68(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb297(%rip), %rsi      # 0x14207
callq 0x3390
movq %rax, 0x60(%rsp)
jmp 0x8f7c
movq 0x60(%rsp), %rdi
leaq 0x6c0(%rsp), %rsi
callq 0x3350
jmp 0x8f90
leaq 0x538(%rsp), %rdi
callq 0x12060
jmp 0x8fde
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x6e8(%rsp)
movl %eax, 0x6e4(%rsp)
jmp 0x9299
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x6e8(%rsp)
movl %eax, 0x6e4(%rsp)
leaq 0x538(%rsp), %rdi
callq 0x12060
jmp 0x9299
callq 0x12170
movl %eax, 0x5c(%rsp)
jmp 0x8fe9
movl 0x5c(%rsp), %eax
cmpl $0x2, %eax
jg 0x909a
leaq 0xb080(%rip), %rsi      # 0x1407d
leaq 0xb1f7(%rip), %rcx      # 0x141fb
leaq 0x3b0(%rsp), %rdi
movl $0x7f, %edx
movl $0x2, %r8d
callq 0x11e00
jmp 0x901e
leaq 0x3b0(%rsp), %rdi
callq 0x121a0
movq %rax, 0x50(%rsp)
jmp 0x9032
movq 0x50(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb1de(%rip), %rsi      # 0x14220
callq 0x3390
movq %rax, 0x48(%rsp)
jmp 0x904e
movq 0x48(%rsp), %rdi
movq 0x88(%rsp), %rax
movl 0x8(%rax), %esi
callq 0x3570
jmp 0x9065
leaq 0x3b0(%rsp), %rdi
callq 0x12060
jmp 0x909a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x6e8(%rsp)
movl %eax, 0x6e4(%rsp)
leaq 0x3b0(%rsp), %rdi
callq 0x12060
jmp 0x9299
movq 0x88(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, 0x34(%rsp)
leaq 0x6c0(%rsp), %rdi
movq %rdi, 0x28(%rsp)
callq 0x31a0
movq 0x28(%rsp), %rdi
movq %rax, 0x38(%rsp)
callq 0x32b0
movl 0x34(%rsp), %edi
movq 0x38(%rsp), %rsi
movq %rax, %rdx
callq 0x130c0
movq %rax, 0x40(%rsp)
jmp 0x90e2
movq 0x40(%rsp), %rax
movq %rax, 0x3a8(%rsp)
callq 0x12170
movl %eax, 0x24(%rsp)
jmp 0x90fa
movl 0x24(%rsp), %eax
cmpl $0x2, %eax
jg 0x9190
leaq 0xaf6f(%rip), %rsi      # 0x1407d
leaq 0xb0e6(%rip), %rcx      # 0x141fb
leaq 0x220(%rsp), %rdi
movl $0x81, %edx
movl $0x2, %r8d
callq 0x11e00
jmp 0x912f
leaq 0x220(%rsp), %rdi
callq 0x121a0
movq %rax, 0x18(%rsp)
jmp 0x9143
movq 0x18(%rsp), %rdi
addq $0x10, %rdi
movq 0x3a8(%rsp), %rsi
callq 0x35c0
jmp 0x915b
leaq 0x220(%rsp), %rdi
callq 0x12060
jmp 0x9190
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x6e8(%rsp)
movl %eax, 0x6e4(%rsp)
leaq 0x220(%rsp), %rdi
callq 0x12060
jmp 0x9299
cmpq $0x0, 0x3a8(%rsp)
jle 0x9268
callq 0x12170
movl %eax, 0x14(%rsp)
jmp 0x91aa
movl 0x14(%rsp), %eax
cmpl $0x1, %eax
jg 0x9253
leaq 0xaebf(%rip), %rsi      # 0x1407d
leaq 0xb036(%rip), %rcx      # 0x141fb
leaq 0x98(%rsp), %rdi
movl $0x83, %edx
movl $0x1, %r8d
callq 0x11e00
jmp 0x91df
leaq 0x98(%rsp), %rdi
callq 0x121a0
movq %rax, 0x8(%rsp)
jmp 0x91f3
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb024(%rip), %rsi      # 0x14227
callq 0x3390
movq %rax, (%rsp)
jmp 0x920e
movq (%rsp), %rdi
leaq 0x6c0(%rsp), %rsi
callq 0x3350
jmp 0x9221
leaq 0x98(%rsp), %rdi
callq 0x12060
jmp 0x9253
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x6e8(%rsp)
movl %eax, 0x6e4(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x12060
jmp 0x9299
movb $0x1, 0x887(%rsp)
movl $0x1, 0x94(%rsp)
jmp 0x927b
movb $0x0, 0x887(%rsp)
movl $0x1, 0x94(%rsp)
leaq 0x6c0(%rsp), %rdi
callq 0x3280
movb 0x887(%rsp), %al
andb $0x1, %al
addq $0x888, %rsp            # imm = 0x888
retq
leaq 0x6c0(%rsp), %rdi
callq 0x3280
movq 0x6e8(%rsp), %rdi
callq 0x3590
nopw %cs:(%rax,%rax)
nopl (%rax)