// File: yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: BoolDistributedArray::storeChunk()
void storeChunk() {
        //creates a unique keyname based on provided ID - could be modified to randomly pick number?
        StrBuff sb;
        sb.c(uid_);
        sb.c("_dist_bool_array_chunk_");
        sb.c(chunkCount_);
        String* s = sb.get();
        Key* k = new Key(s->c_str(), curNode_); //create new key with current node and keyName
        keys_->pushBack(k);
        kv_->put(k, new Value(chunkArray_->serialize(), (size_t)0)); //adds new IntArray to kvStore
        delete chunkArray_;
        chunkArray_ = new BoolArray(chunkSize_); 
        curNode_+=1;
        chunkCount_+=1;
        if(curNode_ == totalNodes_) { //starts cycle of chunks on nodes again
            curNode_ = 0;
        }
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
leaq -0x30(%rbp), %rdi
movq %rdi, -0x58(%rbp)
callq 0xa020
movq -0x60(%rbp), %rax
movq -0x58(%rbp), %rdi
movq 0x40(%rax), %rsi
callq 0x14390
jmp 0x1b467
leaq 0x1141b(%rip), %rsi     # 0x2c889
leaq -0x30(%rbp), %rdi
callq 0xa0f0
jmp 0x1b479
movq -0x60(%rbp), %rax
movq 0x50(%rax), %rsi
leaq -0x30(%rbp), %rdi
callq 0x14390
jmp 0x1b48c
leaq -0x30(%rbp), %rdi
callq 0xa210
movq %rax, -0x68(%rbp)
jmp 0x1b49b
movq -0x68(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x20, %edi
callq 0x8290
movq %rax, -0x70(%rbp)
jmp 0x1b4b3
movq -0x48(%rbp), %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movq %rax, -0x78(%rbp)
jmp 0x1b4c6
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdi
movq -0x60(%rbp), %rax
movq 0x60(%rax), %rdx
callq 0xa840
jmp 0x1b4dd
movq -0x60(%rbp), %rax
movq -0x70(%rbp), %rcx
movq %rcx, -0x50(%rbp)
movq 0x38(%rax), %rdi
movq -0x50(%rbp), %rsi
movq (%rdi), %rax
movq 0x58(%rax), %rax
callq *%rax
jmp 0x1b4fc
movq -0x60(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x90(%rbp)
movq -0x50(%rbp), %rax
movq %rax, -0x88(%rbp)
movl $0x20, %edi
callq 0x8290
movq %rax, -0x80(%rbp)
jmp 0x1b526
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movq %rax, -0x98(%rbp)
jmp 0x1b540
movq -0x98(%rbp), %rsi
movq -0x80(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0xdad0
jmp 0x1b556
movq -0x80(%rbp), %rdx
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdi
callq 0xdb20
jmp 0x1b56f
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0x1b591
movq -0xa0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x28, %edi
callq 0x8290
movq %rax, -0xa8(%rbp)
jmp 0x1b5a4
movq -0xa8(%rbp), %rdi
movq -0x60(%rbp), %rax
movl 0x48(%rax), %esi
callq 0x19550
jmp 0x1b5b9
movq -0x60(%rbp), %rcx
movq -0xa8(%rbp), %rax
movq %rax, 0x18(%rcx)
movq 0x60(%rcx), %rax
addq $0x1, %rax
movq %rax, 0x60(%rcx)
movq 0x50(%rcx), %rax
addq $0x1, %rax
movq %rax, 0x50(%rcx)
movq 0x60(%rcx), %rax
cmpq 0x68(%rcx), %rax
jne 0x1b64e
movq -0x60(%rbp), %rax
movq $0x0, 0x60(%rax)
jmp 0x1b64e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1b660
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x1b660
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x1b660
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x1b660
leaq -0x30(%rbp), %rdi
callq 0xa0a0
addq $0xb0, %rsp
popq %rbp
retq
leaq -0x30(%rbp), %rdi
callq 0xa0a0
movq -0x38(%rbp), %rdi
callq 0x8400
nopw %cs:(%rax,%rax)
nopl (%rax)