LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/networking.c
// Function: securityWarningCommand
void securityWarningCommand(client *c) {
    static time_t logged_time;
    time_t now = time(NULL);

    if (labs(now-logged_time) > 60) {
        serverLog(LL_WARNING,"Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection aborted.");
        logged_time = now;
    }
    freeClientAsync(c);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorl %edi, %edi
callq 0x26ce0
movq %rax, %r14
subq 0xd86b8(%rip), %rax     # 0x11b0c0
movq %rax, %rcx
negq %rcx
cmovsq %rax, %rcx
cmpq $0x3d, %rcx
jb 0x42a32
leaq 0x80960(%rip), %rsi     # 0xc337f
movl $0x3, %edi
xorl %eax, %eax
callq 0x32ea6
movq %r14, 0xd868e(%rip)     # 0x11b0c0
movl 0x98(%rbx), %eax
testl $0x500, %eax            # imm = 0x500
je 0x42a47
addq $0x8, %rsp
popq %rbx
popq %r14
retq
orl $0x400, %eax            # imm = 0x400
movl %eax, 0x98(%rbx)
leaq 0xc3dff(%rip), %rax     # 0x106858
movq 0x1d0(%rax), %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2e40f
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/networking.c
// Function: rewriteClientCommandArgument
void rewriteClientCommandArgument(client *c, int i, robj *newval) {
    robj *oldval;

    if (i >= c->argc) {
        c->argv = zrealloc(c->argv,sizeof(robj*)*(i+1));
        c->argc = i+1;
        c->argv[i] = NULL;
    }
    oldval = c->argv[i];
    c->argv[i] = newval;
    incrRefCount(newval);
    if (oldval) decrRefCount(oldval);

    /* If this is the command name make sure to fix c->cmd. */
    if (i == 0) {
        c->cmd = lookupCommandOrOriginal(c->argv[0]->ptr);
        serverAssertWithInfo(c,NULL,c->cmd != NULL);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movslq %esi, %r12
cmpl %esi, 0x38(%rdi)
jg 0x42c6c
movq 0x40(%rbx), %rdi
leal 0x1(%r12), %r15d
leaq 0x8(,%r12,8), %rsi
callq 0x3b349
movq %rax, 0x40(%rbx)
movl %r15d, 0x38(%rbx)
movq $0x0, (%rax,%r12,8)
movq 0x40(%rbx), %rax
movq (%rax,%r12,8), %r15
movq %r14, (%rax,%r12,8)
movq %r14, %rdi
callq 0x43c0c
testq %r15, %r15
je 0x42c8d
movq %r15, %rdi
callq 0x440f3
testl %ebp, %ebp
jne 0x42caa
movq 0x40(%rbx), %rax
movq (%rax), %rax
movq 0x8(%rax), %rdi
callq 0x35dd1
movq %rax, 0x48(%rbx)
testq %rax, %rax
je 0x42cb3
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x807af(%rip), %rdx     # 0xc3469
leaq 0x8024d(%rip), %rcx     # 0xc2f0e
movq %rbx, %rdi
xorl %esi, %esi
movl $0x6c1, %r8d            # imm = 0x6C1
callq 0x66380
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/networking.c
// Function: checkClientOutputBufferLimits
int checkClientOutputBufferLimits(client *c) {
    int soft = 0, hard = 0, class;
    unsigned long used_mem = getClientOutputBufferMemoryUsage(c);

    class = getClientType(c);
    /* For the purpose of output buffer limiting, masters are handled
     * like normal clients. */
    if (class == CLIENT_TYPE_MASTER) class = CLIENT_TYPE_NORMAL;

    if (server.client_obuf_limits[class].hard_limit_bytes &&
        used_mem >= server.client_obuf_limits[class].hard_limit_bytes)
        hard = 1;
    if (server.client_obuf_limits[class].soft_limit_bytes &&
        used_mem >= server.client_obuf_limits[class].soft_limit_bytes)
        soft = 1;

    /* We need to check if the soft limit is reached continuously for the
     * specified amount of seconds. */
    if (soft) {
        if (c->obuf_soft_limit_reached_time == 0) {
            c->obuf_soft_limit_reached_time = server.unixtime;
            soft = 0; /* First time we see the soft limit reached */
        } else {
            time_t elapsed = server.unixtime - c->obuf_soft_limit_reached_time;

            if (elapsed <=
                server.client_obuf_limits[class].soft_limit_seconds) {
                soft = 0; /* The client still did not reached the max number of
                             seconds for the soft limit to be considered
                             reached. */
            }
        }
    } else {
        c->obuf_soft_limit_reached_time = 0;
    }
    return soft || hard;
}

// Assembly:
movq 0x68(%rdi), %rax
movq 0x28(%rax), %rax
leaq (%rax,%rax,4), %rax
shlq $0x3, %rax
addq 0x70(%rdi), %rax
movl 0x98(%rdi), %ecx
movl $0x3, %edx
testb $0x2, %cl
jne 0x42d2f
movl %ecx, %esi
andl $0x5, %esi
movl $0x1, %edx
cmpl $0x1, %esi
je 0x42d2f
shrl $0x11, %ecx
andl $0x2, %ecx
movl %ecx, %edx
xorl %ecx, %ecx
cmpl $0x3, %edx
cmovnel %edx, %ecx
leaq (%rcx,%rcx,2), %rdx
leaq 0xc3b16(%rip), %rsi     # 0x106858
movq 0x610(%rsi,%rdx,8), %rcx
movq 0x618(%rsi,%rdx,8), %r8
decq %r8
cmpq %rax, %r8
jae 0x42d84
movq 0x90(%rdi), %r9
movq 0x968(%rsi), %r8
testq %r9, %r9
je 0x42d91
leaq (%rsi,%rdx,8), %rdx
addq $0x610, %rdx            # imm = 0x610
subq %r9, %r8
cmpq 0x10(%rdx), %r8
setg %dl
jmp 0x42d9a
movq $0x0, 0x90(%rdi)
jmp 0x42d98
movq %r8, 0x90(%rdi)
xorl %edx, %edx
decq %rcx
cmpq %rax, %rcx
setb %al
orb %dl, %al
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/networking.c
// Function: flushSlavesOutputBuffers
void flushSlavesOutputBuffers(void) {
    listIter li;
    listNode *ln;

    listRewind(server.slaves,&li);
    while((ln = listNext(&li))) {
        client *slave = listNodeValue(ln);
        int events;

        /* Note that the following will not flush output buffers of slaves
         * in STATE_ONLINE but having put_online_on_ack set to true: in this
         * case the writable event is never installed, since the purpose
         * of put_online_on_ack is to postpone the moment it is installed.
         * This is what we want since slaves in this state should not receive
         * writes before the first ACK. */
        events = aeGetFileEvents(server.el,slave->fd);
        if (events & AE_WRITABLE &&
            slave->replstate == SLAVE_STATE_ONLINE &&
            clientHasPendingReplies(slave))
        {
            writeToClient(slave->fd,slave,0);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0xc3a9f(%rip), %r15     # 0x106858
movq 0x1e0(%r15), %rdi
movq %rsp, %rbx
movq %rbx, %rsi
callq 0x2e582
movq %rbx, %rdi
callq 0x2e59f
testq %rax, %rax
je 0x42e2a
movq %rsp, %rbx
movq 0x10(%rax), %r14
movq 0x40(%r15), %rdi
movl 0x8(%r14), %esi
callq 0x30078
testb $0x2, %al
je 0x42e1d
cmpl $0x9, 0xa0(%r14)
jne 0x42e1d
cmpl $0x0, 0x1c0(%r14)
jne 0x42e0f
movq 0x68(%r14), %rax
cmpq $0x0, 0x28(%rax)
je 0x42e1d
movl 0x8(%r14), %edi
movq %r14, %rsi
xorl %edx, %edx
callq 0x40f36
movq %rbx, %rdi
callq 0x2e59f
testq %rax, %rax
jne 0x42ddb
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createObject
robj *createObject(int type, void *ptr) {
    robj *o = zmalloc(sizeof(*o));
    o->type = type;
    o->encoding = OBJ_ENCODING_RAW;
    o->ptr = ptr;
    o->refcount = 1;

    /* Set the LRU to the current lruclock (minutes resolution). */
    o->lru = LRU_CLOCK();

#ifdef AOF_NO_COW
    o->aof_version = server.aof_no_cow.version;
    o->shared = 0;
#endif

    return o;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
movl $0x10, %edi
callq 0x3b29d
andl $0xf, %ebp
movb %bpl, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc2d7a(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl %ebp, %ecx
movl %ecx, (%rax)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createEmbeddedStringObject
robj *createEmbeddedStringObject(const char *ptr, size_t len) {
    robj *o = zmalloc(sizeof(robj)+sizeof(struct sdshdr8)+len+1);
    struct sdshdr8 *sh = (void*)(o+1);

    o->type = OBJ_STRING;
    o->encoding = OBJ_ENCODING_EMBSTR;
    o->ptr = sh+1;
    o->refcount = 1;
    o->lru = LRU_CLOCK();

#ifdef AOF_NO_COW
    o->aof_version = server.aof_no_cow.version;
    o->shared = 0;
#endif

    sh->len = len;
    sh->alloc = len;
    sh->flags = SDS_TYPE_8;
    if (ptr) {
        memcpy(sh->buf,ptr,len);
        sh->buf[len] = '\0';
    } else {
        memset(sh->buf,0,len+1);
    }
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x14(%rsi), %rdi
callq 0x3b29d
movq %rax, %r14
movb $-0x80, (%rax)
leaq 0x13(%rax), %r12
movq %r12, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc2d04(%rip), %rax     # 0x106858
movl 0x48(%rax), %eax
shll $0x8, %eax
orl $0x80, %eax
movl %eax, (%r14)
movb %bl, 0x10(%r14)
movb %bl, 0x11(%r14)
movb $0x1, 0x12(%r14)
testq %r15, %r15
je 0x43b89
movq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x26c60
movb $0x0, (%r12,%rbx)
jmp 0x43b99
incq %rbx
movq %r12, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x26110
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createStringObjectFromLongDouble
robj *createStringObjectFromLongDouble(long double value, int humanfriendly) {
    char buf[256];
    int len;

    if (isinf(value)) {
        /* Libc in odd systems (Hi Solaris!) will format infinite in a
         * different way, so better to handle it in an explicit way. */
        if (value > 0) {
            memcpy(buf,"inf",3);
            len = 3;
        } else {
            memcpy(buf,"-inf",4);
            len = 4;
        }
    } else if (humanfriendly) {
        /* We use 17 digits precision since with 128 bit floats that precision
         * after rounding is able to represent most small decimal numbers in a
         * way that is "non surprising" for the user (that is, most small
         * decimal numbers will be represented in a way that when converted
         * back into a string are exactly the same as what the user typed.) */
        len = snprintf(buf,sizeof(buf),"%.17Lf", value);
        /* Now remove trailing zeroes after the '.' */
        if (strchr(buf,'.') != NULL) {
            char *p = buf+len-1;
            while(*p == '0') {
                p--;
                len--;
            }
            if (*p == '.') len--;
        }
    } else {
        len = snprintf(buf,sizeof(buf),"%.17Lg", value);
    }
    return createStringObject(buf,len);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
fldt 0x140(%rsp)
fld %st(0)
fstpt 0x10(%rsp)
movl 0x18(%rsp), %eax
notl %eax
movabsq $-0x8000000000000000, %rcx # imm = 0x8000000000000000
xorq 0x10(%rsp), %rcx
andl $0x7fff, %eax           # imm = 0x7FFF
orq %rcx, %rax
jne 0x43c63
fldz
fxch %st(1)
fucompi %st(1), %st
fstp %st(0)
jbe 0x43cab
movb $0x66, 0x22(%rsp)
movw $0x6e69, 0x20(%rsp)     # imm = 0x6E69
movl $0x3, %ebx
jmp 0x43ce0
testl %edi, %edi
je 0x43cc3
fstpt (%rsp)
leaq 0x7ffa3(%rip), %rdx     # 0xc3c14
leaq 0x20(%rsp), %r14
movl $0x100, %esi            # imm = 0x100
movq %r14, %rdi
xorl %eax, %eax
callq 0x26120
movl %eax, %ebx
movq %r14, %rdi
movl $0x2e, %esi
callq 0x26800
testq %rax, %rax
je 0x43ce0
movslq %ebx, %rbx
movzbl 0x1f(%rsp,%rbx), %eax
cmpl $0x30, %eax
jne 0x43cba
decq %rbx
jmp 0x43c9c
movl $0x666e692d, 0x20(%rsp) # imm = 0x666E692D
movl $0x4, %ebx
jmp 0x43ce0
cmpl $0x2e, %eax
jne 0x43ce0
decl %ebx
jmp 0x43ce0
fstpt (%rsp)
leaq 0x7ff4e(%rip), %rdx     # 0xc3c1b
leaq 0x20(%rsp), %rdi
movl $0x100, %esi            # imm = 0x100
xorl %eax, %eax
callq 0x26120
movl %eax, %ebx
movslq %ebx, %rsi
leaq 0x20(%rsp), %rdi
callq 0x43ba8
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createQuicklistObject
robj *createQuicklistObject(void) {
    quicklist *l = quicklistCreate();
    robj *o = createObject(OBJ_LIST,l);
    o->encoding = OBJ_ENCODING_QUICKLIST;
    return o;
}

// Assembly:
pushq %rbx
callq 0x2e718
movq %rax, %rbx
movl $0x10, %edi
callq 0x3b29d
movb $0x1, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc2a0b(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl $0x91, %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createZiplistObject
robj *createZiplistObject(void) {
    unsigned char *zl = ziplistNew();
    robj *o = createObject(OBJ_LIST,zl);
    o->encoding = OBJ_ENCODING_ZIPLIST;
    return o;
}

// Assembly:
pushq %rbx
callq 0x3e2e3
movq %rax, %rbx
movl $0x10, %edi
callq 0x3b29d
movb $0x1, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc29d3(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl $0x51, %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createSetObject
robj *createSetObject(void) {
    dict *d = dictCreate(&setDictType,NULL);
    robj *o = createObject(OBJ_SET,d);
    o->encoding = OBJ_ENCODING_HT;
    return o;
}

// Assembly:
pushq %rbx
leaq 0xc1e76(%rip), %rdi     # 0x105d10
xorl %esi, %esi
callq 0x31774
movq %rax, %rbx
movl $0x10, %edi
callq 0x3b29d
movb $0x2, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc2995(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl $0x22, %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createIntsetObject
robj *createIntsetObject(void) {
    intset *is = intsetNew();
    robj *o = createObject(OBJ_SET,is);
    o->encoding = OBJ_ENCODING_INTSET;
    return o;
}

// Assembly:
pushq %rbx
callq 0x68620
movq %rax, %rbx
movl $0x10, %edi
callq 0x3b29d
movb $0x2, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc2960(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl $0x62, %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createHashObject
robj *createHashObject(void) {
    unsigned char *zl = ziplistNew();
    robj *o = createObject(OBJ_HASH, zl);
    o->encoding = OBJ_ENCODING_ZIPLIST;
    return o;
}

// Assembly:
pushq %rbx
callq 0x3e2e3
movq %rax, %rbx
movl $0x10, %edi
callq 0x3b29d
movb $0x4, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc292b(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl $0x54, %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createZsetObject
robj *createZsetObject(void) {
    zset *zs = zmalloc(sizeof(*zs));
    robj *o;

    zs->dict = dictCreate(&zsetDictType,NULL);
    zs->zsl = zslCreate();
    o = createObject(OBJ_ZSET,zs);
    o->encoding = OBJ_ENCODING_SKIPLIST;
    return o;
}

// Assembly:
pushq %rbx
movl $0x10, %edi
callq 0x3b29d
movq %rax, %rbx
leaq 0xc1df1(%rip), %rdi     # 0x105d40
xorl %esi, %esi
callq 0x31774
movq %rax, (%rbx)
callq 0x53546
movq %rax, 0x8(%rbx)
movl $0x10, %edi
callq 0x3b29d
movb $0x3, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc28d7(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl $0x73, %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: createZsetZiplistObject
robj *createZsetZiplistObject(void) {
    unsigned char *zl = ziplistNew();
    robj *o = createObject(OBJ_ZSET,zl);
    o->encoding = OBJ_ENCODING_ZIPLIST;
    return o;
}

// Assembly:
pushq %rbx
callq 0x3e2e3
movq %rax, %rbx
movl $0x10, %edi
callq 0x3b29d
movb $0x3, (%rax)
movq %rbx, 0x8(%rax)
movl $0x1, 0x4(%rax)
leaq 0xc28a2(%rip), %rcx     # 0x106858
movl 0x48(%rcx), %ecx
shll $0x8, %ecx
orl $0x53, %ecx
movl %ecx, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: freeListObject
void freeListObject(robj *o) {
    if (o->encoding == OBJ_ENCODING_QUICKLIST) {
        quicklistRelease(o->ptr);
    } else {
        serverPanic("Unknown list encoding type");
    }
}

// Assembly:
movl $0xf0, %eax
andl (%rdi), %eax
cmpl $0x90, %eax
jne 0x43fe9
movq 0x8(%rdi), %rdi
jmp 0x2e840
pushq %rax
leaq 0x7fc4c(%rip), %rdi     # 0xc3c3d
leaq 0x7fc2a(%rip), %rsi     # 0xc3c22
movl $0x102, %edx            # imm = 0x102
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: freeSetObject
void freeSetObject(robj *o) {
    switch (o->encoding) {
    case OBJ_ENCODING_HT:
        dictRelease((dict*) o->ptr);
        break;
    case OBJ_ENCODING_INTSET:
        zfree(o->ptr);
        break;
    default:
        serverPanic("Unknown set encoding type");
    }
}

// Assembly:
movl (%rdi), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x6, %eax
je 0x44027
cmpl $0x2, %eax
jne 0x44030
movq 0x8(%rdi), %rdi
jmp 0x31ff3
movq 0x8(%rdi), %rdi
jmp 0x3b3df
pushq %rax
leaq 0x7fc22(%rip), %rdi     # 0xc3c5a
leaq 0x7fbe3(%rip), %rsi     # 0xc3c22
movl $0x10f, %edx            # imm = 0x10F
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: freeZsetObject
void freeZsetObject(robj *o) {
    zset *zs;
    switch (o->encoding) {
    case OBJ_ENCODING_SKIPLIST:
        zs = o->ptr;
        dictRelease(zs->dict);
        zslFree(zs->zsl);
        zfree(zs);
        break;
    case OBJ_ENCODING_ZIPLIST:
        zfree(o->ptr);
        break;
    default:
        serverPanic("Unknown sorted set encoding");
    }
}

// Assembly:
pushq %rbx
movl (%rdi), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x5, %eax
je 0x44080
cmpl $0x7, %eax
jne 0x4408a
movq 0x8(%rdi), %rbx
movq (%rbx), %rdi
callq 0x31ff3
movq 0x8(%rbx), %rdi
callq 0x535ba
movq %rbx, %rdi
jmp 0x44084
movq 0x8(%rdi), %rdi
popq %rbx
jmp 0x3b3df
leaq 0x7fbe5(%rip), %rdi     # 0xc3c76
leaq 0x7fb8a(%rip), %rsi     # 0xc3c22
movl $0x120, %edx            # imm = 0x120
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: freeHashObject
void freeHashObject(robj *o) {
    switch (o->encoding) {
    case OBJ_ENCODING_HT:
        dictRelease((dict*) o->ptr);
        break;
    case OBJ_ENCODING_ZIPLIST:
        zfree(o->ptr);
        break;
    default:
        serverPanic("Unknown hash encoding type");
        break;
    }
}

// Assembly:
movl (%rdi), %eax
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x5, %eax
je 0x440c7
cmpl $0x2, %eax
jne 0x440d0
movq 0x8(%rdi), %rdi
jmp 0x31ff3
movq 0x8(%rdi), %rdi
jmp 0x3b3df
pushq %rax
leaq 0x7fbbc(%rip), %rdi     # 0xc3c94
leaq 0x7fb43(%rip), %rsi     # 0xc3c22
movl $0x12d, %edx            # imm = 0x12D
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: decrRefCount
void decrRefCount(robj *o) {
    if (o->refcount <= 0) serverPanic("decrRefCount against refcount <= 0");
    if (o->refcount == 1) {
        switch(o->type) {
        case OBJ_STRING: freeStringObject(o); break;
        case OBJ_LIST: freeListObject(o); break;
        case OBJ_SET: freeSetObject(o); break;
        case OBJ_ZSET: freeZsetObject(o); break;
        case OBJ_HASH: freeHashObject(o); break;
        default: serverPanic("Unknown object type"); break;
        }
        zfree(o);
    } else {
        o->refcount--;
    }
}

// Assembly:
pushq %rbx
movl 0x4(%rdi), %eax
testl %eax, %eax
jle 0x44164
movq %rdi, %rbx
cmpl $0x1, %eax
jne 0x4412e
movl (%rbx), %eax
movl %eax, %ecx
andl $0xf, %ecx
cmpl $0x4, %ecx
ja 0x44186
leaq 0x7fa4e(%rip), %rdx     # 0xc3b64
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
testb $-0x10, %al
jne 0x4415b
movq 0x8(%rbx), %rdi
callq 0x392b6
jmp 0x4415b
decl %eax
movl %eax, 0x4(%rbx)
popq %rbx
retq
movq %rbx, %rdi
callq 0x440ac
jmp 0x4415b
movq %rbx, %rdi
callq 0x4400c
jmp 0x4415b
movq %rbx, %rdi
callq 0x44053
jmp 0x4415b
movq %rbx, %rdi
callq 0x43fd2
movq %rbx, %rdi
popq %rbx
jmp 0x3b3df
leaq 0x7fb46(%rip), %rdi     # 0xc3cb1
leaq 0x7fab0(%rip), %rsi     # 0xc3c22
movl $0x137, %edx            # imm = 0x137
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
leaq 0x7fb49(%rip), %rdi     # 0xc3cd6
leaq 0x7fa8e(%rip), %rsi     # 0xc3c22
movl $0x13f, %edx            # imm = 0x13F
jmp 0x44177
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/object.c
// Function: getLongLongFromObject
int getLongLongFromObject(robj *o, long long *target) {
    long long value;

    if (o == NULL) {
        value = 0;
    } else {
        serverAssertWithInfo(NULL,o,o->type == OBJ_STRING);
        if (sdsEncodedObject(o)) {
            if (string2ll(o->ptr,sdslen(o->ptr),&value) == 0) return C_ERR;
        } else if (o->encoding == OBJ_ENCODING_INT) {
            value = (long)o->ptr;
        } else {
            serverPanic("Unknown string encoding");
        }
    }
    if (target) *target = value;
    return C_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
testq %rdi, %rdi
je 0x44aac
movq %rdi, %rsi
movl (%rdi), %eax
testb $0xf, %al
jne 0x44b05
shrl $0x4, %eax
andl $0xf, %eax
cmpl $0x8, %eax
je 0x44a85
cmpl $0x1, %eax
je 0x44ab7
testl %eax, %eax
jne 0x44b22
movq 0x8(%rsi), %rdi
movzbl -0x1(%rdi), %esi
movl %esi, %eax
andl $0x7, %eax
cmpl $0x4, %eax
ja 0x44ad9
leaq 0x7f162(%rip), %rcx     # 0xc3c00
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x3, %esi
jmp 0x44adb
movq $0x0, 0x8(%rsp)
jmp 0x44ae9
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rsp)
jmp 0x44ae9
movq -0x11(%rdi), %rsi
jmp 0x44adb
movzwl -0x5(%rdi), %esi
jmp 0x44adb
movl -0x9(%rdi), %esi
jmp 0x44adb
movzbl -0x3(%rdi), %esi
jmp 0x44adb
xorl %esi, %esi
leaq 0x8(%rsp), %rdx
callq 0x434c7
testl %eax, %eax
je 0x44afa
xorl %eax, %eax
testq %rbx, %rbx
je 0x44aff
movq 0x8(%rsp), %rcx
movq %rcx, (%rbx)
jmp 0x44aff
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
retq
leaq 0x7e3ec(%rip), %rdx     # 0xc2ef8
leaq 0x7f10f(%rip), %rcx     # 0xc3c22
xorl %edi, %edi
movl $0x278, %r8d            # imm = 0x278
callq 0x66380
jmp 0x44b3a
leaq 0x7f20a(%rip), %rdi     # 0xc3d33
leaq 0x7f0f2(%rip), %rsi     # 0xc3c22
movl $0x27e, %edx            # imm = 0x27E
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: lookupKey
robj *lookupKey(redisDb *db, robj *key, int flags) {
    dictEntry *de = dictFind(db->dict,key->ptr);
    if (de) {
        robj *val = dictGetVal(de);

        /* Update the access time for the ageing algorithm.
         * Don't do it if we have a saving child, as this will trigger
         * a copy on write madness. */
        if (server.rdb_child_pid == -1 &&
            server.aof_child_pid == -1 &&
            !(flags & LOOKUP_NOTOUCH))
        {
            val->lru = LRU_CLOCK();
        }
        return val;
    } else {
        return NULL;
    }
}

// Assembly:
pushq %rbx
movl %edx, %ebx
movq (%rdi), %rdi
movq 0x8(%rsi), %rsi
callq 0x31cca
testq %rax, %rax
je 0x44e31
movq 0x8(%rax), %rax
testb $0x1, %bl
jne 0x44e33
leaq 0xc1a48(%rip), %rcx     # 0x106858
cmpl $-0x1, 0x720(%rcx)
jne 0x44e33
cmpl $-0x1, 0x68c(%rcx)
jne 0x44e33
movl 0x48(%rcx), %ecx
movzbl (%rax), %edx
shll $0x8, %ecx
orl %edx, %ecx
movl %ecx, (%rax)
jmp 0x44e33
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: lookupKeyReadWithFlags
robj *lookupKeyReadWithFlags(redisDb *db, robj *key, int flags) {
    robj *val;

    if (expireIfNeeded(db,key) == 1) {
        /* Key expired. If we are in the context of a master, expireIfNeeded()
         * returns 0 only when the key does not exist at all, so it's save
         * to return NULL ASAP. */
        if (server.masterhost == NULL) return NULL;

        /* However if we are in the context of a slave, expireIfNeeded() will
         * not really try to expire the key, it only returns information
         * about the "logical" status of the key: key expiring is up to the
         * master in order to have a consistent view of master's data set.
         *
         * However, if the command caller is not the master, and as additional
         * safety measure, the command invoked is a read-only command, we can
         * safely return NULL here, and provide a more consistent behavior
         * to clients accessign expired values in a read-only fashion, that
         * will say the key as non exisitng.
         *
         * Notably this covers GETs when slaves are used to scale reads. */
        if (server.current_client &&
            server.current_client != server.master &&
            server.current_client->cmd &&
            server.current_client->cmd->flags & CMD_READONLY)
        {
            return NULL;
        }
    }
    val = lookupKey(db,key,flags);
    if (val == NULL)
        server.stat_keyspace_misses++;
    else
        server.stat_keyspace_hits++;
    return val;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
callq 0x44eae
testl %eax, %eax
je 0x44e80
leaq 0xc1a06(%rip), %rcx     # 0x106858
cmpq $0x0, 0x818(%rcx)
je 0x44ea6
movq 0x1f0(%rcx), %rax
testq %rax, %rax
je 0x44e80
cmpq 0x828(%rcx), %rax
je 0x44e80
movq 0x48(%rax), %rax
testq %rax, %rax
je 0x44e80
testb $0x2, 0x20(%rax)
jne 0x44ea6
movq %r15, %rdi
movq %r14, %rsi
movl %ebx, %edx
callq 0x44dec
xorl %ecx, %ecx
testq %rax, %rax
sete %cl
leaq 0xc19bc(%rip), %rdx     # 0x106858
incq 0x3a0(%rdx,%rcx,8)
jmp 0x44ea8
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: expireIfNeeded
int expireIfNeeded(redisDb *db, robj *key) {
    mstime_t when = getExpire(db,key);
    mstime_t now;

    if (when < 0) return 0; /* No expire for this key */

    /* Don't expire anything while loading. It will be done later. */
    if (server.loading) return 0;

    /* If we are in the context of a Lua script, we claim that time is
     * blocked to when the Lua script started. This way a key can expire
     * only the first time it is accessed and not in the middle of the
     * script execution, making propagation to slaves / AOF consistent.
     * See issue #1525 on Github for more information. */
    now = server.lua_caller ? server.lua_time_start : mstime();

    /* If we are running in the context of a slave, return ASAP:
     * the slave key expiration is controlled by the master that will
     * send us synthesized DEL operations for expired keys.
     *
     * Still we try to return the right information to the caller,
     * that is, 0 if we think the key should be still valid, 1 if
     * we think the key is expired at this time. */
    if (server.masterhost != NULL) return now > when;

    /* Return when this key has not expired */
    if (now <= when) return 0;

    /* Delete the key */
    server.stat_expiredkeys++;
    propagateExpire(db,key);
    notifyKeyspaceEvent(NOTIFY_EXPIRED,
        "expired",key,db->id);
    return dbDelete(db,key);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
callq 0x46484
xorl %ebp, %ebp
testq %rax, %rax
js 0x44f54
leaq 0xc1985(%rip), %r12     # 0x106858
cmpl $0x0, 0x31c(%r12)
jne 0x44f54
movq %rax, %r15
cmpq $0x0, 0x9c8(%r12)
je 0x44ef6
movq 0x9e0(%r12), %rax
jmp 0x44efb
callq 0x330c8
cmpq $0x0, 0x818(%r12)
je 0x44f11
xorl %ebp, %ebp
cmpq %r15, %rax
setg %bpl
jmp 0x44f54
cmpq %r15, %rax
jle 0x44f54
incq 0x390(%r12)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x4672b
movl 0x30(%r14), %ecx
leaq 0x7aa85(%rip), %rsi     # 0xbf9b9
movl $0x100, %edi            # imm = 0x100
movq %rbx, %rdx
callq 0x800c9
movq %r14, %rdi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x452f3
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: dbAdd
void dbAdd(redisDb *db, robj *key, robj *val) {
    sds copy = sdsdup(key->ptr);
    int retval = dictAdd(db->dict, copy, val);

    serverAssertWithInfo(NULL,key,retval == DICT_OK);
    if (val->type == OBJ_LIST) signalListAsReady(db, key);
    if (server.cluster_enabled) slotToKeyAdd(key);
 }

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movq 0x8(%rsi), %rdi
callq 0x39266
movq (%r14), %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x31a95
testl %eax, %eax
jne 0x45069
movl (%r15), %eax
andl $0xf, %eax
cmpl $0x1, %eax
jne 0x45046
movq %r14, %rdi
movq %rbx, %rsi
callq 0x51091
leaq 0xc180b(%rip), %rax     # 0x106858
cmpl $0x0, 0x98c(%rax)
je 0x45063
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x45091
popq %rbx
popq %r14
popq %r15
retq
leaq 0x7ee5c(%rip), %rdx     # 0xc3ecc
leaq 0x80918(%rip), %rcx     # 0xc598f
xorl %edi, %edi
movq %rbx, %rsi
movl $0xa1, %r8d
callq 0x66380
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: removeExpire
int removeExpire(redisDb *db, robj *key) {
    /* An expire may only be removed if there is a corresponding entry in the
     * main dict. Otherwise, the key will never be freed. */
    serverAssertWithInfo(NULL,key,dictFind(db->dict,key->ptr) != NULL);
    return dictDelete(db->expires,key->ptr) == DICT_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0x8(%rsi), %rsi
callq 0x31cca
testq %rax, %rax
je 0x451f8
movq 0x8(%r14), %rdi
movq 0x8(%rbx), %rsi
callq 0x31dba
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x7ee4d(%rip), %rdx     # 0xc404c
leaq 0x80789(%rip), %rcx     # 0xc598f
xorl %edi, %edi
movq %rbx, %rsi
movl $0x34b, %r8d            # imm = 0x34B
callq 0x66380
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: dbUnshareStringValue
robj *dbUnshareStringValue(redisDb *db, robj *key, robj *o) {
    serverAssert(o->type == OBJ_STRING);
    if (o->refcount != 1 || o->encoding != OBJ_ENCODING_RAW) {
        robj *decoded = getDecodedObject(o);
        o = createRawStringObject(decoded->ptr, sdslen(decoded->ptr));
        decrRefCount(decoded);
        dbOverwrite(db,key,o);
    }
    return o;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl (%rdx), %eax
testb $0xf, %al
jne 0x45457
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
testb $-0x10, %al
jne 0x453df
cmpl $0x1, 0x4(%r12)
je 0x45448
movq %r12, %rdi
callq 0x444b2
movq %rax, %r15
movq 0x8(%rax), %rdi
movzbl -0x1(%rdi), %esi
movl %esi, %eax
andl $0x7, %eax
cmpl $0x4, %eax
ja 0x45428
leaq 0x7ea15(%rip), %rcx     # 0xc3e18
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x3, %esi
jmp 0x4542a
movq -0x11(%rdi), %rsi
jmp 0x4542a
movzwl -0x5(%rdi), %esi
jmp 0x4542a
movl -0x9(%rdi), %esi
jmp 0x4542a
movzbl -0x3(%rdi), %esi
jmp 0x4542a
xorl %esi, %esi
callq 0x43aef
movq %rax, %r12
movq %r15, %rdi
callq 0x440f3
movq %r14, %rdi
movq %rbx, %rsi
movq %r12, %rdx
callq 0x45107
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x7da9a(%rip), %rdi     # 0xc2ef8
leaq 0x8052a(%rip), %rsi     # 0xc598f
movl $0x10a, %edx            # imm = 0x10A
callq 0x654e1
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: selectDb
int selectDb(client *c, int id) {
    if (id < 0 || id >= server.dbnum)
        return C_ERR;
    c->db = &server.db[id];
    return C_OK;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %esi, %esi
js 0x45573
leaq 0xc12fd(%rip), %rcx     # 0x106858
cmpl %esi, 0x600(%rcx)
jle 0x45573
movl %esi, %eax
shlq $0x6, %rax
addq 0x28(%rcx), %rax
movq %rax, 0x10(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: flushallCommand
void flushallCommand(client *c) {
    signalFlushedDb(-1);
    server.dirty += emptyDb(NULL);
    addReply(c,shared.ok);
    if (server.rdb_child_pid != -1) {
        kill(server.rdb_child_pid,SIGUSR1);
        rdbRemoveTempFile(server.rdb_child_pid);
    }
    if (server.saveparamslen > 0) {
        /* Normally rdbSave() will reset dirty, but we don't want this here
         * as otherwise FLUSHALL will not be replicated nor put into the AOF. */
        int saved_dirty = server.dirty;
        rdbSave(server.rdb_filename);
        server.dirty = saved_dirty;
    }
    server.dirty++;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x64c1e
xorl %edi, %edi
callq 0x45479
leaq 0xc122d(%rip), %r14     # 0x106858
addq %rax, 0x710(%r14)
leaq 0xc1c77(%rip), %rax     # 0x1072b0
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x3fc19
movl 0x720(%r14), %edi
cmpl $-0x1, %edi
je 0x45667
movl $0xa, %esi
callq 0x26670
movl 0x720(%r14), %edi
callq 0x4cf82
cmpl $0x0, 0x730(%r14)
jle 0x4568b
movslq 0x710(%r14), %rbx
movq 0x738(%r14), %rdi
callq 0x4cb97
movq %rbx, 0x710(%r14)
incq 0x710(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: delCommand
void delCommand(client *c) {
    int deleted = 0, j;

    for (j = 1; j < c->argc; j++) {
        expireIfNeeded(c->db,c->argv[j]);
        if (dbDelete(c->db,c->argv[j])) {
            signalModifiedKey(c->db,c->argv[j]);
            notifyKeyspaceEvent(NOTIFY_GENERIC,
                "del",c->argv[j],c->db->id);
            server.dirty++;
            deleted++;
        }
    }
    addReplyLongLong(c,deleted);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
cmpl $0x2, 0x38(%rdi)
jl 0x45733
movl $0x1, %r12d
leaq 0x7bdf6(%rip), %r15     # 0xc14b6
leaq 0xc1191(%rip), %r13     # 0x106858
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r12,8), %rsi
callq 0x44eae
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r12,8), %rsi
callq 0x452f3
testl %eax, %eax
je 0x45724
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r12,8), %rsi
callq 0x64bc5
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq (%rcx,%r12,8), %rdx
movl 0x30(%rax), %ecx
movl $0x4, %edi
movq %r15, %rsi
callq 0x800c9
incq 0x710(%r13)
incl %r14d
incq %r12
movslq 0x38(%rbx), %rax
cmpq %rax, %r12
jl 0x456c7
movslq %r14d, %r14
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x40606
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: existsCommand
void existsCommand(client *c) {
    long long count = 0;
    int j;

    for (j = 1; j < c->argc; j++) {
        expireIfNeeded(c->db,c->argv[j]);
        if (dbExists(c->db,c->argv[j])) count++;
    }
    addReplyLongLong(c,count);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpl $0x2, 0x38(%rdi)
jl 0x4579d
movl $0x1, %r15d
xorl %r14d, %r14d
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rsi
callq 0x44eae
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq (%rcx,%r15,8), %rcx
movq (%rax), %rdi
movq 0x8(%rcx), %rsi
callq 0x31cca
cmpq $0x1, %rax
sbbq $-0x1, %r14
incq %r15
movslq 0x38(%rbx), %rax
cmpq %rax, %r15
jl 0x4575e
jmp 0x457a0
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40606
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: selectCommand
void selectCommand(client *c) {
    long id;

    if (getLongFromObjectOrReply(c, c->argv[1], &id,
        "invalid DB index") != C_OK)
        return;

    if (server.cluster_enabled && id != 0) {
        addReplyError(c,"SELECT is not allowed in cluster mode");
        return;
    }
    if (selectDb(c,id) == C_ERR) {
        addReplyError(c,"invalid DB index");
    } else {
        addReply(c,shared.ok);
    }
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0x7e717(%rip), %rcx     # 0xc3ede
leaq 0x8(%rsp), %rdx
callq 0x44ba1
testl %eax, %eax
jne 0x45846
leaq 0xc107c(%rip), %rax     # 0x106858
cmpl $0x0, 0x98c(%rax)
setne %dl
movq 0x8(%rsp), %rcx
testq %rcx, %rcx
setne %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x45804
leaq 0x7e6ed(%rip), %rsi     # 0xc3eef
jmp 0x4583e
testl %ecx, %ecx
js 0x45837
cmpl %ecx, 0x600(%rax)
jle 0x45837
andl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
shlq $0x6, %rcx
addq 0x28(%rax), %rcx
movq %rcx, 0x10(%rbx)
leaq 0xc1a87(%rip), %rax     # 0x1072b0
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x3fc19
jmp 0x45846
leaq 0x7e6a0(%rip), %rsi     # 0xc3ede
movq %rbx, %rdi
callq 0x3ffcb
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: scanCallback
void scanCallback(void *privdata, const dictEntry *de) {
    void **pd = (void**) privdata;
    list *keys = pd[0];
    robj *o = pd[1];
    robj *key, *val = NULL;

    if (o == NULL) {
        sds sdskey = dictGetKey(de);
        key = createStringObject(sdskey, sdslen(sdskey));
    } else if (o->type == OBJ_SET) {
        key = dictGetKey(de);
        incrRefCount(key);
    } else if (o->type == OBJ_HASH) {
        key = dictGetKey(de);
        incrRefCount(key);
        val = dictGetVal(de);
        incrRefCount(val);
    } else if (o->type == OBJ_ZSET) {
        key = dictGetKey(de);
        incrRefCount(key);
        val = createStringObjectFromLongDouble(*(double*)dictGetVal(de),0);
    } else {
        serverPanic("Type not handled in SCAN callback.");
    }

    listAddNodeTail(keys, key);
    if (val) listAddNodeTail(keys, val);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq (%rdi), %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x45aaa
movl (%rax), %eax
andl $0xf, %eax
cmpl $0x4, %eax
je 0x45af0
cmpl $0x3, %eax
je 0x45ad0
cmpl $0x2, %eax
jne 0x45b5b
movq (%r15), %r14
movq %r14, %rdi
callq 0x43c0c
jmp 0x45b2a
movq (%r15), %rdi
movzbl -0x1(%rdi), %esi
movl %esi, %eax
andl $0x7, %eax
cmpl $0x4, %eax
ja 0x45b20
leaq 0x7e3a6(%rip), %rcx     # 0xc3e68
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
shrl $0x3, %esi
jmp 0x45b22
movq (%r15), %r14
movq %r14, %rdi
callq 0x43c0c
movq 0x8(%r15), %rax
fldl (%rax)
fstpt (%rsp)
xorl %edi, %edi
callq 0x43c10
movq %rax, %r15
jmp 0x45b2d
movq (%r15), %r14
movq %r14, %rdi
callq 0x43c0c
movq 0x8(%r15), %r15
movq %r15, %rdi
callq 0x43c0c
jmp 0x45b2d
movq -0x11(%rdi), %rsi
jmp 0x45b22
movzwl -0x5(%rdi), %esi
jmp 0x45b22
movl -0x9(%rdi), %esi
jmp 0x45b22
movzbl -0x3(%rdi), %esi
jmp 0x45b22
xorl %esi, %esi
callq 0x43ba8
movq %rax, %r14
xorl %r15d, %r15d
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2e40f
testq %r15, %r15
je 0x45b51
movq %rbx, %rdi
movq %r15, %rsi
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
jmp 0x2e40f
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x7e3b3(%rip), %rdi     # 0xc3f15
leaq 0x7fe26(%rip), %rsi     # 0xc598f
movl $0x1c6, %edx            # imm = 0x1C6
callq 0x6558d
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: typeCommand
void typeCommand(client *c) {
    robj *o;
    char *type;

    o = lookupKeyReadWithFlags(c->db,c->argv[1],LOOKUP_NOTOUCH);
    if (o == NULL) {
        type = "none";
    } else {
        switch(o->type) {
        case OBJ_STRING: type = "string"; break;
        case OBJ_LIST: type = "list"; break;
        case OBJ_SET: type = "set"; break;
        case OBJ_ZSET: type = "zset"; break;
        case OBJ_HASH: type = "hash"; break;
        default: type = "unknown"; break;
        }
    }
    addReplyStatus(c,type);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x44e35
testq %rax, %rax
je 0x461f6
movl (%rax), %eax
andl $0xf, %eax
cmpl $0x4, %eax
ja 0x461ff
leaq 0x7dccb(%rip), %rcx     # 0xc3eb8
movslq (%rcx,%rax,4), %rsi
addq %rcx, %rsi
jmp 0x46206
leaq 0x7dddd(%rip), %rsi     # 0xc3fda
jmp 0x46206
leaq 0x7db8d(%rip), %rsi     # 0xc3d93
movq %rbx, %rdi
popq %rbx
jmp 0x40192
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: shutdownCommand
void shutdownCommand(client *c) {
    int flags = 0;

    if (c->argc > 2) {
        addReply(c,shared.syntaxerr);
        return;
    } else if (c->argc == 2) {
        if (!strcasecmp(c->argv[1]->ptr,"nosave")) {
            flags |= SHUTDOWN_NOSAVE;
        } else if (!strcasecmp(c->argv[1]->ptr,"save")) {
            flags |= SHUTDOWN_SAVE;
        } else {
            addReply(c,shared.syntaxerr);
            return;
        }
    }
    /* When SHUTDOWN is called while the server is loading a dataset in
     * memory we need to make sure no attempt is performed to save
     * the dataset on shutdown (otherwise it could overwrite the current DB
     * with half-read data).
     *
     * Also when in Sentinel mode clear the SAVE flag and force NOSAVE. */
    if (server.loading || server.sentinel_mode)
        flags = (flags & ~SHUTDOWN_SAVE) | SHUTDOWN_NOSAVE;
    if (prepareForShutdown(flags) == C_OK) exit(0);
    addReplyError(c,"Errors trying to SHUTDOWN. Check logs.");
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x38(%rdi), %ecx
cmpl $0x3, %ecx
jl 0x4623b
leaq 0xc108b(%rip), %rax     # 0x1072b0
movq 0x80(%rax), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3fc19
xorl %eax, %eax
cmpl $0x2, %ecx
jne 0x46280
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rax
movq 0x8(%rax), %r14
leaq 0x7dd8f(%rip), %rsi     # 0xc3fe4
movq %r14, %rdi
callq 0x26300
testl %eax, %eax
je 0x4627b
leaq 0x7f8d5(%rip), %rsi     # 0xc5b3d
movq %r14, %rdi
callq 0x26300
testl %eax, %eax
jne 0x4621e
movl $0x1, %eax
jmp 0x46280
movl $0x2, %eax
leaq 0xc05d1(%rip), %rcx     # 0x106858
movl 0x9c(%rcx), %edx
orl 0x31c(%rcx), %edx
movl $0x2, %edi
cmovel %eax, %edi
xorl %eax, %eax
callq 0x36d47
testl %eax, %eax
je 0x462bc
leaq 0x7dd3e(%rip), %rsi     # 0xc3feb
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3ffcb
xorl %edi, %edi
callq 0x262d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: getExpire
long long getExpire(redisDb *db, robj *key) {
    dictEntry *de;

    /* No expire? return ASAP */
    if (dictSize(db->expires) == 0 ||
       (de = dictFind(db->expires,key->ptr)) == NULL) return -1;

    /* The entry was found in the expire dict, this means it should also
     * be present in the main dict (safety check). */
    serverAssertWithInfo(NULL,key,dictFind(db->dict,key->ptr) != NULL);
    return dictGetSignedIntegerVal(de);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r15
movq 0x8(%rdi), %rdi
movq 0x28(%rdi), %rax
movq $-0x1, %r14
addq 0x48(%rdi), %rax
je 0x464ce
movq %rsi, %rbx
movq 0x8(%rsi), %rsi
callq 0x31cca
testq %rax, %rax
je 0x464ce
movq %rax, %r12
movq (%r15), %rdi
movq 0x8(%rbx), %rsi
callq 0x31cca
testq %rax, %rax
je 0x464dd
movq 0x8(%r12), %r14
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x7db68(%rip), %rdx     # 0xc404c
leaq 0x7f4a4(%rip), %rcx     # 0xc598f
xorl %edi, %edi
movq %rbx, %rsi
movl $0x364, %r8d            # imm = 0x364
callq 0x66380
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: setExpire
void setExpire(redisDb *db, robj *key, long long when) {
    dictEntry *kde, *de;

    /* Reuse the sds from the main dict in the expire dict */
    kde = dictFind(db->dict,key->ptr);
    serverAssertWithInfo(NULL,key,kde != NULL);
    de = dictReplaceRaw(db->expires,dictGetKey(kde));
    dictSetSignedIntegerVal(de,when);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rdi
movq 0x8(%rsi), %rsi
callq 0x31cca
testq %rax, %rax
je 0x4653a
movq 0x8(%r15), %rdi
movq (%rax), %rsi
callq 0x31d8c
movq %rbx, 0x8(%rax)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x7db2f(%rip), %rdx     # 0xc4070
leaq 0x7f447(%rip), %rcx     # 0xc598f
xorl %edi, %edi
movq %r14, %rsi
movl $0x354, %r8d            # imm = 0x354
callq 0x66380
movl $0x1, %edi
callq 0x263d0
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: propagateExpire
void propagateExpire(redisDb *db, robj *key) {
    robj *argv[2];

    argv[0] = shared.del;
    argv[1] = key;
    incrRefCount(argv[0]);
    incrRefCount(argv[1]);

    if (server.aof_state != AOF_OFF)
        feedAppendOnlyFile(server.delCommand,db->id,argv,2);
    replicationFeedSlaves(server.slaves,db->id,argv,2);

    decrRefCount(argv[0]);
    decrRefCount(argv[1]);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0xc0b74(%rip), %rax     # 0x1072b0
movq 0x128(%rax), %rdi
movq %rdi, (%rsp)
movq %rsi, 0x8(%rsp)
callq 0x43c0c
movq 0x8(%rsp), %rdi
callq 0x43c0c
leaq 0xc00f6(%rip), %r14     # 0x106858
cmpl $0x0, 0x658(%r14)
je 0x46783
movq 0x340(%r14), %rdi
movl 0x30(%rbx), %esi
movq %rsp, %rdx
movl $0x2, %ecx
callq 0x61947
movq 0x1e0(%r14), %rdi
movl 0x30(%rbx), %esi
movq %rsp, %rbx
movq %rbx, %rdx
movl $0x2, %ecx
callq 0x47393
movq (%rbx), %rdi
callq 0x440f3
movq 0x8(%rbx), %rdi
callq 0x440f3
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: ttlGenericCommand
void ttlGenericCommand(client *c, int output_ms) {
    long long expire, ttl = -1;

    /* If the key does not exist at all, return -2 */
    if (lookupKeyReadWithFlags(c->db,c->argv[1],LOOKUP_NOTOUCH) == NULL) {
        addReplyLongLong(c,-2);
        return;
    }
    /* The key exists. Return -1 if it has no expire, or the actual
     * TTL value otherwise. */
    expire = getExpire(c->db,c->argv[1]);
    if (expire != -1) {
        ttl = expire-mstime();
        if (ttl < 0) ttl = 0;
    }
    if (ttl == -1) {
        addReplyLongLong(c,-1);
    } else {
        addReplyLongLong(c,output_ms ? ttl : ((ttl+500)/1000));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebp
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
movl $0x1, %edx
callq 0x44e35
testq %rax, %rax
je 0x46a2a
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x46484
movq %rax, %r15
movq $-0x1, %r14
movq $-0x1, %rax
cmpq $-0x1, %r15
je 0x46a1b
callq 0x330c8
subq %rax, %r15
xorl %eax, %eax
testq %r15, %r15
cmovgq %r15, %rax
cmpq $-0x1, %rax
je 0x46a51
testl %ebp, %ebp
je 0x46a33
movq %rax, %r14
jmp 0x46a51
movq $-0x2, %r14
jmp 0x46a51
addq $0x1f4, %rax            # imm = 0x1F4
shrq $0x3, %rax
movabsq $0x20c49ba5e353f7cf, %rcx # imm = 0x20C49BA5E353F7CF
mulq %rcx
movq %rdx, %r14
shrq $0x4, %r14
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x40606
// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/src/db.c
// Function: touchCommand
void touchCommand(client *c) {
    int touched = 0;
    for (int j = 1; j < c->argc; j++)
        if (lookupKeyRead(c->db,c->argv[j]) != NULL) touched++;
    addReplyLongLong(c,touched);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
xorl %r14d, %r14d
cmpl $0x2, 0x38(%rdi)
jl 0x46b25
movl $0x1, %r15d
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rsi
xorl %edx, %edx
callq 0x44e35
cmpq $0x1, %rax
sbbl $-0x1, %r14d
incq %r15
movslq 0x38(%rbx), %rax
cmpq %rax, %r15
jl 0x46afb
movl %r14d, %r14d
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x40606