// File: /workspace/github_cpp_makefile_star2_O3/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 0x13e16(%rip), %rsi     # 0x1b238
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8082
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 0x1344d
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x746f
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80ea
testb %r15b, %r15b
je 0x7587
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 0x1a080
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x74d0
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 0x79c4
movl %eax, %r14d
movq 0xc0(%rsp), %rdi
cmpq %r12, %rdi
je 0x754e
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x756b
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0x30(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x77f1
movq 0x30(%rsp), %rsi
jmp 0x77e9
movq %rsp, %r12
movl $0x7, %ecx
movq %r12, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x53c0
leaq 0x13cd7(%rip), %rsi     # 0x1b27a
movq %r12, %rdi
callq 0x50f0
movl %eax, %r15d
movq (%r12), %rdi
leaq 0x10(%rsp), %r12
cmpq %r12, %rdi
je 0x75c9
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x5390
testl %r15d, %r15d
je 0x76df
leaq 0x13ca9(%rip), %rsi     # 0x1b282
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8082
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 0x1344d
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7626
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80ea
testb %r15b, %r15b
je 0x76f4
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 0x1a267
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x7687
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 0x7e41
movl %eax, %r14d
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x77f1
movq 0x90(%rsp), %rsi
jmp 0x77e9
movq %r14, %rdi
movl %ebp, %esi
movq %rbx, %rdx
callq 0x7b1d
movl %eax, %r14d
jmp 0x780c
leaq 0x13bb5(%rip), %rsi     # 0x1b2b0
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8082
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 0x1344d
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7748
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80ea
testb %r15b, %r15b
je 0x781f
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 0x1a267
movq 0x100(%rsp), %rdi
cmpq %r15, %rdi
je 0x77a9
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 0x7f34
movl %eax, %r14d
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x77f1
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x780c
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 0x13abe(%rip), %rsi     # 0x1b2e4
leaq 0x40(%rsp), %r15
movq %r15, %rdi
movl $0x10, %edx
callq 0x8082
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 0x1344d
movl %eax, %r15d
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x7873
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80ea
movl $0x1, %r14d
testb %r15b, %r15b
je 0x780c
movl %ebp, %edi
movq %rbx, %rsi
callq 0x8027
jmp 0x76ec
movq %rax, %rbx
movq 0x60(%rsp), %rdi
cmpq %r15, %rdi
je 0x78b6
movq 0x70(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x78b6
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x78e0
jmp 0x79bc
jmp 0x7999
movq %rax, %rbx
movq 0x100(%rsp), %rdi
movq %r15, %r12
cmpq %r15, %rdi
je 0x79bc
movq (%r12), %rsi
jmp 0x798f
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x790e
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x790e
movq %rax, %rbx
leaq 0x10(%rsp), %r15
movq -0x10(%r15), %rdi
jmp 0x7926
jmp 0x7999
movq %rax, %rbx
movq 0x120(%rsp), %rdi
cmpq %r15, %rdi
je 0x79bc
movq (%r15), %rsi
jmp 0x798f
jmp 0x7999
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x72be
jmp 0x796d
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0x796d
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x796d
movq %rax, %rbx
movq %rsp, %rdi
callq 0x72be
jmp 0x79bc
movq %rax, %rbx
movq 0xe0(%rsp), %rdi
cmpq %r15, %rdi
je 0x79bc
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x79bc
movq %rax, %rbx
movq (%rsp), %rdi
testq %rdi, %rdi
je 0x79b2
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x5390
leaq 0x40(%rsp), %rdi
callq 0x80ea
movq %rbx, %rdi
callq 0x5670