LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbList
void ldbList(int around, int context) {
    int j;

    for (j = 1; j <= ldb.lines; j++) {
        if (around != 0 && abs(around-j) > context) continue;
        ldbLogSourceLine(j);
    }
}

// Assembly:
movl 0xa5770(%rip), %eax     # 0x1163a0
testl %eax, %eax
jle 0x70c78
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %r14d
leal -0x1(%r14), %r15d
xorl %ebp, %ebp
incl %ebp
testl %r14d, %r14d
je 0x70c5a
movl %r15d, %ecx
negl %ecx
cmovsl %r15d, %ecx
cmpl %ebx, %ecx
jg 0x70c67
movl %ebp, %edi
callq 0x70b7f
movl 0xa5739(%rip), %eax     # 0x1163a0
decl %r15d
cmpl %eax, %ebp
jl 0x70c46
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbRedisProtocolToHuman
char *ldbRedisProtocolToHuman(sds *o, char *reply) {
    char *p = reply;
    switch(*p) {
    case ':': p = ldbRedisProtocolToHuman_Int(o,reply); break;
    case '$': p = ldbRedisProtocolToHuman_Bulk(o,reply); break;
    case '+': p = ldbRedisProtocolToHuman_Status(o,reply); break;
    case '-': p = ldbRedisProtocolToHuman_Status(o,reply); break;
    case '*': p = ldbRedisProtocolToHuman_MultiBulk(o,reply); break;
    }
    return p;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movzbl (%rsi), %ecx
leal -0x24(%rcx), %eax
cmpl $0x9, %eax
ja 0x710bd
leaq 0x5880a(%rip), %rcx     # 0xc9890
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x1(%rbx), %rdi
movl $0xd, %esi
callq 0x267f0
movq %rax, %r15
movq (%r14), %rdi
movq %rax, %rdx
subq %rbx, %rdx
movq %rbx, %rsi
callq 0x37c36
movq %rax, (%r14)
addq $0x2, %r15
movq %r15, %rbx
jmp 0x710f4
cmpl $0x3a, %ecx
jne 0x710f4
leaq 0x1(%rbx), %r15
movq %r15, %rdi
movl $0xd, %esi
callq 0x267f0
movq %rax, %r12
movq (%r14), %rdi
notq %rbx
addq %rax, %rbx
movq %r15, %rsi
movq %rbx, %rdx
callq 0x36ad1
movq %rax, (%r14)
addq $0x2, %r12
movq %r12, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x7117b
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x71241
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbRedisProtocolToHuman_Bulk
char *ldbRedisProtocolToHuman_Bulk(sds *o, char *reply) {
    char *p = strchr(reply+1,'\r');
    long long bulklen;

    string2ll(reply+1,p-reply-1,&bulklen);
    if (bulklen == -1) {
        *o = sdscatlen(*o,"NULL",4);
        return p+2;
    } else {
        *o = sdscatrepr(*o,p+2,bulklen);
        return p+2+bulklen+2;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x1(%rsi), %r12
movq %r12, %rdi
movl $0xd, %esi
callq 0x267f0
movq %rax, %r14
notq %r15
addq %rax, %r15
leaq 0x8(%rsp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x40065
movq (%r13), %rdx
movq (%rbx), %rdi
cmpq $-0x1, %rdx
je 0x711db
addq $0x2, %r14
movq %r14, %rsi
callq 0x37c36
addq 0x8(%rsp), %r14
jmp 0x711ec
leaq 0x525f1(%rip), %rsi     # 0xc37d3
movl $0x4, %edx
callq 0x36ad1
movq %rax, (%rbx)
addq $0x2, %r14
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbRedisProtocolToHuman_MultiBulk
char *ldbRedisProtocolToHuman_MultiBulk(sds *o, char *reply) {
    char *p = strchr(reply+1,'\r');
    long long mbulklen;
    int j = 0;

    string2ll(reply+1,p-reply-1,&mbulklen);
    p += 2;
    if (mbulklen == -1) {
        *o = sdscatlen(*o,"NULL",4);
        return p;
    }
    *o = sdscatlen(*o,"[",1);
    for (j = 0; j < mbulklen; j++) {
        p = ldbRedisProtocolToHuman(o,p);
        if (j != mbulklen-1) *o = sdscatlen(*o,",",1);
    }
    *o = sdscatlen(*o,"]",1);
    return p;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x1(%rsi), %r12
movq %r12, %rdi
movl $0xd, %esi
callq 0x267f0
movq %rax, %r14
notq %r15
addq %rax, %r15
leaq 0x8(%rsp), %r13
movq %r12, %rdi
movq %r15, %rsi
movq %r13, %rdx
callq 0x40065
addq $0x2, %r14
cmpq $-0x1, (%r13)
movq (%rbx), %rdi
je 0x71305
leaq 0x5950b(%rip), %rsi     # 0xca7a1
movl $0x1, %edx
callq 0x36ad1
movq %rax, (%rbx)
cmpq $0x0, 0x8(%rsp)
jle 0x712f4
xorl %r12d, %r12d
leaq 0x58134(%rip), %r15     # 0xc93e9
movq %rbx, %rdi
movq %r14, %rsi
callq 0x71066
movq %rax, %r14
movq 0x8(%rsp), %rax
leaq -0x1(%rax), %rcx
cmpq %rcx, %r12
je 0x712e9
movq (%rbx), %rdi
movl $0x1, %edx
movq %r15, %rsi
callq 0x36ad1
movq %rax, (%rbx)
movq 0x8(%rsp), %rax
incq %r12
cmpq %r12, %rax
jg 0x712b5
movq (%rbx), %rax
leaq 0x5f2a7(%rip), %rsi     # 0xd05a2
movl $0x1, %edx
movq %rax, %rdi
jmp 0x71311
leaq 0x524c7(%rip), %rsi     # 0xc37d3
movl $0x4, %edx
callq 0x36ad1
movq %rax, (%rbx)
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbPrint
void ldbPrint(lua_State *lua, char *varname) {
    lua_Debug ar;

    int l = 0; /* Stack level. */
    while (lua_getstack(lua,l,&ar) != 0) {
        l++;
        const char *name;
        int i = 1; /* Variable index. */
        while((name = lua_getlocal(lua,&ar,i)) != NULL) {
            i++;
            if (strcmp(varname,name) == 0) {
                ldbLogStackValue(lua,"<value> ");
                lua_pop(lua,1);
                return;
            } else {
                lua_pop(lua,1); /* Discard the var name on the stack. */
            }
        }
    }

    /* Let's try with global vars in two selected cases */
    if (!strcmp(varname,"ARGV") || !strcmp(varname,"KEYS")) {
        lua_getglobal(lua, varname);
        ldbLogStackValue(lua,"<value> ");
        lua_pop(lua,1);
    } else {
        ldbLog(sdsnew("No such variable."));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorl %ebp, %ebp
leaq 0x8(%rsp), %rdx
xorl %esi, %esi
callq 0x870c1
testl %eax, %eax
je 0x713ba
leaq 0x8(%rsp), %r15
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %edx
callq 0x8710f
testq %rax, %rax
je 0x713a7
movl $0x2, %r12d
movq %r14, %rdi
movq %rax, %rsi
callq 0x268f0
testl %eax, %eax
je 0x7140d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x85d59
movq %rbx, %rdi
movq %r15, %rsi
movl %r12d, %edx
callq 0x8710f
incl %r12d
testq %rax, %rax
jne 0x71371
incl %ebp
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x870c1
testl %eax, %eax
jne 0x71356
leaq 0x59037(%rip), %rsi     # 0xca3f8
movq %r14, %rdi
callq 0x268f0
testl %eax, %eax
je 0x713fd
leaq 0x5901f(%rip), %rsi     # 0xca3f3
movq %r14, %rdi
callq 0x268f0
testl %eax, %eax
je 0x713fd
leaq 0x59408(%rip), %rdi     # 0xca7ef
callq 0x362b0
movq 0xa4e7d(%rip), %rdi     # 0x116270
movq %rax, %rsi
callq 0x2b24b
jmp 0x71429
movq %rbx, %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
movq %r14, %rdx
callq 0x8675f
leaq 0x593d2(%rip), %rsi     # 0xca7e6
movq %rbx, %rdi
callq 0x7103f
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x85d59
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbPrintAll
void ldbPrintAll(lua_State *lua) {
    lua_Debug ar;
    int vars = 0;

    if (lua_getstack(lua,0,&ar) != 0) {
        const char *name;
        int i = 1; /* Variable index. */
        while((name = lua_getlocal(lua,&ar,i)) != NULL) {
            i++;
            if (!strstr(name,"(*temporary)")) {
                sds prefix = sdscatprintf(sdsempty(),"<value> %s = ",name);
                ldbLogStackValue(lua,prefix);
                sdsfree(prefix);
                vars++;
            }
            lua_pop(lua,1);
        }
    }

    if (vars == 0) {
        ldbLog(sdsnew("No local variables in the current context."));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movq %rsp, %rdx
xorl %esi, %esi
callq 0x870c1
testl %eax, %eax
je 0x714f5
movq %rsp, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x8710f
testq %rax, %rax
je 0x714f5
movq %rax, %r13
movl $0x2, %ebp
leaq 0x5937d(%rip), %r14     # 0xca801
movq %rsp, %r12
xorl %r15d, %r15d
movq %r13, %rdi
movq %r14, %rsi
callq 0x266b0
testq %rax, %rax
jne 0x714cc
callq 0x3628d
movq %rax, %rdi
leaq 0x59365(%rip), %rsi     # 0xca80e
movq %r13, %rdx
xorl %eax, %eax
callq 0x36f2d
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7103f
movq %r13, %rdi
callq 0x36330
incl %r15d
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x85d59
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
callq 0x8710f
movq %rax, %r13
incl %ebp
testq %rax, %rax
jne 0x7148a
testl %r15d, %r15d
jne 0x71510
leaq 0x59320(%rip), %rdi     # 0xca81c
callq 0x362b0
movq 0xa4d68(%rip), %rdi     # 0x116270
movq %rax, %rsi
callq 0x2b24b
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbRedis
void ldbRedis(lua_State *lua, sds *argv, int argc) {
    int j, saved_rc = server.lua_replicate_commands;

    lua_getglobal(lua,"redis");
    lua_pushstring(lua,"call");
    lua_gettable(lua,-2);       /* Stack: redis, redis.call */
    for (j = 1; j < argc; j++)
        lua_pushlstring(lua,argv[j],sdslen(argv[j]));
    ldb.step = 1;               /* Force redis.call() to log. */
    server.lua_replicate_commands = 1;
    lua_pcall(lua,argc-1,1,0);  /* Stack: redis, result */
    ldb.step = 0;               /* Disable logging. */
    server.lua_replicate_commands = saved_rc;
    lua_pop(lua,2);             /* Discard the result and clean the stack. */
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8ffa0(%rip), %rax     # 0x1018a8
movl 0xa00(%rax), %eax
movl %eax, 0x4(%rsp)
leaq 0x4b7af(%rip), %rdx     # 0xbd0c8
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x8675f
leaq 0x60320(%rip), %rsi     # 0xd1c4a
movq %rbx, %rdi
callq 0x86521
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x8673f
cmpl $0x2, %ebp
jl 0x7199d
movl %ebp, %r13d
movl $0x1, %r15d
leaq 0x57fa0(%rip), %r12     # 0xc98f4
movq (%r14,%r15,8), %rsi
movzbl -0x1(%rsi), %edx
movl %edx, %eax
andl $0x7, %eax
cmpl $0x4, %eax
ja 0x7198b
movslq (%r12,%rax,4), %rax
addq %r12, %rax
jmpq *%rax
shrl $0x3, %edx
jmp 0x7198d
movq -0x11(%rsi), %rdx
jmp 0x7198d
movzwl -0x5(%rsi), %edx
jmp 0x7198d
movl -0x9(%rsi), %edx
jmp 0x7198d
movzbl -0x3(%rsi), %edx
jmp 0x7198d
xorl %edx, %edx
movq %rbx, %rdi
callq 0x864ca
incq %r15
cmpq %r15, %r13
jne 0x71954
movl $0x1, %eax
movl %eax, 0xa49e4(%rip)     # 0x11638c
leaq 0x8fef9(%rip), %r14     # 0x1018a8
movl %eax, 0xa00(%r14)
decl %ebp
movq %rbx, %rdi
movl %ebp, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x86bad
movl $0x0, 0xa49b9(%rip)     # 0x11638c
movl 0x4(%rsp), %eax
movl %eax, 0xa00(%r14)
movq %rbx, %rdi
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x85d59
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbTrace
void ldbTrace(lua_State *lua) {
    lua_Debug ar;
    int level = 0;

    while(lua_getstack(lua,level,&ar)) {
        lua_getinfo(lua,"Snl",&ar);
        if(strstr(ar.short_src,"user_script") != NULL) {
            ldbLog(sdscatprintf(sdsempty(),"%s %s:",
                (level == 0) ? "In" : "From",
                ar.name ? ar.name : "top level"));
            ldbLogSourceLine(ar.currentline);
        }
        level++;
    }
    if (level == 0) {
        ldbLog(sdsnew("<error> Can't retrieve Lua stack."));
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
leaq 0x10(%rsp), %rdx
xorl %esi, %esi
callq 0x870c1
testl %eax, %eax
je 0x71ad8
movl %eax, 0xc(%rsp)
movl $0x1, %r14d
leaq 0x48(%rsp), %r15
leaq 0x58f04(%rip), %r12     # 0xca93b
leaq 0x10(%rsp), %r13
leaq 0x587ec(%rip), %rbp     # 0xca22f
movq %rbx, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x8723a
movq %r15, %rdi
movq %rbp, %rsi
callq 0x266b0
testq %rax, %rax
je 0x71ab8
callq 0x3628d
cmpl $0x1, %r14d
leaq 0x58ed8(%rip), %rdx     # 0xca949
leaq 0x58ece(%rip), %rcx     # 0xca946
cmoveq %rcx, %rdx
movq 0x18(%rsp), %rcx
testq %rcx, %rcx
leaq 0x58ec3(%rip), %rsi     # 0xca94e
cmoveq %rsi, %rcx
movq %rax, %rdi
leaq 0x58ea6(%rip), %rsi     # 0xca93f
xorl %eax, %eax
callq 0x36f2d
movq 0xa47c9(%rip), %rdi     # 0x116270
movq %rax, %rsi
callq 0x2b24b
movl 0x38(%rsp), %edi
callq 0x70b7f
movq %rbx, %rdi
movl %r14d, %esi
movq %r13, %rdx
callq 0x870c1
incl %r14d
testl %eax, %eax
jne 0x71a43
cmpl $0x0, 0xc(%rsp)
jne 0x71af3
leaq 0x58e79(%rip), %rdi     # 0xca958
callq 0x362b0
movq 0xa4785(%rip), %rdi     # 0x116270
movq %rax, %rsi
callq 0x2b24b
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/scripting.c
// Function: ldbMaxlen
void ldbMaxlen(sds *argv, int argc) {
    if (argc == 2) {
        int newval = atoi(argv[1]);
        ldb.maxlen_hint_sent = 1; /* User knows about this command. */
        if (newval != 0 && newval <= 60) newval = 60;
        ldb.maxlen = newval;
    }
    if (ldb.maxlen) {
        ldbLog(sdscatprintf(sdsempty(),"<value> replies are truncated at %d bytes.",(int)ldb.maxlen));
    } else {
        ldbLog(sdscatprintf(sdsempty(),"<value> replies are unlimited."));
    }
}

// Assembly:
pushq %rbx
cmpl $0x2, %esi
jne 0x71b3b
movq 0x8(%rdi), %rdi
callq 0x26760
movl $0x1, 0xa489a(%rip)     # 0x1163b8
cmpl $0x3d, %eax
cltq
movl $0x3c, %ebx
cmovgeq %rax, %rbx
testl %eax, %eax
cmoveq %rax, %rbx
movq %rbx, 0xa4877(%rip)     # 0x1163b0
jmp 0x71b42
movq 0xa486e(%rip), %rbx     # 0x1163b0
callq 0x3628d
testq %rbx, %rbx
je 0x71b65
movl 0xa485e(%rip), %edx     # 0x1163b0
leaq 0x58e21(%rip), %rsi     # 0xca97a
movq %rax, %rdi
xorl %eax, %eax
callq 0x36f2d
jmp 0x71b76
leaq 0x58e39(%rip), %rsi     # 0xca9a5
movq %rax, %rdi
xorl %eax, %eax
callq 0x36f2d
movq 0xa46f3(%rip), %rdi     # 0x116270
movq %rax, %rsi
popq %rbx
jmp 0x2b24b
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bio.c
// Function: bioInit
void bioInit(void) {
    pthread_attr_t attr;
    pthread_t thread;
    size_t stacksize;
    int j;

    /* Initialization of state vars and objects */
    for (j = 0; j < BIO_NUM_OPS; j++) {
        pthread_mutex_init(&bio_mutex[j],NULL);
        pthread_cond_init(&bio_condvar[j],NULL);
        bio_jobs[j] = listCreate();
        bio_pending[j] = 0;
    }

    /* Set the stack size as by default it may be small in some system */
    pthread_attr_init(&attr);
    pthread_attr_getstacksize(&attr,&stacksize);
    if (!stacksize) stacksize = 1; /* The world is full of Solaris Fixes */
    while (stacksize < REDIS_THREAD_STACK_SIZE) stacksize *= 2;
    pthread_attr_setstacksize(&attr, stacksize);

    /* Ready to spawn our threads. We use the single argument the thread
     * function accepts in order to pass the job ID the thread is
     * responsible of. */
    for (j = 0; j < BIO_NUM_OPS; j++) {
        void *arg = (void*)(unsigned long) j;
        if (pthread_create(&thread,&attr,bioProcessBackgroundJobs,arg) != 0) {
            serverLog(LL_WARNING,"Fatal: Can't initialize Background Jobs.");
            exit(1);
        }
        bio_threads[j] = thread;
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
leaq 0xa42fb(%rip), %rdi     # 0x1165e0
xorl %ebx, %ebx
xorl %esi, %esi
callq 0x26430
leaq 0xa433b(%rip), %rdi     # 0x116630
xorl %esi, %esi
callq 0x26520
callq 0x2b17c
movq %rax, 0xa4388(%rip)     # 0x116690
movq %rbx, 0xa4391(%rip)     # 0x1166a0
leaq 0xa42f2(%rip), %rdi     # 0x116608
xorl %esi, %esi
callq 0x26430
leaq 0xa433c(%rip), %rdi     # 0x116660
xorl %esi, %esi
callq 0x26520
callq 0x2b17c
movq %rax, 0xa4361(%rip)     # 0x116698
movq %rbx, 0xa436a(%rip)     # 0x1166a8
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x26a50
movq %rsp, %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x268e0
movq (%r14), %rsi
testq %rsi, %rsi
je 0x7236c
cmpq $0x3fffff, %rsi         # imm = 0x3FFFFF
jbe 0x72371
jmp 0x72383
movl $0x1, %esi
movq %rsi, %rax
addq %rsi, %rsi
cmpq $0x200000, %rax         # imm = 0x200000
jb 0x72371
movq %rsi, (%rsp)
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x267c0
movb $0x1, %bpl
xorl %r14d, %r14d
leaq 0x68(%rip), %r15        # 0x72405
leaq 0x8(%rsp), %r12
leaq 0xa4307(%rip), %r13     # 0x1166b0
movq %r12, %rdi
movq %rbx, %rsi
movq %r15, %rdx
movq %r14, %rcx
callq 0x26490
testl %eax, %eax
jne 0x723e8
movq 0x8(%rsp), %rax
movq %rax, (%r13,%r14,8)
movl $0x1, %r14d
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x723a9
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58d30(%rip), %rsi     # 0xcb11f
movl $0x3, %edi
xorl %eax, %eax
callq 0x2fdad
movl $0x1, %edi
callq 0x262c0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bio.c
// Function: bioCreateBackgroundJob
void bioCreateBackgroundJob(int type, void *arg1, void *arg2, void *arg3) {
    struct bio_job *job = zmalloc(sizeof(*job));

    job->time = time(NULL);
    job->arg1 = arg1;
    job->arg2 = arg2;
    job->arg3 = arg3;
    pthread_mutex_lock(&bio_mutex[type]);
    listAddNodeTail(bio_jobs[type],job);
    bio_pending[type]++;
    pthread_cond_signal(&bio_condvar[type]);
    pthread_mutex_unlock(&bio_mutex[type]);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
movl $0x20, %edi
callq 0x382d1
movq %rax, %r12
xorl %edi, %edi
callq 0x26cd0
movq %rax, (%r12)
movq %r15, 0x8(%r12)
movq %r14, 0x10(%r12)
movq %rbx, 0x18(%r12)
movslq %ebp, %r14
leaq (%r14,%r14,4), %rax
leaq 0xa4056(%rip), %rcx     # 0x1165e0
leaq (%rcx,%rax,8), %rbx
movq %rbx, %rdi
callq 0x26b20
leaq 0xa40f3(%rip), %rax     # 0x116690
movq (%rax,%r14,8), %rdi
movq %r12, %rsi
callq 0x2b24b
leaq 0xa40f0(%rip), %rax     # 0x1166a0
incq (%rax,%r14,8)
leaq (%r14,%r14,2), %rax
shlq $0x4, %rax
leaq 0xa406d(%rip), %rdi     # 0x116630
addq %rax, %rdi
callq 0x26280
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x26c30
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bio.c
// Function: bioPendingJobsOfType
unsigned long long bioPendingJobsOfType(int type) {
    unsigned long long val;
    pthread_mutex_lock(&bio_mutex[type]);
    val = bio_pending[type];
    pthread_mutex_unlock(&bio_mutex[type]);
    return val;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movslq %edi, %r14
leaq (%r14,%r14,4), %rax
leaq 0xa3ff3(%rip), %rcx     # 0x1165e0
leaq (%rcx,%rax,8), %rbx
movq %rbx, %rdi
callq 0x26b20
leaq 0xa40a0(%rip), %rax     # 0x1166a0
movq (%rax,%r14,8), %r14
movq %rbx, %rdi
callq 0x26c30
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bio.c
// Function: bioKillThreads
void bioKillThreads(void) {
    int err, j;

    for (j = 0; j < BIO_NUM_OPS; j++) {
        if (pthread_cancel(bio_threads[j]) == 0) {
            if ((err = pthread_join(bio_threads[j],NULL)) != 0) {
                serverLog(LL_WARNING,
                    "Bio thread for job type #%d can be joined: %s",
                        j, strerror(err));
            } else {
                serverLog(LL_WARNING,
                    "Bio thread for job type #%d terminated",j);
            }
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movb $0x1, %bpl
leaq 0xa4087(%rip), %r12     # 0x1166b0
leaq 0x58ba6(%rip), %rbx     # 0xcb1d6
leaq 0x58b71(%rip), %r14     # 0xcb1a8
xorl %r15d, %r15d
movq (%r12,%r15,8), %rdi
callq 0x267a0
testl %eax, %eax
jne 0x72686
movq (%r12,%r15,8), %rdi
xorl %esi, %esi
callq 0x26080
testl %eax, %eax
je 0x72674
movl %eax, %edi
callq 0x26680
movl $0x3, %edi
movq %r14, %rsi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0x2fdad
jmp 0x72686
movl $0x3, %edi
movq %rbx, %rsi
movl %r15d, %edx
xorl %eax, %eax
callq 0x2fdad
movl $0x1, %r15d
testb $0x1, %bpl
movl $0x0, %ebp
jne 0x7263a
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/rio.c
// Function: rioInitWithFile
void rioInitWithFile(rio *r, FILE *fp) {
    *r = rioFileIO;
    r->io.file.fp = fp;
    r->io.file.buffered = 0;
    r->io.file.autosync = 0;
}

// Assembly:
movq %rsi, %rax
movq %rdi, %rdx
leaq 0x87719(%rip), %rsi     # 0xf9de8
movl $0xd, %ecx
rep  movsq (%rsi), %es:(%rdi)
movq %rax, 0x40(%rdx)
xorps %xmm0, %xmm0
movups %xmm0, 0x48(%rdx)
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/rio.c
// Function: rioInitWithFdset
void rioInitWithFdset(rio *r, int *fds, int numfds) {
    int j;

    *r = rioFdsetIO;
    r->io.fdset.fds = zmalloc(sizeof(int)*numfds);
    r->io.fdset.state = zmalloc(sizeof(int)*numfds);
    memcpy(r->io.fdset.fds,fds,sizeof(int)*numfds);
    for (j = 0; j < numfds; j++) r->io.fdset.state[j] = 0;
    r->io.fdset.numfds = numfds;
    r->io.fdset.pos = 0;
    r->io.fdset.buf = sdsempty();
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x87756(%rip), %rsi     # 0xf9e50
movl $0xd, %ecx
rep  movsq (%rsi), %es:(%rdi)
movslq %edx, %r12
leaq (,%r12,4), %r15
movq %r15, %rdi
callq 0x382d1
movq %rax, 0x40(%rbx)
movq %r15, %rdi
callq 0x382d1
movq %rax, 0x48(%rbx)
movq 0x40(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x26c50
testl %r12d, %r12d
jle 0x72750
movl %ebp, %eax
xorl %ecx, %ecx
movq 0x48(%rbx), %rdx
movl $0x0, (%rdx,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x7273d
movl %ebp, 0x50(%rbx)
movq $0x0, 0x58(%rbx)
callq 0x3628d
movq %rax, 0x60(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/rio.c
// Function: rioWriteBulkCount
size_t rioWriteBulkCount(rio *r, char prefix, int count) {
    char cbuf[128];
    int clen;

    cbuf[0] = prefix;
    clen = 1+ll2string(cbuf+1,sizeof(cbuf)-1,count);
    cbuf[clen++] = '\r';
    cbuf[clen++] = '\n';
    if (rioWrite(r,cbuf,clen) == 0) return 0;
    return clen;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x80, %rsp
movq %rdi, %rbx
leaq 0x1(%rsp), %rdi
movb %sil, -0x1(%rdi)
movslq %edx, %rdx
movl $0x7f, %esi
callq 0x3ff83
cltq
movq %rsp, %r15
movw $0xa0d, 0x1(%rax,%r15)  # imm = 0xA0D
addl $0x3, %eax
je 0x7285d
movslq %eax, %r14
movq %r14, %r13
movq 0x20(%rbx), %rax
movq 0x38(%rbx), %rcx
cmpq %r13, %rcx
movq %r13, %r12
cmovbq %rcx, %r12
testq %rcx, %rcx
cmoveq %r13, %r12
testq %rax, %rax
je 0x7283e
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *%rax
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq *0x8(%rbx)
testq %rax, %rax
je 0x7285d
addq %r12, %r15
addq %r12, 0x30(%rbx)
subq %r12, %r13
jne 0x72815
jmp 0x72860
xorl %r14d, %r14d
movq %r14, %rax
addq $0x80, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/rio.c
// Function: rioWriteBulkString
size_t rioWriteBulkString(rio *r, const char *buf, size_t len) {
    size_t nwritten;

    if ((nwritten = rioWriteBulkCount(r,'$',len)) == 0) return 0;
    if (len > 0 && rioWrite(r,buf,len) == 0) return 0;
    if (rioWrite(r,"\r\n",2) == 0) return 0;
    return nwritten+len+2;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r13
movq %rdi, %r14
movl $0x24, %esi
callq 0x727d4
testq %rax, %rax
je 0x72956
movq %rax, (%rsp)
testq %rbx, %rbx
je 0x728f1
xorl %r15d, %r15d
movq %rbx, %r12
movq 0x20(%r14), %rax
movq 0x38(%r14), %rcx
cmpq %r12, %rcx
movq %r12, %rbp
cmovbq %rcx, %rbp
testq %rcx, %rcx
cmoveq %r12, %rbp
testq %rax, %rax
je 0x728d3
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *%rax
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *0x8(%r14)
testq %rax, %rax
je 0x72959
addq %rbp, %r13
addq %rbp, 0x30(%r14)
subq %rbp, %r12
jne 0x728aa
leaq 0x514e4(%rip), %r13     # 0xc3ddc
movl $0x2, %r12d
xorl %r15d, %r15d
movq 0x20(%r14), %rax
movq 0x38(%r14), %rcx
cmpq %r12, %rcx
movq %r12, %rbp
cmovbq %rcx, %rbp
testq %rcx, %rcx
cmoveq %r12, %rbp
testq %rax, %rax
je 0x7292a
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *%rax
movq %r14, %rdi
movq %r13, %rsi
movq %rbp, %rdx
callq *0x8(%r14)
testq %rax, %rax
je 0x72959
addq %rbp, %r13
addq %rbp, 0x30(%r14)
subq %rbp, %r12
jne 0x72901
movq (%rsp), %rax
leaq (%rbx,%rax), %r15
addq $0x2, %r15
jmp 0x72959
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/rio.c
// Function: rioBufferRead
static size_t rioBufferRead(rio *r, void *buf, size_t len) {
    if (sdslen(r->io.buffer.ptr)-r->io.buffer.pos < len)
        return 0; /* not enough buffer to return len bytes. */
    memcpy(buf,r->io.buffer.ptr+r->io.buffer.pos,len);
    r->io.buffer.pos += len;
    return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
movq 0x40(%rdi), %rax
movzbl -0x1(%rax), %ecx
movl %ecx, %edx
andl $0x7, %edx
cmpl $0x4, %edx
ja 0x72a23
leaq 0x58802(%rip), %rdi     # 0xcb200
movslq (%rdi,%rdx,4), %rdx
addq %rdi, %rdx
jmpq *%rdx
shrl $0x3, %ecx
jmp 0x72a25
movq -0x11(%rax), %rcx
jmp 0x72a25
movzwl -0x5(%rax), %ecx
jmp 0x72a25
movl -0x9(%rax), %ecx
jmp 0x72a25
movzbl -0x3(%rax), %ecx
jmp 0x72a25
xorl %ecx, %ecx
movq 0x48(%r14), %rdx
subq %rdx, %rcx
cmpq %rbx, %rcx
jae 0x72a35
xorl %eax, %eax
jmp 0x72a4f
addq %rdx, %rax
movq %rsi, %rdi
movq %rax, %rsi
movq %rbx, %rdx
callq 0x26c50
addq %rbx, 0x48(%r14)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/rio.c
// Function: rioFileWrite
static size_t rioFileWrite(rio *r, const void *buf, size_t len) {
    size_t retval;

    retval = fwrite(buf,len,1,r->io.file.fp);
    r->io.file.buffered += len;

    if (r->io.file.autosync &&
        r->io.file.buffered >= r->io.file.autosync)
    {
        fflush(r->io.file.fp);
        aof_fsync(fileno(r->io.file.fp));
        r->io.file.buffered = 0;
    }
    return retval;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rdi, %rbx
movq 0x40(%rdi), %rcx
movl $0x1, %edx
movq %rsi, %rdi
movq %r15, %rsi
callq 0x26b10
movq %rax, %r14
movq 0x50(%rbx), %rax
addq 0x48(%rbx), %r15
movq %r15, 0x48(%rbx)
testq %rax, %rax
sete %cl
cmpq %rax, %r15
setl %al
orb %cl, %al
jne 0x72b00
movq 0x40(%rbx), %rdi
callq 0x26ce0
movq 0x40(%rbx), %rdi
callq 0x26070
movl %eax, %edi
callq 0x26570
movq $0x0, 0x48(%rbx)
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/rand.c
// Function: redisLrand48
static void next(void) {
    uint32_t p[2], q[2], r[2], carry0, carry1;

    MUL(a[0], x[0], p);
    ADDEQU(p[0], c, carry0);
    ADDEQU(p[1], carry0, carry1);
    MUL(a[0], x[1], q);
    ADDEQU(p[1], q[0], carry0);
    MUL(a[1], x[0], r);
    x[2] = LOW(carry0 + carry1 + CARRY(p[1], r[0]) + q[1] + r[1] +
            a[0] * x[2] + a[1] * x[1] + a[2] * x[0]);
    x[1] = LOW(p[1] + r[0]);
    x[0] = LOW(p[0]);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl 0x8e586(%rip), %edi     # 0x101298
imull $0xe66d, %edi, %ecx     # imm = 0xE66D
movl $0xffff, %edx           # imm = 0xFFFF
movl %ecx, %eax
andl %edx, %eax
movl %ecx, %esi
shrl $0x10, %esi
addl $0xb, %ecx
andl %edx, %ecx
cmpl $0xfff5, %eax           # imm = 0xFFF5
sbbl $-0x1, %esi
movl %esi, %eax
andl %edx, %eax
movl 0x8e55e(%rip), %r10d    # 0x10129c
imull $0xe66d, %r10d, %r11d   # imm = 0xE66D
movl %r11d, %r8d
andl %edx, %r8d
addl %eax, %r8d
leal (%rsi,%r11), %eax
shrl $0x10, %r11d
movl %eax, %ebx
andl $0xfffc, %ebx           # imm = 0xFFFC
imull $0xdeec, %edi, %r9d     # imm = 0xDEEC
movl %r9d, %ebp
andl %edx, %ebp
addl %ebx, %ebp
movl %r9d, %ebx
shrl $0x10, %ebx
imull $0xe66d, 0x8e523(%rip), %r14d # imm = 0xE66D
addl %r11d, %r14d
imull $0xdeec, %r10d, %r10d   # imm = 0xDEEC
leal (%rdi,%rdi,4), %edi
addl %r10d, %edi
addl %ebx, %edi
addl %r14d, %edi
movl $0x10000, %r10d         # imm = 0x10000
cmpl %r10d, %esi
sbbl $-0x1, %edi
cmpl %r10d, %r8d
sbbl $-0x1, %edi
cmpl %r10d, %ebp
sbbl $-0x1, %edi
andl %edx, %edi
movl %edi, 0x8e4ee(%rip)     # 0x1012a0
addl %r9d, %eax
andl %edx, %eax
movl %eax, 0x8e4df(%rip)     # 0x10129c
movl %ecx, 0x8e4d5(%rip)     # 0x101298
shll $0xf, %edi
shrl %eax
orl %edi, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_progress_start
void memtest_progress_start(char *title, int pass) {
    int j;

    printf("\x1b[H\x1b[2J");    /* Cursor home, clear screen. */
    /* Fill with dots. */
    for (j = 0; j < ws.ws_col*(ws.ws_row-2); j++) printf(".");
    printf("Please keep the test running several minutes per GB of memory.\n");
    printf("Also check http://www.memtest86.com/ and http://pyropus.ca/software/memtester/");
    printf("\x1b[H\x1b[2K");          /* Cursor home, clear current line.  */
    printf("%s [%d]\n", title, pass); /* Print title. */
    progress_printed = 0;
    progress_full = ws.ws_col*(ws.ws_row-3);
    fflush(stdout);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
leaq 0x58460(%rip), %rdi     # 0xcb25c
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x260a0
movzwl 0xa38b6(%rip), %eax     # 0x1166c2
movzwl 0xa38ad(%rip), %ecx     # 0x1166c0
addl $-0x2, %ecx
imull %eax, %ecx
testl %ecx, %ecx
jle 0x72e41
movl $0x2e, %edi
callq 0x26320
incl %ebp
movzwl 0xa3892(%rip), %eax     # 0x1166c2
movzwl 0xa3889(%rip), %ecx     # 0x1166c0
addl $-0x2, %ecx
imull %eax, %ecx
cmpl %ecx, %ebp
jl 0x72e1d
leaq 0x58625(%rip), %rdi     # 0xcb46d
callq 0x26250
leaq 0x58410(%rip), %rdi     # 0xcb264
xorl %eax, %eax
callq 0x260a0
leaq 0x58451(%rip), %rdi     # 0xcb2b3
xorl %eax, %eax
callq 0x260a0
leaq 0x5844b(%rip), %rdi     # 0xcb2bb
movq %r14, %rsi
movl %ebx, %edx
xorl %eax, %eax
callq 0x260a0
movq $0x0, 0xa3841(%rip) # 0x1166c8
movzwl 0xa3834(%rip), %eax     # 0x1166c2
movzwl 0xa382b(%rip), %ecx     # 0x1166c0
addl $-0x3, %ecx
imull %eax, %ecx
movslq %ecx, %rax
movq %rax, 0xa382b(%rip)     # 0x1166d0
movq 0x8a13c(%rip), %rax     # 0xfcfe8
movq (%rax), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x26ce0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_progress_step
void memtest_progress_step(size_t curr, size_t size, char c) {
    size_t chars = ((unsigned long long)curr*progress_full)/size, j;

    for (j = 0; j < chars-progress_printed; j++) printf("%c",c);
    progress_printed = chars;
    fflush(stdout);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ecx
movq %rdi, %rax
imulq 0xa37f9(%rip), %rax     # 0x1166d0
xorl %edx, %edx
divq %rsi
movq %rax, %rbx
cmpq 0xa37e2(%rip), %rax     # 0x1166c8
je 0x72f07
movsbl %cl, %ebp
xorl %r14d, %r14d
movl %ebp, %edi
callq 0x26320
incq %r14
movq %rbx, %rax
subq 0xa37c6(%rip), %rax     # 0x1166c8
cmpq %rax, %r14
jb 0x72eee
movq %rbx, 0xa37ba(%rip)     # 0x1166c8
movq 0x8a0d3(%rip), %rax     # 0xfcfe8
movq (%rax), %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x26ce0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_addressing
int memtest_addressing(unsigned long *l, size_t bytes, int interactive) {
    unsigned long words = bytes/sizeof(unsigned long);
    unsigned long j, *p;

    /* Fill */
    p = l;
    for (j = 0; j < words; j++) {
        *p = (unsigned long)p;
        p++;
        if ((j & 0xffff) == 0 && interactive)
            memtest_progress_step(j,words*2,'A');
    }
    /* Test */
    p = l;
    for (j = 0; j < words; j++) {
        if (*p != (unsigned long)p) {
            if (interactive) {
                printf("\n*** MEMORY ADDRESSING ERROR: %p contains %lu\n",
                    (void*) p, *p);
                exit(1);
            }
            return 1;
        }
        p++;
        if ((j & 0xffff) == 0 && interactive)
            memtest_progress_step(j+words,words*2,'A');
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x8, %rsi
jb 0x72fce
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r14
movq %rsi, %r13
shrq $0x3, %r13
leaq (,%r13,2), %rax
movq %rax, (%rsp)
xorl %r12d, %r12d
movq %rdi, %rbx
testl %ebp, %ebp
sete %al
movq %rbx, (%r14,%r12,8)
testw %r12w, %r12w
setne %cl
orb %al, %cl
jne 0x72f7c
movq %r12, %rdi
movq (%rsp), %rsi
movl $0x41, %edx
callq 0x72ec6
incq %r12
addq $0x8, %rbx
cmpq %r12, %r13
jne 0x72f57
cmpq $0x8, %r15
jb 0x72fce
xorl %r15d, %r15d
movq %r14, %r12
movq (%r14), %rdx
cmpq %rdx, %r12
jne 0x72fdf
testl %ebp, %ebp
sete %al
testw %r15w, %r15w
setne %cl
orb %al, %cl
jne 0x72fbe
leaq (%r15,%r13), %rdi
movq (%rsp), %rsi
movl $0x41, %edx
callq 0x72ec6
addq $0x8, %r14
incq %r15
addq $0x8, %r12
cmpq %r15, %r13
jne 0x72f94
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %eax
testl %ebp, %ebp
je 0x72fd0
leaq 0x582d5(%rip), %rdi     # 0xcb2c4
movq %r14, %rsi
xorl %eax, %eax
callq 0x260a0
movl $0x1, %edi
callq 0x262c0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_fill_random
void memtest_fill_random(unsigned long *l, size_t bytes, int interactive) {
    unsigned long step = 4096/sizeof(unsigned long);
    unsigned long words = bytes/sizeof(unsigned long)/2;
    unsigned long iwords = words/step;  /* words per iteration */
    unsigned long off, w, *l1, *l2;
    uint64_t rseed = UINT64_C(0xd13133de9afdb566); /* Just a random seed. */
    uint64_t rout = 0;

    assert((bytes & 4095) == 0);
    for (off = 0; off < step; off++) {
        l1 = l+off;
        l2 = l1+words;
        for (w = 0; w < iwords; w++) {
            xorshift64star_next();
            *l1 = *l2 = (unsigned long) rout;
            l1 += step;
            l2 += step;
            if ((w & 0xffff) == 0 && interactive)
                memtest_progress_step(w+iwords*off,words,'R');
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, 0x10(%rsp)
testl $0xfff, %esi            # imm = 0xFFF
jne 0x73109
movl %edx, %r13d
movq %rsi, %rbx
shrq $0x4, %rbx
movq %rsi, %r12
shrq $0xd, %r12
movabsq $-0x2ececc2165024a9a, %r14 # imm = 0xD13133DE9AFDB566
movq $0x0, 0x8(%rsp)
movabsq $0x2545f4914f6cdd1d, %rdi # imm = 0x2545F4914F6CDD1D
xorl %ecx, %ecx
movq %rsi, 0x18(%rsp)
cmpq $0x2000, %rsi           # imm = 0x2000
movq %rcx, 0x20(%rsp)
jb 0x730db
movq 0x10(%rsp), %rax
leaq (%rax,%rcx,8), %r15
xorl %ebp, %ebp
testl %r13d, %r13d
sete %al
movq %r14, %rcx
shrq $0xc, %rcx
xorq %r14, %rcx
movq %rcx, %rdx
shlq $0x19, %rdx
xorq %rcx, %rdx
movq %rdx, %r14
shrq $0x1b, %r14
xorq %rdx, %r14
movq %r14, %rcx
imulq %rdi, %rcx
movq %rcx, (%r15,%rbx,8)
movq %rcx, (%r15)
testw %bp, %bp
setne %cl
orb %al, %cl
jne 0x730cc
movq 0x8(%rsp), %rax
leaq (%rax,%rbp), %rdi
movq %rbx, %rsi
movl $0x52, %edx
callq 0x72ec6
movabsq $0x2545f4914f6cdd1d, %rdi # imm = 0x2545F4914F6CDD1D
addq $0x1000, %r15           # imm = 0x1000
incq %rbp
cmpq %rbp, %r12
jne 0x73070
movq 0x20(%rsp), %rcx
incq %rcx
addq %r12, 0x8(%rsp)
cmpq $0x200, %rcx            # imm = 0x200
movq 0x18(%rsp), %rsi
jne 0x73057
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x581e3(%rip), %rdi     # 0xcb2f3
leaq 0x581f0(%rip), %rsi     # 0xcb307
leaq 0x581f3(%rip), %rcx     # 0xcb311
movl $0x92, %edx
callq 0x262d0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_fill_value
void memtest_fill_value(unsigned long *l, size_t bytes, unsigned long v1,
                        unsigned long v2, char sym, int interactive)
{
    unsigned long step = 4096/sizeof(unsigned long);
    unsigned long words = bytes/sizeof(unsigned long)/2;
    unsigned long iwords = words/step;  /* words per iteration */
    unsigned long off, w, *l1, *l2, v;

    assert((bytes & 4095) == 0);
    for (off = 0; off < step; off++) {
        l1 = l+off;
        l2 = l1+words;
        v = (off & 1) ? v2 : v1;
        for (w = 0; w < iwords; w++) {
#ifdef MEMTEST_32BIT
            *l1 = *l2 = ((unsigned long)     v) |
                        (((unsigned long)    v) << 16);
#else
            *l1 = *l2 = ((unsigned long)     v) |
                        (((unsigned long)    v) << 16) |
                        (((unsigned long)    v) << 32) |
                        (((unsigned long)    v) << 48);
#endif
            l1 += step;
            l2 += step;
            if ((w & 0xffff) == 0 && interactive)
                memtest_progress_step(w+iwords*off,words,sym);
        }
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rcx, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
testl $0xfff, %esi            # imm = 0xFFF
jne 0x7322d
movl %r9d, %r13d
movq %rsi, %rbp
shrq $0x4, %rbp
movq %rsi, %r12
shrq $0xd, %r12
movq $0x0, 0x10(%rsp)
movsbl %r8b, %eax
movl %eax, 0xc(%rsp)
movq $0x0, (%rsp)
movq %rsi, 0x30(%rsp)
cmpq $0x2000, %rsi           # imm = 0x2000
jb 0x731fc
movq (%rsp), %rdx
testb $0x1, %dl
movq 0x28(%rsp), %rax
cmoveq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
leaq (%rcx,%rdx,8), %r14
movq %rax, %rcx
movq %rax, %r15
shlq $0x30, %r15
orq %rax, %r15
shlq $0x10, %rax
shlq $0x20, %rcx
orq %rax, %rcx
orq %rcx, %r15
xorl %ebx, %ebx
testl %r13d, %r13d
sete %al
movq %r15, (%r14,%rbp,8)
movq %r15, (%r14)
testw %bx, %bx
setne %cl
orb %al, %cl
jne 0x731ed
movq 0x10(%rsp), %rax
leaq (%rax,%rbx), %rdi
movq %rbp, %rsi
movl 0xc(%rsp), %edx
callq 0x72ec6
addq $0x1000, %r14           # imm = 0x1000
incq %rbx
cmpq %rbx, %r12
jne 0x731c1
movq (%rsp), %rcx
incq %rcx
addq %r12, 0x10(%rsp)
movq %rcx, (%rsp)
cmpq $0x200, %rcx            # imm = 0x200
movq 0x30(%rsp), %rsi
jne 0x73180
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x580bf(%rip), %rdi     # 0xcb2f3
leaq 0x580cc(%rip), %rsi     # 0xcb307
leaq 0x58106(%rip), %rcx     # 0xcb348
movl $0xab, %edx
callq 0x262d0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_compare
int memtest_compare(unsigned long *l, size_t bytes, int interactive) {
    unsigned long words = bytes/sizeof(unsigned long)/2;
    unsigned long w, *l1, *l2;

    assert((bytes & 4095) == 0);
    l1 = l;
    l2 = l1+words;
    for (w = 0; w < words; w++) {
        if (*l1 != *l2) {
            if (interactive) {
                printf("\n*** MEMORY ERROR DETECTED: %p != %p (%lu vs %lu)\n",
                    (void*)l1, (void*)l2, *l1, *l2);
                exit(1);
            }
            return 1;
        }
        l1 ++;
        l2 ++;
        if ((w & 0xffff) == 0 && interactive)
            memtest_progress_step(w,words,'=');
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %r15
testl $0xfff, %r15d           # imm = 0xFFF
jne 0x732c7
cmpq $0x10, %r15
jb 0x732b1
movl %edx, %ebp
movq %rdi, %rbx
shrq $0x4, %r15
leaq (%rdi,%r15,8), %r14
xorl %r12d, %r12d
movq (%rbx), %rcx
movq (%r14), %r8
cmpq %r8, %rcx
jne 0x732b5
testl %ebp, %ebp
sete %al
testw %r12w, %r12w
setne %cl
orb %al, %cl
jne 0x732a1
movq %r12, %rdi
movq %r15, %rsi
movl $0x3d, %edx
callq 0x72ec6
addq $0x8, %rbx
addq $0x8, %r14
incq %r12
cmpq %r12, %r15
jne 0x73276
xorl %eax, %eax
jmp 0x732be
movl $0x1, %eax
testl %ebp, %ebp
jne 0x732e6
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x58025(%rip), %rdi     # 0xcb2f3
leaq 0x58032(%rip), %rsi     # 0xcb307
leaq 0x580c6(%rip), %rcx     # 0xcb3a2
movl $0xc6, %edx
callq 0x262d0
leaq 0x580e7(%rip), %rdi     # 0xcb3d4
movq %rbx, %rsi
movq %r14, %rdx
xorl %eax, %eax
callq 0x260a0
movl $0x1, %edi
callq 0x262c0
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_compare_times
int memtest_compare_times(unsigned long *m, size_t bytes, int pass, int times,
                          int interactive)
{
    int j;
    int errors = 0;

    for (j = 0; j < times; j++) {
        if (interactive) memtest_progress_start("Compare",pass);
        errors += memtest_compare(m,bytes,interactive);
        if (interactive) memtest_progress_end();
    }
    return errors;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, 0x4(%rsp)
testl %ecx, %ecx
jle 0x73372
movl %r8d, %ebx
movl %ecx, %ebp
movq %rsi, %r15
movq %rdi, %r12
xorl %r13d, %r13d
testl %ebx, %ebx
je 0x73359
leaq 0x580d7(%rip), %rdi     # 0xcb407
movl 0x4(%rsp), %esi
callq 0x72dec
movq %r12, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x7324c
movl %eax, %r14d
leaq 0x57f0c(%rip), %rdi     # 0xcb25c
xorl %eax, %eax
callq 0x260a0
jmp 0x73369
movq %r12, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x7324c
movl %eax, %r14d
addl %r14d, %r13d
decl %ebp
jne 0x73325
jmp 0x73375
xorl %r13d, %r13d
movl %r13d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest_alloc_and_test
void memtest_alloc_and_test(size_t megabytes, int passes) {
    size_t bytes = megabytes*1024*1024;
    unsigned long *m = malloc(bytes);

    if (m == NULL) {
        fprintf(stderr,"Unable to allocate %zu megabytes: %s",
            megabytes, strerror(errno));
        exit(1);
    }
    memtest_test(m,bytes,passes,1);
    free(m);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r15
movq %rdi, %r14
shlq $0x14, %r14
movq %r14, %rdi
callq 0x26360
testq %rax, %rax
je 0x737c5
movq %rax, %r12
movq %rax, %rdi
movq %r14, %rsi
movl %ebx, %edx
movl $0x1, %ecx
callq 0x73387
movq %r12, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x264d0
movq %r15, %rdi
callq 0x275c3
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/memtest.c
// Function: memtest
void memtest(size_t megabytes, int passes) {
    if (ioctl(1, TIOCGWINSZ, &ws) == -1) {
        ws.ws_col = 80;
        ws.ws_row = 20;
    }
    memtest_alloc_and_test(megabytes,passes);
    printf("\nYour memory passed this test.\n");
    printf("Please if you are still in doubt use the following two tools:\n");
    printf("1) memtest86: http://www.memtest86.com/\n");
    printf("2) memtester: http://pyropus.ca/software/memtester/\n");
    exit(0);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
leaq 0xa2ee3(%rip), %rdx     # 0x1166c0
movl $0x5413, %esi           # imm = 0x5413
movl $0x1, %edi
xorl %eax, %eax
callq 0x261b0
cmpl $-0x1, %eax
jne 0x737fd
movl $0x500014, 0xa2ec3(%rip) # imm = 0x500014
movq %r14, %rdi
movl %ebx, %esi
callq 0x7377c
leaq 0x57c9e(%rip), %rdi     # 0xcb4ac
callq 0x26250
leaq 0x57cb1(%rip), %rdi     # 0xcb4cb
callq 0x26250
leaq 0x57ce3(%rip), %rdi     # 0xcb509
callq 0x26250
leaq 0x57cff(%rip), %rdi     # 0xcb531
callq 0x26250
xorl %edi, %edi
callq 0x262c0
nop
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bitops.c
// Function: setUnsignedBitfield
void setUnsignedBitfield(unsigned char *p, uint64_t offset, uint64_t bits, uint64_t value) {
    uint64_t byte, bit, byteval, bitval, j;

    for (j = 0; j < bits; j++) {
        bitval = (value & ((uint64_t)1<<(bits-1-j))) != 0;
        byte = offset >> 3;
        bit = 7 - (offset & 0x7);
        byteval = p[byte];
        byteval &= ~(1 << bit);
        byteval |= bitval << bit;
        p[byte] = byteval & 0xff;
        offset++;
    }
}

// Assembly:
testq %rdx, %rdx
je 0x73b64
movq %rcx, %rax
decq %rdx
xorl %r8d, %r8d
btq %rdx, %rax
setb %r8b
movq %rsi, %r9
shrq $0x3, %r9
movl %esi, %ecx
notb %cl
andb $0x7, %cl
movzbl (%rdi,%r9), %r10d
btrl %ecx, %r10d
shll %cl, %r8d
orl %r10d, %r8d
movb %r8b, (%rdi,%r9)
incq %rsi
addq $-0x1, %rdx
jb 0x73b2f
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bitops.c
// Function: getUnsignedBitfield
uint64_t getUnsignedBitfield(unsigned char *p, uint64_t offset, uint64_t bits) {
    uint64_t byte, bit, byteval, bitval, j, value = 0;

    for (j = 0; j < bits; j++) {
        byte = offset >> 3;
        bit = 7 - (offset & 0x7);
        byteval = p[byte];
        bitval = (byteval >> bit) & 1;
        value = (value<<1) | bitval;
        offset++;
    }
    return value;
}

// Assembly:
xorl %eax, %eax
testq %rdx, %rdx
je 0x73ba1
movq %rsi, %rcx
shrq $0x3, %rcx
movzbl (%rdi,%rcx), %ecx
movl %esi, %r8d
notb %r8b
movzbl %r8b, %r8d
andl $0x7, %r8d
xorl %r9d, %r9d
btl %r8d, %ecx
setb %r9b
leaq (%r9,%rax,2), %rax
incq %rsi
decq %rdx
jne 0x73b71
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bitops.c
// Function: getSignedBitfield
int64_t getSignedBitfield(unsigned char *p, uint64_t offset, uint64_t bits) {
    int64_t value;
    union {uint64_t u; int64_t i;} conv;

    /* Converting from unsigned to signed is undefined when the value does
     * not fit, however here we assume two's complement and the original value
     * was obtained from signed -> unsigned conversion, so we'll find the
     * most significant bit set if the original value was negative.
     *
     * Note that two's complement is mandatory for exact-width types
     * according to the C99 standard. */
    conv.u = getUnsignedBitfield(p,offset,bits);
    value = conv.i;

    /* If the top significant bit is 1, propagate it to all the
     * higher bits for two's complement representation of signed
     * integers. */
    if (value & ((uint64_t)1 << (bits-1)))
        value |= ((uint64_t)-1) << bits;
    return value;
}

// Assembly:
movq %rdx, %rcx
testq %rdx, %rdx
je 0x73be2
xorl %edx, %edx
movq %rcx, %rax
movq %rsi, %r8
shrq $0x3, %r8
movzbl (%rdi,%r8), %r8d
movl %esi, %r9d
notb %r9b
movzbl %r9b, %r9d
andl $0x7, %r9d
xorl %r10d, %r10d
btl %r9d, %r8d
setb %r10b
leaq (%r10,%rdx,2), %rdx
incq %rsi
decq %rax
jne 0x73baf
jmp 0x73be4
xorl %edx, %edx
movq $-0x1, %rsi
shlq %cl, %rsi
leal -0x1(%rcx), %eax
movzbl %al, %ecx
xorl %eax, %eax
btq %rcx, %rdx
cmovbq %rsi, %rax
orq %rdx, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/src/bitops.c
// Function: checkUnsignedBitfieldOverflow
int checkUnsignedBitfieldOverflow(uint64_t value, int64_t incr, uint64_t bits, int owtype, uint64_t *limit) {
    uint64_t max = (bits == 64) ? UINT64_MAX : (((uint64_t)1<<bits)-1);
    int64_t maxincr = max-value;
    int64_t minincr = -value;

    if (value > max || (incr > 0 && incr > maxincr)) {
        if (limit) {
            if (owtype == BFOVERFLOW_WRAP) {
                goto handle_wrap;
            } else if (owtype == BFOVERFLOW_SAT) {
                *limit = max;
            }
        }
        return 1;
    } else if (incr < 0 && incr < minincr) {
        if (limit) {
            if (owtype == BFOVERFLOW_WRAP) {
                goto handle_wrap;
            } else if (owtype == BFOVERFLOW_SAT) {
                *limit = 0;
            }
        }
        return -1;
    }
    return 0;

handle_wrap:
    {
        uint64_t mask = ((uint64_t)-1) << bits;
        uint64_t res = value+incr;

        res &= ~mask;
        *limit = res;
    }
    return 1;
}

// Assembly:
movl %ecx, %r9d
movq %rdx, %rcx
movq $-0x1, %rdx
shlq %cl, %rdx
movq $-0x1, %r10
cmpq $0x40, %rcx
notq %rdx
cmovneq %rdx, %r10
movq %r10, %rax
subq %rdi, %rax
jb 0x73c3c
testq %rsi, %rsi
setle %cl
cmpq %rsi, %rax
setge %al
orb %cl, %al
jne 0x73c52
movl $0x1, %eax
testq %r8, %r8
je 0x73c51
testl %r9d, %r9d
je 0x73c81
cmpl $0x1, %r9d
je 0x73c90
retq
movq %rdi, %rax
negq %rax
testq %rsi, %rsi
setns %cl
cmpq %rsi, %rax
setle %r10b
xorl %eax, %eax
orb %cl, %r10b
jne 0x73c51
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r8, %r8
je 0x73c51
cmpl $0x1, %r9d
je 0x73c97
testl %r9d, %r9d
jne 0x73c51
addq %rdi, %rsi
andq %rdx, %rsi
movl $0x1, %r9d
movq %rsi, %r10
movq %r10, (%r8)
movl %r9d, %eax
retq
xorl %r10d, %r10d
movl $0xffffffff, %r9d       # imm = 0xFFFFFFFF
jmp 0x73c90