LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: each_codepoint
static
int each_codepoint(STRING* self, void (*fn)(uint32_t))
{
    int         ch  = 0;

    char*       p   = NULL;

    gunichar*   cp  = NULL;

    if (self->empty(self))
        return (status = ESTRISEMPTY);
    if (fn == NULL)
        return (status = EARGISNULPTR);

    p = self->c_str(self);
    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);
        }
        cp = g_utf8_to_ucs4_fast(p, sizeof(*p), NULL);
        fn(*cp);
        g_free(cp);
        p += ch;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq *0xa0(%rdi)
testl %eax, %eax
je 0x8a46
pushq $-0x4
popq %r14
leaq 0x8847(%rip), %rax      # 0x11278
movl %r14d, (%rax)
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
testq %rbx, %rbx
je 0x8aad
movq %r14, %rdi
callq *0xc8(%r14)
movq %rax, %r15
leaq 0x2933(%rip), %rsi      # 0xb392
xorl %edi, %edi
callq 0x2430
pushq $-0x2
popq %r14
pushq $0x1
popq %r12
cmpb $0x0, (%r15)
je 0x8ab4
callq 0x21d0
movq %r15, %rdi
movq %rax, %rsi
callq 0x2310
testl %eax, %eax
js 0x8a2a
movl %eax, %ebp
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x2320
movq %rax, %r13
movl (%rax), %edi
callq *%rbx
movq %r13, %rdi
callq 0x2030
movl %ebp, %eax
addq %rax, %r15
jmp 0x8a6e
pushq $-0x5
jmp 0x8a28
xorl %eax, %eax
jmp 0x8a37
// File: /workspace/github_c_makefile_star2_O2/sasairc[P]clangsay/src/libbenly/src/typestring.c
// Function: ts_crypt
static
char* ts_crypt(STRING* self, char* const salt)
{
    if (self->empty(self)) {
        status = ESTRISEMPTY;

        return NULL;
    }
    if (salt == NULL) {
        status = EARGISNULPTR;

        return NULL;
    }

    return crypt(self->c_str(self), salt);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
callq *0xa0(%rdi)
testl %eax, %eax
je 0x8ae6
leaq 0x87a2(%rip), %rax      # 0x11278
movl $0xfffffffc, (%rax)     # imm = 0xFFFFFFFC
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
testq %rbx, %rbx
je 0x8b07
movq %r14, %rdi
callq *0xc8(%r14)
movq %rax, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x2190
leaq 0x876a(%rip), %rax      # 0x11278
movl $0xfffffffb, (%rax)     # imm = 0xFFFFFFFB
jmp 0x8adc
// File: /workspace/github_c_makefile_star2_O2/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 0x8b44
leaq 0x8743(%rip), %rax      # 0x11278
movl $0xfffffffc, (%rax)     # imm = 0xFFFFFFFC
pushq $-0x4
popq %rax
popq %rbx
popq %r14
popq %r15
retq
testq %r14, %r14
je 0x8b74
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 0x8b3e
callq 0x2390
movl (%rax), %eax
jmp 0x8b3e
leaq 0x86fd(%rip), %rax      # 0x11278
movl $0xfffffffb, (%rax)     # imm = 0xFFFFFFFB
pushq $-0x5
jmp 0x8b3d
// File: /workspace/github_c_makefile_star2_O2/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 0x8ba5
callq 0x21a0
movq (%rbx), %rax
andq $0x0, 0x10(%rax)
movq (%rbx), %rax
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x8c0c
movq %rdi, %r14
leaq 0x27b6(%rip), %rsi      # 0xb392
xorl %ebx, %ebx
xorl %edi, %edi
callq 0x2430
pushq $-0x2
popq %rbp
cmpb $0x0, (%r14)
je 0x8c1a
callq 0x21d0
movq %r14, %rdi
movq %rax, %rsi
callq 0x2310
testl %eax, %eax
js 0x8c0f
movl %eax, %eax
addq %rax, %r14
incq %rbx
jmp 0x8be8
pushq $-0x5
popq %rbp
leaq 0x8662(%rip), %rax      # 0x11278
movl %ebp, (%rax)
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rdi
movl $0x401, %r12d           # imm = 0x401
movl $0x401, %esi            # imm = 0x401
callq 0x23d0
pushq $-0x3
popq %rcx
testq %rax, %rax
je 0x8ccc
movq %rax, %rbx
movq %r14, 0x8(%rsp)
movl $0x400, %r14d           # imm = 0x400
xorl %r15d, %r15d
movq %r13, 0x10(%rsp)
movq %r13, %rdi
callq 0x2210
cmpl $-0x1, %eax
je 0x8cd0
movl %eax, %ebp
leaq -0x1(%r12), %rax
cmpq %rax, %r15
jb 0x8cb6
leaq 0x400(%r12), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2420
testq %rax, %rax
je 0x8cf6
movq %rax, %rbx
movq %rax, %rdi
addq %r15, %rdi
addq %r14, %r12
xorl %esi, %esi
movq %r12, %rdx
callq 0x2050
movq %r13, %r12
movq 0x10(%rsp), %r13
movb %bpl, (%rbx,%r15)
incq %r15
decq %r14
cmpl $0xa, %ebp
jne 0x8c67
movb $0x0, (%rbx,%r15)
jmp 0x8cd5
xorl %ebx, %ebx
jmp 0x8cff
testq %r15, %r15
je 0x8cfc
movq %rbx, %rdi
callq 0x59a4
movq 0x8(%rsp), %rcx
movq %rax, (%rcx)
testq %rax, %rax
je 0x8d08
movq %rbx, %rdi
callq 0x21a0
xorl %eax, %eax
jmp 0x8d19
xorl %ebx, %ebx
pushq $-0x3
jmp 0x8cfe
pushq $-0x1
popq %rcx
leaq 0x8572(%rip), %rax      # 0x11278
movl %ecx, (%rax)
movq %rbx, %rdi
callq 0x21a0
leaq 0x8561(%rip), %rax      # 0x11278
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_O2/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 0x8d78
callq *0x20(%rdi)
movq %rax, %r14
testq %rbx, %rbx
je 0x8daa
xorl %r15d, %r15d
cmpq %r15, %r14
je 0x8d9d
movq (%rbx,%r15,8), %rdi
testq %rdi, %rdi
je 0x8d98
callq 0x21a0
andq $0x0, (%rbx,%r15,8)
incq %r15
jmp 0x8d80
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 (%rdi), %rcx
addq 0x8(%rcx), %rsi
movq (%rcx), %r14
xorl %ebp, %ebp
cmpq %r14, %rsi
jb 0x8e26
movq %rdi, %rbx
movq %r14, %rax
cmpq %rsi, %rax
jae 0x8de3
addq $0x400, %rax            # imm = 0x400
movq %rax, (%rcx)
jmp 0x8dd3
movq 0x10(%rcx), %rdi
movq %rax, %rsi
callq 0x2420
movq (%rbx), %rcx
movq %rax, 0x10(%rcx)
testq %rax, %rax
je 0x8e16
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 0x8e26
leaq 0x845b(%rip), %rax      # 0x11278
movl $0xfffffffd, (%rax)     # imm = 0xFFFFFFFD
pushq $-0x3
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x8e44
movq 0x843c(%rip), %rbx      # 0x11280
testq %rbx, %rbx
je 0x8e75
movq %rbx, %rdi
movq %r14, %rsi
callq 0x2290
testq %rax, %rax
je 0x8e6c
movq %rax, %r15
movb $0x0, (%rax)
movq %r14, %rdi
callq 0x21b0
addq %r15, %rax
jmp 0x8e6e
xorl %eax, %eax
movq %rax, 0x840b(%rip)      # 0x11280
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
callq *0xc8(%rdi)
movq %rax, %r15
leaq 0x24f6(%rip), %rsi      # 0xb392
xorl %r14d, %r14d
xorl %edi, %edi
callq 0x2430
pushq $0x1
popq %r12
movl $0xffff009b, %r13d      # imm = 0xFFFF009B
cmpb $0x0, (%r15)
je 0x8f19
callq 0x21d0
movq %r15, %rdi
movq %rax, %rsi
callq 0x2310
testl %eax, %eax
js 0x8f08
movl %eax, %ebp
cmpl $0x2, %eax
jb 0x8efe
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x2320
movl (%rax), %ecx
addl %r13d, %ecx
cmpl $0x3b, %ecx
movq (%rbx), %rcx
sbbq $0x0, %rcx
addq $0x2, %rcx
movq %rcx, (%rbx)
movq %rax, %rdi
callq 0x2030
jmp 0x8f01
incq (%rbx)
movl %ebp, %eax
addq %rax, %r15
jmp 0x8eb0
leaq 0x8369(%rip), %rax      # 0x11278
movl $0xfffffffe, (%rax)     # imm = 0xFFFFFFFE
pushq $-0x2
popq %r14
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %r15
movl $0x400, %r12d           # imm = 0x400
movl $0x400, %esi            # imm = 0x400
movq %r15, %rdi
callq 0x23d0
movq %rax, (%rbx)
testq %rax, %rax
je 0x8ff8
leaq 0x21a1(%rip), %rbp      # 0xb108
xorl %r13d, %r13d
movb (%r14), %al
testb %al, %al
je 0x8fe7
leaq 0x3(%r13), %rcx
cmpq %r12, %rcx
jb 0x8fa9
addq $0x400, %r12            # imm = 0x400
movq (%rbx), %rdi
movq %r12, %rsi
callq 0x2420
movq %rax, (%rbx)
testq %rax, %rax
je 0x8ffc
addq %r13, %rax
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
xorl %esi, %esi
callq 0x2050
movb (%r14), %al
leal -0x20(%rax), %ecx
cmpb $0x1b, %cl
jb 0x8fd5
movl %eax, %ecx
andb $-0x21, %cl
addb $-0x41, %cl
cmpb $0x19, %cl
jbe 0x8fd5
movzbl %al, %edx
movq (%rbx), %rdi
addq %r13, %rdi
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2200
cltq
jmp 0x8fdf
movq (%rbx), %rcx
movb %al, (%rcx,%r13)
movq %r15, %rax
addq %rax, %r13
incq %r14
jmp 0x8f6a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
jmp 0x8ffe
pushq $-0x2
popq %rbp
movq 0x7fda(%rip), %rax      # 0x10fe0
movq (%rax), %rbx
callq 0x2390
movl (%rax), %edi
callq 0x2280
leaq 0x2881(%rip), %rsi      # 0xb89d
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2450
movl %ebp, %eax
jmp 0x8fe9
// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rdi
movl $0x400, %r12d           # imm = 0x400
movl $0x400, %esi            # imm = 0x400
callq 0x23d0
movq %rax, (%rbx)
testq %rax, %rax
je 0x90ea
leaq 0x20ab(%rip), %rbp      # 0xb10f
pushq $0x3
popq %r13
xorl %r15d, %r15d
movb (%r14), %al
testb %al, %al
je 0x90d9
leaq 0x2(%r15), %rcx
cmpq %r12, %rcx
jb 0x90aa
addq $0x400, %r12            # imm = 0x400
movq (%rbx), %rdi
movq %r12, %rsi
callq 0x2420
movq %rax, (%rbx)
testq %rax, %rax
je 0x90ee
addq %r15, %rax
movl $0x400, %edx            # imm = 0x400
movq %rax, %rdi
xorl %esi, %esi
callq 0x2050
movb (%r14), %al
cmpb $0x25, %al
jne 0x90c7
leaq 0x1(%r14), %rdi
movq (%rbx), %rdx
addq %r15, %rdx
movq %rbp, %rsi
xorl %eax, %eax
callq 0x2090
movq %r13, %rax
jmp 0x90d1
movq (%rbx), %rcx
movb %al, (%rcx,%r15)
pushq $0x1
popq %rax
addq %rax, %r14
incq %r15
jmp 0x906b
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
pushq $-0x1
jmp 0x90f0
pushq $-0x2
popq %rbp
movq 0x7ee8(%rip), %rax      # 0x10fe0
movq (%rax), %rbx
callq 0x2390
movl (%rax), %edi
callq 0x2280
leaq 0x278f(%rip), %rsi      # 0xb89d
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x2450
movl %ebp, %eax
jmp 0x90db
nop
// File: /workspace/github_c_makefile_star2_O2/sasairc[P]clangsay/src/clangsay.c
// Function: release
static
void release(COW* cow, MSG* msg)
{
    if (cow != NULL)
        cow->release(cow);

    if (msg != NULL)
        msg->release(msg);

    return;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x9476
movq %rsi, %rbx
callq *0x30(%rdi)
movq %rbx, %rsi
testq %rsi, %rsi
je 0x9482
movq %rsi, %rdi
popq %rbx
jmpq *0x28(%rsi)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/sasairc[P]clangsay/src/cow.c
// Function: init_cow
int init_cow(COW** cow)
{
    int     status  = 0;

    COW*    tmp     = NULL;

    if ((tmp = (COW*)
                malloc(sizeof(COW))) == NULL) {
        status = -1; goto ERR;
    }
    do {
        tmp->fp         = NULL;
        tmp->data       = NULL;
        tmp->lines      = 0;
        tmp->open       = open_cow;
        tmp->read       = read_cow;
        tmp->print      = print_cow;
        tmp->release    = release_cow;
    } while (0);
    *cow = tmp;

    return 0;

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

    return status;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x38
popq %rdi
callq 0x20e0
testq %rax, %rax
je 0x94d2
andl $0x0, 0x10(%rax)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
leaq 0x62(%rip), %rcx        # 0x9508
movq %rcx, 0x18(%rax)
leaq 0x3de(%rip), %rcx       # 0x988f
movq %rcx, 0x20(%rax)
leaq 0x484(%rip), %rcx       # 0x9940
movq %rcx, 0x28(%rax)
leaq 0x78c(%rip), %rcx       # 0x9c53
movq %rcx, 0x30(%rax)
movq %rax, (%rbx)
xorl %eax, %eax
popq %rbx
retq
movq 0x7b07(%rip), %rax      # 0x10fe0
movq (%rax), %rbx
callq 0x2390
movl (%rax), %edi
callq 0x2280
leaq 0x1d53(%rip), %rsi      # 0xb242
leaq 0x1d27(%rip), %rdx      # 0xb21d
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x2450
pushq $-0x1
popq %rax
jmp 0x94d0
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
movq (%rdi), %rcx
testq %rcx, %rcx
je 0x98ca
addq $0x8, %rdi
movl $0x100, %esi            # imm = 0x100
movl $0x200, %edx            # imm = 0x200
callq 0x374c
movq (%rbx), %rcx
movl %eax, 0x10(%rcx)
testl %eax, %eax
js 0x98f3
movq (%rcx), %rdi
callq 0x23e0
xorl %ebp, %ebp
jmp 0x98ec
movq 0x771f(%rip), %rax      # 0x10ff0
movq (%rax), %rdi
leaq 0x1a16(%rip), %rsi      # 0xb2f1
leaq 0x193b(%rip), %rdx      # 0xb21d
xorl %eax, %eax
callq 0x2450
pushq $-0x1
popq %rbp
movl %ebp, %eax
popq %rbx
popq %r14
popq %rbp
retq
movq 0x76e6(%rip), %rax      # 0x10fe0
movq (%rax), %r14
callq 0x2390
movl (%rax), %edi
callq 0x2280
leaq 0x1a01(%rip), %rsi      # 0xb311
leaq 0x1906(%rip), %rdx      # 0xb21d
movq %r14, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x2450
movq (%rbx), %rax
movq (%rax), %rdi
pushq $-0x2
popq %rbp
testq %rdi, %rdi
je 0x98ec
callq 0x23e0
movq (%rbx), %rax
andq $0x0, (%rax)
jmp 0x98ec
// File: /workspace/github_c_makefile_star2_O2/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 0x9cc8
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, 0x8(%rdi)
je 0x9cbb
movslq 0x10(%rbx), %r14
xorl %r15d, %r15d
movq 0x8(%rbx), %rdi
cmpq %r14, %r15
jge 0x9cb6
movq (%rdi,%r15,8), %rax
testq %rax, %rax
je 0x9c95
movq %rax, %rdi
callq 0x21a0
movq 0x8(%rbx), %rax
andq $0x0, (%rax,%r15,8)
movq 0x8(%rbx), %rdi
movq -0x8(%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0x9cae
callq 0x21a0
movq 0x8(%rbx), %rax
andq $0x0, -0x8(%rax,%r14,8)
incq %r15
decq %r14
jmp 0x9c6e
callq 0x21a0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O2/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
andq $0x0, (%rbx)
leaq 0x14de(%rip), %rdi      # 0xb260
callq 0x2380
testq %rax, %rax
leaq 0x14d7(%rip), %rdi      # 0xb268
cmovneq %rax, %rdi
movq %rbx, %rsi
callq 0x359c
testl %eax, %eax
jns 0x9dc8
movq 0x7238(%rip), %rax      # 0x10fe0
movq (%rax), %rdi
leaq 0x1a08(%rip), %rsi      # 0xb7ba
leaq 0x1464(%rip), %rdx      # 0xb21d
xorl %eax, %eax
callq 0x2450
pushq $0x8
popq %rdi
callq 0x20c0
movq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %r15
movq 0x7217(%rip), %r12      # 0x10ff0
leaq 0x1abd(%rip), %r13      # 0xb89d
xorl %ebx, %ebx
movq 0x8(%rdi), %rax
movq (%rax,%rbx,8), %rdi
movq %r15, %rsi
leaq 0xa9(%rip), %rdx        # 0x9e9d
movq 0x71dd(%rip), %rcx      # 0x10fd8
callq 0x2140
cmpl $-0x1, %eax
je 0x9e7d
movl %eax, %ebp
testq %rbx, %rbx
je 0x9e14
pushq $0xa
popq %rdi
callq 0x20d0
movq (%r12), %rdi
movq 0x10(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax,%rbx,8), %rdx
leaq 0x19b8(%rip), %rsi      # 0xb7e4
xorl %eax, %eax
callq 0x2450
testl %ebp, %ebp
movl $0x0, %eax
cmovlel %eax, %ebp
xorl %r14d, %r14d
cmpq %r14, %rbp
je 0x9e73
movq (%r12), %rdi
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdx
addq $0x13, %rdx
movq %r13, %rsi
xorl %eax, %eax
callq 0x2450
movq 0x8(%rsp), %rax
movq (%rax,%r14,8), %rdi
callq 0x21a0
incq %r14
jmp 0x9e40
movq 0x8(%rsp), %rdi
callq 0x21a0
incq %rbx
movq 0x10(%rsp), %rdi
movslq (%rdi), %rax
cmpq %rax, %rbx
jl 0x9de2
callq 0x36b2
xorl %edi, %edi
callq 0x20c0
// File: /workspace/github_c_makefile_star2_O2/sasairc[P]clangsay/src/msg.c
// Function: init_msg
int init_msg(MSG** msg)
{
    int     status  = 0;

    MSG*    tmp     = NULL;

    if ((tmp = (MSG*)
                malloc(sizeof(MSG))) == NULL) {
        status = -1; goto ERR;
    }
    do {
        tmp->data       = NULL;
        tmp->lines      = 0;
        tmp->read       = read_msg;
        tmp->print      = print_msg;
        tmp->recursive  = recursive_msg;
        tmp->release    = release_msg;
    } while (0);
    *msg = tmp;

    return 0;

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

    return status;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x30
popq %rdi
callq 0x20e0
testq %rax, %rax
je 0x9f28
andq $0x0, (%rax)
andl $0x0, 0x8(%rax)
leaq 0x62(%rip), %rcx        # 0x9f5e
movq %rcx, 0x10(%rax)
leaq 0x1de(%rip), %rcx       # 0xa0e5
movq %rcx, 0x20(%rax)
leaq 0x41c(%rip), %rcx       # 0xa32e
movq %rcx, 0x18(%rax)
leaq 0x610(%rip), %rcx       # 0xa52d
movq %rcx, 0x28(%rax)
movq %rax, (%rbx)
xorl %eax, %eax
popq %rbx
retq
movq 0x70b1(%rip), %rax      # 0x10fe0
movq (%rax), %rbx
callq 0x2390
movl (%rax), %edi
callq 0x2280
leaq 0x12fd(%rip), %rsi      # 0xb242
leaq 0x12d1(%rip), %rdx      # 0xb21d
movq %rbx, %rdi
movq %rax, %rcx
xorl %eax, %eax
callq 0x2450
pushq $-0x1
popq %rax
jmp 0x9f26
// File: /workspace/github_c_makefile_star2_O2/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 0xa59d
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0xa590
movslq 0x8(%rbx), %r14
xorl %r15d, %r15d
movq (%rbx), %rdi
cmpq %r14, %r15
jge 0xa58b
movq (%rdi,%r15,8), %rax
testq %rax, %rax
je 0xa56b
movq %rax, %rdi
callq 0x21a0
movq (%rbx), %rax
andq $0x0, (%rax,%r15,8)
movq (%rbx), %rdi
movq -0x8(%rdi,%r14,8), %rdi
testq %rdi, %rdi
je 0xa583
callq 0x21a0
movq (%rbx), %rax
andq $0x0, -0x8(%rax,%r14,8)
incq %r15
decq %r14
jmp 0xa547
callq 0x21a0
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x21a0
retq
// File: /workspace/github_c_makefile_star2_O2/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, 0x1c(%rsp)
movss %xmm0, 0x18(%rsp)
movb $0x1, %al
testb $0x1, %al
je 0x155f
callq 0x1180
cvtsi2sd %eax, %xmm1
movsd 0x1be2(%rip), %xmm0     # 0x3008
mulsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
callq 0x1180
cvtsi2sd %eax, %xmm0
mulsd 0x1bc7(%rip), %xmm0     # 0x3008
addsd 0x1bdf(%rip), %xmm0     # 0x3028
mulsd 0x1bdf(%rip), %xmm0     # 0x3030
movsd 0x8(%rsp), %xmm2
movsd %xmm0, 0x20(%rsp)
cvttsd2si %xmm0, %eax
movl %eax, %ecx
negl %ecx
cmovsl %eax, %ecx
cvtsi2sd %ecx, %xmm3
addsd 0x1bc4(%rip), %xmm2     # 0x3038
addsd 0x1bc4(%rip), %xmm3     # 0x3040
ucomisd 0x1bec(%rip), %xmm2     # 0x3070
jb 0x148c
sqrtsd %xmm2, %xmm0
jmp 0x14ab
movapd %xmm2, %xmm0
movsd %xmm2, (%rsp)
movsd %xmm3, 0x10(%rsp)
callq 0x1170
movsd 0x10(%rsp), %xmm3
movsd (%rsp), %xmm2
mulsd 0x1b95(%rip), %xmm2     # 0x3048
movapd %xmm3, %xmm1
mulsd 0x1b91(%rip), %xmm1     # 0x3050
addsd %xmm2, %xmm1
mulsd %xmm3, %xmm1
addsd %xmm0, %xmm1
ucomisd 0x1b85(%rip), %xmm1     # 0x3058
movb $0x1, %al
jbe 0x140d
ucomisd 0x1b7d(%rip), %xmm1     # 0x3060
ja 0x1558
movsd 0x20(%rsp), %xmm0
ucomisd 0x1b7d(%rip), %xmm0     # 0x3070
jb 0x14fb
sqrtsd %xmm0, %xmm0
jmp 0x1500
callq 0x1170
movsd %xmm0, (%rsp)
movsd 0x8(%rsp), %xmm0
callq 0x1080
movapd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x1b46(%rip), %xmm1     # 0x3068
ucomisd 0x1b46(%rip), %xmm0     # 0x3070
jb 0x1532
sqrtsd %xmm0, %xmm0
jmp 0x1543
movsd %xmm1, 0x10(%rsp)
callq 0x1170
movsd 0x10(%rsp), %xmm1
mulsd %xmm0, %xmm1
movsd (%rsp), %xmm0
ucomisd %xmm1, %xmm0
movb $0x1, %al
jbe 0x140d
xorl %eax, %eax
jmp 0x140d
cvtss2sd 0x18(%rsp), %xmm2
cvtss2sd 0x1c(%rsp), %xmm1
movsd 0x20(%rsp), %xmm0
mulsd %xmm1, %xmm0
divsd 0x8(%rsp), %xmm0
addsd %xmm2, %xmm0
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0x13fb
movapd %xmm0, %xmm1
cvtss2sd 0x4(%rsp), %xmm0
ucomisd %xmm1, %xmm0
ja 0x15ae
cvtss2sd (%rsp), %xmm0
minsd %xmm1, %xmm0
popq %rax
retq
// File: /workspace/github_c_makefile_star2_O2/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
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, %rbx
movq %rdi, %r15
testq %rcx, %rcx
je 0x2ac0
andl $0x0, (%r14)
movl %esi, 0xc(%rsp)
testl %r8d, %r8d
je 0x2ace
movq (%rbx), %rax
jmp 0x2ad0
xorl %eax, %eax
movq %rax, (%rbx)
movl 0x8(%r15), %ecx
movl 0xc(%r15), %eax
cmpl %eax, %ecx
jl 0x2aee
cmpl $0x0, 0x10(%r15)
je 0x2aee
pushq $-0x1
popq %rax
jmp 0x2cca
movq %r14, 0x10(%rsp)
cmpl %eax, %ecx
jl 0x2b33
cmpl $0x0, 0x10(%r15)
jne 0x2c76
andl $0x0, 0x8(%r15)
movq (%r15), %rsi
movq 0x18(%r15), %rdi
movl $0x4000, %edx           # imm = 0x4000
callq 0x10c0
movl %eax, 0xc(%r15)
cmpl $0x3fff, %eax           # imm = 0x3FFF
jg 0x2b33
movl $0x1, 0x10(%r15)
testl %eax, %eax
je 0x2c76
movl 0x8(%r15), %r13d
movslq %r13d, %r12
movslq %eax, %r14
cmpl %r14d, %r12d
movl %r14d, %ebp
cmovgl %r13d, %ebp
movl 0xc(%rsp), %eax
cmpl $0x2, %eax
je 0x2b78
testl %eax, %eax
jne 0x2b8c
cmpq %r14, %r12
jge 0x2bb4
callq 0x1190
movq (%rax), %rax
movq (%r15), %rcx
movzbl (%rcx,%r12), %ecx
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x2bb1
incq %r12
jmp 0x2b54
incq %r12
cmpq %r14, %r12
jge 0x2bb4
movq (%r15), %rax
cmpb $0xa, (%rax,%r12)
jne 0x2b75
jmp 0x2bb1
incq %r12
cmpq %r14, %r12
jge 0x2bb4
callq 0x1190
movq (%r15), %rcx
movzbl (%rcx,%r12), %ecx
cmpl $0x20, %ecx
je 0x2b89
movq (%rax), %rax
movzwl (%rax,%rcx,2), %eax
andl $0x2000, %eax           # imm = 0x2000
je 0x2b89
movl %r12d, %ebp
movq (%rbx), %rdi
movq 0x8(%rbx), %rdx
subq %rdi, %rdx
movl %ebp, %ecx
subl %r13d, %ecx
leal 0x1(%rcx), %eax
movslq %eax, %rsi
movq 0x10(%rbx), %rax
cmpq %rsi, %rdx
movq 0x10(%rsp), %r14
jae 0x2c2d
movslq %ecx, %rcx
addq %rcx, %rdi
movq %rdi, %rcx
shrq %rcx
orq %rdi, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rsi
shrq $0x10, %rsi
orq %rdx, %rsi
incq %rsi
movq %rsi, 0x8(%rbx)
movq %rax, %rdi
callq 0x1110
movq %rax, 0x10(%rbx)
movq (%rbx), %rdi
movl 0x8(%r15), %r13d
movl %ebp, %ecx
subl %r13d, %ecx
addq %rax, %rdi
movslq %r13d, %rsi
addq (%r15), %rsi
movslq %ecx, %rdx
callq 0x10e0
movslq 0x8(%r15), %rax
movslq %ebp, %rdx
movq %rdx, %rcx
subq %rax, %rcx
addq %rcx, (%rbx)
leal 0x1(%rbp), %ecx
movl %ecx, 0x8(%r15)
movl 0xc(%r15), %eax
testq %r14, %r14
je 0x2c62
cmpl %eax, %ebp
jl 0x2c6c
cmpl %eax, %ebp
jge 0x2af3
jmp 0x2c76
movq (%r15), %rax
movzbl (%rax,%rdx), %eax
movl %eax, (%r14)
movq 0x10(%rbx), %rax
testq %rax, %rax
je 0x2caa
cmpl $0x2, 0xc(%rsp)
sete %dl
movq (%rbx), %rcx
cmpq $0x2, %rcx
setae %sil
andb %dl, %sil
cmpb $0x1, %sil
jne 0x2cc4
cmpb $0xd, -0x1(%rax,%rcx)
jne 0x2cc4
decq %rcx
movq %rcx, (%rbx)
jmp 0x2cc4
movq $0x1, 0x8(%rbx)
pushq $0x1
popq %rdi
movq %rdi, %rsi
callq 0x10b0
movq %rax, 0x10(%rbx)
movq (%rbx), %rcx
movb $0x0, (%rax,%rcx)
movl (%rbx), %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq $0x64
popq %rbx
movq %rbx, %rdi
callq 0x1050
movq %rax, %r14
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1040
leaq 0xe81(%rip), %rdi       # 0x2004
movq %r14, %rsi
xorl %eax, %eax
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
pushq $0xa
popq %rbx
leaq 0xbc10(%rip), %r14      # 0xe004
xorl %ebp, %ebp
cmpl $0x8, %ebp
je 0x242a
xorl %r15d, %r15d
cmpl $0x8, %r15d
je 0x241f
movl %r15d, %edi
movl %ebp, %esi
callq 0x2382
movq %r14, %rdi
movl %eax, %esi
xorl %eax, %eax
callq 0x20f0
incl %r15d
jmp 0x23fe
movl %ebx, %edi
callq 0x2040
incl %ebp
jmp 0x23f6
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 %r13
pushq %r12
pushq %rbx
pushq %rax
movl %esi, %ebx
movl %edi, %r14d
leal 0x1(%r14), %ebp
movl %ebp, %edi
movl %ebp, 0x4(%rsp)
callq 0x2382
xorl %r12d, %r12d
cmpl $0x6f, %eax
sete %r12b
leal 0x1(%rbx), %r15d
movl %ebp, %edi
movl %r15d, %esi
callq 0x2382
leal 0x1(%r12), %r13d
cmpl $0x6f, %eax
cmovnel %r12d, %r13d
movl %r14d, %edi
movl %r15d, %esi
callq 0x2382
xorl %ebp, %ebp
cmpl $0x6f, %eax
sete %bpl
leal -0x1(%r14), %r12d
movl %r12d, %edi
movl %r15d, %esi
callq 0x2382
xorl %r15d, %r15d
cmpl $0x6f, %eax
sete %r15b
addl %ebp, %r15d
movl %r12d, %edi
movl %ebx, %esi
callq 0x2382
xorl %ebp, %ebp
cmpl $0x6f, %eax
sete %bpl
addl %r15d, %ebp
decl %ebx
movl %r12d, %edi
movl %ebx, %esi
callq 0x2382
xorl %r15d, %r15d
cmpl $0x6f, %eax
sete %r15b
addl %ebp, %r15d
addl %r13d, %r15d
movl %r14d, %edi
movl %ebx, %esi
callq 0x2382
xorl %ebp, %ebp
cmpl $0x6f, %eax
sete %bpl
movl 0x4(%rsp), %edi
movl %ebx, %esi
callq 0x2382
xorl %ecx, %ecx
cmpl $0x6f, %eax
sete %cl
addl %ebp, %ecx
addl %r15d, %ecx
movl %ecx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xb3d2
movq %rax, %r15
leaq 0xc4d4(%rip), %rdi      # 0xf396
callq 0x89eb
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xb853
movq %rax, %r14
leaq 0xb980(%rip), %rdi      # 0xe85e
callq 0x89eb
movq %r15, %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0xb853
movq %rax, %r15
movq 0x30(%rbx), %rdi
callq 0xb2c7
movq %rax, %rdi
callq 0x3827
movq %rax, %r12
leaq 0xb1e9(%rip), %rax      # 0xe0f7
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x114dd(%rip), %rax     # 0x143f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x125, 0xc(%rdi)       # imm = 0x125
leaq 0xceaa(%rip), %rbp      # 0xfde0
movq %rbp, 0x10(%rdi)
leaq 0x112ef(%rip), %rcx     # 0x14230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xd145
shrq $0x2, %r14
shrq $0x2, %r15
movl %r14d, %edi
movl %r15d, %esi
callq 0x2945
movq %rax, %r13
andl $0x3, %eax
cmpl $0x1, %eax
jne 0x2ffa
leaq 0x11c29(%rip), %rax     # 0x14ba0
cmpl $0x0, (%rax)
je 0x2fce
leaq 0x11475(%rip), %rax     # 0x143f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movq %rbp, 0x10(%rax)
movq %rbp, %rdi
callq 0xc8c0
testl %eax, %eax
je 0x2fce
leaq 0x11457(%rip), %rax     # 0x143f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl $0x129, 0xc(%rax)       # imm = 0x129
movq %r12, %rdi
callq 0x57d4
leaq 0xb167(%rip), %rdi      # 0xe125
movl %r14d, %esi
movl %r15d, %edx
movq %rax, %rcx
xorl %eax, %eax
callq 0xd1bc
movq %rbx, %rdi
movq %r13, %rsi
movq %r12, %rdx
callq 0x4560
movq %rsp, %rdi
movl $0x12b, 0xc(%rdi)       # imm = 0x12B
callq 0xd2be
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xb0ff(%rip), %rdi      # 0xe100
leaq 0xb040(%rip), %rsi      # 0xe048
leaq 0xb0fe(%rip), %rcx      # 0xe10d
movl $0x127, %edx            # imm = 0x127
callq 0x2110
// File: /workspace/github_c_makefile_star2_O2/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 0xacea(%rip), %rax      # 0xe16b
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x10f6a(%rip), %rax     # 0x143f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x177, 0xc(%rdi)       # imm = 0x177
leaq 0xc937(%rip), %rcx      # 0xfde0
movq %rcx, 0x10(%rdi)
leaq 0x10d7c(%rip), %rcx     # 0x14230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xd145
leaq -0x4af(%rip), %rsi      # 0x3019
leaq 0x10e99(%rip), %r15     # 0x14368
movq %rbx, %rdi
movq %r15, %rdx
callq 0x4483
movq %rax, %r14
leaq 0xaba6(%rip), %rdi      # 0xe08a
callq 0x89eb
movq %rax, %r12
leaq 0xabd4(%rip), %rdi      # 0xe0c7
callq 0x89eb
movq %r15, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0xb8c5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4560
movq %rbx, %rdi
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x4bb3
movl 0x28(%rbx), %esi
testl %esi, %esi
jle 0x3538
leaq 0xac46(%rip), %rdi      # 0xe175
movl %eax, %edx
xorl %eax, %eax
callq 0x20f0
leaq 0xab4b(%rip), %rdi      # 0xe08a
callq 0x89eb
movq %rax, %r15
leaq 0xab6d(%rip), %rdi      # 0xe0bb
callq 0x89eb
leaq 0x10e0e(%rip), %rdi     # 0x14368
movq %r15, %rsi
movq %rax, %rdx
callq 0xb8c5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x4560
movq %rbx, %rdi
movl $0xf4240, %esi          # imm = 0xF4240
callq 0x4bb3
movl 0x28(%rbx), %esi
testl %esi, %esi
jle 0x3597
leaq 0xac1b(%rip), %rdi      # 0xe1a9
movl %eax, %edx
xorl %eax, %eax
callq 0x20f0
movq %rsp, %rdi
movl $0x18c, 0xc(%rdi)       # imm = 0x18C
callq 0xd2be
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xac1b(%rip), %rax      # 0xe1e0
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x10e26(%rip), %rax     # 0x143f8
movq (%rax), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x195, 0xc(%rdi)       # imm = 0x195
leaq 0xc7f3(%rip), %rcx      # 0xfde0
movq %rcx, 0x10(%rdi)
leaq 0x10c38(%rip), %rcx     # 0x14230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xd145
leaq 0xac26(%rip), %rdi      # 0xe232
callq 0x20b0
callq 0x3243
movq %rax, %r14
leaq 0xac20(%rip), %rdi      # 0xe240
callq 0x20b0
callq 0x23e3
pushq $0x1
popq %rbp
leaq 0xabb6(%rip), %r15      # 0xe1ea
cmpl %ebx, %ebp
jge 0x3655
movq %r14, %rdi
callq 0x346c
movq %r15, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x20f0
callq 0x23e3
incl %ebp
jmp 0x3634
movq %r14, %rdi
callq 0x5712
movq %rsp, %rdi
movl $0x1a3, 0xc(%rdi)       # imm = 0x1A3
callq 0xd2be
addq $0x28, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/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 0xab3b(%rip), %rax      # 0xe227
movq %rsp, %rdi
movq %rax, (%rdi)
leaq 0x10cff(%rip), %r12     # 0x143f8
movq (%r12), %rax
movq 0x50(%rax), %rax
movl 0x8(%rax), %ecx
movl %ecx, 0x8(%rdi)
movl $0x1c2, 0xc(%rdi)       # imm = 0x1C2
leaq 0xc6cb(%rip), %rcx      # 0xfde0
movq %rcx, 0x10(%rdi)
leaq 0x10b10(%rip), %rcx     # 0x14230
movq %rcx, 0x18(%rdi)
movq %rax, 0x20(%rdi)
callq 0xd145
movq (%r12), %rax
movq 0x18(%rax), %rcx
testq %rcx, %rcx
jne 0x3744
movq 0x108b7(%rip), %rcx     # 0x13ff8
movq (%rcx), %rcx
movq %rcx, 0x18(%rax)
callq 0x20c0
movq (%r12), %rcx
movl %eax, 0x10(%rcx)
movq (%rbx), %rax
movq %rax, 0x8(%rcx)
pushq $0x23
popq %r14
leaq 0xaac6(%rip), %r15      # 0xe22c
movq 0x1086b(%rip), %r13     # 0x13fd8
movl %ebp, %edi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x21d0
cmpl $0x23, %eax
jne 0x3799
movq (%r12), %rax
movq 0x50(%rax), %rax
movl $0x1c7, 0xc(%rax)       # imm = 0x1C7
movq (%r13), %rdi
callq 0xca19
jmp 0x376d
cmpl $0x6e, %eax
jne 0x37ac
movq (%r13), %rdi
callq 0x21f0
movl %eax, %r14d
jmp 0x376d
cmpl $-0x1, %eax
je 0x37c7
cmpl $0x3f, %eax
je 0x37c2
cmpl $0x56, %eax
jne 0x37c2
callq 0x36af
jmp 0x37e8
callq 0x3687
callq 0x36af
movl %r14d, %edi
callq 0x35b2
callq 0x3677
movq %rsp, %rdi
movl $0x1d2, 0xc(%rdi)       # imm = 0x1D2
callq 0xd2be
xorl %edi, %edi
callq 0x2210
nop
// File: /workspace/github_c_makefile_star2_O2/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)
andl $0x0, 0x60(%rbx)
movl $0x74736574, (%rbx)     # imm = 0x74736574
movq %rbx, %rdi
callq 0x1190
movq %rbx, %rdi
callq 0x1030
xorl %eax, %eax
addq $0x70, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/aparrish[P]rwet-examples-c/cat.c
// Function: main
int main() {
	char* line = NULL;
	int len = 0;
	while (!feof(stdin)) {
		len = ap_getline(&line, stdin);
		printf("%s", line);
		free(line);
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x8(%rsp), %rbx
andq $0x0, (%rbx)
movq 0x2e3b(%rip), %r15      # 0x3fe0
leaq 0xe58(%rip), %r14       # 0x2004
movq (%r15), %rdi
callq 0x1050
testl %eax, %eax
jne 0x11de
movq (%r15), %rsi
movq %rbx, %rdi
callq 0x11ec
movq 0x8(%rsp), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq 0x8(%rsp), %rdi
callq 0x1030
jmp 0x11ac
xorl %eax, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nop