LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/dict.c
// Function: dictRehash
int dictRehash(dict *d, int n) {
    if (!dictIsRehashing(d)) return 0;

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

        /* Check if we already rehashed the whole table... */
        if (d->ht[0].used == 0) {
            zfree(d->ht[0].table);
            d->ht[0] = d->ht[1];
            _dictReset(&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 */
        assert(d->ht[0].size > (unsigned)d->rehashidx);
        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 = dictHashKey(d, de->key) & 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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl 0x50(%rdi), %eax
xorl %ebx, %ebx
cmpl $-0x1, %eax
je 0x6262
movl %esi, %ebp
testl %esi, %esi
je 0x622a
movq %rdi, %r14
leaq 0x10(%rdi), %r12
leaq 0x30(%rdi), %rcx
movq %rcx, (%rsp)
movq 0x28(%rdi), %rcx
testq %rcx, %rcx
je 0x6231
movl %eax, %ecx
cmpq %rcx, 0x18(%r14)
jbe 0x6273
movq (%r12), %rcx
movslq %eax, %rdx
movq (%rcx,%rdx,8), %r13
testq %r13, %r13
jne 0x61d1
leaq (%rcx,%rdx,8), %rcx
addq $0x8, %rcx
movq (%rcx), %r13
incl %eax
addq $0x8, %rcx
testq %r13, %r13
je 0x61bf
movl %eax, 0x50(%r14)
decl %ebp
movq (%r13), %rdi
movq 0x10(%r13), %r15
movq (%r14), %rax
callq *(%rax)
andl 0x40(%r14), %eax
movq 0x30(%r14), %rcx
movq (%rcx,%rax,8), %rdx
movq %rdx, 0x10(%r13)
movq %r13, (%rcx,%rax,8)
movq 0x28(%r14), %rcx
decq %rcx
movq %rcx, 0x28(%r14)
incq 0x48(%r14)
movq %r15, %r13
testq %r15, %r15
jne 0x61d3
movq 0x10(%r14), %rax
movslq 0x50(%r14), %rdx
movq $0x0, (%rax,%rdx,8)
leal 0x1(%rdx), %eax
movl %eax, 0x50(%r14)
testl %ebp, %ebp
jne 0x6192
movl $0x1, %ebx
jmp 0x6262
movq 0x10(%r14), %rdi
callq 0xb8dc
movq (%rsp), %rax
movups (%rax), %xmm0
movups 0x10(%rax), %xmm1
movups %xmm1, 0x10(%r12)
movups %xmm0, (%r12)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movl $0xffffffff, 0x50(%r14) # imm = 0xFFFFFFFF
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x66e6(%rip), %rdi      # 0xc960
leaq 0x6706(%rip), %rsi      # 0xc987
leaq 0x6706(%rip), %rcx      # 0xc98e
movl $0xd8, %edx
callq 0x4190
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/dict.c
// Function: dictAddRaw
dictEntry *dictAddRaw(dict *d, void *key)
{
    int index;
    dictEntry *entry;
    dictht *ht;

    if (dictIsRehashing(d)) _dictRehashStep(d);

    /* Get the index of the new element, or -1 if
     * the element already exists. */
    if ((index = _dictKeyIndex(d, key)) == -1)
        return NULL;

    /* Allocate the memory and store the new entry */
    ht = dictIsRehashing(d) ? &d->ht[1] : &d->ht[0];
    entry = zmalloc(sizeof(*entry));
    entry->next = ht->table[index];
    ht->table[index] = entry;
    ht->used++;

    /* Set the hash entry fields. */
    dictSetKey(d, entry, key);
    return entry;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
cmpl $-0x1, 0x50(%rdi)
je 0x63fa
cmpl $0x0, 0x54(%r14)
jne 0x644e
movq %r14, %rdi
movl $0x1, %esi
callq 0x615c
cmpl $-0x1, 0x50(%r14)
jne 0x644e
movq 0x18(%r14), %rcx
testq %rcx, %rcx
je 0x6428
movq 0x28(%r14), %rsi
cmpq %rcx, %rsi
jb 0x644e
cmpb $0x1, 0xae19(%rip)      # 0x1122c
jne 0x6423
movq %rsi, %rax
xorl %edx, %edx
divq %rcx
cmpq $0x6, %rax
jb 0x644e
addq %rsi, %rsi
jmp 0x642d
movl $0x4, %esi
movq %r14, %rdi
callq 0x60ce
testl %eax, %eax
je 0x644e
xorl %r13d, %r13d
movq %r13, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r14), %rax
movq %rbx, %rdi
callq *(%rax)
movl %eax, 0x4(%rsp)
leaq 0x10(%r14), %r13
movb $0x1, %r15b
xorl %eax, %eax
shlq $0x5, %rax
movl 0x10(%r13,%rax), %r12d
andl 0x4(%rsp), %r12d
movq (%r13,%rax), %rax
movq (%rax,%r12,8), %rbp
testq %rbp, %rbp
je 0x64aa
movq (%r14), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x649e
movq 0x8(%r14), %rdi
movq (%rbp), %rdx
movq %rbx, %rsi
callq *%rax
testl %eax, %eax
je 0x64a4
jmp 0x6439
cmpq %rbx, (%rbp)
je 0x6439
movq 0x10(%rbp), %rbp
jmp 0x647a
movl 0x50(%r14), %ecx
cmpl $-0x1, %ecx
setne %dl
movl $0x1, %eax
testb %dl, %r15b
movl $0x0, %r15d
jne 0x6463
cmpl $-0x1, %r12d
je 0x6439
xorl %r15d, %r15d
cmpl $-0x1, %ecx
setne %r15b
shll $0x5, %r15d
movl $0x18, %edi
callq 0xb765
movq %rax, %r13
movq 0x10(%r14,%r15), %rax
movslq %r12d, %rcx
movq (%rax,%rcx,8), %rdx
movq %rdx, 0x10(%r13)
movq %r13, (%rax,%rcx,8)
incq 0x28(%r14,%r15)
movq (%r14), %rax
movq 0x8(%rax), %rax
testq %rax, %rax
je 0x651a
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq *%rax
movq %rax, %rbx
movq %rbx, (%r13)
jmp 0x643c
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/dict.c
// Function: dictFind
dictEntry *dictFind(dict *d, const void *key)
{
    dictEntry *he;
    unsigned int h, idx, table;

    if (d->ht[0].size == 0) return NULL; /* We don't have a table at all */
    if (dictIsRehashing(d)) _dictRehashStep(d);
    h = dictHashKey(d, key);
    for (table = 0; table <= 1; table++) {
        idx = h & d->ht[table].sizemask;
        he = d->ht[table].table[idx];
        while(he) {
            if (dictCompareKeys(d, key, he->key))
                return he;
            he = he->next;
        }
        if (!dictIsRehashing(d)) return NULL;
    }
    return NULL;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x0, 0x18(%rdi)
je 0x663c
movq %rsi, %rbx
movq %rdi, %r14
cmpl $-0x1, 0x50(%rdi)
je 0x65cb
cmpl $0x0, 0x54(%r14)
jne 0x65cb
movq %r14, %rdi
movl $0x1, %esi
callq 0x615c
leaq 0x10(%r14), %r12
movq (%r14), %rax
movq %rbx, %rdi
callq *(%rax)
movl %eax, %ebp
movb $0x1, %r13b
xorl %eax, %eax
shlq $0x5, %rax
movl 0x10(%r12,%rax), %ecx
andl %ebp, %ecx
movq (%r12,%rax), %rax
movq (%rax,%rcx,8), %r15
testq %r15, %r15
je 0x661f
movq (%r14), %rax
movq 0x18(%rax), %rax
testq %rax, %rax
je 0x6614
movq 0x8(%r14), %rdi
movq (%r15), %rdx
movq %rbx, %rsi
callq *%rax
testl %eax, %eax
je 0x6619
jmp 0x663f
cmpq %rbx, (%r15)
je 0x663f
movq 0x10(%r15), %r15
jmp 0x65f1
cmpl $-0x1, 0x50(%r14)
setne %cl
movl $0x1, %eax
xorl %r15d, %r15d
testb %r13b, %cl
movl $0x0, %r13d
jne 0x65de
jmp 0x663f
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/dict.c
// Function: dictClear
int _dictClear(dict *d, dictht *ht)
{
    unsigned long i;

    /* Free all the elements */
    for (i = 0; i < ht->size && ht->used > 0; i++) {
        dictEntry *he, *nextHe;

        if ((he = ht->table[i]) == NULL) continue;
        while(he) {
            nextHe = he->next;
            dictFreeKey(d, he);
            dictFreeVal(d, he);
            zfree(he);
            ht->used--;
            he = nextHe;
        }
    }
    /* Free the table and the allocated cache structure */
    zfree(ht->table);
    /* Re-initialize the table */
    _dictReset(ht);
    return DICT_OK; /* never fails */
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq 0x8(%rsi), %rcx
testq %rcx, %rcx
je 0x6859
movq %rdi, %r14
movq 0x18(%rbx), %rax
xorl %r12d, %r12d
testq %rax, %rax
je 0x6859
movq (%rbx), %rdx
movq (%rdx,%r12,8), %r15
testq %r15, %r15
je 0x6851
movq 0x10(%r15), %r13
movq (%r14), %rcx
movq 0x20(%rcx), %rax
testq %rax, %rax
je 0x681f
movq 0x8(%r14), %rdi
movq (%r15), %rsi
callq *%rax
movq (%r14), %rcx
movq 0x28(%rcx), %rax
testq %rax, %rax
je 0x6832
movq 0x8(%r14), %rdi
movq 0x8(%r15), %rsi
callq *%rax
movq %r15, %rdi
callq 0xb8dc
movq 0x18(%rbx), %rax
decq %rax
movq %rax, 0x18(%rbx)
movq %r13, %r15
testq %r13, %r13
jne 0x6803
movq 0x8(%rbx), %rcx
incq %r12
cmpq %rcx, %r12
jb 0x67f2
movq (%rbx), %rdi
callq 0xb8dc
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/dict.c
// Function: dictNext
dictEntry *dictNext(dictIterator *iter)
{
    while (1) {
        if (iter->entry == NULL) {
            dictht *ht = &iter->d->ht[iter->table];
            if (iter->safe && iter->index == -1 && iter->table == 0)
                iter->d->iterators++;
            iter->index++;
            if (iter->index >= (signed) ht->size) {
                if (dictIsRehashing(iter->d) && iter->table == 0) {
                    iter->table++;
                    iter->index = 0;
                    ht = &iter->d->ht[1];
                } else {
                    break;
                }
            }
            iter->entry = 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 0x20(%rdi), %rcx
cmpq $0x0, 0x18(%rdi)
movq %rcx, %rdx
jne 0x697c
movq (%rdi), %rdx
movslq 0x8(%rdi), %rsi
movq %rsi, %rax
shlq $0x5, %rax
addq %rdx, %rax
addq $0x10, %rax
cmpl $0x0, 0x10(%rdi)
movl 0xc(%rdi), %r8d
je 0x6947
movl %r8d, %r9d
notl %r9d
orl %esi, %r9d
jne 0x6947
incl 0x54(%rdx)
incl %r8d
movl %r8d, 0xc(%rdi)
cmpl 0x8(%rax), %r8d
jl 0x6972
xorl %eax, %eax
cmpl $-0x1, 0x50(%rdx)
je 0x698f
testl %esi, %esi
jne 0x698f
movq $0x1, 0x8(%rdi)
addq $0x30, %rdx
xorl %r8d, %r8d
movq %rdx, %rax
movslq %r8d, %rdx
shlq $0x3, %rdx
addq (%rax), %rdx
movq (%rdx), %rax
movq %rax, 0x18(%rdi)
testq %rax, %rax
je 0x691a
movq 0x10(%rax), %rdx
movq %rdx, (%rcx)
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/dict.c
// Function: dictGetRandomKey
dictEntry *dictGetRandomKey(dict *d)
{
    dictEntry *he, *orighe;
    unsigned int h;
    int listlen, listele;

    if (dictSize(d) == 0) return NULL;
    if (dictIsRehashing(d)) _dictRehashStep(d);
    if (dictIsRehashing(d)) {
        do {
            h = random() % (d->ht[0].size+d->ht[1].size);
            he = (h >= d->ht[0].size) ? d->ht[1].table[h - d->ht[0].size] :
                                      d->ht[0].table[h];
        } while(he == NULL);
    } else {
        do {
            h = random() & d->ht[0].sizemask;
            he = d->ht[0].table[h];
        } while(he == NULL);
    }

    /* Now we found a non empty bucket, but it is a linked
     * list and we need to get a random element from the list.
     * The only sane way to do so is counting the elements and
     * select a random index. */
    listlen = 0;
    orighe = he;
    while(he) {
        he = he->next;
        listlen++;
    }
    listele = random() % listlen;
    he = orighe;
    while(listele--) he = he->next;
    return he;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x28(%rdi), %rax
addq 0x48(%rdi), %rax
jne 0x69cb
xorl %r14d, %r14d
jmp 0x6a68
movq %rdi, %rbx
cmpl $-0x1, 0x50(%rdi)
je 0x6a2b
cmpl $0x0, 0x54(%rbx)
jne 0x69ed
movq %rbx, %rdi
movl $0x1, %esi
callq 0x615c
cmpl $-0x1, 0x50(%rbx)
je 0x6a2b
callq 0x4260
movq 0x18(%rbx), %rsi
movq 0x38(%rbx), %rcx
addq %rsi, %rcx
xorl %edx, %edx
divq %rcx
movl %edx, %ecx
movq %rcx, %rax
subq %rsi, %rax
jae 0x6a19
shlq $0x3, %rcx
addq 0x10(%rbx), %rcx
movq %rcx, %rax
jmp 0x6a21
shlq $0x3, %rax
addq 0x30(%rbx), %rax
movq (%rax), %r14
testq %r14, %r14
je 0x69ed
jmp 0x6a40
callq 0x4260
movq 0x10(%rbx), %rcx
andl 0x20(%rbx), %eax
movq (%rcx,%rax,8), %r14
testq %r14, %r14
je 0x6a2b
xorl %ebx, %ebx
movq %r14, %rax
movq 0x10(%rax), %rax
incq %rbx
testq %rax, %rax
jne 0x6a45
callq 0x4260
cqto
idivq %rbx
testq %rdx, %rdx
je 0x6a68
movq 0x10(%r14), %r14
decl %edx
jne 0x6a60
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/dict.c
// Function: dictEmpty
void dictEmpty(dict *d) {
    _dictClear(d,&d->ht[0]);
    _dictClear(d,&d->ht[1]);
    d->rehashidx = -1;
    d->iterators = 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x10(%rdi), %rsi
callq 0x67d3
leaq 0x30(%rbx), %rsi
movq %rbx, %rdi
callq 0x67d3
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x50(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/sds.c
// Function: sdsnewlen
sds sdsnewlen(const void *init, size_t initlen) {
    struct sdshdr *sh;

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

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x9(%rsi), %rdi
testq %r14, %r14
je 0x74eb
callq 0xb765
jmp 0x74f0
callq 0xb7c7
movq %rax, %r15
testq %rax, %rax
je 0x752e
testq %r14, %r14
sete %al
movl %ebx, (%r15)
movl $0x0, 0x4(%r15)
testq %rbx, %rbx
sete %cl
orb %al, %cl
jne 0x7522
leaq 0x8(%r15), %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x4240
movb $0x0, 0x8(%r15,%rbx)
addq $0x8, %r15
jmp 0x7531
xorl %r15d, %r15d
movq %r15, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/sds.c
// Function: sdsMakeRoomFor
sds sdsMakeRoomFor(sds s, size_t addlen) {
    struct sdshdr *sh, *newsh;
    size_t free = sdsavail(s);
    size_t len, newlen;

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

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

// Assembly:
movq %rdi, %rax
movslq -0x4(%rdi), %rcx
cmpq %rsi, %rcx
jae 0x7675
pushq %r14
pushq %rbx
pushq %rax
movslq -0x8(%rax), %rbx
addq $-0x8, %rax
addq %rbx, %rsi
leaq (%rsi,%rsi), %rcx
movl $0x100000, %edx         # imm = 0x100000
leaq (%rsi,%rdx), %r14
cmpq %rdx, %rsi
cmovbq %rcx, %r14
leaq 0x9(%r14), %rsi
movq %rax, %rdi
callq 0xb82e
testq %rax, %rax
je 0x766c
subl %ebx, %r14d
movl %r14d, 0x4(%rax)
addq $0x8, %rax
jmp 0x766e
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/sds.c
// Function: sdsRemoveFreeSpace
sds sdsRemoveFreeSpace(sds s) {
    struct sdshdr *sh;

    sh = (void*) (s-(sizeof(struct sdshdr)));
    sh = zrealloc(sh, sizeof(struct sdshdr)+sh->len+1);
    sh->free = 0;
    return sh->buf;
}

// Assembly:
pushq %rax
movslq -0x8(%rdi), %rsi
addq $-0x8, %rdi
addq $0x9, %rsi
callq 0xb82e
movl $0x0, 0x4(%rax)
addq $0x8, %rax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/sds.c
// Function: sdsIncrLen
void sdsIncrLen(sds s, int incr) {
    struct sdshdr *sh = (void*) (s-(sizeof(struct sdshdr)));

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

// Assembly:
pushq %rax
movl -0x4(%rdi), %eax
cmpl %esi, %eax
jl 0x76c7
movslq -0x8(%rdi), %rdx
movslq %esi, %rcx
addq %rdx, %rcx
movl %ecx, -0x8(%rdi)
subl %esi, %eax
movl %eax, -0x4(%rdi)
js 0x76e6
movb $0x0, (%rdi,%rcx)
popq %rax
retq
leaq 0x536a(%rip), %rdi      # 0xca38
leaq 0x5374(%rip), %rsi      # 0xca49
leaq 0x5373(%rip), %rcx      # 0xca4f
movl $0x9c, %edx
callq 0x4190
leaq 0x537c(%rip), %rdi      # 0xca69
leaq 0x5355(%rip), %rsi      # 0xca49
leaq 0x5354(%rip), %rcx      # 0xca4f
movl $0x9f, %edx
callq 0x4190
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/ziplist.c
// Function: ziplistIndex
unsigned char *ziplistIndex(unsigned char *zl, int index) {
    unsigned char *p;
    zlentry entry;
    if (index < 0) {
        index = (-index)-1;
        p = ZIPLIST_ENTRY_TAIL(zl);
        if (p[0] != ZIP_END) {
            entry = zipEntry(p);
            while (entry.prevrawlen > 0 && index--) {
                p -= entry.prevrawlen;
                entry = zipEntry(p);
            }
        }
    } else {
        p = ZIPLIST_ENTRY_HEAD(zl);
        while (p[0] != ZIP_END && index--) {
            p += zipRawEntryLength(p);
        }
    }
    return (p[0] == ZIP_END || index > 0) ? NULL : p;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movl %esi, %ebx
testl %esi, %esi
js 0xa4ec
leaq 0xa(%rdi), %r15
cmpb $-0x1, 0xa(%rdi)
je 0xa538
subl $0x1, %ebx
jb 0xa533
movq %r15, %rdi
callq 0xa690
movl %eax, %eax
leaq (%r15,%rax), %r14
cmpb $-0x1, (%r15,%rax)
movq %r14, %r15
jne 0xa4cd
jmp 0xa53b
notl %ebx
movl 0x4(%rdi), %eax
leaq (%rdi,%rax), %r14
cmpb $-0x1, (%rdi,%rax)
je 0xa53b
movq %rsp, %r15
movq %r15, %rdi
movq %r14, %rsi
callq 0xa55f
movl 0x4(%r15), %eax
testl %eax, %eax
je 0xa53b
movq %rsp, %r15
subl $0x1, %ebx
jb 0xa558
movl %eax, %eax
subq %rax, %r14
movq %r15, %rdi
movq %r14, %rsi
callq 0xa55f
movl 0x4(%rsp), %eax
testl %eax, %eax
jne 0xa514
jmp 0xa53b
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r15, %r14
xorl %ecx, %ecx
testl %ebx, %ebx
movq %r14, %rax
cmovgq %rcx, %rax
cmpb $-0x1, (%r14)
cmoveq %rcx, %rax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0xa53b
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/ziplist.c
// Function: zipEntry
static zlentry zipEntry(unsigned char *p) {
    zlentry e;

    ZIP_DECODE_PREVLEN(p, e.prevrawlensize, e.prevrawlen);
    ZIP_DECODE_LENGTH(p + e.prevrawlensize, e.encoding, e.lensize, e.len);
    e.headersize = e.prevrawlensize + e.lensize;
    e.p = p;
    return e;
}

// Assembly:
movzbl (%rsi), %ecx
xorl %eax, %eax
cmpl $0xfe, %ecx
setae %al
leal 0x1(,%rax,4), %eax
movl %eax, (%rdi)
jb 0xa57b
movl 0x1(%rsi), %ecx
movl %ecx, 0x4(%rdi)
movl %eax, %edx
movzbl (%rsi,%rdx), %ecx
movl %ecx, %r8d
andb $-0x40, %r8b
movzbl %r8b, %r8d
cmpl $0xc0, %ecx
cmovael %ecx, %r8d
movb %r8b, 0x14(%rdi)
jae 0xa5d6
movl %ecx, %r8d
shrb $0x6, %r8b
xorb $0x2, %r8b
movzbl %r8b, %r8d
leaq 0x253f(%rip), %r9       # 0xcaf4
movslq (%r9,%r8,4), %r8
addq %r9, %r8
jmpq *%r8
movl $0x5, 0x8(%rdi)
movl 0x1(%rsi,%rdx), %ecx
bswapl %ecx
movl $0x5, %edx
jmp 0xa663
movl $0x1, 0x8(%rdi)
movl $0x1, %edx
cmpl $0xdf, %ecx
jle 0xa609
cmpl $0xe0, %ecx
je 0xa64c
cmpl $0xf0, %ecx
je 0xa653
cmpl $0xfe, %ecx
jne 0xa661
movl $0x1, %ecx
jmp 0xa663
cmpl $0xc0, %ecx
je 0xa65a
cmpl $0xd0, %ecx
jne 0xa661
movl $0x4, %ecx
jmp 0xa663
movl $0x1, 0x8(%rdi)
andl $0x3f, %ecx
movl $0x1, %edx
jmp 0xa663
movl $0x2, 0x8(%rdi)
andl $0x3f, %ecx
shll $0x8, %ecx
movzbl 0x1(%rsi,%rdx), %edx
orl %edx, %ecx
movl $0x2, %edx
jmp 0xa663
movl $0x8, %ecx
jmp 0xa663
movl $0x3, %ecx
jmp 0xa663
movl $0x2, %ecx
jmp 0xa663
xorl %ecx, %ecx
movl %ecx, 0xc(%rdi)
addl %eax, %edx
movl %edx, 0x10(%rdi)
movq %rsi, 0x18(%rdi)
retq
pushq %rax
leaq 0x24e8(%rip), %rdi      # 0xcb60
leaq 0x249a(%rip), %rsi      # 0xcb19
leaq 0x2617(%rip), %rcx      # 0xcc9d
movl $0x17d, %edx            # imm = 0x17D
callq 0x4190
// File: /workspace/github_c_makefile_star2_O3/srned[P]baselib/ziplist.c
// Function: ziplistGet
unsigned int ziplistGet(unsigned char *p, unsigned char **sstr, unsigned int *slen, long long *sval) {
    zlentry entry;
    if (p == NULL || p[0] == ZIP_END) return 0;
    if (sstr) *sstr = NULL;

    entry = zipEntry(p);
    if (ZIP_IS_STR(entry.encoding)) {
        if (sstr) {
            *slen = entry.len;
            *sstr = p+entry.headersize;
        }
    } else {
        if (sval) {
            *sval = zipLoadInteger(p+entry.headersize,entry.encoding);
        }
    }
    return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
xorl %ebp, %ebp
testq %rdi, %rdi
je 0xa895
movq %rdi, %rbx
cmpb $-0x1, (%rdi)
je 0xa895
movq %rcx, %r14
movq %rdx, %r12
movq %rsi, %r15
testq %rsi, %rsi
je 0xa848
movq $0x0, (%r15)
leaq 0x8(%rsp), %r13
movq %r13, %rdi
movq %rbx, %rsi
callq 0xa55f
movl 0x10(%r13), %eax
movb 0x14(%r13), %cl
movl $0x1, %ebp
cmpb $-0x41, %cl
jbe 0xa882
testq %r14, %r14
je 0xa895
addq %rax, %rbx
movzbl %cl, %esi
movq %rbx, %rdi
callq 0xa8a6
movq %rax, (%r14)
jmp 0xa895
testq %r15, %r15
je 0xa895
movl 0x14(%rsp), %ecx
movl %ecx, (%r12)
addq %rax, %rbx
movq %rbx, (%r15)
movl %ebp, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aezv4/ref/blake2b.c
// Function: blake2b_init
int blake2b_init(blake2b_ctx *ctx, size_t outlen,
    const void *key, size_t keylen)        // (keylen=0: no key)
{
    size_t i;

    if (outlen == 0 || outlen > 64 || keylen > 64)
        return -1;                      // illegal parameters

    for (i = 0; i < 8; i++)             // state, "param block"
        ctx->h[i] = blake2b_iv[i];
    ctx->h[0] ^= 0x01010000 ^ (keylen << 8) ^ outlen;

    ctx->t[0] = 0;                      // input count low word
    ctx->t[1] = 0;                      // input count high word
    ctx->c = 0;                         // pointer within buffer
    ctx->outlen = outlen;

    for (i = keylen; i < 128; i++)      // zero input block
        ctx->b[i] = 0;
    if (keylen > 0) {
        blake2b_update(ctx, key, keylen);
        ctx->c = 128;                   // at the end
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rcx, %r14
leaq -0x41(%rsi), %rax
cmpq $-0x40, %rax
setb %al
cmpq $0x41, %rcx
setae %cl
orb %al, %cl
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jne 0x12bc
movq %rdx, %r15
movq %rdi, %rbx
vmovups 0x3dcd(%rip), %ymm0     # 0x5000
vmovups %ymm0, 0x80(%rdi)
vmovups 0x3ddd(%rip), %ymm0     # 0x5020
vmovups %ymm0, 0xa0(%rdi)
movq %r14, %rax
shlq $0x8, %rax
orq %rsi, %rax
movabsq $0x6a09e667f2bdc908, %rcx # imm = 0x6A09E667F2BDC908
xorq %rax, %rcx
movq %rcx, 0x80(%rdi)
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, 0xc0(%rdi)
movq $0x0, 0xd0(%rdi)
movq %rsi, 0xd8(%rdi)
addq %r14, %rdi
movl $0x80, %edx
subq %r14, %rdx
xorl %ebp, %ebp
xorl %esi, %esi
vzeroupper
callq 0x1040
testq %r14, %r14
je 0x12bc
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1050
movq $0x80, 0xd0(%rbx)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aezv4/ref/blake2b.c
// Function: blake2b_update
void blake2b_update(blake2b_ctx *ctx,
    const void *in, size_t inlen)       // data bytes
{
    size_t i;

    for (i = 0; i < inlen; i++) {
        if (ctx->c == 128) {            // buffer full ?
            ctx->t[0] += ctx->c;        // add counters
            if (ctx->t[0] < ctx->c)     // carry overflow ?
                ctx->t[1]++;            // high word
            blake2b_compress(ctx, 0);   // compress (not last)
            ctx->c = 0;                 // counter to zero
        }
        ctx->b[ctx->c++] = ((const uint8_t *) in)[i];
    }
}

// Assembly:
testq %rdx, %rdx
je 0x1349
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
movq 0xd0(%r15), %rax
cmpq $0x80, %rax
jne 0x1323
movq 0xc0(%r15), %rax
subq $-0x80, %rax
movq %rax, 0xc0(%r15)
jb 0x130c
incq 0xc8(%r15)
movq %r15, %rdi
xorl %esi, %esi
callq 0x134a
movq $0x0, 0xd0(%r15)
xorl %eax, %eax
movb (%r14,%r12), %cl
leaq 0x1(%rax), %rdx
movq %rdx, 0xd0(%r15)
movb %cl, (%r15,%rax)
incq %r12
cmpq %r12, %rbx
jne 0x12e2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aezv4/ref/blake2b.c
// Function: blake2b_final
void blake2b_final(blake2b_ctx *ctx, void *out)
{
    size_t i;

    ctx->t[0] += ctx->c;                // mark last block offset
    if (ctx->t[0] < ctx->c)             // carry overflow
        ctx->t[1]++;                    // high word

    while (ctx->c < 128)                // fill up with zeros
        ctx->b[ctx->c++] = 0;
    blake2b_compress(ctx, 1);           // final block flag = 1

    // little endian convert and store
    for (i = 0; i < ctx->outlen; i++) {
        ((uint8_t *) out)[i] =
            (ctx->h[i >> 3] >> (8 * (i & 7))) & 0xFF;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0xd0(%rdi), %rax
addq %rax, 0xc0(%rdi)
jae 0x17c1
incq 0xc8(%r14)
cmpq $0x7f, %rax
ja 0x17e2
incq %rax
movq %rax, 0xd0(%r14)
movb $0x0, -0x1(%r14,%rax)
incq %rax
cmpq $0x81, %rax
jne 0x17ca
movq %r14, %rdi
movl $0x1, %esi
callq 0x134a
cmpq $0x0, 0xd8(%r14)
je 0x1827
xorl %eax, %eax
xorl %ecx, %ecx
movq %rcx, %rdx
andq $-0x8, %rdx
movl %eax, %esi
andb $0x38, %sil
shrxq %rsi, 0x80(%r14,%rdx), %rdx
movb %dl, (%rbx,%rcx)
incq %rcx
addq $0x8, %rax
cmpq 0xd8(%r14), %rcx
jb 0x17fd
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aezv4/ref/encrypt.c
// Function: crypto_aead_decrypt
int crypto_aead_decrypt(
    unsigned char *m,unsigned long long *mlen,
    unsigned char *nsec,
    const unsigned char *c,unsigned long long clen,
    const unsigned char *ad,unsigned long long adlen,
    const unsigned char *npub,
    const unsigned char *k
)
{
    byte *AD[] = {(byte*)ad};
    unsigned adbytes[] = {(unsigned)adlen};
    (void)nsec;
    if (mlen) *mlen = clen-16;
    return Decrypt((byte*)k, 48, (byte*)npub, 12, AD,
                    adbytes, 1, 16, (byte*)c, clen, (byte*)m);
}

// Assembly:
subq $0x18, %rsp
movq %r8, %r10
movq %rcx, %rax
movq %rdi, %r11
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rdx
movl 0x20(%rsp), %ecx
movq %r9, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
testq %rsi, %rsi
je 0x2053
leaq -0x10(%r10), %rcx
movq %rcx, (%rsi)
subq $0x8, %rsp
leaq 0x18(%rsp), %r8
leaq 0x14(%rsp), %r9
movl $0x30, %esi
movl $0xc, %ecx
pushq %r11
pushq %r10
pushq %rax
pushq $0x10
pushq $0x1
callq 0x1030
addq $0x48, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aezv4/ref/encrypt.c
// Function: mult_block
static void mult_block(unsigned x, byte *src, byte *dst) {
    byte t[16], r[16];
    memcpy(t,src,16); memset(r,0,16);
    while (x != 0) {
        if (x&1) xor_bytes(r,t,16,r);
        double_block(t);
        x>>=1;
    }
    memcpy(dst,r,16);
}

// Assembly:
vmovdqu (%rsi), %xmm0
vmovdqa %xmm0, -0x18(%rsp)
vpxor %xmm0, %xmm0, %xmm0
testl %edi, %edi
je 0x2453
leaq -0x17(%rsp), %rax
movw $0x7fff, %cx            # imm = 0x7FFF
kmovd %ecx, %k1
vpbroadcastd 0x2e22(%rip), %xmm1 # 0x5220
vmovdqa -0x18(%rsp), %xmm2
testb $0x1, %dil
je 0x240e
vpxor %xmm0, %xmm2, %xmm0
movb -0x18(%rsp), %cl
vmovdqu8 (%rax), %xmm3 {%k1} {z}
vpsrlw $0x7, %xmm3, %xmm3
vpaddw %xmm2, %xmm2, %xmm2
vpternlogd $0xe4, %xmm1, %xmm3, %xmm2
vmovdqu8 %xmm2, -0x18(%rsp) {%k1}
movb -0x9(%rsp), %sil
addb %sil, %sil
sarb $0x7, %cl
andb $-0x79, %cl
xorb %sil, %cl
movb %cl, -0x9(%rsp)
movl %edi, %ecx
shrl %ecx
cmpl $0x1, %edi
movl %ecx, %edi
ja 0x23fe
vmovdqu %xmm0, (%rdx)
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: cor
void	cor(
	    complex	*src,		/* In: source function */
	    complex     *data,		/* In: data */
	                                /* Out: cross-correlation */
	    float	dt,		/* In: dt */
	    int 	nft		/* In: number of pts */
	    )
{
  int	j;
  float	aa;

  data[0]=cmplx(data[0].x*src[0].x, data[0].y*src[0].y);
  for (aa=-1.,j=1; j<nft; j++) {
    data[j]=cmltp(data[j], conjg(src[j]));
    data[j]=dmltp(aa, data[j]);
    aa = -aa;
  }
  fftr(data, nft, -dt);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebx
movaps %xmm0, 0x10(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movss (%rsi), %xmm0
movss 0x4(%rsi), %xmm1
mulss (%rdi), %xmm0
mulss 0x4(%rdi), %xmm1
callq 0x3ade
movlps %xmm0, (%r14)
cmpl $0x2, %ebx
jl 0x2853
movl %ebx, %r12d
movss 0x4241(%rip), %xmm0     # 0x6a44
movaps %xmm0, (%rsp)
movl $0x1, %r13d
movsd (%r15,%r13,8), %xmm0
callq 0x3a2f
movaps %xmm0, %xmm1
movsd (%r14,%r13,8), %xmm0
callq 0x39c0
movaps %xmm0, %xmm1
movlps %xmm0, (%r14,%r13,8)
movaps (%rsp), %xmm0
callq 0x3a27
movlps %xmm0, (%r14,%r13,8)
movaps (%rsp), %xmm0
xorps 0x37c9(%rip), %xmm0     # 0x6010
movaps %xmm0, (%rsp)
incq %r13
cmpq %r13, %r12
jne 0x280d
movaps 0x10(%rsp), %xmm0
xorps 0x37b1(%rip), %xmm0     # 0x6010
movq %r14, %rdi
movl %ebx, %esi
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x254a
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: conv
void    conv(float *s, int ns, float *f, int n) {
  int   i,j,k,m;
  float *g,*pt;
  m = n+ns;
  if ( (g=(float *) malloc(m*sizeof(float))) == NULL ) {
     fprintf(stderr, "fail to malloc in conv()\n");
     exit(-1);
  }
  for(i=0;i<ns;i++) g[i] = 0.;
  for(pt=f,k=0;k<n;k++,i++,pt++){
     g[i] = *pt;
     for(*pt=0.,j=0;j<ns;j++) *pt += g[i-j]*s[j];
  }
  free(g);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movl %esi, %r15d
movq %rdi, %r12
leal (%rbx,%r15), %eax
movslq %eax, %rdi
shlq $0x2, %rdi
callq 0x1160
testq %rax, %rax
je 0x2942
movq %rax, %r13
movl %r15d, %ebp
testl %r15d, %r15d
jle 0x28c7
leaq (,%rbp,4), %rdx
movq %r13, %rdi
xorl %esi, %esi
callq 0x10d0
movq %rbp, %rax
jmp 0x28c9
xorl %eax, %eax
testl %ebx, %ebx
jle 0x292c
leaq (,%rax,4), %rcx
addq %r13, %rcx
negq %rbp
xorl %edx, %edx
movss (%r14), %xmm0
movss %xmm0, (%r13,%rax,4)
movl $0x0, (%r14)
testl %r15d, %r15d
jle 0x291b
xorps %xmm0, %xmm0
movq %r12, %rsi
xorl %edi, %edi
movss (%rcx,%rdi,4), %xmm1
mulss (%rsi), %xmm1
addss %xmm1, %xmm0
movss %xmm0, (%r14)
decq %rdi
addq $0x4, %rsi
cmpq %rdi, %rbp
jne 0x28fd
incl %edx
incq %rax
addq $0x4, %r14
addq $0x4, %rcx
cmpl %ebx, %edx
jne 0x28dd
movq %r13, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1040
callq 0x1274
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: crscrl
float	*crscrl(int npt,float *rec,float *syn,int m) {
  int	i,nft,nft2;
  float	*ss1,*ss2;
  nft=2;while(nft<npt)nft*=2;nft2=nft;nft*=2;
  ss1=(float *)calloc(nft, sizeof(float));
  ss2=(float *)calloc(nft, sizeof(float));
  memcpy((char *)ss1, (char *) rec, npt*sizeof(float));
  memcpy((char *)ss2, (char *) syn, npt*sizeof(float));
  for(i=npt;i<nft;i++) {ss1[i]=0.;ss2[i]=0.;}
  fftr((complex *) ss1,nft2,1.);
  fftr((complex *) ss2,nft2,1.);

  cor((complex *) ss2, (complex *) ss1, 1., nft2);

  nft2 -= m/2;
  i = (m+1)*sizeof(float);
  ss2=(float *)realloc(ss2, i);
  memcpy(ss2, ss1+nft2, i);
  free(ss1);
  return(ss2);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rcx, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq %rsi, (%rsp)
movl %edi, %ebp
movl $0x2, %ebx
movl %ebx, %r13d
leal (,%r13,2), %ebx
cmpl %ebp, %r13d
jl 0x2973
movl %ebx, %r14d
movl $0x4, %esi
movq %r14, %rdi
callq 0x1110
movq %rax, %r15
movl $0x4, %esi
movq %r14, %rdi
callq 0x1110
movq %rax, %r12
movslq %ebp, %r14
shlq $0x2, %r14
movq %r15, %rdi
movq (%rsp), %rsi
movq %r14, %rdx
callq 0x1130
movq %r12, %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x1130
cmpl %ebp, %ebx
jle 0x29fa
leaq (%r15,%r14), %rdi
notl %ebp
addl %ebp, %ebx
leaq 0x4(,%rbx,4), %rbx
xorl %esi, %esi
movq %rbx, %rdx
callq 0x10d0
movq %r12, %rdi
addq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rdx
callq 0x10d0
movss 0x403e(%rip), %xmm0     # 0x6a40
movq %r15, %rdi
movl %r13d, %esi
callq 0x254a
movq %r12, %rdi
movl %r13d, %esi
movss 0x4025(%rip), %xmm0     # 0x6a40
callq 0x254a
movq %r12, %rdi
movq %r15, %rsi
movss 0x4012(%rip), %xmm0     # 0x6a40
movl %r13d, %edx
callq 0x27be
movq 0x10(%rsp), %rcx
movl %ecx, %eax
shrl $0x1f, %eax
addl %ecx, %eax
sarl %eax
subl %eax, %r13d
leal 0x4(,%rcx,4), %eax
movslq %eax, %r14
movq %r12, %rdi
movq %r14, %rsi
callq 0x11b0
movq %rax, %r12
movslq %r13d, %rax
leaq (%r15,%rax,4), %rsi
movq %r12, %rdi
movq %r14, %rdx
callq 0x1130
movq %r15, %rdi
callq 0x1040
movq %r12, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: maxCor
float maxCor(float *data, float *syn, int n, int max_shift, int *delay, float *amp) {
  int	i;
  float	*crs,c,dataAuto,synAuto;
  for(dataAuto=0.,synAuto=0.,i=0;i<n;i++) {
     dataAuto += data[i]*data[i];
     synAuto += syn[i]*syn[i];
  }
  if (max_shift<0) max_shift = n;
  crs = crscrl(n,data,syn,2*max_shift);
  for(c=-FLT_MAX,i=0;i<=2*max_shift;i++) {
     if (c<crs[i]) {
        c=crs[i];
        *delay=i;
     }
  }
  free(crs);
  *delay -= max_shift;
  *amp = c/synAuto;
  return(c/sqrt(dataAuto*synAuto));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movq %r9, %rbx
movq %r8, %r14
movl %ecx, %r15d
movl %edx, %eax
movq %rsi, %rdx
movq %rdi, %rsi
testl %eax, %eax
jle 0x2ace
movl %eax, %ecx
xorps %xmm2, %xmm2
xorl %edi, %edi
movss (%rdx,%rdi,4), %xmm0
movss (%rsi,%rdi,4), %xmm1
unpcklps %xmm0, %xmm1            # xmm1 = xmm1[0],xmm0[0],xmm1[1],xmm0[1]
mulps %xmm1, %xmm1
addps %xmm1, %xmm2
incq %rdi
cmpq %rdi, %rcx
jne 0x2ab1
jmp 0x2ad1
xorps %xmm2, %xmm2
movaps %xmm2, 0x10(%rsp)
testl %r15d, %r15d
cmovsl %eax, %r15d
leal (%r15,%r15), %ebp
movl %eax, %edi
movl %ebp, %ecx
callq 0x2950
testl %r15d, %r15d
js 0x2b18
movl %ebp, %ecx
incq %rcx
movss 0x3f50(%rip), %xmm1     # 0x6a4c
xorl %edx, %edx
movss (%rax,%rdx,4), %xmm0
ucomiss %xmm1, %xmm0
jbe 0x2b0e
movl %edx, (%r14)
movaps %xmm0, %xmm1
incq %rdx
cmpq %rdx, %rcx
jne 0x2afe
jmp 0x2b20
movss 0x3f2c(%rip), %xmm1     # 0x6a4c
movss %xmm1, 0xc(%rsp)
movq %rax, %rdi
callq 0x1040
subl %r15d, (%r14)
movaps 0x10(%rsp), %xmm1
movaps %xmm1, %xmm0
shufps $0x55, %xmm1, %xmm0     # xmm0 = xmm0[1,1],xmm1[1,1]
movss 0xc(%rsp), %xmm3
xorps %xmm2, %xmm2
cvtss2sd %xmm3, %xmm2
divss %xmm0, %xmm3
movss %xmm3, (%rbx)
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2b69
sqrtsd %xmm0, %xmm0
jmp 0x2b7a
movsd %xmm2, 0x10(%rsp)
callq 0x1220
movsd 0x10(%rsp), %xmm2
divsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: maxCorSlide
float maxCorSlide(float *data, float *syn, int n, int lw, float overlap,int *delay, float *amp) {
  int	i, j, max_shift, delay0;
  float	cc, cc_best, amp0;
  max_shift = (int) rint(lw*(1.-overlap));
  cc_best = -FLT_MAX;
  for(i=0;i+lw<n;i+=max_shift) {
     for(j=0;j+lw<n;j+=max_shift) {
        cc = maxCor(data+i,syn+j,lw,max_shift,&delay0,&amp0);
	if (cc>cc_best) {
	   cc_best = cc;
	   *delay = delay0 + i-j;
	   *amp = amp0;
	}
     }
  }
  return cc_best;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r9, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movl %ecx, %ebp
movl %edx, %ebx
movq %rsi, 0x20(%rsp)
movq %rdi, 0x18(%rsp)
cvtsi2sd %ecx, %xmm1
cvtss2sd %xmm0, %xmm2
movsd 0x3502(%rip), %xmm0     # 0x60c8
subsd %xmm2, %xmm0
mulsd %xmm1, %xmm0
callq 0x1150
cmpl %ebx, %ebp
jge 0x2c93
cvttsd2si %xmm0, %r13d
movslq %r13d, %rcx
movl %ebp, 0x4(%rsp)
movslq %ebp, %rax
movslq %ebx, %rdx
subq %rax, %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, %r12
leaq (,%rcx,4), %rax
movq %rax, 0x40(%rsp)
movss 0x3e3f(%rip), %xmm0     # 0x6a4c
movss %xmm0, (%rsp)
xorl %ecx, %ecx
movq 0x18(%rsp), %rax
leaq (%rax,%rcx,4), %rbx
movq 0x20(%rsp), %r14
movq %rcx, 0x28(%rsp)
movl %ecx, %r15d
xorl %ebp, %ebp
movq %rbx, %rdi
movq %r14, %rsi
movl 0x4(%rsp), %edx
movl %r13d, %ecx
leaq 0xc(%rsp), %r8
leaq 0x8(%rsp), %r9
callq 0x2a8b
ucomiss (%rsp), %xmm0
jbe 0x2c70
movl 0xc(%rsp), %eax
addl %r15d, %eax
movq 0x30(%rsp), %rcx
movl %eax, (%rcx)
movss 0x8(%rsp), %xmm1
movq 0x38(%rsp), %rax
movss %xmm1, (%rax)
movss %xmm0, (%rsp)
addq %r12, %rbp
subl %r13d, %r15d
addq 0x40(%rsp), %r14
cmpq 0x10(%rsp), %rbp
jl 0x2c2c
movq 0x28(%rsp), %rcx
addq %r12, %rcx
cmpq 0x10(%rsp), %rcx
jl 0x2c14
jmp 0x2ca0
movss 0x3db1(%rip), %xmm0     # 0x6a4c
movss %xmm0, (%rsp)
movss (%rsp), %xmm0
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: amp
float amp(float t1, float t2, float *data, int n) {
  int i, it1, it2;
  float dd, am;
  if ( t1 < 0 ) t1=0;
  if ( t2 > n-1 ) t2=n-1;
  if ( t1 > n-1 || t2 < t1) return 0.;
  it1 = floor(t1);
  i = it1 + 1;
  dd = i-t1;
  am = dd*(dd*data[it1]+(2.-dd)*data[i]);
/* return data[it1]*dd + data[i]*(1.-dd);*/
  it2 = ceil(t2);
  while (i<it2) {
    am += data[i]+data[i+1];
    i++;
  }
  dd = i-t2;
  am -= dd*(dd*data[i-1]+(2.-dd)*data[i]);
  return 0.5*am;
}

// Assembly:
xorps %xmm3, %xmm3
decl %esi
cvtsi2ss %esi, %xmm2
maxss %xmm0, %xmm3
xorps %xmm0, %xmm0
ucomiss %xmm2, %xmm3
ja 0x2e23
minss %xmm1, %xmm2
ucomiss %xmm2, %xmm3
ja 0x2e23
pushq %rbp
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rdi, %rbx
movaps %xmm3, %xmm0
movss %xmm2, 0xc(%rsp)
movss %xmm3, 0x8(%rsp)
callq 0x11d0
cvttss2si %xmm0, %eax
movslq %eax, %r14
leal 0x1(%r14), %ebp
xorps %xmm0, %xmm0
cvtsi2ss %ebp, %xmm0
movss %xmm0, 0x14(%rsp)
subss 0x8(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtss2sd %xmm0, %xmm1
mulss (%rbx,%r14,4), %xmm0
cvtss2sd %xmm0, %xmm0
movsd 0x3d28(%rip), %xmm2     # 0x6a58
subsd %xmm1, %xmm2
movss 0x4(%rbx,%r14,4), %xmm3
movss %xmm3, 0x10(%rsp)
cvtss2sd %xmm3, %xmm3
movsd %xmm3, 0x18(%rsp)
mulsd %xmm3, %xmm2
addsd %xmm0, %xmm2
mulsd %xmm1, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
movss %xmm0, 0x8(%rsp)
movss 0xc(%rsp), %xmm0
callq 0x1100
cvttss2si %xmm0, %eax
cmpl %eax, %ebp
jge 0x2db8
leal -0x1(%rax), %ecx
movss 0x8(%rsp), %xmm3
movss 0x10(%rsp), %xmm1
movss 0x8(%rbx,%r14,4), %xmm0
addss %xmm0, %xmm1
addss %xmm1, %xmm3
incq %r14
movaps %xmm0, %xmm1
cmpl %r14d, %ecx
jne 0x2d86
xorps %xmm1, %xmm1
cvtsi2ss %eax, %xmm1
movslq %eax, %r14
cvtss2sd (%rbx,%r14,4), %xmm4
movss 0xc(%rsp), %xmm0
jmp 0x2dd3
incq %r14
movss 0xc(%rsp), %xmm0
movss 0x8(%rsp), %xmm3
movss 0x14(%rsp), %xmm1
movsd 0x18(%rsp), %xmm4
subss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
mulss -0x4(%rbx,%r14,4), %xmm1
cvtss2sd %xmm1, %xmm1
movsd 0x3c67(%rip), %xmm2     # 0x6a58
subsd %xmm0, %xmm2
mulsd %xmm4, %xmm2
addsd %xmm1, %xmm2
xorps %xmm1, %xmm1
cvtss2sd %xmm3, %xmm1
mulsd %xmm0, %xmm2
subsd %xmm2, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
mulss 0x3c2d(%rip), %xmm0     # 0x6a48
addq $0x20, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: acc
float acc(float *data, int n, float t1, float t2, int half) {
  int i;
  float am1, am2, amc;
  int it1 = floor(t1-half);
  int it2 = floor(t2-half);
  int len = 2*half;
  if ( half<1 || it2<it1 || it1<0 || it2+len>n-1 ) return 0.;
  for(am1=0.,am2=0.,amc=0.,i=0; i<len; i++) {
    am1 += data[it1+i]*data[it1+i];
    am2 += data[it2+i]*data[it2+i];
    amc += data[it1+i]*data[it2+i];
  }
  return amc/sqrt(am1*am2);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebx
movss %xmm1, (%rsp)
movl %esi, %ebp
movq %rdi, %r14
xorps %xmm1, %xmm1
cvtsi2ss %edx, %xmm1
movss %xmm1, 0xc(%rsp)
subss %xmm1, %xmm0
callq 0x11d0
movss %xmm0, 0x8(%rsp)
movss (%rsp), %xmm0
subss 0xc(%rsp), %xmm0
callq 0x11d0
movaps %xmm0, %xmm1
xorps %xmm0, %xmm0
testl %ebx, %ebx
jle 0x2f26
cvttss2si 0x8(%rsp), %ecx
cvttss2si %xmm1, %eax
addl %ebx, %ebx
cmpl %ecx, %eax
setge %dl
testl %ecx, %ecx
setns %sil
andb %dl, %sil
leal (%rbx,%rax), %edx
cmpl %ebp, %edx
setl %dl
andb %sil, %dl
cmpb $0x1, %dl
jne 0x2f26
movl %ecx, %ecx
movslq %eax, %rdx
cmpl $0x2, %ebx
movl $0x1, %eax
cmovgel %ebx, %eax
leaq (%r14,%rcx,4), %rcx
leaq (%r14,%rdx,4), %rdx
xorps %xmm0, %xmm0
xorps %xmm1, %xmm1
xorl %esi, %esi
movss (%rcx,%rsi,4), %xmm2
movaps %xmm2, %xmm3
mulss %xmm2, %xmm3
addss %xmm3, %xmm1
movss (%rdx,%rsi,4), %xmm3
unpcklps %xmm3, %xmm2            # xmm2 = xmm2[0],xmm3[0],xmm2[1],xmm3[1]
shufps $0x0, %xmm3, %xmm3      # xmm3 = xmm3[0,0,0,0]
mulps %xmm2, %xmm3
addps %xmm3, %xmm0
incq %rsi
cmpq %rsi, %rax
jne 0x2ec0
xorps %xmm2, %xmm2
cvtss2sd %xmm0, %xmm2
shufps $0x55, %xmm0, %xmm0     # xmm0 = xmm0[1,1,1,1]
mulss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
xorps %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jb 0x2f0c
sqrtsd %xmm0, %xmm0
jmp 0x2f1b
movsd %xmm2, (%rsp)
callq 0x1220
movsd (%rsp), %xmm2
divsd %xmm0, %xmm2
xorps %xmm0, %xmm0
cvtsd2ss %xmm2, %xmm0
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: cumsum
void cumsum(float *a, int n, float dt) {
  int i;
  float u;
  for(u=0,i=0;i<n;i++) {
     u+=a[i]*dt;
     a[i] = u;
  }
}

// Assembly:
testl %esi, %esi
jle 0x2f54
movl %esi, %eax
xorps %xmm1, %xmm1
xorl %ecx, %ecx
movss (%rdi,%rcx,4), %xmm2
mulss %xmm0, %xmm2
addss %xmm2, %xmm1
movss %xmm1, (%rdi,%rcx,4)
incq %rcx
cmpq %rcx, %rax
jne 0x2f3a
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: maver
void maver(float *a, int n, int m) {
  int i, j, m2;
  float aver, c, *b;
  m2 = (m-1)/2;
  c = 1./m;
  b = (float *) calloc(n+m-1, sizeof(float));
  memcpy(b+m2, a, n*sizeof(float));
  for(aver=0.,j=m2;j<m;j++) {
     aver += c*b[j];
  }
  a[0] = aver;
  for(i=1;i<n;i++,j++) {
     aver += c*(b[j]-b[j-m]);
     a[i] = aver;
  }
  free(b);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %r12d
movl %esi, %r15d
movq %rdi, %rbx
leal -0x1(%r12), %eax
shrl $0x1f, %eax
leal (%r12,%rax), %ebp
decl %ebp
sarl %ebp
cvtsi2sd %edx, %xmm0
movsd 0x3143(%rip), %xmm1     # 0x60c8
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, 0x4(%rsp)
leal (%r12,%r15), %eax
decl %eax
movslq %eax, %rdi
movl $0x4, %esi
callq 0x1110
movq %rax, %r14
movslq %ebp, %r13
leaq (%rax,%r13,4), %rdi
movslq %r15d, %rdx
shlq $0x2, %rdx
movq %rbx, %rsi
callq 0x1130
movss 0x4(%rsp), %xmm2
xorps %xmm0, %xmm0
movslq %r12d, %rax
cmpl %r12d, %r13d
jge 0x2fec
movss (%r14,%r13,4), %xmm1
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
incq %r13
cmpq %r13, %rax
jne 0x2fd3
movl %r12d, %ebp
movss %xmm0, (%rbx)
cmpl $0x2, %r15d
jl 0x302f
movslq %ebp, %rdx
movl %r15d, %ecx
leaq (%r14,%rdx,4), %rdx
shlq $0x2, %rax
movq %rdx, %rsi
subq %rax, %rsi
decq %rcx
xorl %eax, %eax
movss (%rdx,%rax,4), %xmm1
subss (%rsi,%rax,4), %xmm1
mulss %xmm2, %xmm1
addss %xmm1, %xmm0
movss %xmm0, 0x4(%rbx,%rax,4)
incq %rax
cmpq %rax, %rcx
jne 0x300f
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: diffrt
void diffrt(float *a, int n, float dt) {
  int i;
  for(i=n-1;i>0;i--) {
     a[i] = (a[i]-a[i-1])/dt;
  }
  a[0]=0.;
}

// Assembly:
cmpl $0x2, %esi
jl 0x306e
movl %esi, %eax
incq %rax
movss -0x8(%rdi,%rax,4), %xmm1
subss -0xc(%rdi,%rax,4), %xmm1
divss %xmm0, %xmm1
movss %xmm1, -0x8(%rdi,%rax,4)
decq %rax
cmpq $0x2, %rax
ja 0x304f
movl $0x0, (%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: revers
void revers(float *a, int n) {
   int i, j;
   float dum;
   for(i=0,j=n-1;i<j;i++,j--) {
      dum  = a[i];
      a[i] = a[j];
      a[j] = dum;
   }
}

// Assembly:
cmpl $0x2, %esi
jl 0x30c6
movl %esi, %eax
addq $-0x2, %rax
xorl %ecx, %ecx
movss (%rdi,%rcx,4), %xmm0
movss 0x4(%rdi,%rax,4), %xmm1
movss %xmm1, (%rdi,%rcx,4)
movss %xmm0, 0x4(%rdi,%rax,4)
incq %rcx
leaq -0x1(%rax), %rdx
cmpq %rax, %rcx
movq %rdx, %rax
jl 0x30a1
retq
// File: /workspace/github_c_makefile_star2_O3/YunyiQian[P]multitel3/fft.c
// Function: coswndw
float	*coswndw(int n, float w) {
     int   j, n1;
     float t, dt, *wndw;
     if ( (wndw=(float *)malloc(n*sizeof(float))) == NULL ) return NULL;
     for(j=0;j<n;j++) wndw[j]=1.;
     if (w>0.5) w=0.5;
     n1 = rint(w*n); if (n1<1) n1=1;
     t = 0.;
     dt = PI/n1;
     for(j=0;j<n1;j++,t+=dt) {
        wndw[j]=wndw[n-j-1]=0.5*(1-cos(t));
     }
     return wndw;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movd %xmm0, (%rsp)
movl %edi, %ebx
movslq %edi, %rdi
shlq $0x2, %rdi
callq 0x1160
movq %rax, %r14
testq %rax, %rax
je 0x329c
testl %ebx, %ebx
jle 0x31f4
movl %ebx, %ecx
leal 0x3(%rbx), %eax
decq %rcx
movq %rcx, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shrl $0x2, %eax
shlq $0x4, %rax
movdqa 0x2f49(%rip), %xmm1     # 0x6060
movdqa 0x2f11(%rip), %xmm2     # 0x6030
xorl %ecx, %ecx
movdqa 0x2ee7(%rip), %xmm3     # 0x6010
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movdqa 0x38e7(%rip), %xmm5     # 0x6a20
movdqa %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %edx
notl %edx
testb $0x1, %dl
je 0x3175
movl $0x3f800000, (%r14,%rcx) # imm = 0x3F800000
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x318c
movl $0x3f800000, 0x4(%r14,%rcx) # imm = 0x3F800000
movdqa %xmm1, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
pxor %xmm4, %xmm6
pextrw $0x0, %xmm6, %edx
testb $0x1, %dl
je 0x31cc
movl $0x3f800000, 0x8(%r14,%rcx) # imm = 0x3F800000
pextrw $0x4, %xmm6, %edx
testb $0x1, %dl
je 0x31df
movl $0x3f800000, 0xc(%r14,%rcx) # imm = 0x3F800000
paddq %xmm5, %xmm2
paddq %xmm5, %xmm1
addq $0x10, %rcx
cmpq %rcx, %rax
jne 0x3139
movss 0x384c(%rip), %xmm1     # 0x6a48
minss (%rsp), %xmm1
xorps %xmm0, %xmm0
cvtsi2ss %ebx, %xmm0
mulss %xmm1, %xmm0
callq 0x1170
cvttss2si %xmm0, %eax
cmpl $0x2, %eax
movl $0x1, %r15d
cmovgel %eax, %r15d
xorps %xmm0, %xmm0
cvtsi2sd %r15d, %xmm0
movsd 0x381e(%rip), %xmm1     # 0x6a50
divsd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movss %xmm0, 0x4(%rsp)
decl %ebx
xorps %xmm0, %xmm0
xorl %r12d, %r12d
movss %xmm0, (%rsp)
xorps %xmm0, %xmm0
cvtss2sd (%rsp), %xmm0
callq 0x10e0
movsd 0x2e63(%rip), %xmm1     # 0x60c8
subsd %xmm0, %xmm1
mulsd 0x37ef(%rip), %xmm1     # 0x6a60
xorps %xmm0, %xmm0
cvtsd2ss %xmm1, %xmm0
movslq %ebx, %rbx
movss %xmm0, (%r14,%rbx,4)
movss %xmm0, (%r14,%r12,4)
movss (%rsp), %xmm0
incq %r12
addss 0x4(%rsp), %xmm0
decl %ebx
cmpq %r12, %r15
jne 0x324b
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq