// File: /workspace/github_cpp_makefile_star2_O2/yasz24[P]eau2/src/network/../serialize/../utils/distributedArray.h
// Function: IntDistributedArray::IntDistributedArray(char*, KVStore*)
IntDistributedArray(char* serialized, KVStore* kv) {
        //std::cout << serialized <<"\n";
        Deserializable* ds = new Deserializable();
        char* payload = JSONHelper::getPayloadValue(serialized)->c_str();
        //std::cout<<payload<<"\n";
        this->chunkSize_ = std::stoi(JSONHelper::getValueFromKey("chunkSize_", payload)->c_str());
        this->totalNodes_ = std::stoi(JSONHelper::getValueFromKey("totalNodes_", payload)->c_str());
        this->curNode_ = std::stoi(JSONHelper::getValueFromKey("curNode_", payload)->c_str());
        this->uid_ = std::stoi(JSONHelper::getValueFromKey("uid_", payload)->c_str());
        this->itemCount_ = std::stoi(JSONHelper::getValueFromKey("itemCount_", payload)->c_str());
        this->chunkCount_ = std::stoi(JSONHelper::getValueFromKey("chunkCount_", payload)->c_str());
        this->keys_ = new Array(JSONHelper::getValueFromKey("keys_", payload)->c_str());
        this->kv_ = kv;
        this->chunkArray_ = new IntArray(JSONHelper::getValueFromKey("chunkArray_", payload)->c_str());
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rdi, %rbx
andq $0x0, 0x8(%rdi)
movq %rdx, %r14
movq %rsi, %rdi
leaq 0xdd86(%rip), %rax      # 0x24028
movq %rax, (%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movq $0x32, 0x30(%rbx)
movq $0x400, 0x48(%rbx)      # imm = 0x400
callq 0xc014
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r15
leaq 0x22f7(%rip), %rdi      # 0x185cb
movq %rax, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
movq %rax, %rsi
callq 0x70f0
leaq -0x48(%rbp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x771e
cltq
movq %rax, 0x48(%rbx)
leaq -0x48(%rbp), %rdi
callq 0x7120
leaq 0x22d2(%rip), %rdi      # 0x185eb
movq %r15, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
movq %rax, %rsi
callq 0x70f0
leaq -0x48(%rbp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x771e
cltq
movq %rax, 0x68(%rbx)
leaq -0x48(%rbp), %rdi
callq 0x7120
leaq 0x2284(%rip), %rdi      # 0x185e2
movq %r15, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
movq %rax, %rsi
callq 0x70f0
leaq -0x48(%rbp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x771e
cltq
movq %rax, 0x60(%rbx)
leaq -0x48(%rbp), %rdi
callq 0x7120
leaq 0x2223(%rip), %rdi      # 0x185c6
movq %r15, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
movq %rax, %rsi
callq 0x70f0
leaq -0x48(%rbp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x771e
cltq
movq %rax, 0x40(%rbx)
leaq -0x48(%rbp), %rdi
callq 0x7120
leaq 0x2123(%rip), %rdi      # 0x1850b
movq %r15, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
movq %rax, %rsi
callq 0x70f0
leaq -0x48(%rbp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x771e
cltq
movq %rax, 0x58(%rbx)
leaq -0x48(%rbp), %rdi
callq 0x7120
leaq 0x21a9(%rip), %rdi      # 0x185d6
movq %r15, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x48(%rbp), %rdi
leaq -0x21(%rbp), %rdx
movq %rax, %rsi
callq 0x70f0
leaq -0x48(%rbp), %rdi
pushq $0xa
popq %rdx
xorl %esi, %esi
callq 0x771e
cltq
movq %rax, 0x50(%rbx)
leaq -0x48(%rbp), %rdi
callq 0x7120
pushq $0x28
popq %rdi
callq 0x7250
movq %rax, %r12
leaq 0x217a(%rip), %rdi      # 0x185f7
movq %r15, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %r12, %rdi
movq %rax, %rsi
callq 0x1476a
movq %r12, 0x38(%rbx)
movq %r14, 0x10(%rbx)
pushq $0x28
popq %rdi
callq 0x7250
movq %rax, %r14
leaq 0x214a(%rip), %rdi      # 0x185fd
movq %r15, %rsi
callq 0xc140
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %r14, %rdi
movq %rax, %rsi
callq 0xdad2
movq %r14, 0x18(%rbx)
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
jmp 0x164f4
jmp 0x1650e
jmp 0x164f4
jmp 0x1650e
jmp 0x164f4
jmp 0x1650e
jmp 0x164f4
jmp 0x1650e
jmp 0x164f4
jmp 0x1650e
movq %rax, %rbx
leaq -0x48(%rbp), %rdi
callq 0x7120
jmp 0x16526
jmp 0x1650e
jmp 0x1650e
jmp 0x1650e
jmp 0x1650e
jmp 0x1650e
jmp 0x1650e
movq %rax, %rbx
jmp 0x16526
movq %rax, %rbx
movq %r14, %rdi
jmp 0x16521
movq %rax, %rbx
movq %r12, %rdi
callq 0x7220
movq %rbx, %rdi
callq 0x7390