// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/scripting.c
// Function: luaRedisGenericCommand
int luaRedisGenericCommand(lua_State *lua, int raise_error) {
    int j, argc = lua_gettop(lua);
    struct redisCommand *cmd;
    redisClient *c = server.lua_client;
    sds reply;

    /* Cached across calls. */
    static robj **argv = NULL;
    static int argv_size = 0;
    static robj *cached_objects[LUA_CMD_OBJCACHE_SIZE];
    static int cached_objects_len[LUA_CMD_OBJCACHE_SIZE];

    /* Require at least one argument */
    // 命令参数检查（命令本身是 argv[0]）
    if (argc == 0) {
        luaPushError(lua,
            "Please specify at least one argument for redis.call()");
        return 1;
    }

    /* Build the arguments vector */
    // 构建参数数组
    if (!argv) {
        argv = zmalloc(sizeof(robj*)*argc);
    } else if (argv_size < argc) {
        argv = zrealloc(argv,sizeof(robj*)*argc);
        argv_size = argc;
    }

    for (j = 0; j < argc; j++) {
        char *obj_s;
        size_t obj_len;

        obj_s = (char*)lua_tolstring(lua,j+1,&obj_len);
        if (obj_s == NULL) break; /* Not a string. */

        /* Try to use a cached object. */
        if (cached_objects[j] && cached_objects_len[j] >= obj_len) {
            char *s = cached_objects[j]->ptr;
            struct sdshdr *sh = (void*)(s-(sizeof(struct sdshdr)));

            argv[j] = cached_objects[j];
            cached_objects[j] = NULL;
            memcpy(s,obj_s,obj_len+1);
            sh->free += sh->len - obj_len;
            sh->len = obj_len;
        } else {
            argv[j] = createStringObject(obj_s, obj_len);
        }
    }
    
    /* Check if one of the arguments passed by the Lua script
     * is not a string or an integer (lua_isstring() return true for
     * integers as well). 
     *
     * 对参数进行检查，确保它们只能是字符串或整数
     */
    if (j != argc) {
        j--;
        while (j >= 0) {
            decrRefCount(argv[j]);
            j--;
        }
        luaPushError(lua,
            "Lua redis() command arguments must be strings or integers");
        return 1;
    }

    /* Setup our fake client for command execution */
    // 设置参数和参数数量
    c->argv = argv;
    c->argc = argc;

    /* Command lookup */
    // 查找命令的实现函数
    cmd = lookupCommand(argv[0]->ptr);
    // 检查参数数量是否正确
    if (!cmd || ((cmd->arity > 0 && cmd->arity != argc) ||
                   (argc < -cmd->arity)))
    {
        if (cmd)
            luaPushError(lua,
                "Wrong number of args calling Redis command From Lua script");
        else
            luaPushError(lua,"Unknown Redis command called from Lua script");
        goto cleanup;
    }

    /* There are commands that are not allowed inside scripts. */
    // 阻止那些不能在脚本中执行的命令
    if (cmd->flags & REDIS_CMD_NOSCRIPT) {
        luaPushError(lua, "This Redis command is not allowed from scripts");
        goto cleanup;
    }

    /* Write commands are forbidden against read-only slaves, or if a
     * command marked as non-deterministic was already called in the context
     * of this script. 
     *
     * 写命令不能在只读附属节点中执行，
     * 也不能在已经有随机命令执行的情况下执行。
     */
    if (cmd->flags & REDIS_CMD_WRITE) {

        // 不能在已经执行过随机命令之后执行
        if (server.lua_random_dirty) {
            luaPushError(lua,
                "Write commands not allowed after non deterministic commands");
            goto cleanup;

        // 不能在只读节点中执行
        } else if (server.masterhost && server.repl_slave_ro &&
                   !server.loading &&
                   !(server.lua_caller->flags & REDIS_MASTER))
        {
            luaPushError(lua, shared.roslaveerr->ptr);
            goto cleanup;

        // 不能在已经有写入出错的情况下继续进行写入
        } else if (server.stop_writes_on_bgsave_err &&
                   server.saveparamslen > 0 &&
                   server.lastbgsave_status == REDIS_ERR)
        {
            luaPushError(lua, shared.bgsaveerr->ptr);
            goto cleanup;
        }
    }

    /* If we reached the memory limit configured via maxmemory, commands that
     * could enlarge the memory usage are not allowed, but only if this is the
     * first write in the context of this script, otherwise we can't stop
     * in the middle. 
     *
     * 如果脚本运行时 Redis 的内存到达了 maxmemory 的限制，
     * 并且之前没有执行过写操作，
     * 那么尝试释放内存，如果释放失败的话，就直接退出。
     */
    if (server.maxmemory && server.lua_write_dirty == 0 &&
        (cmd->flags & REDIS_CMD_DENYOOM))
    {
        // 尝试释放内存，如果失败的话，直接退出
        if (freeMemoryIfNeeded() == REDIS_ERR) {
            luaPushError(lua, shared.oomerr->ptr);
            goto cleanup;
        }
    }

    // 如果将要执行的是随机操作，那么设置 lua_random_dirty 状态
    if (cmd->flags & REDIS_CMD_RANDOM) server.lua_random_dirty = 1;
    // 如果将要执行的是写操作，那么设置 lua_write_dirty 状态
    if (cmd->flags & REDIS_CMD_WRITE) server.lua_write_dirty = 1;

    /* Run the command */
    // 执行命令
    c->cmd = cmd;
    call(c,REDIS_CALL_SLOWLOG | REDIS_CALL_STATS);

    /* Convert the result of the Redis command into a suitable Lua type.
     *
     * 将 Redis 命令的结果转换为适当的 Lua 类型。
     *
     * The first thing we need is to create a single string from the client
     * output buffers. 
     *
     * 首先要做的就是为客户端输出缓存中创建一个字符串
     */
    if (listLength(c->reply) == 0 && c->bufpos < REDIS_REPLY_CHUNK_BYTES) {
        /* This is a fast path for the common case of a reply inside the
         * client static buffer. Don't create an SDS string but just use
         * the client buffer directly. */
        c->buf[c->bufpos] = '\0';
        reply = c->buf;
        c->bufpos = 0;
    } else {
        reply = sdsnewlen(c->buf,c->bufpos);
        c->bufpos = 0;
        while(listLength(c->reply)) {
            robj *o = listNodeValue(listFirst(c->reply));
            reply = sdscatlen(reply,o->ptr,sdslen(o->ptr));
            listDelNode(c->reply,listFirst(c->reply));
        }
    }

    // 检测执行的命令是否出错
    if (raise_error && reply[0] != '-') raise_error = 0;

    // 将回复转换为 Lua 值，并将这些值推入 Lua 环境
    redisProtocolToLuaType(lua,reply);

    /* Sort the output array if needed, assuming it is a non-null multi bulk
     * reply as expected. 
     *
     * 如果输出是一个 multi bulk reply ，并且它不是一个 null multi bulk reply ，
     * 那么对它进行排序
     * (null multi bulk reply 的前缀为 *-1\r\n ，具体请参考协议文档）
     */
    if ((cmd->flags & REDIS_CMD_SORT_FOR_SCRIPT) &&
        (reply[0] == '*' && reply[1] != '-')) {
            // 排序
            luaSortArray(lua);
    }

    if (reply != c->buf) sdsfree(reply);
    c->reply_bytes = 0;

cleanup:
    /* Clean up. Command code may have changed argv/argc so we use the
     * argv/argc of the client instead of the local variables. */
    for (j = 0; j < c->argc; j++) {
        robj *o = c->argv[j];

        /* Try to cache the object in the cached_objects array.
         * The object must be small, SDS-encoded, and with refcount = 1
         * (we must be the only owner) for us to cache it. */
        if (j < LUA_CMD_OBJCACHE_SIZE &&
            o->refcount == 1 &&
            (o->encoding == REDIS_ENCODING_RAW ||
             o->encoding == REDIS_ENCODING_EMBSTR) &&
            sdslen(o->ptr) <= LUA_CMD_OBJCACHE_MAX_LEN)
        {
            struct sdshdr *sh = (void*)(((char*)(o->ptr))-(sizeof(struct sdshdr)));

            if (cached_objects[j]) decrRefCount(cached_objects[j]);
            cached_objects[j] = o;
            cached_objects_len[j] = sh->free + sh->len;
        } else {
            decrRefCount(o);
        }
    }

    if (c->argv != argv) {
        zfree(c->argv);
        argv = NULL;
    }

    // 返回错误
    if (raise_error) {
        /* If we are here we should have an error in the stack, in the
         * form of a table with an "err" field. Extract the string to
         * return the plain error. */
        lua_pushstring(lua,"err");
        lua_gettable(lua,-2);
        return lua_error(lua);
    }

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movq %rdi, -0x10(%rbp)
movl %esi, -0x14(%rbp)
movq -0x10(%rbp), %rdi
callq 0x8b6c0
movl %eax, -0x1c(%rbp)
leaq 0xa07c3(%rip), %rax     # 0x1138f8
movq 0x7e8(%rax), %rax
movq %rax, -0x30(%rbp)
cmpl $0x0, -0x1c(%rbp)
jne 0x73162
movq -0x10(%rbp), %rdi
leaq 0x74566(%rip), %rsi     # 0xe76b7
callq 0x72f60
movl $0x1, -0x4(%rbp)
jmp 0x7385d
cmpq $0x0, 0xb4e36(%rip)     # 0x127fa0
jne 0x73182
movslq -0x1c(%rbp), %rdi
shlq $0x3, %rdi
callq 0x2e130
movq %rax, 0xb4e20(%rip)     # 0x127fa0
jmp 0x731b3
movl 0xb4e20(%rip), %eax     # 0x127fa8
cmpl -0x1c(%rbp), %eax
jge 0x731b1
movq 0xb4e0c(%rip), %rdi     # 0x127fa0
movslq -0x1c(%rbp), %rsi
shlq $0x3, %rsi
callq 0x2e270
movq %rax, 0xb4df8(%rip)     # 0x127fa0
movl -0x1c(%rbp), %eax
movl %eax, 0xb4df7(%rip)     # 0x127fa8
jmp 0x731b3
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
jge 0x732d7
movq -0x10(%rbp), %rdi
movl -0x18(%rbp), %esi
addl $0x1, %esi
leaq -0x48(%rbp), %rdx
callq 0x8c0e0
movq %rax, -0x40(%rbp)
cmpq $0x0, -0x40(%rbp)
jne 0x731e9
jmp 0x732d7
movslq -0x18(%rbp), %rcx
leaq 0xb4dbc(%rip), %rax     # 0x127fb0
cmpq $0x0, (%rax,%rcx,8)
je 0x732a8
movslq -0x18(%rbp), %rcx
leaq 0xb4ea6(%rip), %rax     # 0x1280b0
movslq (%rax,%rcx,4), %rax
cmpq -0x48(%rbp), %rax
jb 0x732a8
movslq -0x18(%rbp), %rcx
leaq 0xb4d8d(%rip), %rax     # 0x127fb0
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq %rax, -0x50(%rbp)
movq -0x50(%rbp), %rax
addq $-0x8, %rax
movq %rax, -0x58(%rbp)
movslq -0x18(%rbp), %rcx
leaq 0xb4d6a(%rip), %rax     # 0x127fb0
movq (%rax,%rcx,8), %rdx
movq 0xb4d4f(%rip), %rax     # 0x127fa0
movslq -0x18(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
movslq -0x18(%rbp), %rcx
leaq 0xb4d4c(%rip), %rax     # 0x127fb0
movq $0x0, (%rax,%rcx,8)
movq -0x50(%rbp), %rdi
movq -0x40(%rbp), %rsi
movq -0x48(%rbp), %rdx
addq $0x1, %rdx
callq 0x1fbf0
movq -0x58(%rbp), %rax
movslq (%rax), %rdx
subq -0x48(%rbp), %rdx
movq -0x58(%rbp), %rax
movslq 0x4(%rax), %rcx
addq %rdx, %rcx
movl %ecx, 0x4(%rax)
movq -0x48(%rbp), %rax
movl %eax, %ecx
movq -0x58(%rbp), %rax
movl %ecx, (%rax)
jmp 0x732c7
movq -0x40(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x3a2e0
movq %rax, %rdx
movq 0xb4ce1(%rip), %rax     # 0x127fa0
movslq -0x18(%rbp), %rcx
movq %rdx, (%rax,%rcx,8)
jmp 0x732c9
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x731ba
movl -0x18(%rbp), %eax
cmpl -0x1c(%rbp), %eax
je 0x73329
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
cmpl $0x0, -0x18(%rbp)
jl 0x7330d
movq 0xb4cab(%rip), %rax     # 0x127fa0
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3aaa0
movl -0x18(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x732e8
movq -0x10(%rbp), %rdi
leaq 0x743d5(%rip), %rsi     # 0xe76ed
callq 0x72f60
movl $0x1, -0x4(%rbp)
jmp 0x7385d
movq 0xb4c70(%rip), %rcx     # 0x127fa0
movq -0x30(%rbp), %rax
movq %rcx, 0x38(%rax)
movl -0x1c(%rbp), %ecx
movq -0x30(%rbp), %rax
movl %ecx, 0x30(%rax)
movq 0xb4c57(%rip), %rax     # 0x127fa0
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x28710
movq %rax, -0x28(%rbp)
cmpq $0x0, -0x28(%rbp)
je 0x73386
movq -0x28(%rbp), %rax
cmpl $0x0, 0x10(%rax)
jle 0x73376
movq -0x28(%rbp), %rax
movl 0x10(%rax), %eax
cmpl -0x1c(%rbp), %eax
jne 0x73386
movl -0x1c(%rbp), %eax
movq -0x28(%rbp), %rdx
xorl %ecx, %ecx
subl 0x10(%rdx), %ecx
cmpl %ecx, %eax
jge 0x733b4
cmpq $0x0, -0x28(%rbp)
je 0x7339f
movq -0x10(%rbp), %rdi
leaq 0x7438f(%rip), %rsi     # 0xe7727
callq 0x72f60
jmp 0x733af
movq -0x10(%rbp), %rdi
leaq 0x743b8(%rip), %rsi     # 0xe7762
callq 0x72f60
jmp 0x73704
movq -0x28(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x40, %eax
cmpl $0x0, %eax
je 0x733d8
movq -0x10(%rbp), %rdi
leaq 0x743c1(%rip), %rsi     # 0xe778f
callq 0x72f60
jmp 0x73704
movq -0x28(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x734d3
leaq 0xa0506(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x814(%rax)
je 0x73410
movq -0x10(%rbp), %rdi
leaq 0x743b8(%rip), %rsi     # 0xe77be
callq 0x72f60
jmp 0x73704
leaq 0xa04e1(%rip), %rax     # 0x1138f8
cmpq $0x0, 0x650(%rax)
je 0x7347d
leaq 0xa04d0(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x6ac(%rax)
je 0x7347d
leaq 0xa04c0(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x2f0(%rax)
jne 0x7347d
leaq 0xa04b0(%rip), %rax     # 0x1138f8
movq 0x7f0(%rax), %rax
movl 0x90(%rax), %eax
andl $0x2, %eax
cmpl $0x0, %eax
jne 0x7347d
movq -0x10(%rbp), %rdi
leaq 0xa0ce8(%rip), %rax     # 0x114150
movq 0xc0(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x72f60
jmp 0x73704
leaq 0xa0474(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x5bc(%rax)
je 0x734cd
leaq 0xa0464(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x580(%rax)
jle 0x734cd
leaq 0xa0454(%rip), %rax     # 0x1138f8
cmpl $-0x1, 0x5b8(%rax)
jne 0x734cd
movq -0x10(%rbp), %rdi
leaq 0xa0c98(%rip), %rax     # 0x114150
movq 0xb0(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x72f60
jmp 0x73704
jmp 0x734cf
jmp 0x734d1
jmp 0x734d3
leaq 0xa041e(%rip), %rax     # 0x1138f8
cmpq $0x0, 0x720(%rax)
je 0x7352f
leaq 0xa040d(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x810(%rax)
jne 0x7352f
movq -0x28(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x7352f
callq 0x293d0
cmpl $-0x1, %eax
jne 0x7352d
movq -0x10(%rbp), %rdi
leaq 0xa0c38(%rip), %rax     # 0x114150
movq 0xe8(%rax), %rax
movq 0x8(%rax), %rsi
callq 0x72f60
jmp 0x73704
jmp 0x7352f
movq -0x28(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x80, %eax
cmpl $0x0, %eax
je 0x73551
leaq 0xa03b1(%rip), %rax     # 0x1138f8
movl $0x1, 0x814(%rax)
movq -0x28(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x1, %eax
cmpl $0x0, %eax
je 0x73571
leaq 0xa0391(%rip), %rax     # 0x1138f8
movl $0x1, 0x810(%rax)
movq -0x28(%rbp), %rcx
movq -0x30(%rbp), %rax
movq %rcx, 0x40(%rax)
movq -0x30(%rbp), %rdi
movl $0x3, %esi
callq 0x288a0
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rax
cmpq $0x0, 0x28(%rax)
jne 0x735e2
movq -0x30(%rbp), %rax
cmpl $0x4000, 0x170(%rax)    # imm = 0x4000
jge 0x735e2
movq -0x30(%rbp), %rax
movq -0x30(%rbp), %rcx
movslq 0x170(%rcx), %rcx
movb $0x0, 0x174(%rax,%rcx)
movq -0x30(%rbp), %rax
addq $0x174, %rax            # imm = 0x174
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl $0x0, 0x170(%rax)
jmp 0x73682
movq -0x30(%rbp), %rdi
addq $0x174, %rdi            # imm = 0x174
movq -0x30(%rbp), %rax
movslq 0x170(%rax), %rsi
callq 0x2c000
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movl $0x0, 0x170(%rax)
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rax
cmpq $0x0, 0x28(%rax)
je 0x73680
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rax
movq (%rax), %rax
movq 0x10(%rax), %rax
movq %rax, -0x60(%rbp)
movq -0x38(%rbp), %rax
movq %rax, -0x80(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x78(%rbp)
movq -0x60(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x72b70
movq -0x80(%rbp), %rdi
movq -0x78(%rbp), %rsi
movq %rax, %rdx
callq 0x2c500
movq %rax, -0x38(%rbp)
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rdi
movq -0x30(%rbp), %rax
movq 0x60(%rax), %rax
movq (%rax), %rsi
callq 0x20170
jmp 0x7360f
jmp 0x73682
cmpl $0x0, -0x14(%rbp)
je 0x7369b
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x7369b
movl $0x0, -0x14(%rbp)
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x72bb0
movq -0x28(%rbp), %rax
movl 0x20(%rax), %eax
andl $0x100, %eax            # imm = 0x100
cmpl $0x0, %eax
je 0x736db
movq -0x38(%rbp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
jne 0x736db
movq -0x38(%rbp), %rax
movsbl 0x1(%rax), %eax
cmpl $0x2d, %eax
je 0x736db
movq -0x10(%rbp), %rdi
callq 0x73030
movq -0x38(%rbp), %rax
movq -0x30(%rbp), %rcx
addq $0x174, %rcx            # imm = 0x174
cmpq %rcx, %rax
je 0x736f8
movq -0x38(%rbp), %rdi
callq 0x2c160
movq -0x30(%rbp), %rax
movq $0x0, 0x68(%rax)
movl $0x0, -0x18(%rbp)
movl -0x18(%rbp), %eax
movq -0x30(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x737fb
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x18(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x68(%rbp)
cmpl $0x20, -0x18(%rbp)
jge 0x737e2
movq -0x68(%rbp), %rax
cmpl $0x1, 0x4(%rax)
jne 0x737e2
movq -0x68(%rbp), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x0, %eax
je 0x73769
movq -0x68(%rbp), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x8, %eax
jne 0x737e2
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x72b70
cmpq $0x40, %rax
ja 0x737e2
movq -0x68(%rbp), %rax
movq 0x8(%rax), %rax
addq $-0x8, %rax
movq %rax, -0x70(%rbp)
movslq -0x18(%rbp), %rcx
leaq 0xb4819(%rip), %rax     # 0x127fb0
cmpq $0x0, (%rax,%rcx,8)
je 0x737b2
movslq -0x18(%rbp), %rcx
leaq 0xb4807(%rip), %rax     # 0x127fb0
movq (%rax,%rcx,8), %rdi
callq 0x3aaa0
movq -0x68(%rbp), %rdx
movslq -0x18(%rbp), %rcx
leaq 0xb47ef(%rip), %rax     # 0x127fb0
movq %rdx, (%rax,%rcx,8)
movq -0x70(%rbp), %rax
movl 0x4(%rax), %edx
movq -0x70(%rbp), %rax
addl (%rax), %edx
movslq -0x18(%rbp), %rcx
leaq 0xb48d3(%rip), %rax     # 0x1280b0
movl %edx, (%rax,%rcx,4)
jmp 0x737eb
movq -0x68(%rbp), %rdi
callq 0x3aaa0
jmp 0x737ed
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x7370b
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rax
cmpq 0xb4796(%rip), %rax     # 0x127fa0
je 0x73824
movq -0x30(%rbp), %rax
movq 0x38(%rax), %rdi
callq 0x2e3a0
movq $0x0, 0xb477c(%rip) # 0x127fa0
cmpl $0x0, -0x14(%rbp)
je 0x73856
movq -0x10(%rbp), %rdi
leaq 0x6c160(%rip), %rsi     # 0xdf995
callq 0x8c590
movq -0x10(%rbp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x8c980
movq -0x10(%rbp), %rdi
callq 0x8d7f0
movl %eax, -0x4(%rbp)
jmp 0x7385d
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x80, %rsp
popq %rbp
retq
nopl (%rax)