// File: /workspace/github_cpp_makefile_star2_O1/prakhar2808[P]DBEngine/dbengine/dbops.cc
// Function: evalOp(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&, database*, int)
opStatus evalOp(std::string& inBuffer, database* dbObject, int clientSocket) {
  // Put op
  if(regex_match(inBuffer, putRegex)) {
    keyValuePair_t keyValuePair = getKeyValuePair(inBuffer);
    return putOp(keyValuePair, clientSocket, dbObject);
  }
  // File put op
  if(inBuffer.substr(0,7) == "FILEPUT") {
    return filePutOp(inBuffer, clientSocket, dbObject); 
  }
  // Get op
  else if(regex_match(inBuffer, getRegex)) {
    std::string key = getKey(inBuffer);
    return getOp(key, clientSocket, dbObject);
  }
  // Delete op
  else if(regex_match(inBuffer, deleteRegex)) {
    std::string key = getKey(inBuffer);
    return deleteOp(key, clientSocket, dbObject);
  }
  //List all
  else if(regex_match(inBuffer, listAllRegex)) {
    return listAllOp(clientSocket, dbObject);
  }
  // No op
  return opStatus::opInvalid;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x140, %rsp            # imm = 0x140
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x13e62(%rip), %rsi     # 0x1b238
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8042
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x133ff
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7423
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80aa
testb %r15b, %r15b
je 0x753b
leaq 0xf0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0xe0(%rsp), %r14
movq %r14, %rdi
callq 0x6924
movq %rsp, %rdi
movq %r14, %rsi
callq 0x1a078
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x7484
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0xb0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0xa0(%rsp), %rdi
callq 0x6924
leaq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %r12
movq %r12, -0x10(%r12)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
callq 0x6924
leaq 0xa0(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x7978
movl %eax, %r14d
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x7502
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x751f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77a5
movq 0x30(%rsp), %rsi
jmp 0x779d
movq %rsp, %r12
movl $0x7, %ecx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x53c0
leaq 0x13d23(%rip), %rsi     # 0x1b27a
movq %r12, %rdi
callq 0x50f0
movl %eax, %r15d
movq (%r12), %rdi
leaq 0x10(%rsp), %r12
cmpq %r12, %rdi
je 0x757d
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5390
testl %r15d, %r15d
je 0x7693
leaq 0x13cf5(%rip), %rsi     # 0x1b282
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8042
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x133ff
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x75da
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80aa
testb %r15b, %r15b
je 0x76a8
leaq 0x130(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x120(%rsp), %r14
movq %r14, %rdi
callq 0x6924
movq %rsp, %rdi
movq %r14, %rsi
callq 0x1a25f
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x763b
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x80(%rsp), %rdi
callq 0x6924
leaq 0x80(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x7e01
movl %eax, %r14d
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x77a5
movq 0x90(%rsp), %rsi
jmp 0x779d
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x7ad1
movl %eax, %r14d
jmp 0x77c0
leaq 0x13c01(%rip), %rsi     # 0x1b2b0
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8042
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x133ff
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x76fc
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80aa
testb %r15b, %r15b
je 0x77d3
leaq 0x110(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %r14
movq %r14, %rdi
callq 0x6924
movq %rsp, %rdi
movq %r14, %rsi
callq 0x1a25f
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x775d
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0x70(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
addq %rsi, %rdx
leaq 0x60(%rsp), %rdi
callq 0x6924
leaq 0x60(%rsp), %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x7ef4
movl %eax, %r14d
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x77a5
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77c0
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5390
movl %r14d, %eax
addq $0x140, %rsp            # imm = 0x140
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13b0a(%rip), %rsi     # 0x1b2e4
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8042
movq (%r14), %rdi
movq 0x8(%r14), %rsi
addq %rdi, %rsi
xorps %xmm0, %xmm0
movq %rsp, %rdx
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, (%rdx)
movq %r15, %rcx
xorl %r8d, %r8d
callq 0x133ff
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7827
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80aa
movl $0x1, %r14d
testb %r15b, %r15b
je 0x77c0
movl %ebp, %edi
movq %rbx, %rsi
callq 0x7fe7
jmp 0x76a0
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x786a
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x786a
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x7894
jmp 0x7970
jmp 0x794d
movq %rax, %rbx
movq 0x100(%rsp), %rdi
movq %r15, %r12
cmpq %r15, %rdi
je 0x7970
movq (%r12), %rsi
jmp 0x7943
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x78c2
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x78c2
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %rdi
jmp 0x78da
jmp 0x794d
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x7970
movq (%r15), %rsi
jmp 0x7943
jmp 0x794d
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x7278
jmp 0x7921
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x7921
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x7921
movq %rax, %rbx
movq %rsp, %rdi
callq 0x7278
jmp 0x7970
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x7970
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x7970
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7966
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80aa
movq %rbx, %rdi
callq 0x5670