LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncSetConnectCallback
int redisAsyncSetConnectCallback(redisAsyncContext *ac, redisConnectCallback *fn) {
    if (ac->onConnect == NULL) {
        ac->onConnect = fn;

        /* The common way to detect an established connection is to wait for
         * the first write event to be fired. This assumes the related event
         * library functions are already set. */
        _EL_ADD_WRITE(ac);
        return REDIS_OK;
    }
    return REDIS_ERR;
}

// Assembly:
pushq %rbx
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpq $0x0, 0x120(%rdi)
jne 0x7184
movq %rsi, 0x120(%rdi)
movq 0x100(%rdi), %rax
xorl %ebx, %ebx
testq %rax, %rax
je 0x7184
movq 0xe8(%rdi), %rdi
callq *%rax
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: _redisPushCallback
static int __redisPushCallback(redisCallbackList *list, redisCallback *source) {
    redisCallback *cb;

    /* Copy callback from stack to heap */
    cb = malloc(sizeof(*cb));
    if (cb == NULL)
        return REDIS_ERR_OOM;

    if (source != NULL) {
        memcpy(cb,source,sizeof(*cb));
        cb->next = NULL;
    }

    /* Store callback in list */
    if (list->head == NULL)
        list->head = cb;
    if (list->tail != NULL)
        list->tail->next = cb;
    list->tail = cb;
    return REDIS_OK;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movl $0x18, %edi
callq 0x3340
testq %rax, %rax
je 0x78f0
testq %r14, %r14
je 0x78d7
movups (%r14), %xmm0
movups %xmm0, (%rax)
movq 0x10(%r14), %rcx
movq %rcx, 0x10(%rax)
movq $0x0, (%rax)
cmpq $0x0, (%rbx)
jne 0x78e0
movq %rax, (%rbx)
movq 0x8(%rbx), %rcx
testq %rcx, %rcx
je 0x78ec
movq %rax, (%rcx)
movq %rax, 0x8(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncHandleRead
void redisAsyncHandleRead(redisAsyncContext *ac) {
    redisContext *c = &(ac->c);

    if (!(c->flags & REDIS_CONNECTED)) {
        /* Abort connect was not successful. */
        if (__redisAsyncHandleConnect(ac) != REDIS_OK)
            return;
        /* Try again later when the context is still not connected. */
        if (!(c->flags & REDIS_CONNECTED))
            return;
    }

    if (redisBufferRead(c) == REDIS_ERR) {
        __redisAsyncDisconnect(ac);
    } else {
        /* Always re-schedule reads */
        _EL_ADD_READ(ac);
        redisProcessCallbacks(ac);
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testb $0x2, 0x88(%rdi)
jne 0x791c
movq %rbx, %rdi
callq 0x7950
testl %eax, %eax
jne 0x791a
testb $0x2, 0x88(%rbx)
jne 0x791c
popq %rbx
retq
movq %rbx, %rdi
callq 0x3450
cmpl $-0x1, %eax
je 0x7947
movq 0xf0(%rbx), %rax
testq %rax, %rax
je 0x793e
movq 0xe8(%rbx), %rdi
callq *%rax
movq %rbx, %rdi
popq %rbx
jmp 0x3210
movq %rbx, %rdi
popq %rbx
jmp 0x73de
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: _redisAsyncHandleConnect
static int __redisAsyncHandleConnect(redisAsyncContext *ac) {
    redisContext *c = &(ac->c);

    if (redisCheckSocketError(c) == REDIS_ERR) {
        /* Try again later when connect(2) is still in progress. */
        if (errno == EINPROGRESS)
            return REDIS_OK;

        if (ac->onConnect) ac->onConnect(ac,REDIS_ERR);
        __redisAsyncDisconnect(ac);
        return REDIS_ERR;
    }

    /* Mark context as connected. */
    c->flags |= REDIS_CONNECTED;
    if (ac->onConnect) ac->onConnect(ac,REDIS_OK);
    return REDIS_OK;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x3150
cmpl $-0x1, %eax
je 0x797e
orb $0x2, 0x88(%rbx)
movq 0x120(%rbx), %rax
testq %rax, %rax
je 0x7988
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
callq *%rax
jmp 0x79af
callq 0x3080
cmpl $0x73, (%rax)
jne 0x798c
xorl %ebp, %ebp
jmp 0x79af
movq 0x120(%rbx), %rax
testq %rax, %rax
je 0x79a2
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq *%rax
movq %rbx, %rdi
callq 0x73de
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncHandleWrite
void redisAsyncHandleWrite(redisAsyncContext *ac) {
    redisContext *c = &(ac->c);
    int done = 0;

    if (!(c->flags & REDIS_CONNECTED)) {
        /* Abort connect was not successful. */
        if (__redisAsyncHandleConnect(ac) != REDIS_OK)
            return;
        /* Try again later when the context is still not connected. */
        if (!(c->flags & REDIS_CONNECTED))
            return;
    }

    if (redisBufferWrite(c,&done) == REDIS_ERR) {
        __redisAsyncDisconnect(ac);
    } else {
        /* Continue writing when not done, stop writing otherwise */
        if (!done)
            _EL_ADD_WRITE(ac);
        else
            _EL_DEL_WRITE(ac);

        /* Always schedule reads after writes */
        _EL_ADD_READ(ac);
    }
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
movl $0x0, 0xc(%rsp)
testb $0x2, 0x88(%rdi)
jne 0x79e6
movq %rbx, %rdi
callq 0x7950
testl %eax, %eax
jne 0x7a3c
testb $0x2, 0x88(%rbx)
je 0x7a3c
leaq 0xc(%rsp), %rsi
movq %rbx, %rdi
callq 0x3110
cmpl $-0x1, %eax
je 0x7a08
cmpl $0x0, 0xc(%rsp)
je 0x7a12
movq 0x108(%rbx), %rax
jmp 0x7a19
movq %rbx, %rdi
callq 0x73de
jmp 0x7a3c
movq 0x100(%rbx), %rax
testq %rax, %rax
je 0x7a27
movq 0xe8(%rbx), %rdi
callq *%rax
movq 0xf0(%rbx), %rax
testq %rax, %rax
je 0x7a3c
movq 0xe8(%rbx), %rdi
callq *%rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisvAsyncCommand
int redisvAsyncCommand(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, const char *format, va_list ap) {
    char *cmd;
    int len;
    int status;
    len = redisvFormatCommand(&cmd,format,ap);

    /* We don't want to pass -1 or -2 to future functions as a length. */
    if (len < 0)
        return REDIS_ERR;

    status = __redisAsyncCommand(ac,fn,privdata,cmd,len);
    free(cmd);
    return status;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x8(%rsp), %rdi
movq %rcx, %rsi
movq %r8, %rdx
callq 0x34f0
testl %eax, %eax
js 0x7a8c
movq 0x8(%rsp), %rcx
movl %eax, %r8d
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7a9d
movl %eax, %ebx
movq 0x8(%rsp), %rdi
callq 0x3050
jmp 0x7a91
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/async.c
// Function: redisAsyncCommandArgv
int redisAsyncCommandArgv(redisAsyncContext *ac, redisCallbackFn *fn, void *privdata, int argc, const char **argv, const size_t *argvlen) {
    sds cmd;
    int len;
    int status;
    len = redisFormatSdsCommandArgv(&cmd,argc,argv,argvlen);
    status = __redisAsyncCommand(ac,fn,privdata,cmd,len);
    sdsfree(cmd);
    return status;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq %rsp, %r12
movq %r12, %rdi
movl %ecx, %esi
movq %r8, %rdx
movq %r9, %rcx
callq 0x31d0
movq (%r12), %rcx
movslq %eax, %r8
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7a9d
movl %eax, %ebx
movq (%r12), %rdi
callq 0x3280
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/./dict.c
// Function: dictNext
static dictEntry *dictNext(dictIterator *iter) {
    while (1) {
        if (iter->entry == NULL) {
            iter->index++;
            if (iter->index >=
                    (signed)iter->ht->size) break;
            iter->entry = iter->ht->table[iter->index];
        } else {
            iter->entry = iter->nextEntry;
        }
        if (iter->entry) {
            /* We need to save the 'next' here, the iterator user
             * may delete the entry we are returning. */
            iter->nextEntry = iter->entry->next;
            return iter->entry;
        }
    }
    return NULL;
}

// Assembly:
leaq 0x18(%rdi), %rcx
cmpq $0x0, 0x10(%rdi)
movq %rcx, %rax
jne 0x7df2
movslq 0x8(%rdi), %rax
incq %rax
movl %eax, 0x8(%rdi)
movq (%rdi), %rdx
cmpl 0x10(%rdx), %eax
jge 0x7e06
shlq $0x3, %rax
addq (%rdx), %rax
movq (%rax), %rax
movq %rax, 0x10(%rdi)
testq %rax, %rax
je 0x7dd9
movq 0x10(%rax), %rdx
movq %rdx, (%rcx)
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/./dict.c
// Function: dictFind
static dictEntry *dictFind(dict *ht, const void *key) {
    dictEntry *he;
    unsigned int h;

    if (ht->size == 0) return NULL;
    h = dictHashKey(ht, key) & ht->sizemask;
    he = ht->table[h];
    while(he) {
        if (dictCompareHashKeys(ht, key, he->key))
            return he;
        he = he->next;
    }
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpq $0x0, 0x10(%rdi)
je 0x7efd
movq %rsi, %r14
movq %rdi, %r15
movq 0x8(%rdi), %rax
movq %rsi, %rdi
callq *(%rax)
andl 0x18(%r15), %eax
movq (%r15), %rcx
movq (%rcx,%rax,8), %rbx
testq %rbx, %rbx
je 0x7efd
movq 0x8(%r15), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x7ef2
movq 0x28(%r15), %rdi
movq (%rbx), %rdx
movq %r14, %rsi
callq *%rax
testl %eax, %eax
je 0x7ef7
jmp 0x7eff
cmpq %r14, (%rbx)
je 0x7eff
movq 0x10(%rbx), %rbx
jmp 0x7ece
xorl %ebx, %ebx
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: nextArgument
static const char *nextArgument(const char *start, const char **str, size_t *len) {
    const char *p = start;
    if (p[0] != '$') {
        p = strchr(p,'$');
        if (p == NULL) return NULL;
    }

    *len = (int)strtol(p+1,NULL,10);
    p = strchr(p,'\r');
    assert(p);
    *str = p+2;
    return p+2+(*len)+2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
cmpb $0x24, (%rdi)
je 0x7f33
movq %r15, %rdi
movl $0x24, %esi
callq 0x3170
movq %rax, %r15
testq %rax, %rax
je 0x7f75
leaq 0x1(%r15), %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x32e0
movslq %eax, %r12
movq %r12, (%r14)
movq %r15, %rdi
movl $0xd, %esi
callq 0x3170
testq %rax, %rax
je 0x7f79
leaq 0x2(%rax), %rcx
movq %rcx, (%rbx)
addq %r12, %rax
addq $0x4, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
xorl %eax, %eax
jmp 0x7f69
leaq 0x17fb(%rip), %rdi      # 0x977b
leaq 0x15d6(%rip), %rsi      # 0x955d
leaq 0x17ef(%rip), %rcx      # 0x977d
movl $0x23f, %edx            # imm = 0x23F
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/read.c
// Function: redisReaderCreateWithFunctions
redisReader *redisReaderCreateWithFunctions(redisReplyObjectFunctions *fn) {
    redisReader *r;

    r = calloc(sizeof(redisReader),1);
    if (r == NULL)
        return NULL;

    r->err = 0;
    r->errstr[0] = '\0';
    r->fn = fn;
    r->buf = sdsempty();
    r->maxbuf = REDIS_READER_MAX_BUF;
    if (r->buf == NULL) {
        free(r);
        return NULL;
    }

    r->ridx = -1;
    return r;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
movl $0x230, %edi            # imm = 0x230
movl $0x1, %esi
callq 0x3290
testq %rax, %rax
je 0x8269
movq %rax, %rbx
movq %r14, 0x220(%rax)
callq 0x3490
movq %rax, 0x88(%rbx)
movq $0x4000, 0xa0(%rbx) # imm = 0x4000
testq %rax, %rax
je 0x8261
movl $0xffffffff, 0x210(%rbx) # imm = 0xFFFFFFFF
jmp 0x826b
movq %rbx, %rdi
callq 0x3050
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/read.c
// Function: redisReaderFree
void redisReaderFree(redisReader *r) {
    if (r->reply != NULL && r->fn && r->fn->freeObject)
        r->fn->freeObject(r->reply);
    if (r->buf != NULL)
        sdsfree(r->buf);
    free(r);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x218(%rdi), %rdi
testq %rdi, %rdi
je 0x829d
movq 0x220(%rbx), %rax
testq %rax, %rax
je 0x829d
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x829d
callq *%rax
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x82ae
callq 0x3280
movq %rbx, %rdi
popq %rbx
jmp 0x3050
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/read.c
// Function: redisReaderFeed
int redisReaderFeed(redisReader *r, const char *buf, size_t len) {
    sds newbuf;

    /* Return early when this reader is in an erroneous state. */
    if (r->err)
        return REDIS_ERR;

    /* Copy the provided buffer. */
    if (buf != NULL && len >= 1) {
        /* Destroy internal buffer when it is empty and is quite large. */
        if (r->len == 0 && r->maxbuf != 0 && sdsavail(r->buf) > r->maxbuf) {
            sdsfree(r->buf);
            r->buf = sdsempty();
            r->pos = 0;

            /* r->buf should not be NULL since we just free'd a larger one. */
            assert(r->buf != NULL);
        }

        newbuf = sdscatlen(r->buf,buf,len);
        if (newbuf == NULL) {
            __redisReaderSetErrorOOM(r);
            return REDIS_ERR;
        }

        r->buf = newbuf;
        r->len = sdslen(r->buf);
    }

    return REDIS_OK;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, (%rdi)
jne 0x8317
movq %rdx, %r15
movq %rsi, %r12
testq %rsi, %rsi
sete %al
testq %rdx, %rdx
sete %cl
orb %al, %cl
jne 0x8315
movq %rdi, %r14
cmpq $0x0, 0x98(%rdi)
je 0x8325
movq 0x88(%r14), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x3420
testq %rax, %rax
je 0x8381
movq %rax, 0x88(%r14)
movslq -0x8(%rax), %rax
movq %rax, 0x98(%r14)
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0xa0(%r14), %rax
testq %rax, %rax
je 0x82ec
movq 0x88(%r14), %rdi
movslq -0x4(%rdi), %rcx
cmpq %rcx, %rax
jae 0x82ec
callq 0x3280
callq 0x3490
movq %rax, 0x88(%r14)
movq $0x0, 0x90(%r14)
testq %rax, %rax
jne 0x82ec
leaq 0x14ef(%rip), %rdi      # 0x9858
leaq 0x14f7(%rip), %rsi      # 0x9867
leaq 0x14f7(%rip), %rcx      # 0x986e
movl $0x1cd, %edx            # imm = 0x1CD
callq 0x31b0
leaq 0xefa(%rip), %rdx       # 0x9282
movq %r14, %rdi
movl $0x5, %esi
callq 0x8986
jmp 0x8317
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/read.c
// Function: _redisReaderSetError
static void __redisReaderSetError(redisReader *r, int type, const char *str) {
    size_t len;

    if (r->reply != NULL && r->fn && r->fn->freeObject) {
        r->fn->freeObject(r->reply);
        r->reply = NULL;
    }

    /* Clear input buffer on errors. */
    if (r->buf != NULL) {
        sdsfree(r->buf);
        r->buf = NULL;
        r->pos = r->len = 0;
    }

    /* Reset task stack. */
    r->ridx = -1;

    /* Set error. */
    r->err = type;
    len = strlen(str);
    len = len < (sizeof(r->errstr)-1) ? len : (sizeof(r->errstr)-1);
    memcpy(r->errstr,str,len);
    r->errstr[len] = '\0';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movq 0x218(%rdi), %rdi
testq %rdi, %rdi
je 0x89c3
movq 0x220(%rbx), %rax
testq %rax, %rax
je 0x89c3
movq 0x20(%rax), %rax
testq %rax, %rax
je 0x89c3
callq *%rax
movq $0x0, 0x218(%rbx)
movq 0x88(%rbx), %rdi
testq %rdi, %rdi
je 0x89ea
leaq 0x88(%rbx), %r15
callq 0x3280
xorps %xmm0, %xmm0
movups %xmm0, (%r15)
movq $0x0, 0x10(%r15)
movl $0xffffffff, 0x210(%rbx) # imm = 0xFFFFFFFF
movl %ebp, (%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)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/read.c
// Function: readLine
static char *readLine(redisReader *r, int *_len) {
    char *p, *s;
    int len;

    p = r->buf+r->pos;
    s = seekNewline(p,(r->len-r->pos));
    if (s != NULL) {
        len = s-(r->buf+r->pos);
        r->pos += len+2; /* skip \r\n */
        if (_len) *_len = len;
        return p;
    }
    return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %r15
movq 0x90(%rdi), %r12
movq 0x98(%rdi), %rsi
movq 0x88(%rdi), %rbx
addq %r12, %rbx
subq %r12, %rsi
movq %rbx, %rdi
callq 0x8b96
testq %rax, %rax
je 0x8a7f
subq %rbx, %rax
leal 0x2(%rax), %ecx
movslq %ecx, %rcx
addq %r12, %rcx
movq %rcx, 0x90(%r15)
testq %r14, %r14
je 0x8a81
movl %eax, (%r14)
jmp 0x8a81
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/read.c
// Function: readLongLong
static long long readLongLong(char *s) {
    long long v = 0;
    int dec, mult = 1;
    char c;

    if (*s == '-') {
        mult = -1;
        s++;
    } else if (*s == '+') {
        mult = 1;
        s++;
    }

    while ((c = *(s++)) != '\r') {
        dec = c - '0';
        if (dec >= 0 && dec < 10) {
            v *= 10;
            v += dec;
        } else {
            /* Should not happen... */
            return -1;
        }
    }

    return mult*v;
}

// Assembly:
movzbl (%rdi), %edx
cmpl $0x2d, %edx
je 0x8aa4
movl $0x1, %ecx
cmpl $0x2b, %edx
je 0x8aab
jmp 0x8ab1
movq $-0x1, %rcx
movb 0x1(%rdi), %dl
incq %rdi
cmpb $0xd, %dl
jne 0x8aba
xorl %eax, %eax
jmp 0x8ae0
incq %rdi
xorl %eax, %eax
leal -0x30(%rdx), %esi
cmpb $0x9, %sil
ja 0x8ae5
leaq (%rax,%rax,4), %rax
andb $0xf, %dl
movzbl %dl, %edx
leaq (%rdx,%rax,2), %rax
movb (%rdi), %dl
incq %rdi
cmpb $0xd, %dl
jne 0x8abf
imulq %rcx, %rax
retq
movq $-0x1, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/read.c
// Function: moveToNextTask
static void moveToNextTask(redisReader *r) {
    redisReadTask *cur, *prv;
    while (r->ridx >= 0) {
        /* Return a.s.a.p. when the stack is now empty. */
        if (r->ridx == 0) {
            r->ridx--;
            return;
        }

        cur = &(r->rstack[r->ridx]);
        prv = &(r->rstack[r->ridx-1]);
        assert(prv->type == REDIS_REPLY_ARRAY);
        if (cur->idx == prv->elements-1) {
            r->ridx--;
        } else {
            /* Reset the type because the next item can be anything */
            assert(cur->idx < prv->elements);
            cur->type = -1;
            cur->elements = -1;
            cur->idx++;
            return;
        }
    }
}

// Assembly:
pushq %rax
movl 0x210(%rdi), %ecx
testl %ecx, %ecx
js 0x8b56
je 0x8b35
leaq 0xa8(%rdi), %rax
leal -0x1(%rcx), %edx
leaq (%rdx,%rdx,4), %rsi
cmpl $0x2, (%rax,%rsi,8)
jne 0x8b58
leaq (%rax,%rsi,8), %r8
movl %ecx, %ecx
leaq (%rcx,%rcx,4), %rsi
movl 0x8(%rax,%rsi,8), %ecx
movl 0x4(%r8), %r8d
leal -0x1(%r8), %r9d
cmpl %r9d, %ecx
jne 0x8b41
movl %edx, 0x210(%rdi)
movl %edx, %ecx
testl %edx, %edx
jne 0x8b01
movl $0xffffffff, 0x210(%rdi) # imm = 0xFFFFFFFF
jmp 0x8b56
cmpl %r8d, %ecx
jge 0x8b77
leaq (%rax,%rsi,8), %rax
movq $-0x1, (%rax)
incl %ecx
movl %ecx, 0x8(%rax)
popq %rax
retq
leaq 0xdbe(%rip), %rdi       # 0x991d
leaq 0xd01(%rip), %rsi       # 0x9867
leaq 0xdcf(%rip), %rcx       # 0x993c
movl $0xc9, %edx
callq 0x31b0
leaq 0xde1(%rip), %rdi       # 0x995f
leaq 0xce2(%rip), %rsi       # 0x9867
leaq 0xdb0(%rip), %rcx       # 0x993c
movl $0xce, %edx
callq 0x31b0
// File: /workspace/github_c_makefile_star2_O3/andyfighting[P]hiredis_timer_cmpt/read.c
// Function: seekNewline
static char *seekNewline(char *s, size_t len) {
    int pos = 0;
    int _len = len-1;

    /* Position should be < len-1 because the character at "pos" should be
     * followed by a \n. Note that strchr cannot be used because it doesn't
     * allow to search a limited length and the buffer that is being searched
     * might not have a trailing NULL character. */
    while (pos < _len) {
        while(pos < _len && s[pos] != '\r') pos++;
        if (s[pos] != '\r') {
            /* Not found. */
            return NULL;
        } else {
            if (s[pos+1] == '\n') {
                /* Found. */
                return s+pos;
            } else {
                /* Continue searching. */
                pos++;
            }
        }
    }
    return NULL;
}

// Assembly:
pushq %r14
pushq %rbx
leal -0x1(%rsi), %ecx
movslq %ecx, %rdx
xorl %eax, %eax
movabsq $0x100000000, %r8       # imm = 0x100000000
xorl %r9d, %r9d
cmpl %ecx, %r9d
jge 0x8c02
movslq %r9d, %r10
leaq (%rdi,%r10), %rbx
movq %rdx, %r14
subq %r10, %r14
shlq $0x20, %r10
xorl %r11d, %r11d
cmpb $0xd, (%rbx,%r11)
je 0x8be1
addq %r8, %r10
incq %r11
cmpq %r11, %r14
jne 0x8bc7
movq %rdx, %r10
movl %esi, %r9d
jmp 0x8beb
sarq $0x20, %r10
addl %r11d, %r9d
incl %r9d
cmpb $0xd, (%rdi,%r10)
jne 0x8c02
movslq %r9d, %r11
cmpb $0xa, (%rdi,%r11)
jne 0x8bae
addq %r10, %rdi
movq %rdi, %rax
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/scream10v3/sse/scream.c
// Function: tweak_expand
void tweak_expand(v16qi T[16], v16qi K[16], v16qi T3[48]) {
  int i;

  for (i = 0; i<16; i++)
    T3[i] = T[i];

  for (i = 0; i<8; i++) {
    T3[16+key_idx(i)]   = T[key_idx(i)] ^ T[key_idx(i+8)];
    T3[16+key_idx(i+8)] = T[key_idx(i)];
    T3[32+key_idx(i)]   = T[key_idx(i+8)];
    T3[32+key_idx(i+8)] = T[key_idx(i)] ^ T[key_idx(i+8)];
  }

  for (i = 0; i<48; i++)
    T3[i] ^= K[i%16];
}

// Assembly:
xorl %eax, %eax
vmovaps (%rdi,%rax), %xmm0
vmovaps %xmm0, (%rdx,%rax)
addq $0x10, %rax
cmpq $0x100, %rax            # imm = 0x100
jne 0x21ca
pushq %r14
pushq %rbx
xorl %eax, %eax
xorl %ecx, %ecx
movl %ecx, %r8d
shrl %r8d
movl %eax, %r9d
andl $0x8, %r9d
leal (%r9,%r8), %r11d
addl $0x4, %r11d
leal (%r9,%r8), %ebx
addl $0x10, %ebx
movl %r9d, %r10d
orl %r8d, %r10d
shlq $0x4, %r10
shlq $0x4, %r11
vmovaps (%rdi,%r11), %xmm0
vxorps (%rdi,%r10), %xmm0, %xmm0
leal (%r9,%r8), %r14d
addl $0x14, %r14d
shlq $0x4, %rbx
vmovaps %xmm0, (%rdx,%rbx)
vmovaps (%rdi,%r10), %xmm0
leal (%r9,%r8), %ebx
addl $0x20, %ebx
shlq $0x4, %r14
vmovaps %xmm0, (%rdx,%r14)
vmovaps (%rdi,%r11), %xmm0
addl %r9d, %r8d
addl $0x24, %r8d
shlq $0x4, %rbx
vmovaps %xmm0, (%rdx,%rbx)
vxorps (%rdi,%r10), %xmm0, %xmm0
shlq $0x4, %r8
vmovaps %xmm0, (%rdx,%r8)
incl %ecx
addl $0x8, %eax
cmpl $0x8, %ecx
jne 0x21e7
xorl %eax, %eax
movl %eax, %ecx
andl $0xf, %ecx
shll $0x4, %ecx
vmovaps (%rdx), %xmm0
vxorps (%rsi,%rcx), %xmm0, %xmm0
vmovaps %xmm0, (%rdx)
incq %rax
addq $0x10, %rdx
cmpq $0x30, %rax
jne 0x227b
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/scream10v3/sse/scream.c
// Function: tweakey_schedule
void tweakey_schedule(const uint8_t *restrict k,
		      const uint8_t *restrict n,
		      uint8_t ctrl,
		      v16qi *restrict TK) {
  v16qi *K = &TK[3*16];
  v16qi *T = &TK[4*16];
  v16qi C= {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15};
  int j;

  for (j=0; j<16; j++) {
    K[key_idx(j)] = (v16qi) CV(k[j]);
  }
  for (j=0; j<11; j++) {
    T[key_idx(j)] = (v16qi) CV(n[j]);
  }

  T[key_idx(15)] = (v16qi) CV(ctrl);
  T[key_idx(14)] = C;
  T[key_idx(13)] = (v16qi) CV(0);
  T[key_idx(12)] = (v16qi) CV(0);
  T[key_idx(11)] = (v16qi) CV(0);

  tweak_expand(T, K, TK);
}

// Assembly:
movq %rsi, %rax
leaq 0x300(%rcx), %rsi
xorl %r8d, %r8d
xorl %r9d, %r9d
vpbroadcastb (%rdi,%r9), %xmm0
movl %r9d, %r10d
shrl %r10d
movl %r8d, %r11d
andl $0x8, %r11d
orl %r10d, %r11d
shlq $0x4, %r11
vmovdqa %xmm0, (%rsi,%r11)
incq %r9
addl $0x8, %r8d
cmpq $0x10, %r9
jne 0x22b1
leaq 0x400(%rcx), %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
vpbroadcastb (%rax,%r9), %xmm0
movl %r9d, %r10d
shrl %r10d
movl %r8d, %r11d
andl $0x8, %r11d
orl %r10d, %r11d
shlq $0x4, %r11
vmovdqa %xmm0, (%rdi,%r11)
incq %r9
addl $0x8, %r8d
cmpq $0xb, %r9
jne 0x22eb
vpbroadcastb %edx, %xmm0
vmovdqa %xmm0, 0x4f0(%rcx)
vmovaps 0x21e2(%rip), %xmm0     # 0x4510
vmovaps %xmm0, 0x470(%rcx)
vxorps %xmm0, %xmm0, %xmm0
vmovaps %xmm0, 0x460(%rcx)
vxorps %xmm0, %xmm0, %xmm0
vmovups %ymm0, 0x4d0(%rcx)
movq %rcx, %rdx
vzeroupper
jmp 0x10c0
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-1600-inplace32BI.c
// Function: KeccakP1600_OverwriteWithZeroes
void KeccakP1600_OverwriteWithZeroes(void *state, unsigned int byteCount)
{
    UINT32 *stateAsHalfLanes = (UINT32*)state;
    unsigned int i;

    for(i=0; i<byteCount/8; i++) {
        stateAsHalfLanes[i*2+0] = 0;
        stateAsHalfLanes[i*2+1] = 0;
    }
    if (byteCount%8 != 0)
        KeccakP1600_SetBytesInLaneToZero(state, byteCount/8, 0, byteCount%8);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movl %esi, %ebx
movq %rdi, %r14
movl %esi, %r15d
shrl $0x3, %r15d
cmpl $0x8, %esi
jb 0x5f46
leal -0x1(%r15), %eax
leaq 0x8(,%rax,8), %rdx
movq %r14, %rdi
xorl %esi, %esi
callq 0x5080
andl $0x7, %ebx
je 0x5f5f
movq %r14, %rdi
movl %r15d, %esi
xorl %edx, %edx
movl %ebx, %ecx
popq %rbx
popq %r14
popq %r15
jmp 0x50f0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-1600-inplace32BI.c
// Function: KeccakP1600_ExtractAndAddBytesInLane
void KeccakP1600_ExtractAndAddBytesInLane(const void *state, unsigned int lanePosition, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
{
    UINT32 *stateAsHalfLanes = (UINT32*)state;
    UINT32 low, high, temp, temp0, temp1;
    UINT8 laneAsBytes[8];
    unsigned int i;

    fromBitInterleaving(stateAsHalfLanes[lanePosition*2], stateAsHalfLanes[lanePosition*2+1], low, high, temp, temp0, temp1);
#if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
    *((UINT32*)(laneAsBytes+0)) = low;
    *((UINT32*)(laneAsBytes+4)) = high;
#else
    laneAsBytes[0] = low & 0xFF;
    laneAsBytes[1] = (low >> 8) & 0xFF;
    laneAsBytes[2] = (low >> 16) & 0xFF;
    laneAsBytes[3] = (low >> 24) & 0xFF;
    laneAsBytes[4] = high & 0xFF;
    laneAsBytes[5] = (high >> 8) & 0xFF;
    laneAsBytes[6] = (high >> 16) & 0xFF;
    laneAsBytes[7] = (high >> 24) & 0xFF;
#endif
    for(i=0; i<length; i++)
        output[i] = input[i] ^ laneAsBytes[offset+i];
}

// Assembly:
addl %esi, %esi
movq (%rdi,%rsi,4), %rax
vmovq %rax, %xmm0
movq %rax, %rsi
shrq $0x20, %rsi
shll $0x10, %esi
vpxor %xmm1, %xmm1, %xmm1
vpsllq $0x20, %xmm0, %xmm2
vpinsrd $0x0, %esi, %xmm2, %xmm2
vpsrlvd 0xbe1f(%rip), %xmm2, %xmm3 # 0x12000
vpsrlvd 0xbe26(%rip), %xmm2, %xmm2 # 0x12010
vpblendw $0x9, %xmm0, %xmm1, %xmm1 # xmm1 = xmm0[0],xmm1[1,2],xmm0[3],xmm1[4,5,6,7]
shrq $0x28, %rax
vpinsrd $0x1, %eax, %xmm0, %xmm0
vpternlogd $0x28, 0xbe1b(%rip), %xmm3, %xmm0 # 0x12020
vpslld $0x8, %xmm0, %xmm3
vpternlogd $0x1e, %xmm1, %xmm2, %xmm3
vpxor %xmm0, %xmm3, %xmm0
vpsrld $0x4, %xmm0, %xmm1
vpternlogd $0x28, 0xbe0b(%rip){1to4}, %xmm3, %xmm1 # 0x12030
vpslld $0x4, %xmm1, %xmm2
vpternlogd $0x36, %xmm1, %xmm0, %xmm2
vpsrld $0x2, %xmm2, %xmm0
vpternlogd $0x28, 0xbdf3(%rip){1to4}, %xmm2, %xmm0 # 0x12034
vpslld $0x2, %xmm0, %xmm1
vpternlogd $0x36, %xmm0, %xmm2, %xmm1
vpsrld $0x1, %xmm1, %xmm0
vpternlogd $0x28, 0xbddb(%rip){1to4}, %xmm1, %xmm0 # 0x12038
vpaddd %xmm0, %xmm0, %xmm2
vpaddd %xmm2, %xmm0, %xmm0
vpxor %xmm1, %xmm0, %xmm0
vmovq %xmm0, -0x8(%rsp)
testl %r9d, %r9d
je 0x6295
movl %r9d, %eax
movl %r8d, %esi
xorl %edi, %edi
leal (%rsi,%rdi), %r8d
movb -0x8(%rsp,%r8), %r8b
xorb (%rdx,%rdi), %r8b
movb %r8b, (%rcx,%rdi)
incq %rdi
cmpq %rdi, %rax
jne 0x627c
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-200-reference.c
// Function: KeccakP200_AddBytes
void KeccakP200_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
{
    unsigned int i;

    assert(offset < 25);
    assert(offset+length <= 25);
    for(i=0; i<length; i++)
        ((unsigned char *)state)[offset+i] ^= data[i];
}

// Assembly:
pushq %rax
cmpl $0x19, %edx
jae 0x88c0
leal (%rcx,%rdx), %eax
cmpl $0x19, %eax
ja 0x88df
testl %ecx, %ecx
je 0x88be
movl %ecx, %eax
movl %edx, %ecx
xorl %edx, %edx
movb (%rsi,%rdx), %r8b
leal (%rcx,%rdx), %r9d
xorb %r8b, (%rdi,%r9)
incq %rdx
cmpq %rdx, %rax
jne 0x88aa
popq %rax
retq
leaq 0x99ed(%rip), %rdi      # 0x122b4
leaq 0x99f2(%rip), %rsi      # 0x122c0
leaq 0x9a62(%rip), %rcx      # 0x12337
movl $0x94, %edx
callq 0x51b0
leaq 0x9aa5(%rip), %rdi      # 0x1238b
leaq 0x99d3(%rip), %rsi      # 0x122c0
leaq 0x9a43(%rip), %rcx      # 0x12337
movl $0x95, %edx
callq 0x51b0
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-200-reference.c
// Function: KeccakP200_ExtractAndAddBytes
void KeccakP200_ExtractAndAddBytes(const void *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
{
    unsigned int i;

    assert(offset < 25);
    assert(offset+length <= 25);
    for(i=0; i<length; i++)
        output[i] = input[i] ^ ((unsigned char *)state)[offset+i];
}

// Assembly:
pushq %rax
cmpl $0x19, %ecx
jae 0x8ce9
leal (%r8,%rcx), %eax
cmpl $0x19, %eax
ja 0x8d08
testl %r8d, %r8d
je 0x8ce7
movl %r8d, %eax
movl %ecx, %ecx
xorl %r8d, %r8d
leal (%rcx,%r8), %r9d
movb (%rdi,%r9), %r9b
xorb (%rsi,%r8), %r9b
movb %r9b, (%rdx,%r8)
incq %r8
cmpq %r8, %rax
jne 0x8ccf
popq %rax
retq
leaq 0x95c4(%rip), %rdi      # 0x122b4
leaq 0x95c9(%rip), %rsi      # 0x122c0
leaq 0x979d(%rip), %rcx      # 0x1249b
movl $0x168, %edx            # imm = 0x168
callq 0x51b0
leaq 0x967c(%rip), %rdi      # 0x1238b
leaq 0x95aa(%rip), %rsi      # 0x122c0
leaq 0x977e(%rip), %rcx      # 0x1249b
movl $0x169, %edx            # imm = 0x169
callq 0x51b0
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-200-reference.c
// Function: KeccakP200_DisplayRoundConstants
void KeccakP200_DisplayRoundConstants(FILE *f)
{
    unsigned int i;

    for(i=0; i<maxNrRounds; i++) {
        fprintf(f, "RC[%02i][0][0] = ", i);
        fprintf(f, "%02X", (unsigned int)(KeccakRoundConstants[i]));
        fprintf(f, "\n");
    }
    fprintf(f, "\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x97d6(%rip), %r14      # 0x12510
leaq 0x97ff(%rip), %r13      # 0x12540
leaq 0x97da(%rip), %r15      # 0x12522
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0x56a0
movzbl (%r12,%r13), %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x56a0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x5370
incq %r12
cmpq $0x12, %r12
jne 0x8d4b
movl $0xa, %edi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x5370
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-200-reference.c
// Function: KeccakP200_DisplayRhoOffsets
void KeccakP200_DisplayRhoOffsets(FILE *f)
{
    unsigned int x, y;

    for(y=0; y<5; y++) for(x=0; x<5; x++) {
        fprintf(f, "RhoOffset[%i][%i] = ", x, y);
        fprintf(f, "%2i", KeccakRhoOffsets[index(x, y)]);
        fprintf(f, "\n");
    }
    fprintf(f, "\n");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x97b2(%rip), %rbp      # 0x12560
leaq 0x9772(%rip), %r14      # 0x12527
leaq 0x9780(%rip), %r15      # 0x1253c
xorl %r12d, %r12d
xorl %r13d, %r13d
movq %rbx, %rdi
movq %r14, %rsi
movl %r13d, %edx
movl %r12d, %ecx
xorl %eax, %eax
callq 0x56a0
movl (%rbp,%r13,4), %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x56a0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x5370
incq %r13
cmpq $0x5, %r13
jne 0x8dc2
incq %r12
addq $0x14, %rbp
cmpq $0x5, %r12
jne 0x8dbf
movl $0xa, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5370
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-400-reference.c
// Function: KeccakP400_AddBytes
void KeccakP400_AddBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length)
{
    unsigned int i;

    assert(offset < 50);
    assert(offset+length <= 50);
    for(i=0; i<length; i++)
        ((unsigned char *)state)[offset+i] ^= data[i];
}

// Assembly:
pushq %rax
cmpl $0x32, %edx
jae 0x8e93
leal (%rcx,%rdx), %eax
cmpl $0x32, %eax
ja 0x8eb2
testl %ecx, %ecx
je 0x8e91
movl %ecx, %eax
movl %edx, %ecx
xorl %edx, %edx
movb (%rsi,%rdx), %r8b
leal (%rcx,%rdx), %r9d
xorb %r8b, (%rdi,%r9)
incq %rdx
cmpq %rdx, %rax
jne 0x8e7d
popq %rax
retq
leaq 0x972a(%rip), %rdi      # 0x125c4
leaq 0x972f(%rip), %rsi      # 0x125d0
leaq 0x979f(%rip), %rcx      # 0x12647
movl $0x96, %edx
callq 0x51b0
leaq 0x97e2(%rip), %rdi      # 0x1269b
leaq 0x9710(%rip), %rsi      # 0x125d0
leaq 0x9780(%rip), %rcx      # 0x12647
movl $0x97, %edx
callq 0x51b0
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-400-reference.c
// Function: KeccakP400_ExtractAndAddBytes
void KeccakP400_ExtractAndAddBytes(const void *state, const unsigned char *input, unsigned char *output, unsigned int offset, unsigned int length)
{
    unsigned int i;

    assert(offset < 50);
    assert(offset+length <= 50);
    for(i=0; i<length; i++)
        output[i] = input[i] ^ ((unsigned char *)state)[offset+i];
}

// Assembly:
pushq %rax
cmpl $0x32, %ecx
jae 0x92e8
leal (%r8,%rcx), %eax
cmpl $0x32, %eax
ja 0x9307
testl %r8d, %r8d
je 0x92e6
movl %r8d, %eax
movl %ecx, %ecx
xorl %r8d, %r8d
leal (%rcx,%r8), %r9d
movb (%rdi,%r9), %r9b
xorb (%rsi,%r8), %r9b
movb %r9b, (%rdx,%r8)
incq %r8
cmpq %r8, %rax
jne 0x92ce
popq %rax
retq
leaq 0x92d5(%rip), %rdi      # 0x125c4
leaq 0x92da(%rip), %rsi      # 0x125d0
leaq 0x94ae(%rip), %rcx      # 0x127ab
movl $0x16a, %edx            # imm = 0x16A
callq 0x51b0
leaq 0x938d(%rip), %rdi      # 0x1269b
leaq 0x92bb(%rip), %rsi      # 0x125d0
leaq 0x948f(%rip), %rcx      # 0x127ab
movl $0x16b, %edx            # imm = 0x16B
callq 0x51b0
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-400-reference.c
// Function: KeccakP400_DisplayRoundConstants
void KeccakP400_DisplayRoundConstants(FILE *f)
{
    unsigned int i;

    for(i=0; i<maxNrRounds; i++) {
        fprintf(f, "RC[%02i][0][0] = ", i);
        fprintf(f, "%04X", (unsigned int)(KeccakRoundConstants[i]));
        fprintf(f, "\n");
    }
    fprintf(f, "\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
leaq 0x94f7(%rip), %r13      # 0x12830
leaq 0x91d0(%rip), %r14      # 0x12510
leaq 0x94d9(%rip), %r15      # 0x12820
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r14, %rsi
movl %r12d, %edx
xorl %eax, %eax
callq 0x56a0
movzwl (%r13), %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x56a0
movl $0xa, %edi
movq %rbx, %rsi
callq 0x5370
incq %r12
addq $0x2, %r13
cmpq $0x14, %r12
jne 0x934a
movl $0xa, %edi
movq %rbx, %rsi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x5370
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-800-opt32.c
// Function: KeccakP800_AddBytes
void KeccakP800_AddBytes(void *argState, const unsigned char *data, unsigned int offset, unsigned int length)
{
#if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
    unsigned int sizeLeft = length;
    unsigned int lanePosition = offset/4;
    unsigned int offsetInLane = offset%4;
    const unsigned char *curData = data;
    UINT32 *state = (UINT32*)argState;

    state += lanePosition;
    if ((sizeLeft > 0) && (offsetInLane != 0)) {
        unsigned int bytesInLane = 4 - offsetInLane;
        UINT32 lane = 0;
        if (bytesInLane > sizeLeft)
            bytesInLane = sizeLeft;
        memcpy((unsigned char*)&lane + offsetInLane, curData, bytesInLane);
        *state++ ^= lane;
        sizeLeft -= bytesInLane;
        curData += bytesInLane;
    }

    while(sizeLeft >= 4) {
        *state++ ^= READ32_UNALIGNED( curData );
        sizeLeft -= 4;
        curData += 4;
    }

    if (sizeLeft > 0) {
        UINT32 lane = 0;
        memcpy(&lane, curData, sizeLeft);
        *state ^= lane;
    }
#else
#error "Not yet implemented"
#endif
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rsi, %rbx
movl %edx, %r15d
andl $-0x4, %r15d
addq %rdi, %r15
testl %ecx, %ecx
sete %al
andl $0x3, %edx
sete %cl
orb %al, %cl
jne 0x94b5
movl $0x4, %r14d
subl %edx, %r14d
movl $0x0, (%rsp)
cmpl %ebp, %r14d
cmovael %ebp, %r14d
movl %edx, %eax
leaq (%rsp,%rax), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x56c0
movl (%rsp), %eax
xorl %eax, (%r15)
addq $0x4, %r15
subl %r14d, %ebp
addq %r14, %rbx
cmpl $0x4, %ebp
jb 0x94cf
movl (%rbx), %eax
xorl %eax, (%r15)
addq $0x4, %r15
addl $-0x4, %ebp
addq $0x4, %rbx
cmpl $0x3, %ebp
ja 0x94ba
testl %ebp, %ebp
je 0x94f2
leaq 0x4(%rsp), %r14
movl $0x0, (%r14)
movl %ebp, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x56c0
movl (%r14), %eax
xorl %eax, (%r15)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/lakekeyakv2/generic32/KeccakP-800-opt32.c
// Function: KeccakF800_FastLoop_Absorb
size_t KeccakF800_FastLoop_Absorb(void *state, unsigned int laneCount, const unsigned char *data, size_t dataByteLen)
{
    size_t originalDataByteLen = dataByteLen;
    unsigned int laneCountInBytes = laneCount*4;

    while(dataByteLen >= laneCountInBytes) {
#if (PLATFORM_BYTE_ORDER == IS_LITTLE_ENDIAN)
        UINT32 * pState  = (UINT32*)state;
        unsigned int lc;

        for ( lc = laneCount; lc >= 4; lc -= 4 ) {
            *pState++ ^= READ32_UNALIGNED( data );
            data += 4;
            *pState++ ^= READ32_UNALIGNED( data );
            data += 4;
            *pState++ ^= READ32_UNALIGNED( data );
            data += 4;
            *pState++ ^= READ32_UNALIGNED( data );
            data += 4;
        }
        while ( lc-- != 0 ) {
            *pState++ ^= READ32_UNALIGNED( data );
            data += 4;
        }
#else
        KeccakP800_AddBytes(state, data, 0, laneCountInBytes);
        data += laneCountInBytes;
#endif
        KeccakP800_Permute_22rounds( state );
        dataByteLen -= laneCountInBytes;
    }
    return originalDataByteLen - dataByteLen;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %esi, %r15d
leal (,%r15,4), %r13d
movq %rcx, %rbp
cmpq %rcx, %r13
ja 0xa51e
movq %rdx, %r14
movq %rdi, %r12
movq %rbx, %rbp
movq %r12, %rax
movl %r15d, %ecx
cmpl $0x4, %r15d
jb 0xa4ef
movl (%r14), %edx
xorl %edx, (%rax)
movl 0x4(%r14), %edx
xorl %edx, 0x4(%rax)
movl 0x8(%r14), %edx
xorl %edx, 0x8(%rax)
movl 0xc(%r14), %edx
xorl %edx, 0xc(%rax)
addq $0x10, %rax
addq $0x10, %r14
addl $-0x4, %ecx
cmpl $0x3, %ecx
ja 0xa4c5
testl %ecx, %ecx
je 0xa50e
movl %ecx, %ecx
xorl %edx, %edx
xorl %esi, %esi
movl (%r14,%rsi,4), %edi
xorl %edi, (%rax,%rsi,4)
incq %rsi
addq $-0x4, %rdx
cmpl %esi, %ecx
jne 0xa4f9
subq %rdx, %r14
movq %r12, %rdi
callq 0x5190
subq %r13, %rbp
cmpq %r13, %rbp
jae 0xa4b9
subq %rbp, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O3/buf1024[P]mysch/dict.c
// Function: dict_rehash
int dict_rehash(dict *d, int n)
{
    if (!dict_is_rehashing(d))
        return 0;

    while (n--)
    {
        dict_entry *de, *nextde;

        /* Check if we already rehashed the whole table... */
        if (d->ht[0].used == 0)
        {
            free(d->ht[0].table);
            d->ht[0] = d->ht[1];
            _dict_reset(&d->ht[1]);
            d->rehashidx = -1;
            return 0;
        }

        /* Note that rehashidx can't overflow as we are sure there are more
         * elements because ht[0].used != 0 */
        while (d->ht[0].table[d->rehashidx] == NULL)
            d->rehashidx++;
        de = d->ht[0].table[d->rehashidx];
        /* Move all the keys in this bucket from the old to the new hash HT */
        while (de)
        {
            unsigned int h;

            nextde = de->next;
            /* Get the index in the new hash table */
            h = dict_gen_hash_function((const unsigned char*)de->key, de->keylen) & d->ht[1].sizemask;
            de->next = d->ht[1].table[h];
            d->ht[1].table[h] = de;
            d->ht[0].used--;
            d->ht[1].used++;
            de = nextde;
        }
        d->ht[0].table[d->rehashidx] = NULL;
        d->rehashidx++;
    }
    return 1;
}

// Assembly:
movl 0x48(%rdi), %eax
cmpl $-0x1, %eax
je 0x28f8
movl $0x1, %ecx
testl %esi, %esi
je 0x293c
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
leaq 0x8(%rdi), %rcx
movq %rcx, -0x30(%rbp)
leaq 0x28(%rdi), %rcx
movq %rcx, -0x38(%rbp)
movq 0x20(%rdi), %rcx
movq -0x30(%rbp), %rdx
movq (%rdx), %rdi
testq %rcx, %rcx
je 0x28fc
movslq %eax, %r8
movq (%rdi,%r8,8), %r9
testq %r9, %r9
jne 0x286c
movq 0x8(%rdi,%r8,8), %r9
incq %r8
testq %r9, %r9
je 0x2858
movl %r8d, 0x48(%rbx)
movl %r8d, %eax
decl %esi
movl 0x38(%rbx), %edi
movq 0x40(%rbx), %r10
movq 0x18(%r9), %r11
movl (%r9), %r13d
testq %r13, %r13
je 0x28a9
movq 0x8(%r9), %r14
movl $0x1505, %r12d          # imm = 0x1505
xorl %r15d, %r15d
movl %r12d, %edx
shll $0x5, %edx
addl %r12d, %edx
movzbl (%r14,%r15), %r12d
addl %edx, %r12d
incq %r15
cmpl %r15d, %r13d
jne 0x288e
jmp 0x28af
movl $0x1505, %r12d          # imm = 0x1505
andl %edi, %r12d
movq 0x28(%rbx), %rdx
movq (%rdx,%r12,8), %r14
movq %r14, 0x18(%r9)
movq %r9, (%rdx,%r12,8)
decq %rcx
movq %rcx, 0x20(%rbx)
incq %r10
movq %r10, 0x40(%rbx)
movq %r11, %r9
testq %r11, %r11
jne 0x2875
movq 0x8(%rbx), %rdx
movq $0x0, (%rdx,%r8,8)
incl %eax
movl %eax, 0x48(%rbx)
testl %esi, %esi
jne 0x283c
movl $0x1, %ecx
jmp 0x292e
xorl %ecx, %ecx
jmp 0x293c
movq -0x38(%rbp), %r14
callq 0x2030
movups (%r14), %xmm0
movups 0x10(%r14), %xmm1
movq -0x30(%rbp), %rax
movups %xmm1, 0x10(%rax)
movups %xmm0, (%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movups %xmm0, 0x10(%r14)
movl $0xffffffff, 0x48(%rbx) # imm = 0xFFFFFFFF
xorl %ecx, %ecx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/buf1024[P]mysch/dict.c
// Function: dict_add
int dict_add(dict *d, void *key, int keylen, void *val, int vallen)
{
    int index;
    dict_entry *entry;
    dictht *ht;

    if (dict_is_rehashing(d))
        _dict_rehash_step(d);

    /* Get the index of the new element, or -1 if
     * the element already exists. */
    if ((index = _dict_key_index(d, key, keylen)) == -1)
    {
        return DICT_ERR;
    }

    /* Allocates the memory and stores key */
    ht = dict_is_rehashing(d) ? &d->ht[1] : &d->ht[0];
    entry = (dict_entry*)malloc(sizeof(*entry));

    entry->next = ht->table[index];
    ht->table[index] = entry;
    ht->used++;

    /* Set the hash entry fields. */
    entry->key = key;
    entry->keylen = keylen;
    entry->val = val;
    entry->vallen = vallen;

    return DICT_OK;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %r8d, %ebx
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r13
cmpl $-0x1, 0x48(%rdi)
je 0x2a75
cmpl $0x0, 0x4c(%r13)
jne 0x2abf
movq %r13, %rdi
movl $0x1, %esi
callq 0x27fb
cmpl $-0x1, 0x48(%r13)
jne 0x2abf
movq 0x10(%r13), %rcx
testq %rcx, %rcx
je 0x2aa3
movq 0x20(%r13), %rsi
cmpq %rcx, %rsi
jb 0x2abf
cmpb $0x1, 0x976e(%rip)      # 0xc1fc
jne 0x2a9e
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
cmpq $0x6, %rax
jb 0x2abf
addq %rsi, %rsi
jmp 0x2aa8
movl $0x4, %esi
movq %r13, %rdi
callq 0x275e
movl %eax, %ecx
movl $0x1, %eax
testl %ecx, %ecx
jne 0x2bbe
movq %r14, -0x38(%rbp)
testl %r15d, %r15d
movl %ebx, -0x2c(%rbp)
je 0x2af0
movl %r15d, %eax
movl $0x1505, %r14d          # imm = 0x1505
xorl %ecx, %ecx
movl %r14d, %edx
shll $0x5, %edx
addl %r14d, %edx
movzbl (%r12,%rcx), %r14d
addl %edx, %r14d
incq %rcx
cmpl %ecx, %eax
jne 0x2ad6
jmp 0x2af6
movl $0x1505, %r14d          # imm = 0x1505
leaq 0x8(%r13), %rax
movq %rax, -0x50(%rbp)
movslq %r15d, %rbx
movb $0x1, %dl
xorl %eax, %eax
movq %r13, -0x48(%rbp)
movl %edx, -0x30(%rbp)
shlq $0x5, %rax
movq -0x50(%rbp), %rdx
movl 0x10(%rdx,%rax), %ecx
andl %r14d, %ecx
movq (%rdx,%rax), %rax
movq %rcx, -0x40(%rbp)
movq (%rax,%rcx,8), %r13
testq %r13, %r13
je 0x2b4b
cmpl %r15d, (%r13)
jne 0x2b45
movq 0x8(%r13), %rsi
movq %r12, %rdi
movq %rbx, %rdx
callq 0x22c0
testl %eax, %eax
je 0x2bb9
movq 0x18(%r13), %r13
jmp 0x2b27
movq -0x48(%rbp), %r13
movl 0x48(%r13), %ecx
cmpl $-0x1, %ecx
setne %dl
movl $0x1, %eax
testb %dl, -0x30(%rbp)
movl $0x0, %edx
jne 0x2b09
movq -0x40(%rbp), %r14
cmpl $-0x1, %r14d
je 0x2bb9
xorl %ebx, %ebx
cmpl $-0x1, %ecx
setne %bl
shll $0x5, %ebx
movl $0x20, %edi
callq 0x22a0
movq 0x8(%r13,%rbx), %rcx
movslq %r14d, %rdx
movq (%rcx,%rdx,8), %rsi
movq %rsi, 0x18(%rax)
movq %rax, (%rcx,%rdx,8)
incq 0x20(%r13,%rbx)
movq %r12, 0x8(%rax)
movl %r15d, (%rax)
movq -0x38(%rbp), %rcx
movq %rcx, 0x10(%rax)
movl -0x2c(%rbp), %ecx
movl %ecx, 0x4(%rax)
xorl %eax, %eax
jmp 0x2bbe
movl $0x1, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/buf1024[P]mysch/dict.c
// Function: dict_replace
int dict_replace(dict *d, void *key, int keylen, void *val, int vallen)
{
    dict_entry *entry, auxentry;

    /* Try to add the element. If the key
     * does not exists dictAdd will suceed. */
    if (dict_add(d, key, keylen, val, vallen) == DICT_OK)
        return 1;
    /* It already exists, get the entry */
    entry = dict_find(d, key, keylen);
    /* Free the old value and set the new one */
    /* Set the new value and free the old one. Note that it is important
     * to do that in this order, as the value may just be exactly the same
     * as the previous one. In this context, think to reference counting,
     * you want to increment (set), and then decrement (free), and not the
     * reverse. */
    auxentry = *entry;
    entry->val = val;
    entry->vallen = vallen;

    free(auxentry.val);

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r8d, %ebx
movq %rcx, %r14
movl %edx, %r15d
movq %rsi, %r12
movq %rdi, %r13
callq 0x2a34
testl %eax, %eax
je 0x2c15
movq %r13, %rdi
movq %r12, %rsi
movl %r15d, %edx
callq 0x2c29
movq 0x10(%rax), %rdi
movq %r14, 0x10(%rax)
movl %ebx, 0x4(%rax)
callq 0x2030
xorl %eax, %eax
jmp 0x2c1a
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq