LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/aquaxis[P]synverll/src/synverll.c
// Function: main
int main(int argc,char *argv[])
{
    char *filename;
    unsigned int i;

    if(argc > 1){
        // 引数の解析
        for(i = 1; i < argc; i++){
            if(!strcmp(argv[i],"--help")){
                help(); // ヘルプの表示
                exit(0);
            }else if(!strcmp(argv[i],"-d")){
				debug_mode = 1;
			}
        }

		if(argc < 2){
            help(); // ヘルプの表示
            exit(0);
		}

		filename = argv[1];
//		topname  = argv[2];

		topname = calloc(strlen(filename) +10, 1);
		strcpy(topname, filename);
		topname[strlen(topname)-2] = 0;
		strcat(topname, "_top");
		printf("topname: %s\n", topname);

        process(filename);
    }else{
        help(); // ヘルプの表示
    }
    exit(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpl $0x2, %edi
jl 0xc460
movq %rsi, %rbx
movl %edi, %r13d
movl $0x1, %ebp
leaq 0x3d3e(%rip), %r14      # 0x100f1
leaq 0x3d3e(%rip), %r15      # 0x100f8
movq (%rbx,%rbp,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x1110
testl %eax, %eax
je 0xc460
movq %r12, %rdi
movq %r15, %rsi
callq 0x1110
testl %eax, %eax
jne 0xc3ea
movl $0x1, 0x81fe(%rip)      # 0x145e8
incq %rbp
cmpq %rbp, %r13
jne 0xc3ba
movq 0x8(%rbx), %rbx
movq %rbx, %rdi
callq 0x1090
leaq 0xa(%rax), %rdi
movl $0x1, %esi
callq 0x1100
movq %rax, %r14
movq %rax, 0x81da(%rip)      # 0x145f0
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1060
movq %r14, %rdi
callq 0x1090
xorl %ebp, %ebp
movb %bpl, -0x2(%r14,%rax)
movq %r14, %rdi
callq 0x1090
movb %bpl, 0x4(%r14,%rax)
movl $0x706f745f, (%r14,%rax) # imm = 0x706F745F
leaq 0x3cb4(%rip), %rdi      # 0x10100
movq %r14, %rsi
xorl %eax, %eax
callq 0x10b0
movq %rbx, %rdi
callq 0xc185
jmp 0xc465
callq 0xc324
xorl %edi, %edi
callq 0x11c0
// File: /workspace/github_c_makefile_star2_O1/aquaxis[P]synverll/src/token.c
// Function: insert_token_order
int insert_token_order(char *line, char *token, FILE *fp)
{
//    TOKEN_ORDER *new_token_order;

    if(!strcmp(token,"//")){
        // //のコメント行は行末までコメントなので読み飛ばす
        do{
            get_line(line, fp);
            get_token(line, token);
        }while(strcmp(token,"\n"));
    }else if(!strcmp(token,"/*")){
        // /*のコメント行は*/までコメントなので読み飛ばす
        do{
            get_line(line, fp);
            get_token(line, token);
        }while(strcmp(token,"*/"));
        // 改行の場合は何もしない
    }else if(!strcmp(token,"\r")){
        // 改行の場合は何もしない
    }else if(!strcmp(token,"")){
        // トークンに何もない場合は何も処理しない
    }else{
        // トークンオーダーの新規取得
        create_token_order();

        // トークンオーダーにトークンを登録する
        token_order_current->str = (char *)malloc(strlen(token)+1);
        strcpy(token_order_current->str, token);
    }
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x3925(%rip), %rsi      # 0x1026e
movq %rbx, %rdi
callq 0x1110
testl %eax, %eax
je 0xc9ba
leaq 0x3915(%rip), %rsi      # 0x10271
movq %rbx, %rdi
callq 0x1110
testl %eax, %eax
je 0xc9f3
leaq 0x185f(%rip), %rsi      # 0xe1d2
movq %rbx, %rdi
callq 0x1110
testl %eax, %eax
je 0xca2a
cmpb $0x0, (%rbx)
je 0xca2a
callq 0xca38
movq %rbx, %rdi
callq 0x1090
leaq 0x1(%rax), %rdi
callq 0x1140
movq 0x7c57(%rip), %rcx      # 0x14600
movq %rax, 0x10(%rcx)
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1060
jmp 0xca2a
leaq 0x360d(%rip), %r12      # 0xffce
cmpb $0x0, (%r15)
jne 0xc9d7
movq %r15, %rdi
movl $0x400, %esi            # imm = 0x400
movq %r14, %rdx
callq 0x10f0
movq %r15, %rdi
movq %rbx, %rsi
callq 0xc4cb
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1110
testl %eax, %eax
jne 0xc9c1
jmp 0xca2a
leaq 0x387a(%rip), %r12      # 0x10274
cmpb $0x0, (%r15)
jne 0xca10
movq %r15, %rdi
movl $0x400, %esi            # imm = 0x400
movq %r14, %rdx
callq 0x10f0
movq %r15, %rdi
movq %rbx, %rsi
callq 0xc4cb
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1110
testl %eax, %eax
jne 0xc9fa
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/aquaxis[P]synverll/src/token.c
// Function: create_token_order
int create_token_order()
{
    // トークンオーダーの生成
    if(token_order_top == NULL){
        // 先頭トークンオーダーが空の場合、新規取得したトークンオーダーをセットする
        token_order_top = (TOKEN_ORDER *)malloc(sizeof(TOKEN_ORDER));
        token_order_current = token_order_top;
    }else{
        token_order_current->next_ptr = (TOKEN_ORDER *)malloc(sizeof(TOKEN_ORDER));
        token_order_prev    = token_order_current;
        token_order_current = token_order_prev->next_ptr;
    }
    token_order_current->next_ptr   = NULL;
    token_order_current->str        = NULL;
    return 0;
}

// Assembly:
pushq %rbx
movq 0x7bb8(%rip), %rbx      # 0x145f8
movl $0x18, %edi
callq 0x1140
testq %rbx, %rbx
je 0xca6c
movq 0x7baa(%rip), %rcx      # 0x14600
movq %rax, (%rcx)
movq 0x7ba0(%rip), %rax      # 0x14600
movq %rax, 0x7ba1(%rip)      # 0x14608
movq (%rax), %rax
jmp 0xca73
movq %rax, 0x7b85(%rip)      # 0x145f8
movq %rax, 0x7b86(%rip)      # 0x14600
xorl %ecx, %ecx
movq %rcx, (%rax)
movq 0x7b7a(%rip), %rax      # 0x14600
movq %rcx, 0x10(%rax)
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/aquaxis[P]synverll/src/token.c
// Function: clean_token_order
int clean_token_order()
{
    TOKEN_ORDER *new_token_order;

    token_order_current = token_order_top;
    while(1){
        if(token_order_current == NULL) break;
        new_token_order = token_order_current->next_ptr;
        free(token_order_current);
        token_order_current = new_token_order;
    }
    token_order_top = NULL;
    return 0;
}

// Assembly:
movq 0x7b63(%rip), %rdi      # 0x145f8
movq %rdi, 0x7b64(%rip)      # 0x14600
testq %rdi, %rdi
je 0xcaba
pushq %rbx
movq (%rdi), %rbx
callq 0x1030
movq %rbx, 0x7b4f(%rip)      # 0x14600
movq %rbx, %rdi
testq %rbx, %rbx
jne 0xcaa2
popq %rbx
movq $0x0, 0x7b33(%rip) # 0x145f8
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/aquaxis[P]synverll/src/token.c
// Function: read_token
int read_token(char *token)
{
    if(token_order_current != NULL){
        strcpy(token, token_order_current->str);
        token_order_prev    = token_order_current;
        token_order_current = token_order_current->next_ptr;
        return 0;
    }else{
        *token = '\0';
        return 1;
    }
}

// Assembly:
movq 0x7b31(%rip), %rax      # 0x14600
testq %rax, %rax
je 0xcafd
pushq %rax
movq 0x10(%rax), %rsi
callq 0x1060
movq 0x7b1b(%rip), %rax      # 0x14600
movq %rax, 0x7b1c(%rip)      # 0x14608
movq (%rax), %rax
movq %rax, 0x7b0a(%rip)      # 0x14600
xorl %eax, %eax
addq $0x8, %rsp
retq
movb $0x0, (%rdi)
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/aquaxis[P]synverll/src/token.c
// Function: read_file
int read_file(char *filename)
{
    FILE *fp;
    char *line, *token;

	line = malloc(STR_MAX);
	token = malloc(STR_MAX);

	memset(line, 0, STR_MAX);
	memset(token, 0, STR_MAX);

    printf("Open Filename: %s\n",filename);
    if((fp =fopen(filename,"rb")) == NULL){
        printf("can't open file.\n");
		free(line);
		free(token);
        exit(1);
    }
    while(1){
        get_line(line, fp);
        get_token(line, token);
        if(*token == '\0') break;
        insert_token_order(line, token, fp);    // トークンを追加する
    }
    fclose(fp);

	free(line);
	free(token);

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r15
movl $0x400, %edi            # imm = 0x400
callq 0x1140
movq %rax, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x1140
movq %rax, %rbx
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x10d0
movl $0x400, %edx            # imm = 0x400
movq %rbx, %rdi
xorl %esi, %esi
callq 0x10d0
leaq 0x36ee(%rip), %rdi      # 0x10277
movq %r15, %rsi
xorl %eax, %eax
callq 0x10b0
leaq 0x34fb(%rip), %rsi      # 0x10095
movq %r15, %rdi
callq 0x1170
testq %rax, %rax
je 0xcc00
movq %rax, %r15
cmpb $0x0, (%r14)
jne 0xcbc0
movq %r14, %rdi
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdx
callq 0x10f0
movq %r14, %rdi
movq %rbx, %rsi
callq 0xc4cb
cmpb $0x0, (%rbx)
je 0xcbe0
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0xc931
jmp 0xcbaa
movq %r15, %rdi
callq 0x1080
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
leaq 0x3553(%rip), %rdi      # 0x1015a
callq 0x1070
movq %r14, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1030
movl $0x1, %edi
callq 0x11c0
// File: /workspace/github_c_makefile_star2_O1/aquaxis[P]synverll/src/token.c
// Function: get_chara_llvm
int get_chara_llvm(char *line, char *token)
{
    char *p, *ptk, *pp;

    // ポインタの初期化
    p   = line;
    ptk = token;

    *ptk = 0;

    // cか"の場合、読み飛ばす
    while(*p == 'c' || *p == '"') ++p;
    // バッファが空の場合は終了する
    if(*p == '\0'){
		pp = malloc(strlen(p)+1);	// 残りの文字列をlineに戻す
		strcpy(pp,p);
		strcpy(line,pp);
		free(pp);
        token[0] = '\0';
        return 1;
    }

    if(*p == '"'){
		// "は終了
		*ptk = 0;
		return -1;
    }else if(*p == '\\'){
        (*p)++;
		// \はこの後に2文字16進数が続く
		/*
		 * ToDo:
		 *   isxdigit(*p)でエラー処理を入れる
		 */
        *ptk = *p++;
		*ptk <<= 4;	// 16倍する
        *ptk = *p++;
    }else{	// それ以外は一文字のキャラクターとして処理する
        *ptk = *p++;
	}
    pp = malloc(strlen(p)+1);	// 残りの文字列をlineに戻す
    strcpy(pp,p);
    strcpy(line,pp);
    free(pp);
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movb $0x0, (%rsi)
movq %rdi, %r15
movb (%r15), %al
movzbl %al, %ecx
cmpl $0x5b, %ecx
jg 0xd220
cmpl $0x22, %ecx
je 0xd225
jmp 0xd22a
cmpl $0x63, %ecx
jne 0xd26b
incq %r15
jmp 0xd20e
testl %ecx, %ecx
jne 0xd282
movq %r15, %rdi
callq 0x1090
leaq 0x1(%rax), %rdi
callq 0x1140
movq %rax, %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x1060
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1060
movq %r12, %rdi
callq 0x1030
movb $0x0, (%r14)
movl $0x1, %eax
jmp 0xd2bc
cmpl $0x5c, %ecx
jne 0xd282
movb $0x5d, (%r15)
movb $-0x30, (%r14)
movb 0x1(%r15), %al
addq $0x2, %r15
jmp 0xd285
incq %r15
movb %al, (%r14)
movq %r15, %rdi
callq 0x1090
leaq 0x1(%rax), %rdi
callq 0x1140
movq %rax, %r14
movq %rax, %rdi
movq %r15, %rsi
callq 0x1060
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1060
movq %r14, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/net.c
// Function: redisKeepAlive
int redisKeepAlive(redisContext *c, int interval) {
    int val = 1;
    int fd = c->fd;

    if (setsockopt(fd, SOL_SOCKET, SO_KEEPALIVE, &val, sizeof(val)) == -1){
        __redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
        return REDIS_ERR;
    }

    val = interval;

#ifdef _OSX
    if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPALIVE, &val, sizeof(val)) < 0) {
        __redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
        return REDIS_ERR;
    }
#else
#if defined(__GLIBC__) && !defined(__FreeBSD_kernel__)
    val = interval;
    if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPIDLE, &val, sizeof(val)) < 0) {
        __redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
        return REDIS_ERR;
    }

    val = interval/3;
    if (val == 0) val = 1;
    if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPINTVL, &val, sizeof(val)) < 0) {
        __redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
        return REDIS_ERR;
    }

    val = 3;
    if (setsockopt(fd, IPPROTO_TCP, TCP_KEEPCNT, &val, sizeof(val)) < 0) {
        __redisSetError(c,REDIS_ERR_OTHER,strerror(errno));
        return REDIS_ERR;
    }
#endif
#endif

    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %r14d
movq %rdi, %rbx
leaq 0xc(%rsp), %rcx
movl $0x1, (%rcx)
movl 0x84(%rdi), %ebp
movl %ebp, %edi
movl $0x1, %esi
movl $0x9, %edx
movl $0x4, %r8d
callq 0x30d0
cmpl $-0x1, %eax
je 0x3701
leaq 0xc(%rsp), %rcx
movl %r14d, (%rcx)
movl %ebp, %edi
movl $0x6, %esi
movl $0x4, %edx
movl $0x4, %r8d
callq 0x30d0
testl %eax, %eax
js 0x3701
movslq %r14d, %rax
imulq $0x55555556, %rax, %rax # imm = 0x55555556
movq %rax, %rcx
shrq $0x3f, %rcx
shrq $0x20, %rax
addl %ecx, %eax
addl $0x2, %r14d
cmpl $0x5, %r14d
movl $0x1, %edx
cmovael %eax, %edx
leaq 0xc(%rsp), %rcx
movl %edx, (%rcx)
movl %ebp, %edi
movl $0x6, %esi
movl $0x5, %edx
movl $0x4, %r8d
callq 0x30d0
testl %eax, %eax
js 0x3701
leaq 0xc(%rsp), %rcx
movl $0x3, (%rcx)
movl %ebp, %edi
movl $0x6, %esi
movl $0x6, %edx
movl $0x4, %r8d
callq 0x30d0
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
jns 0x3722
callq 0x3080
movl (%rax), %edi
callq 0x34d0
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
callq 0x32a0
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/net.c
// Function: redisCheckSocketError
int redisCheckSocketError(redisContext *c) {
    int err = 0;
    socklen_t errlen = sizeof(err);

    if (getsockopt(c->fd, SOL_SOCKET, SO_ERROR, &err, &errlen) == -1) {
        __redisSetErrorFromErrno(c,REDIS_ERR_IO,"getsockopt(SO_ERROR)");
        return REDIS_ERR;
    }

    if (err) {
        errno = err;
        __redisSetErrorFromErrno(c,REDIS_ERR_IO,NULL);
        return REDIS_ERR;
    }

    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %rcx
movl $0x0, (%rcx)
leaq 0x4(%rsp), %r8
movl $0x4, (%r8)
movl 0x84(%rdi), %edi
movl $0x1, %esi
movl $0x4, %edx
callq 0x3270
cmpl $-0x1, %eax
je 0x3775
movl (%rsp), %ebp
testl %ebp, %ebp
je 0x378b
callq 0x3080
movl %ebp, (%rax)
movq %rbx, %rdi
xorl %esi, %esi
jmp 0x377f
leaq 0x5884(%rip), %rsi      # 0x9000
movq %rbx, %rdi
callq 0x3794
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x378d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/net.c
// Function: _redisSetErrorFromErrno
static void __redisSetErrorFromErrno(redisContext *c, int type, const char *prefix) {
    char buf[128] = { 0 };
    size_t len = 0;

    if (prefix != NULL)
        len = snprintf(buf,sizeof(buf),"%s: ",prefix);
    __redis_strerror_r(errno, (char *)(buf + len), sizeof(buf) - len);
    __redisSetError(c,type,buf);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x88, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x70(%rsp)
movaps %xmm0, 0x60(%rsp)
movaps %xmm0, 0x50(%rsp)
movaps %xmm0, 0x40(%rsp)
movaps %xmm0, 0x30(%rsp)
movaps %xmm0, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movaps %xmm0, (%rsp)
testq %rsi, %rsi
je 0x37ee
movq %rsi, %rcx
leaq 0x586b(%rip), %rdx      # 0x9045
movq %rsp, %rdi
movl $0x80, %esi
xorl %eax, %eax
callq 0x3180
movslq %eax, %r14
jmp 0x37f1
xorl %r14d, %r14d
callq 0x3080
movl (%rax), %edi
leaq (%rsp,%r14), %rsi
movl $0x80, %edx
subq %r14, %rdx
callq 0x30f0
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x32a0
addq $0x88, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/net.c
// Function: redisContextConnectUnix
int redisContextConnectUnix(redisContext *c, const char *path, const struct timeval *timeout) {
    int blocking = (c->flags & REDIS_BLOCK);
    struct sockaddr_un sa;

    if (redisCreateSocket(c,AF_LOCAL) < 0)
        return REDIS_ERR;
    if (redisSetBlocking(c,0) != REDIS_OK)
        return REDIS_ERR;

    c->connection_type = REDIS_CONN_UNIX;
    if (c->unix_sock.path != path)
        c->unix_sock.path = strdup(path);

    if (timeout) {
        if (c->timeout != timeout) {
            if (c->timeout == NULL)
                c->timeout = malloc(sizeof(struct timeval));

            memcpy(c->timeout, timeout, sizeof(struct timeval));
        }
    } else {
        if (c->timeout)
            free(c->timeout);
        c->timeout = NULL;
    }

    sa.sun_family = AF_LOCAL;
    strncpy(sa.sun_path,path,sizeof(sa.sun_path)-1);
    if (connect(c->fd, (struct sockaddr*)&sa, sizeof(sa)) == -1) {
        if (errno == EINPROGRESS && !blocking) {
            /* This is ok. */
        } else {
            if (redisContextWaitReady(c,c->timeout) != REDIS_OK)
                return REDIS_ERR;
        }
    }

    /* Reset socket to be blocking after connect(2). */
    if (blocking && redisSetBlocking(c,1) != REDIS_OK)
        return REDIS_ERR;

    c->flags |= REDIS_CONNECTED;
    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movl 0x88(%rdi), %r13d
movl $0x1, %edi
movl $0x1, %esi
xorl %edx, %edx
callq 0x3540
movl %eax, %r12d
cmpl $-0x1, %eax
je 0x3d88
movl %r12d, 0x84(%rbx)
jmp 0x3d92
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3794
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $-0x1, %r12d
je 0x3e9a
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3eab
testl %eax, %eax
jne 0x3e9a
movl $0x1, 0xa0(%rbx)
cmpq %r14, 0xc8(%rbx)
je 0x3dd5
movq %r14, %rdi
callq 0x34c0
movq %rax, 0xc8(%rbx)
movq 0xa8(%rbx), %rdi
testq %r15, %r15
je 0x3e0c
cmpq %r15, %rdi
je 0x3e21
testq %rdi, %rdi
jne 0x3dfc
movl $0x10, %edi
callq 0x3340
movq %rax, 0xa8(%rbx)
movq 0xa8(%rbx), %rax
movups (%r15), %xmm0
movups %xmm0, (%rax)
jmp 0x3e21
testq %rdi, %rdi
je 0x3e16
callq 0x3050
movq $0x0, 0xa8(%rbx)
leaq 0xc(%rsp), %rdi
movw $0x1, -0x2(%rdi)
movl $0x6b, %edx
movq %r14, %rsi
callq 0x3090
movl 0x84(%rbx), %edi
leaq 0xa(%rsp), %rsi
movl $0x6e, %edx
callq 0x3470
cmpl $-0x1, %eax
jne 0x3e7a
callq 0x3080
movl (%rax), %eax
xorl $0x73, %eax
movl %r13d, %ecx
andl $0x1, %ecx
orl %eax, %ecx
je 0x3e7a
movq 0xa8(%rbx), %rsi
movq %rbx, %rdi
callq 0x3f3e
testl %eax, %eax
jne 0x3e9a
testb $0x1, %r13b
je 0x3e91
movq %rbx, %rdi
movl $0x1, %esi
callq 0x3eab
testl %eax, %eax
jne 0x3e9a
orb $0x2, 0x88(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/net.c
// Function: redisSetBlocking
static int redisSetBlocking(redisContext *c, int blocking) {
    int flags;

    /* Set the socket nonblocking.
     * Note that fcntl(2) for F_GETFL and F_SETFL can't be
     * interrupted by a signal. */
    if ((flags = fcntl(c->fd, F_GETFL)) == -1) {
        __redisSetErrorFromErrno(c,REDIS_ERR_IO,"fcntl(F_GETFL)");
        redisContextCloseFd(c);
        return REDIS_ERR;
    }

    if (blocking)
        flags &= ~O_NONBLOCK;
    else
        flags |= O_NONBLOCK;

    if (fcntl(c->fd, F_SETFL, flags) == -1) {
        __redisSetErrorFromErrno(c,REDIS_ERR_IO,"fcntl(F_SETFL)");
        redisContextCloseFd(c);
        return REDIS_ERR;
    }
    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %r14d
movq %rdi, %rbx
movl 0x84(%rdi), %edi
xorl %ebp, %ebp
movl $0x3, %esi
xorl %eax, %eax
callq 0x3100
cmpl $-0x1, %eax
je 0x3f00
xorl %edx, %edx
testl %r14d, %r14d
sete %dl
andl $0xfffff7ff, %eax       # imm = 0xFFFFF7FF
shll $0xb, %edx
orl %eax, %edx
movl 0x84(%rbx), %edi
movl $0x4, %esi
xorl %eax, %eax
callq 0x3100
cmpl $-0x1, %eax
jne 0x3f37
leaq 0x51b7(%rip), %rsi      # 0x90b5
jmp 0x3f07
leaq 0x519f(%rip), %rsi      # 0x90a6
movq %rbx, %rdi
callq 0x3794
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x3f37
movl 0x84(%rbx), %edi
testl %edi, %edi
js 0x3f37
callq 0x3200
movl $0xffffffff, 0x84(%rbx) # imm = 0xFFFFFFFF
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/net.c
// Function: redisContextWaitReady
static int redisContextWaitReady(redisContext *c, const struct timeval *timeout) {
    struct pollfd   wfd[1];
    long msec;

    msec          = -1;
    wfd[0].fd     = c->fd;
    wfd[0].events = POLLOUT;

    /* Only use timeout when not NULL. */
    if (timeout != NULL) {
        if (timeout->tv_usec > 1000000 || timeout->tv_sec > __MAX_MSEC) {
            __redisSetErrorFromErrno(c, REDIS_ERR_IO, NULL);
            redisContextCloseFd(c);
            return REDIS_ERR;
        }

        msec = (timeout->tv_sec * 1000) + ((timeout->tv_usec + 999) / 1000);

        if (msec < 0 || msec > INT_MAX) {
            msec = INT_MAX;
        }
    }

    if (errno == EINPROGRESS) {
        int res;

        if ((res = poll(wfd, 1, msec)) == -1) {
            __redisSetErrorFromErrno(c, REDIS_ERR_IO, "poll(2)");
            redisContextCloseFd(c);
            return REDIS_ERR;
        } else if (res == 0) {
            errno = ETIMEDOUT;
            __redisSetErrorFromErrno(c,REDIS_ERR_IO,NULL);
            redisContextCloseFd(c);
            return REDIS_ERR;
        }

        if (redisCheckSocketError(c) != REDIS_OK)
            return REDIS_ERR;

        return REDIS_OK;
    }

    __redisSetErrorFromErrno(c,REDIS_ERR_IO,NULL);
    redisContextCloseFd(c);
    return REDIS_ERR;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x84(%rdi), %eax
movl %eax, (%rsp)
movw $0x4, 0x4(%rsp)
testq %rsi, %rsi
je 0x3fbb
movq 0x8(%rsi), %rax
cmpq $0xf4240, %rax          # imm = 0xF4240
jg 0x3ffa
movq (%rsi), %rcx
movabsq $0x20c49ba5e353f7, %rdx # imm = 0x20C49BA5E353F7
cmpq %rdx, %rcx
jge 0x3ffa
imulq $0x3e8, %rcx, %rcx      # imm = 0x3E8
addq $0x3e7, %rax            # imm = 0x3E7
movabsq $0x20c49ba5e353f7cf, %rdx # imm = 0x20C49BA5E353F7CF
imulq %rdx
movq %rdx, %r14
movq %rdx, %rax
shrq $0x3f, %rax
sarq $0x7, %r14
addq %rax, %r14
addq %rcx, %r14
movl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
cmpq %rax, %r14
cmovaeq %rax, %r14
jmp 0x3fc1
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
callq 0x3080
cmpl $0x73, (%rax)
jne 0x3ffa
movq %rax, %r15
movq %rsp, %rdi
movl $0x1, %esi
movl %r14d, %edx
callq 0x33d0
testl %eax, %eax
je 0x3ff3
cmpl $-0x1, %eax
jne 0x4034
leaq 0x50d6(%rip), %rsi      # 0x90c4
movq %rbx, %rdi
jmp 0x3fff
movl $0x6e, (%r15)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3794
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rbx, %rbx
je 0x4027
movl 0x84(%rbx), %edi
testl %edi, %edi
js 0x4027
callq 0x3200
movl $0xffffffff, 0x84(%rbx) # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x3150
xorl %ebp, %ebp
negl %eax
sbbl %ebp, %ebp
jmp 0x4027
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: freeReplyObject
void freeReplyObject(void *reply) {
    redisReply *r = reply;
    size_t j;

    if (r == NULL)
        return;

    switch(r->type) {
    case REDIS_REPLY_INTEGER:
        break; /* Nothing to free */
    case REDIS_REPLY_ARRAY:
        if (r->element != NULL) {
            for (j = 0; j < r->elements; j++)
                if (r->element[j] != NULL)
                    freeReplyObject(r->element[j]);
            free(r->element);
        }
        break;
    case REDIS_REPLY_ERROR:
    case REDIS_REPLY_STATUS:
    case REDIS_REPLY_STRING:
        if (r->str != NULL)
            free(r->str);
        break;
    }
    free(r);
}

// Assembly:
testq %rdi, %rdi
je 0x40b3
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl (%rdi), %eax
leal -0x5(%rax), %ecx
cmpl $0x2, %ecx
jb 0x4096
cmpl $0x1, %eax
je 0x4096
cmpl $0x2, %eax
jne 0x40a4
cmpq $0x0, 0x28(%rbx)
je 0x40a4
cmpq $0x0, 0x20(%rbx)
je 0x4090
xorl %r14d, %r14d
movq 0x28(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0x4087
callq 0x33f0
incq %r14
cmpq 0x20(%rbx), %r14
jb 0x4075
movq 0x28(%rbx), %rdi
jmp 0x409f
movq 0x18(%rbx), %rdi
testq %rdi, %rdi
je 0x40a4
callq 0x3050
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x3050
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisFormatCommand
int redisFormatCommand(char **target, const char *format, ...) {
    va_list ap;
    int len;
    va_start(ap,format);
    len = redisvFormatCommand(target,format,ap);
    va_end(ap);

    /* The API says "-1" means bad result, but we now also return "-2" in some
     * cases.  Force the return value to always be -1. */
    if (len < 0)
        len = -1;

    return len;
}

// Assembly:
subq $0xd8, %rsp
leaq 0x20(%rsp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x4861
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rdx
movq %r10, 0x10(%rdx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
callq 0x34f0
testl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
cmovsl %ecx, %eax
addq $0xd8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: _redisSetError
void __redisSetError(redisContext *c, int type, const char *str) {
    size_t len;

    c->err = type;
    if (str != NULL) {
        len = strlen(str);
        len = len < (sizeof(c->errstr)-1) ? len : (sizeof(c->errstr)-1);
        memcpy(c->errstr,str,len);
        c->errstr[len] = '\0';
    } else {
        /* Only REDIS_ERR_IO may lack a description! */
        assert(type == REDIS_ERR_IO);
        __redis_strerror_r(errno, c->errstr, sizeof(c->errstr));
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl %esi, (%rdi)
testq %rdx, %rdx
je 0x4c59
movq %rdx, %r14
movq %rdx, %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)
popq %rbx
popq %r14
popq %r15
retq
cmpl $0x1, %esi
jne 0x4c7b
callq 0x3080
movl (%rax), %edi
addq $0x4, %rbx
movl $0x80, %edx
movq %rbx, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x30f0
leaq 0x4572(%rip), %rdi      # 0x91f4
leaq 0x4469(%rip), %rsi      # 0x90f2
leaq 0x4579(%rip), %rcx      # 0x9209
movl $0x247, %edx            # imm = 0x247
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisFree
void redisFree(redisContext *c) {
    if (c == NULL)
        return;
    if (c->fd > 0)
        close(c->fd);
    if (c->obuf != NULL)
        sdsfree(c->obuf);
    if (c->reader != NULL)
        redisReaderFree(c->reader);
    if (c->tcp.host)
        free(c->tcp.host);
    if (c->tcp.source_addr)
        free(c->tcp.source_addr);
    if (c->unix_sock.path)
        free(c->unix_sock.path);
    if (c->timeout)
        free(c->timeout);
    free(c);
}

// Assembly:
testq %rdi, %rdi
je 0x4d31
pushq %rbx
movq %rdi, %rbx
movl 0x84(%rdi), %edi
testl %edi, %edi
jle 0x4cc2
callq 0x3200
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x4cd3
callq 0x3280
movq 0x98(%rbx), %rdi
testq %rdi, %rdi
je 0x4ce4
callq 0x34b0
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
je 0x4cf5
callq 0x3050
movq 0xb8(%rbx), %rdi
testq %rdi, %rdi
je 0x4d06
callq 0x3050
movq 0xc8(%rbx), %rdi
testq %rdi, %rdi
je 0x4d17
callq 0x3050
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x4d28
callq 0x3050
movq %rbx, %rdi
popq %rbx
jmp 0x3050
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisFreeKeepFd
int redisFreeKeepFd(redisContext *c) {
    int fd = c->fd;
    c->fd = -1;
    redisFree(c);
    return fd;
}

// Assembly:
pushq %rbx
movl 0x84(%rdi), %ebx
movl $0xffffffff, 0x84(%rdi) # imm = 0xFFFFFFFF
callq 0x3320
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisReconnect
int redisReconnect(redisContext *c) {
    c->err = 0;
    memset(c->errstr, '\0', strlen(c->errstr));

    if (c->fd > 0) {
        close(c->fd);
    }

    sdsfree(c->obuf);
    redisReaderFree(c->reader);

    c->obuf = sdsempty();
    c->reader = redisReaderCreate();

    if (c->connection_type == REDIS_CONN_TCP) {
        return redisContextConnectBindTcp(c, c->tcp.host, c->tcp.port,
                c->timeout, c->tcp.source_addr);
    } else if (c->connection_type == REDIS_CONN_UNIX) {
        return redisContextConnectUnix(c, c->unix_sock.path, c->timeout);
    } else {
        /* Something bad happened here and shouldn't have. There isn't
           enough information in the context to reconnect. */
        __redisSetError(c,REDIS_ERR_OTHER,"Not enough information to reconnect");
    }

    return REDIS_ERR;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x0, (%rdi)
leaq 0x4(%rdi), %r14
movq %r14, %rdi
callq 0x3130
movq %r14, %rdi
xorl %esi, %esi
movq %rax, %rdx
callq 0x31f0
movl 0x84(%rbx), %edi
testl %edi, %edi
jle 0x4d81
callq 0x3200
movq 0x90(%rbx), %rdi
callq 0x3280
movq 0x98(%rbx), %rdi
callq 0x34b0
callq 0x3490
movq %rax, 0x90(%rbx)
leaq 0x850c(%rip), %rdi      # 0xd2b8
callq 0x3430
movq %rax, 0x98(%rbx)
movl 0xa0(%rbx), %eax
cmpl $0x1, %eax
je 0x4df1
testl %eax, %eax
jne 0x4e0e
movq 0xa8(%rbx), %rcx
movq 0xb0(%rbx), %rsi
movl 0xc0(%rbx), %edx
movq 0xb8(%rbx), %r8
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x32d0
movq 0xa8(%rbx), %rdx
movq 0xc8(%rbx), %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x32b0
movl $0x2, (%rbx)
movups 0x4436(%rip), %xmm0     # 0x9251
movups %xmm0, 0x10(%r14)
movups 0x441a(%rip), %xmm0     # 0x9241
movups %xmm0, (%r14)
movl $0x7463656e, 0x1f(%r14) # imm = 0x7463656E
movb $0x0, 0x27(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnect
redisContext *redisConnect(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 0x4e7c
testq %rax, %rax
je 0x4e72
movq %rax, %rbx
orb $0x1, 0x88(%rax)
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x3400
jmp 0x4e74
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbx
movl $0x1, %edi
movl $0xd0, %esi
callq 0x3290
testq %rax, %rax
je 0x4ef5
movq %rax, %rbx
movl $0x0, (%rax)
movb $0x0, 0x4(%rax)
callq 0x3490
movq %rax, 0x90(%rbx)
leaq 0x8407(%rip), %rdi      # 0xd2b8
callq 0x3430
movq %rax, 0x98(%rbx)
xorl %ecx, %ecx
movq %rcx, 0xc8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xa8(%rbx)
movq %rcx, 0xb8(%rbx)
cmpq %rcx, 0x90(%rbx)
sete %cl
testq %rax, %rax
sete %al
orb %cl, %al
cmpb $0x1, %al
jne 0x4ef7
movq %rbx, %rdi
callq 0x3320
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %esi, %ebp
movq %rdi, %r14
movq %rdx, (%rsp)
movq %rcx, 0x8(%rsp)
callq 0x4e7c
testq %rax, %rax
je 0x4f38
movq %rax, %rbx
orb $0x1, 0x88(%rax)
movq %rsp, %rcx
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x3400
jmp 0x4f3a
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4e7c
testq %rax, %rax
je 0x4f74
movq %rax, %rbx
andb $-0x2, 0x88(%rax)
movq %rax, %rdi
movq %r14, %rsi
movl %ebp, %edx
xorl %ecx, %ecx
callq 0x3400
jmp 0x4f76
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4e7c
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_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectBindNonBlockWithReuse
redisContext *redisConnectBindNonBlockWithReuse(const char *ip, int port,
                                                const char *source_addr) {
    redisContext *c = redisContextInit();
    c->flags &= ~REDIS_BLOCK;
    c->flags |= REDIS_REUSEADDR;
    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 0x4e7c
movq %rax, %r15
movl $0xffffff7e, %eax       # imm = 0xFFFFFF7E
andl 0x88(%r15), %eax
orl $0x80, %eax
movl %eax, 0x88(%r15)
movq %r15, %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_O1/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 0x4e7c
testq %rax, %rax
je 0x5035
movq %rax, %rbx
orb $0x1, 0x88(%rax)
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x32b0
jmp 0x5037
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rsi, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
callq 0x4e7c
testq %rax, %rax
je 0x507c
movq %rax, %rbx
orb $0x1, 0x88(%rax)
leaq 0x8(%rsp), %rdx
movq %rax, %rdi
movq %r14, %rsi
callq 0x32b0
jmp 0x507e
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4e7c
testq %rax, %rax
je 0x50b3
movq %rax, %rbx
andb $-0x2, 0x88(%rax)
movq %rax, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x32b0
jmp 0x50b5
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisConnectFd
redisContext *redisConnectFd(int fd) {
    redisContext *c;

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

    c->fd = fd;
    c->flags |= REDIS_BLOCK | REDIS_CONNECTED;
    return c;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
callq 0x4e7c
testq %rax, %rax
je 0x50dc
movl %ebx, 0x84(%rax)
orb $0x3, 0x88(%rax)
jmp 0x50de
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x4008, %rsp           # imm = 0x4008
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, (%rdi)
je 0x5131
movl %ebx, %eax
addq $0x4008, %rsp           # imm = 0x4008
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rdi, %r14
movl 0x84(%rdi), %edi
movq %rsp, %rsi
movl $0x4000, %edx           # imm = 0x4000
callq 0x3250
testl %eax, %eax
je 0x5195
cmpl $-0x1, %eax
jne 0x51be
callq 0x3080
movl (%rax), %ecx
xorl %ebx, %ebx
cmpl $0x4, %ecx
je 0x5120
cmpl $0xb, %ecx
jne 0x5174
cmpl $0x4, %ecx
je 0x5120
movl 0x88(%r14), %ecx
andl $0x1, %ecx
je 0x5120
movl $0x1, (%r14)
movl (%rax), %edi
addq $0x4, %r14
movl $0x80, %edx
movq %r14, %rsi
callq 0x30f0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x5120
movl $0x3, (%r14)
movups 0x40c2(%rip), %xmm0     # 0x9265
movups %xmm0, 0x4(%r14)
movups 0x40c2(%rip), %xmm0     # 0x9271
movups %xmm0, 0x10(%r14)
movb $0x0, 0x20(%r14)
jmp 0x5120
movq 0x98(%r14), %rdi
movslq %eax, %rdx
movq %rsp, %rsi
callq 0x31a0
testl %eax, %eax
je 0x5215
movq 0x98(%r14), %r15
movl (%r15), %eax
addq $0x4, %r15
movl %eax, (%r14)
movq %r15, %rdi
callq 0x3130
cmpq $0x7f, %rax
movl $0x7f, %r12d
cmovbq %rax, %r12
leaq 0x4(%r14), %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x32f0
movb $0x0, 0x4(%r14,%r12)
jmp 0x5120
xorl %ebx, %ebx
jmp 0x5120
// File: /workspace/github_c_makefile_star2_O1/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 0x52d9
movq %rsi, %r14
movq %rdi, %rbx
movq 0x90(%rdi), %rsi
movslq -0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x52bf
movl 0x84(%rbx), %edi
callq 0x3120
cmpl $-0x1, %eax
je 0x5277
testl %eax, %eax
jle 0x52bf
movq 0x90(%rbx), %rdi
cmpl %eax, -0x8(%rdi)
jne 0x52b3
callq 0x3280
callq 0x3490
movq %rax, 0x90(%rbx)
jmp 0x52bf
callq 0x3080
movl (%rax), %ecx
cmpl $0x4, %ecx
je 0x52bf
cmpl $0xb, %ecx
jne 0x5298
cmpl $0x4, %ecx
je 0x52bf
movl 0x88(%rbx), %ecx
andl $0x1, %ecx
je 0x52bf
movl $0x1, (%rbx)
movl (%rax), %edi
addq $0x4, %rbx
movl $0x80, %edx
movq %rbx, %rsi
callq 0x30f0
jmp 0x52d9
movl %eax, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3220
xorl %ebp, %ebp
testq %r14, %r14
je 0x52d9
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_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisGetReplyFromReader
int redisGetReplyFromReader(redisContext *c, void **reply) {
    if (redisReaderGetReply(c->reader,reply) == REDIS_ERR) {
        __redisSetError(c,c->reader->err,c->reader->errstr);
        return REDIS_ERR;
    }
    return REDIS_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x98(%rdi), %rdi
callq 0x30e0
movl %eax, %ecx
xorl %eax, %eax
cmpl $-0x1, %ecx
jne 0x533d
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)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x5398
cmpq $0x0, 0x10(%rsp)
jne 0x5389
testb $0x1, 0x88(%r15)
jne 0x53a6
xorl %ebx, %ebx
testq %r14, %r14
je 0x5398
movq 0x10(%rsp), %rax
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 0x5398
cmpl $0x0, 0xc(%rsp)
je 0x53ab
leaq 0x10(%rsp), %r12
movq %r15, %rdi
callq 0x3450
cmpl $-0x1, %eax
je 0x5398
movq %r15, %rdi
movq %r12, %rsi
callq 0x3230
cmpl $-0x1, %eax
je 0x5398
cmpq $0x0, 0x10(%rsp)
je 0x53c7
jmp 0x5389
// File: /workspace/github_c_makefile_star2_O1/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 0x540e
movq %rax, 0x90(%rbx)
xorl %eax, %eax
jmp 0x5439
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_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x34f0
cmpl $-0x2, %eax
je 0x54cc
cmpl $-0x1, %eax
jne 0x54f6
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 0x54ef
movl $0x2, (%rbx)
movups 0x3db7(%rip), %xmm0     # 0x9290
movups %xmm0, 0x4(%rbx)
movabsq $0x676e697274732074, %rax # imm = 0x676E697274732074
movq %rax, 0x11(%rbx)
movb $0x0, 0x19(%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x5551
movq (%rsp), %rsi
movslq %eax, %rdx
movq 0x90(%rbx), %rdi
callq 0x3420
movq %rax, %r14
testq %rax, %rax
je 0x551a
movq %r14, 0x90(%rbx)
jmp 0x5540
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 (%rsp), %rdi
callq 0x3050
xorl %eax, %eax
cmpq $0x1, %r14
sbbl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/andyfighting[P]hiredis_timer_cmpt/hiredis.c
// Function: redisAppendCommand
int redisAppendCommand(redisContext *c, const char *format, ...) {
    va_list ap;
    int ret;

    va_start(ap,format);
    ret = redisvAppendCommand(c,format,ap);
    va_end(ap);
    return ret;
}

// Assembly:
subq $0xd8, %rsp
leaq 0x20(%rsp), %r10
movq %rdx, 0x10(%r10)
movq %rcx, 0x18(%r10)
movq %r8, 0x20(%r10)
movq %r9, 0x28(%r10)
testb %al, %al
je 0x55b0
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rdx
movq %r10, 0x10(%rdx)
leaq 0xe0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
callq 0x3160
addq $0xd8, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq %rsp, %rdi
callq 0x31d0
cmpl $-0x1, %eax
je 0x5615
movq (%rsp), %rsi
movslq %eax, %rdx
movq 0x90(%rbx), %rdi
callq 0x3420
movq %rax, %r14
testq %rax, %rax
je 0x5642
movq %r14, 0x90(%rbx)
jmp 0x5668
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
jmp 0x5679
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 (%rsp), %rdi
callq 0x3280
xorl %eax, %eax
cmpq $0x1, %r14
sbbl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq