LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../serialize/serial.h
// Function: Serializable::write(char const*, char*, bool)
void write(const char* name, char* val, bool wrap) {
        int SIZEOFINSERTS = 10;
        char str[strlen(val) + strlen(name) + SIZEOFINSERTS];
        if(wrap) {
            sprintf(str, "'%s' : '%s', ", name, val);
        } else {
            sprintf(str, "'%s' : %s, ", name, val);
        }
        buff->c(str);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %r13d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movq %rdx, %rdi
callq 0x7100
movq %rax, %r14
movq %r12, %rdi
callq 0x7100
addq %r14, %rax
addq $0x19, %rax
andq $-0x10, %rax
movq %rsp, %r14
subq %rax, %r14
movq %r14, %rsp
leaq 0x12933(%rip), %rax     # 0x1d34b
leaq 0x129de(%rip), %rsi     # 0x1d3fd
testl %r13d, %r13d
cmovneq %rax, %rsi
movq %r14, %rdi
movq %r12, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0x7080
movq (%rbx), %rbx
movq %r14, %rdi
callq 0x7100
movq %rax, %r15
movq %rbx, %rdi
movq %rax, %rsi
callq 0x8260
movq 0x10(%rbx), %rdi
addq 0x20(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x71a0
addq %r15, 0x20(%rbx)
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/map.h
// Function: Map::add(Object*, Object*)
void add(Object* key, Object* value) {
      //std::cout << "Map put: " << "key: " << key->serialize() << " val: " << value->serialize() << "\n";
      size_t key_hash = key->hash();
      //std::cout << "put hash" << key_hash << "\n";
      KeyVal *key_val = new KeyVal(key, value);
      size_t index = key_hash % this->numBuckets_;
      //std::cout << "map put queue index: " << index << "\n";
      Queue *queue_at_index = dynamic_cast<Queue*>(this->buckets_->get(index));
      if (queue_at_index->size() == 0) {
        this->bucketsUsed_ += 1;
        if (((float) this->bucketsUsed_ / (float) this->numBuckets_) > 0.75) {
          this->rehash_();
        }
      } 
      if (queue_at_index->get(key_val) == nullptr) {
        queue_at_index->add(key_val);
      } else {
        Object* removed = this->pop_item(key);
        //String *before  = dynamic_cast<String*>(key_val->getVal());
        queue_at_index->add(key_val);
        //String *after  = dynamic_cast<String*>(this->get(key));
      }
      this->items_ += 1;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x10(%rax)
movq %rax, %r13
movl $0x20, %edi
callq 0x7230
movq %rax, %r15
movq $0x0, 0x8(%rax)
leaq 0x1deab(%rip), %rax     # 0x28960
movq %rax, (%r15)
movq %r14, 0x10(%r15)
movq %r12, 0x18(%r15)
movq %r13, %rax
xorl %edx, %edx
divq 0x10(%rbx)
movq 0x28(%rbx), %rdi
movq (%rdi), %rax
movq %rdx, %rsi
callq *0x40(%rax)
leaq 0x1d76b(%rip), %rsi     # 0x28248
leaq 0x1de3c(%rip), %rdx     # 0x28920
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x7280
movq %rax, %r12
cmpq $0x0, 0x20(%rax)
jne 0xab5b
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
incq %rcx
movq %rcx, 0x18(%rbx)
js 0xab10
cvtsi2ss %rcx, %xmm0
jmp 0xab25
movq %rcx, %rdx
shrq %rdx
andl $0x1, %ecx
orq %rdx, %rcx
cvtsi2ss %rcx, %xmm0
addss %xmm0, %xmm0
testq %rax, %rax
js 0xab31
cvtsi2ss %rax, %xmm1
jmp 0xab46
movq %rax, %rcx
shrq %rcx
andl $0x1, %eax
orq %rcx, %rax
cvtsi2ss %rax, %xmm1
addss %xmm1, %xmm1
divss %xmm1, %xmm0
ucomiss 0x1252f(%rip), %xmm0    # 0x1d080
jbe 0xab5b
movq %rbx, %rdi
callq 0xab94
movq %r12, %rdi
movq %r15, %rsi
callq 0xa816
testq %rax, %rax
je 0xab76
movq %rbx, %rdi
movq %r14, %rsi
callq 0xad52
movq %r12, %rdi
movq %r15, %rsi
callq 0xacdc
incq 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/map.h
// Function: Map::rehash_()
void rehash_() {
      KeyVal *key_val[this->items_];
      Object** this_keys = this->keys();
      for (size_t i = 0; i < this->size(); i++) {
        key_val[i] = new KeyVal(this_keys[i], this->get(this_keys[i]));
      }

      size_t items = this->items_;

      this->numBuckets_ = 2 * this->numBuckets_;
      this->bucketsUsed_ = 0;
      this->items_ = 0;

      delete this->buckets_;

      this->buckets_ = new Array(this->numBuckets_);

      for (size_t i = 0; i < items; i++) {
        this->add(key_val[i]->getKey(), key_val[i]->getVal());
      }     
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq %rsp, %rcx
leaq 0xf(,%rax,8), %rax
andq $-0x10, %rax
subq %rax, %rcx
movq %rcx, -0x30(%rbp)
movq %rcx, %rsp
callq 0xa596
movq 0x20(%rbx), %r12
testq %r12, %r12
je 0xac20
movq %rax, %r15
xorl %r13d, %r13d
movl $0x20, %edi
callq 0x7230
movq %rax, %r14
movq (%r15,%r13,8), %r12
movq %rbx, %rdi
movq %r12, %rsi
callq 0xa6de
movq $0x0, 0x8(%r14)
leaq 0x1dd5f(%rip), %rcx     # 0x28960
movq %rcx, (%r14)
movq %r12, 0x10(%r14)
movq %rax, 0x18(%r14)
movq -0x30(%rbp), %rax
movq %r14, (%rax,%r13,8)
incq %r13
movq 0x20(%rbx), %r12
cmpq %r12, %r13
jb 0xabd6
shlq 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%rbx)
movq 0x28(%rbx), %rdi
testq %rdi, %rdi
je 0xac3a
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x28, %edi
callq 0x7230
movq %rax, %r14
movq 0x10(%rbx), %r15
movq $0x0, 0x8(%rax)
leaq 0x1dac6(%rip), %rax     # 0x28720
movq %rax, (%r14)
movq %r15, %rax
shrq $0x3d, %rax
leaq (,%r15,8), %rcx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x7030
movq %rax, 0x10(%r14)
movq %r15, 0x20(%r14)
movq $0x0, 0x18(%r14)
movq %r14, 0x28(%rbx)
testq %r12, %r12
movq -0x30(%rbp), %r15
je 0xacb8
xorl %r14d, %r14d
movq (%r15,%r14,8), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %rdx
movq %rbx, %rdi
callq 0xaa76
incq %r14
cmpq %r14, %r12
jne 0xac9c
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0xacc9
movq %rax, %rbx
movq %r14, %rdi
callq 0x7200
movq %rbx, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/queue.h
// Function: Queue::add(Object*)
void add(Object* o) {
    //create the linked list node.
    ObjectNode *newNode = new ObjectNode(o);
    if (this->head_ == nullptr) {
      //adding in first element. set both head and tail to be that element.
      this->head_ = newNode;
      this->tail_ = newNode;
      //increment size.
      this->size_+=1;
    } else{
      this->tail_->setNext(newNode);
      newNode->setPrev(this->tail_);
      this->tail_ = newNode;
      this->size_+=1;
    }
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movl $0x28, %edi
callq 0x7230
movq %rax, %r14
movq $0x0, 0x8(%rax)
leaq 0x1dca8(%rip), %rax     # 0x289b0
movq %rax, (%r14)
movq %r15, 0x10(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x18(%r14)
cmpq $0x0, 0x10(%rbx)
je 0xad3a
movq 0x18(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x50(%rax)
movq 0x18(%rbx), %rsi
movq (%r14), %rax
movq %r14, %rdi
callq *0x58(%rax)
jmp 0xad3e
movq %r14, 0x10(%rbx)
movq %r14, 0x18(%rbx)
incq 0x20(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/map.h
// Function: Map::pop_item(Object*)
Object* pop_item(Object* key) {
      size_t key_hash = key->hash();
      int index = key_hash % this->numBuckets_;
      Queue *queue_at_index = dynamic_cast<Queue *>(this->buckets_->get(index));
      KeyVal *wrappedkey = new KeyVal(key, nullptr);
      this->items_ -= 1;
      if (queue_at_index->size() == 0) {
        this->bucketsUsed_ -= 1;    
      }
      KeyVal *keyVal = dynamic_cast<KeyVal*>(queue_at_index->remove(wrappedkey));
      return keyVal->getVal();
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rsi), %rax
movq %rsi, %rdi
callq *0x10(%rax)
xorl %r15d, %r15d
xorl %edx, %edx
divq 0x10(%rbx)
movq 0x28(%rbx), %rdi
movslq %edx, %rsi
movq (%rdi), %rax
callq *0x40(%rax)
testq %rax, %rax
je 0xada1
leaq 0x1d4bb(%rip), %rsi     # 0x28248
leaq 0x1db8c(%rip), %rdx     # 0x28920
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x7280
movq %rax, %r15
movl $0x20, %edi
callq 0x7230
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
leaq 0x1dba8(%rip), %rdx     # 0x28960
movq %rdx, (%rax)
movq %r14, 0x10(%rax)
movq %rcx, 0x18(%rax)
decq 0x20(%rbx)
cmpq %rcx, 0x20(%r15)
jne 0xadd1
decq 0x18(%rbx)
movq %r15, %rdi
movq %rax, %rsi
callq 0xae8c
leaq 0x1d465(%rip), %rsi     # 0x28248
leaq 0x1db4e(%rip), %rdx     # 0x28938
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x7280
movq 0x18(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/listNode.h
// Function: ObjectNode::equals(Object*)
virtual bool equals(Object * other) {
		if (other == nullptr) return false;
        ObjectNode *o = dynamic_cast<ObjectNode*>(other);
		if (o == nullptr) {
			return false;
		}
        return this->data_->equals(o->data_);
	}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0xae53
movq %rdi, %rbx
leaq 0x1d425(%rip), %rax     # 0x28248
leaq 0x1dbe6(%rip), %rdx     # 0x28a10
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x7280
testq %rax, %rax
je 0xae53
movq 0x10(%rbx), %rdi
movq 0x10(%rax), %rsi
movq (%rdi), %rax
movq 0x18(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
jmpq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/queue.h
// Function: Queue::remove(Object*)
Object* remove(Object* o) {
    if (this->size() > 0) {
      size_t len = this->size();
      ObjectNode *to_remove = nullptr;
      //go through the given list.
      ObjectNode *curNode = this->head_;
      for (size_t i = 0; i < len; i++) {
        //check if curNode's data is the same as o.
        if (curNode->data_->equals(o)) {
          //set the first node that is equal to the object to be removed.
          to_remove = curNode;
          break;
        }
        curNode = curNode->getNext(); 
      }
      if (!(to_remove == nullptr)) {
        if (to_remove->equals(this->head_)) {
          this->head_ = this->head_->getNext();
        }
        if (to_remove->equals(this->tail_)) {
          this->tail_ = this->tail_->getPrev();
        }
        //set to_remove's next's prev to to_remove's prev
        if (to_remove->getNext() != nullptr) {
          to_remove->getNext()->setPrev(to_remove->getPrev());
        }
        if (to_remove->getPrev() != nullptr) {
          to_remove->getPrev()->setNext(to_remove->getNext());
        }
        to_remove->setNext(nullptr);
        to_remove->setPrev(nullptr);
        this->size_ -= 1;
        return to_remove->data_;
      }
    }
    return nullptr;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq 0x20(%rdi), %r12
testq %r12, %r12
je 0xaf9d
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rdi), %r14
movq 0x10(%r14), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *0x18(%rax)
testb %al, %al
jne 0xaed3
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movq %rax, %r14
decq %r12
jne 0xaeae
xorl %r14d, %r14d
testq %r14, %r14
je 0xaf98
movq 0x10(%rbx), %rsi
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
testb %al, %al
je 0xaefb
movq 0x10(%rbx), %rdi
movq (%rdi), %rax
callq *0x40(%rax)
movq %rax, 0x10(%rbx)
movq 0x18(%rbx), %rsi
movq (%r14), %rax
movq %r14, %rdi
callq *0x18(%rax)
testb %al, %al
je 0xaf1a
movq 0x18(%rbx), %rdi
movq (%rdi), %rax
callq *0x48(%rax)
movq %rax, 0x18(%rbx)
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
testq %rax, %rax
je 0xaf49
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movq %rax, %r15
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0x58(%rcx)
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
testq %rax, %rax
je 0xaf78
movq (%r14), %rax
movq %r14, %rdi
callq *0x48(%rax)
movq %rax, %r15
movq (%r14), %rax
movq %r14, %rdi
callq *0x40(%rax)
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0x50(%rcx)
movq (%r14), %rax
movq %r14, %rdi
xorl %esi, %esi
callq *0x50(%rax)
movq (%r14), %rax
movq %r14, %rdi
xorl %esi, %esi
callq *0x58(%rax)
decq 0x20(%rbx)
movq 0x10(%r14), %rax
jmp 0xaf98
testq %r14, %r14
jne 0xaf9f
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::DoubleDistributedArray(KVStore*)
DoubleDistributedArray(KVStore* kv) {
        kv_ = kv;
        totalNodes_ = kv->num_nodes_;
        srand(time(nullptr));
        uid_ = rand();
        curNode_ = 0;
        itemCount_ = 0;
        chunkCount_ = 0;
        keys_ = new Array();
        chunkArray_ = new DoubleArray(chunkSize_);
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %r15d, %r15d
movq %r15, 0x8(%rdi)
leaq 0x1db8d(%rip), %rax     # 0x28b50
movq %rax, (%rdi)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rdi)
movq $0x32, 0x30(%rdi)
movq $0x400, 0x48(%rdi)      # imm = 0x400
movq %rsi, 0x10(%rdi)
movq 0x10(%rsi), %rax
movq %rax, 0x68(%rdi)
xorl %edi, %edi
callq 0x71f0
movl %eax, %edi
callq 0x7210
callq 0x70a0
cltq
movq %rax, 0x40(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x50(%rbx)
movq %r15, 0x60(%rbx)
movl $0x28, %edi
callq 0x7230
movq %rax, %r14
movq %r15, 0x8(%rax)
leaq 0x1d6fb(%rip), %rax     # 0x28720
movq %rax, (%r14)
movl $0x28, %edi
callq 0x7030
movq %rax, 0x10(%r14)
movq $0x5, 0x20(%r14)
xorl %r15d, %r15d
movq %r15, 0x18(%r14)
movq %r14, 0x38(%rbx)
movl $0x28, %edi
callq 0x7230
movq %rax, %r14
movq 0x48(%rbx), %rax
movq %r15, 0x8(%r14)
leaq 0x1db53(%rip), %rcx     # 0x28bb8
movq %rcx, (%r14)
movq %r15, 0x18(%r14)
cltq
movq %rax, 0x20(%r14)
leaq (,%rax,8), %rcx
testl %eax, %eax
movq $-0x1, %rdi
cmovnsq %rcx, %rdi
callq 0x7030
movq %rax, 0x10(%r14)
movq %r14, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
jmp 0xb0a1
movq %rax, %rbx
movq %r14, %rdi
callq 0x7200
movq %rbx, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/distributedColumn.h
// Function: DistributedDoubleColumn::equals(Object*)
bool equals(Object * o) {
    if(o == nullptr) return false;
    DistributedDoubleColumn* other_ic = dynamic_cast<DistributedDoubleColumn*>(o);
    if(other_ic == nullptr) return false;
    if(other_ic->size() != size()) return false;
    DoubleDistributedArray* other_val_ = dynamic_cast<DoubleDistributedArray*>(other_ic->val_);
    return this->val_->equals(other_val_);
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0xb12e
movq %rdi, %rbx
leaq 0x1d171(%rip), %rax     # 0x28248
leaq 0x1da4a(%rip), %rdx     # 0x28b28
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x7280
testq %rax, %rax
je 0xb12e
movq %rax, %r14
movq (%rax), %rax
movq %r14, %rdi
callq *0xc8(%rax)
movq %rax, %r15
movq (%rbx), %rax
movq %rbx, %rdi
callq *0xc8(%rax)
cmpq %rax, %r15
jne 0xb12e
movq 0x18(%r14), %rsi
movq 0x18(%rbx), %rdi
movq (%rdi), %rax
movq 0x18(%rax), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmpq *%rax
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/distributedColumn.h
// Function: DistributedDoubleColumn::serialize()
char* serialize() {
    Serializable* sb = new Serializable();
    sb->initSerialize("DistributedDoubleColumn");
    char * seralizedArr = val_->serialize();
    sb->write("val_", seralizedArr, false);
    sb->endSerialize();
    char* value = sb->get();
    delete sb;
    return value;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x8, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0x80aa
leaq 0x12492(%rip), %rsi     # 0x1d604
movq %rbx, %rdi
callq 0x810c
movq 0x18(%r14), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
leaq 0x1226d(%rip), %rsi     # 0x1d3f8
movq %rbx, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0xa9d0
movq (%rbx), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x8260
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movl $0x7d207d20, (%rax,%rcx) # imm = 0x7D207D20
addq $0x4, 0x20(%r14)
movq (%rbx), %rdi
callq 0x82d0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xb1de
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x7200
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/distributedColumn.h
// Function: DistributedDoubleColumn::getColumnOnNode()
Column* getColumnOnNode() override {
    size_t _node = kv_->this_node_;
    DoubleColumn* col = new DoubleColumn();
    Array* keys = val_->keys_;
    for (size_t i = 0; i < keys->length(); i++) {
      Key* key = dynamic_cast<Key*>(val_->keys_->get(i));
      if (key->node_ == _node) { //only get the chunks that live locally on this node.
        Value* val = kv_->get(key);
        Deserializable ds;
        DoubleArray* chunk = dynamic_cast<DoubleArray*>(ds.deserialize(val->data));
        for (size_t j = 0; j < chunk->length(); j++) {
          col->push_back(chunk->get(j));
        }
        delete chunk;
      }
    }
    //if node 0, append the chunk_array_ at the end too.
    if (_node == 0) {
      DoubleArray* chunk_array = val_->chunkArray_;
      for (size_t j = 0; j < chunk_array->length(); j++) {
          col->push_back(chunk_array->get(j));
      }
    }
    return col;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %r13
movq 0x10(%rdi), %rax
movq 0x18(%rax), %r12
movl $0x28, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0xd1a6
movq 0x18(%r13), %rax
movq 0x38(%rax), %r14
cmpq $0x0, 0x18(%r14)
je 0xb358
xorl %r15d, %r15d
movq %r12, -0x40(%rbp)
movq %r13, -0x38(%rbp)
movq 0x18(%r13), %rax
movq 0x38(%rax), %rdi
movq (%rdi), %rax
movq %r15, %rsi
callq *0x40(%rax)
movq %rax, %rdi
leaq 0x1cf8a(%rip), %rsi     # 0x28248
leaq 0x1d523(%rip), %rdx     # 0x287e8
xorl %ecx, %ecx
callq 0x7280
cmpq %r12, 0x18(%rax)
jne 0xb34b
movq 0x10(%r13), %rdi
movq %rax, %rsi
callq 0xc02e
movq 0x10(%rax), %rsi
leaq -0x29(%rbp), %rdi
callq 0x14b60
testq %rax, %rax
je 0xb30d
movq %rax, %rdi
leaq 0x1cf4e(%rip), %rsi     # 0x28248
leaq 0x1d8f7(%rip), %rdx     # 0x28bf8
xorl %ecx, %ecx
callq 0x7280
movq %rax, %r13
jmp 0xb310
xorl %r13d, %r13d
cmpq $0x0, 0x18(%r13)
je 0xb339
xorl %r12d, %r12d
movq 0x10(%r13), %rax
movsd (%rax,%r12,8), %xmm0
movq (%rbx), %rax
movq %rbx, %rdi
callq *0xa0(%rax)
incq %r12
cmpq 0x18(%r13), %r12
jb 0xb31a
movq (%r13), %rax
movq %r13, %rdi
callq *0x8(%rax)
movq -0x40(%rbp), %r12
movq -0x38(%rbp), %r13
incq %r15
cmpq 0x18(%r14), %r15
jb 0xb2a3
testq %r12, %r12
jne 0xb38e
movq 0x18(%r13), %rax
movq 0x18(%rax), %r14
cmpq $0x0, 0x18(%r14)
je 0xb38e
xorl %r15d, %r15d
movq 0x10(%r14), %rax
movsd (%rax,%r15,8), %xmm0
movq (%rbx), %rax
movq %rbx, %rdi
callq *0xa0(%rax)
incq %r15
cmpq 0x18(%r14), %r15
jb 0xb36f
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::equals(Object*)
bool equals(Object * o) {
      if ( o == nullptr) return false;
        DoubleDistributedArray *s = dynamic_cast<DoubleDistributedArray*>(o);
        if(s == nullptr) return false;
        if(itemCount_ != s->itemCount_) return false;
        for(int i = 0; i < itemCount_; i++) {
            bool sameInt = s->get(i) == (get(i));
            if(!sameInt) {
                return false;
            }
        }
        return true;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
testq %rsi, %rsi
je 0xb4cb
movq %rdi, %rbx
leaq 0x1ce14(%rip), %rax     # 0x28248
leaq 0x1d755(%rip), %rdx     # 0x28b90
xorl %r14d, %r14d
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x7280
testq %rax, %rax
je 0xb4ce
movq %rax, %r15
movq 0x58(%rbx), %rax
cmpq 0x58(%r15), %rax
jne 0xb4cb
cmpq $0x0, 0x58(%rbx)
sete %r14b
je 0xb4ce
movq %r15, %rdi
xorl %esi, %esi
callq 0xbde8
movsd %xmm0, -0x28(%rbp)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xbde8
movsd -0x28(%rbp), %xmm1
ucomisd %xmm0, %xmm1
jne 0xb4ce
jp 0xb4ce
movl $0x1, %r12d
cmpq %r12, 0x58(%rbx)
setbe %r14b
jbe 0xb4ce
movq %r15, %rdi
movq %r12, %rsi
callq 0xbde8
movsd %xmm0, -0x28(%rbp)
movq %rbx, %rdi
movq %r12, %rsi
callq 0xbde8
incq %r12
movsd -0x28(%rbp), %xmm1
ucomisd %xmm0, %xmm1
jne 0xb4ce
jnp 0xb494
jmp 0xb4ce
xorl %r14d, %r14d
movl %r14d, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::hash_me()
size_t hash_me() {
      size_t temp = 0;
      for(int i = 0; i < itemCount_; i++) {
          temp *= get(i);
      }
      return temp;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
cmpq $0x0, 0x58(%rdi)
je 0xb552
movq %rdi, %rbx
xorl %r14d, %r14d
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rsi
callq 0xbde8
movq %r15, %xmm1
punpckldq 0x11b50(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x11b58(%rip), %xmm1    # 0x1d070
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
mulsd %xmm0, %xmm2
cvttsd2si %xmm2, %rax
movq %rax, %rcx
sarq $0x3f, %rcx
subsd 0x11b4c(%rip), %xmm2    # 0x1d088
cvttsd2si %xmm2, %r15
andq %rcx, %r15
orq %rax, %r15
incq %r14
cmpq %r14, 0x58(%rbx)
ja 0xb4f8
jmp 0xb555
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::serialize()
char* serialize() {
        Serializable* sb = new Serializable();
        sb->initSerialize("DoubleDistributedArray");
        sb->write("uid_", uid_);
        sb->write("chunkSize_", chunkSize_);
        sb->write("chunkCount_", chunkCount_);
        sb->write("itemCount_", itemCount_);
        sb->write("curNode_", curNode_);
        sb->write("totalNodes_", totalNodes_);
        sb->write("keys_", keys_->serialize(), false);
        sb->write("chunkArray_", chunkArray_->serialize(), false);
        sb->endSerialize();
        char* value = sb->get();
        delete sb;
        return value;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x8, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0x80aa
leaq 0x12020(%rip), %rsi     # 0x1d5aa
movq %rbx, %rdi
callq 0x810c
movq 0x40(%r14), %rdx
leaq 0x12024(%rip), %rsi     # 0x1d5c1
movq %rbx, %rdi
callq 0x81e6
movq 0x48(%r14), %rdx
leaq 0x12016(%rip), %rsi     # 0x1d5c6
movq %rbx, %rdi
callq 0x81e6
movq 0x50(%r14), %rdx
leaq 0x1200e(%rip), %rsi     # 0x1d5d1
movq %rbx, %rdi
callq 0x81e6
movq 0x58(%r14), %rdx
leaq 0x11f30(%rip), %rsi     # 0x1d506
movq %rbx, %rdi
callq 0x81e6
movq 0x60(%r14), %rdx
leaq 0x11ff4(%rip), %rsi     # 0x1d5dd
movq %rbx, %rdi
callq 0x81e6
movq 0x68(%r14), %rdx
leaq 0x11fea(%rip), %rsi     # 0x1d5e6
movq %rbx, %rdi
callq 0x81e6
movq 0x38(%r14), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
leaq 0x11fdd(%rip), %rsi     # 0x1d5f2
movq %rbx, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0xa9d0
movq 0x18(%r14), %rdi
movq (%rdi), %rax
callq *0x38(%rax)
leaq 0x11fc5(%rip), %rsi     # 0x1d5f8
movq %rbx, %rdi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0xa9d0
movq (%rbx), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x8260
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movl $0x7d207d20, (%rax,%rcx) # imm = 0x7D207D20
addq $0x4, 0x20(%r14)
movq (%rbx), %rdi
callq 0x82d0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xb686
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x7200
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: DoubleArray::equals(Object*)
bool equals(Object * o) {
      if ( o == nullptr) return false;
        DoubleArray *s = dynamic_cast<DoubleArray*>(o);
        if(s == nullptr) return false;
        if(listLength_ != s->listLength_) return false;
        for(int i = 0; i < listLength_; i++) {
            bool sameDoub = s->get(i) == get(i);
            if(!sameDoub) {
                return false;
            }
        }
        return true;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0xb78f
movq %rdi, %r14
leaq 0x1cb34(%rip), %rax     # 0x28248
leaq 0x1d4dd(%rip), %rdx     # 0x28bf8
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x7280
testq %rax, %rax
je 0xb791
movq 0x18(%r14), %rcx
movq 0x18(%rax), %rdx
cmpq %rdx, %rcx
jne 0xb78f
testq %rcx, %rcx
sete %bl
je 0xb791
movq 0x10(%r14), %rsi
negq %rdx
movq %rcx, %rdi
negq %rdi
movl $0x1, %r8d
leaq (%rdx,%r8), %r9
cmpq $0x1, %r9
je 0xb79b
movq 0x10(%rax), %r9
movsd -0x8(%r9,%r8,8), %xmm0
ucomisd -0x8(%rsi,%r8,8), %xmm0
jne 0xb791
jp 0xb791
cmpq %r8, %rcx
setbe %bl
leaq (%rdi,%r8), %r9
incq %r9
incq %r8
cmpq $0x1, %r9
jne 0xb757
jmp 0xb791
xorl %ebx, %ebx
andb $0x1, %bl
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x11cbc(%rip), %rdi     # 0x1d45e
leaq 0x11cc9(%rip), %rsi     # 0x1d472
leaq 0x11ced(%rip), %rcx     # 0x1d49d
movl $0x161, %edx            # imm = 0x161
callq 0x7150
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: DoubleArray::clone()
virtual Object* clone() { 
        IntArray* temp = new IntArray();
        for(int i = 0; i < listLength_; i++) {
            int value = vals_[i];
            temp->pushBack(value);
        }
        return temp;
     }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x28, %edi
callq 0x7230
movq %rax, %rbx
xorl %eax, %eax
movq %rax, 0x8(%rbx)
leaq 0x1d442(%rip), %rcx     # 0x28c20
movq %rcx, (%rbx)
movq %rax, 0x18(%rbx)
movq $0x20, 0x20(%rbx)
movl $0x80, %edi
callq 0x7030
movq %rax, 0x10(%rbx)
movq 0x18(%r14), %rcx
testq %rcx, %rcx
je 0xb82b
movq 0x10(%r14), %rsi
movq 0x18(%rbx), %rdx
leaq (%rax,%rdx,4), %rdi
xorl %eax, %eax
cvttsd2si (%rsi,%rax,8), %r8d
movl %r8d, (%rdi,%rax,4)
incq %rax
cmpq %rax, %rcx
jne 0xb812
addq %rax, %rdx
movq %rdx, 0x18(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: DoubleArray::hash_me()
size_t hash_me() {
      double temp = 0;
      for(int i = 0; i < listLength_; i++) {
          temp *= vals_[i];
      }
      return temp;
  }

// Assembly:
movq 0x18(%rdi), %rax
testq %rax, %rax
je 0xb88b
pushq %rbp
movq %rsp, %rbp
movq 0x10(%rdi), %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
mulsd (%rcx,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rax
jne 0xb85d
cvttsd2si %xmm0, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
subsd 0x1180a(%rip), %xmm0    # 0x1d088
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rcx, %rax
popq %rbp
retq
xorl %eax, %eax
retq
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: DoubleArray::serialize()
char* serialize() {
        Serializable* sb = new Serializable();
        //std::cout << "in DoubleArray"<< "\n";
        sb->initSerialize("DoubleArray");
        sb->write("listLength_", listLength_);
        sb->write("arraySize_", arraySize_);
        sb->write("vals_", vals_, listLength_);
        sb->endSerialize();
        char* value = sb->get();
        delete sb;
        return value;
     }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x8, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0x80aa
leaq 0x11c38(%rip), %rsi     # 0x1d4ec
movq %rbx, %rdi
callq 0x810c
movq 0x18(%r14), %rdx
leaq 0x11b9f(%rip), %rsi     # 0x1d466
movq %rbx, %rdi
callq 0x81e6
movq 0x20(%r14), %rdx
leaq 0x11a8a(%rip), %rsi     # 0x1d364
movq %rbx, %rdi
callq 0x81e6
movq 0x10(%r14), %rdx
movl 0x18(%r14), %ecx
leaq 0x11bef(%rip), %rsi     # 0x1d4e0
movq %rbx, %rdi
callq 0xbcda
movq (%rbx), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x8260
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movl $0x7d207d20, (%rax,%rcx) # imm = 0x7D207D20
addq $0x4, 0x20(%r14)
movq (%rbx), %rdi
callq 0x82d0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xb93f
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x7200
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: IntArray::equals(Object*)
bool equals(Object * o) {
      if ( o == nullptr) return false;
        IntArray *s = dynamic_cast<IntArray*>(o);
        if(s == nullptr) return false;
        if(listLength_ != s->listLength_) return false;
        for(int i = 0; i < listLength_; i++) {
            bool sameInt = s->get(i) == get(i);
            if(!sameInt) {
                return false;
            }
        }
        return true;
  }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rsi, %rsi
je 0xba3d
movq %rdi, %r14
leaq 0x1c880(%rip), %rax     # 0x28248
leaq 0x1d291(%rip), %rdx     # 0x28c60
xorl %ebx, %ebx
movq %rsi, %rdi
movq %rax, %rsi
xorl %ecx, %ecx
callq 0x7280
testq %rax, %rax
je 0xba3f
movq 0x18(%r14), %rcx
movq 0x18(%rax), %rdx
cmpq %rdx, %rcx
jne 0xba3d
testq %rcx, %rcx
sete %bl
je 0xba3f
movq 0x10(%r14), %rsi
negq %rdx
movq %rcx, %rdi
negq %rdi
movl $0x1, %r8d
leaq (%rdx,%r8), %r9
cmpq $0x1, %r9
je 0xba49
movq 0x10(%rax), %r9
movl -0x4(%r9,%r8,4), %r9d
cmpl -0x4(%rsi,%r8,4), %r9d
jne 0xba3f
cmpq %r8, %rcx
setbe %bl
leaq (%rdi,%r8), %r9
incq %r9
incq %r8
cmpq $0x1, %r9
jne 0xba0b
jmp 0xba3f
xorl %ebx, %ebx
andb $0x1, %bl
movl %ebx, %eax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x11a0e(%rip), %rdi     # 0x1d45e
leaq 0x11a1b(%rip), %rsi     # 0x1d472
leaq 0x11a5f(%rip), %rcx     # 0x1d4bd
movl $0xf3, %edx
callq 0x7150
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/../utils/array.h
// Function: IntArray::serialize()
char* serialize() {
         //std::cout << "in IntArray"<< "\n";
        Serializable* sb = new Serializable();
        sb->initSerialize("IntArray");
        sb->write("listLength_", listLength_);
        sb->write("arraySize_", arraySize_);
        sb->write("vals_", vals_, listLength_);
        sb->endSerialize();
        char* value = sb->get();
        delete sb;
        return value;
     }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x8, %edi
callq 0x7230
movq %rax, %rbx
movq %rax, %rdi
callq 0x80aa
leaq 0x119b7(%rip), %rsi     # 0x1d4d7
movq %rbx, %rdi
callq 0x810c
movq 0x18(%r14), %rdx
leaq 0x11933(%rip), %rsi     # 0x1d466
movq %rbx, %rdi
callq 0x81e6
movq 0x20(%r14), %rdx
leaq 0x1181e(%rip), %rsi     # 0x1d364
movq %rbx, %rdi
callq 0x81e6
movq 0x10(%r14), %rdx
movl 0x18(%r14), %ecx
leaq 0x11983(%rip), %rsi     # 0x1d4e0
movq %rbx, %rdi
callq 0xbbce
movq (%rbx), %r14
movl $0x4, %esi
movq %r14, %rdi
callq 0x8260
movq 0x10(%r14), %rax
movq 0x20(%r14), %rcx
movl $0x7d207d20, (%rax,%rcx) # imm = 0x7D207D20
addq $0x4, 0x20(%r14)
movq (%rbx), %rdi
callq 0x82d0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0xbbab
movq (%rdi), %rax
callq *0x8(%rax)
movq %rbx, %rdi
callq 0x7200
movq %r14, %rax
popq %rbx
popq %r14
popq %rbp
retq
movq %rax, %r14
movq %rbx, %rdi
callq 0x7200
movq %r14, %rdi
callq 0x73b0
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../serialize/serial.h
// Function: Serializable::write(char const*, int*, int)
void write(const char* name, int* val, int len) {
        char str[1000];
        sprintf(str, "'%s' : [ ", name);
        buff->c(str);
        for(int i = 0; i < len; i++) {
            sprintf(str, "'%i',", val[i]);
            buff->c(str);
        }
        buff->c("], ");
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3f8, %rsp            # imm = 0x3F8
movl %ecx, %r14d
movq %rdx, -0x38(%rbp)
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x1177f(%rip), %rsi     # 0x1d375
leaq -0x420(%rbp), %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x7080
movq %rbx, -0x30(%rbp)
movq (%rbx), %r13
movq %r12, %rdi
callq 0x7100
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0x8260
movq 0x10(%r13), %rdi
addq 0x20(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x71a0
addq %r15, 0x20(%r13)
testl %r14d, %r14d
jle 0xbc9b
movl %r14d, %ebx
xorl %r14d, %r14d
movq -0x38(%rbp), %rax
movl (%rax,%r14,4), %edx
movq %r12, %rdi
leaq 0x1188e(%rip), %rsi     # 0x1d4e6
xorl %eax, %eax
callq 0x7080
movq -0x30(%rbp), %rax
movq (%rax), %r13
movq %r12, %rdi
callq 0x7100
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0x8260
movq 0x10(%r13), %rdi
addq 0x20(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x71a0
addq %r15, 0x20(%r13)
incq %r14
cmpq %r14, %rbx
jne 0xbc46
movq -0x30(%rbp), %rax
movq (%rax), %rbx
movl $0x3, %esi
movq %rbx, %rdi
callq 0x8260
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
movb $0x20, 0x2(%rax,%rcx)
movw $0x2c5d, (%rax,%rcx)    # imm = 0x2C5D
addq $0x3, 0x20(%rbx)
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../serialize/serial.h
// Function: Serializable::write(char const*, double*, int)
void write(const char* name, double* val, int len) {
        char str[1000];
        sprintf(str, "'%s' : [ ", name);
        buff->c(str);
        for(int i = 0; i < len; i++) {
            sprintf(str, "'%f',", val[i]);
            buff->c(str);
        }
        buff->c("], ");
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x3f8, %rsp            # imm = 0x3F8
movl %ecx, %r14d
movq %rdx, -0x38(%rbp)
movq %rsi, %rdx
movq %rdi, %rbx
leaq 0x11673(%rip), %rsi     # 0x1d375
leaq -0x420(%rbp), %r12
movq %r12, %rdi
xorl %eax, %eax
callq 0x7080
movq %rbx, -0x30(%rbp)
movq (%rbx), %r13
movq %r12, %rdi
callq 0x7100
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0x8260
movq 0x10(%r13), %rdi
addq 0x20(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x71a0
addq %r15, 0x20(%r13)
testl %r14d, %r14d
jle 0xbda9
movl %r14d, %ebx
xorl %r14d, %r14d
movq -0x38(%rbp), %rax
movsd (%rax,%r14,8), %xmm0
movq %r12, %rdi
leaq 0x11792(%rip), %rsi     # 0x1d4f8
movb $0x1, %al
callq 0x7080
movq -0x30(%rbp), %rax
movq (%rax), %r13
movq %r12, %rdi
callq 0x7100
movq %rax, %r15
movq %r13, %rdi
movq %rax, %rsi
callq 0x8260
movq 0x10(%r13), %rdi
addq 0x20(%r13), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x71a0
addq %r15, 0x20(%r13)
incq %r14
cmpq %r14, %rbx
jne 0xbd52
movq -0x30(%rbp), %rax
movq (%rax), %rbx
movl $0x3, %esi
movq %rbx, %rdi
callq 0x8260
movq 0x10(%rbx), %rax
movq 0x20(%rbx), %rcx
movb $0x20, 0x2(%rax,%rcx)
movw $0x2c5d, (%rax,%rcx)    # imm = 0x2C5D
addq $0x3, 0x20(%rbx)
addq $0x3f8, %rsp            # imm = 0x3F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::get(unsigned long)
double get(size_t index) {
        assert(index < itemCount_);
        //std::cout << "in get " << index <<"\n";
        if (cache_ == nullptr) {
            init_cache_();
        }
        double res;
        if(index/chunkSize_ == chunkCount_) {
            res = chunkArray_->get(index % chunkSize_);
        } else {

            size_t key_idx = floor((index/chunkSize_));
            //std::cout << "key index: " << key_idx << "\n";
            //std::cout << key
            DoubleArray* doubleVals;
            if (cache_[key_idx] != nullptr) {
                //std::cout << "get chunk from cache\n";
                doubleVals = cache_[key_idx];
            } else {
                //std::cout << "get chunk from kv\n";
                doubleVals = get_chunk_from_kv_(key_idx);
            }
            res = doubleVals->get(index % chunkSize_);
        }
        //std::cout << "res: " << res << "\n";
        return res; //returns int at correct index in array at this chunk
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
cmpq %rsi, 0x58(%rdi)
jbe 0xbe98
movq %rsi, %r14
movq %rdi, %rbx
cmpq $0x0, 0x20(%rdi)
jne 0xbe0e
movq %rbx, %rdi
callq 0xbed6
movq %r14, %rax
xorl %edx, %edx
divq 0x48(%rbx)
cmpq 0x50(%rbx), %rax
jne 0xbe23
movq 0x18(%rbx), %rcx
jmp 0xbe84
movq %rax, %xmm0
punpckldq 0x11230(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0x11238(%rip), %xmm0    # 0x1d070
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rcx
subsd 0x11234(%rip), %xmm1    # 0x1d088
sarq $0x3f, %rcx
cvttsd2si %xmm1, %rsi
andq %rcx, %rsi
orq %rax, %rsi
movq 0x20(%rbx), %rax
movq (%rax,%rsi,8), %rcx
testq %rcx, %rcx
jne 0xbe7b
movq %rbx, %rdi
callq 0xbf34
movq %rax, %rcx
movq %r14, %rax
xorl %edx, %edx
divq 0x48(%rbx)
cmpq %rdx, 0x18(%rcx)
jbe 0xbeb7
movq 0x10(%rcx), %rax
movsd (%rax,%rdx,8), %xmm0
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x1165f(%rip), %rdi     # 0x1d4fe
leaq 0x1166b(%rip), %rsi     # 0x1d511
leaq 0x1169e(%rip), %rcx     # 0x1d54b
movl $0x3a8, %edx            # imm = 0x3A8
callq 0x7150
leaq 0x115a0(%rip), %rdi     # 0x1d45e
leaq 0x115ad(%rip), %rsi     # 0x1d472
leaq 0x115d1(%rip), %rcx     # 0x1d49d
movl $0x161, %edx            # imm = 0x161
callq 0x7150
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::init_cache_()
void init_cache_() {
        //assuming a dataframe is immutable, so nu pushbacks after the first get call.
        cache_ = new DoubleArray*[keys_->length()];
        for (size_t i = 0; i < keys_->length(); i++) {
            cache_[i] = nullptr;
        }
        return;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x38(%rdi), %rax
movq 0x18(%rax), %rax
movq %rax, %rcx
shrq $0x3d, %rcx
shlq $0x3, %rax
xorl %edi, %edi
negq %rcx
sbbq %rdi, %rdi
orq %rax, %rdi
callq 0x7030
movq %rax, 0x20(%rbx)
movq 0x38(%rbx), %rax
cmpq $0x0, 0x18(%rax)
je 0xbf2c
xorl %eax, %eax
movq 0x20(%rbx), %rcx
movq $0x0, (%rcx,%rax,8)
incq %rax
movq 0x38(%rbx), %rcx
cmpq 0x18(%rcx), %rax
jb 0xbf13
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::get_chunk_from_kv_(unsigned long)
DoubleArray* get_chunk_from_kv_(size_t key_idx) {
        if (cache_count_ >= max_cache_count) {
            reset_cache_();
        }
        Value* v = kv_->get(dynamic_cast<Key*>(keys_->get(key_idx))); //gets value of given key
        char* serlializedNode = v->data; 
        //std::cout << serlializedNode <<"\n";
        DoubleArray* doubleVals = new DoubleArray(serlializedNode); //turns payload into IntArray object
        cache_[key_idx] = doubleVals;
        cache_count_ += 1;
        return doubleVals;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq 0x28(%rdi), %rax
cmpq 0x30(%rdi), %rax
jb 0xbf57
movq %rbx, %rdi
callq 0xbfdc
movq 0x10(%rbx), %r15
movq 0x38(%rbx), %rdi
movq (%rdi), %rax
movq %r14, %rsi
callq *0x40(%rax)
testq %rax, %rax
je 0xbf8a
leaq 0x1c2d4(%rip), %rsi     # 0x28248
leaq 0x1c86d(%rip), %rdx     # 0x287e8
movq %rax, %rdi
xorl %ecx, %ecx
callq 0x7280
movq %rax, %rsi
jmp 0xbf8c
xorl %esi, %esi
movq %r15, %rdi
callq 0xc02e
movq 0x10(%rax), %r12
movl $0x28, %edi
callq 0x7230
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
callq 0xc1a0
movq 0x20(%rbx), %rax
movq %r15, (%rax,%r14,8)
incq 0x28(%rbx)
movq %r15, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %r15, %rdi
callq 0x7200
movq %rbx, %rdi
callq 0x73b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: DoubleDistributedArray::reset_cache_()
void reset_cache_() {
        //std::cout << "reset cache, cache count: " << cache_count_ << "\n";
        for (size_t i = 0; i < keys_->length(); i++) {
            if (cache_[i] != nullptr) {
                //std::cout << "clearing idx: " << i<<"\n";
                delete cache_[i];
                cache_[i] = nullptr;
            }
        }
        cache_count_ = 0;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x38(%rdi), %rax
cmpq $0x0, 0x18(%rax)
je 0xc020
xorl %r14d, %r14d
movq 0x20(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0xc013
movq (%rdi), %rax
callq *0x8(%rax)
movq 0x20(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r14
movq 0x38(%rbx), %rax
cmpq 0x18(%rax), %r14
jb 0xbff4
movq $0x0, 0x28(%rbx)
popq %rbx
popq %r14
popq %rbp
retq
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../application/../store/kvstore.h
// Function: KVStore::get(Key*)
Value* get(Key* key) {
        store_mtx_.lock();
        size_t target = key->node();
        //std::cout << "get: " << "key: " << key->serialize() << "\n";
        Value* val = nullptr;
        if (target == this_node_) {
            std::map<Key*, Value*, KeyCompare>::iterator iter;
            iter = local_store_.find(key);
            if (iter != local_store_.end()) {
                val = iter->second;
            }
        } else {
            Get get(key, this_node_, target, network_->msg_id);
            network_->send_msg(&get); // send get msg over the network to appropriate KVStore.
            store_mtx_.wait();
            Message* m = received_msg;
            //expect Reply or Nack.
            if (m->kind_ == MsgKind::Reply) {
                Reply* resp = dynamic_cast<Reply*>(m);
                char* serializedValue = resp->reply_msg_;
                val = new Value(serializedValue, this);
            } else if (m->kind_ == MsgKind::Nack) {
                std::cout << "unable to get key from node " << target <<"\n";
            }
            received_msg = nullptr;
        }
        store_mtx_.unlock();
        return val;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movq %rdi, %r14
movq %rsi, -0x28(%rbp)
leaq 0x68(%rdi), %rbx
movq %rbx, %rdi
callq 0x7330
testl %eax, %eax
jne 0xc185
movq -0x28(%rbp), %rax
movq 0x18(%rax), %r15
movq 0x18(%r14), %rcx
cmpq %rcx, %r15
jne 0xc08c
leaq 0x20(%r14), %rdi
leaq -0x28(%rbp), %rsi
callq 0xc634
addq $0x28, %r14
cmpq %r14, %rax
je 0xc120
movq 0x28(%rax), %r15
jmp 0xc16d
movq 0x50(%r14), %rdi
movq 0x40(%rdi), %rdx
leaq -0x60(%rbp), %rsi
movq $0x0, 0x8(%rsi)
leaq 0x1cbf9(%rip), %r8      # 0x28ca0
movq %r8, (%rsi)
movl $0x4, 0x10(%rsi)
movq %rcx, 0x18(%rsi)
movq %r15, 0x20(%rsi)
movq %rdx, 0x28(%rsi)
movq %rax, 0x30(%rsi)
movq (%rdi), %rax
callq *0x50(%rax)
leaq 0x90(%r14), %rdi
movq %rbx, %rsi
callq 0xc810
movq 0xd0(%r14), %rdi
movl 0x10(%rdi), %eax
cmpl $0x1, %eax
je 0xc125
cmpl $0x3, %eax
jne 0xc15f
leaq 0x1c1ef(%rip), %rsi     # 0x282e0
leaq 0x1cb80(%rip), %rdx     # 0x28c78
xorl %ecx, %ecx
callq 0x7280
movq 0x30(%rax), %r12
movl $0x20, %edi
callq 0x7230
movq %rax, %r15
movq %rax, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0xc4c8
jmp 0xc162
xorl %r15d, %r15d
jmp 0xc16d
movq 0x1dea4(%rip), %r12     # 0x29fd0
leaq 0x11443(%rip), %rsi     # 0x1d576
movl $0x1c, %edx
movq %r12, %rdi
callq 0x7290
movq %r12, %rdi
movq %r15, %rsi
callq 0x7170
leaq 0x10f97(%rip), %rsi     # 0x1d0e9
movl $0x1, %edx
movq %rax, %rdi
callq 0x7290
xorl %r15d, %r15d
movq $0x0, 0xd0(%r14)
movq %rbx, %rdi
callq 0x7180
movq %r15, %rax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl %eax, %edi
callq 0x7160
movq %rax, %rbx
movq %r15, %rdi
callq 0x7200
movq %rbx, %rdi
callq 0x73b0
nop
// File: /workspace/github_cpp_makefile_star2_O1/yasz24[P]eau2/src/network/./../store/value.h
// Function: Value::Value(char*, KVStore*)
Value(char* serialized, KVStore* kv) {
        Deserializable* ds = new Deserializable();
        char* payload = JSONHelper::getPayloadValue(serialized)->c_str();
        char* serialData = JSONHelper::getValueFromKey("data", payload)->c_str();
        this->data = serialData;
        if(JSONHelper::isObject(serialData)) {
            this->data = ds->deserialize(serialData, kv)->serialize();
        } else {
            this->data = serialData;
        }
        this->length = std::stoi(JSONHelper::getValueFromKey("length", payload)->c_str());
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq $0x0, 0x8(%rdi)
leaq 0x1c817(%rip), %rax     # 0x28d08
movq %rax, (%rdi)
movl $0x1, %edi
callq 0x7230
movq %rax, %r12
movq %r14, %rdi
callq 0xc9f0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r14
leaq 0x11077(%rip), %rdi     # 0x1d593
movq %rax, %rsi
callq 0xcb92
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r13
movq %rax, 0x10(%rbx)
movq %rax, %rdi
callq 0xcdac
testb %al, %al
je 0xc55a
movq %r12, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0x151da
movq (%rax), %rcx
movq %rax, %rdi
callq *0x38(%rcx)
movq %rax, %r13
movq %r13, 0x10(%rbx)
leaq 0x11033(%rip), %rdi     # 0x1d598
movq %r14, %rsi
callq 0xcb92
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x58(%rbp), %r14
leaq -0x29(%rbp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x70e0
movq (%r14), %r15
callq 0x7040
movq %rax, %r14
movl (%rax), %r13d
movl $0x0, (%rax)
leaq -0x38(%rbp), %r12
movq %r15, %rdi
movq %r12, %rsi
movl $0xa, %edx
callq 0x72f0
cmpq %r15, (%r12)
je 0xc5f5
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0xc601
movl (%r14), %ecx
cmpl $0x22, %ecx
je 0xc601
testl %ecx, %ecx
jne 0xc5ce
movl %r13d, (%r14)
cltq
movq %rax, 0x18(%rbx)
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc5e6
callq 0x7200
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10b03(%rip), %rdi     # 0x1d0ff
callq 0x7140
leaq 0x10af7(%rip), %rdi     # 0x1d0ff
callq 0x7310
movq %rax, %rbx
cmpl $0x0, (%r14)
jne 0xc619
movl %r13d, (%r14)
leaq -0x48(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc62b
callq 0x7200
movq %rbx, %rdi
callq 0x73b0
nop