LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_string.c
// Function: getrangeCommand
void getrangeCommand(client *c) {
    robj *o;
    long long start, end;
    char *str, llbuf[32];
    size_t strlen;

    if (getLongLongFromObjectOrReply(c,c->argv[2],&start,NULL) != C_OK)
        return;
    if (getLongLongFromObjectOrReply(c,c->argv[3],&end,NULL) != C_OK)
        return;
    if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.emptybulk)) == NULL ||
        checkType(c,o,OBJ_STRING)) return;

    if (o->encoding == OBJ_ENCODING_INT) {
        str = llbuf;
        strlen = ll2string(llbuf,sizeof(llbuf),(long)o->ptr);
    } else {
        str = o->ptr;
        strlen = sdslen(str);
    }

    /* Convert negative indexes */
    if (start < 0 && end < 0 && start > end) {
        addReply(c,shared.emptybulk);
        return;
    }
    if (start < 0) start = strlen+start;
    if (end < 0) end = strlen+end;
    if (start < 0) start = 0;
    if (end < 0) end = 0;
    if ((unsigned long long)end >= strlen) end = strlen-1;

    /* Precondition: end >= 0 && end < strlen, so the only condition where
     * nothing can be returned is: start > end. */
    if (start > end || strlen == 0) {
        addReply(c,shared.emptybulk);
    } else {
        addReplyBulkCBuffer(c,(char*)str+start,end-start+1);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x10(%rax), %rsi
leaq 0x8(%rsp), %rdx
xorl %ecx, %ecx
callq 0x3ab03
testl %eax, %eax
jne 0x4398d
movq 0x40(%rbx), %rax
movq 0x18(%rax), %rsi
movq %rsp, %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x3ab03
testl %eax, %eax
je 0x43999
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
leaq 0xb6968(%rip), %r12     # 0xfa310
movq 0x18(%r12), %rdx
movq %rbx, %rdi
callq 0x3aee5
testq %rax, %rax
je 0x4398d
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3a311
testl %eax, %eax
jne 0x4398d
movl $0xf0, %eax
andl (%r14), %eax
movq 0x8(%r14), %r14
cmpl $0x10, %eax
jne 0x439f9
leaq 0x10(%rsp), %r15
pushq $0x20
popq %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x39796
cltq
movq %r15, %r14
jmp 0x43a01
movq %r14, %rdi
callq 0x438f6
movq 0x8(%rsp), %rcx
movq (%rsp), %rdx
testq %rcx, %rcx
jns 0x43a2b
testq %rdx, %rdx
jns 0x43a2b
cmpq %rdx, %rcx
jle 0x43a2b
movq 0x18(%r12), %rsi
movq %rbx, %rdi
callq 0x36987
jmp 0x4398d
testq %rcx, %rcx
jns 0x43a38
addq %rax, %rcx
movq %rcx, 0x8(%rsp)
testq %rdx, %rdx
jns 0x43a44
addq %rax, %rdx
movq %rdx, (%rsp)
testq %rcx, %rcx
jns 0x43a51
andq $0x0, 0x8(%rsp)
xorl %ecx, %ecx
xorl %esi, %esi
testq %rdx, %rdx
setns %dil
cmovgq %rdx, %rsi
leaq -0x1(%rax), %rdx
cmpq %rax, %rsi
setb %r8b
cmovbq %rsi, %rdx
testb %r8b, %dil
jne 0x43a76
movq %rdx, (%rsp)
subq %rcx, %rdx
jl 0x43a19
testq %rax, %rax
je 0x43a19
addq %rcx, %r14
incq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3716c
jmp 0x4398d
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_string.c
// Function: mgetCommand
void mgetCommand(client *c) {
    int j;

    addReplyMultiBulkLen(c,c->argc-1);
    for (j = 1; j < c->argc; j++) {
        robj *o = lookupKeyRead(c->db,c->argv[j]);
        if (o == NULL) {
            addReply(c,shared.nullbulk);
        } else {
            if (o->type != OBJ_STRING) {
                addReply(c,shared.nullbulk);
            } else {
                addReplyBulk(c,o);
            }
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movslq 0x38(%rdi), %rsi
decq %rsi
callq 0x370d9
pushq $0x1
popq %r14
leaq 0xb685b(%rip), %r15     # 0xfa310
movslq 0x38(%rbx), %rax
cmpq %rax, %r14
jge 0x43af7
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r14,8), %rsi
callq 0x3aebb
testq %rax, %rax
je 0x43ad9
testb $0xf, (%rax)
je 0x43ae7
movq 0x50(%r15), %rsi
movq %rbx, %rdi
callq 0x36987
jmp 0x43af2
movq %rbx, %rdi
movq %rax, %rsi
callq 0x36fd9
incq %r14
jmp 0x43ab5
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_string.c
// Function: msetGenericCommand
void msetGenericCommand(client *c, int nx) {
    int j, busykeys = 0;

    if ((c->argc % 2) == 0) {
        addReplyError(c,"wrong number of arguments for MSET");
        return;
    }
    /* Handle the NX flag. The MSETNX semantic is to return zero and don't
     * set nothing at all if at least one already key exists. */
    if (nx) {
        for (j = 1; j < c->argc; j += 2) {
            if (lookupKeyWrite(c->db,c->argv[j]) != NULL) {
                busykeys++;
            }
        }
        if (busykeys) {
            addReply(c, shared.czero);
            return;
        }
    }

    for (j = 1; j < c->argc; j += 2) {
        c->argv[j+1] = tryObjectEncoding(c->argv[j+1]);
        setKey(c->db,c->argv[j],c->argv[j+1]);
        notifyKeyspaceEvent(NOTIFY_STRING,"set",c->argv[j],c->db->id);
    }
    server.dirty += (c->argc-1)/2;
    addReply(c, nx ? shared.cone : shared.ok);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl 0x38(%rdi), %eax
testb $0x1, %al
jne 0x43b26
leaq 0x70d07(%rip), %rsi     # 0xb481d
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x36b6f
movl %esi, %ebp
testl %esi, %esi
je 0x43b72
pushq $0x1
popq %r15
xorl %r14d, %r14d
movslq %eax, %rcx
cmpq %rcx, %r15
jge 0x43b5d
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r15,8), %rsi
callq 0x3aec2
cmpq $0x1, %rax
sbbl $-0x1, %r14d
addq $0x2, %r15
movl 0x38(%rbx), %eax
jmp 0x43b33
testl %r14d, %r14d
je 0x43b72
leaq 0xb67a7(%rip), %rax     # 0xfa310
movq 0x20(%rax), %rsi
jmp 0x43c07
pushq $0x1
popq %r12
leaq 0x6bc38(%rip), %r14     # 0xaf7b5
pushq $0x8
popq %r15
movslq %eax, %rcx
cmpq %rcx, %r12
jge 0x43bd9
movq 0x40(%rbx), %rax
movq 0x8(%rax,%r12,8), %rdi
callq 0x3a3ad
movq 0x40(%rbx), %rcx
movq %rax, 0x8(%rcx,%r12,8)
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq (%rax,%r12,8), %rsi
movq 0x8(%rax,%r12,8), %rdx
callq 0x3b076
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq (%rcx,%r12,8), %rdx
movl 0x30(%rax), %ecx
movl %r15d, %edi
movq %r14, %rsi
callq 0x6fb58
addq $0x2, %r12
movl 0x38(%rbx), %eax
jmp 0x43b81
xorl %ecx, %ecx
testl %ebp, %ebp
setne %cl
decl %eax
pushq $0x2
popq %rsi
cltd
idivl %esi
cltq
leaq 0xb5cb7(%rip), %rdx     # 0xf98a8
addq %rax, 0x720(%rdx)
leaq 0xb6711(%rip), %rax     # 0xfa310
shll $0x5, %ecx
movq 0x8(%rax,%rcx), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x36987
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_string.c
// Function: incrDecrCommand
void incrDecrCommand(client *c, long long incr) {
    long long value, oldvalue;
    robj *o, *new;

    o = lookupKeyWrite(c->db,c->argv[1]);
    if (o != NULL && checkType(c,o,OBJ_STRING)) return;
    if (getLongLongFromObjectOrReply(c,o,&value,NULL) != C_OK) return;

    oldvalue = value;
    if ((incr < 0 && oldvalue < 0 && incr < (LLONG_MIN-oldvalue)) ||
        (incr > 0 && oldvalue > 0 && incr > (LLONG_MAX-oldvalue))) {
        addReplyError(c,"increment or decrement would overflow");
        return;
    }
    value += incr;

    if (o && o->refcount == 1 && o->encoding == OBJ_ENCODING_INT &&
        (value < 0 || value >= OBJ_SHARED_INTEGERS) &&
        value >= LONG_MIN && value <= LONG_MAX)
    {
        new = o;
        o->ptr = (void*)((long)value);
    } else {
        new = createStringObjectFromLongLong(value);
        if (o) {
            dbOverwrite(c->db,c->argv[1],new);
        } else {
            dbAdd(c->db,c->argv[1],new);
        }
    }
    signalModifiedKey(c->db,c->argv[1]);
    notifyKeyspaceEvent(NOTIFY_STRING,"incrby",c->argv[1],c->db->id);
    server.dirty++;
    addReply(c,shared.colon);
    addReply(c,new);
    addReply(c,shared.crlf);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3aec2
movq %rax, %r14
testq %rax, %rax
je 0x43c63
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3a311
testl %eax, %eax
jne 0x43d97
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x3ab03
testl %eax, %eax
jne 0x43d97
movabsq $0x7fffffffffffffff, %rax # imm = 0x7FFFFFFFFFFFFFFF
movq 0x8(%rsp), %rdi
subq %rdi, %rax
testq %r15, %r15
jns 0x43ca2
testq %rdi, %rdi
jns 0x43ca2
leaq 0x1(%rax), %rcx
cmpq %r15, %rcx
jg 0x43cbc
testq %r15, %r15
setg %cl
testq %rdi, %rdi
setg %dl
andb %cl, %dl
cmpq %r15, %rax
setl %al
andb %dl, %al
cmpb $0x1, %al
jne 0x43cd0
leaq 0x70b7d(%rip), %rsi     # 0xb4840
movq %rbx, %rdi
callq 0x36b6f
jmp 0x43d97
addq %r15, %rdi
movq %rdi, 0x8(%rsp)
testq %r14, %r14
je 0x43d09
cmpl $0x1, 0x4(%r14)
jne 0x43d09
movl $0xf0, %eax
andl (%r14), %eax
cmpl $0x10, %eax
sete %al
cmpq $0x2710, %rdi           # imm = 0x2710
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x43d09
movq %rdi, 0x8(%r14)
jmp 0x43d31
callq 0x39e38
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rsi
testq %r14, %r14
movq %rax, %r14
movq %rax, %rdx
je 0x43d2c
callq 0x3b01d
jmp 0x43d31
callq 0x3af45
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3b125
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rdx
movl 0x30(%rax), %ecx
leaq 0x6a91e(%rip), %rsi     # 0xae676
pushq $0x8
popq %rdi
callq 0x6fb58
leaq 0xb5b41(%rip), %rax     # 0xf98a8
incq 0x720(%rax)
leaq 0xb659b(%rip), %r15     # 0xfa310
movq 0x48(%r15), %rsi
movq %rbx, %rdi
callq 0x36987
movq %rbx, %rdi
movq %r14, %rsi
callq 0x36987
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x36987
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_string.c
// Function: incrbyfloatCommand
void incrbyfloatCommand(client *c) {
    long double incr, value;
    robj *o, *new, *aux;

    o = lookupKeyWrite(c->db,c->argv[1]);
    if (o != NULL && checkType(c,o,OBJ_STRING)) return;
    if (getLongDoubleFromObjectOrReply(c,o,&value,NULL) != C_OK ||
        getLongDoubleFromObjectOrReply(c,c->argv[2],&incr,NULL) != C_OK)
        return;

    value += incr;
    if (isnan(value) || isinf(value)) {
        addReplyError(c,"increment would produce NaN or Infinity");
        return;
    }
    new = createStringObjectFromLongDouble(value,1);
    if (o)
        dbOverwrite(c->db,c->argv[1],new);
    else
        dbAdd(c->db,c->argv[1],new);
    signalModifiedKey(c->db,c->argv[1]);
    notifyKeyspaceEvent(NOTIFY_STRING,"incrbyfloat",c->argv[1],c->db->id);
    server.dirty++;
    addReplyBulk(c,new);

    /* Always replicate INCRBYFLOAT as a SET command with the final value
     * in order to make sure that differences in float precision or formatting
     * will not create differences in replicas or after an AOF restart. */
    aux = createStringObject("SET",3);
    rewriteClientCommandArgument(c,0,aux);
    decrRefCount(aux);
    rewriteClientCommandArgument(c,2,new);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3aec2
movq %rax, %r14
testq %rax, %rax
je 0x43e53
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3a311
testl %eax, %eax
jne 0x43f91
leaq 0x20(%rsp), %rdx
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
callq 0x3a9fe
testl %eax, %eax
jne 0x43f91
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rsi
leaq 0x30(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x3a9fe
testl %eax, %eax
jne 0x43f91
fldt 0x30(%rsp)
fldt 0x20(%rsp)
faddp %st, %st(1)
fld %st(0)
fstpt 0x10(%rsp)
movzwl 0x18(%rsp), %eax
movq 0x10(%rsp), %rcx
fld %st(0)
fstpt 0x20(%rsp)
shrq $0x3f, %rcx
andl $0x7fff, %eax           # imm = 0x7FFF
leal -0x1(%rax), %edx
movzwl %dx, %edx
cmpl $0x7ffe, %edx           # imm = 0x7FFE
setb %dl
andb %cl, %dl
testq %rax, %rax
sete %al
orb %dl, %al
jne 0x43ee6
fstp %st(0)
leaq 0x7098d(%rip), %rsi     # 0xb4866
movq %rbx, %rdi
callq 0x36b6f
jmp 0x43f91
fstpt (%rsp)
pushq $0x1
popq %rdi
callq 0x39e78
movq %rax, %r15
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
movq %r15, %rdx
testq %r14, %r14
je 0x43f0f
callq 0x3b01d
jmp 0x43f14
callq 0x3af45
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3b125
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rdx
movl 0x30(%rax), %ecx
leaq 0x6a743(%rip), %rsi     # 0xae67e
pushq $0x8
popq %rdi
callq 0x6fb58
leaq 0xb595e(%rip), %rax     # 0xf98a8
incq 0x720(%rax)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x36fd9
leaq 0x7a09d(%rip), %rdi     # 0xbe000
pushq $0x3
popq %rsi
callq 0x39e29
movq %rax, %r14
movq %rbx, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x39072
movq %r14, %rdi
callq 0x3a265
pushq $0x2
popq %rsi
movq %rbx, %rdi
movq %r15, %rdx
callq 0x39072
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_string.c
// Function: appendCommand
void appendCommand(client *c) {
    size_t totlen;
    robj *o, *append;

    o = lookupKeyWrite(c->db,c->argv[1]);
    if (o == NULL) {
        /* Create the key */
        c->argv[2] = tryObjectEncoding(c->argv[2]);
        dbAdd(c->db,c->argv[1],c->argv[2]);
        incrRefCount(c->argv[2]);
        totlen = stringObjectLen(c->argv[2]);
    } else {
        /* Key exists, check type */
        if (checkType(c,o,OBJ_STRING))
            return;

        /* "append" is an argument, so always an sds */
        append = c->argv[2];
        totlen = stringObjectLen(o)+sdslen(append->ptr);
        if (checkStringLength(c,totlen) != C_OK)
            return;

        /* Append the value */
        o = dbUnshareStringValue(c->db,c->argv[1],o);
        o->ptr = sdscatlen(o->ptr,append->ptr,sdslen(append->ptr));
        totlen = sdslen(o->ptr);
    }
    signalModifiedKey(c->db,c->argv[1]);
    notifyKeyspaceEvent(NOTIFY_STRING,"append",c->argv[1],c->db->id);
    server.dirty++;
    addReplyLongLong(c,totlen);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3aec2
testq %rax, %rax
je 0x4400f
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3a311
testl %eax, %eax
jne 0x44003
movq 0x40(%rbx), %rax
movq 0x10(%rax), %r12
movq %r14, %rdi
callq 0x3a747
movq %rax, %r15
movq 0x8(%r12), %rdi
callq 0x438f6
addq %rax, %r15
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4392e
testl %eax, %eax
je 0x440a9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rdi
callq 0x3a3ad
movq 0x40(%rbx), %rcx
movq %rax, 0x10(%rcx)
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x10(%rax), %rdx
callq 0x3af45
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rdi
callq 0x39e74
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rdi
callq 0x3a747
movq %rax, %r14
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3b125
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rdx
movl 0x30(%rax), %ecx
leaq 0x6a3ec(%rip), %rsi     # 0xae469
pushq $0x8
popq %rdi
callq 0x6fb58
leaq 0xb581c(%rip), %rax     # 0xf98a8
incq 0x720(%rax)
movq %rbx, %rdi
movq %r14, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x370a6
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdx
callq 0x3b27c
movq %rax, %r14
movq 0x8(%rax), %r15
movq 0x8(%r12), %r12
movq %r12, %rdi
callq 0x438f6
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x31758
movq %rax, 0x8(%r14)
movq %rax, %rdi
callq 0x438f6
jmp 0x44053
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_string.c
// Function: strlenCommand
void strlenCommand(client *c) {
    robj *o;
    if ((o = lookupKeyReadOrReply(c,c->argv[1],shared.czero)) == NULL ||
        checkType(c,o,OBJ_STRING)) return;
    addReplyLongLong(c,stringObjectLen(o));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0xb620a(%rip), %rax     # 0xfa310
movq 0x20(%rax), %rdx
callq 0x3aee5
testq %rax, %rax
je 0x44128
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3a311
testl %eax, %eax
je 0x44130
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq %r14, %rdi
callq 0x3a747
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x370a6
nop
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypePush
void listTypePush(robj *subject, robj *value, int where) {
    if (subject->encoding == OBJ_ENCODING_QUICKLIST) {
        int pos = (where == LIST_HEAD) ? QUICKLIST_HEAD : QUICKLIST_TAIL;
        value = getDecodedObject(value);
        size_t len = sdslen(value->ptr);
        quicklistPush(subject->ptr, value->ptr, len, pos);
        decrRefCount(value);
    } else {
        serverPanic("Unknown list encoding");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl $0xf0, %eax
andl (%rdi), %eax
cmpl $0x90, %eax
jne 0x441a4
movq %rdi, %rbx
xorl %ebp, %ebp
negl %edx
sbbl %ebp, %ebp
movq %rsi, %rdi
callq 0x3a57d
movq %rax, %r14
movq 0x8(%rax), %r15
movq %r15, %rdi
callq 0x441c2
movq 0x8(%rbx), %rdi
movq %r15, %rsi
movq %rax, %rdx
movl %ebp, %ecx
callq 0x288e7
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3a265
leaq 0x6ff67(%rip), %rdi     # 0xb4112
leaq 0x7071e(%rip), %rsi     # 0xb48d0
pushq $0x31
popq %rdx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypePop
robj *listTypePop(robj *subject, int where) {
    long long vlong;
    robj *value = NULL;

    int ql_where = where == LIST_HEAD ? QUICKLIST_HEAD : QUICKLIST_TAIL;
    if (subject->encoding == OBJ_ENCODING_QUICKLIST) {
        if (quicklistPopCustom(subject->ptr, ql_where, (unsigned char **)&value,
                               NULL, &vlong, listPopSaver)) {
            if (!value)
                value = createStringObjectFromLongLong(vlong);
        }
    } else {
        serverPanic("Unknown list encoding");
    }
    return value;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
andq $0x0, (%rsp)
movl $0xf0, %eax
andl (%rdi), %eax
cmpl $0x90, %eax
jne 0x44260
xorl %eax, %eax
negl %esi
sbbl %eax, %eax
movq 0x8(%rdi), %rdi
leaq -0x30(%rip), %r9        # 0x441fa
movq %rsp, %rbx
leaq 0x8(%rsp), %r8
movl %eax, %esi
movq %rbx, %rdx
xorl %ecx, %ecx
callq 0x2874f
testl %eax, %eax
sete %cl
movq (%rbx), %rax
testq %rax, %rax
setne %dl
orb %cl, %dl
jne 0x4425a
movq 0x8(%rsp), %rdi
callq 0x39e38
addq $0x10, %rsp
popq %rbx
retq
leaq 0x6feab(%rip), %rdi     # 0xb4112
leaq 0x70662(%rip), %rsi     # 0xb48d0
pushq $0x45
popq %rdx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeLength
unsigned long listTypeLength(robj *subject) {
    if (subject->encoding == OBJ_ENCODING_QUICKLIST) {
        return quicklistCount(subject->ptr);
    } else {
        serverPanic("Unknown list encoding");
    }
}

// Assembly:
pushq %rax
movl $0xf0, %eax
andl (%rdi), %eax
cmpl $0x90, %eax
jne 0x4429a
movq 0x8(%rdi), %rdi
callq 0x27257
movl %eax, %eax
popq %rcx
retq
leaq 0x6fe71(%rip), %rdi     # 0xb4112
leaq 0x70628(%rip), %rsi     # 0xb48d0
pushq $0x4e
popq %rdx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeInitIterator
listTypeIterator *listTypeInitIterator(robj *subject, long index,
                                       unsigned char direction) {
    listTypeIterator *li = zmalloc(sizeof(listTypeIterator));
    li->subject = subject;
    li->encoding = subject->encoding;
    li->direction = direction;
    li->iter = NULL;
    /* LIST_HEAD means start at TAIL and move *towards* head.
     * LIST_TAIL means start at HEAD and move *towards tail. */
    int iter_direction =
        direction == LIST_HEAD ? AL_START_TAIL : AL_START_HEAD;
    if (li->encoding == OBJ_ENCODING_QUICKLIST) {
        li->iter = quicklistGetIteratorAtIdx(li->subject->ptr,
                                             iter_direction, index);
    } else {
        serverPanic("Unknown list encoding");
    }
    return li;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r15
pushq $0x18
popq %rdi
callq 0x327b9
movq %rax, %r14
movq %r15, (%rax)
movb (%r15), %al
shrb $0x4, %al
movb %al, 0x8(%r14)
movb %bpl, 0x9(%r14)
andq $0x0, 0x10(%r14)
cmpb $0x9, %al
jne 0x44313
xorl %esi, %esi
testb %bpl, %bpl
sete %sil
movq 0x8(%r15), %rdi
movq %rbx, %rdx
callq 0x28398
movq %rax, 0x10(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x6fdf8(%rip), %rdi     # 0xb4112
leaq 0x705af(%rip), %rsi     # 0xb48d0
pushq $0x62
popq %rdx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeNext
int listTypeNext(listTypeIterator *li, listTypeEntry *entry) {
    /* Protect from converting when iterating */
    serverAssert(li->subject->encoding == li->encoding);

    entry->li = li;
    if (li->encoding == OBJ_ENCODING_QUICKLIST) {
        return quicklistNext(li->iter, &entry->entry);
    } else {
        serverPanic("Unknown list encoding");
    }
    return 0;
}

// Assembly:
pushq %rax
movq (%rdi), %rax
movl (%rax), %ecx
shrl $0x4, %ecx
andl $0xf, %ecx
movzbl 0x8(%rdi), %eax
cmpl %eax, %ecx
jne 0x44370
movq %rdi, (%rsi)
cmpb $0x9, %al
jne 0x44388
movq 0x10(%rdi), %rdi
addq $0x8, %rsi
popq %rax
jmp 0x28422
leaq 0x70562(%rip), %rdi     # 0xb48d9
leaq 0x70552(%rip), %rsi     # 0xb48d0
pushq $0x72
popq %rdx
callq 0x57ac8
jmp 0x4439e
leaq 0x6fd83(%rip), %rdi     # 0xb4112
leaq 0x7053a(%rip), %rsi     # 0xb48d0
pushq $0x78
popq %rdx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeGet
robj *listTypeGet(listTypeEntry *entry) {
    robj *value = NULL;
    if (entry->li->encoding == OBJ_ENCODING_QUICKLIST) {
        if (entry->entry.value) {
            value = createStringObject((char *)entry->entry.value,
                                       entry->entry.sz);
        } else {
            value = createStringObjectFromLongLong(entry->entry.longval);
        }
    } else {
        serverPanic("Unknown list encoding");
    }
    return value;
}

// Assembly:
movq (%rdi), %rax
cmpb $0x9, 0x8(%rax)
jne 0x443cc
movq 0x20(%rdi), %rax
testq %rax, %rax
je 0x443c3
movl 0x30(%rdi), %esi
movq %rax, %rdi
jmp 0x39e29
movq 0x28(%rdi), %rdi
jmp 0x39e38
pushq %rax
leaq 0x6fd3e(%rip), %rdi     # 0xb4112
leaq 0x704f5(%rip), %rsi     # 0xb48d0
movl $0x88, %edx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeInsert
void listTypeInsert(listTypeEntry *entry, robj *value, int where) {
    if (entry->li->encoding == OBJ_ENCODING_QUICKLIST) {
        value = getDecodedObject(value);
        sds str = value->ptr;
        size_t len = sdslen(str);
        if (where == LIST_TAIL) {
            quicklistInsertAfter((quicklist *)entry->entry.quicklist,
                                 &entry->entry, str, len);
        } else if (where == LIST_HEAD) {
            quicklistInsertBefore((quicklist *)entry->entry.quicklist,
                                  &entry->entry, str, len);
        }
        decrRefCount(value);
    } else {
        serverPanic("Unknown list encoding");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %rax
cmpb $0x9, 0x8(%rax)
jne 0x44462
movl %edx, %ebp
movq %rdi, %r14
movq %rsi, %rdi
callq 0x3a57d
movq %rax, %rbx
movq 0x8(%rax), %r15
movq %r15, %rdi
callq 0x441c2
testl %ebp, %ebp
je 0x4443a
cmpl $0x1, %ebp
jne 0x44450
movq 0x8(%r14), %rdi
addq $0x8, %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x281fc
jmp 0x44450
movq 0x8(%r14), %rdi
addq $0x8, %r14
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x281f4
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3a265
leaq 0x6fca9(%rip), %rdi     # 0xb4112
leaq 0x70460(%rip), %rsi     # 0xb48d0
movl $0x9b, %edx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeEqual
int listTypeEqual(listTypeEntry *entry, robj *o) {
    if (entry->li->encoding == OBJ_ENCODING_QUICKLIST) {
        serverAssertWithInfo(NULL,o,sdsEncodedObject(o));
        return quicklistCompare(entry->entry.zi,o->ptr,sdslen(o->ptr));
    } else {
        serverPanic("Unknown list encoding");
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq (%rdi), %rax
cmpb $0x9, 0x8(%rax)
jne 0x444bc
movl (%rsi), %eax
shrl $0x4, %eax
testb $0x7, %al
jne 0x444d6
movq 0x18(%rdi), %rbx
movq 0x8(%rsi), %r14
movq %r14, %rdi
callq 0x441c2
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2834f
leaq 0x6fc4f(%rip), %rdi     # 0xb4112
leaq 0x70406(%rip), %rsi     # 0xb48d0
movl $0xa5, %edx
callq 0x57b45
jmp 0x444f1
leaq 0x70422(%rip), %rdx     # 0xb48ff
leaq 0x703ec(%rip), %rcx     # 0xb48d0
xorl %edi, %edi
movl $0xa2, %r8d
callq 0x588a4
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeDelete
void listTypeDelete(listTypeIterator *iter, listTypeEntry *entry) {
    if (entry->li->encoding == OBJ_ENCODING_QUICKLIST) {
        quicklistDelEntry(iter->iter, &entry->entry);
    } else {
        serverPanic("Unknown list encoding");
    }
}

// Assembly:
movq (%rsi), %rax
cmpb $0x9, 0x8(%rax)
jne 0x4450f
movq 0x10(%rdi), %rdi
addq $0x8, %rsi
jmp 0x27970
pushq %rax
leaq 0x6fbfb(%rip), %rdi     # 0xb4112
leaq 0x703b2(%rip), %rsi     # 0xb48d0
movl $0xae, %edx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: listTypeConvert
void listTypeConvert(robj *subject, int enc) {
    serverAssertWithInfo(NULL,subject,subject->type==OBJ_LIST);
    serverAssertWithInfo(NULL,subject,subject->encoding==OBJ_ENCODING_ZIPLIST);

    if (enc == OBJ_ENCODING_QUICKLIST) {
        size_t zlen = server.list_max_ziplist_size;
        int depth = server.list_compress_depth;
        subject->ptr = quicklistCreateFromZiplist(zlen, depth, subject->ptr);
        subject->encoding = OBJ_ENCODING_QUICKLIST;
    } else {
        serverPanic("Unsupported list conversion");
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rdi), %eax
movl %eax, %ecx
andl $0xf, %ecx
cmpl $0x1, %ecx
jne 0x4457f
andl $0xf0, %eax
cmpl $0x50, %eax
jne 0x4459a
cmpl $0x9, %esi
jne 0x445ba
leaq 0xb5352(%rip), %rax     # 0xf98a8
movl 0x970(%rax), %edi
movl 0x974(%rax), %esi
movq 0x8(%rbx), %rdx
callq 0x2789e
movq %rax, 0x8(%rbx)
movl $0xffffff0f, %eax       # imm = 0xFFFFFF0F
andl (%rbx), %eax
orl $0x90, %eax
movl %eax, (%rbx)
popq %rbx
retq
leaq 0x7038d(%rip), %rdx     # 0xb4913
leaq 0x70343(%rip), %rcx     # 0xb48d0
xorl %edi, %edi
movq %rbx, %rsi
movl $0xb4, %r8d
jmp 0x445b3
leaq 0x7038a(%rip), %rdx     # 0xb492b
leaq 0x70328(%rip), %rcx     # 0xb48d0
xorl %edi, %edi
movq %rbx, %rsi
movl $0xb5, %r8d
callq 0x588a4
jmp 0x445d2
leaq 0x70392(%rip), %rdi     # 0xb4953
leaq 0x70308(%rip), %rsi     # 0xb48d0
movl $0xbd, %edx
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: pushGenericCommand
void pushGenericCommand(client *c, int where) {
    int j, waiting = 0, pushed = 0;
    robj *lobj = lookupKeyWrite(c->db,c->argv[1]);

    if (lobj && lobj->type != OBJ_LIST) {
        addReply(c,shared.wrongtypeerr);
        return;
    }

    for (j = 2; j < c->argc; j++) {
        c->argv[j] = tryObjectEncoding(c->argv[j]);
        if (!lobj) {
            lobj = createQuicklistObject();
            quicklistSetOptions(lobj->ptr, server.list_max_ziplist_size,
                                server.list_compress_depth);
            dbAdd(c->db,c->argv[1],lobj);
        }
        listTypePush(lobj,c->argv[j],where);
        pushed++;
    }
    addReplyLongLong(c, waiting + (lobj ? listTypeLength(lobj) : 0));
    if (pushed) {
        char *event = (where == LIST_HEAD) ? "lpush" : "rpush";

        signalModifiedKey(c->db,c->argv[1]);
        notifyKeyspaceEvent(NOTIFY_LIST,event,c->argv[1],c->db->id);
    }
    server.dirty += pushed;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3aec2
movq %rax, %r14
testq %rax, %rax
je 0x4460f
movl (%r14), %eax
andl $0xf, %eax
cmpl $0x1, %eax
jne 0x446a1
xorl %r15d, %r15d
leaq 0xb528f(%rip), %r12     # 0xf98a8
leaq 0x2(%r15), %rax
movslq 0x38(%rbx), %rcx
cmpq %rcx, %rax
jge 0x4468f
movq 0x40(%rbx), %rax
movq 0x10(%rax,%r15,8), %rdi
callq 0x3a3ad
movq 0x40(%rbx), %rcx
movq %rax, 0x10(%rcx,%r15,8)
testq %r14, %r14
jne 0x44677
callq 0x3a038
movq %rax, %r14
movq 0x8(%rax), %rdi
movl 0x970(%r12), %esi
movl 0x974(%r12), %edx
callq 0x271d0
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdx
callq 0x3af45
movq 0x40(%rbx), %rax
movq 0x10(%rax,%r15,8), %rsi
movq %r14, %rdi
movl %ebp, %edx
callq 0x4414c
incq %r15
jmp 0x44619
testq %r14, %r14
je 0x446bc
movq %r14, %rdi
callq 0x4427e
movq %rax, %rsi
jmp 0x446be
leaq 0xb5c68(%rip), %rax     # 0xfa310
movq 0x70(%rax), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x36987
xorl %esi, %esi
movq %rbx, %rdi
callq 0x370a6
testl %r15d, %r15d
je 0x4470a
testl %ebp, %ebp
leaq 0x69dfe(%rip), %rax     # 0xae4d2
leaq 0x69dca(%rip), %r14     # 0xae4a5
cmoveq %rax, %r14
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3b125
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rdx
movl 0x30(%rax), %ecx
pushq $0x10
popq %rdi
movq %r14, %rsi
callq 0x6fb58
addq %r15, 0x720(%r12)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: linsertCommand
void linsertCommand(client *c) {
    c->argv[4] = tryObjectEncoding(c->argv[4]);
    if (strcasecmp(c->argv[2]->ptr,"after") == 0) {
        pushxGenericCommand(c,c->argv[3],c->argv[4],LIST_TAIL);
    } else if (strcasecmp(c->argv[2]->ptr,"before") == 0) {
        pushxGenericCommand(c,c->argv[3],c->argv[4],LIST_HEAD);
    } else {
        addReply(c,shared.syntaxerr);
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x20(%rax), %rdi
callq 0x3a3ad
movq 0x40(%rbx), %rcx
movq %rax, 0x20(%rcx)
movq 0x40(%rbx), %r15
movq 0x10(%r15), %rax
movq 0x8(%rax), %r14
leaq 0x70044(%rip), %rsi     # 0xb4971
movq %r14, %rdi
callq 0x262f0
testl %eax, %eax
je 0x44967
leaq 0x70037(%rip), %rsi     # 0xb4977
movq %r14, %rdi
callq 0x262f0
testl %eax, %eax
je 0x44977
leaq 0xb59bd(%rip), %rax     # 0xfa310
movq 0x80(%rax), %rsi
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x36987
movq 0x18(%r15), %rsi
movq 0x20(%r15), %rdx
pushq $0x1
popq %rcx
movq %rbx, %rdi
jmp 0x44984
movq 0x18(%r15), %rsi
movq 0x20(%r15), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
popq %rbx
popq %r14
popq %r15
jmp 0x4472a
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: lindexCommand
void lindexCommand(client *c) {
    robj *o = lookupKeyReadOrReply(c,c->argv[1],shared.nullbulk);
    if (o == NULL || checkType(c,o,OBJ_LIST)) return;
    long index;
    robj *value = NULL;

    if ((getLongFromObjectOrReply(c, c->argv[2], &index, NULL) != C_OK))
        return;

    if (o->encoding == OBJ_ENCODING_QUICKLIST) {
        quicklistEntry entry;
        if (quicklistIndex(o->ptr, index, &entry)) {
            if (entry.value) {
                value = createStringObject((char*)entry.value,entry.sz);
            } else {
                value = createStringObjectFromLongLong(entry.longval);
            }
            addReplyBulk(c,value);
            decrRefCount(value);
        } else {
            addReply(c,shared.nullbulk);
        }
    } else {
        serverPanic("Unknown list encoding");
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x40, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0xb590c(%rip), %r15     # 0xfa310
movq 0x50(%r15), %rdx
callq 0x3aee5
testq %rax, %rax
je 0x44ab3
movq %rax, %r14
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3a311
testl %eax, %eax
jne 0x44ab3
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rsi
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x3ab5e
testl %eax, %eax
jne 0x44ab3
movl $0xf0, %eax
andl (%r14), %eax
cmpl $0x90, %eax
jne 0x44abd
movq 0x8(%r14), %rdi
movq 0x8(%rsp), %rsi
leaq 0x10(%rsp), %rdx
callq 0x27a60
testl %eax, %eax
je 0x44a85
movq 0x28(%rsp), %rdi
testq %rdi, %rdi
je 0x44a93
movl 0x38(%rsp), %esi
callq 0x39e29
jmp 0x44a9d
movq 0x50(%r15), %rsi
movq %rbx, %rdi
callq 0x36987
jmp 0x44ab3
movq 0x30(%rsp), %rdi
callq 0x39e38
movq %rax, %r14
movq %rbx, %rdi
movq %rax, %rsi
callq 0x36fd9
movq %r14, %rdi
callq 0x3a265
addq $0x40, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0x6f64e(%rip), %rdi     # 0xb4112
leaq 0x6fe05(%rip), %rsi     # 0xb48d0
movl $0x148, %edx            # imm = 0x148
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: lsetCommand
void lsetCommand(client *c) {
    robj *o = lookupKeyWriteOrReply(c,c->argv[1],shared.nokeyerr);
    if (o == NULL || checkType(c,o,OBJ_LIST)) return;
    long index;
    robj *value = c->argv[3];

    if ((getLongFromObjectOrReply(c, c->argv[2], &index, NULL) != C_OK))
        return;

    if (o->encoding == OBJ_ENCODING_QUICKLIST) {
        quicklist *ql = o->ptr;
        int replaced = quicklistReplaceAtIndex(ql, index,
                                               value->ptr, sdslen(value->ptr));
        if (!replaced) {
            addReply(c,shared.outofrangeerr);
        } else {
            addReply(c,shared.ok);
            signalModifiedKey(c->db,c->argv[1]);
            notifyKeyspaceEvent(NOTIFY_LIST,"lset",c->argv[1],c->db->id);
            server.dirty++;
        }
    } else {
        serverPanic("Unknown list encoding");
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0xb5814(%rip), %r13     # 0xfa310
movq 0x78(%r13), %rdx
callq 0x3af15
testq %rax, %rax
je 0x44be1
movq %rax, %r14
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3a311
testl %eax, %eax
jne 0x44be1
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rsi
movq 0x18(%rax), %r12
leaq 0x8(%rsp), %rdx
movq %rbx, %rdi
xorl %ecx, %ecx
callq 0x3ab5e
testl %eax, %eax
jne 0x44be1
movl $0xf0, %eax
andl (%r14), %eax
cmpl $0x90, %eax
jne 0x44bef
movq 0x8(%r14), %r14
movq 0x8(%rsp), %r15
movq 0x8(%r12), %r12
movq %r12, %rdi
callq 0x441c2
movq %r14, %rdi
movq %r15, %rsi
movq %r12, %rdx
movl %eax, %ecx
callq 0x279be
testl %eax, %eax
je 0x44bd2
movq 0x8(%r13), %rsi
movq %rbx, %rdi
callq 0x36987
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3b125
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rdx
movl 0x30(%rax), %ecx
leaq 0x69934(%rip), %rsi     # 0xae4ee
pushq $0x10
popq %rdi
callq 0x6fb58
leaq 0xb4cdf(%rip), %rax     # 0xf98a8
incq 0x720(%rax)
jmp 0x44be1
movq 0x90(%r13), %rsi
movq %rbx, %rdi
callq 0x36987
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x6f51c(%rip), %rdi     # 0xb4112
leaq 0x6fcd3(%rip), %rsi     # 0xb48d0
movl $0x162, %edx            # imm = 0x162
callq 0x57b45
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: popGenericCommand
void popGenericCommand(client *c, int where) {
    robj *o = lookupKeyWriteOrReply(c,c->argv[1],shared.nullbulk);
    if (o == NULL || checkType(c,o,OBJ_LIST)) return;

    robj *value = listTypePop(o,where);
    if (value == NULL) {
        addReply(c,shared.nullbulk);
    } else {
        char *event = (where == LIST_HEAD) ? "lpop" : "rpop";

        addReplyBulk(c,value);
        decrRefCount(value);
        notifyKeyspaceEvent(NOTIFY_LIST,event,c->argv[1],c->db->id);
        if (listTypeLength(o) == 0) {
            notifyKeyspaceEvent(NOTIFY_GENERIC,"del",
                                c->argv[1],c->db->id);
            dbDelete(c->db,c->argv[1]);
        }
        signalModifiedKey(c->db,c->argv[1]);
        server.dirty++;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0xb56e5(%rip), %r12     # 0xfa310
movq 0x50(%r12), %rdx
callq 0x3af15
testq %rax, %rax
je 0x44d09
movq %rax, %r14
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3a311
testl %eax, %eax
jne 0x44d09
movq %r14, %rdi
movl %ebp, %esi
callq 0x44201
testq %rax, %rax
je 0x44d12
movq %rax, %r15
testl %ebp, %ebp
leaq 0x69867(%rip), %rax     # 0xae4dd
leaq 0x69848(%rip), %r12     # 0xae4c5
cmoveq %rax, %r12
movq %rbx, %rdi
movq %r15, %rsi
callq 0x36fd9
movq %r15, %rdi
callq 0x3a265
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rdx
movl 0x30(%rax), %ecx
pushq $0x10
popq %rdi
movq %r12, %rsi
callq 0x6fb58
movq %r14, %rdi
callq 0x4427e
testq %rax, %rax
jne 0x44cea
movq 0x10(%rbx), %rax
movq 0x40(%rbx), %rcx
movq 0x8(%rcx), %rdx
movl 0x30(%rax), %ecx
leaq 0x6b747(%rip), %rsi     # 0xb0418
pushq $0x4
popq %rdi
callq 0x6fb58
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3b1df
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x8(%rax), %rsi
callq 0x3b125
leaq 0xb4ba6(%rip), %rax     # 0xf98a8
incq 0x720(%rax)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x50(%r12), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x36987
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: rpoplpushHandlePush
void rpoplpushHandlePush(client *c, robj *dstkey, robj *dstobj, robj *value) {
    /* Create the list if the key does not exist */
    if (!dstobj) {
        dstobj = createQuicklistObject();
        quicklistSetOptions(dstobj->ptr, server.list_max_ziplist_size,
                            server.list_compress_depth);
        dbAdd(c->db,dstkey,dstobj);
    }
    signalModifiedKey(c->db,dstkey);
    listTypePush(dstobj,value,LIST_HEAD);
    notifyKeyspaceEvent(NOTIFY_LIST,"lpush",dstkey,c->db->id);
    /* Always send the pushed value to the client. */
    addReplyBulk(c,value);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r15
movq %rdi, %r14
testq %rdx, %rdx
jne 0x4525a
callq 0x3a038
movq %rax, %r12
movq 0x8(%rax), %rdi
leaq 0xb466e(%rip), %rax     # 0xf98a8
movl 0x970(%rax), %esi
movl 0x974(%rax), %edx
callq 0x271d0
movq 0x10(%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x3af45
movq 0x10(%r14), %rdi
movq %r15, %rsi
callq 0x3b125
movq %r12, %rdi
movq %rbx, %rsi
xorl %edx, %edx
callq 0x4414c
movq 0x10(%r14), %rax
movl 0x30(%rax), %ecx
leaq 0x69251(%rip), %rsi     # 0xae4d2
pushq $0x10
popq %rdi
movq %r15, %rdx
callq 0x6fb58
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x36fd9
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: rpoplpushCommand
void rpoplpushCommand(client *c) {
    robj *sobj, *value;
    if ((sobj = lookupKeyWriteOrReply(c,c->argv[1],shared.nullbulk)) == NULL ||
        checkType(c,sobj,OBJ_LIST)) return;

    if (listTypeLength(sobj) == 0) {
        /* This may only happen after loading very old RDB files. Recent
         * versions of Redis delete keys of empty lists. */
        addReply(c,shared.nullbulk);
    } else {
        robj *dobj = lookupKeyWrite(c->db,c->argv[2]);
        robj *touchedkey = c->argv[1];

        if (dobj && checkType(c,dobj,OBJ_LIST)) return;
        value = listTypePop(sobj,LIST_TAIL);
        /* We saved touched key, and protect it, since rpoplpushHandlePush
         * may change the client command argument vector (it does not
         * currently). */
        incrRefCount(touchedkey);
        rpoplpushHandlePush(c,c->argv[2],dobj,value);

        /* listTypePop returns an object with its refcount incremented */
        decrRefCount(value);

        /* Delete the source list when it is empty */
        notifyKeyspaceEvent(NOTIFY_LIST,"rpop",touchedkey,c->db->id);
        if (listTypeLength(sobj) == 0) {
            dbDelete(c->db,touchedkey);
            notifyKeyspaceEvent(NOTIFY_GENERIC,"del",
                                touchedkey,c->db->id);
        }
        signalModifiedKey(c->db,touchedkey);
        decrRefCount(touchedkey);
        server.dirty++;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x40(%rdi), %rax
movq 0x8(%rax), %rsi
leaq 0xb5053(%rip), %r15     # 0xfa310
movq 0x50(%r15), %rdx
callq 0x3af15
testq %rax, %rax
je 0x452e0
movq %rax, %r14
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x3a311
testl %eax, %eax
je 0x452ea
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %r14, %rdi
callq 0x4427e
testq %rax, %rax
je 0x453d4
movq 0x10(%rbx), %rdi
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rsi
callq 0x3aec2
movq %rax, %r12
movq 0x40(%rbx), %rax
movq 0x8(%rax), %r15
testq %r12, %r12
je 0x4532e
pushq $0x1
popq %rdx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x3a311
testl %eax, %eax
jne 0x452e0
pushq $0x1
popq %rsi
movq %r14, %rdi
callq 0x44201
movq %rax, %r13
movq %r15, %rdi
callq 0x39e74
movq 0x40(%rbx), %rax
movq 0x10(%rax), %rsi
movq %rbx, %rdi
movq %r12, %rdx
movq %r13, %rcx
callq 0x4520e
movq %r13, %rdi
callq 0x3a265
movq 0x10(%rbx), %rax
movl 0x30(%rax), %ecx
leaq 0x69155(%rip), %rsi     # 0xae4c5
pushq $0x10
popq %rdi
movq %r15, %rdx
callq 0x6fb58
movq %r14, %rdi
callq 0x4427e
testq %rax, %rax
jne 0x453ad
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x3b1df
movq 0x10(%rbx), %rax
movl 0x30(%rax), %ecx
leaq 0x6b076(%rip), %rsi     # 0xb0418
pushq $0x4
popq %rdi
movq %r15, %rdx
callq 0x6fb58
movq 0x10(%rbx), %rdi
movq %r15, %rsi
callq 0x3b125
movq %r15, %rdi
callq 0x3a265
leaq 0xb44e0(%rip), %rax     # 0xf98a8
incq 0x720(%rax)
jmp 0x452e0
movq 0x50(%r15), %rsi
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x36987
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: blockForKeys
void blockForKeys(client *c, robj **keys, int numkeys, mstime_t timeout, robj *target) {
    dictEntry *de;
    list *l;
    int j;

    c->bpop.timeout = timeout;
    c->bpop.target = target;

    if (target != NULL) incrRefCount(target);

    for (j = 0; j < numkeys; j++) {
        /* If the key already exists in the dict ignore it. */
        if (dictAdd(c->bpop.keys,keys[j],NULL) != DICT_OK) continue;
        incrRefCount(keys[j]);

        /* And in the other "side", to map keys -> clients */
        de = dictFind(c->db->blocking_keys,keys[j]);
        if (de == NULL) {
            int retval;

            /* For every key we take a list of clients blocked for it */
            l = listCreate();
            retval = dictAdd(c->db->blocking_keys,keys[j],l);
            incrRefCount(keys[j]);
            serverAssertWithInfo(c,keys[j],retval == DICT_OK);
        } else {
            l = dictGetVal(de);
        }
        listAddNodeTail(l,c);
    }
    blockClient(c,BLOCKED_LIST);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r15d
movq %rsi, %r14
movq %rdi, %rbx
movq %rcx, 0x170(%rdi)
movq %r8, 0x180(%rdi)
testq %r8, %r8
je 0x45418
movq %r8, %rdi
callq 0x39e74
xorl %r13d, %r13d
testl %r15d, %r15d
cmovlel %r13d, %r15d
cmpq %r13, %r15
je 0x4549d
movq 0x178(%rbx), %rdi
movq (%r14,%r13,8), %rsi
xorl %edx, %edx
callq 0x2a3ed
testl %eax, %eax
jne 0x45498
movq (%r14,%r13,8), %rdi
callq 0x39e74
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rdi
movq (%r14,%r13,8), %rsi
callq 0x2a5f9
testq %rax, %rax
je 0x45462
movq 0x8(%rax), %r12
jmp 0x4548d
callq 0x26e0c
movq %rax, %r12
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rdi
movq (%r14,%r13,8), %rsi
movq %r12, %rdx
callq 0x2a3ed
movl %eax, %ebp
movq (%r14,%r13,8), %rdi
callq 0x39e74
testl %ebp, %ebp
jne 0x454b6
movq %r12, %rdi
movq %rbx, %rsi
callq 0x26ecc
incq %r13
jmp 0x45422
pushq $0x1
popq %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x7008e
movq (%r14,%r13,8), %rsi
leaq 0x6d26b(%rip), %rdx     # 0xb272c
leaq 0x6f408(%rip), %rcx     # 0xb48d0
movq %rbx, %rdi
movl $0x280, %r8d            # imm = 0x280
callq 0x588a4
pushq $0x1
popq %rdi
callq 0x263c0
// File: /workspace/github_c_makefile_star2_O2/gplessis[P]dotdeb-redis/src/t_list.c
// Function: unblockClientWaitingData
void unblockClientWaitingData(client *c) {
    dictEntry *de;
    dictIterator *di;
    list *l;

    serverAssertWithInfo(c,NULL,dictSize(c->bpop.keys) != 0);
    di = dictGetIterator(c->bpop.keys);
    /* The client may wait for multiple keys, so unblock it for every key. */
    while((de = dictNext(di)) != NULL) {
        robj *key = dictGetKey(de);

        /* Remove this client from the list of clients waiting for this key. */
        l = dictFetchValue(c->db->blocking_keys,key);
        serverAssertWithInfo(c,key,l != NULL);
        listDelNode(l,listSearchKey(l,c));
        /* If the list is empty we need to remove it to avoid wasting memory */
        if (listLength(l) == 0)
            dictDelete(c->db->blocking_keys,key);
    }
    dictReleaseIterator(di);

    /* Cleanup the client structure */
    dictEmpty(c->bpop.keys,NULL);
    if (c->bpop.target) {
        decrRefCount(c->bpop.target);
        c->bpop.target = NULL;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x178(%rdi), %rdi
movq 0x28(%rdi), %rax
addq 0x48(%rdi), %rax
je 0x455c0
callq 0x2a99f
movq %rax, %r14
movq %r14, %rdi
callq 0x2a9d3
testq %rax, %rax
je 0x4555e
movq (%rax), %r15
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rdi
movq %r15, %rsi
callq 0x2a900
testq %rax, %rax
je 0x45599
movq %rax, %r12
movq %rax, %rdi
movq %rbx, %rsi
callq 0x270cf
movq %r12, %rdi
movq %rax, %rsi
callq 0x26fa8
cmpq $0x0, 0x28(%r12)
jne 0x45506
movq 0x10(%rbx), %rax
movq 0x10(%rax), %rdi
movq %r15, %rsi
callq 0x2a6dc
jmp 0x45506
movq %r14, %rdi
callq 0x2aa94
movq 0x178(%rbx), %rdi
xorl %esi, %esi
callq 0x2ae99
movq 0x180(%rbx), %rdi
testq %rdi, %rdi
je 0x4558d
callq 0x3a265
andq $0x0, 0x180(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0x6f41c(%rip), %rdx     # 0xb49bc
leaq 0x6f329(%rip), %rcx     # 0xb48d0
movq %rbx, %rdi
movq %r15, %rsi
movl $0x298, %r8d            # imm = 0x298
callq 0x588a4
pushq $0x1
popq %rdi
callq 0x263c0
leaq 0x6f3d9(%rip), %rdx     # 0xb49a0
leaq 0x6f302(%rip), %rcx     # 0xb48d0
movq %rbx, %rdi
xorl %esi, %esi
movl $0x290, %r8d            # imm = 0x290
jmp 0x455b3