// File: /workspace/github_c_makefile_star2_O1/nilyang[P]redis-tdd-annotation/src/rdb.c
// Function: rdbLoadObject
robj *rdbLoadObject(int rdbtype, rio *rdb) {
    robj *o, *ele, *dec;
    size_t len;
    unsigned int i;

    // 载入字符串对象
    if (rdbtype == REDIS_RDB_TYPE_STRING) {
        /* Read string value */
        if ((o = rdbLoadEncodedStringObject(rdb)) == NULL) return NULL;
        o = tryObjectEncoding(o);

    // 载入列表对象
    } else if (rdbtype == REDIS_RDB_TYPE_LIST) {

        /* Read list value 
         *
         * 读入列表的节点数
         */
        if ((len = rdbLoadLen(rdb,NULL)) == REDIS_RDB_LENERR) return NULL;

        /* Use a real list when there are too many entries 
         *
         * 根据节点数，创建对象的编码
         */
        if (len > server.list_max_ziplist_entries) {
            o = createListObject();
        } else {
            o = createZiplistObject();
        }

        /* Load every single element of the list 
         *
         * 载入所有列表项
         */
        while(len--) {

            // 载入字符串对象
            if ((ele = rdbLoadEncodedStringObject(rdb)) == NULL) return NULL;

            /* If we are using a ziplist and the value is too big, convert
             * the object to a real list. 
             *
             * 根据字符串对象，
             * 检查是否需要将列表从 ZIPLIST 编码转换为 LINKEDLIST 编码
             */
            if (o->encoding == REDIS_ENCODING_ZIPLIST &&
                sdsEncodedObject(ele) &&
                sdslen(ele->ptr) > server.list_max_ziplist_value)
                    listTypeConvert(o,REDIS_ENCODING_LINKEDLIST);

            // ZIPLIST
            if (o->encoding == REDIS_ENCODING_ZIPLIST) {
                dec = getDecodedObject(ele);

                // 将字符串值推入 ZIPLIST 末尾来重建列表
                o->ptr = ziplistPush(o->ptr,dec->ptr,sdslen(dec->ptr),REDIS_TAIL);

                decrRefCount(dec);
                decrRefCount(ele);
            } else {
                // 将新列表项推入到链表的末尾
                ele = tryObjectEncoding(ele);
                listAddNodeTail(o->ptr,ele);
            }
        }

    // 载入集合对象
    } else if (rdbtype == REDIS_RDB_TYPE_SET) {

        /* Read list/set value 
         *
         * 载入列表元素的数量
         */
        if ((len = rdbLoadLen(rdb,NULL)) == REDIS_RDB_LENERR) return NULL;

        /* Use a regular set when there are too many entries. 
         *
         * 根据数量，选择 INTSET 编码还是 HT 编码*/
        if (len > server.set_max_intset_entries) {
            o = createSetObject();
            /* It's faster to expand the dict to the right size asap in order
             * to avoid rehashing */
            if (len > DICT_HT_INITIAL_SIZE)
                dictExpand(o->ptr,len);
        } else {
            o = createIntsetObject();
        }

        /* Load every single element of the list/set 
         *
         * 载入所有集合元素*/
        for (i = 0; i < len; i++) {
            long long llval;

            // 载入元素
            if ((ele = rdbLoadEncodedStringObject(rdb)) == NULL) return NULL;
            ele = tryObjectEncoding(ele);

            // 将元素添加到 INTSET 集合，并在有需要的时候，转换编码为 HT
            if (o->encoding == REDIS_ENCODING_INTSET) {
                /* Fetch integer value from element */
                if (isObjectRepresentableAsLongLong(ele,&llval) == REDIS_OK) {
                    o->ptr = intsetAdd(o->ptr,llval,NULL);
                } else {
                    setTypeConvert(o,REDIS_ENCODING_HT);
                    dictExpand(o->ptr,len);
                }
            }

            /* This will also be called when the set was just converted
             * to a regular hash table encoded set 
             *
             * 将元素添加到 HT 编码的集合
             */
            if (o->encoding == REDIS_ENCODING_HT) {
                dictAdd((dict*)o->ptr,ele,NULL);
            } else {
                decrRefCount(ele);
            }
        }

    // 载入有序集合对象
    } else if (rdbtype == REDIS_RDB_TYPE_ZSET) {
        /* Read list/set value */
        size_t zsetlen;
        size_t maxelelen = 0;
        zset *zs;

        // 载入有序集合的元素数量
        if ((zsetlen = rdbLoadLen(rdb,NULL)) == REDIS_RDB_LENERR) return NULL;

        // 创建有序集合
        o = createZsetObject();
        zs = o->ptr;

        /* Load every single element of the list/set */
        while(zsetlen--) {
            robj *ele;
            double score;
            zskiplistNode *znode;

            // 载入元素成员
            if ((ele = rdbLoadEncodedStringObject(rdb)) == NULL) return NULL;
            ele = tryObjectEncoding(ele);

            // 载入元素分值
            if (rdbLoadDoubleValue(rdb,&score) == -1) return NULL;

            /* Don't care about integer-encoded strings. */
            // 记录成员的最大长度
            if (sdsEncodedObject(ele) && sdslen(ele->ptr) > maxelelen)
                maxelelen = sdslen(ele->ptr);

            // 将元素插入到跳跃表中
            znode = zslInsert(zs->zsl,score,ele);
            // 将元素关联到字典中
            dictAdd(zs->dict,ele,&znode->score);

            incrRefCount(ele); /* added to skiplist */
        }

        /* Convert *after* loading, since sorted sets are not stored ordered. 
         *
         * 如果有序集合符合条件的话，将它转换为 ZIPLIST 编码
         * 节约空间
         */
        if (zsetLength(o) <= server.zset_max_ziplist_entries &&
            maxelelen <= server.zset_max_ziplist_value)
                zsetConvert(o,REDIS_ENCODING_ZIPLIST);

    // 载入哈希表对象
    } else if (rdbtype == REDIS_RDB_TYPE_HASH) {
        size_t len;
        int ret;

        // 载入哈希表节点数量
        len = rdbLoadLen(rdb, NULL);
        if (len == REDIS_RDB_LENERR) return NULL;

        // 创建哈希表
        o = createHashObject();

        /* Too many entries? Use a hash table.
         * 根据节点数量，选择使用 ZIPLIST 编码还是 HT 编码
         */
        if (len > server.hash_max_ziplist_entries)
            hashTypeConvert(o, REDIS_ENCODING_HT);

        /* Load every field and value into the ziplist 
         *
         * 载入所有域和值，并将它们推入到 ZIPLIST 中
         */
        while (o->encoding == REDIS_ENCODING_ZIPLIST && len > 0) {
            robj *field, *value;

            len--;

            /* Load raw strings */
            // 载入域（一个字符串）
            field = rdbLoadStringObject(rdb);
            if (field == NULL) return NULL;
            // 载入值（一个字符串）
            redisAssert(sdsEncodedObject(field));
            value = rdbLoadStringObject(rdb);
            if (value == NULL) return NULL;
            redisAssert(sdsEncodedObject(value));

            /* Add pair to ziplist 
             *
             * 将域和值推入到 ZIPLIST 末尾
             *
             * 先推入域，再推入值。
             */
            o->ptr = ziplistPush(o->ptr, field->ptr, sdslen(field->ptr), ZIPLIST_TAIL);
            o->ptr = ziplistPush(o->ptr, value->ptr, sdslen(value->ptr), ZIPLIST_TAIL);

            /* Convert to hash table if size threshold is exceeded 
             *
             * 如果元素过多，那么将编码转换为 HT 
             */
            if (sdslen(field->ptr) > server.hash_max_ziplist_value ||
                sdslen(value->ptr) > server.hash_max_ziplist_value)
            {
                decrRefCount(field);
                decrRefCount(value);
                hashTypeConvert(o, REDIS_ENCODING_HT);
                break;
            }
            decrRefCount(field);
            decrRefCount(value);
        }

        /* Load remaining fields and values into the hash table 
         *
         * 载入域值对到哈希表
         */
        while (o->encoding == REDIS_ENCODING_HT && len > 0) {
            robj *field, *value;

            len--;

            /* Load encoded strings */
            // 域和值都载入为字符串对象
            field = rdbLoadEncodedStringObject(rdb);
            if (field == NULL) return NULL;
            value = rdbLoadEncodedStringObject(rdb);
            if (value == NULL) return NULL;

            // 尝试编码
            field = tryObjectEncoding(field);
            value = tryObjectEncoding(value);

            /* Add pair to hash table 
             *
             * 添加到哈希表
             */
            ret = dictAdd((dict*)o->ptr, field, value);
            redisAssert(ret == REDIS_OK);
        }

        /* All pairs should be read by now */
        redisAssert(len == 0);

    } else if (rdbtype == REDIS_RDB_TYPE_HASH_ZIPMAP  ||
               rdbtype == REDIS_RDB_TYPE_LIST_ZIPLIST ||
               rdbtype == REDIS_RDB_TYPE_SET_INTSET   ||
               rdbtype == REDIS_RDB_TYPE_ZSET_ZIPLIST ||
               rdbtype == REDIS_RDB_TYPE_HASH_ZIPLIST)
    {
        // 载入字符串对象
        robj *aux = rdbLoadStringObject(rdb);

        if (aux == NULL) return NULL;

        o = createObject(REDIS_STRING,NULL); /* string is just placeholder */
        o->ptr = zmalloc(sdslen(aux->ptr));
        memcpy(o->ptr,aux->ptr,sdslen(aux->ptr));
        decrRefCount(aux);

        /* Fix the object encoding, and make sure to convert the encoded
         * data type into the base type if accordingly to the current
         * configuration there are too many elements in the encoded data
         * type. Note that we only check the length and not max element
         * size as this is an O(N) scan. Eventually everything will get
         * converted. 
         *
         * 根据读取的类型，将值恢复成原来的编码对象。
         *
         * 在创建编码对象的过程中，程序会检查对象的元素长度，
         * 如果长度超过指定值的话，就会将内存编码对象转换成普通数据结构对象。
         */
        switch(rdbtype) {

            // ZIPMAP 编码的哈希表
            case REDIS_RDB_TYPE_HASH_ZIPMAP:
                /* Convert to ziplist encoded hash. This must be deprecated
                 * when loading dumps created by Redis 2.4 gets deprecated. */
                {
                    // 创建 ZIPLIST
                    unsigned char *zl = ziplistNew();
                    unsigned char *zi = zipmapRewind(o->ptr);
                    unsigned char *fstr, *vstr;
                    unsigned int flen, vlen;
                    unsigned int maxlen = 0;

                    // 从 2.6 开始， HASH 不再使用 ZIPMAP 来进行编码
                    // 所以遇到 ZIPMAP 编码的值时，要将它转换为 ZIPLIST

                    // 从字符串中取出 ZIPMAP 的域和值，然后推入到 ZIPLIST 中
                    while ((zi = zipmapNext(zi, &fstr, &flen, &vstr, &vlen)) != NULL) {
                        if (flen > maxlen) maxlen = flen;
                        if (vlen > maxlen) maxlen = vlen;
                        zl = ziplistPush(zl, fstr, flen, ZIPLIST_TAIL);
                        zl = ziplistPush(zl, vstr, vlen, ZIPLIST_TAIL);
                    }

                    zfree(o->ptr);

                    // 设置类型、编码和值指针
                    o->ptr = zl;
                    o->type = REDIS_HASH;
                    o->encoding = REDIS_ENCODING_ZIPLIST;

                    // 是否需要从 ZIPLIST 编码转换为 HT 编码
                    if (hashTypeLength(o) > server.hash_max_ziplist_entries ||
                        maxlen > server.hash_max_ziplist_value)
                    {
                        hashTypeConvert(o, REDIS_ENCODING_HT);
                    }
                }
                break;

            // ZIPLIST 编码的列表
            case REDIS_RDB_TYPE_LIST_ZIPLIST:

                o->type = REDIS_LIST;
                o->encoding = REDIS_ENCODING_ZIPLIST;

                // 检查是否需要转换编码
                if (ziplistLen(o->ptr) > server.list_max_ziplist_entries)
                    listTypeConvert(o,REDIS_ENCODING_LINKEDLIST);
                break;

            // INTSET 编码的集合
            case REDIS_RDB_TYPE_SET_INTSET:

                o->type = REDIS_SET;
                o->encoding = REDIS_ENCODING_INTSET;

                // 检查是否需要转换编码
                if (intsetLen(o->ptr) > server.set_max_intset_entries)
                    setTypeConvert(o,REDIS_ENCODING_HT);
                break;

            // ZIPLIST 编码的有序集合
            case REDIS_RDB_TYPE_ZSET_ZIPLIST:

                o->type = REDIS_ZSET;
                o->encoding = REDIS_ENCODING_ZIPLIST;

                // 检查是否需要转换编码
                if (zsetLength(o) > server.zset_max_ziplist_entries)
                    zsetConvert(o,REDIS_ENCODING_SKIPLIST);
                break;

            // ZIPLIST 编码的 HASH
            case REDIS_RDB_TYPE_HASH_ZIPLIST:

                o->type = REDIS_HASH;
                o->encoding = REDIS_ENCODING_ZIPLIST;

                // 检查是否需要转换编码
                if (hashTypeLength(o) > server.hash_max_ziplist_entries)
                    hashTypeConvert(o, REDIS_ENCODING_HT);
                break;

            default:
                redisPanic("Unknown encoding");
                break;
        }

    } else {
        redisPanic("Unknown object type");
    }

    return o;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %r14
movl %edi, %r15d
cmpl $0x4, %edi
ja 0x37b69
movl %r15d, %eax
leaq 0x611ad(%rip), %rcx     # 0x989a4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq %r14, %rdi
movl $0x1, %esi
callq 0x36973
testq %rax, %rax
je 0x37e94
movq %rax, %rdi
callq 0x30971
movq %rax, %rbx
jmp 0x37e96
xorl %ebp, %ebp
movq %r14, %rdi
xorl %esi, %esi
callq 0x36088
cmpl $-0x1, %eax
je 0x37cbd
movq %r14, 0x18(%rsp)
movl %eax, %r14d
callq 0x30639
movq %rax, %rbx
leaq 0x92756(%rip), %rax     # 0xc9fa8
cmpq %r14, 0x758(%rax)
jae 0x37868
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4229b
movl (%rbx), %eax
movl $0xf0, %ecx
andl %ecx, %eax
cmpl $0x50, %eax
jne 0x37985
testq %r14, %r14
je 0x37985
xorl %ebp, %ebp
movq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x36973
movl $0x1, %r13d
testq %rax, %rax
je 0x3796f
movq %rax, %r15
movl (%rax), %eax
shrl $0x4, %eax
testb $0x7, %al
jne 0x37f6b
xorl %ebp, %ebp
movq 0x18(%rsp), %rdi
xorl %esi, %esi
callq 0x36973
testq %rax, %rax
je 0x3796f
movq %rax, %r12
movl (%rax), %eax
shrl $0x4, %eax
testb $0x7, %al
jne 0x37f80
movq 0x8(%rbx), %rdi
movq 0x8(%r15), %rsi
movl -0x8(%rsi), %edx
movl $0x1, %ecx
callq 0x2bc04
movq %rax, 0x8(%rbx)
movq 0x8(%r12), %rsi
movl -0x8(%rsi), %edx
movq %rax, %rdi
movl $0x1, %ecx
callq 0x2bc04
movq %rax, 0x8(%rbx)
movq 0x8(%r15), %rax
movslq -0x8(%rax), %rcx
leaq 0x92690(%rip), %rax     # 0xc9fa8
movq 0x760(%rax), %rax
cmpq %rcx, %rax
jb 0x37932
movq 0x8(%r12), %rcx
movslq -0x8(%rcx), %rcx
cmpq %rcx, %rax
jae 0x37959
movq %r15, %rdi
callq 0x30834
movq %r12, %rdi
callq 0x30834
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4229b
movl $0xa, %r13d
xorl %ebp, %ebp
jmp 0x3796f
movq %r15, %rdi
callq 0x30834
movq %r12, %rdi
callq 0x30834
xorl %r13d, %r13d
movb $0x1, %bpl
decq %r14
testl %r13d, %r13d
je 0x37868
cmpl $0xa, %r13d
jne 0x37e8f
movl $0xf0, %ebp
movq %r14, %r13
movl (%rbx), %ecx
andl %ebp, %ecx
addq $-0x1, %r13
setb %al
cmpl $0x20, %ecx
jne 0x37e83
testb %al, %al
je 0x37e83
movq 0x18(%rsp), %r14
movq %r14, %rdi
movl $0x1, %esi
callq 0x36973
testq %rax, %rax
je 0x37e7f
movq %rax, %r15
movq %r14, %rdi
movl $0x1, %esi
callq 0x36973
testq %rax, %rax
je 0x37e7f
movq %rax, %r12
movq %r15, %rdi
callq 0x30971
movq %rax, %r15
movq %r12, %rdi
callq 0x30971
movq 0x8(%rbx), %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x222b6
movq %r13, %r14
testl %eax, %eax
je 0x3798d
leaq 0x6121c(%rip), %rdi     # 0x98c2c
leaq 0x61025(%rip), %rsi     # 0x98a3c
movl $0x58d, %edx            # imm = 0x58D
jmp 0x37f93
xorl %ebx, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x36088
cmpl $-0x1, %eax
je 0x37e96
movl %eax, %ebp
movl %eax, %r15d
leaq 0x92566(%rip), %rax     # 0xc9fa8
cmpq %r15, 0x778(%rax)
jae 0x37d0a
callq 0x305c6
movq %rax, %rbx
cmpl $0x5, %ebp
jb 0x37d12
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x21ffe
jmp 0x37d12
movq %r14, %rdi
xorl %r14d, %r14d
movq %rdi, %r12
xorl %esi, %esi
callq 0x36088
cmpl $-0x1, %eax
je 0x37cc2
movl %eax, %ebp
callq 0x3066e
movq %rax, %rbx
movq 0x8(%rax), %r15
incq %rbp
xorl %r13d, %r13d
movq %r12, %r14
decq %rbp
je 0x37cc9
movq %r14, %rdi
movl $0x1, %esi
callq 0x36973
testq %rax, %rax
je 0x37b21
movq %rax, %rdi
callq 0x30971
movq %rax, %r12
movq %r14, %rdi
leaq 0x8(%rsp), %rsi
callq 0x36b2f
cmpl $-0x1, %eax
je 0x37b21
movl (%r12), %eax
shrl $0x4, %eax
testb $0x7, %al
jne 0x37af4
movq 0x8(%r12), %rax
movslq -0x8(%rax), %rax
cmpq %rax, %r13
cmovbeq %rax, %r13
movq 0x8(%r15), %rdi
movsd 0x8(%rsp), %xmm0
movq %r12, %rsi
callq 0x3d096
movq (%r15), %rdi
leaq 0x8(%rax), %rdx
movq %r12, %rsi
callq 0x222b6
movq %r12, %rdi
callq 0x3041b
movb $0x1, %al
jmp 0x37b23
xorl %eax, %eax
testb %al, %al
jne 0x37aa1
xorl %r14d, %r14d
jmp 0x37cfc
xorl %ebx, %ebx
movq %r14, %rdi
xorl %esi, %esi
callq 0x36088
cmpl $-0x1, %eax
je 0x37e96
movl %eax, %r13d
leaq 0x92456(%rip), %rax     # 0xc9fa8
cmpq %r13, 0x768(%rax)
jae 0x37dba
callq 0x30541
jmp 0x37dbf
addl $-0x9, %r15d
cmpl $0x4, %r15d
ja 0x37fa2
movq %r14, %rdi
xorl %esi, %esi
callq 0x36973
movq %rax, %r14
testq %rax, %rax
je 0x37cc4
xorl %edi, %edi
xorl %esi, %esi
callq 0x302c4
movq %rax, %rbx
movq 0x8(%r14), %rax
movslq -0x8(%rax), %rdi
callq 0x29709
movq %rax, 0x8(%rbx)
movq 0x8(%r14), %rsi
movslq -0x8(%rsi), %rdx
movq %rax, %rdi
callq 0x1fbd0
movq %r14, %rdi
callq 0x30834
cmpl $0x4, %r15d
ja 0x37fd1
leaq 0x60de5(%rip), %rax     # 0x989b8
movslq (%rax,%r15,4), %rcx
addq %rax, %rcx
jmpq *%rcx
callq 0x2bbe0
movq %rax, %r15
movq 0x8(%rbx), %rdi
callq 0x2a752
leaq 0x8(%rsp), %rsi
leaq 0x14(%rsp), %rdx
leaq 0x20(%rsp), %rcx
leaq 0x4(%rsp), %r8
movq %rax, %rdi
callq 0x2a757
xorl %r12d, %r12d
testq %rax, %rax
je 0x37c7f
movq %rax, %r13
leaq 0x4(%rsp), %rbp
movl 0x14(%rsp), %edx
cmpl %r12d, %edx
cmoval %edx, %r12d
movl 0x4(%rsp), %eax
cmpl %r12d, %eax
cmoval %eax, %r12d
movq 0x8(%rsp), %rsi
movq %r15, %rdi
movl $0x1, %ecx
callq 0x2bc04
movq 0x20(%rsp), %rsi
movl 0x4(%rsp), %edx
movq %rax, %rdi
movl $0x1, %ecx
callq 0x2bc04
movq %rax, %r15
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
leaq 0x14(%rsp), %rdx
leaq 0x20(%rsp), %rcx
movq %rbp, %r8
callq 0x2a757
movq %rax, %r13
testq %rax, %rax
jne 0x37c19
movl %r12d, %r12d
movq 0x8(%rbx), %rdi
callq 0x2984b
movq %r15, 0x8(%rbx)
movb $0x54, (%rbx)
movq %rbx, %rdi
callq 0x4274d
leaq 0x9230a(%rip), %rcx     # 0xc9fa8
cmpq 0x758(%rcx), %rax
ja 0x37ec7
cmpq %r12, 0x760(%rcx)
jae 0x37f5d
jmp 0x37ec7
jmp 0x37e8f
jmp 0x37cfc
jmp 0x37f5d
movq %rbx, %rdi
callq 0x3ea49
movl %eax, %ecx
leaq 0x922ce(%rip), %rax     # 0xc9fa8
movb $0x1, %r14b
cmpq %rcx, 0x780(%rax)
jb 0x37cfc
cmpq 0x788(%rax), %r13
ja 0x37cfc
movq %rbx, %rdi
movl $0x5, %esi
callq 0x3ea98
testb %r14b, %r14b
je 0x37e94
jmp 0x37e96
callq 0x30604
movq %rax, %rbx
testl %ebp, %ebp
je 0x37e96
movl $0xf0, %r12d
movq %r14, %rdi
movl $0x1, %esi
callq 0x36973
testq %rax, %rax
je 0x37e94
movq %rax, %rdi
callq 0x30971
movq %rax, %r13
movl (%rbx), %eax
andl %r12d, %eax
cmpl $0x60, %eax
jne 0x37d8b
movq %r13, %rdi
leaq 0x8(%rsp), %rsi
callq 0x3090d
testl %eax, %eax
je 0x37d77
movq %rbx, %rdi
movl $0x2, %esi
callq 0x3b78d
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x21ffe
jmp 0x37d8b
movq 0x8(%rbx), %rdi
movq 0x8(%rsp), %rsi
xorl %edx, %edx
callq 0x4f5d4
movq %rax, 0x8(%rbx)
movl (%rbx), %eax
andl %r12d, %eax
cmpl $0x20, %eax
jne 0x37da5
movq 0x8(%rbx), %rdi
movq %r13, %rsi
xorl %edx, %edx
callq 0x222b6
jmp 0x37dad
movq %r13, %rdi
callq 0x30834
decl %ebp
jne 0x37d20
jmp 0x37e96
callq 0x30591
movq %rax, %rbx
testq %r13, %r13
je 0x37e96
movl $0xf0, %ebp
movq %r14, %rdi
movl $0x1, %esi
callq 0x36973
testq %rax, %rax
je 0x37e94
movq %rax, %r15
movl (%rbx), %eax
andl %ebp, %eax
cmpl $0x50, %eax
jne 0x37e21
movl (%r15), %eax
shrl $0x4, %eax
testb $0x7, %al
jne 0x37e21
movq 0x8(%r15), %rax
movslq -0x8(%rax), %rax
leaq 0x9219d(%rip), %rcx     # 0xc9fa8
cmpq %rax, 0x770(%rcx)
jae 0x37e21
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3962c
movl (%rbx), %eax
andl %ebp, %eax
cmpl $0x50, %eax
jne 0x37e60
movq %r15, %rdi
callq 0x30ac3
movq %rax, %r12
movq 0x8(%rbx), %rdi
movq 0x8(%rax), %rsi
movl -0x8(%rsi), %edx
movl $0x1, %ecx
callq 0x2bc04
movq %rax, 0x8(%rbx)
movq %r12, %rdi
callq 0x30834
movq %r15, %rdi
callq 0x30834
jmp 0x37e74
movq %r15, %rdi
callq 0x30971
movq 0x8(%rbx), %rdi
movq %rax, %rsi
callq 0x2045f
decq %r13
jne 0x37dd0
jmp 0x37e96
xorl %ebp, %ebp
jmp 0x37e8f
movb $0x1, %bpl
testq %r14, %r14
jne 0x37fbc
testb %bpl, %bpl
jne 0x37e96
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movb $0x54, (%rbx)
movq %rbx, %rdi
callq 0x4274d
leaq 0x920ee(%rip), %rcx     # 0xc9fa8
cmpq 0x758(%rcx), %rax
jbe 0x37f5d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x4229b
jmp 0x37f5d
movb $0x62, (%rbx)
movq 0x8(%rbx), %rdi
callq 0x4fa0e
movl %eax, %eax
leaq 0x920ba(%rip), %rcx     # 0xc9fa8
cmpq %rax, 0x778(%rcx)
jae 0x37f5d
movq %rbx, %rdi
movl $0x2, %esi
callq 0x3b78d
jmp 0x37f5d
movb $0x53, (%rbx)
movq %rbx, %rdi
callq 0x3ea49
movl %eax, %eax
leaq 0x9208e(%rip), %rcx     # 0xc9fa8
cmpq %rax, 0x780(%rcx)
jae 0x37f5d
movq %rbx, %rdi
movl $0x7, %esi
callq 0x3ea98
jmp 0x37f5d
movb $0x51, (%rbx)
movq 0x8(%rbx), %rdi
callq 0x2c9a8
movl %eax, %eax
leaq 0x92061(%rip), %rcx     # 0xc9fa8
cmpq %rax, 0x768(%rcx)
jae 0x37f5d
movq %rbx, %rdi
movl $0x4, %esi
callq 0x3962c
testq %r14, %r14
jne 0x37e96
jmp 0x37e94
leaq 0x60c8a(%rip), %rdi     # 0x98bfc
leaq 0x60ac3(%rip), %rsi     # 0x98a3c
movl $0x556, %edx            # imm = 0x556
jmp 0x37f93
leaq 0x60c8d(%rip), %rdi     # 0x98c14
leaq 0x60aae(%rip), %rsi     # 0x98a3c
movl $0x559, %edx            # imm = 0x559
callq 0x4d037
movl $0x1, %edi
callq 0x1f3b0
leaq 0x5f40a(%rip), %rdi     # 0x973b3
leaq 0x60a8c(%rip), %rsi     # 0x98a3c
movl $0x60a, %edx            # imm = 0x60A
callq 0x4d0e5
jmp 0x37f98
leaq 0x60c79(%rip), %rdi     # 0x98c3c
leaq 0x60a72(%rip), %rsi     # 0x98a3c
movl $0x591, %edx            # imm = 0x591
jmp 0x37f93
leaq 0x60c6d(%rip), %rdi     # 0x98c45
leaq 0x60a5d(%rip), %rsi     # 0x98a3c
movl $0x605, %edx            # imm = 0x605
jmp 0x37fb5