// File: /workspace/github_cpp_makefile_star2_O1/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 0xe817(%rip), %rax      # 0x28720
movq %rdi, -0x38(%rbp)
movq %rax, (%rdi)
movq %rsi, %rdi
callq 0xc9f0
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
leaq 0x343c(%rip), %rdi      # 0x1d364
movq %rax, -0x40(%rbp)
movq %rax, %rsi
callq 0xcb92
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 0x1a125
movslq %eax, %rcx
cmpq %rax, %rcx
jne 0x1a131
movl (%r12), %ecx
cmpl $0x22, %ecx
je 0x1a131
testl %ecx, %ecx
jne 0x19fa1
movl %r15d, (%r12)
cltq
movq -0x38(%rbp), %rcx
movq %rax, 0x20(%rcx)
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x19fbd
callq 0x7200
leaq 0x34a2(%rip), %rdi      # 0x1d466
movq -0x40(%rbp), %rsi
callq 0xcb92
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 0x1a13d
movq %rax, %r13
movabsq $-0x100000000, %rax     # imm = 0xFFFFFFFF00000000
leaq -0x80000000(%r13), %rcx
cmpq %rax, %rcx
jb 0x1a149
movl (%r12), %eax
cmpl $0x22, %eax
je 0x1a149
testl %eax, %eax
jne 0x1a04b
movl -0x30(%rbp), %eax
movl %eax, (%r12)
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
cmpq %rax, %rdi
je 0x1a05d
callq 0x7200
movslq %r13d, %rbx
movq -0x38(%rbp), %rax
movq %rbx, 0x18(%rax)
leaq 0x3300(%rip), %rdi      # 0x1d36f
movq -0x40(%rbp), %rsi
callq 0xcb92
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 0xe680(%rip), %rax      # 0x28720
movq %rax, (%r15)
movq %rbx, %rax
shrq $0x3d, %rax
leaq (,%rbx,8), %rcx
xorl %edi, %edi
negq %rax
sbbq %rdi, %rdi
orq %rcx, %rdi
callq 0x7030
movq %rax, 0x10(%r15)
movq %rbx, 0x20(%r15)
movq $0x0, 0x18(%r15)
testl %r13d, %r13d
jle 0x1a10a
xorl %ebx, %ebx
movq %r12, %rdi
movl %ebx, %esi
callq 0xcfc4
movq (%rax), %rcx
movq %rax, %rdi
callq *0x30(%rcx)
movq %rax, %rsi
movq %r14, %rdx
callq 0x151da
movq (%r15), %rcx
movq %r15, %rdi
movq %rax, %rsi
callq *0x58(%rcx)
incl %ebx
cmpl %ebx, %r13d
jne 0x1a0d9
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 0x2fd3(%rip), %rdi      # 0x1d0ff
callq 0x7140
leaq 0x2fc7(%rip), %rdi      # 0x1d0ff
callq 0x7310
leaq 0x2fbb(%rip), %rdi      # 0x1d0ff
callq 0x7140
leaq 0x2faf(%rip), %rdi      # 0x1d0ff
callq 0x7310
movq %rax, %rbx
movq %r15, %rdi
jmp 0x1a199
jmp 0x1a1a0
jmp 0x1a1a0
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x1a172
movl -0x30(%rbp), %eax
movl %eax, (%r12)
movq -0x60(%rbp), %rdi
leaq -0x50(%rbp), %rax
jmp 0x1a194
jmp 0x1a1a0
movq %rax, %rbx
cmpl $0x0, (%r12)
jne 0x1a18c
movl %r15d, (%r12)
leaq -0x50(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1a1a3
callq 0x7200
jmp 0x1a1a3
movq %rax, %rbx
movq %rbx, %rdi
callq 0x73b0
nop