// File: /workspace/github_cpp_makefile_star2_O1/prakhar2808[P]DBEngine/dbengine/sstable.cc
// Function: sstable::getAllValues(int)
opStatus sstable::getAllValues(int clientSocket) {
  std::ifstream readfd;
  openFileToRead(readfd);
  unsigned char ch;
  while(readfd.peek() != EOF) {
    readfd >> ch;
    std::string data((int)ch, '\0');
    readfd.read(&data[0], (int)ch);
    std::cout << "Read key : " << data << " from SSTable!" << std::endl;
    readfd >> ch;
    std::string val((int)ch, '\0');
    readfd.read(&val[0], (int)ch);
    sendToClient(clientSocket, data+" -------> "+val+"\n");
  }
  closeFileAfterRead(readfd);
  return opStatus::opSuccess;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2b8, %rsp            # imm = 0x2B8
movl %esi, 0xc(%rsp)
movq %rdi, %r14
leaq 0xb0(%rsp), %r15
movq %r15, %rdi
callq 0x5420
addq $0x38, %r14
movq %r15, %rdi
movq %r14, %rsi
movl $0x8, %edx
callq 0x5320
leaq 0xb0(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rax
andl $0xffffefff, 0xc8(%rsp,%rax) # imm = 0xFFFFEFFF
leaq 0x80(%rsp), %rbx
leaq 0xa0(%rsp), %r15
movq 0xde69(%rip), %r13      # 0x25fc0
leaq 0x30(%rsp), %r12
movq %r14, %rdi
callq 0x5190
cmpl $-0x1, %eax
je 0x183ce
movq %r14, %rdi
leaq 0xb(%rsp), %rsi
callq 0x54c0
movzbl 0xb(%rsp), %esi
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
callq 0x5450
movq 0x10(%rsp), %rsi
movzbl 0xb(%rsp), %edx
movq %r14, %rdi
callq 0x5490
movl $0xb, %edx
movq %r13, %rdi
leaq 0x4020(%rip), %rsi      # 0x1c1d6
callq 0x5430
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq %r13, %rdi
callq 0x5430
movq %rax, %rbp
movl $0xe, %edx
movq %rax, %rdi
leaq 0x4333(%rip), %rsi      # 0x1c512
callq 0x5430
movq (%rbp), %rax
movq -0x18(%rax), %rdi
addq %rbp, %rdi
movl $0xa, %esi
callq 0x5370
movsbl %al, %esi
movq %rbp, %rdi
callq 0x5050
movq %rax, %rdi
callq 0x5280
movq %r14, %rdi
leaq 0xb(%rsp), %rsi
callq 0x54c0
movzbl 0xb(%rsp), %esi
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
leaq 0x50(%rsp), %rdi
xorl %edx, %edx
callq 0x5450
movq 0x50(%rsp), %rsi
movzbl 0xb(%rsp), %edx
movq %r14, %rdi
callq 0x5490
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
addq %rsi, %rdx
movq %r12, %rdi
callq 0x6924
movq %r12, %rdi
leaq 0x3f7e(%rip), %rsi      # 0x1c1ed
callq 0x56f0
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %r12, %rdi
callq 0x5100
movq %rbx, 0x70(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x182ac
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x182b2
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %rdi
leaq 0x310d(%rip), %rsi      # 0x1b3e3
callq 0x56f0
movq %r15, 0x90(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x18307
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x1830e
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
movq %rdx, 0x98(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0xc(%rsp), %edi
leaq 0x90(%rsp), %rsi
callq 0x1aa0a
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x18357
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x18371
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x1838d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x183a9
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1815c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x1815c
leaq 0xb0(%rsp), %rdi
callq 0x50b0
leaq 0xb0(%rsp), %rdi
callq 0x50d0
xorl %eax, %eax
addq $0x2b8, %rsp            # imm = 0x2B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x18491
jmp 0x18491
movq %rax, %r14
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x1842d
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x1842d
jmp 0x18454
movq %rax, %r14
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x18457
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x18457
jmp 0x18491
jmp 0x18496
jmp 0x1844f
movq %rax, %r14
jmp 0x18473
movq %rax, %r14
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x18473
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x18499
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x18499
movq %rax, %r14
jmp 0x184b5
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x184b5
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0xb0(%rsp), %rdi
callq 0x50d0
movq %r14, %rdi
callq 0x5670