// File: /workspace/github_cpp_makefile_star2_O3/yasz24[P]eau2/src/network/../serialize/../dataframe/../store/../utils/array.h
// Function: Array::Array(char*, KVStore*)
Array(char* serialized, KVStore* kv) {
        Deserializable* ds = new Deserializable();
        char* payload = JSONHelper::getPayloadValue(serialized)->c_str();
        arraySize_ = std::stoi(JSONHelper::getValueFromKey("arraySize_", payload)->c_str());
        int len = std::stoi(JSONHelper::getValueFromKey("listLength_", payload)->c_str());
        this->listLength_ = len;

        char* vals = JSONHelper::getValueFromKey("objs_", payload)->c_str();
        Array* temp = new Array(len);
        for(int i = 0; i < len; i++) {
            char* serial = JSONHelper::getArrayValueAt(vals, i)->c_str();
            //std::cout<<serial<<"\n";
            Object* o = ds->deserialize(serial, kv);
            temp->pushBack(o);
        }
        //delete temp;
        this->objs_ = temp->objs_;
        delete ds;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rdx, %r14
movq $0x0, 0x8(%rdi)
leaq 0xdcd3(%rip), %rax      # 0x27720
movq %rdi, -0x38(%rbp)
movq %rax, (%rdi)
movq %rsi, %rdi
callq 0xc82c
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq 0x38f8(%rip), %rdi      # 0x1d364
movq %rax, -0x40(%rbp)
movq %rax, %rsi
callq 0xc9a6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x60(%rbp), %rdi
leaq -0x29(%rbp), %rdx
movq %rax, %rsi
callq 0x70e0
movq -0x60(%rbp), %rbx
callq 0x7040
movq %rax, %r12
movl (%rax), %r15d
movl $0x0, (%rax)
leaq -0x68(%rbp), %r13
movq %rbx, %rdi
movq %r13, %rsi
movl $0xa, %edx
callq 0x72f0
cmpq %rbx, (%r13)
je 0x19c63
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x19c6f
movl (%r12), %ecx
cmpl $0x22, %ecx
je 0x19c6f
testl %ecx, %ecx
jne 0x19ae5
movl %r15d, (%r12)
movq -0x38(%rbp), %rcx
movq %rax, 0x20(%rcx)
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19aff
callq 0x7200
leaq 0x3960(%rip), %rdi      # 0x1d466
movq -0x40(%rbp), %rsi
callq 0xc9a6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq -0x60(%rbp), %rdi
leaq -0x29(%rbp), %rdx
movq %rax, %rsi
callq 0x70e0
movq -0x60(%rbp), %rbx
movl (%r12), %eax
movl %eax, -0x30(%rbp)
movl $0x0, (%r12)
leaq -0x68(%rbp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl $0xa, %edx
callq 0x72f0
cmpq %rbx, (%r15)
je 0x19c7b
movq %rax, %r13
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%r13), %rcx
cmpq %rax, %rcx
jb 0x19c87
movl (%r12), %eax
cmpl $0x22, %eax
je 0x19c87
testl %eax, %eax
jne 0x19b8d
movl -0x30(%rbp), %eax
movl %eax, (%r12)
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x19b9f
callq 0x7200
movq -0x38(%rbp), %rax
movq %r13, 0x18(%rax)
leaq 0x37c1(%rip), %rdi      # 0x1d36f
movq -0x40(%rbp), %rsi
callq 0xc9a6
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %r12
movl $0x28, %edi
callq 0x7230
movq %rax, %r15
movq $0x0, 0x8(%rax)
leaq 0xdb41(%rip), %rax      # 0x27720
movq %rax, (%r15)
movq %r13, %rax
shrq $0x3d, %rax
movq %r13, %rcx
shlq $0x3, %rcx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x7030
movq %rax, 0x10(%r15)
movq %r13, 0x20(%r15)
movq $0x0, 0x18(%r15)
testl %r13d, %r13d
jle 0x19c4c
xorl %ebx, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq 0xcd78
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %rsi
movq %r14, %rdx
callq 0x14d6a
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0x58(%rcx)
incl %ebx
cmpl %ebx, %r13d
jne 0x19c17
movq 0x10(%r15), %rax
movq -0x38(%rbp), %rcx
movq %rax, 0x10(%rcx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3495(%rip), %rdi      # 0x1d0ff
callq 0x7140
leaq 0x3489(%rip), %rdi      # 0x1d0ff
callq 0x7310
leaq 0x347d(%rip), %rdi      # 0x1d0ff
callq 0x7140
leaq 0x3471(%rip), %rdi      # 0x1d0ff
callq 0x7310
movq %rax, %rbx
movq %r15, %rdi
jmp 0x19cd7
jmp 0x19cde
jmp 0x19cde
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x19cb0
movl -0x30(%rbp), %eax
movl %eax, (%r12)
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
jmp 0x19cd2
jmp 0x19cde
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x19cca
movl %r15d, (%r12)
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19ce1
callq 0x7200
jmp 0x19ce1
movq %rax, %rbx
movq %rbx, %rdi
callq 0x73b0
nop