LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisContextInit
static redisContext *redisContextInit(void) {
    redisContext *c;

    c = calloc(1,sizeof(redisContext));
    if (c == NULL)
        return NULL;

    c->err = 0;
    c->errstr[0] = '\0';
    c->obuf = sdsempty();
    c->reader = redisReaderCreate();
    c->tcp.host = NULL;
    c->tcp.source_addr = NULL;
    c->unix_sock.path = NULL;
    c->timeout = NULL;

    if (c->obuf == NULL || c->reader == NULL) {
        redisFree(c);
        return NULL;
    }

    return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl $0x1, %edi
movl $0xd0, %esi
callq 0x3290
testq %rax, %rax
je 0x4dce
movq %rax, %rbx
callq 0x3490
movq %rax, %r14
movq %rax, 0x90(%rbx)
leaq 0x8510(%rip), %rdi      # 0xd2b8
callq 0x3430
movq %rax, 0x98(%rbx)
testq %r14, %r14
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
cmpb $0x1, %al
jne 0x4dd0
movq %rbx, %rdi
callq 0x3320
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectWithTimeout
redisContext *redisConnectWithTimeout(const char *ip, int port, const struct timeval tv) {
    redisContext *c;

    c = redisContextInit();
    if (c == NULL)
        return NULL;

    c->flags |= REDIS_BLOCK;
    redisContextConnectTcp(c,ip,port,&tv);
    return c;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebx
movq %rdi, %r15
movq %rdx, (%rsp)
movq %rcx, 0x8(%rsp)
callq 0x4d77
movq %rax, %r14
testq %rax, %rax
je 0x4e17
orb $0x1, 0x88(%r14)
movq %rsp, %rcx
movq %r14, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x3400
movq %r14, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectNonBlock
redisContext *redisConnectNonBlock(const char *ip, int port) {
    redisContext *c;

    c = redisContextInit();
    if (c == NULL)
        return NULL;

    c->flags &= ~REDIS_BLOCK;
    redisContextConnectTcp(c,ip,port,NULL);
    return c;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x4d77
movq %rax, %rbx
testq %rax, %rax
je 0x4e50
andb $-0x2, 0x88(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x3400
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectBindNonBlock
redisContext *redisConnectBindNonBlock(const char *ip, int port,
                                       const char *source_addr) {
    redisContext *c = redisContextInit();
    c->flags &= ~REDIS_BLOCK;
    redisContextConnectBindTcp(c,ip,port,NULL,source_addr);
    return c;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x4d77
movq %rax, %r15
andb $-0x2, 0x88(%rax)
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
movq %rbx, %r8
callq 0x32d0
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectUnix
redisContext *redisConnectUnix(const char *path) {
    redisContext *c;

    c = redisContextInit();
    if (c == NULL)
        return NULL;

    c->flags |= REDIS_BLOCK;
    redisContextConnectUnix(c,path,NULL);
    return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x4d77
movq %rax, %rbx
testq %rax, %rax
je 0x4f0d
orb $0x1, 0x88(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x32b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectUnixWithTimeout
redisContext *redisConnectUnixWithTimeout(const char *path, const struct timeval tv) {
    redisContext *c;

    c = redisContextInit();
    if (c == NULL)
        return NULL;

    c->flags |= REDIS_BLOCK;
    redisContextConnectUnix(c,path,&tv);
    return c;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movq %rsi, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
callq 0x4d77
movq %rax, %r14
testq %rax, %rax
je 0x4f51
orb $0x1, 0x88(%r14)
leaq 0x8(%rsp), %rdx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x32b0
movq %r14, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectUnixNonBlock
redisContext *redisConnectUnixNonBlock(const char *path) {
    redisContext *c;

    c = redisContextInit();
    if (c == NULL)
        return NULL;

    c->flags &= ~REDIS_BLOCK;
    redisContextConnectUnix(c,path,NULL);
    return c;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
callq 0x4d77
movq %rax, %rbx
testq %rax, %rax
je 0x4f84
andb $-0x2, 0x88(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x32b0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisBufferRead
int redisBufferRead(redisContext *c) {
    char buf[1024*16];
    int nread;

    /* Return early when the context has seen an error. */
    if (c->err)
        return REDIS_ERR;

    nread = read(c->fd,buf,sizeof(buf));
    if (nread == -1) {
        if ((errno == EAGAIN && !(c->flags & REDIS_BLOCK)) || (errno == EINTR)) {
            /* Try again later */
        } else {
            __redisSetError(c,REDIS_ERR_IO,NULL);
            return REDIS_ERR;
        }
    } else if (nread == 0) {
        __redisSetError(c,REDIS_ERR_EOF,"Server closed the connection");
        return REDIS_ERR;
    } else {
        if (redisReaderFeed(c->reader,buf,nread) != REDIS_OK) {
            __redisSetError(c,c->reader->err,c->reader->errstr);
            return REDIS_ERR;
        }
    }
    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x4008, %rsp           # imm = 0x4008
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x0, (%rdi)
je 0x4ffa
movl %ebp, %eax
addq $0x4008, %rsp           # imm = 0x4008
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rdi, %rbx
movl 0x84(%rdi), %edi
movq %rsp, %rsi
movl $0x4000, %edx           # imm = 0x4000
callq 0x3250
testl %eax, %eax
je 0x5055
cmpl $-0x1, %eax
jne 0x507a
callq 0x3080
movl (%rax), %ecx
xorl %ebp, %ebp
cmpl $0x4, %ecx
je 0x4fea
cmpl $0xb, %ecx
jne 0x5035
testb $0x1, 0x88(%rbx)
je 0x4fea
movl $0x1, (%rbx)
movl (%rax), %edi
addq $0x4, %rbx
movl $0x80, %edx
movq %rbx, %rsi
callq 0x30f0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x4fea
movl $0x3, (%rbx)
movups 0x4203(%rip), %xmm0     # 0x9265
movups %xmm0, 0x4(%rbx)
movups 0x4204(%rip), %xmm0     # 0x9271
movups %xmm0, 0x10(%rbx)
movb $0x0, 0x20(%rbx)
jmp 0x4fea
movq 0x98(%rbx), %rdi
movslq %eax, %rdx
movq %rsp, %rsi
callq 0x31a0
testl %eax, %eax
je 0x50d0
movq 0x98(%rbx), %r14
movl (%r14), %eax
addq $0x4, %r14
movl %eax, (%rbx)
movq %r14, %rdi
callq 0x3130
cmpq $0x7f, %rax
movl $0x7f, %r15d
cmovbq %rax, %r15
leaq 0x4(%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x32f0
movb $0x0, 0x4(%rbx,%r15)
jmp 0x4fea
xorl %ebp, %ebp
jmp 0x4fea
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisBufferWrite
int redisBufferWrite(redisContext *c, int *done) {
    int nwritten;

    /* Return early when the context has seen an error. */
    if (c->err)
        return REDIS_ERR;

    if (sdslen(c->obuf) > 0) {
        nwritten = write(c->fd,c->obuf,sdslen(c->obuf));
        if (nwritten == -1) {
            if ((errno == EAGAIN && !(c->flags & REDIS_BLOCK)) || (errno == EINTR)) {
                /* Try again later */
            } else {
                __redisSetError(c,REDIS_ERR_IO,NULL);
                return REDIS_ERR;
            }
        } else if (nwritten > 0) {
            if (nwritten == (signed)sdslen(c->obuf)) {
                sdsfree(c->obuf);
                c->obuf = sdsempty();
            } else {
                sdsrange(c->obuf,nwritten,-1);
            }
        }
    }
    if (done != NULL) *done = (sdslen(c->obuf) == 0);
    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x0, (%rdi)
jne 0x518d
movq %rsi, %r14
movq %rdi, %rbx
movq 0x90(%rdi), %rsi
movslq -0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x5173
movl 0x84(%rbx), %edi
callq 0x3120
cmpl $-0x1, %eax
je 0x5132
testl %eax, %eax
jle 0x5173
movq 0x90(%rbx), %rdi
cmpl %eax, -0x8(%rdi)
jne 0x5167
callq 0x3280
callq 0x3490
movq %rax, 0x90(%rbx)
jmp 0x5173
callq 0x3080
movl (%rax), %ecx
cmpl $0x4, %ecx
je 0x5173
cmpl $0xb, %ecx
jne 0x514c
testb $0x1, 0x88(%rbx)
je 0x5173
movl $0x1, (%rbx)
movl (%rax), %edi
addq $0x4, %rbx
movl $0x80, %edx
movq %rbx, %rsi
callq 0x30f0
jmp 0x518d
movl %eax, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3220
xorl %ebp, %ebp
testq %r14, %r14
je 0x518d
movq 0x90(%rbx), %rax
xorl %ecx, %ecx
cmpl $0x0, -0x8(%rax)
sete %cl
movl %ecx, (%r14)
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisGetReply
int redisGetReply(redisContext *c, void **reply) {
    int wdone = 0;
    void *aux = NULL;

    /* Try to read pending replies */
    if (redisGetReplyFromReader(c,&aux) == REDIS_ERR)
        return REDIS_ERR;

    /* For the blocking context, flush output buffer and read reply */
    if (aux == NULL && c->flags & REDIS_BLOCK) {
        /* Write until done */
        do {
            if (redisBufferWrite(c,&wdone) == REDIS_ERR)
                return REDIS_ERR;
        } while (!wdone);

        /* Read until there is a reply */
        do {
            if (redisBufferRead(c) == REDIS_ERR)
                return REDIS_ERR;
            if (redisGetReplyFromReader(c,&aux) == REDIS_ERR)
                return REDIS_ERR;
        } while (aux == NULL);
    }

    /* Set reply object */
    if (reply != NULL) *reply = aux;
    return REDIS_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r15
movl $0x0, 0xc(%rsp)
leaq 0x10(%rsp), %rsi
movq $0x0, (%rsi)
callq 0x3230
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $-0x1, %eax
je 0x524b
movq 0x10(%rsp), %rax
testq %rax, %rax
jne 0x5241
testb $0x1, 0x88(%r15)
jne 0x5259
xorl %eax, %eax
xorl %ebx, %ebx
testq %r14, %r14
je 0x524b
movq %rax, (%r14)
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xc(%rsp), %r12
movq %r15, %rdi
movq %r12, %rsi
callq 0x3110
cmpl $-0x1, %eax
je 0x524b
cmpl $0x0, 0xc(%rsp)
je 0x525e
leaq 0x10(%rsp), %r12
movq %r15, %rdi
callq 0x3450
cmpl $-0x1, %eax
je 0x524b
movq %r15, %rdi
movq %r12, %rsi
callq 0x3230
cmpl $-0x1, %eax
je 0x524b
movq 0x10(%rsp), %rax
testq %rax, %rax
je 0x527a
jmp 0x5241
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: _redisAppendCommand
int __redisAppendCommand(redisContext *c, const char *cmd, size_t len) {
    sds newbuf;

    newbuf = sdscatlen(c->obuf,cmd,len);
    if (newbuf == NULL) {
        __redisSetError(c,REDIS_ERR_OOM,"Out of memory");
        return REDIS_ERR;
    }

    c->obuf = newbuf;
    return REDIS_OK;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x90(%rdi), %rdi
callq 0x3420
testq %rax, %rax
je 0x52c3
movq %rax, 0x90(%rbx)
xorl %eax, %eax
jmp 0x52ee
movl $0x5, (%rbx)
movabsq $0x6d20666f2074754f, %rax # imm = 0x6D20666F2074754F
movq %rax, 0x4(%rbx)
movabsq $0x79726f6d656d2066, %rax # imm = 0x79726F6D656D2066
movq %rax, 0x9(%rbx)
movb $0x0, 0x11(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisvAppendCommand
int redisvAppendCommand(redisContext *c, const char *format, va_list ap) {
    char *cmd;
    int len;

    len = redisvFormatCommand(&cmd,format,ap);
    if (len == -1) {
        __redisSetError(c,REDIS_ERR_OOM,"Out of memory");
        return REDIS_ERR;
    } else if (len == -2) {
        __redisSetError(c,REDIS_ERR_OTHER,"Invalid format string");
        return REDIS_ERR;
    }

    if (__redisAppendCommand(c,cmd,len) != REDIS_OK) {
        free(cmd);
        return REDIS_ERR;
    }

    free(cmd);
    return REDIS_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x34f0
cmpl $-0x2, %eax
je 0x5384
cmpl $-0x1, %eax
jne 0x53a9
movl $0x5, (%rbx)
movabsq $0x6d20666f2074754f, %rax # imm = 0x6D20666F2074754F
movq %rax, 0x4(%rbx)
movabsq $0x79726f6d656d2066, %rax # imm = 0x79726F6D656D2066
movq %rax, 0x9(%rbx)
movb $0x0, 0x11(%rbx)
jmp 0x5407
movl $0x2, (%rbx)
movups 0x3eff(%rip), %xmm0     # 0x9290
movups %xmm0, 0x4(%rbx)
movabsq $0x676e697274732074, %rax # imm = 0x676E697274732074
movq %rax, 0x11(%rbx)
movb $0x0, 0x19(%rbx)
jmp 0x5407
movq 0x8(%rsp), %rsi
movslq %eax, %rdx
movq 0x90(%rbx), %rdi
callq 0x3420
testq %rax, %rax
je 0x53d7
movq %rax, 0x90(%rbx)
movq 0x8(%rsp), %rdi
callq 0x3050
xorl %eax, %eax
jmp 0x540c
movl $0x5, (%rbx)
movabsq $0x6d20666f2074754f, %rax # imm = 0x6D20666F2074754F
movq %rax, 0x4(%rbx)
movabsq $0x79726f6d656d2066, %rax # imm = 0x79726F6D656D2066
movq %rax, 0x9(%rbx)
movb $0x0, 0x11(%rbx)
movq 0x8(%rsp), %rdi
callq 0x3050
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisAppendCommandArgv
int redisAppendCommandArgv(redisContext *c, int argc, const char **argv, const size_t *argvlen) {
    sds cmd;
    int len;

    len = redisFormatSdsCommandArgv(&cmd,argc,argv,argvlen);
    if (len == -1) {
        __redisSetError(c,REDIS_ERR_OOM,"Out of memory");
        return REDIS_ERR;
    }

    if (__redisAppendCommand(c,cmd,len) != REDIS_OK) {
        sdsfree(cmd);
        return REDIS_ERR;
    }

    sdsfree(cmd);
    return REDIS_OK;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x8(%rsp), %rdi
callq 0x31d0
cmpl $-0x1, %eax
je 0x54db
movq 0x8(%rsp), %rsi
movslq %eax, %rdx
movq 0x90(%rbx), %rdi
callq 0x3420
testq %rax, %rax
je 0x5503
movq %rax, 0x90(%rbx)
movq 0x8(%rsp), %rdi
callq 0x3280
xorl %eax, %eax
jmp 0x5538
movl $0x5, (%rbx)
movabsq $0x6d20666f2074754f, %rax # imm = 0x6D20666F2074754F
movq %rax, 0x4(%rbx)
movabsq $0x79726f6d656d2066, %rax # imm = 0x79726F6D656D2066
movq %rax, 0x9(%rbx)
movb $0x0, 0x11(%rbx)
jmp 0x5533
movl $0x5, (%rbx)
movabsq $0x6d20666f2074754f, %rax # imm = 0x6D20666F2074754F
movq %rax, 0x4(%rbx)
movabsq $0x79726f6d656d2066, %rax # imm = 0x79726F6D656D2066
movq %rax, 0x9(%rbx)
movb $0x0, 0x11(%rbx)
movq 0x8(%rsp), %rdi
callq 0x3280
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: createStringObject
static void *createStringObject(const redisReadTask *task, char *str, size_t len) {
    redisReply *r, *parent;
    char *buf;

    r = createReplyObject(task->type);
    if (r == NULL)
        return NULL;

    buf = malloc(len+1);
    if (buf == NULL) {
        freeReplyObject(r);
        return NULL;
    }

    assert(task->type == REDIS_REPLY_ERROR  ||
           task->type == REDIS_REPLY_STATUS ||
           task->type == REDIS_REPLY_STRING);

    /* Copy string value */
    memcpy(buf,str,len);
    buf[len] = '\0';
    r->str = buf;
    r->len = len;

    if (task->parent) {
        parent = task->parent->obj;
        assert(parent->type == REDIS_REPLY_ARRAY);
        parent->element[task->idx] = r;
    }
    return r;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl (%rdi), %ebp
movl $0x1, %edi
movl $0x30, %esi
callq 0x3290
testq %rax, %rax
je 0x56c7
movq %rax, %rbx
movl %ebp, (%rax)
leaq 0x1(%r15), %rdi
callq 0x3340
testq %rax, %rax
je 0x56bf
movq %rax, %r13
leal -0x5(%rbp), %eax
cmpl $0x2, %eax
jb 0x5683
cmpl $0x1, %ebp
jne 0x56fa
movq %r13, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x32f0
movb $0x0, (%r13,%r15)
movq %r13, 0x18(%rbx)
movl %r15d, 0x10(%rbx)
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x56c9
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x56db
movq 0x28(%rax), %rax
movslq 0x8(%r14), %rcx
movq %rbx, (%rax,%rcx,8)
jmp 0x56c9
movq %rbx, %rdi
callq 0x33f0
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x3c6c(%rip), %rdi      # 0x934e
leaq 0x3a09(%rip), %rsi      # 0x90f2
leaq 0x3c1e(%rip), %rcx      # 0x930e
movl $0x80, %edx
callq 0x31b0
leaq 0x3ba5(%rip), %rdi      # 0x92a6
leaq 0x39ea(%rip), %rsi      # 0x90f2
leaq 0x3bff(%rip), %rcx      # 0x930e
movl $0x76, %edx
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: createArrayObject
static void *createArrayObject(const redisReadTask *task, int elements) {
    redisReply *r, *parent;

    r = createReplyObject(REDIS_REPLY_ARRAY);
    if (r == NULL)
        return NULL;

    if (elements > 0) {
        r->element = calloc(elements,sizeof(redisReply*));
        if (r->element == NULL) {
            freeReplyObject(r);
            return NULL;
        }
    }

    r->elements = elements;

    if (task->parent) {
        parent = task->parent->obj;
        assert(parent->type == REDIS_REPLY_ARRAY);
        parent->element[task->idx] = r;
    }
    return r;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %r14
movl $0x1, %edi
movl $0x30, %esi
callq 0x3290
testq %rax, %rax
je 0x5787
movq %rax, %rbx
movl $0x2, (%rax)
testl %ebp, %ebp
jle 0x5758
movl %ebp, %edi
movl $0x8, %esi
callq 0x3290
movq %rax, 0x28(%rbx)
testq %rax, %rax
je 0x577f
movslq %ebp, %rax
movq %rax, 0x20(%rbx)
movq 0x18(%r14), %rax
testq %rax, %rax
je 0x5789
movq 0x10(%rax), %rax
cmpl $0x2, (%rax)
jne 0x5791
movq 0x28(%rax), %rax
movslq 0x8(%r14), %rcx
movq %rbx, (%rax,%rcx,8)
jmp 0x5789
movq %rbx, %rdi
callq 0x33f0
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x3bb6(%rip), %rdi      # 0x934e
leaq 0x3953(%rip), %rsi      # 0x90f2
leaq 0x3bca(%rip), %rcx      # 0x9370
movl $0x99, %edx
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: createIntegerObject
static void *createIntegerObject(const redisReadTask *task, long long value) {
    redisReply *r, *parent;

    r = createReplyObject(REDIS_REPLY_INTEGER);
    if (r == NULL)
        return NULL;

    r->integer = value;

    if (task->parent) {
        parent = task->parent->obj;
        assert(parent->type == REDIS_REPLY_ARRAY);
        parent->element[task->idx] = r;
    }
    return r;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x1, %edi
movl $0x30, %esi
callq 0x3290
testq %rax, %rax
je 0x57f6
movl $0x3, (%rax)
movq %r14, 0x8(%rax)
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x57f6
movq 0x10(%rcx), %rcx
cmpl $0x2, (%rcx)
jne 0x57fe
movq 0x28(%rcx), %rcx
movslq 0x8(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0x3b49(%rip), %rdi      # 0x934e
leaq 0x38e6(%rip), %rsi      # 0x90f2
leaq 0x3b91(%rip), %rcx      # 0x93a4
movl $0xaa, %edx
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: createNilObject
static void *createNilObject(const redisReadTask *task) {
    redisReply *r, *parent;

    r = createReplyObject(REDIS_REPLY_NIL);
    if (r == NULL)
        return NULL;

    if (task->parent) {
        parent = task->parent->obj;
        assert(parent->type == REDIS_REPLY_ARRAY);
        parent->element[task->idx] = r;
    }
    return r;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %edi
movl $0x30, %esi
callq 0x3290
testq %rax, %rax
je 0x5859
movl $0x4, (%rax)
movq 0x18(%rbx), %rcx
testq %rcx, %rcx
je 0x5859
movq 0x10(%rcx), %rcx
cmpl $0x2, (%rcx)
jne 0x585b
movq 0x28(%rcx), %rcx
movslq 0x8(%rbx), %rdx
movq %rax, (%rcx,%rdx,8)
popq %rbx
retq
leaq 0x3aec(%rip), %rdi      # 0x934e
leaq 0x3889(%rip), %rsi      # 0x90f2
leaq 0x3b70(%rip), %rcx      # 0x93e0
movl $0xb9, %edx
callq 0x31b0
nop
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsnewlen
sds sdsnewlen(const void *init, size_t initlen) {
    struct sdshdr *sh;

    if (init) {
        sh = malloc(sizeof *sh+initlen+1);
    } else {
        sh = calloc(sizeof *sh+initlen+1,1);
    }
    if (sh == NULL) return NULL;
    sh->len = initlen;
    sh->free = 0;
    if (initlen && init)
        memcpy(sh->buf, init, initlen);
    sh->buf[initlen] = '\0';
    return (char*)sh->buf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x9(%rsi), %rdi
testq %r14, %r14
je 0x5897
callq 0x3340
jmp 0x58a1
movl $0x1, %esi
callq 0x3290
movq %rax, %r15
testq %rax, %rax
je 0x58df
testq %r14, %r14
sete %al
movl %ebx, (%r15)
movl $0x0, 0x4(%r15)
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x58d3
leaq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x32f0
movb $0x0, 0x8(%r15,%rbx)
addq $0x8, %r15
jmp 0x58e2
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsMakeRoomFor
sds sdsMakeRoomFor(sds s, size_t addlen) {
    struct sdshdr *sh, *newsh;
    size_t free = sdsavail(s);
    size_t len, newlen;

    if (free >= addlen) return s;
    len = sdslen(s);
    sh = (void*) (s-sizeof *sh);
    newlen = (len+addlen);
    if (newlen < SDS_MAX_PREALLOC)
        newlen *= 2;
    else
        newlen += SDS_MAX_PREALLOC;
    newsh = realloc(sh, sizeof *newsh+newlen+1);
    if (newsh == NULL) return NULL;

    newsh->free = newlen - len;
    return newsh->buf;
}

// Assembly:
movq %rdi, %rax
movslq -0x4(%rdi), %rcx
cmpq %rsi, %rcx
jae 0x5a17
pushq %r14
pushq %rbx
pushq %rax
movslq -0x8(%rax), %rbx
addq $-0x8, %rax
addq %rbx, %rsi
leaq (%rsi,%rsi), %rcx
movl $0x100000, %edx         # imm = 0x100000
leaq (%rsi,%rdx), %r14
cmpq %rdx, %rsi
cmovbq %rcx, %r14
leaq 0x9(%r14), %rsi
movq %rax, %rdi
callq 0x33a0
testq %rax, %rax
je 0x5a0e
subl %ebx, %r14d
movl %r14d, 0x4(%rax)
addq $0x8, %rax
jmp 0x5a10
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsIncrLen
void sdsIncrLen(sds s, int incr) {
    struct sdshdr *sh = (void*) (s-sizeof *sh);

    assert(sh->free >= incr);
    sh->len += incr;
    sh->free -= incr;
    assert(sh->free >= 0);
    s[sh->len] = '\0';
}

// Assembly:
pushq %rax
movl -0x4(%rdi), %eax
cmpl %esi, %eax
jl 0x5a69
movslq -0x8(%rdi), %rdx
movslq %esi, %rcx
addq %rdx, %rcx
movl %ecx, -0x8(%rdi)
subl %esi, %eax
movl %eax, -0x4(%rdi)
js 0x5a88
movb $0x0, (%rdi,%rcx)
popq %rax
retq
leaq 0x3a4c(%rip), %rdi      # 0x94bc
leaq 0x3a56(%rip), %rsi      # 0x94cd
leaq 0x3a55(%rip), %rcx      # 0x94d3
movl $0xcb, %edx
callq 0x31b0
leaq 0x3a5e(%rip), %rdi      # 0x94ed
leaq 0x3a37(%rip), %rsi      # 0x94cd
leaq 0x3a36(%rip), %rcx      # 0x94d3
movl $0xce, %edx
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsgrowzero
sds sdsgrowzero(sds s, size_t len) {
    struct sdshdr *sh = (void*) (s-sizeof *sh);
    size_t totlen, curlen = sh->len;

    if (len <= curlen) return s;
    s = sdsMakeRoomFor(s,len-curlen);
    if (s == NULL) return NULL;

    /* Make sure added region doesn't contain garbage */
    sh = (void*)(s-sizeof *sh);
    memset(s+curlen,0,(len-curlen+1)); /* also set trailing \0 byte */
    totlen = sh->len+sh->free;
    sh->len = len;
    sh->free = totlen-sh->len;
    return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movslq -0x8(%rdi), %r12
movq %rsi, %r15
subq %r12, %r15
jbe 0x5af8
movq %rsi, %r14
movq %rbx, %rdi
movq %r15, %rsi
callq 0x31c0
testq %rax, %rax
je 0x5af6
movq %rax, %rbx
addq %rax, %r12
incq %r15
movq %r12, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x31f0
movl -0x8(%rbx), %eax
movl %r14d, -0x8(%rbx)
subl %r14d, %eax
addl %eax, -0x4(%rbx)
jmp 0x5af8
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdscatlen
sds sdscatlen(sds s, const void *t, size_t len) {
    struct sdshdr *sh;
    size_t curlen = sdslen(s);

    s = sdsMakeRoomFor(s,len);
    if (s == NULL) return NULL;
    sh = (void*) (s-sizeof *sh);
    memcpy(s+curlen, t, len);
    sh->len = curlen+len;
    sh->free = sh->free-len;
    s[curlen+len] = '\0';
    return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r15
movslq -0x8(%rdi), %r12
movq %rdx, %rsi
callq 0x31c0
movq %rax, %r14
testq %rax, %rax
je 0x5b4a
movq %r14, %rdi
addq %r12, %rdi
movq %r15, %rsi
movq %rbx, %rdx
callq 0x32f0
addq %rbx, %r12
movl %r12d, -0x8(%r14)
subl %ebx, -0x4(%r14)
movb $0x0, (%r14,%r12)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdscpylen
sds sdscpylen(sds s, const char *t, size_t len) {
    struct sdshdr *sh = (void*) (s-sizeof *sh);
    size_t totlen = sh->free+sh->len;

    if (totlen < len) {
        s = sdsMakeRoomFor(s,len-sh->len);
        if (s == NULL) return NULL;
        sh = (void*) (s-sizeof *sh);
        totlen = sh->free+sh->len;
    }
    memcpy(s, t, len);
    s[len] = '\0';
    sh->len = len;
    sh->free = totlen-len;
    return s;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movslq -0x4(%rdi), %r12
movslq -0x8(%rdi), %rax
addq %rax, %r12
cmpq %rdx, %r12
jae 0x5c58
movq %r14, %rsi
subq %rax, %rsi
movq %rbx, %rdi
callq 0x31c0
testq %rax, %rax
je 0x5c87
movq %rax, %rbx
movq %rax, %r13
addq $-0x8, %r13
movl -0x8(%rax), %r12d
addl -0x4(%rax), %r12d
jmp 0x5c5c
leaq -0x8(%rbx), %r13
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x32f0
movb $0x0, (%rbx,%r14)
movl %r14d, -0x8(%rbx)
subl %r14d, %r12d
movl %r12d, 0x4(%r13)
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
xorl %ebx, %ebx
jmp 0x5c7a
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsll2str
int sdsll2str(char *s, long long value) {
    char *p, aux;
    unsigned long long v;
    size_t l;

    /* Generate the string representation, this method produces
     * an reversed string. */
    v = (value < 0) ? -value : value;
    p = s;
    do {
        *p++ = '0'+(v%10);
        v /= 10;
    } while(v);
    if (value < 0) *p++ = '-';

    /* Compute length and add null term. */
    l = p-s;
    *p = '\0';

    /* Reverse the string. */
    p--;
    while(s < p) {
        aux = *s;
        *s = *p;
        *p = aux;
        s++;
        p--;
    }
    return l;
}

// Assembly:
movq %rsi, %r8
negq %r8
cmovsq %rsi, %r8
movabsq $-0x3333333333333333, %r9 # imm = 0xCCCCCCCCCCCCCCCD
movq %rdi, %rcx
movq %r8, %rax
mulq %r9
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %r8d, %r10d
subl %eax, %r10d
orb $0x30, %r10b
movb %r10b, (%rcx)
incq %rcx
cmpq $0x9, %r8
movq %rdx, %r8
ja 0x5cc9
testq %rsi, %rsi
jns 0x5cfd
movb $0x2d, (%rcx)
incq %rcx
movb $0x0, (%rcx)
leaq -0x1(%rcx), %rax
cmpq %rdi, %rax
jbe 0x5d2a
leaq 0x1(%rdi), %rdx
movb -0x1(%rdx), %sil
movb (%rax), %r8b
movb %r8b, -0x1(%rdx)
movb %sil, (%rax)
decq %rax
leaq 0x1(%rdx), %rsi
cmpq %rax, %rdx
movq %rsi, %rdx
jb 0x5d0d
subl %edi, %ecx
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsull2str
int sdsull2str(char *s, unsigned long long v) {
    char *p, aux;
    size_t l;

    /* Generate the string representation, this method produces
     * an reversed string. */
    p = s;
    do {
        *p++ = '0'+(v%10);
        v /= 10;
    } while(v);

    /* Compute length and add null term. */
    l = p-s;
    *p = '\0';

    /* Reverse the string. */
    p--;
    while(s < p) {
        aux = *s;
        *s = *p;
        *p = aux;
        s++;
        p--;
    }
    return l;
}

// Assembly:
leaq -0x1(%rdi), %rax
xorl %ecx, %ecx
movabsq $-0x3333333333333333, %r8 # imm = 0xCCCCCCCCCCCCCCCD
movq %rax, %r9
movq %rsi, %rax
mulq %r8
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %esi, %r10d
subl %eax, %r10d
orb $0x30, %r10b
movb %r10b, 0x1(%r9)
leaq 0x1(%r9), %rax
incl %ecx
cmpq $0x9, %rsi
movq %rdx, %rsi
ja 0x5d3f
movb $0x0, 0x1(%rax)
cmpq %rdi, %rax
jbe 0x5d96
decq %rax
movb (%rdi), %dl
movb 0x1(%rax), %sil
movb %sil, (%rdi)
movb %dl, 0x1(%rax)
incq %rdi
leaq -0x1(%rax), %rdx
cmpq %rax, %rdi
movq %rdx, %rax
jb 0x5d7b
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdscatvprintf
sds sdscatvprintf(sds s, const char *fmt, va_list ap) {
    va_list cpy;
    char *buf, *t;
    size_t buflen = 16;

    while(1) {
        buf = malloc(buflen);
        if (buf == NULL) return NULL;
        buf[buflen-2] = '\0';
        va_copy(cpy,ap);
        vsnprintf(buf, buflen, fmt, cpy);
        if (buf[buflen-2] != '\0') {
            free(buf);
            buflen *= 2;
            continue;
        }
        break;
    }
    t = sdscat(s, buf);
    free(buf);
    return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl $0x10, %r13d
movl $0x10, %edi
callq 0x3340
testq %rax, %rax
je 0x5e22
movq %rax, %rbp
movq %rbx, 0x8(%rsp)
leaq 0x10(%rsp), %r14
xorl %ebx, %ebx
movb $0x0, -0x2(%rbp,%r13)
movq 0x10(%r15), %rax
movq %rax, 0x20(%rsp)
movups (%r15), %xmm0
movaps %xmm0, 0x10(%rsp)
movq %rbp, %rdi
movq %r13, %rsi
movq %r12, %rdx
movq %r14, %rcx
callq 0x30c0
cmpb $0x0, -0x2(%rbp,%r13)
je 0x5e26
movq %rbp, %rdi
callq 0x3050
addq %r13, %r13
movq %r13, %rdi
callq 0x3340
movq %rax, %rbp
testq %rax, %rax
jne 0x5dd4
jmp 0x5e3e
xorl %ebx, %ebx
jmp 0x5e3e
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x3380
movq %rax, %rbx
movq %rbp, %rdi
callq 0x3050
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdstrim
void sdstrim(sds s, const char *cset) {
    struct sdshdr *sh = (void*) (s-sizeof *sh);
    char *start, *end, *sp, *ep;
    size_t len;

    sp = start = s;
    ep = end = s+sdslen(s)-1;
    while(sp <= end && strchr(cset, *sp)) sp++;
    while(ep > start && strchr(cset, *ep)) ep--;
    len = (sp > ep) ? 0 : ((ep-sp)+1);
    if (sh->buf != sp) memmove(sh->buf, sp, len);
    sh->buf[len] = '\0';
    sh->free = sh->free+(sh->len-len);
    sh->len = len;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r15
movq %rdi, %rbx
movslq -0x8(%rdi), %rax
leaq (%rdi,%rax), %r12
decq %r12
movq %rdi, %r14
cmpq %rdi, %r12
jb 0x62ec
movq %rbx, %r14
movsbl (%r14), %esi
movq %r15, %rdi
callq 0x3170
testq %rax, %rax
je 0x62ec
incq %r14
cmpq %r12, %r14
jbe 0x62d3
cmpq %rbx, %r12
jbe 0x630e
movsbl (%r12), %esi
movq %r15, %rdi
callq 0x3170
testq %rax, %rax
je 0x630e
decq %r12
cmpq %rbx, %r12
ja 0x62f1
movq %rbx, %r12
xorl %r15d, %r15d
subq %r14, %r12
leaq 0x1(%r12), %rax
cmovaeq %rax, %r15
cmpq %rbx, %r14
je 0x6330
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3410
movb $0x0, (%rbx,%r15)
movl -0x4(%rbx), %eax
subl %r15d, %eax
addl -0x8(%rbx), %eax
movl %eax, -0x4(%rbx)
movl %r15d, -0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsrange
void sdsrange(sds s, int start, int end) {
    struct sdshdr *sh = (void*) (s-sizeof *sh);
    size_t newlen, len = sdslen(s);

    if (len == 0) return;
    if (start < 0) {
        start = len+start;
        if (start < 0) start = 0;
    }
    if (end < 0) {
        end = len+end;
        if (end < 0) end = 0;
    }
    newlen = (start > end) ? 0 : (end-start)+1;
    if (newlen != 0) {
        if (start >= (signed)len) {
            newlen = 0;
        } else if (end >= (signed)len) {
            end = len-1;
            newlen = (start > end) ? 0 : (end-start)+1;
        }
    } else {
        start = 0;
    }
    if (start && newlen) memmove(sh->buf, sh->buf+start, newlen);
    sh->buf[newlen] = 0;
    sh->free = sh->free+(sh->len-newlen);
    sh->len = newlen;
}

// Assembly:
movl -0x8(%rdi), %ecx
testl %ecx, %ecx
je 0x63e1
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leal (%rcx,%rsi), %eax
xorl %r14d, %r14d
testl %eax, %eax
cmovlel %r14d, %eax
testl %esi, %esi
cmovnsl %esi, %eax
leal (%rcx,%rdx), %esi
testl %esi, %esi
cmovlel %r14d, %esi
testl %edx, %edx
cmovnsl %edx, %esi
movl %esi, %edx
subl %eax, %edx
leal 0x1(%rdx), %edi
cmovbl %r14d, %edi
movl %ecx, %edx
subl %eax, %edx
jle 0x63c5
testl %edi, %edi
je 0x63c5
leal -0x1(%rcx), %r8d
xorl %r9d, %r9d
cmpl %r8d, %eax
cmoval %r9d, %edx
cmpl %ecx, %esi
cmovbl %edi, %edx
movslq %edx, %r14
testl %eax, %eax
je 0x63c5
testl %edx, %edx
je 0x63c5
movl %eax, %esi
addq %rbx, %rsi
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3410
movb $0x0, (%rbx,%r14)
movl -0x4(%rbx), %eax
subl %r14d, %eax
addl -0x8(%rbx), %eax
movl %eax, -0x4(%rbx)
movl %r14d, -0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsfreesplitres
void sdsfreesplitres(sds *tokens, int count) {
    if (!tokens) return;
    while(count--)
        sdsfree(tokens[count]);
    free(tokens);
}

// Assembly:
testq %rdi, %rdi
je 0x666d
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testl %esi, %esi
je 0x665e
movslq %esi, %r14
movq -0x8(%rbx,%r14,8), %rdi
testq %rdi, %rdi
je 0x6659
addq $-0x8, %rdi
callq 0x3050
decq %r14
jne 0x6646
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3050
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsfromlonglong
sds sdsfromlonglong(long long value) {
    char buf[32], *p;
    unsigned long long v;

    v = (value < 0) ? -value : value;
    p = buf+31; /* point to the last character */
    do {
        *p-- = '0'+(v%10);
        v /= 10;
    } while(v);
    if (value < 0) *p-- = '-';
    p++;
    return sdsnewlen(p,32-(p-buf));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rcx
negq %rcx
cmovsq %rdi, %rcx
movl $0x7, %r15d
xorl %r12d, %r12d
movabsq $-0x3333333333333333, %rsi # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rax
mulq %rsi
shrq $0x3, %rdx
leal (%rdx,%rdx), %eax
leal (%rax,%rax,4), %eax
movl %ecx, %r8d
subl %eax, %r8d
orb $0x30, %r8b
movb %r8b, 0x1f(%rsp,%r12)
decq %r12
incq %r15
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x6698
movq $-0x1, %r13
testq %rdi, %rdi
jns 0x66df
movb $0x2d, 0x1f(%rsp,%r12)
movq $-0x2, %r13
leaq (%r12,%r13), %rbx
movl $0x8, %edi
subq %rbx, %rdi
callq 0x3340
testq %rax, %rax
je 0x673b
movq %rax, %r14
movq %r13, %rax
notq %rax
movl %r13d, %ecx
notl %ecx
subl %r12d, %ecx
movl %ecx, (%r14)
movl $0x0, 0x4(%r14)
cmpq %r12, %rax
je 0x672d
leaq (%rsp,%rbx), %rsi
addq $0x21, %rsi
notq %rbx
leaq 0x8(%r14), %rdi
movq %rbx, %rdx
callq 0x32f0
leaq 0x8(%r14), %rax
subq %r13, %r14
movb $0x0, (%r15,%r14)
jmp 0x673d
xorl %eax, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdscatrepr
sds sdscatrepr(sds s, const char *p, size_t len) {
    s = sdscatlen(s,"\"",1);
    while(len--) {
        switch(*p) {
        case '\\':
        case '"':
            s = sdscatprintf(s,"\\%c",*p);
            break;
        case '\n': s = sdscatlen(s,"\\n",2); break;
        case '\r': s = sdscatlen(s,"\\r",2); break;
        case '\t': s = sdscatlen(s,"\\t",2); break;
        case '\a': s = sdscatlen(s,"\\a",2); break;
        case '\b': s = sdscatlen(s,"\\b",2); break;
        default:
            if (isprint(*p))
                s = sdscatprintf(s,"%c",*p);
            else
                s = sdscatprintf(s,"\\x%02x",(unsigned char)*p);
            break;
        }
        p++;
    }
    return sdscatlen(s,"\"",1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movslq -0x8(%rdi), %r15
movl $0x1, %esi
callq 0x31c0
movq %rax, %rbp
testq %rax, %rax
je 0x6788
movb $0x22, (%rbp,%r15)
leaq 0x1(%r15), %rax
movl %eax, -0x8(%rbp)
decl -0x4(%rbp)
movb $0x0, 0x1(%rbp,%r15)
testq %rbx, %rbx
je 0x68e7
xorl %r15d, %r15d
movsbl (%r14,%r15), %r12d
movzbl %r12b, %r13d
leal -0x7(%r13), %eax
cmpl $0x6, %eax
ja 0x67df
leaq 0x2c83(%rip), %rcx      # 0x9430
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movslq -0x8(%rbp), %r12
movl $0x2, %esi
movq %rbp, %rdi
callq 0x31c0
testq %rax, %rax
je 0x68c0
movq %rax, %rbp
movw $0x615c, (%rax,%r12)    # imm = 0x615C
jmp 0x68ac
cmpl $0x5c, %r13d
je 0x67eb
cmpl $0x22, %r13d
jne 0x67fa
movq %rbp, %rdi
leaq 0x2d06(%rip), %rsi      # 0x94fb
jmp 0x68ce
callq 0x3520
movq (%rax), %rax
movslq %r12d, %rcx
testb $0x40, 0x1(%rax,%rcx,2)
jne 0x68c4
movq %rbp, %rdi
leaq 0x2ce5(%rip), %rsi      # 0x94ff
movl %r13d, %edx
jmp 0x68d1
movslq -0x8(%rbp), %r12
movl $0x2, %esi
movq %rbp, %rdi
callq 0x31c0
testq %rax, %rax
je 0x68c0
movq %rax, %rbp
movw $0x625c, (%rax,%r12)    # imm = 0x625C
jmp 0x68ac
movslq -0x8(%rbp), %r12
movl $0x2, %esi
movq %rbp, %rdi
callq 0x31c0
testq %rax, %rax
je 0x68c0
movq %rax, %rbp
movw $0x745c, (%rax,%r12)    # imm = 0x745C
jmp 0x68ac
movslq -0x8(%rbp), %r12
movl $0x2, %esi
movq %rbp, %rdi
callq 0x31c0
testq %rax, %rax
je 0x68c0
movq %rax, %rbp
movw $0x6e5c, (%rax,%r12)    # imm = 0x6E5C
jmp 0x68ac
movslq -0x8(%rbp), %r12
movl $0x2, %esi
movq %rbp, %rdi
callq 0x31c0
testq %rax, %rax
je 0x68c0
movq %rax, %rbp
movw $0x725c, (%rax,%r12)    # imm = 0x725C
leaq 0x2(%r12), %rax
movl %eax, -0x8(%rbp)
addl $-0x2, -0x4(%rbp)
movb $0x0, 0x2(%rbp,%r12)
jmp 0x68db
xorl %ebp, %ebp
jmp 0x68db
movq %rbp, %rdi
leaq 0x2c2e(%rip), %rsi      # 0x94fc
movl %r12d, %edx
xorl %eax, %eax
callq 0x3140
movq %rax, %rbp
incq %r15
cmpq %r15, %rbx
jne 0x6794
movslq -0x8(%rbp), %rbx
movl $0x1, %esi
movq %rbp, %rdi
callq 0x31c0
testq %rax, %rax
je 0x6910
movb $0x22, (%rax,%rbx)
leaq 0x1(%rbx), %rcx
movl %ecx, -0x8(%rax)
decl -0x4(%rax)
movb $0x0, 0x1(%rax,%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: hex_digit_to_int
int hex_digit_to_int(char c) {
    switch(c) {
    case '0': return 0;
    case '1': return 1;
    case '2': return 2;
    case '3': return 3;
    case '4': return 4;
    case '5': return 5;
    case '6': return 6;
    case '7': return 7;
    case '8': return 8;
    case '9': return 9;
    case 'a': case 'A': return 10;
    case 'b': case 'B': return 11;
    case 'c': case 'C': return 12;
    case 'd': case 'D': return 13;
    case 'e': case 'E': return 14;
    case 'f': case 'F': return 15;
    default: return 0;
    }
}

// Assembly:
xorl %eax, %eax
leal -0x31(%rdi), %ecx
cmpl $0x15, %ecx
ja 0x695c
leaq 0x2aff(%rip), %rdx      # 0x944c
movslq (%rdx,%rcx,4), %rcx
addq %rdx, %rcx
jmpq *%rcx
movl $0x1, %eax
retq
addl $-0x61, %edi
cmpl $0x5, %edi
ja 0x6997
leaq 0x2b39(%rip), %rax      # 0x94a4
movslq (%rax,%rdi,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movl $0xa, %eax
retq
movl $0xd, %eax
retq
movl $0xc, %eax
retq
movl $0xe, %eax
retq
movl $0xb, %eax
retq
movl $0xf, %eax
retq
movl $0x3, %eax
retq
movl $0x5, %eax
retq
movl $0x2, %eax
retq
movl $0x9, %eax
retq
movl $0x8, %eax
retq
movl $0x7, %eax
retq
movl $0x4, %eax
retq
movl $0x6, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsmapchars
sds sdsmapchars(sds s, const char *from, const char *to, size_t setlen) {
    size_t j, i, l = sdslen(s);

    for (j = 0; j < l; j++) {
        for (i = 0; i < setlen; i++) {
            if (s[j] == from[i]) {
                s[j] = to[i];
                break;
            }
        }
    }
    return s;
}

// Assembly:
movq %rdi, %rax
movslq -0x8(%rdi), %rdi
testq %rdi, %rdi
je 0x6e1c
xorl %r8d, %r8d
testq %rcx, %rcx
je 0x6e14
movb (%rax,%r8), %r9b
xorl %r10d, %r10d
cmpb (%rsi,%r10), %r9b
je 0x6e0c
incq %r10
cmpq %r10, %rcx
jne 0x6dfc
jmp 0x6e14
movb (%rdx,%r10), %r9b
movb %r9b, (%rax,%r8)
incq %r8
cmpq %rdi, %r8
jne 0x6df0
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsjoin
sds sdsjoin(char **argv, int argc, char *sep, size_t seplen) {
    sds join = sdsempty();
    int j;

    for (j = 0; j < argc; j++) {
        join = sdscat(join, argv[j]);
        if (j != argc-1) join = sdscatlen(join,sep,seplen);
    }
    return join;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, 0x8(%rsp)
movl %esi, %r13d
movq %rdi, %r15
movl $0x1, %edi
movl $0x9, %esi
callq 0x3290
leaq 0x8(%rax), %r12
testq %rax, %rax
cmoveq %rax, %r12
testl %r13d, %r13d
jle 0x6ee2
movq %rbx, 0x10(%rsp)
leal -0x1(%r13), %ebp
movl %r13d, %r13d
xorl %r14d, %r14d
movq %r13, (%rsp)
movq 0x10(%rsp), %rbx
movq (%r15,%r14,8), %rsi
movq %r12, %rdi
callq 0x3380
movq %rax, %r12
cmpq %r14, %rbp
je 0x6eda
movq %rbp, %r13
movq %r15, %rbp
movslq -0x8(%r12), %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x31c0
testq %rax, %rax
je 0x6ecd
movq %rax, %r12
movq %rax, %rdi
addq %r15, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x32f0
addq %rbx, %r15
movl %r15d, -0x8(%r12)
subl %ebx, -0x4(%r12)
movb $0x0, (%r12,%r15)
jmp 0x6ed0
xorl %r12d, %r12d
movq %rbp, %r15
movq %r13, %rbp
movq (%rsp), %r13
incq %r14
cmpq %r14, %r13
jne 0x6e74
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/sds.c
// Function: sdsjoinsds
sds sdsjoinsds(sds *argv, int argc, const char *sep, size_t seplen) {
    sds join = sdsempty();
    int j;

    for (j = 0; j < argc; j++) {
        join = sdscatsds(join, argv[j]);
        if (j != argc-1) join = sdscatlen(join,sep,seplen);
    }
    return join;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, %rbx
movq %rdx, 0x8(%rsp)
movl %esi, %r13d
movq %rdi, %r15
movl $0x1, %edi
movl $0x9, %esi
callq 0x3290
leaq 0x8(%rax), %r12
testq %rax, %rax
cmoveq %rax, %r12
testl %r13d, %r13d
jle 0x6fb9
movq %rbx, 0x10(%rsp)
leal -0x1(%r13), %ebp
movl %r13d, %r13d
xorl %r14d, %r14d
movq %r13, (%rsp)
movq 0x10(%rsp), %rbx
movq (%r15,%r14,8), %rsi
movq %r12, %rdi
callq 0x3480
movq %rax, %r12
cmpq %r14, %rbp
je 0x6fb1
movq %rbp, %r13
movq %r15, %rbp
movslq -0x8(%r12), %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x31c0
testq %rax, %rax
je 0x6fa4
movq %rax, %r12
movq %rax, %rdi
addq %r15, %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %rdx
callq 0x32f0
addq %rbx, %r15
movl %r15d, -0x8(%r12)
subl %ebx, -0x4(%r12)
movb $0x0, (%r12,%r15)
jmp 0x6fa7
xorl %r12d, %r12d
movq %rbp, %r15
movq %r13, %rbp
movq (%rsp), %r13
incq %r14
cmpq %r14, %r13
jne 0x6f4b
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncConnect
redisAsyncContext *redisAsyncConnect(const char *ip, int port) {
    redisContext *c;
    redisAsyncContext *ac;

    c = redisConnectNonBlock(ip,port);
    if (c == NULL)
        return NULL;

    ac = redisAsyncInitialize(c);
    if (ac == NULL) {
        redisFree(c);
        return NULL;
    }

    __redisAsyncCopyError(ac);
    return ac;
}

// Assembly:
pushq %rbx
callq 0x3390
testq %rax, %rax
je 0x7007
movq %rax, %rbx
movq %rax, %rdi
callq 0x700b
testq %rax, %rax
je 0x6fff
movl (%rax), %ecx
movl %ecx, 0xd0(%rax)
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, 0xd8(%rax)
jmp 0x7009
movq %rbx, %rdi
callq 0x3320
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncInitialize
static redisAsyncContext *redisAsyncInitialize(redisContext *c) {
    redisAsyncContext *ac;

    ac = realloc(c,sizeof(redisAsyncContext));
    if (ac == NULL)
        return NULL;

    c = &(ac->c);

    /* The regular connect functions will always set the flag REDIS_CONNECTED.
     * For the async API, we want to wait until the first write event is
     * received up before setting this flag, so reset it here. */
    c->flags &= ~REDIS_CONNECTED;

    ac->err = 0;
    ac->errstr = NULL;
    ac->data = NULL;

    ac->ev.data = NULL;
    ac->ev.addRead = NULL;
    ac->ev.delRead = NULL;
    ac->ev.addWrite = NULL;
    ac->ev.delWrite = NULL;
    ac->ev.cleanup = NULL;

    ac->onConnect = NULL;
    ac->onDisconnect = NULL;

    ac->replies.head = NULL;
    ac->replies.tail = NULL;
    ac->sub.invalid.head = NULL;
    ac->sub.invalid.tail = NULL;
    ac->sub.channels = dictCreate(&callbackDict,NULL);
    ac->sub.patterns = dictCreate(&callbackDict,NULL);
    return ac;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl $0x158, %esi            # imm = 0x158
callq 0x33a0
movq %rax, %rbx
testq %rax, %rax
je 0x70b8
andb $-0x3, 0x88(%rbx)
movl $0x0, 0xd0(%rbx)
movl $0x30, %edi
callq 0x3340
xorps %xmm0, %xmm0
movups %xmm0, 0xd8(%rbx)
movups %xmm0, 0xe8(%rbx)
movups %xmm0, 0xf8(%rbx)
movups %xmm0, 0x108(%rbx)
movups %xmm0, 0x118(%rbx)
movups %xmm0, 0x128(%rbx)
movups %xmm0, 0x138(%rbx)
xorl %r14d, %r14d
movq %r14, (%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
leaq 0x6256(%rip), %r15      # 0xd2e0
movq %r15, 0x8(%rax)
movq %rax, 0x148(%rbx)
movl $0x30, %edi
callq 0x3340
movq %r14, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movq %r15, 0x8(%rax)
movq %rax, 0x150(%rbx)
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncConnectBind
redisAsyncContext *redisAsyncConnectBind(const char *ip, int port,
                                         const char *source_addr) {
    redisContext *c = redisConnectBindNonBlock(ip,port,source_addr);
    redisAsyncContext *ac = redisAsyncInitialize(c);
    __redisAsyncCopyError(ac);
    return ac;
}

// Assembly:
pushq %rax
callq 0x3330
movq %rax, %rdi
callq 0x700b
testq %rax, %rax
je 0x70ea
movl (%rax), %ecx
movl %ecx, 0xd0(%rax)
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, 0xd8(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncConnectBindWithReuse
redisAsyncContext *redisAsyncConnectBindWithReuse(const char *ip, int port,
                                                  const char *source_addr) {
    redisContext *c = redisConnectBindNonBlockWithReuse(ip,port,source_addr);
    redisAsyncContext *ac = redisAsyncInitialize(c);
    __redisAsyncCopyError(ac);
    return ac;
}

// Assembly:
pushq %rax
callq 0x3300
movq %rax, %rdi
callq 0x700b
testq %rax, %rax
je 0x7115
movl (%rax), %ecx
movl %ecx, 0xd0(%rax)
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, 0xd8(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncConnectUnix
redisAsyncContext *redisAsyncConnectUnix(const char *path) {
    redisContext *c;
    redisAsyncContext *ac;

    c = redisConnectUnixNonBlock(path);
    if (c == NULL)
        return NULL;

    ac = redisAsyncInitialize(c);
    if (ac == NULL) {
        redisFree(c);
        return NULL;
    }

    __redisAsyncCopyError(ac);
    return ac;
}

// Assembly:
pushq %rbx
callq 0x33b0
testq %rax, %rax
je 0x7152
movq %rax, %rbx
movq %rax, %rdi
callq 0x700b
testq %rax, %rax
je 0x714a
movl (%rax), %ecx
movl %ecx, 0xd0(%rax)
movq %rax, %rcx
addq $0x4, %rcx
movq %rcx, 0xd8(%rax)
jmp 0x7154
movq %rbx, %rdi
callq 0x3320
xorl %eax, %eax
popq %rbx
retq