LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: catAppendOnlyGenericCommand
sds catAppendOnlyGenericCommand(sds dst, int argc, robj **argv) {
    char buf[32];
    int len, j;
    robj *o;

    // 重建命令的个数，格式为 *<count>\r\n
    // 例如 *3\r\n
    buf[0] = '*';
    len = 1+ll2string(buf+1,sizeof(buf)-1,argc);
    buf[len++] = '\r';
    buf[len++] = '\n';
    dst = sdscatlen(dst,buf,len);

    // 重建命令和命令参数，格式为 $<length>\r\n<content>\r\n
    // 例如 $3\r\nSET\r\n$3\r\nKEY\r\n$5\r\nVALUE\r\n
    for (j = 0; j < argc; j++) {
        o = getDecodedObject(argv[j]);

        // 组合 $<length>\r\n
        buf[0] = '$';
        len = 1+ll2string(buf+1,sizeof(buf)-1,sdslen(o->ptr));
        buf[len++] = '\r';
        buf[len++] = '\n';
        dst = sdscatlen(dst,buf,len);

        // 组合 <content>\r\n
        dst = sdscatlen(dst,o->ptr,sdslen(o->ptr));
        dst = sdscatlen(dst,"\r\n",2);

        decrRefCount(o);
    }

    // 返回重建后的协议内容
    return dst;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x70, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x2a, -0x40(%rbp)
leaq -0x40(%rbp), %rdi
addq $0x1, %rdi
movslq -0xc(%rbp), %rdx
movl $0x1f, %esi
callq 0x39660
addl $0x1, %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x44(%rbp)
cltq
movb $0xd, -0x40(%rbp,%rax)
movl -0x44(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x44(%rbp)
cltq
movb $0xa, -0x40(%rbp,%rax)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movslq -0x44(%rbp), %rdx
callq 0x2c500
movq %rax, -0x8(%rbp)
movl $0x0, -0x48(%rbp)
movl -0x48(%rbp), %eax
cmpl -0xc(%rbp), %eax
jge 0x5f5b6
movq -0x18(%rbp), %rax
movslq -0x48(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3aef0
movq %rax, -0x50(%rbp)
movb $0x24, -0x40(%rbp)
leaq -0x40(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x68(%rbp)
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x5e720
movq -0x68(%rbp), %rdi
movq %rax, %rdx
movl $0x1f, %esi
callq 0x39660
addl $0x1, %eax
movl %eax, -0x44(%rbp)
movl -0x44(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x44(%rbp)
cltq
movb $0xd, -0x40(%rbp,%rax)
movl -0x44(%rbp), %eax
movl %eax, %ecx
addl $0x1, %ecx
movl %ecx, -0x44(%rbp)
cltq
movb $0xa, -0x40(%rbp,%rax)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rsi
movslq -0x44(%rbp), %rdx
callq 0x2c500
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x58(%rbp)
movq -0x50(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x5e720
movq -0x60(%rbp), %rdi
movq -0x58(%rbp), %rsi
movq %rax, %rdx
callq 0x2c500
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
leaq 0x8424d(%rip), %rsi     # 0xe37de
movl $0x2, %edx
callq 0x2c500
movq %rax, -0x8(%rbp)
movq -0x50(%rbp), %rdi
callq 0x3aaa0
movl -0x48(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x48(%rbp)
jmp 0x5f4c3
movq -0x8(%rbp), %rax
addq $0x70, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: catAppendOnlyExpireAtCommand
sds catAppendOnlyExpireAtCommand(sds buf, struct redisCommand *cmd, robj *key, robj *seconds) {
    long long when;
    robj *argv[3];

    /* Make sure we can use strtol 
     *
     * 取出过期值
     */
    seconds = getDecodedObject(seconds);
    when = strtoll(seconds->ptr,NULL,10);

    /* Convert argument into milliseconds for EXPIRE, SETEX, EXPIREAT 
     *
     * 如果过期值的格式为秒，那么将它转换为毫秒
     */
    if (cmd->proc == expireCommand || cmd->proc == setexCommand ||
        cmd->proc == expireatCommand)
    {
        when *= 1000;
    }

    /* Convert into absolute time for EXPIRE, PEXPIRE, SETEX, PSETEX 
     *
     * 如果过期值的格式为相对值，那么将它转换为绝对值
     */
    if (cmd->proc == expireCommand || cmd->proc == pexpireCommand ||
        cmd->proc == setexCommand || cmd->proc == psetexCommand)
    {
        when += mstime();
    }

    decrRefCount(seconds);

    // 构建 PEXPIREAT 命令
    argv[0] = createStringObject("PEXPIREAT",9);
    argv[1] = key;
    argv[2] = createStringObjectFromLongLong(when);

    // 追加到 AOF 缓存中
    buf = catAppendOnlyGenericCommand(buf, 3, argv);

    decrRefCount(argv[0]);
    decrRefCount(argv[2]);

    return buf;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movq -0x20(%rbp), %rdi
callq 0x3aef0
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rdi
xorl %eax, %eax
movl %eax, %esi
movl $0xa, %edx
callq 0x1fa80
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
leaq -0x212da(%rip), %rcx    # 0x3e330
cmpq %rcx, 0x8(%rax)
je 0x5f632
movq -0x10(%rbp), %rax
leaq -0x18a9b(%rip), %rcx    # 0x46b80
cmpq %rcx, 0x8(%rax)
je 0x5f632
movq -0x10(%rbp), %rax
leaq -0x212cc(%rip), %rcx    # 0x3e360
cmpq %rcx, 0x8(%rax)
jne 0x5f63e
imulq $0x3e8, -0x28(%rbp), %rax # imm = 0x3E8
movq %rax, -0x28(%rbp)
movq -0x10(%rbp), %rax
leaq -0x21319(%rip), %rcx    # 0x3e330
cmpq %rcx, 0x8(%rax)
je 0x5f682
movq -0x10(%rbp), %rax
leaq -0x212ca(%rip), %rcx    # 0x3e390
cmpq %rcx, 0x8(%rax)
je 0x5f682
movq -0x10(%rbp), %rax
leaq -0x18aeb(%rip), %rcx    # 0x46b80
cmpq %rcx, 0x8(%rax)
je 0x5f682
movq -0x10(%rbp), %rax
leaq -0x18a7c(%rip), %rcx    # 0x46c00
cmpq %rcx, 0x8(%rax)
jne 0x5f68f
callq 0x252e0
addq -0x28(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x20(%rbp), %rdi
callq 0x3aaa0
leaq 0x8535e(%rip), %rdi     # 0xe49fd
movl $0x9, %esi
callq 0x3a2e0
movq %rax, -0x40(%rbp)
movq -0x18(%rbp), %rax
movq %rax, -0x38(%rbp)
movq -0x28(%rbp), %rdi
callq 0x3a330
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rdi
leaq -0x40(%rbp), %rdx
movl $0x3, %esi
callq 0x5f450
movq %rax, -0x8(%rbp)
movq -0x40(%rbp), %rdi
callq 0x3aaa0
movq -0x30(%rbp), %rdi
callq 0x3aaa0
movq -0x8(%rbp), %rax
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: createFakeClient
struct redisClient *createFakeClient(void) {
    struct redisClient *c = zmalloc(sizeof(*c));

    selectDb(c,0);

    c->fd = -1;
    c->name = NULL;
    c->querybuf = sdsempty();
    c->querybuf_peak = 0;
    c->argc = 0;
    c->argv = NULL;
    c->bufpos = 0;
    c->flags = 0;
    c->btype = REDIS_BLOCKED_NONE;
    /* We set the fake client as a slave waiting for the synchronization
     * so that Redis will not try to send replies to this client. 
     *
     * 将客户端设置为正在等待同步的附属节点，这样客户端就不会发送回复了。
     */
    c->replstate = REDIS_REPL_WAIT_BGSAVE_START;
    c->reply = listCreate();
    c->reply_bytes = 0;
    c->obuf_soft_limit_reached_time = 0;
    c->watched_keys = listCreate();
    c->peerid = NULL;
    listSetFreeMethod(c->reply,decrRefCountVoid);
    listSetDupMethod(c->reply,dupClientReplyValue);
    initClientMultiState(c);

    return c;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movl $0x4178, %edi           # imm = 0x4178
callq 0x2e130
movq %rax, -0x8(%rbp)
movq -0x8(%rbp), %rdi
xorl %esi, %esi
callq 0x3c7d0
movq -0x8(%rbp), %rax
movl $0xffffffff, (%rax)     # imm = 0xFFFFFFFF
movq -0x8(%rbp), %rax
movq $0x0, 0x18(%rax)
callq 0x2c0c0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x28(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x30(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x38(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x170(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x90(%rax)
movq -0x8(%rbp), %rax
movl $0x0, 0x118(%rax)
movq -0x8(%rbp), %rax
movl $0x6, 0x98(%rax)
callq 0x1fdb0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x60(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x68(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x88(%rax)
callq 0x1fdb0
movq %rax, %rcx
movq -0x8(%rbp), %rax
movq %rcx, 0x150(%rax)
movq -0x8(%rbp), %rax
movq $0x0, 0x168(%rax)
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
leaq -0x253ce(%rip), %rcx    # 0x3a670
movq %rcx, 0x18(%rax)
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rax
leaq -0x2b151(%rip), %rcx    # 0x34900
movq %rcx, 0x10(%rax)
movq -0x8(%rbp), %rdi
callq 0x62760
movq -0x8(%rbp), %rax
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: freeFakeClient
void freeFakeClient(struct redisClient *c) {

    // 释放查询缓存
    sdsfree(c->querybuf);

    // 释放回复缓存
    listRelease(c->reply);

    // 释放监视的键
    listRelease(c->watched_keys);

    // 释放事务状态
    freeClientMultiState(c);

    zfree(c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
callq 0x2c160
movq -0x8(%rbp), %rax
movq 0x60(%rax), %rdi
callq 0x1fe30
movq -0x8(%rbp), %rax
movq 0x150(%rax), %rdi
callq 0x1fe30
movq -0x8(%rbp), %rdi
callq 0x62790
movq -0x8(%rbp), %rdi
callq 0x2e3a0
addq $0x10, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: aofUpdateCurrentSize
void aofUpdateCurrentSize(void) {
    struct redis_stat sb;

    // 读取文件状态
    if (redis_fstat(server.aof_fd,&sb) == -1) {
        redisLog(REDIS_WARNING,"Unable to obtain the AOF file length. stat: %s",
            strerror(errno));
    } else {
        // 设置到服务器
        server.aof_current_size = sb.st_size;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x90, %rsp
leaq 0xb3946(%rip), %rax     # 0x1138f8
movl 0x518(%rax), %edi
leaq -0x90(%rbp), %rsi
callq 0x1f690
cmpl $-0x1, %eax
jne 0x5ffed
callq 0x1f820
movl (%rax), %edi
callq 0x1f630
movq %rax, %rdx
movl $0x3, %edi
leaq 0x84eb1(%rip), %rsi     # 0xe4e95
movb $0x0, %al
callq 0x24fb0
jmp 0x5ffff
movq -0x60(%rbp), %rcx
leaq 0xb3900(%rip), %rax     # 0x1138f8
movq %rcx, 0x4f8(%rax)
addq $0x90, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: rioWriteBulkObject
int rioWriteBulkObject(rio *r, robj *obj) {
    /* Avoid using getDecodedObject to help copy-on-write (we are often
     * in a child process when this function is called). */
    if (obj->encoding == REDIS_ENCODING_INT) {
        return rioWriteBulkLongLong(r,(long)obj->ptr);
    } else if (sdsEncodedObject(obj)) {
        return rioWriteBulkString(r,obj->ptr,sdslen(obj->ptr));
    } else {
        redisPanic("Unknown string encoding");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x18(%rbp), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x1, %eax
jne 0x60047
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x76100
movl %eax, -0x4(%rbp)
jmp 0x600c1
movq -0x18(%rbp), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x0, %eax
je 0x60069
movq -0x18(%rbp), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x8, %eax
jne 0x6009f
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rdi
callq 0x5e720
movq -0x28(%rbp), %rdi
movq -0x20(%rbp), %rsi
movq %rax, %rdx
callq 0x76050
movl %eax, -0x4(%rbp)
jmp 0x600c1
leaq 0x814b6(%rip), %rdi     # 0xe155c
leaq 0x84628(%rip), %rsi     # 0xe46d5
movl $0x3fe, %edx            # imm = 0x3FE
callq 0x63d40
movl $0x1, %edi
callq 0x1f3b0
movl -0x4(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: rewriteHashObject
int rewriteHashObject(rio *r, robj *key, robj *o) {
    hashTypeIterator *hi;
    long long count = 0, items = hashTypeLength(o);

    hi = hashTypeInitIterator(o);
    while (hashTypeNext(hi) != REDIS_ERR) {
        if (count == 0) {
            int cmd_items = (items > REDIS_AOF_REWRITE_ITEMS_PER_CMD) ?
                REDIS_AOF_REWRITE_ITEMS_PER_CMD : items;

            if (rioWriteBulkCount(r,'*',2+cmd_items*2) == 0) return 0;
            if (rioWriteBulkString(r,"HMSET",5) == 0) return 0;
            if (rioWriteBulkObject(r,key) == 0) return 0;
        }

        if (rioWriteHashIteratorCursor(r, hi, REDIS_HASH_KEY) == 0) return 0;
        if (rioWriteHashIteratorCursor(r, hi, REDIS_HASH_VALUE) == 0) return 0;
        if (++count == REDIS_AOF_REWRITE_ITEMS_PER_CMD) count = 0;
        items--;
    }

    hashTypeReleaseIterator(hi);

    return 1;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x50, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq %rdx, -0x20(%rbp)
movq $0x0, -0x30(%rbp)
movq -0x20(%rbp), %rdi
callq 0x557a0
movq %rax, -0x38(%rbp)
movq -0x20(%rbp), %rdi
callq 0x559a0
movq %rax, -0x28(%rbp)
movq -0x28(%rbp), %rdi
callq 0x55a90
cmpl $-0x1, %eax
je 0x60c4b
cmpq $0x0, -0x30(%rbp)
jne 0x60be0
cmpq $0x40, -0x38(%rbp)
jle 0x60b65
movl $0x40, %eax
movq %rax, -0x48(%rbp)
jmp 0x60b6d
movq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rax
movl %eax, -0x3c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x3c(%rbp), %edx
shll %edx
addl $0x2, %edx
movl $0x2a, %esi
callq 0x75eb0
cmpq $0x0, %rax
jne 0x60b9c
movl $0x0, -0x4(%rbp)
jmp 0x60c5b
movq -0x10(%rbp), %rdi
leaq 0x82bb1(%rip), %rsi     # 0xe3758
movl $0x5, %edx
callq 0x76050
cmpq $0x0, %rax
jne 0x60bc3
movl $0x0, -0x4(%rbp)
jmp 0x60c5b
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x60010
cmpl $0x0, %eax
jne 0x60bde
movl $0x0, -0x4(%rbp)
jmp 0x60c5b
jmp 0x60be0
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl $0x1, %edx
callq 0x60c70
cmpl $0x0, %eax
jne 0x60c00
movl $0x0, -0x4(%rbp)
jmp 0x60c5b
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl $0x2, %edx
callq 0x60c70
cmpl $0x0, %eax
jne 0x60c20
movl $0x0, -0x4(%rbp)
jmp 0x60c5b
movq -0x30(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x30(%rbp)
cmpq $0x40, %rax
jne 0x60c3a
movq $0x0, -0x30(%rbp)
movq -0x38(%rbp), %rax
addq $-0x1, %rax
movq %rax, -0x38(%rbp)
jmp 0x60b36
movq -0x28(%rbp), %rdi
callq 0x55a50
movl $0x1, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x50, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: rioWriteHashIteratorCursor
static int rioWriteHashIteratorCursor(rio *r, hashTypeIterator *hi, int what) {

    if (hi->encoding == REDIS_ENCODING_ZIPLIST) {
        unsigned char *vstr = NULL;
        unsigned int vlen = UINT_MAX;
        long long vll = LLONG_MAX;

        hashTypeCurrentFromZiplist(hi, what, &vstr, &vlen, &vll);
        if (vstr) {
            return rioWriteBulkString(r, (char*)vstr, vlen);
        } else {
            return rioWriteBulkLongLong(r, vll);
        }

    } else if (hi->encoding == REDIS_ENCODING_HT) {
        robj *value;

        hashTypeCurrentFromHashTable(hi, what, &value);
        return rioWriteBulkObject(r, value);
    }

    redisPanic("Unknown hash encoding");
    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movl %edx, -0x1c(%rbp)
movq -0x18(%rbp), %rax
cmpl $0x5, 0x8(%rax)
jne 0x60cf2
movq $0x0, -0x28(%rbp)
movl $0xffffffff, -0x2c(%rbp) # imm = 0xFFFFFFFF
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq %rax, -0x38(%rbp)
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
leaq -0x28(%rbp), %rdx
leaq -0x2c(%rbp), %rcx
leaq -0x38(%rbp), %r8
callq 0x55c20
cmpq $0x0, -0x28(%rbp)
je 0x60ce0
movq -0x10(%rbp), %rdi
movq -0x28(%rbp), %rsi
movl -0x2c(%rbp), %eax
movl %eax, %edx
callq 0x76050
movl %eax, -0x4(%rbp)
jmp 0x60d42
movq -0x10(%rbp), %rdi
movq -0x38(%rbp), %rsi
callq 0x76100
movl %eax, -0x4(%rbp)
jmp 0x60d42
movq -0x18(%rbp), %rax
cmpl $0x2, 0x8(%rax)
jne 0x60d1e
movq -0x18(%rbp), %rdi
movl -0x1c(%rbp), %esi
leaq -0x40(%rbp), %rdx
callq 0x55d10
movq -0x10(%rbp), %rdi
movq -0x40(%rbp), %rsi
callq 0x60010
movl %eax, -0x4(%rbp)
jmp 0x60d42
jmp 0x60d20
leaq 0x81e54(%rip), %rdi     # 0xe2b7b
leaq 0x839a7(%rip), %rsi     # 0xe46d5
movl $0x4f7, %edx            # imm = 0x4F7
callq 0x63d40
movl $0x1, %edi
callq 0x1f3b0
movl -0x4(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/aof.c
// Function: bgrewriteaofCommand
void bgrewriteaofCommand(redisClient *c) {

    // 不能重复运行 BGREWRITEAOF
    if (server.aof_child_pid != -1) {
        addReplyError(c,"Background append only file rewriting already in progress");

    // 如果正在执行 BGSAVE ，那么预定 BGREWRITEAOF
    // 等 BGSAVE 完成之后， BGREWRITEAOF 就会开始执行
    } else if (server.rdb_child_pid != -1) {
        server.aof_rewrite_scheduled = 1;
        addReplyStatus(c,"Background append only file rewriting scheduled");

    // 执行 BGREWRITEAOF
    } else if (rewriteAppendOnlyFileBackground() == REDIS_OK) {
        addReplyStatus(c,"Background append only file rewriting started");

    } else {
        addReply(c,shared.err);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0xb24f5(%rip), %rax     # 0x1138f8
cmpl $-0x1, 0x504(%rax)
je 0x6141e
movq -0x8(%rbp), %rdi
leaq 0x839e6(%rip), %rsi     # 0xe4dfd
callq 0x35d40
jmp 0x61485
leaq 0xb24d3(%rip), %rax     # 0x1138f8
cmpl $-0x1, 0x570(%rax)
je 0x61451
leaq 0xb24c3(%rip), %rax     # 0x1138f8
movl $0x1, 0x500(%rax)
movq -0x8(%rbp), %rdi
leaq 0x839ed(%rip), %rsi     # 0xe4e37
callq 0x35f30
jmp 0x61483
callq 0x5f290
cmpl $0x0, %eax
jne 0x6146d
movq -0x8(%rbp), %rdi
leaq 0x83a01(%rip), %rsi     # 0xe4e67
callq 0x35f30
jmp 0x61481
movq -0x8(%rbp), %rdi
leaq 0xb2cd8(%rip), %rax     # 0x114150
movq 0x10(%rax), %rsi
callq 0x35a70
jmp 0x61483
jmp 0x61485
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/pubsub.c
// Function: pubsubSubscribeChannel
int pubsubSubscribeChannel(redisClient *c, robj *channel) {
    dictEntry *de;
    list *clients = NULL;
    int retval = 0;

    /* Add the channel to the client -> channels hash table */
    // 将 channels 填接到 c->pubsub_channels 的集合中（值为 NULL 的字典视为集合）
    if (dictAdd(c->pubsub_channels,channel,NULL) == DICT_OK) {
        retval = 1;
        incrRefCount(channel);

        // 关联示意图
        // {
        //  频道名        订阅频道的客户端
        //  'channel-a' : [c1, c2, c3],
        //  'channel-b' : [c5, c2, c1],
        //  'channel-c' : [c10, c2, c1]
        // }
        /* Add the client to the channel -> list of clients hash table */
        // 从 pubsub_channels 字典中取出保存着所有订阅了 channel 的客户端的链表
        // 如果 channel 不存在于字典，那么添加进去
        de = dictFind(server.pubsub_channels,channel);
        if (de == NULL) {
            clients = listCreate();
            dictAdd(server.pubsub_channels,channel,clients);
            incrRefCount(channel);
        } else {
            clients = dictGetVal(de);
        }

        // before:
        // 'channel' : [c1, c2]
        // after:
        // 'channel' : [c1, c2, c3]
        // 将客户端添加到链表的末尾
        listAddNodeTail(clients,c);
    }

    /* Notify the client */
    // 回复客户端。
    // 示例：
    // redis 127.0.0.1:6379> SUBSCRIBE xxx
    // Reading messages... (press Ctrl-C to quit)
    // 1) "subscribe"
    // 2) "xxx"
    // 3) (integer) 1
    addReply(c,shared.mbulkhdr[3]);
    // "subscribe\n" 字符串
    addReply(c,shared.subscribebulk);
    // 被订阅的客户端
    addReplyBulk(c,channel);
    // 客户端订阅的频道和模式总数
    addReplyLongLong(c,dictSize(c->pubsub_channels)+listLength(c->pubsub_patterns));

    return retval;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq $0x0, -0x20(%rbp)
movl $0x0, -0x24(%rbp)
movq -0x8(%rbp), %rax
movq 0x158(%rax), %rdi
movq -0x10(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x236d0
cmpl $0x0, %eax
jne 0x619f6
movl $0x1, -0x24(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3a3f0
leaq 0xb1f65(%rip), %rax     # 0x1138f8
movq 0x7a8(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x23aa0
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x619dd
callq 0x1fdb0
movq %rax, -0x20(%rbp)
leaq 0xb1f3a(%rip), %rax     # 0x1138f8
movq 0x7a8(%rax), %rdi
movq -0x10(%rbp), %rsi
movq -0x20(%rbp), %rdx
callq 0x236d0
movq -0x10(%rbp), %rdi
callq 0x3a3f0
jmp 0x619e9
movq -0x18(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x20(%rbp)
movq -0x20(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0x1ff90
movq -0x8(%rbp), %rdi
leaq 0xb274f(%rip), %rax     # 0x114150
movq 0x13a48(%rax), %rsi
callq 0x35a70
movq -0x8(%rbp), %rdi
leaq 0xb2738(%rip), %rax     # 0x114150
movq 0x108(%rax), %rsi
callq 0x35a70
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x36620
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x158(%rax), %rax
movq 0x28(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x158(%rax), %rax
addq 0x48(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x160(%rax), %rax
addq 0x28(%rax), %rsi
callq 0x36480
movl -0x24(%rbp), %eax
addq $0x30, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/pubsub.c
// Function: pubsubSubscribePattern
int pubsubSubscribePattern(redisClient *c, robj *pattern) {
    int retval = 0;

    // 在链表中查找模式，看客户端是否已经订阅了这个模式
    // 这里为什么不像 channel 那样，用字典来进行检测呢？
    // 虽然 pattern 的数量一般来说并不多
    if (listSearchKey(c->pubsub_patterns,pattern) == NULL) {
        
        // 如果没有的话，执行以下代码

        retval = 1;

        pubsubPattern *pat;

        // 将 pattern 添加到 c->pubsub_patterns 链表中
        listAddNodeTail(c->pubsub_patterns,pattern);

        incrRefCount(pattern);

        // 创建并设置新的 pubsubPattern 结构
        pat = zmalloc(sizeof(*pat));
        pat->pattern = getDecodedObject(pattern);
        pat->client = c;

        // 添加到末尾
        listAddNodeTail(server.pubsub_patterns,pat);
    }

    /* Notify the client */
    // 回复客户端。
    // 示例：
    // redis 127.0.0.1:6379> PSUBSCRIBE xxx*
    // Reading messages... (press Ctrl-C to quit)
    // 1) "psubscribe"
    // 2) "xxx*"
    // 3) (integer) 1
    addReply(c,shared.mbulkhdr[3]);
    // 回复 "psubscribe" 字符串
    addReply(c,shared.psubscribebulk);
    // 回复被订阅的模式
    addReplyBulk(c,pattern);
    // 回复客户端订阅的频道和模式的总数
    addReplyLongLong(c,dictSize(c->pubsub_channels)+listLength(c->pubsub_patterns));

    return retval;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x160(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x20480
cmpq $0x0, %rax
jne 0x61cb9
movl $0x1, -0x14(%rbp)
movq -0x8(%rbp), %rax
movq 0x160(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x1ff90
movq -0x10(%rbp), %rdi
callq 0x3a3f0
movl $0x10, %edi
callq 0x2e130
movq %rax, -0x20(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3aef0
movq %rax, %rcx
movq -0x20(%rbp), %rax
movq %rcx, 0x8(%rax)
movq -0x8(%rbp), %rcx
movq -0x20(%rbp), %rax
movq %rcx, (%rax)
leaq 0xb1c4f(%rip), %rax     # 0x1138f8
movq 0x7b0(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x1ff90
movq -0x8(%rbp), %rdi
leaq 0xb248c(%rip), %rax     # 0x114150
movq 0x13a48(%rax), %rsi
callq 0x35a70
movq -0x8(%rbp), %rdi
leaq 0xb2475(%rip), %rax     # 0x114150
movq 0x118(%rax), %rsi
callq 0x35a70
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x36620
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x158(%rax), %rax
movq 0x28(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x158(%rax), %rax
addq 0x48(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x160(%rax), %rax
addq 0x28(%rax), %rsi
callq 0x36480
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/pubsub.c
// Function: pubsubUnsubscribePattern
int pubsubUnsubscribePattern(redisClient *c, robj *pattern, int notify) {
    listNode *ln;
    pubsubPattern pat;
    int retval = 0;

    incrRefCount(pattern); /* Protect the object. May be the same we remove */

    // 先确认一下，客户端是否订阅了这个模式
    if ((ln = listSearchKey(c->pubsub_patterns,pattern)) != NULL) {

        retval = 1;

        // 将模式从客户端的订阅列表中删除
        listDelNode(c->pubsub_patterns,ln);

        // 设置 pubsubPattern 结构
        pat.client = c;
        pat.pattern = pattern;

        // 在服务器中查找
        ln = listSearchKey(server.pubsub_patterns,&pat);
        listDelNode(server.pubsub_patterns,ln);
    }

    /* Notify the client */
    // 回复客户端
    if (notify) {
        addReply(c,shared.mbulkhdr[3]);
        // "punsubscribe" 字符串
        addReply(c,shared.punsubscribebulk);
        // 被退订的模式
        addReplyBulk(c,pattern);
        // 退订频道之后客户端仍在订阅的频道和模式的总数
        addReplyLongLong(c,dictSize(c->pubsub_channels)+
                       listLength(c->pubsub_patterns));
    }

    decrRefCount(pattern);

    return retval;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl $0x0, -0x34(%rbp)
movq -0x10(%rbp), %rdi
callq 0x3a3f0
movq -0x8(%rbp), %rax
movq 0x160(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x20480
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
je 0x61dde
movl $0x1, -0x34(%rbp)
movq -0x8(%rbp), %rax
movq 0x160(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x20170
movq -0x8(%rbp), %rax
movq %rax, -0x30(%rbp)
movq -0x10(%rbp), %rax
movq %rax, -0x28(%rbp)
leaq 0xb1b45(%rip), %rax     # 0x1138f8
movq 0x7b0(%rax), %rdi
leaq -0x30(%rbp), %rsi
callq 0x20480
movq %rax, -0x20(%rbp)
leaq 0xb1b2a(%rip), %rax     # 0x1138f8
movq 0x7b0(%rax), %rdi
movq -0x20(%rbp), %rsi
callq 0x20170
cmpl $0x0, -0x14(%rbp)
je 0x61e55
movq -0x8(%rbp), %rdi
leaq 0xb2361(%rip), %rax     # 0x114150
movq 0x13a48(%rax), %rsi
callq 0x35a70
movq -0x8(%rbp), %rdi
leaq 0xb234a(%rip), %rax     # 0x114150
movq 0x120(%rax), %rsi
callq 0x35a70
movq -0x8(%rbp), %rdi
movq -0x10(%rbp), %rsi
callq 0x36620
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x158(%rax), %rax
movq 0x28(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x158(%rax), %rax
addq 0x48(%rax), %rsi
movq -0x8(%rbp), %rax
movq 0x160(%rax), %rax
addq 0x28(%rax), %rsi
callq 0x36480
movq -0x10(%rbp), %rdi
callq 0x3aaa0
movl -0x34(%rbp), %eax
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/pubsub.c
// Function: unsubscribeCommand
void unsubscribeCommand(redisClient *c) {
    if (c->argc == 1) {
        pubsubUnsubscribeAllChannels(c,1);
    } else {
        int j;

        for (j = 1; j < c->argc; j++)
            pubsubUnsubscribeChannel(c,c->argv[j],1);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x1, 0x30(%rax)
jne 0x622e6
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x61e70
jmp 0x62324
movl $0x1, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x62322
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movl $0x1, %edx
callq 0x61a70
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x622ed
jmp 0x62324
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/pubsub.c
// Function: punsubscribeCommand
void punsubscribeCommand(redisClient *c) {
    if (c->argc == 1) {
        pubsubUnsubscribeAllPatterns(c,1);
    } else {
        int j;

        for (j = 1; j < c->argc; j++)
            pubsubUnsubscribePattern(c,c->argv[j],1);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
cmpl $0x1, 0x30(%rax)
jne 0x623a6
movq -0x8(%rbp), %rdi
movl $0x1, %esi
callq 0x61f70
jmp 0x623e4
movl $0x1, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x623e2
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
movl $0x1, %edx
callq 0x61d40
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x623ad
jmp 0x623e4
addq $0x10, %rsp
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/pubsub.c
// Function: publishCommand
void publishCommand(redisClient *c) {

    int receivers = pubsubPublishMessage(c->argv[1],c->argv[2]);
    if (server.cluster_enabled)
        clusterPropagatePublish(c->argv[1],c->argv[2]);
    else
        forceCommandPropagation(c,REDIS_PROPAGATE_REPL);
    addReplyLongLong(c,receivers);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x62060
movl %eax, -0xc(%rbp)
leaq 0xb14d5(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x7bc(%rax)
je 0x6244b
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x10(%rax), %rsi
callq 0x6d360
jmp 0x62459
movq -0x8(%rbp), %rdi
movl $0x2, %esi
callq 0x28850
movq -0x8(%rbp), %rdi
movslq -0xc(%rbp), %rsi
callq 0x36480
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: freeClientMultiState
void freeClientMultiState(redisClient *c) {
    int j;

    // 遍历事务队列
    for (j = 0; j < c->mstate.count; j++) {
        int i;
        multiCmd *mc = c->mstate.commands+j;

        // 释放所有命令参数
        for (i = 0; i < mc->argc; i++)
            decrRefCount(mc->argv[i]);

        // 释放参数数组本身
        zfree(mc->argv);
    }

    // 释放事务队列
    zfree(c->mstate.commands);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x108(%rcx), %eax
jge 0x62815
movq -0x8(%rbp), %rax
movq 0x100(%rax), %rax
movslq -0xc(%rbp), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movl $0x0, -0x10(%rbp)
movl -0x10(%rbp), %eax
movq -0x18(%rbp), %rcx
cmpl 0x8(%rcx), %eax
jge 0x627fe
movq -0x18(%rbp), %rax
movq (%rax), %rax
movslq -0x10(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3aaa0
movl -0x10(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x10(%rbp)
jmp 0x627d3
movq -0x18(%rbp), %rax
movq (%rax), %rdi
callq 0x2e3a0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x627a3
movq -0x8(%rbp), %rax
movq 0x100(%rax), %rdi
callq 0x2e3a0
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: discardTransaction
void discardTransaction(redisClient *c) {

    // 重置事务状态
    freeClientMultiState(c);
    initClientMultiState(c);

    // 屏蔽事务状态
    c->flags &= ~(REDIS_MULTI|REDIS_DIRTY_CAS|REDIS_DIRTY_EXEC);;

    // 取消对所有键的监视
    unwatchAllKeys(c);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x62790
movq -0x8(%rbp), %rdi
callq 0x62760
movq -0x8(%rbp), %rax
movl 0x90(%rax), %ecx
andl $0xffffefd7, %ecx       # imm = 0xFFFFEFD7
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rdi
callq 0x62990
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: multiCommand
void multiCommand(redisClient *c) {

    // 不能在事务中嵌套事务
    if (c->flags & REDIS_MULTI) {
        addReplyError(c,"MULTI calls can not be nested");
        return;
    }

    // 打开事务 FLAG
    c->flags |= REDIS_MULTI;

    addReply(c,shared.ok);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x62b30
movq -0x8(%rbp), %rdi
leaq 0x8260b(%rip), %rsi     # 0xe5134
callq 0x35d40
jmp 0x62b57
movq -0x8(%rbp), %rax
movl 0x90(%rax), %ecx
orl $0x8, %ecx
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rdi
leaq 0xb1602(%rip), %rax     # 0x114150
movq 0x8(%rax), %rsi
callq 0x35a70
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: discardCommand
void discardCommand(redisClient *c) {

    // 不能在客户端未进行事务状态之前使用
    if (!(c->flags & REDIS_MULTI)) {
        addReplyError(c,"DISCARD without MULTI");
        return;
    }

    discardTransaction(c);

    addReply(c,shared.ok);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
jne 0x62b90
movq -0x8(%rbp), %rdi
leaq 0x825c9(%rip), %rsi     # 0xe5152
callq 0x35d40
jmp 0x62bad
movq -0x8(%rbp), %rdi
callq 0x62940
movq -0x8(%rbp), %rdi
leaq 0xb15ac(%rip), %rax     # 0x114150
movq 0x8(%rax), %rsi
callq 0x35a70
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: execCommandPropagateMulti
void execCommandPropagateMulti(redisClient *c) {
    robj *multistring = createStringObject("MULTI",5);

    propagate(server.multiCommand,c->db->id,&multistring,1,
              REDIS_PROPAGATE_AOF|REDIS_PROPAGATE_REPL);

    decrRefCount(multistring);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
leaq 0x825a2(%rip), %rdi     # 0xe5175
movl $0x5, %esi
callq 0x3a2e0
movq %rax, -0x10(%rbp)
leaq 0xb0d10(%rip), %rax     # 0x1138f8
movq 0x320(%rax), %rdi
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x30(%rax), %esi
leaq -0x10(%rbp), %rdx
movl $0x1, %ecx
movl $0x3, %r8d
callq 0x28790
movq -0x10(%rbp), %rdi
callq 0x3aaa0
addq $0x10, %rsp
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: touchWatchedKey
void touchWatchedKey(redisDb *db, robj *key) {
    list *clients;
    listIter li;
    listNode *ln;

    // 字典为空，没有任何键被监视
    if (dictSize(db->watched_keys) == 0) return;

    // 获取所有监视这个键的客户端
    clients = dictFetchValue(db->watched_keys, key);
    if (!clients) return;

    /* Mark all the clients watching this key as REDIS_DIRTY_CAS */
    /* Check if we are already watching for this key */
    // 遍历所有客户端，打开他们的 REDIS_DIRTY_CAS 标识
    listRewind(clients,&li);
    while((ln = listNext(&li))) {
        redisClient *c = listNodeValue(ln);

        c->flags |= REDIS_DIRTY_CAS;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rax
movq 0x28(%rax), %rax
movq -0x8(%rbp), %rcx
movq 0x20(%rcx), %rcx
addq 0x48(%rcx), %rax
cmpq $0x0, %rax
jne 0x63030
jmp 0x6308f
movq -0x8(%rbp), %rax
movq 0x20(%rax), %rdi
movq -0x10(%rbp), %rsi
callq 0x24050
movq %rax, -0x18(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x6304e
jmp 0x6308f
movq -0x18(%rbp), %rdi
leaq -0x28(%rbp), %rsi
callq 0x202b0
leaq -0x28(%rbp), %rdi
callq 0x20310
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x6308f
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movl 0x90(%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x90(%rax)
jmp 0x6305b
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: touchWatchedKeysOnFlush
void touchWatchedKeysOnFlush(int dbid) {
    listIter li1, li2;
    listNode *ln;

    // 这里的思路挺有趣的，不是遍历数据库的所有 key 来让客户端变为 DIRTY
    // 而是遍历所有客户端，然后遍历客户端监视的键，再让相应的客户端变为 DIRTY
    // 后者要比前者高效很多

    /* For every client, check all the waited keys */
    // 遍历所有客户端
    listRewind(server.clients,&li1);
    while((ln = listNext(&li1))) {

        redisClient *c = listNodeValue(ln);

        // 遍历客户端监视的键
        listRewind(c->watched_keys,&li2);
        while((ln = listNext(&li2))) {

            // 取出监视的键和键的数据库
            watchedKey *wk = listNodeValue(ln);

            /* For every watched key matching the specified DB, if the
             * key exists, mark the client as dirty, as the key will be
             * removed. */
            // 如果数据库号码相同，或者执行的命令为 FLUSHALL
            // 那么将客户端设置为 REDIS_DIRTY_CAS
            if (dbid == -1 || wk->db->id == dbid) {
                if (dictFind(wk->db->dict, wk->key->ptr) != NULL)
                    c->flags |= REDIS_DIRTY_CAS;
            }
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
movl %edi, -0x4(%rbp)
leaq 0xb0846(%rip), %rax     # 0x1138f8
movq 0x1b0(%rax), %rdi
leaq -0x18(%rbp), %rsi
callq 0x202b0
leaq -0x18(%rbp), %rdi
callq 0x20310
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x6316b
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x38(%rbp)
movq -0x38(%rbp), %rax
movq 0x150(%rax), %rdi
leaq -0x28(%rbp), %rsi
callq 0x202b0
leaq -0x28(%rbp), %rdi
callq 0x20310
movq %rax, -0x30(%rbp)
cmpq $0x0, %rax
je 0x63166
movq -0x30(%rbp), %rax
movq 0x10(%rax), %rax
movq %rax, -0x40(%rbp)
cmpl $-0x1, -0x4(%rbp)
je 0x6312e
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movl 0x30(%rax), %eax
cmpl -0x4(%rbp), %eax
jne 0x63164
movq -0x40(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq -0x40(%rbp), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
callq 0x23aa0
cmpq $0x0, %rax
je 0x63162
movq -0x38(%rbp), %rax
movl 0x90(%rax), %ecx
orl $0x20, %ecx
movl %ecx, 0x90(%rax)
jmp 0x63164
jmp 0x630f9
jmp 0x630c2
addq $0x40, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: watchCommand
void watchCommand(redisClient *c) {
    int j;

    // 不能在事务开始后执行
    if (c->flags & REDIS_MULTI) {
        addReplyError(c,"WATCH inside MULTI is not allowed");
        return;
    }

    // 监视输入的任意个键
    for (j = 1; j < c->argc; j++)
        watchForKey(c,c->argv[j]);

    addReply(c,shared.ok);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rax
movl 0x90(%rax), %eax
andl $0x8, %eax
cmpl $0x0, %eax
je 0x631b0
movq -0x8(%rbp), %rdi
leaq 0x81fea(%rip), %rsi     # 0xe5193
callq 0x35d40
jmp 0x631fb
movl $0x1, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x631e7
movq -0x8(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x62ee0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x631b7
movq -0x8(%rbp), %rdi
leaq 0xb0f5e(%rip), %rax     # 0x114150
movq 0x8(%rax), %rsi
callq 0x35a70
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/multi.c
// Function: unwatchCommand
void unwatchCommand(redisClient *c) {

    // 取消客户端对所有键的监视
    unwatchAllKeys(c);
    
    // 重置状态
    c->flags &= (~REDIS_DIRTY_CAS);

    addReply(c,shared.ok);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x10, %rsp
movq %rdi, -0x8(%rbp)
movq -0x8(%rbp), %rdi
callq 0x62990
movq -0x8(%rbp), %rax
movl 0x90(%rax), %ecx
andl $-0x21, %ecx
movl %ecx, 0x90(%rax)
movq -0x8(%rbp), %rdi
leaq 0xb0f0d(%rip), %rax     # 0x114150
movq 0x8(%rax), %rsi
callq 0x35a70
addq $0x10, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/debug.c
// Function: redisAssert
void _redisAssert(char *estr, char *file, int line) {
    bugReportStart();
    redisLog(REDIS_WARNING,"=== ASSERTION FAILED ===");
    redisLog(REDIS_WARNING,"==> %s:%d '%s' is not true",file,line,estr);
#ifdef HAVE_BACKTRACE
    server.assert_failed = estr;
    server.assert_file = file;
    server.assert_line = line;
    redisLog(REDIS_WARNING,"(forcing SIGSEGV to print the bug report.)");
#endif
    *((char*)-1) = 'x';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
callq 0x64910
movl $0x3, %edi
leaq 0x81737(%rip), %rsi     # 0xe53fb
movb $0x0, %al
callq 0x24fb0
movq -0x10(%rbp), %rdx
movl -0x14(%rbp), %ecx
movq -0x8(%rbp), %r8
movl $0x3, %edi
leaq 0x81732(%rip), %rsi     # 0xe5414
movb $0x0, %al
callq 0x24fb0
movq -0x8(%rbp), %rcx
leaq 0xafc04(%rip), %rax     # 0x1138f8
movq %rcx, 0x820(%rax)
movq -0x10(%rbp), %rcx
leaq 0xafbf2(%rip), %rax     # 0x1138f8
movq %rcx, 0x828(%rax)
movl -0x14(%rbp), %ecx
leaq 0xafbe1(%rip), %rax     # 0x1138f8
movl %ecx, 0x830(%rax)
movl $0x3, %edi
leaq 0x81706(%rip), %rsi     # 0xe542f
movb $0x0, %al
callq 0x24fb0
movq $-0x1, %rax
movb $0x78, (%rax)
addq $0x20, %rsp
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/debug.c
// Function: redisPanic
void _redisPanic(char *msg, char *file, int line) {
    bugReportStart();
    redisLog(REDIS_WARNING,"------------------------------------------------");
    redisLog(REDIS_WARNING,"!!! Software Failure. Press left mouse button to continue");
    redisLog(REDIS_WARNING,"Guru Meditation: %s #%s:%d",msg,file,line);
#ifdef HAVE_BACKTRACE
    redisLog(REDIS_WARNING,"(forcing SIGSEGV in order to print the stack trace)");
#endif
    redisLog(REDIS_WARNING,"------------------------------------------------");
    *((char*)-1) = 'x';
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
callq 0x64910
movl $0x3, %edi
leaq 0x81883(%rip), %rsi     # 0xe55e7
movb $0x0, %al
callq 0x24fb0
movl $0x3, %edi
leaq 0x818a1(%rip), %rsi     # 0xe5618
movb $0x0, %al
callq 0x24fb0
movq -0x8(%rbp), %rdx
movq -0x10(%rbp), %rcx
movl -0x14(%rbp), %r8d
movl $0x3, %edi
leaq 0x818bc(%rip), %rsi     # 0xe5652
movb $0x0, %al
callq 0x24fb0
movl $0x3, %edi
leaq 0x818c4(%rip), %rsi     # 0xe566d
movb $0x0, %al
callq 0x24fb0
movl $0x3, %edi
leaq 0x8182b(%rip), %rsi     # 0xe55e7
movb $0x0, %al
callq 0x24fb0
movq $-0x1, %rax
movb $0x78, (%rax)
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/debug.c
// Function: bugReportStart
void bugReportStart(void) {
    if (server.bug_report_start == 0) {
        redisLog(REDIS_WARNING,
            "\n\n=== REDIS BUG REPORT START: Cut & paste starting from here ===");
        server.bug_report_start = 1;
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
leaq 0xaefdd(%rip), %rax     # 0x1138f8
cmpl $0x0, 0x834(%rax)
jne 0x64948
movl $0x3, %edi
leaq 0x80d71(%rip), %rsi     # 0xe56a1
movb $0x0, %al
callq 0x24fb0
leaq 0xaefba(%rip), %rax     # 0x1138f8
movl $0x1, 0x834(%rax)
popq %rbp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/debug.c
// Function: redisAssertPrintClientInfo
void _redisAssertPrintClientInfo(redisClient *c) {
    int j;

    bugReportStart();
    redisLog(REDIS_WARNING,"=== ASSERTION FAILED CLIENT CONTEXT ===");
    redisLog(REDIS_WARNING,"client->flags = %d", c->flags);
    redisLog(REDIS_WARNING,"client->fd = %d", c->fd);
    redisLog(REDIS_WARNING,"client->argc = %d", c->argc);
    for (j=0; j < c->argc; j++) {
        char buf[128];
        char *arg;

        if (c->argv[j]->type == REDIS_STRING && sdsEncodedObject(c->argv[j])) {
            arg = (char*) c->argv[j]->ptr;
        } else {
            snprintf(buf,sizeof(buf),"Object type: %d, encoding: %d",
                c->argv[j]->type, c->argv[j]->encoding);
            arg = buf;
        }
        redisLog(REDIS_WARNING,"client->argv[%d] = \"%s\" (refcount: %d)",
            j, arg, c->argv[j]->refcount);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xa0, %rsp
movq %rdi, -0x8(%rbp)
callq 0x64910
movl $0x3, %edi
leaq 0x80aea(%rip), %rsi     # 0xe545a
movb $0x0, %al
callq 0x24fb0
movq -0x8(%rbp), %rax
movl 0x90(%rax), %edx
movl $0x3, %edi
leaq 0x80af5(%rip), %rsi     # 0xe5482
movb $0x0, %al
callq 0x24fb0
movq -0x8(%rbp), %rax
movl (%rax), %edx
movl $0x3, %edi
leaq 0x80aef(%rip), %rsi     # 0xe5495
movb $0x0, %al
callq 0x24fb0
movq -0x8(%rbp), %rax
movl 0x30(%rax), %edx
movl $0x3, %edi
leaq 0x80ae5(%rip), %rsi     # 0xe54a5
movb $0x0, %al
callq 0x24fb0
movl $0x0, -0xc(%rbp)
movl -0xc(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x64ae6
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
andl $0xf, %eax
cmpl $0x0, %eax
jne 0x64a4f
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x0, %eax
je 0x64a32
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x8, %eax
jne 0x64a4f
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq 0x8(%rax), %rax
movq %rax, -0x98(%rbp)
jmp 0x64aa7
leaq -0x90(%rbp), %rdi
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movl (%rax), %ecx
andl $0xf, %ecx
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rdx
movq (%rax,%rdx,8), %rax
movl (%rax), %r8d
shrl $0x4, %r8d
andl $0xf, %r8d
movl $0x80, %esi
leaq 0x80a25(%rip), %rdx     # 0xe54b7
movb $0x0, %al
callq 0x1f120
leaq -0x90(%rbp), %rax
movq %rax, -0x98(%rbp)
movl -0xc(%rbp), %edx
movq -0x98(%rbp), %rcx
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0xc(%rbp), %rsi
movq (%rax,%rsi,8), %rax
movl 0x4(%rax), %r8d
movl $0x3, %edi
leaq 0x80a04(%rip), %rsi     # 0xe54d5
movb $0x0, %al
callq 0x24fb0
movl -0xc(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x649ce
addq $0xa0, %rsp
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/debug.c
// Function: logStackContent
void logStackContent(void **sp) {
    int i;
    for (i = 15; i >= 0; i--) {
        unsigned long addr = (unsigned long) sp+i;
        unsigned long val = (unsigned long) sp[i];

        if (sizeof(long) == 4)
            redisLog(REDIS_WARNING, "(%08lx) -> %08lx", addr, val);
        else
            redisLog(REDIS_WARNING, "(%016lx) -> %016lx", addr, val);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movq %rdi, -0x8(%rbp)
movl $0xf, -0xc(%rbp)
cmpl $0x0, -0xc(%rbp)
jl 0x64dbe
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
addq %rcx, %rax
movq %rax, -0x18(%rbp)
movq -0x8(%rbp), %rax
movslq -0xc(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, -0x20(%rbp)
movq -0x18(%rbp), %rdx
movq -0x20(%rbp), %rcx
movl $0x3, %edi
leaq 0x80936(%rip), %rsi     # 0xe56e2
movb $0x0, %al
callq 0x24fb0
movl -0xc(%rbp), %eax
addl $-0x1, %eax
movl %eax, -0xc(%rbp)
jmp 0x64d73
addq $0x20, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/nilyang[P]redis-tdd-annotation/src/debug.c
// Function: logCurrentClient
void logCurrentClient(void) {
    if (server.current_client == NULL) return;

    redisClient *cc = server.current_client;
    sds client;
    int j;

    redisLog(REDIS_WARNING, "--- CURRENT CLIENT INFO");
    client = catClientInfoString(sdsempty(),cc);
    redisLog(REDIS_WARNING,"client: %s", client);
    sdsfree(client);
    for (j = 0; j < cc->argc; j++) {
        robj *decoded;

        decoded = getDecodedObject(cc->argv[j]);
        redisLog(REDIS_WARNING,"argv[%d]: '%s'", j, (char*)decoded->ptr);
        decrRefCount(decoded);
    }
    /* Check if the first argument, usually a key, is found inside the
     * selected DB, and if so print info about the associated object. */
    if (cc->argc >= 1) {
        robj *val, *key;
        dictEntry *de;

        key = getDecodedObject(cc->argv[1]);
        de = dictFind(cc->db->dict, key->ptr);
        if (de) {
            val = dictGetVal(de);
            redisLog(REDIS_WARNING,"key '%s' found in DB containing the following object:", (char*)key->ptr);
            redisLogObjectDebugInfo(val);
        }
        decrRefCount(key);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x40, %rsp
leaq 0xae859(%rip), %rax     # 0x1138f8
cmpq $0x0, 0x1d0(%rax)
jne 0x650ae
jmp 0x651e1
leaq 0xae843(%rip), %rax     # 0x1138f8
movq 0x1d0(%rax), %rax
movq %rax, -0x8(%rbp)
movl $0x3, %edi
leaq 0x8070c(%rip), %rsi     # 0xe57d8
movb $0x0, %al
callq 0x24fb0
callq 0x2c0c0
movq %rax, %rdi
movq -0x8(%rbp), %rsi
callq 0x37c60
movq %rax, -0x10(%rbp)
movq -0x10(%rbp), %rdx
movl $0x3, %edi
leaq 0x7bfeb(%rip), %rsi     # 0xe10e3
movb $0x0, %al
callq 0x24fb0
movq -0x10(%rbp), %rdi
callq 0x2c160
movl $0x0, -0x14(%rbp)
movl -0x14(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x30(%rcx), %eax
jge 0x65166
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x3aef0
movq %rax, -0x20(%rbp)
movl -0x14(%rbp), %edx
movq -0x20(%rbp), %rax
movq 0x8(%rax), %rcx
movl $0x3, %edi
leaq 0x806a5(%rip), %rsi     # 0xe57f0
movb $0x0, %al
callq 0x24fb0
movq -0x20(%rbp), %rdi
callq 0x3aaa0
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x6510f
movq -0x8(%rbp), %rax
cmpl $0x1, 0x30(%rax)
jl 0x651e1
movq -0x8(%rbp), %rax
movq 0x38(%rax), %rax
movq 0x8(%rax), %rdi
callq 0x3aef0
movq %rax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rdi
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rsi
callq 0x23aa0
movq %rax, -0x38(%rbp)
cmpq $0x0, -0x38(%rbp)
je 0x651d8
movq -0x38(%rbp), %rax
movq 0x8(%rax), %rax
movq %rax, -0x28(%rbp)
movq -0x30(%rbp), %rax
movq 0x8(%rax), %rdx
movl $0x3, %edi
leaq 0x80637(%rip), %rsi     # 0xe57ff
movb $0x0, %al
callq 0x24fb0
movq -0x28(%rbp), %rdi
callq 0x64af0
movq -0x30(%rbp), %rdi
callq 0x3aaa0
addq $0x40, %rsp
popq %rbp
retq
nopw (%rax,%rax)