// File: Rjerk[P]ratabase/Server.cpp
// Function: ratabase::Server::processRequest()
bool Server::processRequest()
{
    if (recvRequest() == false) {
        LOG_ERROR << "Failed in receiving request...";
        return false;
    }

    LOG_INFO << "Recevie request, parsing request...";
    if (parseRequest() == false) {
        return true;
    }

    LOG_INFO << "Parse command finished, operating database...";
    dbOperate();

    if (sendRespond() == false) {
        LOG_ERROR << "Failed in sending respond...";
        return false;
    }

    return true;
}

// Assembly:
subq $0x688, %rsp            # imm = 0x688
movq %rdi, 0x678(%rsp)
movq 0x678(%rsp), %rdi
movq %rdi, 0x40(%rsp)
callq 0x8a30
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x8812
leaq 0xb8f7(%rip), %rsi      # 0x1407d
leaq 0xb9b7(%rip), %rcx      # 0x14144
leaq 0x4f0(%rsp), %rdi
movq %rdi, 0x30(%rsp)
movl $0x59, %edx
movl $0x4, %r8d
callq 0x11e00
movq 0x30(%rsp), %rdi
callq 0x121a0
movq %rax, 0x38(%rsp)
jmp 0x87bb
movq 0x38(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb988(%rip), %rsi      # 0x14153
callq 0x3390
jmp 0x87d2
leaq 0x4f0(%rsp), %rdi
callq 0x12060
movb $0x0, 0x687(%rsp)
jmp 0x8a0b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4e8(%rsp)
movl %eax, 0x4e4(%rsp)
leaq 0x4f0(%rsp), %rdi
callq 0x12060
jmp 0x8a1c
callq 0x12170
cmpl $0x2, %eax
jg 0x88a8
leaq 0xb856(%rip), %rsi      # 0x1407d
leaq 0xb916(%rip), %rcx      # 0x14144
leaq 0x358(%rsp), %rdi
movq %rdi, 0x20(%rsp)
movl $0x5d, %edx
movl $0x2, %r8d
callq 0x11e00
movq 0x20(%rsp), %rdi
callq 0x121a0
movq %rax, 0x28(%rsp)
jmp 0x885c
movq 0x28(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb906(%rip), %rsi      # 0x14172
callq 0x3390
jmp 0x8873
leaq 0x358(%rsp), %rdi
callq 0x12060
jmp 0x88a8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4e8(%rsp)
movl %eax, 0x4e4(%rsp)
leaq 0x358(%rsp), %rdi
callq 0x12060
jmp 0x8a1c
movq 0x40(%rsp), %rdi
callq 0x8b70
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x88c9
movb $0x1, 0x687(%rsp)
jmp 0x8a0b
callq 0x12170
cmpl $0x2, %eax
jg 0x895f
leaq 0xb79f(%rip), %rsi      # 0x1407d
leaq 0xb85f(%rip), %rcx      # 0x14144
leaq 0x1d0(%rsp), %rdi
movq %rdi, 0x10(%rsp)
movl $0x62, %edx
movl $0x2, %r8d
callq 0x11e00
movq 0x10(%rsp), %rdi
callq 0x121a0
movq %rax, 0x18(%rsp)
jmp 0x8913
movq 0x18(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb873(%rip), %rsi      # 0x14196
callq 0x3390
jmp 0x892a
leaq 0x1d0(%rsp), %rdi
callq 0x12060
jmp 0x895f
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4e8(%rsp)
movl %eax, 0x4e4(%rsp)
leaq 0x1d0(%rsp), %rdi
callq 0x12060
jmp 0x8a1c
movq 0x40(%rsp), %rdi
callq 0x8cd0
movq 0x40(%rsp), %rdi
callq 0x8e30
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x8a03
leaq 0xb6f5(%rip), %rsi      # 0x1407d
leaq 0xb7b5(%rip), %rcx      # 0x14144
leaq 0x48(%rsp), %rdi
movq %rdi, (%rsp)
movl $0x66, %edx
movl $0x4, %r8d
callq 0x11e00
movq (%rsp), %rdi
callq 0x121a0
movq %rax, 0x8(%rsp)
jmp 0x89b8
movq 0x8(%rsp), %rdi
addq $0x10, %rdi
leaq 0xb7fc(%rip), %rsi      # 0x141c4
callq 0x3390
jmp 0x89cf
leaq 0x48(%rsp), %rdi
callq 0x12060
movb $0x0, 0x687(%rsp)
jmp 0x8a0b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x4e8(%rsp)
movl %eax, 0x4e4(%rsp)
leaq 0x48(%rsp), %rdi
callq 0x12060
jmp 0x8a1c
movb $0x1, 0x687(%rsp)
movb 0x687(%rsp), %al
andb $0x1, %al
addq $0x688, %rsp            # imm = 0x688
retq
movq 0x4e8(%rsp), %rdi
callq 0x3590
nopl (%rax)