LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: ts_crypt2
static
int ts_crypt2(STRING* self, char* const salt, char** dest)
{
    if (self->empty(self))
        return (status = ESTRISEMPTY);
    if (salt == NULL)
        return (status = EARGISNULPTR);

    if ((*dest = crypt(self->c_str(self), salt)) == NULL)
        return errno;

    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
callq *0xa0(%rdi)
testl %eax, %eax
je 0x9a3c
leaq 0x7845(%rip), %rax      # 0x11270
movl $0xfffffffc, (%rax)     # imm = 0xFFFFFFFC
movl $0xfffffffc, %eax       # imm = 0xFFFFFFFC
popq %rbx
popq %r14
popq %r15
retq
testq %r14, %r14
je 0x9a6c
movq %r15, %rdi
callq *0xc8(%r15)
movq %rax, %rdi
movq %r14, %rsi
callq 0x2190
movq %rax, %rcx
movq %rax, (%rbx)
xorl %eax, %eax
testq %rcx, %rcx
jne 0x9a36
callq 0x2390
movl (%rax), %eax
jmp 0x9a36
leaq 0x77fd(%rip), %rax      # 0x11270
movl $0xfffffffb, (%rax)     # imm = 0xFFFFFFFB
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x9a36
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: clear
static
void clear(STRING** self)
{
    if ((*self)->string != NULL) {
        free((*self)->string);
        (*self)->string = NULL;
    }
    (*self)->length     = 0;
    (*self)->alloc_size = 0;

    return;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rax
movq 0x10(%rax), %rdi
testq %rdi, %rdi
je 0x9aa0
callq 0x21a0
movq (%rbx), %rax
movq $0x0, 0x10(%rax)
movq (%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: release
static
void release(STRING* self)
{
    if (self != NULL) {
        if (self->string != NULL) {
            free(self->string);
            self->string = NULL;
        }
        free(self);
        self = NULL;
    }
            
    return;
}

// Assembly:
testq %rdi, %rdi
je 0x9ad3
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
je 0x9aca
callq 0x21a0
movq $0x0, 0x10(%rbx)
movq %rbx, %rdi
popq %rbx
jmp 0x21a0
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: mbstrlen
static
size_t mbstrlen(char* const str)
{
    int     ch      = 0;

    size_t  c       = 0;

    char*   p       = NULL;

    if (str == NULL) {
        status = EARGISNULPTR; goto ERR;
    } else {
        p = str;
    }
    setlocale(LC_CTYPE, T_STRING_LOCALE_VALUE);
    while (*p != '\0') {
        if ((ch = mblen(p, MB_CUR_MAX)) < 0) {
#ifdef  LIBRARY_VERBOSE
            print_error();
/* LIBRARY_VERBOSE */
#endif
            status = EINVALIDCHAR; goto ERR;
        } else {
            p += ch;
            c++;
        }
    }

    return c;

ERR:
    return 0;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x9b1e
movq %rdi, %r14
leaq 0x28d9(%rip), %rsi      # 0xc3c0
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x2420
cmpb $0x0, (%r14)
je 0x9b35
xorl %ebx, %ebx
callq 0x21d0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2310
testl %eax, %eax
js 0x9b25
movl %eax, %eax
incq %rbx
cmpb $0x0, (%r14,%rax)
leaq (%r14,%rax), %r14
jne 0x9af8
jmp 0x9b35
movl $0xfffffffb, %eax       # imm = 0xFFFFFFFB
jmp 0x9b2a
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
leaq 0x773f(%rip), %rcx      # 0x11270
movl %eax, (%rcx)
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: fgetline
int
fgetline(FILE* fp, STRING** s)
{
    int     c       = 0;

    size_t  length  = 0,
            bufsiz  = T_STRING_DEFAULT_ALLOC_SIZE + 1;

    char*   buf     = NULL;

    if ((buf = (char*)
                malloc(sizeof(char) * bufsiz)) == NULL) {
#ifdef  LIBRARY_VERBOSE
        print_error();
/* LIBRARY_VERBOSE */
#endif
        status = EMEMORYALLOC; goto ERR;
    } else {
        memset(buf, '\0', bufsiz);
    }
    while ((c = fgetc(fp)) != EOF) {
        if (length >= (bufsiz - 1)) {
            bufsiz += T_STRING_DEFAULT_ALLOC_SIZE;
            if ((buf = (char*)
                        realloc(buf, sizeof(char) * bufsiz)) == NULL) {
#ifdef  LIBRARY_VERBOSE
                print_error();
/* LIBRARY_VERBOSE */
#endif
                status = EMEMORYALLOC; goto ERR;
            } else {
                memset(buf + length, '\0', bufsiz - length);
            }
        }
        *(buf + length) = c;
        length++;
        if (c == '\n') {
            *(buf + length) = '\0';
            break;
        }
    }
    if (!length && c == EOF) {
        status = EOF; goto IS_EOF;
    }
    if ((*s = new_string(buf)) == NULL)
        goto ERR;
    if (buf != NULL) {
        free(buf);
        buf = NULL;
    }

    return 0;

ERR:
IS_EOF:
    if (buf != NULL) {
        free(buf);
        buf = NULL;
    }

    return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movq %rdi, %r13
movl $0x401, %r12d           # imm = 0x401
movl $0x401, %edi            # imm = 0x401
callq 0x20e0
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
testq %rax, %rax
je 0x9c30
movq %rax, %rbx
movq %r14, 0x8(%rsp)
movl $0x401, %edx            # imm = 0x401
movq %rax, %rdi
xorl %esi, %esi
callq 0x2050
movl $0x400, %r15d           # imm = 0x400
xorl %r14d, %r14d
movq %r13, 0x10(%rsp)
movq %r13, %rdi
callq 0x2210
movl %eax, %ebp
cmpl $-0x1, %eax
je 0x9bfa
leaq -0x1(%r12), %rax
cmpq %rax, %r14
jb 0x9be6
leaq 0x400(%r12), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2410
testq %rax, %rax
je 0x9c34
movq %rax, %rbx
movq %rax, %rdi
addq %r14, %rdi
addq %r15, %r12
xorl %esi, %esi
movq %r12, %rdx
callq 0x2050
movq %r13, %r12
movq 0x10(%rsp), %r13
movb %bpl, (%rbx,%r14)
incq %r14
decq %r15
cmpl $0xa, %ebp
jne 0x9b97
movb $0x0, (%rbx,%r14)
cmpl $-0x1, %ebp
sete %al
testq %r14, %r14
sete %cl
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
testb %cl, %al
jne 0x9c3b
movq %rbx, %rdi
callq 0x65a4
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x9c44
movq %rbx, %rdi
callq 0x21a0
xorl %eax, %eax
jmp 0x9c5a
xorl %ebx, %ebx
jmp 0x9c3b
xorl %ebx, %ebx
movl $0xfffffffd, %edx       # imm = 0xFFFFFFFD
leaq 0x762e(%rip), %rax      # 0x11270
movl %edx, (%rax)
testq %rbx, %rbx
je 0x9c51
movq %rbx, %rdi
callq 0x21a0
leaq 0x7618(%rip), %rax      # 0x11270
movl (%rax), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: release_char_arr
void
release_char_arr(STRING* self, size_t n, char** arr)
{
    size_t  y   = 0;

    if (self != NULL)
        n = self->mblen(self);

    if (arr != NULL) {
        while (y < n) {
            if (*(arr + y) != NULL) {
                free(*(arr + y));
                *(arr + y) = NULL;
            }
            y++;
        }
        free(arr);
        arr = NULL;
    }

    return;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
testq %rdi, %rdi
je 0x9cbb
callq *0x20(%rdi)
movq %rax, %r14
testq %rbx, %rbx
je 0x9cf3
testq %r14, %r14
je 0x9ce6
xorl %r15d, %r15d
movq (%rbx,%r15,8), %rdi
testq %rdi, %rdi
je 0x9cde
callq 0x21a0
movq $0x0, (%rbx,%r15,8)
incq %r15
cmpq %r15, %r14
jne 0x9cc8
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: reallocate_memory
static
int reallocate_memory(STRING** self, size_t size)
{
    if (((*self)->length + size) < (*self)->alloc_size)
        return 0;

    size_t  old_alloc_size  = (*self)->alloc_size;

    while ((*self)->alloc_size < ((*self)->length + size))
        (*self)->alloc_size += T_STRING_DEFAULT_ALLOC_SIZE;

    if (((*self)->string = (char*)
                realloc((*self)->string,
                    sizeof(char) * (*self)->alloc_size)) == NULL) {
#ifdef  LIBRARY_VERBOSE
        print_error();
/* LIBRARY_VERBOSE */
#endif
        return (status = EMEMORYALLOC);
    } else {
        memset((*self)->string + old_alloc_size,
                '\0', (*self)->alloc_size - old_alloc_size);
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rsi, %rax
movq (%rdi), %rcx
addq 0x8(%rcx), %rax
movq (%rcx), %r14
xorl %ebp, %ebp
cmpq %r14, %rax
jb 0x9d90
movq %rdi, %rbx
movq (%rcx), %rsi
cmpq %rax, %rsi
jae 0x9d4e
leaq 0x400(%rsi), %rdx
cmpq %rdx, %rax
cmovaq %rax, %rdx
movq %rsi, %rax
notq %rax
addq %rdx, %rax
andq $-0x400, %rax           # imm = 0xFC00
addq %rax, %rsi
addq $0x400, %rsi            # imm = 0x400
movq %rsi, (%rcx)
movq 0x10(%rcx), %rdi
callq 0x2410
movq (%rbx), %rcx
movq %rax, 0x10(%rcx)
testq %rax, %rax
je 0x9d7e
movq (%rbx), %rax
movq 0x10(%rax), %rdi
addq %r14, %rdi
movq (%rax), %rdx
subq %r14, %rdx
xorl %ebp, %ebp
xorl %esi, %esi
callq 0x2050
jmp 0x9d90
leaq 0x74eb(%rip), %rax      # 0x11270
movl $0xfffffffd, (%rax)     # imm = 0xFFFFFFFD
movl $0xfffffffd, %ebp       # imm = 0xFFFFFFFD
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: mbstrtok
static
char* mbstrtok(char* str, char* delim)
{
    static  char*   ptr = NULL;
            char*   bdy = NULL;

    if (!str)
        str = ptr;

    if (!str)
        return NULL;

    if ((bdy = strstr(str, delim)) != NULL) {
        *bdy = '\0';
        ptr = bdy + strlen(delim);
    } else {
        ptr = NULL;
    }

    return str;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
testq %rdi, %rdi
jne 0x9dae
movq 0x74ca(%rip), %rbx      # 0x11278
testq %rbx, %rbx
je 0x9dd6
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2290
testq %rax, %rax
je 0x9dda
movq %rax, %r15
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x21b0
addq %r15, %rax
jmp 0x9ddc
xorl %ebx, %ebx
jmp 0x9de3
xorl %eax, %eax
movq %rax, 0x7495(%rip)      # 0x11278
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: count_mb_witdh
static
int count_mb_witdh(STRING* self, size_t* s)
{
    int         ch  = 0;

    char*       p   = self->c_str(self);

    gunichar*   cp  = NULL;

    setlocale(LC_CTYPE, T_STRING_LOCALE_VALUE);
    while (*p != '\0') {
        if ((ch = mblen(p, MB_CUR_MAX)) < 0) {
#ifdef  LIBRARY_VERBOSE
            print_error();
/* LIBRARY_VERBOSE */
#endif
            return (status = EINVALIDCHAR);
        }
        if (ch > 1) {
            cp = g_utf8_to_ucs4_fast(p, sizeof(*p), NULL);
            if ((*cp >= 0xff65 && *cp <= 0xff9f))
                (*s)++;
            else
                (*s) += 2;
            g_free(cp);
        } else {
            (*s)++;
        }
        p += ch;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq *0xc8(%rdi)
movq %rax, %r14
leaq 0x25ba(%rip), %rsi      # 0xc3c0
xorl %ebp, %ebp
xorl %edi, %edi
callq 0x2420
cmpb $0x0, (%r14)
je 0x9e8b
movl $0xffff009b, %r15d      # imm = 0xFFFF009B
callq 0x21d0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2310
testl %eax, %eax
js 0x9e79
movl %eax, %ebp
cmpl $0x2, %eax
jl 0x9e65
movl $0x1, %esi
movq %r14, %rdi
xorl %edx, %edx
callq 0x2320
movl (%rax), %ecx
addl %r15d, %ecx
cmpl $0x3b, %ecx
movq (%rbx), %rcx
sbbq $0x0, %rcx
addq $0x2, %rcx
movq %rcx, (%rbx)
movq %rax, %rdi
callq 0x2030
jmp 0x9e68
incq (%rbx)
movl %ebp, %eax
cmpb $0x0, (%r14,%rax)
leaq (%r14,%rax), %r14
jne 0x9e1b
xorl %ebp, %ebp
jmp 0x9e8b
leaq 0x73f0(%rip), %rax      # 0x11270
movl $0xfffffffe, (%rax)     # imm = 0xFFFFFFFE
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/uri.c
// Function: encode_uri
int encode_uri(char* const src, char** dest)
{
    int     status  = 0;

    size_t  bufsiz  = DEFAULT_BUFSIZE,
            current = 0;

    char*   p       = src;

    if ((*dest = (char*)
                malloc(sizeof(char) * bufsiz)) == NULL) {
        status = -1; goto ERR;
    } else {
        memset(*dest, '\0', bufsiz);
    }

    while (*p != '\0') {
        if ((current + 3) >= bufsiz) {
            bufsiz += DEFAULT_BUFSIZE;
            if ((*dest = (char*)
                        realloc(*dest, sizeof(char) * bufsiz)) == NULL) {
                status = -2; goto ERR;
            } else {
                memset(*dest + current, '\0', DEFAULT_BUFSIZE);
            }
        }
        if (
                (*p >= 0x20 && *p <= 0x39)  ||  /* [0-9] */
                (*p >= 0x41 && *p <= 0x5A)  ||  /* [A-Z] */
                (*p >= 0x61 && *p <= 0x7A)  ||  /* [a-z] */
                (*p == 0x2E)                ||  /* . */
                (*p == 0x2F)                ||  /* / */
                (*p == 0x3A)                    /* : */
           ) {
            *(*(dest) + current) = *p;
            current++;
        } else {
            current += sprintf(*dest + current, "%%%02X",
                    *p & 0x000000FF);
        }
        p++;
    }

    return 0;

ERR:
    switch (status) {
        case    -1:
        case    -2:
            fprintf(stderr, "%s\n",
                    strerror(errno));
            break;
    }

    return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x20e0
movq %rax, (%rbx)
testq %rax, %rax
je 0x9f99
xorl %ebp, %ebp
movl $0x400, %r15d           # imm = 0x400
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
xorl %esi, %esi
callq 0x2050
cmpb $0x0, (%r14)
je 0x9f88
incq %r14
leaq 0x223a(%rip), %r12      # 0xc124
movabsq $0x400c00000000000, %r13 # imm = 0x400C00000000000
xorl %ebp, %ebp
leaq 0x3(%rbp), %rax
cmpq %r15, %rax
jb 0x9f2f
addq $0x400, %r15            # imm = 0x400
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x2410
movq %rax, (%rbx)
testq %rax, %rax
je 0x9fa0
addq %rbp, %rax
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
xorl %esi, %esi
callq 0x2050
movb -0x1(%r14), %al
leal -0x20(%rax), %ecx
cmpb $0x1a, %cl
jb 0x9f58
movl %eax, %ecx
andb $-0x21, %cl
addb $-0x41, %cl
cmpb $0x1a, %cl
jb 0x9f58
movzbl %al, %edx
cmpl $0x3a, %edx
ja 0x9f72
movl %edx, %ecx
btq %rcx, %r13
jae 0x9f72
movq (%rbx), %rcx
movb %al, (%rcx,%rbp)
movl $0x1, %eax
addq %rax, %rbp
cmpb $0x0, (%r14)
leaq 0x1(%r14), %r14
jne 0x9ef6
jmp 0x9f86
movq (%rbx), %rdi
addq %rbp, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x2200
cltq
jmp 0x9f63
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x9fa5
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
callq 0x2677
jmp 0x9f88
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/libbenly/src/uri.c
// Function: decode_uri
int decode_uri(char* const src, char** dest)
{
    int     status  = 0;

    size_t  bufsiz  = DEFAULT_BUFSIZE,
            current = 0;

    char*   p       = src;

    if ((*dest = (char*)
                malloc(sizeof(char) * bufsiz)) == NULL) {
        status = -1; goto ERR;
    } else {
        memset(*dest, '\0', bufsiz);
    }

    while (*p != '\0') {
        if ((current + 2) >= bufsiz) {
            bufsiz += DEFAULT_BUFSIZE;
            if ((*dest = (char*)
                        realloc(*dest, sizeof(char) * bufsiz)) == NULL) {
                status = -2; goto ERR;
            } else {
                memset(*dest + current, '\0', DEFAULT_BUFSIZE);
            }
        }
        if (*p == '%') {
            p++;
            sscanf(p, "%2X", *(dest) + current);
            p += 2;
        } else {
            *(*(dest) + current) = *p;
            p++;
        }
        current++;
    }

    return 0;

ERR:
    switch (status) {
        case    -1:
        case    -2:
            fprintf(stderr, "%s\n",
                    strerror(errno));
            break;
    }

    return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl $0x400, %edi            # imm = 0x400
callq 0x20e0
movq %rax, (%rbx)
testq %rax, %rax
je 0xa07e
xorl %ebp, %ebp
movl $0x400, %r15d           # imm = 0x400
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
xorl %esi, %esi
callq 0x2050
cmpb $0x0, (%r14)
je 0xa06d
leaq 0x2134(%rip), %r12      # 0xc12b
xorl %r13d, %r13d
leaq 0x2(%r13), %rax
cmpq %r15, %rax
jb 0xa02f
addq $0x400, %r15            # imm = 0x400
movq (%rbx), %rdi
movq %r15, %rsi
callq 0x2410
movq %rax, (%rbx)
testq %rax, %rax
je 0xa085
addq %r13, %rax
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
xorl %esi, %esi
callq 0x2050
movb (%r14), %al
cmpb $0x25, %al
jne 0xa051
leaq 0x1(%r14), %rdi
movq (%rbx), %rdx
addq %r13, %rdx
movq %r12, %rsi
xorl %eax, %eax
callq 0x2090
movl $0x3, %eax
jmp 0xa05d
movq (%rbx), %rcx
movb %al, (%rcx,%r13)
movl $0x1, %eax
incq %r13
cmpb $0x0, (%r14,%rax)
leaq (%r14,%rax), %r14
jne 0x9ffa
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0xa08a
movl $0xfffffffe, %ebp       # imm = 0xFFFFFFFE
callq 0x26a3
jmp 0xa06d
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/cow.c
// Function: read_cow
static
int read_cow(COW** cow)
{
    int     status  = 0;

    if ((*cow)->fp == NULL) {
        status = -1; goto ERR;
    }
    if (((*cow)->lines =
                load_file_to_array(&(*cow)->data, TH_LINES, TH_LENGTH, (*cow)->fp)) < 0) {
        status = -2; goto ERR;
    }
    fclose((*cow)->fp);

    return 0;

ERR:
    switch (status) {
        case    -1:
            fprintf(stdout, "%s: read_cowfile(): fp is NULL\n",
                    PROGNAME);
            break;
        case    -2:
            fprintf(stderr, "%s: read_cowfile(): load_file_to_array(): %s\n",
                    PROGNAME, strerror(errno));
        default:
            if ((*cow)->fp != NULL) {
                fclose((*cow)->fp);
                (*cow)->fp = NULL;
            }
    }

    return status;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %r14
movq (%rdi), %rdi
movq (%rdi), %rcx
testq %rcx, %rcx
je 0xa7c3
addq $0x8, %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x200, %edx            # imm = 0x200
callq 0x3ec5
movq (%r14), %rcx
movl %eax, 0x10(%rcx)
testl %eax, %eax
js 0xa7ca
movq (%rcx), %rdi
callq 0x23d0
xorl %ebx, %ebx
jmp 0xa7f3
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0xa7cf
movl $0xfffffffe, %ebx       # imm = 0xFFFFFFFE
testb $0x1, %bl
je 0xa7ff
movq 0x6815(%rip), %rax      # 0x10ff0
movq (%rax), %rdi
leaq 0x1b3a(%rip), %rsi      # 0xc31f
leaq 0x1a4d(%rip), %rdx      # 0xc239
xorl %eax, %eax
callq 0x2440
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
leaq 0xc(%rsp), %r15
movq %r14, %rdi
movl %ebx, %esi
movq %r15, %rdx
callq 0x286c
movl (%r15), %ebx
jmp 0xa7f3
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/cow.c
// Function: release_cow
static
void release_cow(COW* cow)
{
    int     i   = 0,
            j   = 0;

    if (cow != NULL) {
        if (cow->data != NULL) {
            i = 0;
            j = cow->lines - 1;
            while (i <= j) {
                if (*(cow->data + i) != NULL) {
                    free(*(cow->data + i));
                    *(cow->data + i) = NULL;
                }
                if (*(cow->data + j) != NULL) {
                    free(*(cow->data + j));
                    *(cow->data + j) = NULL;
                }
                i++;
                j--;
            }
            free(cow->data);
            cow->data = NULL;
        }
        free(cow);
        cow = NULL;
    }

    return;
}

// Assembly:
testq %rdi, %rdi
je 0xac26
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0xac19
movslq 0x10(%rbx), %r14
testq %r14, %r14
jle 0xac08
decq %r14
xorl %r15d, %r15d
movq 0x8(%rbx), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0xabdb
callq 0x21a0
movq 0x8(%rbx), %rax
movq $0x0, (%rax,%r15,8)
movq 0x8(%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0xabf9
callq 0x21a0
movq 0x8(%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r15
leaq -0x1(%r14), %rax
cmpq %r14, %r15
movq %rax, %r14
jl 0xabbd
movq 0x8(%rbx), %rdi
callq 0x21a0
movq $0x0, 0x8(%rbx)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
retq
nop
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/list.c
// Function: list_cowfiles
int list_cowfiles(void)
{
    int     i       = 0,
            j       = 0,
            entry   = 0;

    char*   env     = NULL;

    env_t*  envt    = NULL;

    struct  dirent**  list;

    /* catenate file path */
    if ((env = getenv("COWPATH")) == NULL)
        env = COWPATH;

    if (split_env(env, &envt) < 0) {
        fprintf(stderr, "%s: list_cowfiles(): split_env() failure\n",
                PROGNAME);

        exit(8);
    }

    /* get file entry and sort */
    do {
        if ((entry = scandir(*(envt->envs + i),
                        &list, selects_cowfiles, alphasort)) != -1) {
            if (i > 0)
                puts("");
            fprintf(stdout, "%s:\n",
                    *(envt->envs + i));
            j = 0;
            while (j < entry) {
                fprintf(stdout, "%s\n",
                        list[j]->d_name);
                free(*(list + j));
                j++;
            }
            free(list);
        }
        i++;
    } while (i < envt->envc);
    release_env_t(envt);

    exit(0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
leaq 0x10(%rsp), %rbx
movq $0x0, (%rbx)
leaq 0x159d(%rip), %rdi      # 0xc28e
callq 0x2380
testq %rax, %rax
leaq 0x1596(%rip), %rdi      # 0xc296
cmovneq %rax, %rdi
movq %rbx, %rsi
callq 0x3cec
testl %eax, %eax
jns 0xad39
movq 0x62c9(%rip), %rax      # 0x10fe0
movq (%rax), %rdi
leaq 0x1ac7(%rip), %rsi      # 0xc7e8
leaq 0x1511(%rip), %rdx      # 0xc239
xorl %eax, %eax
callq 0x2440
movl $0x8, %edi
callq 0x20c0
leaq 0x8(%rsp), %r15
movq 0x62ab(%rip), %r12      # 0x10ff0
leaq 0x1b7f(%rip), %r13      # 0xc8cb
xorl %ebx, %ebx
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%rbx,8), %rdi
movq %r15, %rsi
leaq 0xa5(%rip), %rdx        # 0xae0a
movq 0x626c(%rip), %rcx      # 0x10fd8
callq 0x2140
cmpl $-0x1, %eax
je 0xadea
movl %eax, %ebp
testq %rbx, %rbx
je 0xad87
movl $0xa, %edi
callq 0x20d0
movq (%r12), %rdi
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%rbx,8), %rdx
leaq 0x1a73(%rip), %rsi      # 0xc812
xorl %eax, %eax
callq 0x2440
testl %ebp, %ebp
jle 0xade0
movl %ebp, %ebp
xorl %r14d, %r14d
movq (%r12), %rdi
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdx
addq $0x13, %rdx
movq %r13, %rsi
xorl %eax, %eax
callq 0x2440
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdi
callq 0x21a0
incq %r14
cmpq %r14, %rbp
jne 0xadaf
movq 0x8(%rsp), %rdi
callq 0x21a0
incq %rbx
movq 0x10(%rsp), %rdi
movslq (%rdi), %rax
cmpq %rax, %rbx
jl 0xad4e
callq 0x3e05
xorl %edi, %edi
callq 0x20c0
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/msg.c
// Function: recursive_msg
static
int recursive_msg(MSG** msg, int n)
{
    int     status  = 0,
            fd[2]   = {0};

    while (n > 1) {
        if (pipe(fd) < 0) {
            status = -1; goto ERR;
        }
        switch (fork()) {
            case    -1:
                status = -2; goto ERR;
            case    0:
                close(fd[0]);
                dup2(fd[1], STDOUT_FILENO);
                close(fd[1]);
                (*msg)->print(*msg);
                (*msg)->release(*msg);
                exit(0);
            default:
                close(fd[1]);
                if (read_recursive_msg(&(*msg), fd[0]) < 0) {
                    status = -3; goto ERR;
                }
                close(fd[0]);
        }
        wait(&status);
        n--;
    }

    return 0;

ERR:
    switch (status) {
        case    -1:
            fprintf(stderr, "%s: pipe(): %s\n",
                    PROGNAME, strerror(errno));
            break;
        case    -2:
            fprintf(stderr, "%s: fork(): %s\n",
                    PROGNAME, strerror(errno));
            break;
        case    -3:
            break;
    }

    return status;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl $0x0, 0xc(%rsp)
movq $0x0, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x2, %esi
jl 0xb37b
movl %esi, %r14d
movq %rdi, %rbx
incl %r14d
leaq 0x10(%rsp), %r15
leaq 0x15b2(%rip), %r12      # 0xc84e
leaq 0xc(%rsp), %r13
movq %r15, %rdi
callq 0x2240
testl %eax, %eax
js 0xb357
callq 0x23f0
cmpl $-0x1, %eax
je 0xb361
testl %eax, %eax
je 0xb3bf
movl 0x14(%rsp), %edi
callq 0x2060
movl 0x10(%rsp), %ebp
movq (%rbx), %rax
movq (%rax), %rdi
testq %rdi, %rdi
je 0xb2f8
movl 0x8(%rax), %esi
callq 0x4e2d
movq (%rbx), %rax
movl $0x0, 0x8(%rax)
movq $0x0, (%rax)
movl %ebp, %edi
movq %r12, %rsi
callq 0x2220
testq %rax, %rax
je 0xb3a6
movq %rax, %rbp
movq (%rbx), %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x200, %edx            # imm = 0x200
movq %rax, %rcx
callq 0x3ec5
movq (%rbx), %rcx
movl %eax, 0x8(%rcx)
testl %eax, %eax
js 0xb3a1
movq %rbp, %rdi
callq 0x23d0
movl 0x10(%rsp), %edi
callq 0x2060
movq %r13, %rdi
callq 0x2070
decl %r14d
cmpl $0x2, %r14d
jg 0xb2a1
xorl %eax, %eax
jmp 0xb37b
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
jmp 0xb369
movl $0xfffffffe, 0xc(%rsp)  # imm = 0xFFFFFFFE
movl 0xc(%rsp), %eax
cmpl $-0x1, %eax
je 0xb393
cmpl $-0x2, %eax
je 0xb38a
movl 0xc(%rsp), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1507(%rip), %rdi      # 0xc898
jmp 0xb39a
leaq 0x14ee(%rip), %rdi      # 0xc888
callq 0x2a13
jmp 0xb377
testq %rbp, %rbp
jne 0xb3ad
callq 0x29df
jmp 0xb3b5
movq %rbp, %rdi
callq 0x2997
movl $0xfffffffd, 0xc(%rsp)  # imm = 0xFFFFFFFD
jmp 0xb369
movl 0x10(%rsp), %edi
callq 0x2060
movl 0x14(%rsp), %edi
movl $0x1, %esi
callq 0x2040
movl 0x14(%rsp), %edi
callq 0x2060
movq (%rbx), %rdi
callq *0x20(%rdi)
movq (%rbx), %rdi
callq *0x28(%rdi)
xorl %edi, %edi
callq 0x20c0
// File: /workspace/github_c_makefile_star2_O1/sasairc[P]clangsay/src/msg.c
// Function: release_msg
static
void release_msg(MSG* msg)
{
    int     i   = 0,
            j   = 0;

    if (msg != NULL) {
        if (msg->data != NULL) {
            i = 0;
            j = msg->lines - 1;
            while (i <= j) {
                if (*(msg->data + i) != NULL) {
                    free(*(msg->data + i));
                    *(msg->data + i) = NULL;
                }
                if (*(msg->data + j) != NULL) {
                    free(*(msg->data + j));
                    *(msg->data + j) = NULL;
                }
                i++;
                j--;
            }
            free(msg->data);
            msg->data = NULL;
        }
        free(msg);
        msg = NULL;
    }

    return;
}

// Assembly:
testq %rdi, %rdi
je 0xb47b
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0xb46e
movslq 0x8(%rbx), %r14
testq %r14, %r14
jle 0xb45f
decq %r14
xorl %r15d, %r15d
movq (%rbx), %rax
movq (%rax,%r15,8), %rdi
testq %rdi, %rdi
je 0xb434
callq 0x21a0
movq (%rbx), %rax
movq $0x0, (%rax,%r15,8)
movq (%rbx), %rax
movq (%rax,%r14,8), %rdi
testq %rdi, %rdi
je 0xb450
callq 0x21a0
movq (%rbx), %rax
movq $0x0, (%rax,%r14,8)
incq %r15
leaq -0x1(%r14), %rax
cmpq %r14, %r15
movq %rax, %r14
jl 0xb418
movq (%rbx), %rdi
callq 0x21a0
movq $0x0, (%rbx)
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
retq
// File: /workspace/github_c_makefile_star2_O1/sc932[P]ALE/src/synthReadGen.c
// Function: intFact
int intFact(int temp){
  if(temp > 0){
    return intFact(temp - 1);
  }else{
    return 1;
  }
}

// Assembly:
xorl %eax, %eax
movl $0x1, %edx
testl %edi, %edi
jle 0x12dd
decl %edi
testb $0x1, %al
cmovel %edx, %ecx
movb $0x1, %al
jmp 0x12ce
testb $0x1, %al
movl $0x1, %eax
cmovnel %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/sc932[P]ALE/src/synthReadGen.c
// Function: NormalVal
double NormalVal(float mu, float sigma){
  double u, v, x, y, q;
  int stop = 0;
  while(stop == 0){
    u = rand()/( RAND_MAX + 1.0 );
    v = 1.7156*(rand()/( RAND_MAX + 1.0 ) - 0.5);
    x = u - 0.449871;
    y = abs(v) + 0.386595;
    q = sqrt(x) + y*(0.19600*y-0.25472*x);
    if( q > 0.27597 && ( q > 0.27846 || sqrt(v) > -4.0*log(u)*sqrt(u))){
      stop = 1;
    }
  }
  return mu + sigma*v/u;
}

// Assembly:
subq $0x28, %rsp
movss %xmm1, 0x24(%rsp)
movss %xmm0, 0x20(%rsp)
callq 0x1190
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd 0x2ba3(%rip), %xmm0     # 0x4008
mulsd %xmm0, %xmm1
movsd %xmm1, (%rsp)
callq 0x1190
movsd (%rsp), %xmm2
xorps %xmm3, %xmm3
cvtsi2sd %eax, %xmm3
mulsd 0x2b81(%rip), %xmm3     # 0x4008
addsd 0x2b99(%rip), %xmm3     # 0x4028
mulsd 0x2b99(%rip), %xmm3     # 0x4030
movapd %xmm2, %xmm4
cvttsd2si %xmm3, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
xorps %xmm5, %xmm5
cvtsi2sd %ecx, %xmm5
addsd 0x2b83(%rip), %xmm4     # 0x4038
addsd 0x2b83(%rip), %xmm5     # 0x4040
ucomisd 0x2bab(%rip), %xmm4     # 0x4070
movsd %xmm3, 0x18(%rsp)
jb 0x14d6
xorps %xmm0, %xmm0
sqrtsd %xmm4, %xmm0
jmp 0x1502
movapd %xmm4, %xmm0
movsd %xmm4, 0x8(%rsp)
movsd %xmm5, 0x10(%rsp)
callq 0x1180
movsd 0x10(%rsp), %xmm5
movsd 0x8(%rsp), %xmm4
movsd 0x18(%rsp), %xmm3
movsd (%rsp), %xmm2
mulsd 0x2b3e(%rip), %xmm4     # 0x4048
movapd %xmm5, %xmm1
mulsd 0x2b3a(%rip), %xmm1     # 0x4050
addsd %xmm4, %xmm1
mulsd %xmm5, %xmm1
addsd %xmm0, %xmm1
ucomisd 0x2b2e(%rip), %xmm1     # 0x4058
jbe 0x1451
ucomisd 0x2b28(%rip), %xmm1     # 0x4060
ja 0x15c6
ucomisd 0x2b2a(%rip), %xmm3     # 0x4070
jb 0x1551
xorps %xmm0, %xmm0
sqrtsd %xmm3, %xmm0
jmp 0x155f
movapd %xmm3, %xmm0
callq 0x1180
movsd (%rsp), %xmm2
movsd %xmm0, 0x8(%rsp)
movapd %xmm2, %xmm0
callq 0x1090
movsd (%rsp), %xmm2
movapd %xmm0, %xmm1
mulsd 0x2ae9(%rip), %xmm1     # 0x4068
ucomisd 0x2ae9(%rip), %xmm2     # 0x4070
jb 0x1592
xorps %xmm0, %xmm0
sqrtsd %xmm2, %xmm0
jmp 0x15ac
movapd %xmm2, %xmm0
movsd %xmm1, 0x10(%rsp)
callq 0x1180
movsd 0x10(%rsp), %xmm1
movsd (%rsp), %xmm2
movsd 0x18(%rsp), %xmm3
mulsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jbe 0x1451
xorps %xmm0, %xmm0
cvtss2sd 0x20(%rsp), %xmm0
xorps %xmm1, %xmm1
cvtss2sd 0x24(%rsp), %xmm1
mulsd %xmm1, %xmm3
divsd %xmm2, %xmm3
addsd %xmm0, %xmm3
movapd %xmm3, %xmm0
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O1/sc932[P]ALE/src/synthReadGen.c
// Function: TruncatedNormal
double TruncatedNormal(float mu, float sigma, float min, float max){
  double val = NormalVal(mu, sigma);
  if(val < min){
    return min;
  }else if(val > max){
    return max;
  }else{
    return val;
  }
}

// Assembly:
pushq %rax
movss %xmm3, (%rsp)
movss %xmm2, 0x4(%rsp)
callq 0x1441
movapd %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd 0x4(%rsp), %xmm0
ucomisd %xmm1, %xmm0
ja 0x161d
xorps %xmm0, %xmm0
cvtss2sd (%rsp), %xmm0
minsd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O1/sc932[P]ALE/src/synthReadGen.c
// Function: ks_getuntil2
char getComplimentRes(const char res){
  if(res == 'A'){return 'T';}
  if(res == 'T'){return 'A';}
  if(res == 'G'){return 'C';}
  return 'G';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbp
movq %rdx, %rbx
movq %rdi, %r15
testq %rcx, %rcx
je 0x2dd3
movl $0x0, (%rbp)
movl %esi, 0x4(%rsp)
testl %r8d, %r8d
je 0x2de1
movq (%rbx), %rax
jmp 0x2de3
xorl %eax, %eax
movq %rax, (%rbx)
movl 0x8(%r15), %eax
cmpl 0xc(%r15), %eax
jl 0x2e00
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x0, 0x10(%r15)
jne 0x2fe7
movl 0x8(%r15), %eax
cmpl 0xc(%r15), %eax
jl 0x2e49
cmpl $0x0, 0x10(%r15)
jne 0x2f97
movl $0x0, 0x8(%r15)
movq (%r15), %rsi
movq 0x18(%r15), %rdi
movl $0x4000, %edx           # imm = 0x4000
callq 0x10d0
movl %eax, 0xc(%r15)
cmpl $0x3fff, %eax           # imm = 0x3FFF
jg 0x2e41
movl $0x1, 0x10(%r15)
testl %eax, %eax
je 0x2f97
movl 0x8(%r15), %r12d
movl 0xc(%r15), %r13d
movslq %r12d, %r14
movl 0x4(%rsp), %eax
testl %eax, %eax
je 0x2e7c
cmpl $0x2, %eax
jne 0x2ea4
cmpl %r13d, %r12d
jge 0x2ed7
addq (%r15), %r14
cmpb $0xa, (%r14)
je 0x2ed7
incl %r12d
incq %r14
cmpl %r12d, %r13d
jne 0x2e69
jmp 0x2ed4
cmpl %r13d, %r12d
jge 0x2ed7
callq 0x11a0
movq (%rax), %rax
addq (%r15), %r14
movzbl (%r14), %ecx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x2ed7
incl %r12d
incq %r14
cmpl %r12d, %r13d
jne 0x2e8c
jmp 0x2ed4
cmpl %r13d, %r12d
jge 0x2ed7
callq 0x11a0
movq (%rax), %rax
addq (%r15), %r14
movzbl (%r14), %ecx
cmpl $0x20, %ecx
je 0x2ec9
movzwl (%rax,%rcx,2), %ecx
andl $0x2000, %ecx           # imm = 0x2000
jne 0x2ed7
incl %r12d
incq %r14
cmpl %r12d, %r13d
jne 0x2eb4
movl %r13d, %r12d
movq (%rbx), %rax
movq 0x8(%rbx), %rdx
subq %rax, %rdx
movslq 0x8(%r15), %rsi
movslq %r12d, %r14
movq %r14, %rcx
subq %rsi, %rcx
leaq 0x1(%rcx), %rsi
cmpq %rsi, %rdx
jae 0x2f42
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq 0x10(%rbx), %rdi
callq 0x1120
movq %rax, 0x10(%rbx)
movq 0x10(%rbx), %rdi
addq (%rbx), %rdi
movslq 0x8(%r15), %rax
movq (%r15), %rsi
addq %rax, %rsi
movq %r14, %rdx
subq %rax, %rdx
callq 0x10f0
movslq 0x8(%r15), %rax
movq %r14, %rcx
subq %rax, %rcx
addq %rcx, (%rbx)
leal 0x1(%r14), %eax
movl %eax, 0x8(%r15)
movl 0xc(%r15), %eax
testq %rbp, %rbp
je 0x2f81
cmpl %eax, %r12d
jl 0x2f8c
cmpl %eax, %r12d
jge 0x2e00
jmp 0x2f97
movq (%r15), %rax
movzbl (%rax,%r14), %eax
movl %eax, (%rbp)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x2fbf
cmpl $0x2, 0x4(%rsp)
jne 0x2fda
movq (%rbx), %rcx
cmpq $0x2, %rcx
jb 0x2fda
cmpb $0xd, -0x1(%rax,%rcx)
jne 0x2fda
decq %rcx
movq %rcx, (%rbx)
jmp 0x2fda
movq $0x1, 0x8(%rbx)
movl $0x1, %edi
movl $0x1, %esi
callq 0x10c0
movq %rax, 0x10(%rbx)
movq (%rbx), %rax
movq 0x10(%rbx), %rcx
movb $0x0, (%rcx,%rax)
movl (%rbx), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sushant8421[P]create_your_own_shell/cwd.c
// Function: main
int main(int argc , char* argv[]) {
  char *buf;
  buf=(char *)malloc(100*sizeof(char));
  getcwd(buf,100);
  printf("Current Working Directory is : %s \n",buf);
  return 0 ;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movl $0x64, %edi
callq 0x1050
movq %rax, %rbx
movl $0x64, %esi
movq %rax, %rdi
callq 0x1040
leaq 0xe81(%rip), %rdi       # 0x2004
movq %rbx, %rsi
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/life.c
// Function: print_grid
void
print_grid()
{
	int x, y;
	
	for (y = 0; y < Y_MAX; ++y) {
		for (x = 0; x < X_MAX; ++x) {
			printf(" %c", get_grid_value(x, y));
		}
		printf("\n");
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x108e0(%rip), %r14     # 0x13130
leaq 0xb7ad(%rip), %rbx      # 0xe004
xorl %r15d, %r15d
xorl %r12d, %r12d
movl (%r14,%r12,4), %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x20f0
incq %r12
cmpq $0x8, %r12
jne 0x285d
movl $0xa, %edi
callq 0x2040
incq %r15
addq $0x20, %r14
cmpq $0x8, %r15
jne 0x285a
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/life.c
// Function: count_neighbors
int
count_neighbors(int x, int y)
{
	int n = 0;
/*	if (get_grid_value(x + 0, y + 0) == FULL) ++n; */
	if (get_grid_value(x + 1, y + 0) == FULL) ++n;
	if (get_grid_value(x + 1, y + 1) == FULL) ++n;
	if (get_grid_value(x + 0, y + 1) == FULL) ++n;
	if (get_grid_value(x - 1, y + 1) == FULL) ++n;
	if (get_grid_value(x - 1, y + 0) == FULL) ++n;
	if (get_grid_value(x - 1, y - 1) == FULL) ++n;
	if (get_grid_value(x + 0, y - 1) == FULL) ++n;
	if (get_grid_value(x + 1, y - 1) == FULL) ++n;
	return n;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
leal 0x1(%rdi), %ecx
xorl %eax, %eax
testl %ecx, %ecx
cmovlel %eax, %ecx
subl %edi, %ecx
addl $0x6, %ecx
andl $-0x8, %ecx
addl %edi, %ecx
incl %ecx
cmpl $0x8, %ecx
movl $0x7, %edx
movl $0x7, %r9d
cmovgel %ecx, %r9d
movl $0x7ffffff8, %r8d       # imm = 0x7FFFFFF8
andl %r8d, %r9d
subl %r9d, %ecx
testl %esi, %esi
movl $0x0, %r10d
cmovgl %esi, %r10d
subl %esi, %r10d
addl %edx, %r10d
andl $-0x8, %r10d
addl %esi, %r10d
cmpl $0x8, %r10d
movl $0x7, %r9d
cmovgel %r10d, %r9d
andl %r8d, %r9d
subl %r9d, %r10d
shlq $0x5, %r10
leaq 0x102b9(%rip), %r9      # 0x13130
addq %r9, %r10
xorl %r11d, %r11d
cmpl $0x6f, (%r10,%rcx,4)
sete %r11b
leal 0x1(%rsi), %ebx
testl %ebx, %ebx
cmovlel %eax, %ebx
subl %esi, %ebx
addl $0x6, %ebx
andl $-0x8, %ebx
addl %esi, %ebx
incl %ebx
cmpl $0x8, %ebx
movl $0x7, %ebp
cmovgel %ebx, %ebp
andl %r8d, %ebp
subl %ebp, %ebx
shlq $0x5, %rbx
addq %r9, %rbx
leal 0x1(%r11), %ebp
cmpl $0x6f, (%rbx,%rcx,4)
cmovnel %r11d, %ebp
testl %edi, %edi
movl $0x0, %r11d
cmovgl %edi, %r11d
subl %edi, %r11d
addl %edx, %r11d
andl $-0x8, %r11d
addl %edi, %r11d
cmpl $0x8, %r11d
movl $0x7, %r14d
cmovgel %r11d, %r14d
andl %r8d, %r14d
subl %r14d, %r11d
xorl %r15d, %r15d
cmpl $0x6f, (%rbx,%r11,4)
sete %r15b
leal -0x1(%rdi), %r14d
testl %r14d, %r14d
cmovlel %eax, %r14d
subl %edi, %r14d
andl $-0x8, %r14d
addl %edi, %r14d
addl $0x7, %r14d
cmpl $0x8, %r14d
movl $0x7, %edi
cmovgel %r14d, %edi
andl %r8d, %edi
subl %edi, %r14d
xorl %r12d, %r12d
cmpl $0x6f, (%rbx,%r14,4)
sete %r12b
addl %r15d, %r12d
xorl %edi, %edi
cmpl $0x6f, (%r10,%r14,4)
sete %dil
addl %r12d, %edi
addl %ebp, %edi
leal -0x1(%rsi), %r10d
testl %r10d, %r10d
cmovgl %r10d, %eax
subl %esi, %eax
andl $-0x8, %eax
addl %eax, %esi
addl $0x7, %esi
cmpl $0x8, %esi
cmovgel %esi, %edx
andl %r8d, %edx
subl %edx, %esi
shlq $0x5, %rsi
addq %r9, %rsi
xorl %eax, %eax
cmpl $0x6f, (%rsi,%r14,4)
sete %al
xorl %edx, %edx
cmpl $0x6f, (%rsi,%r11,4)
sete %dl
addl %eax, %edx
xorl %eax, %eax
cmpl $0x6f, (%rsi,%rcx,4)
sete %al
addl %edx, %eax
addl %edi, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/life.c
// Function: ask_cell
BEH_DECL(ask_cell)
{
	CONS* msg = WHAT;
	CONS* x = map_get(msg, ATOM("x"));
	CONS* y = map_get(msg, ATOM("y"));
	CONS* state = MINE;
/*	CONS* request = map_get(state, ATOM("request")); */
/*	CONS* reply_to = map_get(state, ATOM("reply-to")); */
	CONS* cell;

	DBUG_ENTER("ask_cell");
	cell = get_cell(MK_INT(x), MK_INT(y));
	assert(actorp(cell));
	msg = state;
	DBUG_PRINT("", ("x=%d y=%d msg=%s", MK_INT(x), MK_INT(y), cons_to_str(msg)));
	SEND(cell, msg);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0xbdd9
movq %rax, %r15
leaq 0xbf05(%rip), %rdi      # 0xf3ba
callq 0x9210
xorl %ebp, %ebp
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xc20e
movq %rax, %r14
leaq 0xb3af(%rip), %rdi      # 0xe882
callq 0x9210
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xc20e
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0xbd3a
movq %rax, %rdi
callq 0x3ea5
movq %rax, %r12
leaq 0xabf4(%rip), %rax      # 0xe0f7
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0xfee8(%rip), %rax      # 0x133f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x125, 0xc(%rdi)       # imm = 0x125
leaq 0xc8d9(%rip), %r13      # 0xfe04
movq %r13, 0x10(%rdi)
leaq 0xfcfa(%rip), %rcx      # 0x13230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xdaa6
shrq $0x2, %r14
shrq $0x2, %r15
testl %r14d, %r14d
movl $0x0, %eax
cmovgl %r14d, %eax
subl %r14d, %eax
movl $0x7, %ecx
addl %ecx, %eax
andl $-0x8, %eax
addl %r14d, %eax
cmpl $0x8, %eax
movl $0x7, %edx
cmovgel %eax, %edx
movl $0x7ffffff8, %esi       # imm = 0x7FFFFFF8
andl %esi, %edx
subl %edx, %eax
testl %r15d, %r15d
cmovgl %r15d, %ebp
subl %r15d, %ebp
addl $0x7, %ebp
andl $-0x8, %ebp
addl %r15d, %ebp
cmpl $0x8, %ebp
cmovgel %ebp, %ecx
andl %esi, %ecx
subl %ecx, %ebp
shlq $0x6, %rbp
leaq 0xfead(%rip), %rcx      # 0x13450
addq %rbp, %rcx
movq (%rcx,%rax,8), %rbp
movl %ebp, %eax
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x3642
leaq 0x105e1(%rip), %rax     # 0x13ba0
cmpl $0x0, (%rax)
je 0x3616
leaq 0xfe2d(%rip), %rax      # 0x133f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %r13, 0x10(%rax)
movq %r13, %rdi
callq 0xd218
testl %eax, %eax
je 0x3616
leaq 0xfe0f(%rip), %rax      # 0x133f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x129, 0xc(%rax)       # imm = 0x129
movq %r12, %rdi
callq 0x5d30
leaq 0xab1f(%rip), %rdi      # 0xe125
movl %r14d, %esi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xdb17
movq %rbx, %rdi
movq %rbp, %rsi
movq %r12, %rdx
callq 0x4aab
movq %rsp, %rdi
movl $0x12b, 0xc(%rdi)       # imm = 0x12B
callq 0xdc2b
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xaab7(%rip), %rdi      # 0xe100
leaq 0xa9f8(%rip), %rsi      # 0xe048
leaq 0xaab6(%rip), %rcx      # 0xe10d
movl $0x127, %edx            # imm = 0x127
callq 0x2110
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/life.c
// Function: life_tick
void
life_tick(CONFIG* cfg)
{
	CONS* msg;
	CONS* actor;
	int n;

	DBUG_ENTER("life_tick");
	actor = CFG_ACTOR(cfg, ask_all_cells, NIL);

	msg = NIL;
	msg = map_put(msg, ATOM("request"), ATOM("gen-next"));
	CFG_SEND(cfg, actor, msg);

	n = run_configuration(cfg, 1000000);
	if (cfg->q_count > 0) {
		TRACE(printf("gen-next: queue length %d with %d budget remaining\n", cfg->q_count, n));
	}

	msg = NIL;
	msg = map_put(msg, ATOM("request"), ATOM("update-grid"));
	CFG_SEND(cfg, actor, msg);

	n = run_configuration(cfg, 1000000);
	if (cfg->q_count > 0) {
		TRACE(printf("update-grid: queue length %d with %d budget remaining\n", cfg->q_count, n));
	}

	DBUG_RETURN;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
leaq 0xa6a1(%rip), %rax      # 0xe16b
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0xf921(%rip), %rax      # 0x133f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x177, 0xc(%rdi)       # imm = 0x177
leaq 0xc312(%rip), %rcx      # 0xfe04
movq %rcx, 0x10(%rdi)
leaq 0xf733(%rip), %rcx      # 0x13230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xdaa6
leaq -0x4b0(%rip), %rsi      # 0x3661
leaq 0xf850(%rip), %r15      # 0x13368
movq %rbx, %rdi
movq %r15, %rdx
callq 0x49ce
movq %rax, %r14
leaq 0xa55d(%rip), %rdi      # 0xe08a
callq 0x9210
movq %rax, %r12
leaq 0xa58b(%rip), %rdi      # 0xe0c7
callq 0x9210
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xc280
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4aab
movq %rbx, %rdi
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x50f3
movl 0x28(%rbx), %esi
testl %esi, %esi
jle 0x3b81
leaq 0xa5fd(%rip), %rdi      # 0xe175
movl %eax, %edx
xorl %eax, %eax
callq 0x20f0
leaq 0xa502(%rip), %rdi      # 0xe08a
callq 0x9210
movq %rax, %r15
leaq 0xa524(%rip), %rdi      # 0xe0bb
callq 0x9210
leaq 0xf7c5(%rip), %rdi      # 0x13368
movq %r15, %rsi
movq %rax, %rdx
callq 0xc280
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4aab
movq %rbx, %rdi
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x50f3
movl 0x28(%rbx), %esi
testl %esi, %esi
jle 0x3be0
leaq 0xa5d2(%rip), %rdi      # 0xe1a9
movl %eax, %edx
xorl %eax, %eax
callq 0x20f0
movq %rsp, %rdi
movl $0x18c, 0xc(%rdi)       # imm = 0x18C
callq 0xdc2b
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/life.c
// Function: test_life
void
test_life(int counter)
{
	int n;
	CONFIG* cfg;

	DBUG_ENTER("test_life");
	TRACE(printf("--test_life--\n"));
	cfg = init_life();

	TRACE(printf("Initial Grid\n"));
	print_grid();
	
	for (n = 1; n < counter; ++n) {
		life_tick(cfg);
		TRACE(printf("Generation %d\n", n));
		print_grid();
	}

	report_actor_usage(cfg);
	DBUG_RETURN;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x28, %rsp
movl %edi, %ebx
leaq 0xa5d2(%rip), %rax      # 0xe1e0
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0xf7dd(%rip), %rax      # 0x133f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x195, 0xc(%rdi)       # imm = 0x195
leaq 0xc1ce(%rip), %rcx      # 0xfe04
movq %rcx, 0x10(%rdi)
leaq 0xf5ef(%rip), %rcx      # 0x13230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xdaa6
leaq 0xa5dd(%rip), %rdi      # 0xe232
callq 0x20b0
callq 0x3893
movq %rax, %r14
leaq 0xa5d7(%rip), %rdi      # 0xe240
callq 0x20b0
callq 0x2841
cmpl $0x2, %ebx
jl 0x3ca3
movl $0x1, %ebp
leaq 0xa566(%rip), %r15      # 0xe1ea
movq %r14, %rdi
callq 0x3ab5
movq %r15, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x20f0
callq 0x2841
incl %ebp
cmpl %ebp, %ebx
jne 0x3c84
movq %r14, %rdi
callq 0x5c6f
movq %rsp, %rdi
movl $0x1a3, 0xc(%rdi)       # imm = 0x1A3
callq 0xdc2b
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/dalnefre[P]kernel_abe/life.c
// Function: main
int
main(int argc, char** argv)
{
	int c;
	int counter = 35;

	DBUG_ENTER("main");
	DBUG_PROCESS(argv[0]);
	while ((c = getopt(argc, argv, "n:#:V")) != EOF) {
		switch(c) {
		case 'n':	counter = atoi(optarg);	break;
		case '#':	DBUG_PUSH(optarg);		break;
		case 'V':	banner();				exit(EXIT_SUCCESS);
		case '?':							usage();
		default:							usage();
		}
	}
	banner();

	test_life(counter);	/* this test involves running the dispatch loop */

	report_cons_stats();
	DBUG_RETURN (exit(EXIT_SUCCESS), 0);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rsi, %rbx
movl %edi, %ebp
leaq 0xa4eb(%rip), %rax      # 0xe227
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0xf6af(%rip), %r12      # 0x133f8
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x1c2, 0xc(%rdi)       # imm = 0x1C2
leaq 0xc09f(%rip), %rcx      # 0xfe04
movq %rcx, 0x10(%rdi)
leaq 0xf4c0(%rip), %rcx      # 0x13230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xdaa6
movq (%r12), %rax
movq 0x18(%rax), %rcx
movq 0xf26c(%rip), %rdx      # 0x12ff8
testq %rcx, %rcx
jne 0x3d94
movq (%rdx), %rcx
movq %rcx, 0x18(%rax)
callq 0x20c0
movq (%r12), %rcx
movl %eax, 0x10(%rcx)
movq (%rbx), %rax
movq %rax, 0x8(%rcx)
movl $0x23, %r14d
leaq 0xa474(%rip), %r15      # 0xe22c
movq 0xf219(%rip), %r13      # 0x12fd8
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x21c0
cmpl $0x23, %eax
jne 0x3deb
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x1c7, 0xc(%rax)       # imm = 0x1C7
movq (%r13), %rdi
callq 0xd375
jmp 0x3dbf
cmpl $0x6d, %eax
jle 0x3e03
cmpl $0x6e, %eax
jne 0x3e19
movq (%r13), %rdi
callq 0x21e0
movl %eax, %r14d
jmp 0x3dbf
cmpl $-0x1, %eax
je 0x3e42
cmpl $0x3f, %eax
je 0x3e19
cmpl $0x56, %eax
jne 0x3e19
callq 0x3cff
jmp 0x3e63
movq 0xf1d8(%rip), %rax      # 0x12ff8
movq (%rax), %rdi
leaq 0xa3cf(%rip), %rsi      # 0xe1f9
leaq 0xf40f(%rip), %rdx      # 0x13240
xorl %eax, %eax
callq 0x2170
movl $0x1, %edi
callq 0x2200
callq 0x3cff
movl %r14d, %edi
callq 0x3bfb
callq 0x3cc5
movq %rsp, %rdi
movl $0x1d2, 0xc(%rdi)       # imm = 0x1D2
callq 0xdc2b
xorl %edi, %edi
callq 0x2200
nop
// File: /workspace/github_c_makefile_star2_O1/ohkimur[P]the-c-programming-language-2nd-edition-solutions/chapter_5/exercise_5_06/reverse.c
// Function: main
int main(void)
{
  char s[100] = "test";

  reverse(s);
  puts(s);

  return 0;
}

// Assembly:
pushq %rbx
subq $0x70, %rsp
xorps %xmm0, %xmm0
movq %rsp, %rbx
movaps %xmm0, (%rbx)
movaps %xmm0, 0x50(%rbx)
movaps %xmm0, 0x40(%rbx)
movaps %xmm0, 0x30(%rbx)
movaps %xmm0, 0x20(%rbx)
movaps %xmm0, 0x10(%rbx)
movl $0x0, 0x60(%rbx)
movl $0x74736574, (%rbx)     # imm = 0x74736574
movq %rbx, %rdi
callq 0x1193
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
retq