// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/cluster.c
// Function: migrateCommand
void migrateCommand(client *c) {
    migrateCachedSocket *cs;
    int copy, replace, j;
    long timeout;
    long dbid;
    robj **ov = NULL; /* Objects to migrate. */
    robj **kv = NULL; /* Key names. */
    robj **newargv = NULL; /* Used to rewrite the command as DEL ... keys ... */
    rio cmd, payload;
    int may_retry = 1;
    int write_error = 0;

    /* To support the KEYS option we need the following additional state. */
    int first_key = 3; /* Argument index of the first key. */
    int num_keys = 1;  /* By default only migrate the 'key' argument. */

    /* Initialization */
    copy = 0;
    replace = 0;

    /* Parse additional options */
    for (j = 6; j < c->argc; j++) {
        if (!strcasecmp(c->argv[j]->ptr,"copy")) {
            copy = 1;
        } else if (!strcasecmp(c->argv[j]->ptr,"replace")) {
            replace = 1;
        } else if (!strcasecmp(c->argv[j]->ptr,"keys")) {
            if (sdslen(c->argv[3]->ptr) != 0) {
                addReplyError(c,
                    "When using MIGRATE KEYS option, the key argument"
                    " must be set to the empty string");
                return;
            }
            first_key = j+1;
            num_keys = c->argc - j - 1;
            break; /* All the remaining args are keys. */
        } else {
            addReply(c,shared.syntaxerr);
            return;
        }
    }

    /* Sanity check */
    if (getLongFromObjectOrReply(c,c->argv[5],&timeout,NULL) != C_OK ||
        getLongFromObjectOrReply(c,c->argv[4],&dbid,NULL) != C_OK)
    {
        return;
    }
    if (timeout <= 0) timeout = 1000;

    /* Check if the keys are here. If at least one key is to migrate, do it
     * otherwise if all the keys are missing reply with "NOKEY" to signal
     * the caller there was nothing to migrate. We don't return an error in
     * this case, since often this is due to a normal condition like the key
     * expiring in the meantime. */
    ov = zrealloc(ov,sizeof(robj*)*num_keys);
    kv = zrealloc(kv,sizeof(robj*)*num_keys);
    int oi = 0;

    for (j = 0; j < num_keys; j++) {
        if ((ov[oi] = lookupKeyRead(c->db,c->argv[first_key+j])) != NULL) {
            kv[oi] = c->argv[first_key+j];
            oi++;
        }
    }
    num_keys = oi;
    if (num_keys == 0) {
        zfree(ov); zfree(kv);
        addReplySds(c,sdsnew("+NOKEY\r\n"));
        return;
    }

try_again:
    write_error = 0;

    /* Connect */
    cs = migrateGetSocket(c,c->argv[1],c->argv[2],timeout);
    if (cs == NULL) {
        zfree(ov); zfree(kv);
        return; /* error sent to the client by migrateGetSocket() */
    }

    rioInitWithBuffer(&cmd,sdsempty());

    /* Send the SELECT command if the current DB is not already selected. */
    int select = cs->last_dbid != dbid; /* Should we emit SELECT? */
    if (select) {
        serverAssertWithInfo(c,NULL,rioWriteBulkCount(&cmd,'*',2));
        serverAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,"SELECT",6));
        serverAssertWithInfo(c,NULL,rioWriteBulkLongLong(&cmd,dbid));
    }

    /* Create RESTORE payload and generate the protocol to call the command. */
    for (j = 0; j < num_keys; j++) {
        long long ttl = 0;
        long long expireat = getExpire(c->db,kv[j]);

        if (expireat != -1) {
            ttl = expireat-mstime();
            if (ttl < 1) ttl = 1;
        }
        serverAssertWithInfo(c,NULL,rioWriteBulkCount(&cmd,'*',replace ? 5 : 4));
        if (server.cluster_enabled)
            serverAssertWithInfo(c,NULL,
                rioWriteBulkString(&cmd,"RESTORE-ASKING",14));
        else
            serverAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,"RESTORE",7));
        serverAssertWithInfo(c,NULL,sdsEncodedObject(kv[j]));
        serverAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,kv[j]->ptr,
                sdslen(kv[j]->ptr)));
        serverAssertWithInfo(c,NULL,rioWriteBulkLongLong(&cmd,ttl));

        /* Emit the payload argument, that is the serialized object using
         * the DUMP format. */
        createDumpPayload(&payload,ov[j]);
        serverAssertWithInfo(c,NULL,
            rioWriteBulkString(&cmd,payload.io.buffer.ptr,
                               sdslen(payload.io.buffer.ptr)));
        sdsfree(payload.io.buffer.ptr);

        /* Add the REPLACE option to the RESTORE command if it was specified
         * as a MIGRATE option. */
        if (replace)
            serverAssertWithInfo(c,NULL,rioWriteBulkString(&cmd,"REPLACE",7));
    }

    /* Transfer the query to the other node in 64K chunks. */
    errno = 0;
    {
        sds buf = cmd.io.buffer.ptr;
        size_t pos = 0, towrite;
        int nwritten = 0;

        while ((towrite = sdslen(buf)-pos) > 0) {
            towrite = (towrite > (64*1024) ? (64*1024) : towrite);
            nwritten = syncWrite(cs->fd,buf+pos,towrite,timeout);
            if (nwritten != (signed)towrite) {
                write_error = 1;
                goto socket_err;
            }
            pos += nwritten;
        }
    }

    char buf1[1024]; /* Select reply. */
    char buf2[1024]; /* Restore reply. */

    /* Read the SELECT reply if needed. */
    if (select && syncReadLine(cs->fd, buf1, sizeof(buf1), timeout) <= 0)
        goto socket_err;

    /* Read the RESTORE replies. */
    int error_from_target = 0;
    int socket_error = 0;
    int del_idx = 1; /* Index of the key argument for the replicated DEL op. */

    if (!copy) newargv = zmalloc(sizeof(robj*)*(num_keys+1));

    for (j = 0; j < num_keys; j++) {
        if (syncReadLine(cs->fd, buf2, sizeof(buf2), timeout) <= 0) {
            socket_error = 1;
            break;
        }
        if ((select && buf1[0] == '-') || buf2[0] == '-') {
            /* On error assume that last_dbid is no longer valid. */
            if (!error_from_target) {
                cs->last_dbid = -1;
                addReplyErrorFormat(c,"Target instance replied with error: %s",
                    (select && buf1[0] == '-') ? buf1+1 : buf2+1);
                error_from_target = 1;
            }
        } else {
            if (!copy) {
                /* No COPY option: remove the local key, signal the change. */
                dbDelete(c->db,kv[j]);
                signalModifiedKey(c->db,kv[j]);
                server.dirty++;

                /* Populate the argument vector to replace the old one. */
                newargv[del_idx++] = kv[j];
                incrRefCount(kv[j]);
            }
        }
    }

    /* On socket error, if we want to retry, do it now before rewriting the
     * command vector. We only retry if we are sure nothing was processed
     * and we failed to read the first reply (j == 0 test). */
    if (!error_from_target && socket_error && j == 0 && may_retry &&
        errno != ETIMEDOUT)
    {
        goto socket_err; /* A retry is guaranteed because of tested conditions.*/
    }

    if (!copy) {
        /* Translate MIGRATE as DEL for replication/AOF. */
        if (del_idx > 1) {
            newargv[0] = createStringObject("DEL",3);
            /* Note that the following call takes ownership of newargv. */
            replaceClientCommandVector(c,del_idx,newargv);
        } else {
            /* No key transfer acknowledged, no need to rewrite as DEL. */
            zfree(newargv);
        }
        newargv = NULL; /* Make it safe to call zfree() on it in the future. */
    }

    /* If we are here and a socket error happened, we don't want to retry.
     * Just signal the problem to the client, but only do it if we don't
     * already queued a different error reported by the destination server. */
    if (!error_from_target && socket_error) {
        may_retry = 0;
        goto socket_err;
    }

    if (!error_from_target) {
        /* Success! Update the last_dbid in migrateCachedSocket, so that we can
         * avoid SELECT the next time if the target DB is the same. Reply +OK. */
        cs->last_dbid = dbid;
        addReply(c,shared.ok);
    } else {
        /* On error we already sent it in the for loop above, and set
         * the curretly selected socket to -1 to force SELECT the next time. */
    }

    sdsfree(cmd.io.buffer.ptr);
    zfree(ov); zfree(kv); zfree(newargv);
    if (socket_error) migrateCloseSocket(c->argv[1],c->argv[2]);
    return;

/* On socket errors we try to close the cached socket and try again.
 * It is very common for the cached socket to get closed, if just reopening
 * it works it's a shame to notify the error to the caller. */
socket_err:
    /* Cleanup we want to perform in both the retry and no retry case.
     * Note: Closing the migrate socket will also force SELECT next time. */
    sdsfree(cmd.io.buffer.ptr);
    migrateCloseSocket(c->argv[1],c->argv[2]);
    zfree(newargv);
    newargv = NULL; /* This will get reallocated on retry. */

    /* Retry only if it's not a timeout and we never attempted a retry
     * (or the code jumping here did not set may_retry to zero). */
    if (errno != ETIMEDOUT && may_retry) {
        may_retry = 0;
        goto try_again;
    }

    /* Cleanup we want to do if no retry is attempted. */
    zfree(ov); zfree(kv);
    addReplySds(c,
        sdscatprintf(sdsempty(),
            "-IOERR error or timeout %s to target instance\r\n",
            write_error ? "writing" : "reading"));
    return;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x968, %rsp            # imm = 0x968
movq %rdi, %r12
movslq 0x38(%rdi), %rax
movl $0x3, %ebx
cmpq $0x7, %rax
movq %rdi, 0x28(%rsp)
jl 0x6fb44
movq 0x40(%r12), %r15
movq %rax, 0x30(%rsp)
leaq -0x6(%rax), %r14
xorl %ebp, %ebp
movl $0x0, 0x14(%rsp)
movl $0x0, 0x24(%rsp)
movl $0x1, %r13d
movq 0x30(%r15,%rbp,8), %rax
movq 0x8(%rax), %r12
movq %r12, %rdi
leaq 0x5c49e(%rip), %rsi     # 0xcbfa1
callq 0x26300
testl %eax, %eax
je 0x6fb2d
movq %r12, %rdi
leaq 0x5c3d4(%rip), %rsi     # 0xcbeea
callq 0x26300
testl %eax, %eax
jne 0x702a8
movl $0x1, 0x24(%rsp)
jmp 0x6fb35
movl $0x1, 0x14(%rsp)
incq %rbp
cmpq %rbp, %r14
jne 0x6faf0
movq 0x28(%rsp), %r12
jmp 0x6fb5a
movl $0x0, 0x24(%rsp)
movl $0x1, %r13d
movl $0x0, 0x14(%rsp)
movq 0x40(%r12), %rax
movq 0x28(%rax), %rsi
leaq 0x38(%rsp), %rdx
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x44ba1
testl %eax, %eax
jne 0x70351
movq 0x40(%r12), %rax
movq 0x20(%rax), %rsi
leaq 0x58(%rsp), %rdx
movq %r12, %rdi
xorl %ecx, %ecx
callq 0x44ba1
testl %eax, %eax
jne 0x70351
cmpq $0x0, 0x38(%rsp)
jg 0x6fbab
movq $0x3e8, 0x38(%rsp)      # imm = 0x3E8
movslq %r13d, %r15
leaq (,%r15,8), %r14
movq $0x0, 0x40(%rsp)
xorl %edi, %edi
movq %r14, %rsi
callq 0x3b349
movq %rax, 0x30(%rsp)
xorl %edi, %edi
movq %r14, %rsi
callq 0x3b349
movq %rax, %r14
testl %r15d, %r15d
jle 0x6fc33
movl %r13d, %r15d
movq $0x0, 0x40(%rsp)
movq 0x10(%r12), %rdi
movq 0x40(%r12), %rax
movq (%rax,%rbx,8), %rsi
callq 0x44f5f
movq 0x40(%rsp), %rsi
movslq %esi, %rcx
movq 0x30(%rsp), %rdx
movq %rax, (%rdx,%rcx,8)
testq %rax, %rax
je 0x6fc26
movq 0x40(%r12), %rax
movq (%rax,%rbx,8), %rax
movq %rax, (%r14,%rcx,8)
incl %ecx
movl %ecx, %esi
movq %rsi, 0x40(%rsp)
incq %rbx
decq %r15
jne 0x6fbec
movq 0x40(%rsp), %rax
testl %eax, %eax
je 0x70314
cmpl $0x1, 0x24(%rsp)
movl $0x5, %ecx
sbbl $0x0, %ecx
movl %ecx, 0x64(%rsp)
movslq %eax, %rcx
movq %rcx, 0x88(%rsp)
leaq 0x8(,%rcx,8), %rcx
movq %rcx, 0x80(%rsp)
testl %eax, %eax
setg 0xa(%rsp)
movl %eax, %eax
movq %rax, 0x78(%rsp)
movl $0x1, %ecx
movb $0x1, %al
leaq 0x90(%rsp), %r13
movl %ecx, 0xc(%rsp)
movl %eax, 0x60(%rsp)
movq 0x40(%r12), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
movq 0x38(%rsp), %rcx
movq %r12, %rdi
callq 0x6f6e8
testq %rax, %rax
je 0x7033f
movq %rax, %rbx
callq 0x39222
movq %r13, %rdi
movq %rax, %rsi
callq 0x76150
movq 0x8(%rbx), %rax
movq 0x58(%rsp), %rcx
movq %rax, 0x50(%rsp)
movq %rcx, 0x70(%rsp)
cmpq %rcx, %rax
je 0x6fd2d
movq %r13, %rdi
movl $0x2a, %esi
movl $0x2, %edx
callq 0x76284
testq %rax, %rax
je 0x70539
movl $0x6, %edx
movq %r13, %rdi
leaq 0x5c315(%rip), %rsi     # 0xcc01e
callq 0x76328
testq %rax, %rax
je 0x7051e
movq 0x58(%rsp), %rsi
movq %r13, %rdi
callq 0x7643f
testq %rax, %rax
je 0x70554
movq %rbx, 0x48(%rsp)
cmpl $0x0, 0x40(%rsp)
movl 0x24(%rsp), %r15d
jle 0x6fef8
xorl %ebx, %ebx
movq 0x10(%r12), %rdi
movq (%r14,%rbx,8), %rsi
callq 0x46484
cmpq $-0x1, %rax
je 0x6fd72
movq %rax, %rbp
callq 0x330c8
subq %rax, %rbp
cmpq $0x2, %rbp
movl $0x1, %eax
cmovlq %rax, %rbp
jmp 0x6fd74
xorl %ebp, %ebp
movq %r13, %rdi
movl $0x2a, %esi
movl 0x64(%rsp), %edx
callq 0x76284
testq %rax, %rax
je 0x70430
leaq 0x96ac3(%rip), %rax     # 0x106858
cmpl $0x0, 0x98c(%rax)
je 0x6fdbc
movl $0xe, %edx
movq %r13, %rdi
leaq 0x5c2e8(%rip), %rsi     # 0xcc095
callq 0x76328
testq %rax, %rax
jne 0x6fdd9
jmp 0x704a5
movl $0x7, %edx
movq %r13, %rdi
leaq 0x5c306(%rip), %rsi     # 0xcc0d1
callq 0x76328
testq %rax, %rax
je 0x704f6
movq (%r14,%rbx,8), %rax
movl (%rax), %ecx
shrl $0x4, %ecx
testb $0x7, %cl
jne 0x704db
movq 0x8(%rax), %rsi
movzbl -0x1(%rsi), %edx
movl %edx, %eax
andl $0x7, %eax
cmpl $0x4, %eax
ja 0x6fe29
leaq 0x5a72c(%rip), %rcx     # 0xca530
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x3, %edx
jmp 0x6fe2b
movq -0x11(%rsi), %rdx
jmp 0x6fe2b
movzwl -0x5(%rsi), %edx
jmp 0x6fe2b
movl -0x9(%rsi), %edx
jmp 0x6fe2b
movzbl -0x3(%rsi), %edx
jmp 0x6fe2b
xorl %edx, %edx
movq %r13, %rdi
callq 0x76328
testq %rax, %rax
je 0x7044e
movq %r13, %rdi
movq %rbp, %rsi
callq 0x7643f
testq %rax, %rax
je 0x7048a
movq 0x30(%rsp), %rax
movq (%rax,%rbx,8), %rsi
leaq 0xf8(%rsp), %rdi
callq 0x6f320
movq 0x138(%rsp), %rsi
movzbl -0x1(%rsi), %edx
movl %edx, %eax
andl $0x7, %eax
cmpl $0x4, %eax
ja 0x6fea8
leaq 0x5a6c1(%rip), %rcx     # 0xca544
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x3, %edx
jmp 0x6feaa
movq -0x11(%rsi), %rdx
jmp 0x6feaa
movzwl -0x5(%rsi), %edx
jmp 0x6feaa
movl -0x9(%rsi), %edx
jmp 0x6feaa
movzbl -0x3(%rsi), %edx
jmp 0x6feaa
xorl %edx, %edx
movq %r13, %rdi
callq 0x76328
testq %rax, %rax
je 0x7046c
movq 0x138(%rsp), %rdi
callq 0x392b6
testl %r15d, %r15d
je 0x6feea
movl $0x7, %edx
movq %r13, %rdi
leaq 0x5c2df(%rip), %rsi     # 0xcc1bb
callq 0x76328
testq %rax, %rax
je 0x704c0
incq %rbx
cmpq %rbx, 0x78(%rsp)
jne 0x6fd44
callq 0x26890
movq %rax, 0x68(%rsp)
movl $0x0, (%rax)
movq 0xd0(%rsp), %r12
xorl %r15d, %r15d
movzbl -0x1(%r12), %ebx
movl %ebx, %eax
andl $0x7, %eax
cmpl $0x4, %eax
ja 0x6ff56
leaq 0x5a62e(%rip), %rcx     # 0xca558
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x3, %ebx
jmp 0x6ff58
movq -0x11(%r12), %rbx
jmp 0x6ff58
movzwl -0x5(%r12), %ebx
jmp 0x6ff58
movl -0x9(%r12), %ebx
jmp 0x6ff58
movzbl -0x3(%r12), %ebx
jmp 0x6ff58
xorl %ebx, %ebx
movq %rbx, %rbp
subq %r15, %rbp
je 0x6ff8f
movl $0x10000, %eax          # imm = 0x10000
cmpq %rax, %rbp
cmovaeq %rax, %rbp
movq 0x48(%rsp), %rax
movl (%rax), %edi
leaq (%r12,%r15), %rsi
movq 0x38(%rsp), %rcx
movq %rbp, %rdx
callq 0x68a80
cmpl %ebp, %eax
jne 0x6ff93
cltq
addq %rax, %r15
jmp 0x6ff13
xorl %eax, %eax
jmp 0x6ff98
movl $0xe, %eax
cmpl $0xe, %eax
movq 0x28(%rsp), %r12
je 0x6ffeb
testl %eax, %eax
jne 0x70351
movq 0x70(%rsp), %rax
cmpq %rax, 0x50(%rsp)
je 0x6ffd9
movq 0x48(%rsp), %rax
movl (%rax), %edi
movq 0x38(%rsp), %rcx
movl $0x400, %edx            # imm = 0x400
leaq 0x560(%rsp), %rsi
callq 0x68c35
testq %rax, %rax
jle 0x6ffeb
cmpl $0x0, 0x14(%rsp)
je 0x6fff2
movq $0x0, 0x18(%rsp)
jmp 0x70004
xorl %ebp, %ebp
jmp 0x70223
movq 0x80(%rsp), %rdi
callq 0x3b29d
movq %rax, 0x18(%rsp)
movl $0x1, %ecx
movb $0x1, %bpl
cmpl $0x0, 0x40(%rsp)
jle 0x70172
movq 0x48(%rsp), %rax
movl (%rax), %edi
movq 0x38(%rsp), %rcx
movl $0x400, %edx            # imm = 0x400
leaq 0x160(%rsp), %rsi
callq 0x68c35
testq %rax, %rax
setle 0xb(%rsp)
jle 0x7017b
movl $0x1, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
movl $0x1, %ecx
movq %rcx, %rbp
movq 0x70(%rsp), %rax
cmpq %rax, 0x50(%rsp)
setne %cl
cmpb $0x2d, 0x560(%rsp)
sete %al
andb %cl, %al
jne 0x700df
cmpb $0x2d, 0x160(%rsp)
je 0x700df
cmpl $0x0, 0x14(%rsp)
jne 0x70125
movq 0x10(%r12), %rdi
movq -0x8(%r14,%rbp,8), %rsi
callq 0x452f3
movq 0x10(%r12), %rdi
movq -0x8(%r14,%rbp,8), %rsi
callq 0x45220
leaq 0x967a7(%rip), %rax     # 0x106858
incq 0x710(%rax)
movq -0x8(%r14,%rbp,8), %rax
movl 0x10(%rsp), %edx
movslq %edx, %rcx
incl %edx
movl %edx, 0x10(%rsp)
movq 0x18(%rsp), %rdx
movq %rax, (%rdx,%rcx,8)
movq -0x8(%r14,%rbp,8), %rdi
callq 0x43c0c
jmp 0x70125
cmpl $0x0, 0xc(%rsp)
jne 0x7011d
movq 0x48(%rsp), %rcx
movq $-0x1, 0x8(%rcx)
testb %al, %al
leaq 0x160(%rsp), %rdx
leaq 0x560(%rsp), %rax
cmovneq %rax, %rdx
incq %rdx
movq %r12, %rdi
leaq 0x5c0d2(%rip), %rsi     # 0xcc1e8
xorl %eax, %eax
callq 0x3fff2
movl $0x1, 0xc(%rsp)
cmpq %rbp, 0x78(%rsp)
je 0x70157
movq 0x48(%rsp), %rax
movl (%rax), %edi
movq 0x38(%rsp), %rcx
movl $0x400, %edx            # imm = 0x400
leaq 0x160(%rsp), %rsi
callq 0x68c35
leaq 0x1(%rbp), %rcx
testq %rax, %rax
jg 0x70058
cmpq 0x88(%rsp), %rbp
setl %sil
cmpl $0x0, 0xc(%rsp)
sete %bpl
movl 0x10(%rsp), %ecx
jmp 0x70185
movb $0x1, %dl
movb 0xa(%rsp), %sil
jmp 0x70189
movb 0xa(%rsp), %sil
movl $0x1, %ecx
movb 0xb(%rsp), %dl
movl 0x60(%rsp), %eax
andb %dl, %al
movl %esi, %r12d
andb %bpl, %r12b
cmpb $0x1, %al
jne 0x701a8
testb %r12b, %r12b
je 0x701a8
movq 0x68(%rsp), %rax
cmpl $0x6e, (%rax)
jne 0x701e6
cmpl $0x0, 0x14(%rsp)
jne 0x70208
movb %sil, 0x50(%rsp)
cmpl $0x2, %ecx
jl 0x701f0
movl $0x3, %esi
leaq 0x4fe5d(%rip), %rdi     # 0xc0022
movl %ecx, 0x10(%rsp)
callq 0x43ba8
movq 0x18(%rsp), %rdx
movq %rax, (%rdx)
movq 0x28(%rsp), %rdi
movl 0x10(%rsp), %esi
callq 0x42bcb
jmp 0x701fa
movl $0x1, 0xc(%rsp)
jmp 0x70219
movq 0x18(%rsp), %rdi
callq 0x3b3df
movq $0x0, 0x18(%rsp)
movb 0x50(%rsp), %sil
testb %r12b, %r12b
je 0x703ba
movl $0x0, 0xc(%rsp)
movq 0x28(%rsp), %r12
movq 0x18(%rsp), %rbp
movq 0xd0(%rsp), %rdi
callq 0x392b6
movq 0x40(%r12), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rsi
callq 0x6f91a
movq %rbp, %rdi
callq 0x3b3df
cmpl $0x0, 0xc(%rsp)
je 0x70266
xorl %eax, %eax
movq 0x68(%rsp), %rcx
cmpl $0x6e, (%rcx)
movl $0x0, %ecx
jne 0x6fc89
movq 0x30(%rsp), %rdi
callq 0x3b3df
movq %r14, %rdi
callq 0x3b3df
callq 0x39222
cmpq %r15, %rbx
leaq 0x5bfc0(%rip), %rcx     # 0xcc247
leaq 0x5bfb1(%rip), %rdx     # 0xcc23f
cmoveq %rcx, %rdx
leaq 0x5bf76(%rip), %rsi     # 0xcc20f
movq %rax, %rdi
xorl %eax, %eax
callq 0x39eb7
jmp 0x70332
leaq 0x5b872(%rip), %rsi     # 0xcbb21
movq %r12, %rdi
callq 0x26300
testl %eax, %eax
je 0x702e4
leaq 0x96fee(%rip), %rax     # 0x1072b0
movq 0x80(%rax), %rsi
movq 0x28(%rsp), %rdi
addq $0x968, %rsp            # imm = 0x968
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3fc19
movq 0x18(%r15), %rax
movq 0x8(%rax), %rcx
movzbl -0x1(%rcx), %eax
movl %eax, %edx
andl $0x7, %edx
cmpl $0x4, %edx
movq 0x28(%rsp), %r12
ja 0x7037a
leaq 0x5a216(%rip), %rsi     # 0xca51c
movslq (%rsi,%rdx,4), %rdx
addq %rsi, %rdx
jmpq *%rdx
shrl $0x3, %eax
jmp 0x7037c
movq 0x30(%rsp), %rdi
callq 0x3b3df
movq %r14, %rdi
callq 0x3b3df
leaq 0x5bcca(%rip), %rdi     # 0xcbff7
callq 0x39245
movq %r12, %rdi
movq %rax, %rsi
callq 0x3fe4b
jmp 0x70351
movq 0x30(%rsp), %rdi
callq 0x3b3df
movq %r14, %rdi
callq 0x3b3df
addq $0x968, %rsp            # imm = 0x968
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq -0x11(%rcx), %rax
jmp 0x7037c
movzwl -0x5(%rcx), %eax
jmp 0x7037c
movl -0x9(%rcx), %eax
jmp 0x7037c
movzbl -0x3(%rcx), %eax
jmp 0x7037c
xorl %eax, %eax
testq %rax, %rax
je 0x703a1
leaq 0x5bc1e(%rip), %rsi     # 0xcbfa6
movq %r12, %rdi
addq $0x968, %rsp            # imm = 0x968
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3ffcb
movq 0x30(%rsp), %rax
subl %ebp, %eax
addl $-0x7, %eax
addq $0x7, %rbp
movq %rbp, %rbx
movl %eax, %r13d
jmp 0x6fb5a
movl %esi, %r15d
testb %bpl, %bpl
movq 0x28(%rsp), %rbx
je 0x703e8
movq 0x58(%rsp), %rax
movq 0x48(%rsp), %rcx
movq %rax, 0x8(%rcx)
leaq 0x96ed4(%rip), %rax     # 0x1072b0
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x3fc19
movq 0xd0(%rsp), %rdi
callq 0x392b6
movq 0x30(%rsp), %rdi
callq 0x3b3df
movq %r14, %rdi
callq 0x3b3df
movq 0x18(%rsp), %rdi
callq 0x3b3df
testb %r15b, %r15b
je 0x70351
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rdi
movq 0x10(%rax), %rsi
callq 0x6f91a
jmp 0x70351
leaq 0x5bc32(%rip), %rdx     # 0xcc069
leaq 0x5a24f(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x128f, %r8d           # imm = 0x128F
jmp 0x7050f
leaq 0x5bcc1(%rip), %rdx     # 0xcc116
leaq 0x5a231(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1297, %r8d           # imm = 0x1297
jmp 0x7050f
leaq 0x5bcfa(%rip), %rdx     # 0xcc16d
leaq 0x5a213(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x129f, %r8d           # imm = 0x129F
jmp 0x7050f
leaq 0x5bcbd(%rip), %rdx     # 0xcc14e
leaq 0x5a1f5(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1298, %r8d           # imm = 0x1298
jmp 0x7050f
leaq 0x5bbf8(%rip), %rdx     # 0xcc0a4
leaq 0x5a1da(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1292, %r8d           # imm = 0x1292
jmp 0x7050f
leaq 0x5bcfc(%rip), %rdx     # 0xcc1c3
leaq 0x5a1bf(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x12a5, %r8d           # imm = 0x12A5
jmp 0x7050f
leaq 0x5bc1c(%rip), %rdx     # 0xcc0fe
leaq 0x5a1a4(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1295, %r8d           # imm = 0x1295
jmp 0x7050f
leaq 0x5bbdc(%rip), %rdx     # 0xcc0d9
leaq 0x5a189(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1294, %r8d           # imm = 0x1294
callq 0x66380
movl $0x1, %edi
callq 0x263d0
leaq 0x5bb00(%rip), %rdx     # 0xcc025
leaq 0x5a161(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1282, %r8d           # imm = 0x1282
jmp 0x7050f
leaq 0x5bac0(%rip), %rdx     # 0xcc000
leaq 0x5a146(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1281, %r8d           # imm = 0x1281
jmp 0x7050f
leaq 0x5baee(%rip), %rdx     # 0xcc049
leaq 0x5a12b(%rip), %rcx     # 0xca68d
movq %r12, %rdi
xorl %esi, %esi
movl $0x1283, %r8d           # imm = 0x1283
jmp 0x7050f