// File: /workspace/github_cpp_makefile_star2_O3/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 0xde11(%rip), %r13      # 0x25fc0
leaq 0x30(%rsp), %r12
movq %r14, %rdi
callq 0x5190
cmpl $-0x1, %eax
je 0x18426
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 0x3fc8(%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 0x42db(%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 0x3f26(%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 0x18304
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x1830a
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 0x30b5(%rip), %rsi      # 0x1b3e3
callq 0x56f0
movq %r15, 0x90(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1835f
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0x18366
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 0x1a9d7
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x183af
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x183c9
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x183e5
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x18401
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x181b4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x181b4
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 0x184e9
jmp 0x184e9
movq %rax, %r14
movq 0x90(%rsp), %rdi
cmpq %r15, %rdi
je 0x18485
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x18485
jmp 0x184ac
movq %rax, %r14
movq 0x70(%rsp), %rdi
cmpq %rbx, %rdi
je 0x184af
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x184af
jmp 0x184e9
jmp 0x184ee
jmp 0x184a7
movq %rax, %r14
jmp 0x184cb
movq %rax, %r14
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x184cb
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x5390
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x184f1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x5390
jmp 0x184f1
movq %rax, %r14
jmp 0x1850d
movq %rax, %r14
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x1850d
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x5390
leaq 0xb0(%rsp), %rdi
callq 0x50d0
movq %r14, %rdi
callq 0x5670