// File: yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: FloatDistributedArray::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_float_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 FloatArray(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 0x1d487
leaq 0xf46e(%rip), %rsi      # 0x2c8fc
leaq -0x30(%rbp), %rdi
callq 0xa0f0
jmp 0x1d499
movq -0x60(%rbp), %rax
movq 0x50(%rax), %rsi
leaq -0x30(%rbp), %rdi
callq 0x14390
jmp 0x1d4ac
leaq -0x30(%rbp), %rdi
callq 0xa210
movq %rax, -0x68(%rbp)
jmp 0x1d4bb
movq -0x68(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x20, %edi
callq 0x8290
movq %rax, -0x70(%rbp)
jmp 0x1d4d3
movq -0x48(%rbp), %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movq %rax, -0x78(%rbp)
jmp 0x1d4e6
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdi
movq -0x60(%rbp), %rax
movq 0x60(%rax), %rdx
callq 0xa840
jmp 0x1d4fd
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 0x1d51c
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 0x1d546
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movq %rax, -0x98(%rbp)
jmp 0x1d560
movq -0x98(%rbp), %rsi
movq -0x80(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0xdad0
jmp 0x1d576
movq -0x80(%rbp), %rdx
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdi
callq 0xdb20
jmp 0x1d58f
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0x1d5b1
movq -0xa0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x28, %edi
callq 0x8290
movq %rax, -0xa8(%rbp)
jmp 0x1d5c4
movq -0xa8(%rbp), %rdi
movq -0x60(%rbp), %rax
movl 0x48(%rax), %esi
callq 0x1be20
jmp 0x1d5d9
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 0x1d66e
movq -0x60(%rbp), %rax
movq $0x0, 0x60(%rax)
jmp 0x1d66e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x1d680
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x1d680
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x1d680
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x1d680
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)