LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: ElementConstructor(Tree*, Types, char**, unsigned long)
bool ElementConstructor (Tree* tree, Types type, char** ind, size_t len)
{
    char* str = nullptr;

    if (*ind)
    {
        str = (char*) calloc (len + 1, sizeof (*str));
        if (!str)
        {
            printf ("Memory error!\n");
            return 1;
        }

        strncpy (str, *ind, len);
        *ind += len;
    }
    else
        assert (!len);

    element push = { type, nullptr, nullptr, str, len };
    StackPush (&(tree->stk), push);

    if (tree->stk.status_error != STK_GOOD)
        return 1;

    return 0;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %r14
movq %rdi, %rbx
movq (%rdx), %r15
testq %r15, %r15
je 0x3232
movq %rdx, %r12
movl %esi, -0x2c(%rbp)
leaq 0x1(%r14), %rdi
movl $0x1, %esi
callq 0x10a0
testq %rax, %rax
je 0x327c
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1070
addq %r14, %r15
movq %r15, (%r12)
movl -0x2c(%rbp), %esi
jmp 0x323a
testq %r14, %r14
jne 0x3299
xorl %r13d, %r13d
leaq 0x8(%rbx), %rdi
movl %esi, -0x60(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, -0x58(%rbp)
movq %r13, -0x48(%rbp)
movq %r14, -0x40(%rbp)
movb $0x0, -0x38(%rbp)
movups -0x60(%rbp), %xmm0
movups -0x50(%rbp), %xmm1
movups -0x40(%rbp), %xmm2
movups %xmm2, 0x20(%rsp)
movups %xmm1, 0x10(%rsp)
movups %xmm0, (%rsp)
callq 0x4025
cmpl $0x0, 0x30(%rbx)
setne %al
jmp 0x328a
leaq 0x2a05(%rip), %rdi      # 0x5c88
callq 0x1180
movb $0x1, %al
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x277a(%rip), %rdi      # 0x5a1a
leaq 0x2728(%rip), %rsi      # 0x59cf
leaq 0x2771(%rip), %rcx      # 0x5a1f
movl $0x2f, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: ElementDestructor(element*)
void ElementDestructor (element* el)
{
    assert (el);

    free (el->ind);
    *el = STK_POISON;
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x32e4
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0x1120
xorps %xmm0, %xmm0
movups %xmm0, 0x19(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
leaq 0x213a(%rip), %rdi      # 0x5425
leaq 0x26dd(%rip), %rsi      # 0x59cf
leaq 0x275e(%rip), %rcx      # 0x5a57
movl $0x3c, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: CreateGraph(Tree*)
void CreateGraph (Tree* tree)
{
    assert (tree);

    FILE* graph = fopen ("AllDumps/out.dot", "w");
    assert (graph);
    fprintf (graph, "digraph G{\n" "rankdir = HR;\n node[shape=box];\n");

    if (tree->head)
    {
        fprintf (graph, "\"Point: %p\\n Type: %d\\n %s\";\n",
            tree->head, tree->head->type, tree->head->ind);
        ElementGraph (graph, tree->head);
    }
    else
        fprintf (graph, "\"No elements\";\n");

    fprintf (graph, "}");
    fclose (graph);

    system ("dot -Tpng AllDumps/out.dot -o AllDumps/gr.png");
    // system ("start AllDumps/gr.png");

    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x33b8
movq %rdi, %r14
leaq 0x2775(%rip), %rdi      # 0x5a92
leaq 0x2962(%rip), %rsi      # 0x5c86
callq 0x1110
testq %rax, %rax
je 0x33d7
movq %rax, %rbx
leaq 0x276d(%rip), %rdi      # 0x5aa9
movl $0x2b, %esi
movl $0x1, %edx
movq %rax, %rcx
callq 0x11a0
movq (%r14), %rdx
testq %rdx, %rdx
je 0x337a
movl (%rdx), %ecx
movq 0x18(%rdx), %r8
leaq 0x27f4(%rip), %rsi      # 0x5b57
movq %rbx, %rdi
xorl %eax, %eax
callq 0x1160
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x33f6
jmp 0x3393
leaq 0x2754(%rip), %rdi      # 0x5ad5
movl $0xf, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x11a0
movl $0x7d, %edi
movq %rbx, %rsi
callq 0x1140
movq %rbx, %rdi
callq 0x10f0
leaq 0x2736(%rip), %rdi      # 0x5ae5
popq %rbx
popq %r14
popq %rbp
jmp 0x10d0
leaq 0x260b(%rip), %rdi      # 0x59ca
leaq 0x2609(%rip), %rsi      # 0x59cf
leaq 0x26ac(%rip), %rcx      # 0x5a79
movl $0x45, %edx
callq 0x1090
leaq 0x26c5(%rip), %rdi      # 0x5aa3
leaq 0x25ea(%rip), %rsi      # 0x59cf
leaq 0x268d(%rip), %rcx      # 0x5a79
movl $0x48, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: ElementGraph(_IO_FILE*, element*)
void ElementGraph (FILE* graph, element* el)
{
    assert (graph);
    assert (el);

    if (el->left > PARSE_ERR)
    {
        fprintf (graph, "\"Point: %p\\n Type: %d\\n %s\" -> "
                        "\"Point: %p\\n Type: %d\\n %s\";\n",
                el,             el->type,       el->ind,
                el->left, el->left->type, el->left->ind);

        ElementGraph (graph, el->left);
    }

    if (el->right > PARSE_ERR)
    {
        fprintf (graph, "\"Point: %p\\n Type: %d\\n %s\" -> "
                        "\"Point: %p\\n Type: %d\\n %s\";\n",
                        el,        el->type,        el->ind,
                 el->right, el->right->type, el->right->ind);

        ElementGraph (graph, el->right);
    }

    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x34c4
movq %rsi, %rbx
testq %rsi, %rsi
je 0x349a
movq %rdi, %r14
leaq 0x2719(%rip), %r15      # 0x5b38
movq 0x8(%rbx), %r9
movq 0x5d46(%rip), %rax      # 0x9170
cmpq %rax, %r9
jbe 0x3465
movl (%rbx), %ecx
movq 0x18(%rbx), %r8
movl (%r9), %r10d
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
pushq 0x18(%r9)
pushq %r10
callq 0x1160
addq $0x10, %rsp
movq 0x8(%rbx), %rsi
movq %r14, %rdi
callq 0x33f6
movq 0x5d0b(%rip), %rax      # 0x9170
movq 0x10(%rbx), %r9
cmpq %rax, %r9
jbe 0x34b9
movl (%rbx), %ecx
movq 0x18(%rbx), %r8
movl (%r9), %r10d
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rdx
xorl %eax, %eax
pushq 0x18(%r9)
pushq %r10
callq 0x1160
addq $0x10, %rsp
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x341f
leaq 0x1f84(%rip), %rdi      # 0x5425
leaq 0x2527(%rip), %rsi      # 0x59cf
leaq 0x2664(%rip), %rcx      # 0x5b13
movl $0x60, %edx
callq 0x1090
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x25d8(%rip), %rdi      # 0x5aa3
leaq 0x24fd(%rip), %rsi      # 0x59cf
leaq 0x263a(%rip), %rcx      # 0x5b13
movl $0x5f, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: ReadTxt(char**, char const*)
size_t ReadTxt (char** text, const char* file_name)
{
    assert (text);
    assert (file_name);

    FILE* file = fopen (file_name, "r");
    if (file == nullptr)
    {
        printf ("[Input error] Unable to open file \"%s\"\n", file_name);
        return 0;
    }

    size_t num_symbols = CountSize (file);

    *text = (char*)calloc (num_symbols + 4, sizeof (**text));

    if (*text == nullptr)
    {
        printf ("[Error] Unable to allocate memory\n");
        return 0;
    }

    fread (*text, sizeof (**text), num_symbols, file);
    fclose (file);

    (*text)[num_symbols] = '\0';

    return num_symbols;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
testq %rdi, %rdi
je 0x35c9
movq %rsi, %r12
testq %rsi, %rsi
je 0x35e8
movq %rdi, %rbx
leaq 0x28ec(%rip), %rsi      # 0x5e2e
movq %r12, %rdi
callq 0x1110
testq %rax, %rax
je 0x3598
movq %rax, %r15
movq %rax, %rdi
callq 0x34e3
movslq %eax, %r14
leaq 0x4(%r14), %rdi
movl $0x1, %esi
callq 0x10a0
movq %rax, (%rbx)
testq %rax, %rax
je 0x35ae
movl $0x1, %esi
movq %rax, %rdi
movq %r14, %rdx
movq %r15, %rcx
callq 0x1170
movq %r15, %rdi
callq 0x10f0
movq (%rbx), %rax
movb $0x0, (%rax,%r14)
jmp 0x35bd
leaq 0x2606(%rip), %rdi      # 0x5ba5
xorl %r14d, %r14d
movq %r12, %rsi
xorl %eax, %eax
callq 0x1040
jmp 0x35bd
leaq 0x26e1(%rip), %rdi      # 0x5c96
callq 0x1180
xorl %r14d, %r14d
movq %r14, %rax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1de5(%rip), %rdi      # 0x53b5
leaq 0x23f8(%rip), %rsi      # 0x59cf
leaq 0x2597(%rip), %rcx      # 0x5b75
movl $0x84, %edx
callq 0x1090
leaq 0x25ac(%rip), %rdi      # 0x5b9b
leaq 0x23d9(%rip), %rsi      # 0x59cf
leaq 0x2578(%rip), %rcx      # 0x5b75
movl $0x85, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: SaveTree(Tree*)
void SaveTree (Tree* tree)
{
    assert (tree);

    FILE* tree_file = fopen ("CompileResult/CreatedTree.txt", "w");
    if (!tree_file)
    {
        printf ("Save error: Unable to open file \"CompileResult/CreatedTree.txt\"\n");
        return;
    }

    SaveElem (tree->head, tree_file, 0);
    fclose (tree_file);
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x365a
movq %rdi, %rbx
leaq 0x25c6(%rip), %rdi      # 0x5be3
leaq 0x2662(%rip), %rsi      # 0x5c86
callq 0x1110
testq %rax, %rax
je 0x364a
movq %rax, %r14
movq (%rbx), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x3679
movq %r14, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x10f0
leaq 0x2667(%rip), %rdi      # 0x5cb8
popq %rbx
popq %r14
popq %rbp
jmp 0x1180
leaq 0x2369(%rip), %rdi      # 0x59ca
leaq 0x2367(%rip), %rsi      # 0x59cf
leaq 0x255e(%rip), %rcx      # 0x5bcd
movl $0xa2, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: SaveElem(element*, _IO_FILE*, int)
void SaveElem (element* el, FILE* tree_file, int tab)
{
    assert (tree_file);

    if (!el)
    {
        fprintf (tree_file, "\n");
        return;
    }

    fprintf (tree_file, "%*s%s %s\n", tab * 4, "", TYPES_STR[el->type], el->ind);

    #define next(direction) fprintf (tree_file, "%*s{\n", tab * 4, "");   \
                            SaveElem (el->direction, tree_file, tab + 1); \
                            fprintf (tree_file, "%*s}\n", tab * 4, "")   

    next (left);
    next (right);
    #undef next
    return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rsi, %rsi
je 0x3780
movq %rsi, %rbx
movq %rdi, %r15
testq %rdi, %rdi
je 0x3765
movl %edx, %r14d
leal (,%r14,4), %r12d
movl (%r15), %eax
leaq 0x5a3c(%rip), %rcx      # 0x90f0
movq (%rcx,%rax,8), %r8
movq 0x18(%r15), %r9
leaq 0x256e(%rip), %rsi      # 0x5c31
leaq 0x1f86(%rip), %r13      # 0x5650
movq %rbx, %rdi
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x1160
leaq 0x255a(%rip), %rsi      # 0x5c3b
movq %rbx, %rdi
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x1160
movq 0x8(%r15), %rdi
incl %r14d
movq %rbx, %rsi
movl %r14d, %edx
callq 0x3679
leaq 0x2537(%rip), %rsi      # 0x5c41
movq %rbx, %rdi
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x1160
movq %rbx, %rdi
leaq 0x2517(%rip), %rsi      # 0x5c3b
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x1160
movq 0x10(%r15), %rdi
movq %rbx, %rsi
movl %r14d, %edx
callq 0x3679
movq %rbx, %rdi
leaq 0x24f7(%rip), %rsi      # 0x5c41
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1160
movl $0xa, %edi
movq %rbx, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1140
leaq 0x247a(%rip), %rdi      # 0x5c01
leaq 0x2241(%rip), %rsi      # 0x59cf
leaq 0x2476(%rip), %rcx      # 0x5c0b
movl $0xb2, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Tree.cpp
// Function: LoadTree(Tree*)
bool LoadTree (Tree* tree)
{
    assert (tree);
    
    if (tree->head)
    {
        printf ("Load error: Tree maybe is already created.\n");
        return 0;
    }

    char* tree_file = nullptr;
    ReadTxt (&tree_file, "CompileResult/CreatedTree.txt");
    char* pos_now = tree_file;
    tree->head = LoadElem (tree, &pos_now);
    
    free (tree_file);
    return tree->head != PARSE_ERR;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
testq %rdi, %rdi
je 0x3815
movq %rdi, %rbx
cmpq $0x0, (%rdi)
je 0x37c8
leaq 0x2539(%rip), %rdi      # 0x5cf8
callq 0x1180
xorl %eax, %eax
jmp 0x380c
leaq -0x20(%rbp), %r14
movq $0x0, (%r14)
leaq 0x2409(%rip), %rsi      # 0x5be3
movq %r14, %rdi
callq 0x3518
movq (%r14), %rax
leaq -0x18(%rbp), %rsi
movq %rax, (%rsi)
movq %rbx, %rdi
callq 0x3834
movq %rax, (%rbx)
movq (%r14), %rdi
callq 0x1120
movq (%rbx), %rax
cmpq 0x5967(%rip), %rax      # 0x9170
setne %al
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x21ae(%rip), %rdi      # 0x59ca
leaq 0x21ac(%rip), %rsi      # 0x59cf
leaq 0x241d(%rip), %rcx      # 0x5c47
movl $0xc8, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackConstructor(Stack*, unsigned long)
void StackConstructor (Stack* stk, const size_t max_size)
{
	assert (stk);
	assert (max_size);

	if (!((stk->buffer == ERR_FREE && stk->status_error == STK_DEL) ||
		  (stk->buffer == nullptr  && stk->status_error == NOT_CREATED)))
	{
		stk->status_error = BAD_CREATE;
		StackLog (stk);
		return;
	}

	stk_type* buf = (stk_type*) calloc (max_size + 2, sizeof (stk_type));
	
	if (!buf)
	{
		stk->status_error = DO_MEM_ERR;
		StackLog (stk);
		return;
	}
	
	*((storm*)  buf)				 = STORMY_PETREL;
	*((storm*) (buf + max_size + 1)) = STORMY_PETREL;

	StackPoison (buf + 1, max_size);

	stk->buffer		  = buf + 1;
	stk->status_error = STK_GOOD;
	stk->capacity     = max_size;
	stk->min_capacity = max_size;

	RecountHash (stk);

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x3b60
movq %rsi, %r14
testq %rsi, %rsi
je 0x3b7f
movq %rdi, %rbx
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x3b30
cmpq $0xe4, %rax
jne 0x3b3a
cmpl $0x2, 0x28(%rbx)
jne 0x3b3a
leaq 0x2(%r14), %rdi
movl $0x30, %esi
callq 0x10a0
testq %rax, %rax
je 0x3b57
movq %rax, %r15
movabsq $-0x452212e21844f85f, %rax # imm = 0xBADDED1DE7BB07A1
movq %rax, (%r15)
leaq (%r14,%r14,2), %rcx
shlq $0x4, %rcx
movq %rax, 0x30(%r15,%rcx)
leaq 0x30(%r15), %r12
addq $0x48, %r15
movq %r14, %r13
movq (%r15), %rdi
callq 0x1120
xorps %xmm0, %xmm0
movups %xmm0, 0x1(%r15)
movups %xmm0, -0x8(%r15)
movups %xmm0, -0x18(%r15)
addq $0x30, %r15
decq %r13
jne 0x3ae4
movq %r12, 0x8(%rbx)
movl $0x0, 0x28(%rbx)
movq %r14, 0x18(%rbx)
movq %r14, 0x20(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3e2b
cmpl $0xc, 0x28(%rbx)
je 0x3aa5
movl $0xd, 0x28(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3b9e
movl $0xb, 0x28(%rbx)
jmp 0x3b41
leaq 0x2275(%rip), %rdi      # 0x5ddc
leaq 0x2272(%rip), %rsi      # 0x5de0
leaq 0x227e(%rip), %rcx      # 0x5df3
movl $0xa, %edx
callq 0x1090
leaq 0x229a(%rip), %rdi      # 0x5e20
leaq 0x2253(%rip), %rsi      # 0x5de0
leaq 0x225f(%rip), %rcx      # 0x5df3
movl $0xb, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackPoison(element*, unsigned long)
void StackPoison (stk_type* buffer, size_t num)
{
	assert (buffer);
	
	for (size_t elem = 0; elem < num; elem++)
	{
		free (buffer[elem].ind);
		buffer[elem] = STK_POISON;
	}

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x3e0c
movq %rsi, %rbx
testq %rsi, %rsi
je 0x3e07
movq %rdi, %r14
movq 0x18(%r14), %rdi
callq 0x1120
xorps %xmm0, %xmm0
movups %xmm0, 0x19(%r14)
movups %xmm0, 0x10(%r14)
movups %xmm0, (%r14)
addq $0x30, %r14
decq %rbx
jne 0x3de4
popq %rbx
popq %r14
popq %rbp
retq
leaq 0x2016(%rip), %rdi      # 0x5e29
leaq 0x1fc6(%rip), %rsi      # 0x5de0
leaq 0x200f(%rip), %rcx      # 0x5e30
movl $0x43, %edx
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: RecountHash(Stack*)
void RecountHash (Stack* stk)
{
	assert (stk);
	
	stk->stk_hash = 0;
	stk->buf_hash = 0;
	
	stk->stk_hash = CountHash ((char*) stk,			STK_HASH);
	stk->buf_hash = CountHash ((char*) stk->buffer, stk->capacity * sizeof (stk_type));

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rdi, %rdi
je 0x3eaa
xorps %xmm0, %xmm0
movups %xmm0, 0x30(%rdi)
xorl %eax, %eax
xorl %ecx, %ecx
movsbq (%rdi,%rax), %rdx
addq %rcx, %rdx
movq %rdx, %rsi
shlq $0x5, %rsi
shrl $0x3, %edx
movsbq %dl, %rcx
addq %rsi, %rcx
incq %rax
cmpq $0x44, %rax
jne 0x3e3f
movq %rcx, 0x30(%rdi)
movq 0x18(%rdi), %rax
shlq $0x4, %rax
leaq (%rax,%rax,2), %rax
testq %rax, %rax
je 0x3ea2
movq 0x8(%rdi), %rcx
xorl %edx, %edx
xorl %esi, %esi
movsbq (%rcx,%rdx), %r8
addq %rsi, %r8
movq %r8, %r9
shlq $0x5, %r9
shrl $0x3, %r8d
movsbq %r8b, %rsi
addq %r9, %rsi
incq %rdx
cmpq %rdx, %rax
jne 0x3e7e
jmp 0x3ea4
xorl %esi, %esi
movq %rsi, 0x38(%rdi)
popq %rbp
retq
leaq 0x1f2b(%rip), %rdi      # 0x5ddc
leaq 0x1f28(%rip), %rsi      # 0x5de0
leaq 0x2431(%rip), %rcx      # 0x62f0
movl $0x186, %edx            # imm = 0x186
callq 0x1090
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackDestructor(Stack*)
void StackDestructor (Stack* stk)
{
	ASSERT_OK
	
	stk->buffer -= 1;

	StackPoison (stk->buffer, stk->capacity + 2);

	free (stk->buffer);

	stk->buffer = ERR_FREE;
	stk->size = 0;
	stk->capacity = 0;
	stk->status_error = STK_DEL;
	stk->buf_hash = 0;
	stk->stk_hash = 0;

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x3f5c
testl %eax, %eax
je 0x3ef1
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x3b9e
movq 0x8(%rbx), %r14
movq 0x18(%rbx), %r15
leaq -0x30(%r14), %rdi
movq %rdi, 0x8(%rbx)
addq $0x2, %r15
je 0x3f32
addq $-0x18, %r14
movq (%r14), %rdi
callq 0x1120
xorps %xmm0, %xmm0
movups %xmm0, 0x1(%r14)
movups %xmm0, -0x8(%r14)
movups %xmm0, -0x18(%r14)
addq $0x30, %r14
decq %r15
jne 0x3f0b
movq 0x8(%rbx), %rdi
callq 0x1120
movq $0xe4, 0x8(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movl $0x2, 0x28(%rbx)
movups %xmm0, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackError(Stack*)
int StackError (Stack* stk)
{
	if (!stk)
		return STK_NULL;

	if (stk->stormy_petrel_begin != STORMY_PETREL)
		return stk->status_error = STK_PETREL_B;

	if (stk->stormy_petrel_end != STORMY_PETREL)
		return stk->status_error = STK_PETREL_E;
	
	if (stk->buffer == ERR_FREE)
		return stk->status_error = STK_DEL;
	
	if (!stk->buffer)
		return stk->status_error = BUF_NULL;
	
	if (stk->size > stk->capacity)
		return stk->status_error = BAD_SIZE_CAP;

	if (stk->capacity < stk->min_capacity)
		return stk->status_error = BAD_CAP;
	
	if (*((storm*) (stk->buffer - 1)) != STORMY_PETREL)
		return stk->status_error = BUF_PETREL_B;

	if (*((storm*) (stk->buffer + stk->capacity)) != STORMY_PETREL)
		return stk->status_error = BUF_PETREL_E;

	if (stk->status_error != 0)
		return stk->status_error;

	// Warning^ It's isn't standart stack mode.
	// This return is used for agree to use all data.
	return STK_GOOD;

	unsigned long long hash1 = stk->stk_hash;
	unsigned long long hash2 = stk->buf_hash;
	RecountHash (stk);

	if (stk->stk_hash != hash1)
		return stk->status_error = ERR_HASH_STK;

	if (stk->buf_hash != hash2)
		return stk->status_error = ERR_HASH_BUF;
	
	return STK_GOOD;
}

// Assembly:
testq %rdi, %rdi
je 0x3f95
movabsq $-0x452212e21844f85f, %rax # imm = 0xBADDED1DE7BB07A1
cmpq %rax, (%rdi)
jne 0x3f9b
cmpq %rax, 0x40(%rdi)
jne 0x3fa8
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x3fb5
cmpq $0xe4, %rcx
jne 0x3fc2
movl $0x2, 0x28(%rdi)
movl $0x2, %eax
retq
movl $0x1, %eax
retq
movl $0x7, 0x28(%rdi)
movl $0x7, %eax
retq
movl $0x8, 0x28(%rdi)
movl $0x8, %eax
retq
movl $0x3, 0x28(%rdi)
movl $0x3, %eax
retq
movq 0x18(%rdi), %rdx
cmpq %rdx, 0x10(%rdi)
jbe 0x3fd9
movl $0x4, 0x28(%rdi)
movl $0x4, %eax
retq
cmpq 0x20(%rdi), %rdx
jae 0x3fec
movl $0x6, 0x28(%rdi)
movl $0x6, %eax
retq
pushq %rbp
movq %rsp, %rbp
cmpq %rax, -0x30(%rcx)
jne 0x4009
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
cmpq %rax, (%rcx,%rdx)
jne 0x4017
movl 0x28(%rdi), %eax
jmp 0x4023
movl $0x9, 0x28(%rdi)
movl $0x9, %eax
jmp 0x4023
movl $0xa, 0x28(%rdi)
movl $0xa, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackPush(Stack*, element)
void StackPush (Stack* stk, stk_type elem)
{
	ASSERT_OK

	/*
	if (stk->size == stk->capacity)
		StackResizeUp (stk);

	if (stk->status_error == DO_MEM_ERR)
		return;
	*/

	if (stk->size == stk->capacity)
	{
		stk->status_error = DO_MEM_ERR;
		StackLog (stk);
		return;
	}

	char* new_ind = (char*) calloc (elem.len + 1, sizeof (char));
	if (!new_ind)
	{
		stk->status_error = DO_MEM_ERR;
		StackLog (stk);
		return;
	}

	strncpy (new_ind, elem.ind, elem.len + 1);

	char* elem_ind_save = elem.ind;
	elem.ind = new_ind;

	*(stk->buffer + (stk->size)++) = elem;
	elem.ind = elem_ind_save;

	RecountHash (stk);

	ASSERT_OK

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x3f5c
testl %eax, %eax
jne 0x40eb
movq 0x10(%rbx), %r13
cmpq 0x18(%rbx), %r13
je 0x40e4
leaq 0x10(%rbp), %r12
movq 0x20(%r12), %r14
incq %r14
movl $0x1, %esi
movq %r14, %rdi
callq 0x10a0
testq %rax, %rax
je 0x40e4
movq %rax, %r15
movq 0x18(%r12), %rsi
movq %rax, %rdi
movq %r14, %rdx
callq 0x1070
movq %r15, 0x18(%r12)
movq 0x8(%rbx), %rax
leaq 0x1(%r13), %rcx
movq %rcx, 0x10(%rbx)
leaq (,%r13,2), %rcx
addq %r13, %rcx
shlq $0x4, %rcx
movups (%r12), %xmm0
movups %xmm0, (%rax,%rcx)
movups 0x10(%r12), %xmm0
movups 0x19(%r12), %xmm1
movups %xmm0, 0x10(%rax,%rcx)
movups %xmm1, 0x19(%rax,%rcx)
movq %rbx, %rdi
callq 0x3e2b
movq %rbx, %rdi
callq 0x3f5c
testl %eax, %eax
jne 0x40eb
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0xb, 0x28(%rbx)
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x3b9e
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackPop(Stack*)
stk_type StackPop (Stack* stk)
{
	ASSERT_OK_POP
	
	if (stk->size == 0)
	{
		stk->status_error = BAD_SIZE_ZERO;
		StackLog (stk);
		return STK_POISON;
	}
	
	if (stk->capacity > stk->min_capacity &&
		stk->capacity >= STK_RESIZE * STK_RESIZE * stk->size)
			StackResizeDown(stk);

	if (stk->status_error == DO_MEM_ERR)
		return STK_POISON;

	stk_type popped = stk->buffer[--(stk->size)];
	*(stk->buffer + stk->size) = STK_POISON;

	RecountHash(stk);

	ASSERT_OK_POP

	return popped;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r14
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x3f5c
testl %eax, %eax
je 0x4140
movq %r14, %rdi
callq 0x3b9e
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq %rbx, %rax
addq $0x30, %rsp
popq %rbx
popq %r14
popq %rbp
retq
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x41e2
movq 0x18(%r14), %rcx
shlq $0x2, %rax
cmpq %rax, %rcx
jb 0x4168
cmpq 0x20(%r14), %rcx
jbe 0x4168
movq %r14, %rdi
callq 0x41ef
cmpl $0xb, 0x28(%r14)
je 0x4126
movq 0x8(%r14), %rax
movq 0x10(%r14), %rcx
decq %rcx
movq %rcx, 0x10(%r14)
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movups (%rax,%rcx), %xmm0
movups 0x10(%rax,%rcx), %xmm1
movups 0x20(%rax,%rcx), %xmm2
movaps %xmm2, -0x20(%rbp)
movaps %xmm1, -0x30(%rbp)
movaps %xmm0, -0x40(%rbp)
xorps %xmm0, %xmm0
movups %xmm0, 0x19(%rax,%rcx)
movups %xmm0, (%rax,%rcx)
movups %xmm0, 0x10(%rax,%rcx)
movq %r14, %rdi
callq 0x3e2b
movq %r14, %rdi
callq 0x3f5c
testl %eax, %eax
jne 0x411e
movaps -0x40(%rbp), %xmm0
movaps -0x30(%rbp), %xmm1
movaps -0x20(%rbp), %xmm2
movups %xmm2, 0x20(%rbx)
movups %xmm1, 0x10(%rbx)
jmp 0x4131
movl $0x5, 0x28(%r14)
jmp 0x411e
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackResizeDown(Stack*)
void StackResizeDown (Stack* stk)
{
	ASSERT_OK

	stk_type* buf = stk->buffer - 1;

	if (!buf)
	{
		stk->status_error = DO_MEM_ERR;
		StackLog (stk);
		return;
	}

	*(buf + stk->capacity + 1) = STK_POISON;

	if (stk->capacity >= STK_RESIZE * stk->size && 
		stk->capacity >= STK_RESIZE * stk->min_capacity)
			buf = (stk_type*) realloc (buf, 
									  sizeof (stk_type) * (stk->capacity / STK_RESIZE + 2));

	stk->capacity /= STK_RESIZE;
	*((storm*) (buf + stk->capacity + 1)) = STORMY_PETREL;
	stk->buffer = buf + 1;

	RecountHash (stk);

	ASSERT_OK

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x3f5c
testl %eax, %eax
jne 0x429b
movq 0x8(%rbx), %rcx
movq 0x18(%rbx), %rdx
leaq -0x30(%rcx), %rax
leaq (%rdx,%rdx,2), %rdx
shlq $0x4, %rdx
xorps %xmm0, %xmm0
movups %xmm0, 0x19(%rcx,%rdx)
movups %xmm0, 0x10(%rcx,%rdx)
movups %xmm0, (%rcx,%rdx)
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rcx
addq %rdx, %rdx
cmpq %rdx, %rcx
jb 0x4261
movq 0x20(%rbx), %rdx
addq %rdx, %rdx
cmpq %rdx, %rcx
jb 0x4261
shrq %rcx
leaq (%rcx,%rcx,2), %rsi
shlq $0x4, %rsi
addq $0x60, %rsi
movq %rax, %rdi
callq 0x1190
movq 0x18(%rbx), %rcx
shrq %rcx
movq %rcx, 0x18(%rbx)
leaq (%rcx,%rcx,2), %rcx
shlq $0x4, %rcx
movabsq $-0x452212e21844f85f, %rdx # imm = 0xBADDED1DE7BB07A1
movq %rdx, 0x30(%rax,%rcx)
addq $0x30, %rax
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0x3e2b
movq %rbx, %rdi
callq 0x3f5c
testl %eax, %eax
je 0x42a9
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %rbp
jmp 0x3b9e
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: StackResizeUp(Stack*)
void StackResizeUp (Stack* stk)
{
	ASSERT_OK

	stk_type* buf = stk->buffer - 1;

	buf = (stk_type*) realloc (buf, sizeof (stk_type) * (stk->capacity * STK_RESIZE + 2));

	if (!buf)
	{
		stk->status_error = DO_MEM_ERR;
		StackLog (stk);
		return;
	}

	(stk->capacity) *= STK_RESIZE;

	*((storm*)  buf)					  = STORMY_PETREL;
	*((storm*) (buf + stk->capacity + 1)) = STORMY_PETREL;

	StackPoison (buf + stk->size + 1, stk->capacity - stk->size);

	stk->buffer = buf + 1;

	RecountHash (stk);

	ASSERT_OK

	return;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
callq 0x3f5c
testl %eax, %eax
je 0x42d7
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x3b9e
movq 0x8(%rbx), %rdi
movq 0x18(%rbx), %rax
addq $-0x30, %rdi
leaq (%rax,%rax,2), %rsi
shlq $0x5, %rsi
addq $0x60, %rsi
callq 0x1190
testq %rax, %rax
je 0x4392
movq %rax, %r14
movq 0x18(%rbx), %rax
leaq (%rax,%rax), %rcx
movq %rcx, 0x18(%rbx)
movabsq $-0x452212e21844f85f, %rdx # imm = 0xBADDED1DE7BB07A1
movq %rdx, (%r14)
leaq (%rax,%rax,2), %rax
shlq $0x5, %rax
movq %rdx, 0x30(%r14,%rax)
movq 0x10(%rbx), %rax
movq %rax, %r15
subq %rcx, %r15
je 0x4369
leaq (%rax,%rax,2), %rax
shlq $0x4, %rax
leaq (%rax,%r14), %r12
addq $0x48, %r12
movq (%r12), %rdi
callq 0x1120
xorps %xmm0, %xmm0
movups %xmm0, 0x1(%r12)
movups %xmm0, -0x8(%r12)
movups %xmm0, -0x18(%r12)
addq $0x30, %r12
incq %r15
jne 0x4342
addq $0x30, %r14
movq %r14, 0x8(%rbx)
movq %rbx, %rdi
callq 0x3e2b
movq %rbx, %rdi
callq 0x3f5c
testl %eax, %eax
jne 0x42c7
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movl $0xb, 0x28(%rbx)
jmp 0x42c7
// File: /workspace/github_cpp_makefile_star2_O3/AndreyVV-100[P]GachiLang/TreeBase/Stack.cpp
// Function: CountHash(char*, unsigned long)
unsigned long long CountHash (char* buffer, size_t num)
{
	const int shift = 5;
	unsigned long long ans = 0;
	char buf = 0;
	
	for (size_t count = 0; count < num; count++)
	{
		ans += buffer[count];
		buf = ans >> (sizeof (unsigned long long) - shift);
		ans = (ans << shift) + buf;
	}

	return ans;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
testq %rsi, %rsi
je 0x43ce
xorl %ecx, %ecx
xorl %eax, %eax
movsbq (%rdi,%rcx), %rdx
addq %rax, %rdx
movq %rdx, %r8
shlq $0x5, %r8
shrl $0x3, %edx
movsbq %dl, %rax
addq %r8, %rax
incq %rcx
cmpq %rcx, %rsi
jne 0x43ab
jmp 0x43d0
xorl %eax, %eax
popq %rbp
retq
// File: /workspace/github_cpp_makefile_star2_O3/MiWitt[P]HLAbaits/main.cpp
// Function: getUnmappedRegions(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
vector<pair<int,int> >  getUnmappedRegions(const string& matches)
{
    vector<pair<int,int> >  vctRet;
    size_t starter = matches.find_first_of("0",0);

    while(starter != string::npos)
    {
        int i = starter;
        int counter =0;
        for(; i < matches.size() && matches[i] == '0';i++)
            counter++;
        if(counter >= MIN_NEW_BAIT_SIZE)
            vctRet.push_back(pair<int,int>((int)starter,(int)starter+counter-1));
        starter = matches.find_first_of("0",i);
    }
    return vctRet;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x4468(%rip), %rsi      # 0x8039
movl $0x1, %ecx
movq %r14, %rdi
xorl %edx, %edx
callq 0x3360
cmpq $-0x1, %rax
je 0x3c49
leaq 0x8(%rsp), %r15
leaq 0x4447(%rip), %r12      # 0x8039
movq 0x8(%r14), %rdx
movslq %eax, %r13
cmpq %r13, %rdx
jbe 0x3c30
movq (%r14), %rsi
xorl %ecx, %ecx
cmpb $0x30, (%rsi,%r13)
jne 0x3c14
incl %ecx
incq %r13
cmpq %r13, %rdx
ja 0x3c03
cmpl $0x1e, %ecx
jb 0x3c30
addl %eax, %ecx
decl %ecx
movl %eax, 0x8(%rsp)
movl %ecx, 0xc(%rsp)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x602c
movl $0x1, %ecx
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x3360
cmpq $-0x1, %rax
jne 0x3bf2
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movq %rax, %r14
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x3c71
movq 0x10(%rbx), %rsi
subq %rdi, %rsi
callq 0x3240
movq %r14, %rdi
callq 0x3410
// File: /workspace/github_cpp_makefile_star2_O3/MiWitt[P]HLAbaits/CMultiFasta.cpp
// Function: CMultiFasta::operator[](std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
string CMultiFasta::operator[](const string& val)
{
    map<string,string>::iterator iter = m_mapSequences.find(val);
    if(m_mapSequences.end() == iter)
        return "";
    return iter->second;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsi), %rdi
movq %rdx, %rsi
callq 0x7164
addq $0x10, %r14
cmpq %rax, %r14
je 0x70bb
leaq 0x10(%rbx), %rcx
movq %rcx, (%rbx)
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x5c90
jmp 0x70d4
leaq 0x10(%rbx), %rax
movq %rax, (%rbx)
leaq 0xf5d(%rip), %rdx       # 0x8026
movq %rbx, %rdi
movq %rdx, %rsi
callq 0x5d26
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/src/Frame/pc_frame.cpp
// Function: pc_frame::init(pc_task&, int, int, int)
bool pc_frame::init(pc_task& task, int t_num, int buf_size, int log_num)
{
    pTask = &task;
    threadNum = t_num;
    bufSize = buf_size;
    logNum = log_num;
    sem_init(&semPro, 0, 1);
    sem_init(&semCon, 0, 0);
    threadVec.clear();
    threadVec.push_back(thread(&pc_frame::proThread, this));
    for(int i = 0; i < threadNum; ++i)
    {
        threadVec.push_back(thread(&pc_frame::conThread, this));
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
movq %rsi, 0x8(%rdi)
movl %edx, (%rdi)
movl %ecx, 0xe0(%rdi)
movl %r8d, 0xe4(%rdi)
addq $0x38, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x3230
leaq 0x58(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x3230
movq 0xc8(%rbx), %rax
movq 0xd0(%rbx), %rcx
cmpq %rax, %rcx
je 0x62f5
movq %rax, %rdx
cmpq $0x0, (%rdx)
jne 0x63b5
addq $0x8, %rdx
cmpq %rcx, %rdx
jne 0x62db
movq %rax, 0xd0(%rbx)
leaq 0xc8(%rbx), %r14
leaq 0xb7(%rip), %rax        # 0x63ba
leaq 0x18(%rsp), %rsi
movq %rax, (%rsi)
movq $0x0, 0x8(%rsi)
leaq 0x10(%rsp), %rdx
movq %rbx, (%rdx)
leaq 0x8(%rsp), %r15
movq %r15, %rdi
callq 0x6870
movq %r14, %rdi
movq %r15, %rsi
callq 0x726e
cmpq $0x0, 0x8(%rsp)
jne 0x63b5
cmpl $0x0, (%rbx)
jle 0x6392
xorl %ebp, %ebp
leaq 0x8(%rsp), %r15
leaq 0x18(%rsp), %r12
leaq 0x10(%rsp), %r13
leaq 0x37e(%rip), %rax       # 0x66d6
movq %rax, 0x18(%rsp)
movq $0x0, 0x20(%rsp)
movq %rbx, 0x10(%rsp)
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x6870
movq %r14, %rdi
movq %r15, %rsi
callq 0x726e
cmpq $0x0, 0x8(%rsp)
jne 0x63b5
incl %ebp
cmpl (%rbx), %ebp
jl 0x6351
movb $0x1, %al
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x63a5
cmpq $0x0, 0x8(%rsp)
jne 0x63b5
movq %rax, %rdi
callq 0x3440
callq 0x3090
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: ftrl_model::getOrInitModelUnit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
ftrl_model_unit* ftrl_model::getOrInitModelUnit(string index)
{
    unordered_map<string, ftrl_model_unit*>::iterator iter = muMap.find(index);
    if(iter == muMap.end())
    {
        mtx.lock();
        ftrl_model_unit* pMU = new ftrl_model_unit(factor_num, init_mean, init_stdev);
        muMap.insert(make_pair(index, pMU));
        mtx.unlock();
        return pMU;
    }
    else
    {
        return iter->second;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x30, %rsp
movq %rsi, %r12
movq %rdi, %r15
callq 0x5aa6
testq %rax, %rax
je 0x3841
movq 0x28(%rax), %r14
jmp 0x38bf
leaq 0x50(%r15), %rbx
movq %rbx, %rdi
callq 0x3370
testl %eax, %eax
jne 0x38d0
movl $0x88, %edi
callq 0x3290
movq %rax, %r14
movl 0x38(%r15), %esi
movsd 0x48(%r15), %xmm0
movsd 0x40(%r15), %xmm1
movq %rax, %rdi
callq 0x4c5c
leaq 0x18(%rsp), %r13
movq %r13, -0x10(%r13)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r12
movq %r12, %rdi
callq 0x5454
movq %r14, 0x20(%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x5bbe
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
je 0x38b7
callq 0x3260
movq %rbx, %rdi
callq 0x31d0
movq %r14, %rax
addq $0x30, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movl %eax, %edi
callq 0x3190
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r13, %rdi
jne 0x38ec
jmp 0x38f1
movq %rax, %rbx
movq %r14, %rdi
callq 0x3260
movq %rbx, %rdi
callq 0x3440
nop
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: ftrl_model::getScore(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, double, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, double>>>&, std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ftrl_model_unit*, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ftrl_model_unit*>>>&)
double ftrl_model::getScore(unordered_map<string, double>& x, unordered_map<string, ftrl_model_unit*>& theta)
{
    double result = 0;
    for(unordered_map<string, double>::iterator iter = x.begin(); iter != x.end(); ++iter)
    {
        const string& index = iter->first;
        result += get_wi(theta, index) * iter->second;
    }
    double sum, sum_sqr, d;
    for(int f = 0; f < factor_num; ++f)
    {
        sum = sum_sqr = 0.0;
        for(unordered_map<string, double>::iterator iter = x.begin(); iter != x.end(); ++iter)
        {
            const string& index = iter->first;
            d = get_vif(theta, index, f) * iter->second;
            sum += d;
            sum_sqr += d * d;
        }
        result += 0.5 * (sum * sum - sum_sqr);
    }
    //return 1.0/(1.0 + exp(-result));
    return result;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x10(%rsi), %r12
xorpd %xmm0, %xmm0
testq %r12, %r12
je 0x3a82
movsd %xmm0, 0x8(%rsp)
leaq 0x8(%r12), %rsi
movq %rbx, %rdi
callq 0x5aa6
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0x3a67
movq 0x28(%rax), %rax
movsd (%rax), %xmm0
mulsd 0x28(%r12), %xmm0
movsd 0x8(%rsp), %xmm1
addsd %xmm0, %xmm1
movapd %xmm1, %xmm0
movq (%r12), %r12
jmp 0x3a3e
movl 0x38(%r15), %eax
testl %eax, %eax
jle 0x3b34
xorl %r12d, %r12d
movq 0x10(%r14), %r13
testq %r13, %r13
je 0x3b09
movsd %xmm0, 0x8(%rsp)
xorpd %xmm1, %xmm1
xorps %xmm2, %xmm2
movsd %xmm2, 0x10(%rsp)
movsd %xmm1, 0x18(%rsp)
leaq 0x8(%r13), %rsi
movq %rbx, %rdi
callq 0x5aa6
xorpd %xmm0, %xmm0
testq %rax, %rax
je 0x3ad6
movq 0x28(%rax), %rax
movq 0x18(%rax), %rax
movsd (%rax,%r12,8), %xmm0
mulsd 0x28(%r13), %xmm0
movsd 0x18(%rsp), %xmm1
addsd %xmm0, %xmm1
mulsd %xmm0, %xmm0
movsd 0x10(%rsp), %xmm2
addsd %xmm0, %xmm2
movq (%r13), %r13
testq %r13, %r13
jne 0x3aa7
movl 0x38(%r15), %eax
movsd 0x8(%rsp), %xmm0
jmp 0x3b11
xorpd %xmm2, %xmm2
xorpd %xmm1, %xmm1
mulsd %xmm1, %xmm1
subsd %xmm2, %xmm1
mulsd 0x54e7(%rip), %xmm1     # 0x9008
addsd %xmm1, %xmm0
incq %r12
movslq %eax, %rcx
cmpq %rcx, %r12
jl 0x3a91
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: ftrl_model::get_wi(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ftrl_model_unit*, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ftrl_model_unit*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
double ftrl_model::get_wi(unordered_map<string, ftrl_model_unit*>& theta, const string& index)
{
    unordered_map<string, ftrl_model_unit*>::iterator iter = theta.find(index);
    if(iter == theta.end())
    {
        return 0.0;
    }
    else
    {
        return iter->second->wi;
    }
}

// Assembly:
pushq %rax
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x5aa6
testq %rax, %rax
je 0x3b5d
movq 0x28(%rax), %rax
movsd (%rax), %xmm0
jmp 0x3b60
xorps %xmm0, %xmm0
popq %rax
retq
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: ftrl_model::get_vif(std::unordered_map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, ftrl_model_unit*, std::hash<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::equal_to<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, ftrl_model_unit*>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, int)
double ftrl_model::get_vif(unordered_map<string, ftrl_model_unit*>& theta, const string& index, int f)
{
    unordered_map<string, ftrl_model_unit*>::iterator iter = theta.find(index);
    if(iter == theta.end())
    {
        return 0.0;
    }
    else
    {
        return iter->second->vi[f];
    }
}

// Assembly:
pushq %rbx
movl %ecx, %ebx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x5aa6
testq %rax, %rax
je 0x3b87
movq 0x28(%rax), %rax
movslq %ebx, %rcx
movq 0x18(%rax), %rax
movsd (%rax,%rcx,8), %xmm0
jmp 0x3b8a
xorps %xmm0, %xmm0
popq %rbx
retq
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: ftrl_model::loadModel(std::basic_ifstream<char, std::char_traits<char>>&)
bool ftrl_model::loadModel(ifstream& in)
{
    string line;
    vector<string> strVec;
    while(getline(in, line))
    {
        strVec.clear();
        utils::splitString(line, ' ', &strVec);
        if(strVec.size() != 3 * factor_num + 4)
        {
            return false;
        }
        string& index = strVec[0];
        ftrl_model_unit* pMU = new ftrl_model_unit(factor_num, strVec);
        muMap[index] = pMU;
    }
    return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x10(%rsp), %r14
movq %rax, 0x10(%r14)
xorps %xmm0, %xmm0
movaps %xmm0, (%r14)
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x3270
movsbl %al, %edx
movq %rbx, %rdi
leaq 0x28(%rsp), %rsi
callq 0x3470
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
movl 0x20(%rax,%rcx), %ebp
testb $0x5, %bpl
jne 0x3db3
movq 0x10(%rsp), %r12
movq 0x18(%rsp), %r13
cmpq %r12, %r13
je 0x3d4a
movq %r12, %r15
movq (%r15), %rdi
addq $0x10, %r15
cmpq %r15, %rdi
je 0x3d3c
callq 0x3260
addq $0x10, %r15
cmpq %r13, %r15
jne 0x3d2b
movq %r12, 0x18(%rsp)
leaq 0x28(%rsp), %rdi
movl $0x20, %esi
movq %r14, %rdx
callq 0x7fa0
movq 0x10(%rsp), %r13
movq 0x18(%rsp), %rax
subq %r13, %rax
sarq $0x5, %rax
movq 0x8(%rsp), %rcx
movslq 0x38(%rcx), %r15
leaq (%r15,%r15,2), %rcx
addq $0x4, %rcx
cmpq %rcx, %rax
jne 0x3db3
movl $0x88, %edi
callq 0x3290
movq %rax, %rbp
movq %rax, %rdi
movl %r15d, %esi
movq %r14, %rdx
callq 0x4e7c
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0x5eea
movq %rbp, (%rax)
jmp 0x3ce0
leaq 0x10(%rsp), %rdi
callq 0x523e
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3dd1
callq 0x3260
testb $0x5, %bpl
setne %al
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq %rbp, %rdi
callq 0x3260
jmp 0x3df9
jmp 0x3df6
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x523e
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x3e17
callq 0x3260
movq %rbx, %rdi
callq 0x3440
nop
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/lambdafm_predict.cpp
// Function: argv_to_args[abi:cxx11](int, char**)
vector<string> argv_to_args(int argc, char* argv[])
{
    vector<string> args;
    for(int i = 1; i < argc; ++i)
    {
        args.push_back(string(argv[i]));
    }
    return args;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
cmpl $0x2, %esi
jl 0x450c
movq %rdx, %r14
movl %esi, %ebp
movl $0x1, %r13d
leaq 0x8(%rsp), %r15
leaq 0x7(%rsp), %r12
movq (%r14,%r13,8), %rsi
movq %r15, %rdi
movq %r12, %rdx
callq 0x30e0
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6022
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x4504
callq 0x3260
incq %r13
cmpq %r13, %rbp
jne 0x44d6
movq %rbx, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x453a
movq %rax, %r14
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x453a
callq 0x3260
movq %rbx, %rdi
callq 0x523e
movq %r14, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: ftrl_model_unit::ftrl_model_unit(int, double, double)
ftrl_model_unit(int factor_num, double v_mean, double v_stdev)
    {
        wi = 0.0;
        w_ni = 0.0;
        w_zi = 0.0;
        vi.resize(factor_num);
        v_ni.resize(factor_num);
        v_zi.resize(factor_num);
        for(int f = 0; f < factor_num; ++f)
        {
            vi[f] = utils::gaussian(v_mean, v_stdev);
            v_ni[f] = 0.0;
            v_zi[f] = 0.0;
        }
    }

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movsd %xmm1, 0x10(%rsp)
movsd %xmm0, 0x8(%rsp)
movl %esi, %ebp
leaq 0x18(%rdi), %rbx
leaq 0x30(%rdi), %r14
leaq 0x48(%rdi), %r15
movslq %esi, %r12
movl $0x88, %edx
xorl %esi, %esi
callq 0x3160
movq %rbx, %rdi
movq %r12, %rsi
callq 0x52be
movq %r14, %rdi
movq %r12, %rsi
callq 0x52be
movq %r15, %rdi
movq %r12, %rsi
callq 0x52be
testl %ebp, %ebp
jle 0x4cef
movl %ebp, %r12d
xorl %r13d, %r13d
xorl %ebp, %ebp
movsd 0x8(%rsp), %xmm0
movsd 0x10(%rsp), %xmm1
callq 0x81ba
movq (%rbx), %rax
movsd %xmm0, (%rax,%rbp,8)
movq (%r14), %rax
movq %r13, (%rax,%rbp,8)
movq (%r15), %rax
movq %r13, (%rax,%rbp,8)
incq %rbp
cmpq %rbp, %r12
jne 0x4cc0
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x4d00
movq %rax, %r12
movq (%r15), %rdi
testq %rdi, %rdi
je 0x4d10
callq 0x3260
movq (%r14), %rdi
testq %rdi, %rdi
je 0x4d1d
callq 0x3260
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x4d2a
callq 0x3260
movq %r12, %rdi
callq 0x3440
// File: /workspace/github_cpp_makefile_star2_O3/CastellanZhang[P]lambdaFM/./src/FTRL/ftrl_model.h
// Function: operator<<(std::ostream&, ftrl_model_unit const&)
inline ostream& operator <<(ostream& os, const ftrl_model_unit& mu)
    {
        os << mu.wi;
        for(int f = 0; f < mu.vi.size(); ++f)
        {
            os << " " << mu.vi[f];
        }
        os << " " << mu.w_ni << " " << mu.w_zi;
        for(int f = 0; f < mu.v_ni.size(); ++f)
        {
            os << " " << mu.v_ni[f];
        }
        for(int f = 0; f < mu.v_zi.size(); ++f)
        {
            os << " " << mu.v_zi[f];
        }
        return os;
    }

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movsd (%rsi), %xmm0
callq 0x33c0
movq 0x20(%r14), %rax
cmpq 0x18(%r14), %rax
je 0x4d93
xorl %r12d, %r12d
leaq 0x42c3(%rip), %r15      # 0x9020
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32e0
movq 0x18(%r14), %rax
movsd (%rax,%r12,8), %xmm0
movq %rbx, %rdi
callq 0x33c0
incq %r12
movq 0x20(%r14), %rax
subq 0x18(%r14), %rax
sarq $0x3, %rax
cmpq %r12, %rax
ja 0x4d5d
leaq 0x4286(%rip), %r15      # 0x9020
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32e0
movsd 0x8(%r14), %xmm0
movq %rbx, %rdi
callq 0x33c0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
movq %r15, %rsi
callq 0x32e0
movsd 0x10(%r14), %xmm0
movq %r12, %rdi
callq 0x33c0
movq 0x38(%r14), %rax
cmpq 0x30(%r14), %rax
je 0x4e23
xorl %r12d, %r12d
leaq 0x4233(%rip), %r15      # 0x9020
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32e0
movq 0x30(%r14), %rax
movsd (%rax,%r12,8), %xmm0
movq %rbx, %rdi
callq 0x33c0
incq %r12
movq 0x38(%r14), %rax
subq 0x30(%r14), %rax
sarq $0x3, %rax
cmpq %r12, %rax
ja 0x4ded
movq 0x50(%r14), %rax
cmpq 0x48(%r14), %rax
je 0x4e6d
xorl %r12d, %r12d
leaq 0x41e9(%rip), %r15      # 0x9020
movl $0x1, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x32e0
movq 0x48(%r14), %rax
movsd (%rax,%r12,8), %xmm0
movq %rbx, %rdi
callq 0x33c0
incq %r12
movq 0x50(%r14), %rax
subq 0x48(%r14), %rax
sarq $0x3, %rax
cmpq %r12, %rax
ja 0x4e37
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq