LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: add_item_to_object
static cJSON_bool add_item_to_object(cJSON * const object, const char * const string, cJSON * const item, const internal_hooks * const hooks, const cJSON_bool constant_key)
{
    char *new_key = NULL;
    int new_type = cJSON_Invalid;

    if ((object == NULL) || (string == NULL) || (item == NULL))
    {
        return false;
    }

    if (constant_key)
    {
        new_key = (char*)cast_away_const(string);
        new_type = item->type | cJSON_StringIsConst;
    }
    else
    {
        new_key = (char*)cJSON_strdup((const unsigned char*)string, hooks);
        if (new_key == NULL)
        {
            return false;
        }

        new_type = item->type & ~cJSON_StringIsConst;
    }

    if (!(item->type & cJSON_StringIsConst) && (item->string != NULL))
    {
        hooks->deallocate(item->string);
    }

    item->string = new_key;
    item->type = new_type;

    return add_item_to_array(object, item);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %dl
orb %al, %dl
testq %rbx, %rbx
sete %al
orb %dl, %al
je 0x5b24
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rsi, %r15
movq %rdi, %r14
testl %ecx, %ecx
je 0x5b3b
movl 0x18(%rbx), %eax
movl %eax, %ebp
orl $0x200, %ebp            # imm = 0x200
jmp 0x5b56
movq %r15, %rdi
callq 0x6278
testq %rax, %rax
je 0x5b17
movq %rax, %r15
movl 0x18(%rbx), %eax
movl %eax, %ebp
andl $0xfffffdff, %ebp       # imm = 0xFFFFFDFF
btl $0x9, %eax
jb 0x5b6b
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x5b6b
callq *0x56bd(%rip)           # 0xb228
movq %r15, 0x38(%rbx)
movl %ebp, 0x18(%rbx)
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x5aba
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: create_reference
static cJSON *create_reference(const cJSON *item, const internal_hooks * const hooks)
{
    cJSON *reference = NULL;
    if (item == NULL)
    {
        return NULL;
    }

    reference = cJSON_New_Item(hooks);
    if (reference == NULL)
    {
        return NULL;
    }

    memcpy(reference, item, sizeof(cJSON));
    reference->string = NULL;
    reference->type |= cJSON_IsReference;
    reference->next = reference->prev = NULL;
    return reference;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x5c02
movq %rdi, %rbx
pushq $0x40
popq %rdi
callq *0x5661(%rip)           # 0xb220
testq %rax, %rax
je 0x5c02
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, (%rax)
movups (%rbx), %xmm1
movups 0x10(%rbx), %xmm2
movups 0x20(%rbx), %xmm3
movups %xmm2, 0x10(%rax)
movups %xmm1, (%rax)
movups %xmm3, 0x20(%rax)
movq 0x30(%rbx), %rcx
movq %rcx, 0x30(%rax)
andq $0x0, 0x38(%rax)
orb $0x1, 0x19(%rax)
movups %xmm0, (%rax)
jmp 0x5c04
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateNull
CJSON_PUBLIC(cJSON *) cJSON_CreateNull(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_NULL;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0x559c(%rip)           # 0xb220
testq %rax, %rax
je 0x5ca2
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x4, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateTrue
CJSON_PUBLIC(cJSON *) cJSON_CreateTrue(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_True;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0x5538(%rip)           # 0xb220
testq %rax, %rax
je 0x5d06
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x2, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateFalse
CJSON_PUBLIC(cJSON *) cJSON_CreateFalse(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_False;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0x54d4(%rip)           # 0xb220
testq %rax, %rax
je 0x5d6a
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x1, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateBool
CJSON_PUBLIC(cJSON *) cJSON_CreateBool(cJSON_bool b)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = b ? cJSON_True : cJSON_False;
    }

    return item;
}

// Assembly:
pushq %rbx
movl %edi, %ebx
pushq $0x40
popq %rdi
callq *0x546c(%rip)           # 0xb220
testq %rax, %rax
je 0x5dd7
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
cmpl $0x1, %ebx
pushq $0x2
popq %rcx
sbbl $0x0, %ecx
movl %ecx, 0x18(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateNumber
CJSON_PUBLIC(cJSON *) cJSON_CreateNumber(double num)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_Number;
        item->valuedouble = num;

        /* use saturation in case of overflow */
        if (num >= INT_MAX)
        {
            item->valueint = INT_MAX;
        }
        else if (num <= (double)INT_MIN)
        {
            item->valueint = INT_MIN;
        }
        else
        {
            item->valueint = (int)num;
        }
    }

    return item;
}

// Assembly:
pushq %rax
movsd %xmm0, (%rsp)
pushq $0x40
popq %rdi
callq *0x53fe(%rip)           # 0xb220
testq %rax, %rax
je 0x5e78
xorpd %xmm0, %xmm0
movupd %xmm0, 0x10(%rax)
movupd %xmm0, 0x30(%rax)
movupd %xmm0, 0x20(%rax)
movupd %xmm0, (%rax)
movl $0x8, 0x18(%rax)
movsd (%rsp), %xmm1
movsd %xmm1, 0x30(%rax)
movl $0x7fffffff, %ecx       # imm = 0x7FFFFFFF
ucomisd 0x1ac4(%rip), %xmm1     # 0x7920
jae 0x5e75
movl $0x80000000, %ecx       # imm = 0x80000000
movsd 0x1abd(%rip), %xmm0     # 0x7928
ucomisd %xmm1, %xmm0
jae 0x5e75
cvttsd2si %xmm1, %ecx
movl %ecx, 0x28(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateString
CJSON_PUBLIC(cJSON *) cJSON_CreateString(const char *string)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_String;
        item->valuestring = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks);
        if(!item->valuestring)
        {
            cJSON_Delete(item);
            return NULL;
        }
    }

    return item;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x40
popq %rdi
callq *0x5359(%rip)           # 0xb220
testq %rax, %rax
je 0x5f01
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x10, 0x18(%rax)
movq %r14, %rdi
callq 0x6278
movq %rax, 0x20(%rbx)
testq %rax, %rax
jne 0x5f03
movq %rbx, %rdi
callq 0x4cca
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateRaw
CJSON_PUBLIC(cJSON *) cJSON_CreateRaw(const char *raw)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type = cJSON_Raw;
        item->valuestring = (char*)cJSON_strdup((const unsigned char*)raw, &global_hooks);
        if(!item->valuestring)
        {
            cJSON_Delete(item);
            return NULL;
        }
    }

    return item;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %r14
pushq $0x40
popq %rdi
callq *0x52c5(%rip)           # 0xb220
testq %rax, %rax
je 0x5f95
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x80, 0x18(%rax)
movq %r14, %rdi
callq 0x6278
movq %rax, 0x20(%rbx)
testq %rax, %rax
jne 0x5f97
movq %rbx, %rdi
callq 0x4cca
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateObject
CJSON_PUBLIC(cJSON *) cJSON_CreateObject(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item)
    {
        item->type = cJSON_Object;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0x523a(%rip)           # 0xb220
testq %rax, %rax
je 0x6004
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x40, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateArray
CJSON_PUBLIC(cJSON *) cJSON_CreateArray(void)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if(item)
    {
        item->type=cJSON_Array;
    }

    return item;
}

// Assembly:
pushq %rax
pushq $0x40
popq %rdi
callq *0x51d6(%rip)           # 0xb220
testq %rax, %rax
je 0x6068
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x20, 0x18(%rax)
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_InsertItemInArray
CJSON_PUBLIC(void) cJSON_InsertItemInArray(cJSON *array, int which, cJSON *newitem)
{
    cJSON *after_inserted = NULL;

    if (which < 0)
    {
        return;
    }

    after_inserted = get_array_item(array, (size_t)which);
    if (after_inserted == NULL)
    {
        add_item_to_array(array, newitem);
        return;
    }

    newitem->next = after_inserted;
    newitem->prev = after_inserted->prev;
    after_inserted->prev = newitem;
    if (after_inserted == array->child)
    {
        array->child = newitem;
    }
    else
    {
        newitem->prev->next = newitem;
    }
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testl %esi, %esi
js 0x616c
movq %rdx, %rbx
movq %rdi, %r14
movl %esi, %esi
callq 0x59dc
testq %rax, %rax
je 0x6156
movq %rax, (%rbx)
movq 0x8(%rax), %rcx
movq %rcx, 0x8(%rbx)
movq %rbx, 0x8(%rax)
cmpq 0x10(%r14), %rax
je 0x6168
movq 0x8(%rbx), %rax
movq %rbx, (%rax)
jmp 0x616c
movq %r14, %rdi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x5aba
movq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_ReplaceItemViaPointer
CJSON_PUBLIC(cJSON_bool) cJSON_ReplaceItemViaPointer(cJSON * const parent, cJSON * const item, cJSON * replacement)
{
    if ((parent == NULL) || (replacement == NULL) || (item == NULL))
    {
        return false;
    }

    if (replacement == item)
    {
        return true;
    }

    replacement->next = item->next;
    replacement->prev = item->prev;

    if (replacement->next != NULL)
    {
        replacement->next->prev = replacement;
    }
    if (replacement->prev != NULL)
    {
        replacement->prev->next = replacement;
    }
    if (parent->child == item)
    {
        parent->child = replacement;
    }

    item->next = NULL;
    item->prev = NULL;
    cJSON_Delete(item);

    return true;
}

// Assembly:
pushq %rbx
xorl %ebx, %ebx
testq %rsi, %rsi
je 0x61c9
testq %rdi, %rdi
je 0x61c9
testq %rdx, %rdx
je 0x61c9
pushq $0x1
popq %rbx
cmpq %rsi, %rdx
je 0x61c9
movq (%rsi), %rcx
movq %rcx, (%rdx)
movq 0x8(%rsi), %rax
movq %rax, 0x8(%rdx)
testq %rcx, %rcx
je 0x61a9
movq %rdx, 0x8(%rcx)
movq 0x8(%rdx), %rax
testq %rax, %rax
je 0x61b1
movq %rdx, (%rax)
cmpq %rsi, 0x10(%rdi)
jne 0x61bb
movq %rdx, 0x10(%rdi)
xorps %xmm0, %xmm0
movups %xmm0, (%rsi)
movq %rsi, %rdi
callq 0x4cca
movl %ebx, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: replace_item_in_object
static cJSON_bool replace_item_in_object(cJSON *object, const char *string, cJSON *replacement, cJSON_bool case_sensitive)
{
    if ((replacement == NULL) || (string == NULL))
    {
        return false;
    }

    /* replace the name in the replacement */
    if (!(replacement->type & cJSON_StringIsConst) && (replacement->string != NULL))
    {
        cJSON_free(replacement->string);
    }
    replacement->string = (char*)cJSON_strdup((const unsigned char*)string, &global_hooks);
    replacement->type &= ~cJSON_StringIsConst;

    cJSON_ReplaceItemViaPointer(object, get_object_item(object, string, case_sensitive), replacement);

    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %ecx, %ebp
testq %rdx, %rdx
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
je 0x6220
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq %rdx, %rbx
movq %rsi, %r15
movq %rdi, %r14
testb $0x2, 0x19(%rdx)
jne 0x623e
movq 0x38(%rbx), %rdi
testq %rdi, %rdi
je 0x623e
callq *0x4fea(%rip)           # 0xb228
movq %r15, %rdi
callq 0x6278
movq %rax, 0x38(%rbx)
andb $-0x3, 0x19(%rbx)
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x5a03
movq %r14, %rdi
movq %rax, %rsi
movq %rbx, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x6174
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_strdup
static unsigned char* cJSON_strdup(const unsigned char* string, const internal_hooks * const hooks)
{
    size_t length = 0;
    unsigned char *copy = NULL;

    if (string == NULL)
    {
        return NULL;
    }

    length = strlen((const char*)string) + sizeof("");
    copy = (unsigned char*)hooks->allocate(length);
    if (copy == NULL)
    {
        return NULL;
    }
    memcpy(copy, string, length);

    return copy;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x62b2
movq %rdi, %rbx
callq 0x20e0
movq %rax, %r14
incq %r14
movq %r14, %rdi
callq *0x4f88(%rip)           # 0xb220
testq %rax, %rax
je 0x62b2
movq %rax, %rdi
movq %rbx, %rsi
movq %r14, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x21d0
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateStringReference
CJSON_PUBLIC(cJSON *) cJSON_CreateStringReference(const char *string)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item != NULL)
    {
        item->type = cJSON_String | cJSON_IsReference;
        item->valuestring = (char*)cast_away_const(string);
    }

    return item;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x40
popq %rdi
callq *0x4f57(%rip)           # 0xb220
testq %rax, %rax
je 0x62eb
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, (%rax)
movl $0x110, 0x18(%rax)      # imm = 0x110
movq %rbx, 0x20(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateObjectReference
CJSON_PUBLIC(cJSON *) cJSON_CreateObjectReference(const cJSON *child)
{
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item != NULL) {
        item->type = cJSON_Object | cJSON_IsReference;
        item->child = (cJSON*)cast_away_const(child);
    }

    return item;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x40
popq %rdi
callq *0x4f26(%rip)           # 0xb220
testq %rax, %rax
je 0x631c
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x140, 0x18(%rax)      # imm = 0x140
movq %rbx, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateArrayReference
CJSON_PUBLIC(cJSON *) cJSON_CreateArrayReference(const cJSON *child) {
    cJSON *item = cJSON_New_Item(&global_hooks);
    if (item != NULL) {
        item->type = cJSON_Array | cJSON_IsReference;
        item->child = (cJSON*)cast_away_const(child);
    }

    return item;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
pushq $0x40
popq %rdi
callq *0x4ef5(%rip)           # 0xb220
testq %rax, %rax
je 0x634d
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x30(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, (%rax)
movl $0x120, 0x18(%rax)      # imm = 0x120
movq %rbx, 0x10(%rax)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateIntArray
CJSON_PUBLIC(cJSON *) cJSON_CreateIntArray(const int *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if ((count < 0) || (numbers == NULL))
    {
        return NULL;
    }

    a = cJSON_CreateArray();
    for(i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber(numbers[i]);
        if (!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x63bc
movl %esi, %ebp
movq %rdi, %r14
callq 0x6040
testq %rax, %rax
je 0x63bc
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x63be
cvtsi2sdl (%r14,%r12,4), %xmm0
callq 0x5e13
testq %rax, %rax
je 0x63b4
testq %r12, %r12
je 0x63a8
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x63ac
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x6384
movq %rbx, %rdi
callq 0x4cca
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateFloatArray
CJSON_PUBLIC(cJSON *) cJSON_CreateFloatArray(const float *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if ((count < 0) || (numbers == NULL))
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for(i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber((double)numbers[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x643d
movl %esi, %ebp
movq %rdi, %r14
callq 0x6040
testq %rax, %rax
je 0x643d
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x643f
cvtss2sd (%r14,%r12,4), %xmm0
callq 0x5e13
testq %rax, %rax
je 0x6435
testq %r12, %r12
je 0x6429
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x642d
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x6405
movq %rbx, %rdi
callq 0x4cca
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateDoubleArray
CJSON_PUBLIC(cJSON *) cJSON_CreateDoubleArray(const double *numbers, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if ((count < 0) || (numbers == NULL))
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for(i = 0;a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateNumber(numbers[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p, n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x64be
movl %esi, %ebp
movq %rdi, %r14
callq 0x6040
testq %rax, %rax
je 0x64be
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x64c0
movsd (%r14,%r12,8), %xmm0
callq 0x5e13
testq %rax, %rax
je 0x64b6
testq %r12, %r12
je 0x64aa
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x64ae
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x6486
movq %rbx, %rdi
callq 0x4cca
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_CreateStringArray
CJSON_PUBLIC(cJSON *) cJSON_CreateStringArray(const char **strings, int count)
{
    size_t i = 0;
    cJSON *n = NULL;
    cJSON *p = NULL;
    cJSON *a = NULL;

    if ((count < 0) || (strings == NULL))
    {
        return NULL;
    }

    a = cJSON_CreateArray();

    for (i = 0; a && (i < (size_t)count); i++)
    {
        n = cJSON_CreateString(strings[i]);
        if(!n)
        {
            cJSON_Delete(a);
            return NULL;
        }
        if(!i)
        {
            a->child = n;
        }
        else
        {
            suffix_object(p,n);
        }
        p = n;
    }

    return a;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testl %esi, %esi
sets %al
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x653d
movl %esi, %ebp
movq %rdi, %r14
callq 0x6040
testq %rax, %rax
je 0x653d
movq %rax, %rbx
movl %ebp, %r15d
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq %r12, %r15
je 0x653f
movq (%r14,%r12,8), %rdi
callq 0x5eb7
testq %rax, %rax
je 0x6535
testq %r12, %r12
je 0x6529
movq %rax, (%r13)
movq %r13, 0x8(%rax)
jmp 0x652d
movq %rax, 0x10(%rbx)
incq %r12
movq %rax, %r13
jmp 0x6507
movq %rbx, %rdi
callq 0x4cca
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: cJSON_Minify
CJSON_PUBLIC(void) cJSON_Minify(char *json)
{
    char *into = json;

    if (json == NULL)
    {
        return;
    }

    while (json[0] != '\0')
    {
        switch (json[0])
        {
            case ' ':
            case '\t':
            case '\r':
            case '\n':
                json++;
                break;

            case '/':
                if (json[1] == '/')
                {
                    skip_oneline_comment(&json);
                }
                else if (json[1] == '*')
                {
                    skip_multiline_comment(&json);
                } else {
                    json++;
                }
                break;

            case '\"':
                minify_string(&json, (char**)&into);
                break;

            default:
                into[0] = json[0];
                json++;
                into++;
        }
    }

    /* and null-terminate. */
    *into = '\0';
}

// Assembly:
testq %rdi, %rdi
je 0x672a
movabsq $0x100002600, %rax      # imm = 0x100002600
movq %rdi, %rcx
movq %rdi, %rdx
movzbl (%rdi), %esi
cmpq $0x2f, %rsi
ja 0x669d
btq %rsi, %rax
jae 0x6667
incq %rdx
movq %rdx, %rdi
jmp 0x664d
cmpq $0x22, %rsi
je 0x66b3
cmpq $0x2f, %rsi
jne 0x669d
movzbl 0x1(%rdx), %esi
cmpl $0x2a, %esi
je 0x66f0
leaq 0x1(%rdx), %rdi
cmpl $0x2f, %esi
jne 0x664d
addq $0x2, %rdx
movq %rdx, %rdi
movzbl (%rdi), %edx
testl %edx, %edx
je 0x664d
incq %rdi
cmpl $0xa, %edx
jne 0x668c
jmp 0x664d
testl %esi, %esi
je 0x6727
movb %sil, (%rcx)
incq %rdx
incq %rcx
movq %rdx, %rdi
jmp 0x664d
movq %rdx, %rdi
movb $0x22, (%rcx)
addq $0x2, %rdi
incq %rcx
movb -0x1(%rdi), %dl
testb %dl, %dl
je 0x66e8
movb %dl, (%rcx)
movzbl -0x1(%rdi), %edx
cmpl $0x5c, %edx
je 0x66d9
cmpl $0x22, %edx
jne 0x66de
jmp 0x6713
cmpb $0x22, (%rdi)
je 0x66e3
incq %rdi
jmp 0x66bd
incq %rcx
jmp 0x66b6
decq %rdi
jmp 0x664d
addq $0x2, %rdx
movq %rdx, %rdi
movzbl (%rdi), %edx
cmpl $0x2a, %edx
je 0x6708
testl %edx, %edx
jne 0x670e
jmp 0x664d
cmpb $0x2f, 0x1(%rdi)
je 0x671e
incq %rdi
jmp 0x66f7
movb $0x22, (%rcx)
incq %rcx
jmp 0x664d
addq $0x2, %rdi
jmp 0x664d
movb $0x0, (%rcx)
retq
// File: /workspace/github_c_makefile_star2_O2/tomcatzh[P]RealityBenchmark/external/cJSON.c
// Function: parse_hex4
static unsigned parse_hex4(const unsigned char * const input)
{
    unsigned int h = 0;
    size_t i = 0;

    for (i = 0; i < 4; i++)
    {
        /* parse digit */
        if ((input[i] >= '0') && (input[i] <= '9'))
        {
            h += (unsigned int) input[i] - '0';
        }
        else if ((input[i] >= 'A') && (input[i] <= 'F'))
        {
            h += (unsigned int) 10 + input[i] - 'A';
        }
        else if ((input[i] >= 'a') && (input[i] <= 'f'))
        {
            h += (unsigned int) 10 + input[i] - 'a';
        }
        else /* invalid */
        {
            return 0;
        }

        if (i < 3)
        {
            /* shift left to make place for the next nibble */
            h = h << 4;
        }
    }

    return h;
}

// Assembly:
xorl %eax, %eax
pushq $-0x4
popq %rcx
pushq $-0x30
popq %rdx
pushq $-0x37
popq %rsi
pushq $-0x57
popq %r8
testq %rcx, %rcx
je 0x6c9b
movzbl 0x4(%rdi,%rcx), %r9d
leal -0x30(%r9), %r11d
movl %edx, %r10d
cmpb $0xa, %r11b
jb 0x6c84
leal -0x41(%r9), %r11d
movl %esi, %r10d
cmpb $0x6, %r11b
jb 0x6c84
leal -0x61(%r9), %r11d
movl %r8d, %r10d
cmpb $0x5, %r11b
ja 0x6c99
addl %eax, %r10d
addl %r9d, %r10d
movl %r10d, %eax
shll $0x4, %eax
incq %rcx
cmovel %r10d, %eax
jmp 0x6c52
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/main.c
// Function: evaluate
int evaluate(char *Input)
{
	
	float	Layer1_Neurons_CPU[IMG_WIDTH*IMG_HEIGHT],
				Layer2_Neurons_CPU[6*13*13],
				Layer3_Neurons_CPU[50*5*5],
				Layer4_Neurons_CPU[100];
	double Layer5_Neurons_CPU[10];
	double scoremax = 0.0;
	int i;

	int indexmax = -1;
	calculateLayer1(Input, Layer1_Neurons_CPU);
	calculateLayer2(Layer1_Neurons_CPU, Layer1_Weights_CPU, Layer2_Neurons_CPU);
	calculateLayer3(Layer2_Neurons_CPU, Layer2_Weights_CPU, Layer3_Neurons_CPU);
	calculateLayer4(Layer3_Neurons_CPU, Layer3_Weights_CPU, Layer4_Neurons_CPU);
	calculateLayer5(Layer4_Neurons_CPU, Layer4_Weights_CPU, Layer5_Neurons_CPU);

	scoremax = -999;
	indexmax = -1;
	for(i=0;i<10;i++)
	{
		if(Layer5_Neurons_CPU[i] > scoremax)
		{
			scoremax = Layer5_Neurons_CPU[i];
			indexmax = i;
		}
	}
	return indexmax;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x3280, %rsp           # imm = 0x3280
leaq -0xf20(%rbp), %rbx
movq %rbx, %rsi
callq 0x17c4
leaq 0x2e70(%rip), %rsi      # 0x4090
leaq -0x1f00(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x17f9
leaq 0x30c7(%rip), %rsi      # 0x4300
leaq -0x3290(%rbp), %rbx
movq %r14, %rdi
movq %rbx, %rdx
callq 0x1908
leaq 0xaa8e(%rip), %rsi      # 0xbce0
leaq -0x1f0(%rbp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x1a8c
leaq 0x84d25(%rip), %rsi     # 0x85f90
leaq -0x60(%rbp), %rdx
movq %r14, %rdi
callq 0x1b57
pushq $-0x1
popq %rax
movsd 0xd86(%rip), %xmm0      # 0x2008
xorl %ecx, %ecx
cmpq $0xa, %rcx
je 0x12a4
movsd -0x60(%rbp,%rcx,8), %xmm1
ucomisd %xmm0, %xmm1
cmoval %ecx, %eax
maxsd %xmm0, %xmm1
incq %rcx
movapd %xmm1, %xmm0
jmp 0x1284
addq $0x3280, %rsp           # imm = 0x3280
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/main.c
// Function: read_data
void read_data(const char * path, char *Input) {
	
	FILE *ptr_file;
	int32_t size;
	int i, j, idx;
	const int pd_offset = 62; //offset to pd (pixel data)
	const int bpl = BYTE_TO_BITS(4); // bits_per_line = bpl.
	char ch;
	
	// Open the B&W bitmap file of the given path.
	ptr_file = fopen(path, "rb");
	
	// Null pointer signifies an error :
	if (!ptr_file) {
		fprintf(stdout, "Failed opening the data.\n");
		exit(EXIT_FAILURE);
	}
	// Get the size of the bitmap file.
	fseek(ptr_file, 0, SEEK_END);
	size = ftell(ptr_file);
	
	// Skips header info.
	fseek(ptr_file, pd_offset, SEEK_SET);
	
	// Read bitmap : 
	idx = 0;
	for (i = 0; i < size - pd_offset; i++) {
		ch = fgetc(ptr_file);
		// Each byte represents 8 pixels in reverse order.
		for (j = BYTE_TO_BITS(1) - 1; j >= 0 ; j--) {
			/* 
			Consider zero padding : 
			3 bytes are padded.
			
			Store only significant pixel data.
			*/
			if((idx % bpl) < IMG_WIDTH) {
				Input[Y_POS(idx, bpl, IMG_HEIGHT) + (idx % bpl)] = (ch >> j & 0x1);
			}
			idx++;
		}
	}
	fclose(ptr_file);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
leaq 0xced(%rip), %rsi       # 0x2116
callq 0x10c0
testq %rax, %rax
je 0x14f2
movq %rax, %r14
xorl %r15d, %r15d
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x10b0
movq %r14, %rdi
callq 0x10a0
movq %rax, %r12
pushq $0x3e
popq %rsi
movq %r14, -0x38(%rbp)
movq %r14, %rdi
xorl %edx, %edx
callq 0x10b0
cmpl $0x3f, %r12d
pushq $0x3e
popq %rax
cmovgel %r12d, %eax
addl $-0x3e, %eax
movl %eax, -0x2c(%rbp)
pushq $0x20
popq %r12
pushq $-0x20
popq %r14
xorl %r13d, %r13d
cmpl -0x2c(%rbp), %r13d
je 0x14db
movq -0x38(%rbp), %rdi
callq 0x1070
movsbl %al, %edi
leal 0x8(%r15), %esi
pushq $0x7
popq %r8
cmpl $-0x1, %r8d
je 0x14d3
movl %r15d, %eax
cltd
idivl %r12d
cmpl $0x1c, %edx
jg 0x14cb
movl %edx, %ecx
movl %r15d, %eax
cltd
idivl %r14d
imull $0x1d, %eax, %eax
btl %r8d, %edi
leal 0x32c(%rcx,%rax), %eax
cltq
setb (%rbx,%rax)
incl %r15d
decl %r8d
jmp 0x149c
incl %r13d
movl %esi, %r15d
jmp 0x1482
movq -0x38(%rbp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
movq 0x2adf(%rip), %rax      # 0x3fd8
movq (%rax), %rcx
leaq 0xc16(%rip), %rdi       # 0x2119
pushq $0x19
popq %rsi
pushq $0x1
popq %rdx
callq 0x10f0
pushq $0x1
popq %rdi
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/main.c
// Function: write_data
void write_data(char (*Input)[841], int size) 
{
	FILE *ptr_file;
	int i, j, k;
	// Create a new data header file.
	ptr_file = fopen("data.h", "wb");
	// Null pointer signifies an error :
	if (!ptr_file) {
		fprintf(stdout, "Failed creating new header files\n");
		exit(EXIT_FAILURE);
	}
	fprintf(ptr_file,	"#ifndef _DATA_H_\n"\
						"#define	_DATA_H_\n"\
						"\tchar Input[10][29*29] = {");
	for (i = 0; i < size; i++) {
		fputs("{\n\t\t", ptr_file);
		for (j = 0; j < IMG_HEIGHT; j++) {
			for (k = 0; k < IMG_WIDTH; k++) {				
				fputc('0' + Input[i][j * IMG_HEIGHT + k], ptr_file);
				if (j == (IMG_HEIGHT - 1) && k == (IMG_WIDTH - 1)) 
					fputs("}", ptr_file);
				else {
					fputc(',', ptr_file);
				}
				
			}
			if (j < (IMG_HEIGHT - 1))
				fputs("\n\t\t", ptr_file);
		}
		if (i < (size - 1))
			fputs(",\n\t\t", ptr_file);
		
	}					
	fputs("};\n", ptr_file);
	fprintf(ptr_file, "#endif /* DATA_H_ */");
	fclose(ptr_file);
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %esi, %r14d
movq %rdi, %r13
leaq 0xbff(%rip), %rdi       # 0x2133
leaq 0xbff(%rip), %rsi       # 0x213a
callq 0x10c0
testq %rax, %rax
je 0x1675
movq %rax, %rbx
leaq 0xc0c(%rip), %rdi       # 0x215f
pushq $0x3c
popq %rsi
pushq $0x1
popq %rdx
movq %rax, %rcx
callq 0x10f0
leal -0x1(%r14), %eax
cltq
movq %rax, -0x30(%rbp)
xorl %r12d, %r12d
testl %r14d, %r14d
cmovlel %r12d, %r14d
movq %r14, -0x38(%rbp)
cmpq %r14, %r12
je 0x163b
movq %r12, -0x40(%rbp)
leaq 0xc0f(%rip), %rdi       # 0x219c
movq %rbx, %rsi
callq 0x1050
movq %r13, -0x48(%rbp)
xorl %r15d, %r15d
cmpq $0x1d, %r15
je 0x160b
pushq $-0x1d
popq %r12
testq %r12, %r12
je 0x15ed
cmpq $0x1c, %r15
setne %r14b
movsbl 0x1d(%r13,%r12), %edi
addl $0x30, %edi
movq %rbx, %rsi
callq 0x1080
incq %r12
setne %al
orb %r14b, %al
jne 0x15e0
leaq 0xbcb(%rip), %rdi       # 0x21a1
movq %rbx, %rsi
callq 0x1050
jmp 0x15a6
pushq $0x2c
popq %rdi
movq %rbx, %rsi
callq 0x1080
jmp 0x15a6
cmpq $0x1c, %r15
je 0x1602
leaq 0xbaa(%rip), %rdi       # 0x21a4
movq %rbx, %rsi
callq 0x1050
incq %r15
addq $0x1d, %r13
jmp 0x159c
movq -0x40(%rbp), %r12
cmpq -0x30(%rbp), %r12
jge 0x1624
leaq 0xb87(%rip), %rdi       # 0x21a3
movq %rbx, %rsi
callq 0x1050
incq %r12
movq -0x48(%rbp), %r13
addq $0x349, %r13            # imm = 0x349
movq -0x38(%rbp), %r14
jmp 0x1579
leaq 0xad0(%rip), %rdi       # 0x2112
movq %rbx, %rsi
callq 0x1050
leaq 0xb57(%rip), %rdi       # 0x21a8
pushq $0x14
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x10f0
movq %rbx, %rdi
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1030
movq 0x295c(%rip), %rax      # 0x3fd8
movq (%rax), %rcx
leaq 0xab7(%rip), %rdi       # 0x213d
pushq $0x21
popq %rsi
pushq $0x1
popq %rdx
callq 0x10f0
pushq $0x1
popq %rdi
callq 0x10e0
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/main.c
// Function: write_weights
void write_weights(FILE *ptr_file1, FILE *ptr_file2, const char* layer_name, float *Layer_Weights_CPU, int size) {
	
	#define fprintfs(file1, file2, str) 	fprintf(file1, str);\
											fprintf(file2, str)
	int i;
	fprintf(ptr_file1, "short %s[%d] = {", layer_name, size);
	fprintf(ptr_file2, "char %s[%d] = {", layer_name, size);
	for (i = 0; i < size; i++) {
		fprintf(ptr_file1, "%d", (short)(Layer_Weights_CPU[i] * 100));
		fprintf(ptr_file2, "%d", (char)(Layer_Weights_CPU[i] * 10));
		if (i < (size - 1))
			fprintfs(ptr_file1, ptr_file2, ", ");
	}
	fprintfs(ptr_file1, ptr_file2, "};\n");
	
	#undef fprintfs
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl %r8d, %r15d
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r14
leaq 0xa2b(%rip), %rsi       # 0x20eb
movl %r8d, %ecx
xorl %eax, %eax
callq 0x1090
leaq 0xa2b(%rip), %rsi       # 0x20fc
movq %rbx, %rdi
movq %r13, %rdx
movl %r15d, %ecx
xorl %eax, %eax
callq 0x1090
leal -0x1(%r15), %eax
testl %r15d, %r15d
movl $0x0, %ecx
cmovlel %ecx, %r15d
movq %r15, -0x38(%rbp)
cltq
movq %rax, -0x30(%rbp)
leaq 0xa0a(%rip), %r13       # 0x210c
xorl %r15d, %r15d
cmpq %r15, -0x38(%rbp)
je 0x1784
movss (%r12,%r15,4), %xmm0
mulss 0x8f7(%rip), %xmm0      # 0x2010
cvttss2si %xmm0, %eax
movswl %ax, %edx
movq %r14, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1090
movss (%r12,%r15,4), %xmm0
mulss 0x8d9(%rip), %xmm0      # 0x2014
cvttss2si %xmm0, %eax
movsbl %al, %edx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x1090
cmpq -0x30(%rbp), %r15
jge 0x176a
leaq 0x9b3(%rip), %rdi       # 0x210f
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %r14, %rcx
callq 0x10f0
leaq 0x99e(%rip), %rdi       # 0x210f
pushq $0x2
popq %rsi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x10f0
incq %r15
jmp 0x1705
leaq 0x987(%rip), %r15       # 0x2112
pushq $0x3
popq %r12
pushq $0x1
popq %r13
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %r14, %rcx
callq 0x10f0
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
movq %rbx, %rcx
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x10f0
nop
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/neural_network.c
// Function: calculateLayer1
void calculateLayer1(char* input, float* Layer1_Neurons_CPU){
	int i, j;
	for (i = 0; i < IMG_HEIGHT; i++) 
		for (j = 0; j < IMG_WIDTH; j++) 
			Layer1_Neurons_CPU[i * IMG_HEIGHT + j] = input[i * IMG_HEIGHT + j];
		
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
xorl %eax, %eax
cmpq $0x1d, %rax
je 0x17f7
xorl %ecx, %ecx
cmpq $0x1d, %rcx
je 0x17ea
movsbl (%rdi,%rcx), %edx
cvtsi2ss %edx, %xmm0
movss %xmm0, (%rsi,%rcx,4)
incq %rcx
jmp 0x17d2
incq %rax
addq $0x74, %rsi
addq $0x1d, %rdi
jmp 0x17ca
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/neural_network.c
// Function: calculateLayer2
void calculateLayer2(float* Layer1_Neurons_CPU, WEIGHT_TYPE* Layer1_Weights_CPU, float* Layer2_Neurons_CPU){
	float somme;
	int i,j,k,m,n;
	for(i=0;i<6;i++)
		for(j=0;j<13;j++)
			for(k=0;k<13;k++){
				somme = Layer1_Weights_CPU[26*i];
				for(m=0;m<5;m++)
					for(n=0;n<5;n++)
						somme += Layer1_Weights_CPU[26*i+5*m+n+1] * Layer1_Neurons_CPU[29*(m+2*j)+n+2*k];
				Layer2_Neurons_CPU[13*13*i+13*j+k] = SIGMOID(CONV(somme));
			}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x38(%rbp)
movq %rdi, -0x30(%rbp)
movq %rsi, -0x60(%rbp)
leaq 0x4(%rsi), %r12
xorl %eax, %eax
cmpq $0x6, %rax
je 0x18f9
imulq $0x1a, %rax, %rbx
movq %rax, -0x40(%rbp)
imulq $0x2a4, %rax, %rax      # imm = 0x2A4
addq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %r15
xorl %eax, %eax
cmpq $0xd, %rax
je 0x18e9
movq %rax, -0x50(%rbp)
imulq $0x34, %rax, %r13
addq -0x48(%rbp), %r13
movq %r15, -0x58(%rbp)
xorl %r14d, %r14d
cmpq $0xd, %r14
je 0x18d2
movq -0x60(%rbp), %rax
movss (%rax,%rbx,4), %xmm0
movq %r12, %rax
movq %r15, %rcx
xorl %edx, %edx
cmpq $0x5, %rdx
je 0x18a5
xorl %esi, %esi
cmpq $0x5, %rsi
je 0x1898
movss (%rax,%rsi,4), %xmm1
mulss (%rcx,%rsi,4), %xmm1
addss %xmm1, %xmm0
incq %rsi
jmp 0x187f
incq %rdx
addq $0x74, %rcx
addq $0x14, %rax
jmp 0x1877
cvtss2sd %xmm0, %xmm0
mulsd 0x937(%rip), %xmm0      # 0x21e8
callq 0x10d0
mulsd 0x932(%rip), %xmm0      # 0x21f0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r13,%r14,4)
incq %r14
addq $0x8, %r15
jmp 0x1860
movq -0x50(%rbp), %rax
incq %rax
movq -0x58(%rbp), %r15
addq $0xe8, %r15
jmp 0x1843
movq -0x40(%rbp), %rax
incq %rax
addq $0x68, %r12
jmp 0x181c
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/neural_network.c
// Function: calculateLayer3
void calculateLayer3(float* Layer2_Neurons_CPU, WEIGHT_TYPE* Layer2_Weights_CPU, float* Layer3_Neurons_CPU){
	float somme;
	int i,j,k,m,n;
	for( i=0;i<50;i++)
		for(j=0;j<5;j++)
			for(k=0;k<5;k++){
				somme = Layer2_Weights_CPU[26*6*i];

				for( m=0;m<5;m++)
					for( n=0;n<5;n++){
						somme += Layer2_Weights_CPU[26*6*i+1+6*(n+5*m)	] * Layer2_Neurons_CPU[13*13*0+13*(2*j+m)+(2*k+n)];
						somme += Layer2_Weights_CPU[26*6*i+1+6*(n+5*m)+1] * Layer2_Neurons_CPU[13*13*1+13*(2*j+m)+(2*k+n)];
						somme += Layer2_Weights_CPU[26*6*i+1+6*(n+5*m)+2] * Layer2_Neurons_CPU[13*13*2+13*(2*j+m)+(2*k+n)];
						somme += Layer2_Weights_CPU[26*6*i+1+6*(n+5*m)+3] * Layer2_Neurons_CPU[13*13*3+13*(2*j+m)+(2*k+n)];
						somme += Layer2_Weights_CPU[26*6*i+1+6*(n+5*m)+4] * Layer2_Neurons_CPU[13*13*4+13*(2*j+m)+(2*k+n)];
						somme += Layer2_Weights_CPU[26*6*i+1+6*(n+5*m)+5] * Layer2_Neurons_CPU[13*13*5+13*(2*j+m)+(2*k+n)];

					}
				Layer3_Neurons_CPU[5*5*i+5*j+k] = SIGMOID(CONV(somme));
				
			}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, -0x38(%rbp)
addq $0xd34, %rdi            # imm = 0xD34
movq %rdi, -0x30(%rbp)
movq %rsi, -0x60(%rbp)
leaq 0x18(%rsi), %r12
xorl %eax, %eax
cmpq $0x32, %rax
je 0x1a7d
imulq $0x9c, %rax, %rbx
movq %rax, -0x40(%rbp)
imulq $0x64, %rax, %rax
addq -0x38(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x30(%rbp), %r15
xorl %eax, %eax
cmpq $0x5, %rax
je 0x1a6a
movq %rax, -0x50(%rbp)
imulq $0x14, %rax, %r13
addq -0x48(%rbp), %r13
movq %r15, -0x58(%rbp)
xorl %r14d, %r14d
cmpq $0x5, %r14
je 0x1a56
movq -0x60(%rbp), %rax
movss (%rax,%rbx,4), %xmm0
movq %r12, %rax
movq %r15, %rcx
xorl %edx, %edx
cmpq $0x5, %rdx
je 0x1a26
movq %rax, %rsi
xorl %edi, %edi
cmpq $0x5, %rdi
je 0x1a16
movss -0x14(%rsi), %xmm1
movss -0x10(%rsi), %xmm2
mulss -0xd34(%rcx,%rdi,4), %xmm1
mulss -0xa90(%rcx,%rdi,4), %xmm2
addss %xmm0, %xmm1
movss -0xc(%rsi), %xmm0
mulss -0x7ec(%rcx,%rdi,4), %xmm0
addss %xmm1, %xmm2
movss -0x8(%rsi), %xmm1
mulss -0x548(%rcx,%rdi,4), %xmm1
addss %xmm2, %xmm0
movss -0x4(%rsi), %xmm2
mulss -0x2a4(%rcx,%rdi,4), %xmm2
addss %xmm0, %xmm1
movss (%rsi), %xmm0
mulss (%rcx,%rdi,4), %xmm0
addss %xmm1, %xmm2
addss %xmm2, %xmm0
incq %rdi
addq $0x18, %rsi
jmp 0x19a0
incq %rdx
addq $0x34, %rcx
addq $0x78, %rax
jmp 0x1991
cvtss2sd %xmm0, %xmm0
mulsd 0x7b6(%rip), %xmm0      # 0x21e8
callq 0x10d0
mulsd 0x7b1(%rip), %xmm0      # 0x21f0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%r13,%r14,4)
incq %r14
addq $0x8, %r15
jmp 0x1976
movq -0x50(%rbp), %rax
incq %rax
movq -0x58(%rbp), %r15
addq $0x68, %r15
jmp 0x1959
movq -0x40(%rbp), %rax
incq %rax
addq $0x270, %r12            # imm = 0x270
jmp 0x1932
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/neural_network.c
// Function: calculateLayer4
void calculateLayer4(float* Layer3_Neurons_CPU, WEIGHT_TYPE* Layer3_Weights_CPU, float* Layer4_Neurons_CPU){
	float somme;
	int i, j, k, m;
	for( i=0;i<100;i++){
		somme = Layer3_Weights_CPU[i*(1+50*25)];
		for( j=0;j<50;j++)
			for( k=0;k<5;k++)
				for ( m=0;m<5;m++)
					somme += Layer3_Weights_CPU[i*(1+50*25)+1 + m + k*5 + j*25] * Layer3_Neurons_CPU[m+5*k+25*j];

		Layer4_Neurons_CPU[i] = SIGMOID(CONV(somme));
	}

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x4(%rsi), %r12
xorl %r13d, %r13d
cmpq $0x64, %r13
je 0x1b48
imulq $0x138c, %r13, %rax     # imm = 0x138C
movss (%r14,%rax), %xmm0
movq %r12, %rax
movq %r15, %rcx
xorl %edx, %edx
cmpq $0x32, %rdx
je 0x1b16
movq %rax, %rsi
movq %rcx, %rdi
xorl %r8d, %r8d
cmpq $0x5, %r8
je 0x1b09
xorl %r9d, %r9d
cmpq $0x5, %r9
je 0x1afc
movss (%rsi,%r9,4), %xmm1
mulss (%rdi,%r9,4), %xmm1
addss %xmm1, %xmm0
incq %r9
jmp 0x1ae1
incq %r8
addq $0x14, %rdi
addq $0x14, %rsi
jmp 0x1ad8
incq %rdx
addq $0x64, %rcx
addq $0x64, %rax
jmp 0x1ac9
cvtss2sd %xmm0, %xmm0
mulsd 0x6c6(%rip), %xmm0      # 0x21e8
callq 0x10d0
mulsd 0x6c1(%rip), %xmm0      # 0x21f0
cvtsd2ss %xmm0, %xmm0
movss %xmm0, (%rbx,%r13,4)
incq %r13
addq $0x138c, %r12           # imm = 0x138C
jmp 0x1aaa
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/CerfVert94[P]lenet_cnn/neural_network.c
// Function: calculateLayer5
void calculateLayer5(float* Layer4_Neurons_CPU, WEIGHT_TYPE* Layer4_Weights_CPU, double* Layer5_Neurons_CPU){
	float somme;
	int i, j;
	for( i=0;i<10;i++){
		somme = Layer4_Weights_CPU[101*i];
		for( j=0;j<100;j++)
			somme += Layer4_Weights_CPU[1+101*i+j] * Layer4_Neurons_CPU[j];
		Layer5_Neurons_CPU[i] = SIGMOID(CONV(somme));
		
	}
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x4(%rsi), %r12
xorl %r13d, %r13d
cmpq $0xa, %r13
je 0x1bd0
imulq $0x194, %r13, %rax      # imm = 0x194
movss (%r14,%rax), %xmm0
xorl %eax, %eax
cmpq $0x64, %rax
je 0x1ba5
movss (%r12,%rax,4), %xmm1
mulss (%r15,%rax,4), %xmm1
addss %xmm1, %xmm0
incq %rax
jmp 0x1b8a
cvtss2sd %xmm0, %xmm0
mulsd 0x637(%rip), %xmm0      # 0x21e8
callq 0x10d0
mulsd 0x632(%rip), %xmm0      # 0x21f0
movsd %xmm0, (%rbx,%r13,8)
incq %r13
addq $0x194, %r12            # imm = 0x194
jmp 0x1b75
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OhYee[P]computer_application_programming_experiment/hash_search/hashtable_search/hashtable_search.c
// Function: hash
int hash(char *s, int limit) {
    unsigned int code = 0;
    char *       ptr = s;

    int param = 1;
    while (compare_char(*ptr, '\0') != 0) {
        // code = code ^ (*ptr);
        code += (param * (*ptr)) % limit;
        param = (param * 9999991) % limit;
        ++ptr;
    }
    code = (code ^ 9999901) % limit;
    return code;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
pushq $0x1
popq %r15
xorl %ebp, %ebp
movsbl (%r14), %edi
xorl %esi, %esi
callq 0x2031
testl %eax, %eax
je 0x2fdd
movsbl (%r14), %eax
imull %r15d, %eax
cltd
idivl %ebx
addl %edx, %ebp
imull $0x989677, %r15d, %eax  # imm = 0x989677
cltd
idivl %ebx
incq %r14
movl %edx, %r15d
jmp 0x2faf
xorl $0x98961d, %ebp         # imm = 0x98961D
movl %ebp, %eax
xorl %edx, %edx
divl %ebx
movl %edx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O2/OhYee[P]computer_application_programming_experiment/hash_search/hashtable_search/hashtable_search.c
// Function: ht_init
hash_table *ht_init(int length) {
    hash_table *ht = mp_new(sizeof(hash_table));
    ht->length = length;
    ht->array = mp_new(ht->length * sizeof(link_list *));
    memset(ht->array, 0, ht->length * sizeof(link_list *));
    return ht;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl %edi, %ebx
pushq $0x10
popq %rdi
callq 0x22fd
movq %rax, %r14
movl %ebx, 0x8(%rax)
shll $0x3, %ebx
movl %ebx, %edi
callq 0x22fd
movq %rax, (%r14)
movslq 0x8(%r14), %rdx
shlq $0x3, %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x10a0
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/OhYee[P]computer_application_programming_experiment/hash_search/hashtable_search/hashtable_search.c
// Function: ht_add
void ht_add(hash_table *ht, char *s) {
    unsigned int code = hash(s, ht->length);
    link_list *       ptr = ht->array[code];

    if (ptr == NULL) {
        ptr = ht->array[code] = lk_init();
    }

    char *ss = mp_new(sizeof(char) * (strlen(s) + 1));
    strcpy(ss, s);
    lk_add(ptr, ss);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
movl 0x8(%rdi), %esi
movq %rbx, %rdi
callq 0x2f9d
movq (%r15), %rcx
movl %eax, %r12d
movq (%rcx,%r12,8), %r14
testq %r14, %r14
jne 0x306d
xorl %eax, %eax
callq 0x2598
movq %rax, %r14
movq (%r15), %rax
movq %r14, (%rax,%r12,8)
movq %rbx, %rdi
callq 0x1080
leal 0x1(%rax), %edi
callq 0x22fd
movq %rax, %r15
movq %rax, %rdi
movq %rbx, %rsi
callq 0x1040
movq %r14, %rdi
movq %r15, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x25dc
// File: /workspace/github_c_makefile_star2_O2/OhYee[P]computer_application_programming_experiment/hash_search/hashtable_search/hashtable_search.c
// Function: ht_exist
boolean ht_exist(hash_table *ht, char *s) {
    int   code = hash(s, ht->length);
    link_list *ptr = ht->array[code];

    if (ptr == NULL) {
        return F;
    }
    return NULL != lk_search(ptr, s, compare);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movl 0x8(%rdi), %esi
movq %rbx, %rdi
callq 0x2f9d
movq (%r14), %rcx
cltq
movq (%rcx,%rax,8), %rdi
testq %rdi, %rdi
je 0x30e0
leaq -0x13f(%rip), %rdx      # 0x2f8c
movq %rbx, %rsi
callq 0x2664
movq %rax, %rcx
xorl %eax, %eax
testq %rcx, %rcx
setne %al
jmp 0x30e9
leaq 0xfb9(%rip), %rax       # 0x40a0
movl (%rax), %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O2/endeav0r[P]hsvm/src/disassembler.c
// Function: disassembler_load
unsigned char * disassembler_load (const char * filename, size_t * filesize)
{
    FILE * fh;
    unsigned char * buf;

    fh = fopen(filename, "rb");
    if (fh == NULL) {
        fprintf(stderr, "could not open file %s\n", filename);
        return NULL;
    }

    fseek(fh, 0, SEEK_END);
    *filesize = ftell(fh);
    fseek(fh, 0, SEEK_SET);

    buf = (unsigned char *) malloc(*filesize);

    fread(buf, 1, *filesize, fh);

    fclose(fh);

    return buf;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %r15
leaq 0x2fde(%rip), %rsi      # 0x439c
callq 0x1250
testq %rax, %rax
je 0x141f
movq %rax, %rbx
pushq $0x2
popq %rdx
movq %rax, %rdi
xorl %esi, %esi
callq 0x11f0
movq %rbx, %rdi
callq 0x11b0
movq %rax, (%r14)
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x11f0
movq (%r14), %r15
movq %r15, %rdi
callq 0x11d0
movq %rax, %r14
pushq $0x1
popq %rsi
movq %rax, %rdi
movq %r15, %rdx
movq %rbx, %rcx
callq 0x10c0
movq %rbx, %rdi
callq 0x10e0
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
movq 0x5bca(%rip), %rax      # 0x6ff0
movq (%rax), %rdi
leaq 0x2bd4(%rip), %rsi      # 0x4004
xorl %r14d, %r14d
movq %r15, %rdx
xorl %eax, %eax
callq 0x11a0
jmp 0x1416