// File: yasz24[P]eau2/src/network/./../application/../dataframe/../utils/distributedArray.h
// Function: StringDistributedArray::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_string_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 StringArray(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 0x18b97
leaq 0x13c2a(%rip), %rsi     # 0x2c7c8
leaq -0x30(%rbp), %rdi
callq 0xa0f0
jmp 0x18ba9
movq -0x60(%rbp), %rax
movq 0x50(%rax), %rsi
leaq -0x30(%rbp), %rdi
callq 0x14390
jmp 0x18bbc
leaq -0x30(%rbp), %rdi
callq 0xa210
movq %rax, -0x68(%rbp)
jmp 0x18bcb
movq -0x68(%rbp), %rax
movq %rax, -0x48(%rbp)
movl $0x20, %edi
callq 0x8290
movq %rax, -0x70(%rbp)
jmp 0x18be3
movq -0x48(%rbp), %rdi
movq (%rdi), %rax
movq 0x30(%rax), %rax
callq *%rax
movq %rax, -0x78(%rbp)
jmp 0x18bf6
movq -0x78(%rbp), %rsi
movq -0x70(%rbp), %rdi
movq -0x60(%rbp), %rax
movq 0x60(%rax), %rdx
callq 0xa840
jmp 0x18c0d
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 0x18c2c
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 0x18c56
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rdi
movq (%rdi), %rax
movq 0x38(%rax), %rax
callq *%rax
movq %rax, -0x98(%rbp)
jmp 0x18c70
movq -0x98(%rbp), %rsi
movq -0x80(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0xdad0
jmp 0x18c86
movq -0x80(%rbp), %rdx
movq -0x88(%rbp), %rsi
movq -0x90(%rbp), %rdi
callq 0xdb20
jmp 0x18c9f
movq -0x60(%rbp), %rax
movq 0x18(%rax), %rax
movq %rax, -0xa0(%rbp)
cmpq $0x0, %rax
je 0x18cc1
movq -0xa0(%rbp), %rdi
movq (%rdi), %rax
callq *0x8(%rax)
movl $0x28, %edi
callq 0x8290
movq %rax, -0xa8(%rbp)
jmp 0x18cd4
movq -0xa8(%rbp), %rdi
movq -0x60(%rbp), %rax
movl 0x48(%rax), %esi
callq 0x173f0
jmp 0x18ce9
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 0x18d7e
movq -0x60(%rbp), %rax
movq $0x0, 0x60(%rax)
jmp 0x18d7e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
jmp 0x18d90
movq -0x70(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x18d90
movq -0x80(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x18d90
movq -0xa8(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x38(%rbp)
movl %eax, -0x3c(%rbp)
callq 0x8260
jmp 0x18d90
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)