LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_node_search
static BTreeNode *bt_node_search(BTreeNode *node, uint64_t key)
{
    uint64_t i, key_count;

    if(bt_node_get_type(node) & BT_NODE_TYPE_LEAF)
        return node;

    key_count = bt_node_get_key_count(node);
    for(i = 0; i < key_count; i++)
    {
        if (key <= bt_node_get_key(node, i))
        {
            return bt_node_search(bt_node_get_child(node, i), key);
        }
    }
    return bt_node_search(bt_node_get_child(node, i), key);
}

// Assembly:
pushq %rbx
movq %rdi, %rax
movq 0x8(%rdi), %rcx
testb $0x4, (%rcx)
jne 0x1872
movq %rsi, %rbx
movq 0x8(%rcx), %rsi
testq %rsi, %rsi
je 0x1861
addq $0x30, %rcx
xorl %edx, %edx
cmpq %rbx, (%rcx)
jae 0x185e
incq %rdx
addq $0x10, %rcx
cmpq %rdx, %rsi
jne 0x184b
jmp 0x1861
movq %rdx, %rsi
movq %rax, %rdi
callq 0x1e0d
movq 0x8(%rax), %rcx
testb $0x4, (%rcx)
je 0x183c
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_search_range
BTreeValues *bt_search_range(BTree *bt, uint64_t limit, uint64_t key_min, uint64_t key_max)
{
    BTreeNode   *leaf;
    BTreeValues *values;
    int          remind;
    int          b_continue;

    values = bt_values_new();
    leaf = bt_node_search(bt->root, key_min);

    do
    {
        remind = limit - bt_values_get_count(values);
        b_continue = bt_node_leaf_fetch_values(leaf, values, remind, key_min, key_max);

        leaf = bt_node_get_right_sibling(leaf);
        if(leaf == NULL)
            break;

    } while (b_continue);

    return values;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
movl $0x1, %edi
movl $0x10, %esi
callq 0x10e0
movq %rax, %r12
movq 0x10(%r13), %rdi
movq %r14, %rsi
callq 0x182c
movq %rax, %r13
movl %r15d, %eax
subl (%r12), %eax
movslq %eax, %rdx
movq %r13, %rdi
movq %r12, %rsi
movq %r14, %rcx
movq %rbx, %r8
callq 0x1326
movl %eax, %ebp
movq 0x8(%r13), %rax
movq 0x20(%rax), %rsi
testq %rsi, %rsi
je 0x18eb
movq (%r13), %rdi
callq 0x25ed
testq %rax, %rax
je 0x18eb
movq %rax, %r13
testl %ebp, %ebp
jne 0x18ac
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_close
void bt_close(BTree *bt)
{
    uint64_t i;

    // flush tree to disk
    bt_flush(bt);

    // destory loaded node
    for(i = 1; i <= bt_get_max_blkid(bt); i++)
    {
        if(bt->blkid_to_node[i])
            bt_node_destory(bt->blkid_to_node[i]);
    }
    // destory meta     
    bt_meta_destory(bt->meta);


    free(bt->blkid_to_node);
    free(bt->file_path);
    free(bt);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x1573
movq 0x18(%rbx), %r14
movq (%r14), %rdi
cmpq $0x0, 0x28(%rdi)
je 0x1bfb
movl $0x1, %r12d
movq 0x60(%rbx), %rax
movq (%rax,%r12,8), %r15
testq %r15, %r15
je 0x1bf2
movq 0x8(%r15), %rdi
callq 0x1030
movq %r15, %rdi
callq 0x1030
movq 0x18(%rbx), %r14
movq (%r14), %rdi
incq %r12
cmpq 0x28(%rdi), %r12
jbe 0x1bcd
callq 0x1030
movq %r14, %rdi
callq 0x1030
movq 0x60(%rbx), %rdi
callq 0x1030
movq (%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_node_get_child
static BTreeNode *bt_node_get_child(BTreeNode *node, uint64_t index)
{
    uint64_t blkid;
    blkid = bt_node_blk_get_child_blkid(node->blk, index);
    assert(blkid);

    return bt_get_node(node->tree, blkid);
}

// Assembly:
pushq %rax
movq 0x8(%rdi), %rax
testb $0x4, (%rax)
jne 0x1e34
cmpq %rsi, 0x8(%rax)
jb 0x1e53
shlq $0x4, %rsi
movq 0x28(%rax,%rsi), %rsi
testq %rsi, %rsi
je 0x1e72
movq (%rdi), %rdi
popq %rax
jmp 0x25ed
leaq 0x11c9(%rip), %rdi      # 0x3004
leaq 0x11e3(%rip), %rsi      # 0x3025
leaq 0x1a82(%rip), %rcx      # 0x38cb
movl $0x16f, %edx            # imm = 0x16F
callq 0x10b0
leaq 0x1ab0(%rip), %rdi      # 0x390a
leaq 0x11c4(%rip), %rsi      # 0x3025
leaq 0x1a63(%rip), %rcx      # 0x38cb
movl $0x170, %edx            # imm = 0x170
callq 0x10b0
leaq 0x1713(%rip), %rdi      # 0x358c
leaq 0x11a5(%rip), %rsi      # 0x3025
leaq 0x1a10(%rip), %rcx      # 0x3897
movl $0x267, %edx            # imm = 0x267
callq 0x10b0
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_print
void bt_print(BTree *bt)
{
    printf("---------- Meta ----------\n");
    printf("order:    %lu\n", bt_get_order(bt));
    printf("blksize:  %lu\n", bt->meta->blk->blk_size);
    printf("blkcount: %lu\n", bt->meta->blk->blk_counts);
    printf("maxblkid: %lu\n", bt->meta->blk->max_blkid);
    printf("rootblk:  %lu\n", bt->meta->blk->root_blkid);
    bt_node_print(bt->root);

    BTreeNode *node;

    printf("new blks: ");
    list_for_each_entry(node, &bt->new_node_chain, chain)
    {
        printf("%lu ",node->blkid);
    }
    printf("\n");

    printf("dirty blks: ");
    list_for_each_entry(node, &bt->dirty_node_chain, chain)
    {
        printf("%lu ",node->blkid);
    }
    printf("\n");
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x1a80(%rip), %rdi      # 0x3923
callq 0x1060
movq 0x18(%rbx), %rax
movq (%rax), %rax
movq 0x8(%rax), %rsi
leaq 0x13a7(%rip), %rdi      # 0x3261
xorl %eax, %eax
callq 0x1090
movq 0x18(%rbx), %rax
movq (%rax), %rax
movq 0x10(%rax), %rsi
leaq 0x139d(%rip), %rdi      # 0x3270
xorl %eax, %eax
callq 0x1090
movq 0x18(%rbx), %rax
movq (%rax), %rax
movq 0x20(%rax), %rsi
leaq 0x1393(%rip), %rdi      # 0x327f
xorl %eax, %eax
callq 0x1090
movq 0x18(%rbx), %rax
movq (%rax), %rax
movq 0x28(%rax), %rsi
leaq 0x1389(%rip), %rdi      # 0x328e
xorl %eax, %eax
callq 0x1090
movq 0x18(%rbx), %rax
movq (%rax), %rax
movq 0x18(%rax), %rsi
leaq 0x137f(%rip), %rdi      # 0x329d
xorl %eax, %eax
callq 0x1090
movq 0x10(%rbx), %rdi
callq 0x1c2c
leaq 0x1377(%rip), %rdi      # 0x32ac
xorl %eax, %eax
callq 0x1090
leaq 0x20(%rbx), %r15
movq 0x20(%rbx), %r12
cmpq %r15, %r12
je 0x1f68
leaq 0x1367(%rip), %r14      # 0x32b7
movq -0x8(%r12), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1090
movq (%r12), %r12
cmpq %r15, %r12
jne 0x1f50
movl $0xa, %edi
callq 0x1040
leaq 0x1343(%rip), %rdi      # 0x32bc
xorl %eax, %eax
callq 0x1090
movq 0x40(%rbx), %r15
addq $0x40, %rbx
cmpq %rbx, %r15
je 0x1faa
leaq 0x1323(%rip), %r14      # 0x32b7
movq -0x8(%r15), %rsi
movq %r14, %rdi
xorl %eax, %eax
callq 0x1090
movq (%r15), %r15
cmpq %rbx, %r15
jne 0x1f94
movl $0xa, %edi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1040
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_node_cut
static BTreeNode *bt_node_cut(BTreeNode *node, uint64_t *split_key)
{
    BTree        *tree;
    uint64_t      type;
    BTreeNode    *new;
    uint64_t      min_keys, max_keys;

    tree = node->tree;
    min_keys = bt_get_min_keys(tree);
    max_keys = bt_get_max_keys(tree);

    assert(bt_node_get_key_count(node) == max_keys + 1);

    if(bt_node_get_type(node) & BT_NODE_TYPE_LEAF)
    {
        type = BT_NODE_TYPE_LEAF;
    }
    else
    {
        type = BT_NODE_TYPE_INTERNAL;
    }

    new = bt_node_new_empty(tree, type);
    *split_key = bt_node_get_key(node, min_keys);
    // not link internal node in same layer?
    //if(bt_node_get_type(node) & BT_NODE_TYPE_LEAF)
    //{
        bt_node_link_sibling(new, bt_node_get_right_sibling(node));
        bt_node_link_sibling(node, new);
    //}
    bt_node_move_half_content(new, node, min_keys);
 

    bt_node_set_type(node, type);
    return new;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %rdi
movq 0x8(%rbx), %rax
movq 0x58(%rdi), %rcx
incq %rcx
cmpq %rcx, 0x8(%rax)
jne 0x214e
movq %rsi, %rbp
movq 0x50(%rdi), %r13
movl (%rax), %r14d
andl $0x4, %r14d
shrl %r14d
addq $0x2, %r14
movq %r14, %rsi
callq 0x23eb
movq %rax, %r15
movq 0x8(%rbx), %rax
cmpq %r13, 0x8(%rax)
jbe 0x216d
movq %r13, %r12
shlq $0x4, %r12
movq 0x30(%rax,%r12), %rcx
movq %rcx, (%rbp)
movq 0x20(%rax), %rsi
testq %rsi, %rsi
je 0x2080
movq (%rbx), %rdi
callq 0x25ed
movq %rax, %rsi
jmp 0x2082
xorl %esi, %esi
movq %r15, %rdi
callq 0x24ae
movq %rbx, %rdi
movq %r15, %rsi
callq 0x24ae
leaq 0x1(%r13), %rbp
movq 0x8(%r15), %rdi
movq 0x8(%rbx), %rax
movl (%rdi), %edx
addl %edx, %edx
andl $0x8, %edx
orq %r12, %rdx
xorq $0x8, %rdx
addq $0x28, %rdi
movq %rbp, %rcx
shlq $0x4, %rcx
leaq (%rax,%rcx), %rsi
addq $0x28, %rsi
callq 0x10f0
movq 0x8(%rbx), %rax
testb $0x4, (%rax)
jne 0x20f5
xorl %r12d, %r12d
leaq (%r12,%rbp), %rsi
movq %rbx, %rdi
callq 0x1e0d
movq %r15, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x2547
incq %r12
cmpq %r13, %r12
jbe 0x20d3
movq 0x8(%r15), %rax
movq %r13, 0x8(%rax)
movq %r15, %rdi
callq 0x12c9
movq 0x8(%rbx), %rax
btl $0x2, (%rax)
adcq $0x0, %r13
movq %r13, 0x8(%rax)
movq %rbx, %rdi
callq 0x12c9
movq %rbx, %rdi
callq 0x12c9
movq %r15, %rdi
callq 0x12c9
movq 0x8(%rbx), %rax
movq %r14, (%rax)
movq %rbx, %rdi
callq 0x12c9
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x13ce(%rip), %rdi      # 0x3523
leaq 0xec9(%rip), %rsi       # 0x3025
leaq 0x13ec(%rip), %rcx      # 0x354f
movl $0x2f3, %edx            # imm = 0x2F3
callq 0x10b0
leaq 0x11ab(%rip), %rdi      # 0x331f
leaq 0xeaa(%rip), %rsi       # 0x3025
leaq 0x11cb(%rip), %rcx      # 0x334d
movl $0x148, %edx            # imm = 0x148
callq 0x10b0
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_node_new_root_with_one_key
static BTreeNode *bt_node_new_root_with_one_key(BTree *bt, uint64_t split_key, BTreeNode *left, BTreeNode *right)
{
    BTreeNode    *new_root;

    new_root = bt_node_new_empty(bt, BT_NODE_TYPE_ROOT);

    bt_node_set_key_and_link(new_root, 0, split_key, left, right);
    bt_node_set_key_count(new_root , 1);

    bt->root = new_root;
    bt_set_root_blkid(bt, new_root->blkid);

    return new_root;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rcx, %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movl $0x1, %esi
callq 0x23eb
movq %rax, %r13
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x259a
movq 0x8(%r13), %rax
movq $0x1, 0x8(%rax)
movq %r13, %rdi
callq 0x12c9
movq %r13, 0x10(%r12)
movq 0x10(%r13), %rax
movq 0x18(%r12), %rcx
movl $0x1, 0x8(%rcx)
movq (%rcx), %rcx
movq %rax, 0x18(%rcx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_node_link_sibling
static void bt_node_link_sibling(BTreeNode *left, BTreeNode *right)
{
    if (!left || !right)
        return;

    bt_node_blk_link_sibling(left->blk, right->blk, left->blkid, right->blkid);

    bt_node_marked_dirty(left);
    bt_node_marked_dirty(right);
}

// Assembly:
testq %rdi, %rdi
sete %al
testq %rsi, %rsi
sete %cl
orb %al, %cl
jne 0x24e8
pushq %rbx
movq %rsi, %rbx
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %rcx
movq 0x8(%rsi), %rdx
movq 0x10(%rsi), %rsi
movq %rsi, 0x20(%rax)
movq %rcx, 0x18(%rdx)
callq 0x12c9
movq %rbx, %rdi
popq %rbx
jmp 0x12c9
retq
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_set_node
static void bt_set_node(BTree *bt, uint64_t blkid, BTreeNode *node)
{

    uint64_t max_blkid;
    max_blkid = bt_get_max_blkid(bt);

    assert(blkid <= max_blkid);


    // TODO....  only realloc if really needed
    if(blkid == max_blkid)
        bt->blkid_to_node = (BTreeNode **)realloc(bt->blkid_to_node, sizeof(BTreeNode *) * (max_blkid + 1));
    bt->blkid_to_node[blkid] = node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x18(%rdi), %rax
movq (%rax), %rax
cmpq %rsi, 0x28(%rax)
jb 0x2528
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq 0x60(%rdi), %rax
jne 0x251e
leaq 0x8(,%r14,8), %rsi
movq %rax, %rdi
callq 0x1110
movq %rax, 0x60(%r15)
movq %rbx, (%rax,%r14,8)
popq %rbx
popq %r14
popq %r15
retq
leaq 0x1050(%rip), %rdi      # 0x357f
leaq 0xaef(%rip), %rsi       # 0x3025
leaq 0x1055(%rip), %rcx      # 0x3592
movl $0x403, %edx            # imm = 0x403
callq 0x10b0
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_get_node
static BTreeNode *bt_get_node(BTree *bt, uint64_t blkid)
{
    uint64_t max_blkid;
    max_blkid = bt_get_max_blkid(bt);

    assert(blkid <= max_blkid);

    // TODO....  only realloc if really needed
    if (bt->blkid_to_node[blkid] == NULL)
        bt_node_new_from_file(bt, blkid);

    return bt->blkid_to_node[blkid];
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq 0x18(%rdi), %rax
movq (%rax), %rax
cmpq %rsi, 0x28(%rax)
jb 0x262c
movq %rsi, %rbx
movq %rdi, %r14
movq 0x60(%rdi), %rax
movq (%rax,%rsi,8), %rax
testq %rax, %rax
jne 0x2624
movq %r14, %rdi
movq %rbx, %rsi
callq 0x264b
movq 0x60(%r14), %rax
movq (%rax,%rbx,8), %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
leaq 0xf4c(%rip), %rdi       # 0x357f
leaq 0x9eb(%rip), %rsi       # 0x3025
leaq 0x1164(%rip), %rcx      # 0x37a5
movl $0x411, %edx            # imm = 0x411
callq 0x10b0
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_node_new_from_file
static BTreeNode *bt_node_new_from_file(BTree *bt, uint64_t blkid)
{
    BTreeNode    *node;
    BTreeNodeBlk *blk;
    blk =  bt_node_blk_new_from_file(bt, blkid);
    node = (BTreeNode *)malloc(sizeof(BTreeNode));
    node->blk = blk;
    node->blkid = blkid;
    node->tree = bt;
    node->state = NULL;     // clean node.

    bt_set_node(bt, blkid, node);

    return node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq 0x18(%rdi), %rax
movq (%rax), %rax
movq 0x10(%rax), %r15
leaq 0x10(%r15), %rdi
callq 0x1100
movq %rax, %r12
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x10c0
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x26c8
movl $0x30, %edi
callq 0x1100
movq %rax, %r15
movq %r12, 0x8(%rax)
movq %rbx, 0x10(%rax)
movq %r14, (%rax)
movq $0x0, 0x28(%rax)
movq %r14, %rdi
movq %rbx, %rsi
movq %rax, %rdx
callq 0x24e9
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree.c
// Function: bt_load_blk
static void bt_load_blk(BTree *bt, void *dst, uint64_t blkid)
{
    ssize_t   rtv;
    uint64_t  blksize;

    // when load Meta block, blksize is unknown
    if (blkid == 0)
        blksize = sizeof(BTreeMetaBlk);
    else
        blksize = bt_get_blksize(bt);
    
    bt_open_file(bt);
    rtv = lseek(bt->file_fd, blkid * blksize, SEEK_SET);
    assert(rtv == blkid * blksize);
    rtv = read(bt->file_fd, dst, blksize);
    assert(rtv == blksize);

}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r15
testq %rdx, %rdx
je 0x26eb
movq 0x18(%r15), %rax
movq (%rax), %rax
movq 0x10(%rax), %r14
jmp 0x26f1
movl $0x30, %r14d
movq %r15, %rdi
callq 0x1fbf
movl 0x8(%r15), %edi
imulq %r14, %r12
movq %r12, %rsi
xorl %edx, %edx
callq 0x10a0
cmpq %r12, %rax
jne 0x2730
movl 0x8(%r15), %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x10d0
cmpq %r14, %rax
jne 0x274f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xca4(%rip), %rdi       # 0x33db
leaq 0x8e7(%rip), %rsi       # 0x3025
leaq 0x108a(%rip), %rcx      # 0x37cf
movl $0x430, %edx            # imm = 0x430
callq 0x10b0
leaq 0xcc1(%rip), %rdi       # 0x3417
leaq 0x8c8(%rip), %rsi       # 0x3025
leaq 0x106b(%rip), %rcx      # 0x37cf
movl $0x432, %edx            # imm = 0x432
callq 0x10b0
nop
// File: /workspace/github_c_makefile_star2_O3/CkTD[P]btree/btree_test1.c
// Function: main
int main()
{
    uint64_t       k, n;
    BTree         *bt;
    BTreeOpenFlag  flag;

    flag.create_if_missing = 1;
    flag.error_if_exist = 0;
    flag.file = "./test.bt";
    flag.order = 3;

    bt = bt_open(flag);
    
//    printf("Tree order: %lu\n", flag.order);
//    printf("Empty tree:\n");
//    bt_print(bt);

    printf("插入10 个随机的 key/value pair...\n");
    for(k=0;k<10;k++)
    {
        n = rand() % 100;
        bt_insert(bt, n, n);
        printf("\tinsert (%ld, %ld)\n", n, n);
    }
    printf("Insert done.\n");
   
    printf("Tree:");
    bt_print(bt);

    printf("Search done.\n");
    bt_close(bt);
    return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq $0x1, 0x30(%rsp)
leaq 0x11b3(%rip), %rax      # 0x393e
movq %rax, 0x20(%rsp)
movq $0x3, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x20(%rsp), %xmm0
movups %xmm0, (%rsp)
callq 0x1905
movq %rax, %rbx
leaq 0x11a7(%rip), %rdi      # 0x3962
callq 0x1060
movl $0xa, %r12d
leaq 0x117b(%rip), %r14      # 0x3948
callq 0x1150
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
movslq %eax, %r15
movq %rbx, %rdi
movq %r15, %rsi
movq %r15, %rdx
callq 0x1682
movq %r14, %rdi
movq %r15, %rsi
movq %r15, %rdx
xorl %eax, %eax
callq 0x1090
decq %r12
jne 0x27cd
leaq 0x1170(%rip), %rdi      # 0x398a
callq 0x1060
leaq 0x1136(%rip), %rdi      # 0x395c
xorl %eax, %eax
callq 0x1090
movq %rbx, %rdi
callq 0x1e91
leaq 0x115b(%rip), %rdi      # 0x3997
callq 0x1060
movq %rbx, %rdi
callq 0x1ba9
xorl %eax, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/main.c
// Function: quit
void quit()
{
	clrtoeol();
	refresh();
	getch();
	endwin();
}

// Assembly:
pushq %rbx
movq 0xe9dd(%rip), %rbx      # 0x13ff0
movq (%rbx), %rdi
callq 0x1150
movq (%rbx), %rdi
callq 0x1100
movq (%rbx), %rdi
callq 0x11e0
popq %rbx
jmp 0x1140
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/ennemy.c
// Function: testEnnemyOnPos
int testEnnemyOnPos(Ennemy ennemies[], int x, int y, int nbrEnnemies)
{
	int ret = -1;
	int i = 0;

	for(i = 0; i < nbrEnnemies; i++)
	{
		if(ennemies[i].x == x && ennemies[i].y == y && ennemies[i].life > 0)
		{
			ret = i;
			break;
		}
	}

	return ret;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jle 0x584d
movl %ecx, %ecx
addq $0x8, %rdi
xorl %r8d, %r8d
cmpl %esi, -0x8(%rdi)
jne 0x5841
cmpl %edx, -0x4(%rdi)
jne 0x5841
cmpl $0x0, (%rdi)
jg 0x584e
incq %r8
addq $0x38, %rdi
cmpq %r8, %rcx
jne 0x5832
retq
movl %r8d, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/ennemy.c
// Function: repair
void repair(Ennemy ennemies[], int indice, int *colorPrint, char messagePrint[])
{
	*colorPrint = 197; // RED LIKE BLOOOOOOOD
	char *body[] = {"HEAD","CORE","ARMS","LEGS"};
	int heal = rand()%3+1+ennemies[indice].agility/3;
	snprintf(messagePrint,100,"%s IS REPARING HIS %s (+%d LP)",ennemies[indice].name,body[rand()%4],heal);
	ennemies[indice].life += heal;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r14
movl %esi, %ebp
movq %rdi, %rbx
movl $0xc5, (%rdx)
callq 0x11d0
cltq
imulq $0x55555556, %rax, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rcx,%rcx,2), %ecx
subl %ecx, %eax
movslq %ebp, %rcx
imulq $0x38, %rcx, %r12
movslq 0x14(%rbx,%r12), %rcx
imulq $0x55555556, %rcx, %rcx # imm = 0x55555556
movq %rcx, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rcx
addl %edx, %ecx
leal (%rax,%rcx), %ebp
incl %ebp
movq 0x30(%rbx,%r12), %r15
callq 0x11d0
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
subl %ecx, %eax
cltq
leaq 0x9412(%rip), %rcx      # 0xff70
movslq (%rcx,%rax,4), %r8
addq %rcx, %r8
leaq 0x955f(%rip), %rdx      # 0x100cb
movl $0x64, %esi
movq %r14, %rdi
movq %r15, %rcx
movl %ebp, %r9d
xorl %eax, %eax
callq 0x1050
addl %ebp, 0x8(%rbx,%r12)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/interface.c
// Function: printBar
void printBar(WINDOW *win, char name[15],int attribute, int x, int y, int colorpair)
{
	unsigned int i = 0;
	mvwprintw(win,x,y,"%s: ",name);

	if(attribute > 0)
	{
		wattron(win,COLOR_PAIR(colorpair));
		for(i = 14+strlen(name); i >= strlen(name)+4; i--)
		{
			// 1 case = 10 pv
			if((i-(strlen(name)+4))*10 <= attribute)
			{
				mvwprintw(win,x,i," ");
			}
		}
		wattroff(win,COLOR_PAIR(colorpair));

		wattron(win,A_BOLD);
		mvwprintw(win,x,strlen(name)+16,"(%d)  ",attribute);
		wattroff(win,A_BOLD);
	}
	else
	{
		wattron(win,A_BOLD);
		mvwprintw(win,x,strlen(name)+16,"(0)  ");
		wattroff(win,A_BOLD);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %r9d, %r12d
movl %ecx, %ebp
movl %edx, %r14d
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x8c84(%rip), %rcx      # 0x10252
movl %ebp, %esi
movl %r8d, %edx
movq %r15, %r8
xorl %eax, %eax
callq 0x1070
testl %r14d, %r14d
jle 0x769b
movl %r14d, (%rsp)
shll $0x8, %r12d
movzwl %r12w, %esi
movq %rbx, %rdi
movl %esi, 0x4(%rsp)
xorl %edx, %edx
callq 0x11c0
movq %r15, %rdi
callq 0x10f0
leal 0xe(%rax), %ecx
addq $0x4, %rax
cmpq %rcx, %rax
ja 0x765a
movl (%rsp), %r14d
leaq 0x7c1f(%rip), %r13      # 0xf23e
movl %ecx, %r12d
subq %rax, %rcx
addq %rcx, %rcx
leaq (%rcx,%rcx,4), %rax
cmpq %r14, %rax
ja 0x7643
movq %rbx, %rdi
movl %ebp, %esi
movl %r12d, %edx
movq %r13, %rcx
xorl %eax, %eax
callq 0x1070
decl %r12d
movq %r15, %rdi
callq 0x10f0
addq $0x4, %rax
movq %r12, %rcx
cmpq %r12, %rax
jbe 0x7622
movq %rbx, %rdi
movl 0x4(%rsp), %esi
xorl %edx, %edx
callq 0x1060
movq %rbx, %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %edx, %edx
callq 0x11c0
movq %r15, %rdi
callq 0x10f0
leal 0x10(%rax), %edx
leaq 0x8bce(%rip), %rcx      # 0x10257
movq %rbx, %rdi
movl %ebp, %esi
movl (%rsp), %r8d
xorl %eax, %eax
callq 0x1070
jmp 0x76c8
movq %rbx, %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %edx, %edx
callq 0x11c0
movq %r15, %rdi
callq 0x10f0
leal 0x10(%rax), %edx
leaq 0x8ba2(%rip), %rcx      # 0x1025e
movq %rbx, %rdi
movl %ebp, %esi
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0x200000, %esi         # imm = 0x200000
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1060
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/interface.c
// Function: printEnnemy
void printEnnemy(WINDOW *win, Ennemy ennemies[], int nbrEnnemyFloor)
{
	box(win,0,0);
	char *classeEnnemy[] = {"???","DROID","SENTRY","GUARDIAN","GUARDIAN"};
	int i = 0;
	int c = 1;
	mvwprintw(win,1,1,"ENEMIES :");
	for(i = 0; i < nbrEnnemyFloor; i++)
	{
		if(ennemies[i].type > 0 && ennemies[i].seen == 1 && ennemies[i].life > 0)
		{
			wattron(win,A_UNDERLINE);
			mvwprintw(win,c+2,5,"%s (%s)",ennemies[i].name,classeEnnemy[ennemies[i].type]);
			wattroff(win,A_UNDERLINE);
			printBar(win,"LIFE",ennemies[i].life,c+4,2,249);
			c+=3;
		}
		/*else
		{
			break;
		}*/
	}

	wrefresh(win);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
subq $0x8, %rsp
xorl %eax, %eax
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %rax
pushq %rax
pushq %rax
callq 0x1120
addq $0x20, %rsp
leaq 0x8b47(%rip), %rcx      # 0x10264
movl $0x1, %r13d
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
testl %ebp, %ebp
jle 0x77e9
movl %ebp, %eax
imulq $0x38, %rax, %rbp
leaq 0x89ec(%rip), %r15      # 0x10138
xorl %r12d, %r12d
cmpl $0x0, 0x20(%r14,%r12)
jle 0x77dc
cmpl $0x1, 0xc(%r14,%r12)
jne 0x77dc
cmpl $0x0, 0x8(%r14,%r12)
jle 0x77dc
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x11c0
leal 0x2(%r13), %esi
movq 0x30(%r14,%r12), %r8
movslq 0x20(%r14,%r12), %rax
movslq (%r15,%rax,4), %r9
addq %r15, %r9
movq %rbx, %rdi
movl $0x5, %edx
leaq 0x8ad0(%rip), %rcx      # 0x1026e
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x1060
movl 0x8(%r14,%r12), %edx
leal 0x4(%r13), %ecx
movq %rbx, %rdi
leaq 0x8a1c(%rip), %rsi      # 0x101e3
movl $0x2, %r8d
movl $0xf9, %r9d
callq 0x75ae
addl $0x3, %r13d
addq $0x38, %r12
cmpq %r12, %rbp
jne 0x774f
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/interface.c
// Function: printWeapon
void printWeapon(WINDOW *win, Weapons weaponHold)
{
	wborder(win, '|', '|', '-', '-', '+', '+', '+', '+');
	mvwprintw(win,1,1,"WEAPON :");
	wattron(win,A_UNDERLINE);
	mvwprintw(win,2,(30-strlen(weaponHold.name))/2,"%s",weaponHold.name);
	wattroff(win,A_UNDERLINE);

	if(weaponHold.type > 0)
	{
		printBar(win,"AMMO",weaponHold.state,4,2,247);
		mvwprintw(win,5,2,"RANGE: %d",weaponHold.range);
	}
	else if(weaponHold.indice != 3)
	{
		printBar(win,"STATE",weaponHold.state,4,2,247);
	}

	mvwprintw(win,6,2,"DAMAGES: %d",weaponHold.degat);

	wrefresh(win);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x20(%rsp), %r15
subq $0x8, %rsp
movl $0x2b, %eax
movl $0x7c, %esi
movl $0x7c, %edx
movl $0x2d, %ecx
movl $0x2d, %r8d
movl $0x2b, %r9d
pushq %rax
pushq %rax
pushq %rax
callq 0x1120
addq $0x20, %rsp
leaq 0x8a33(%rip), %rcx      # 0x10276
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x11c0
movq (%r15), %r14
movq %r14, %rdi
callq 0x10f0
movl $0x1e, %edx
subq %rax, %rdx
shrq %rdx
leaq 0x8ad6(%rip), %rcx      # 0x10359
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %r8
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x1060
cmpl $0x0, 0x24(%r15)
jle 0x78f0
movl 0x1c(%r15), %edx
leaq 0x89c9(%rip), %rsi      # 0x1027f
movq %rbx, %rdi
movl $0x4, %ecx
movl $0x2, %r8d
movl $0xf7, %r9d
callq 0x75ae
movl 0x20(%r15), %r8d
leaq 0x89aa(%rip), %rcx      # 0x10284
movq %rbx, %rdi
movl $0x5, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x1070
jmp 0x791b
cmpl $0x3, 0x2c(%r15)
je 0x791b
movl 0x1c(%r15), %edx
leaq 0x898c(%rip), %rsi      # 0x1028e
movq %rbx, %rdi
movl $0x4, %ecx
movl $0x2, %r8d
movl $0xf7, %r9d
callq 0x75ae
movl 0x10(%r15), %r8d
leaq 0x896e(%rip), %rcx      # 0x10294
movq %rbx, %rdi
movl $0x6, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/interface.c
// Function: setMessage
void setMessage(WINDOW *win, char message[], int colorPair)
{
	wborder(win, '|', '|', '-', '-', '+', '+', '+', '+');
	wattron(win,A_UNDERLINE);
	mvwprintw(win,1,1,"MESSAGES:");
	wattroff(win,A_UNDERLINE);

	if(colorPair != 0)
	{
		wattron(win,COLOR_PAIR(colorPair));
		mvwprintw(win,2,1,message);
		wattroff(win,COLOR_PAIR(colorPair));	
	}
	else
	{
		mvwprintw(win,2,1,message);
	}

	wrefresh(win);	
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
subq $0x8, %rsp
movl $0x2b, %eax
movl $0x7c, %esi
movl $0x7c, %edx
movl $0x2d, %ecx
movl $0x2d, %r8d
movl $0x2b, %r9d
pushq %rax
pushq %rax
pushq %rax
callq 0x1120
addq $0x20, %rsp
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x11c0
leaq 0x8499(%rip), %rcx      # 0x103d6
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x1060
testl %ebp, %ebp
je 0x7f9b
shll $0x8, %ebp
movzwl %bp, %ebp
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11c0
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x1060
jmp 0x7fb2
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
popq %rbx
popq %r14
popq %rbp
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/interface.c
// Function: printArmor
void printArmor(WINDOW *win, Armor armor)
{
	wborder(win, '|', '|', '-', '-', '+', '+', '+', '+');
	mvwprintw(win,1,1,"ARMOR :");
	wattron(win,A_UNDERLINE);
	mvwprintw(win,2,(30-strlen(armor.name))/2,"%s",armor.name);
	wattroff(win,A_UNDERLINE);

	if(armor.indice != 10)
		printBar(win,"STATE",armor.state,4,2,247);
	
	mvwprintw(win,6,2,"RESISTANCE: %d",armor.resistance);

	wrefresh(win);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x20(%rsp), %r15
subq $0x8, %rsp
movl $0x2b, %eax
movl $0x7c, %esi
movl $0x7c, %edx
movl $0x2d, %ecx
movl $0x2d, %r8d
movl $0x2b, %r9d
pushq %rax
pushq %rax
pushq %rax
callq 0x1120
addq $0x20, %rsp
leaq 0x83de(%rip), %rcx      # 0x103e0
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x11c0
movq (%r15), %r14
movq %r14, %rdi
callq 0x10f0
movl $0x1e, %edx
subq %rax, %rdx
shrq %rdx
leaq 0x8317(%rip), %rcx      # 0x10359
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %r8
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0x20000, %esi          # imm = 0x20000
xorl %edx, %edx
callq 0x1060
cmpl $0xa, 0x20(%r15)
je 0x808e
movl 0x18(%r15), %edx
leaq 0x8219(%rip), %rsi      # 0x1028e
movq %rbx, %rdi
movl $0x4, %ecx
movl $0x2, %r8d
movl $0xf7, %r9d
callq 0x75ae
movl 0x14(%r15), %r8d
leaq 0x834f(%rip), %rcx      # 0x103e8
movq %rbx, %rdi
movl $0x6, %esi
movl $0x2, %edx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
popq %rbx
popq %r14
popq %r15
jmp 0x1100
nop
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/item.c
// Function: shuffleDrugs
void shuffleDrugs(Map map[LONGUEUR][LARGEUR], Drug drugs[], int nbrDrugs, int *nbrDrugsInFloor)
{
	srand(time(NULL));

	int i = 0;

	*nbrDrugsInFloor = rand()%nbrDrugs+4;
	for(i = 0; i < *nbrDrugsInFloor; i++)
	{
		int indiceDrug = rand()%NBR_DRUGS;
		drugs[i].color = indiceDrug+COLOR_DRUGS;
		drugs[i].indice = i;
		drugs[i].type = indiceDrug;
		drugs[i].poisoned = rand()%4;
		drugs[i].discovered = 0;

		int posX = 0;
		int posY = 0;

		while(posX == 0 || posY == 0 || posX == LONGUEUR || posY == LARGEUR)
		{
			posX = rand()%LONGUEUR;
			posY = rand()%LARGEUR;
		}

		drugs[i].x = posX;
		drugs[i].y = posY;
		map[posX][posY].content = DRUG;
	}

}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, (%rsp)
xorl %edi, %edi
callq 0x1210
movl %eax, %edi
callq 0x1170
callq 0x11d0
cltd
idivl %ebp
leal 0x4(%rdx), %eax
movl %eax, (%rbx)
cmpl $-0x3, %edx
jl 0x81f4
xorl %r12d, %r12d
callq 0x11d0
cltq
imulq $-0x6db6db6d, %rax, %rcx # imm = 0x92492493
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
sarl $0x2, %ecx
addl %edx, %ecx
leal (,%rcx,8), %edx
subl %edx, %ecx
leal (%rax,%rcx), %edx
addl %ecx, %eax
addl $0x32, %eax
leaq (%r12,%r12,8), %rcx
leaq (%rcx,%rcx,2), %rbp
addq %r12, %rbp
leaq (%r14,%rbp), %r13
movl %eax, 0x8(%r14,%rbp)
movl %r12d, 0xc(%r14,%rbp)
movl %edx, (%r14,%rbp)
callq 0x11d0
leal 0x3(%rax), %ecx
testl %eax, %eax
cmovnsl %eax, %ecx
andl $-0x4, %ecx
subl %ecx, %eax
movl %eax, 0x4(%r14,%rbp)
movl $0x0, 0x10(%r14,%rbp)
callq 0x11d0
movslq %eax, %rbp
imulq $-0x2df2df2d, %rbp, %rax # imm = 0xD20D20D3
shrq $0x20, %rax
addl %ebp, %eax
movl %eax, %ecx
shrl $0x1f, %ecx
sarl $0x5, %eax
addl %ecx, %eax
imull $0x27, %eax, %r15d
callq 0x11d0
cltq
imulq $0x7e07e07f, %rax, %rcx # imm = 0x7E07E07F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x26, %rcx
addl %edx, %ecx
movl %ecx, %edx
shll $0x7, %edx
subl %r15d, %ebp
leal (%rdx,%rcx,2), %ecx
sete %dl
subl %ecx, %eax
sete %cl
orb %dl, %cl
jne 0x8166
movl %ebp, 0x14(%r13)
movl %eax, 0x18(%r13)
movslq %ebp, %rcx
cltq
imulq $0xe38, %rcx, %rcx      # imm = 0xE38
addq (%rsp), %rcx
leaq (%rax,%rax,8), %rdx
leaq (%rdx,%rdx,2), %rdx
addq %rax, %rdx
movl $0x5, (%rcx,%rdx)
incq %r12
movslq (%rbx), %rax
cmpq %rax, %r12
jl 0x80fa
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/item.c
// Function: testDrug
int testDrug(Drug drugList[], int x, int y, int nbrDrugsInFloor)
{
	int ret = -1;
	int i = 0;

	for(i = 0; i < nbrDrugsInFloor; i++)
	{
		if(drugList[i].x == x && drugList[i].y == y)
		{
			ret = i;
			break;
		}
	}

	return ret;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jle 0x822a
movl %ecx, %ecx
addq $0x18, %rdi
xorl %r8d, %r8d
cmpl %esi, -0x4(%rdi)
jne 0x821e
cmpl %edx, (%rdi)
je 0x822b
incq %r8
addq $0x1c, %rdi
cmpq %r8, %rcx
jne 0x8215
retq
movl %r8d, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/item.c
// Function: testWeapon
int testWeapon(Weapons weapons[],int x, int y, int nbrWeapons)
{
	int ret = -1;
	int i = 0;

	for(i = 0; i < nbrWeapons; i++)
	{
		if(weapons[i].x == x && weapons[i].y == y)
		{
			ret = i;
			break;
		}
	}


	return ret;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jle 0x8256
movl %ecx, %ecx
addq $0x38, %rdi
xorl %r8d, %r8d
cmpl %esi, -0x4(%rdi)
jne 0x824a
cmpl %edx, (%rdi)
je 0x8257
incq %r8
addq $0x40, %rdi
cmpq %r8, %rcx
jne 0x8241
retq
movl %r8d, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/item.c
// Function: testArmor
int testArmor(Armor armor[],int x, int y, int nbrArmors)
{
	int ret = -1;
	int i = 0;

	for(i = 0; i < nbrArmors; i++)
	{
		if(armor[i].x == x && armor[i].y == y)
		{
			ret = i;
			break;
		}
	}


	return ret;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jle 0x8282
movl %ecx, %ecx
addq $0x2c, %rdi
xorl %r8d, %r8d
cmpl %esi, -0x4(%rdi)
jne 0x8276
cmpl %edx, (%rdi)
je 0x8283
incq %r8
addq $0x30, %rdi
cmpq %r8, %rcx
jne 0x826d
retq
movl %r8d, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/map.c
// Function: initMap
void initMap(Map map[LONGUEUR][LARGEUR], WINDOW *win)
{
	wclear(win);
	box(win,0,0);
	
	int i,j = 0;

	for(i = 0; i < LARGEUR; i++)
	{
		for(j = 0; j < LONGUEUR; j++)
		{
			map[j][i].content = 0;
			map[j][i].seen = 0;
			map[j][i].effect = 0;
			map[j][i].typeEnnemy = 0;
			map[j][i].typePnj = -1;
			map[j][i].trap = 0;
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
movq %rsi, %rdi
callq 0x1030
subq $0x8, %rsp
xorl %r15d, %r15d
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r15
pushq %r15
pushq %r15
callq 0x1120
addq $0x20, %rsp
xorps %xmm0, %xmm0
movl $0x18, %eax
movups %xmm0, -0x18(%rbx,%rax)
movl $0xffffffff, -0x8(%rbx,%rax) # imm = 0xFFFFFFFF
movl $0x0, (%rbx,%rax)
addq $0xe38, %rax            # imm = 0xE38
cmpq $0x22aa0, %rax          # imm = 0x22AA0
jne 0x9264
incq %r15
addq $0x1c, %rbx
cmpq $0x82, %r15
jne 0x925f
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/map.c
// Function: destroyWall
void destroyWall(Map map[LONGUEUR][LARGEUR], int x, int y, Weapons *weaponHold, int *gem)
{	
	if(x != 0 && x != LONGUEUR && y != 0 && y != LARGEUR)
	{
		if(map[x][y].resistance-weaponHold->degat > 0)
		{
			map[x][y].resistance -= weaponHold->degat;
			if(weaponHold->type == 0)
				weaponHold->state -= map[x][y].resistance/5+3;
			else
				weaponHold->state--;
		}
		else
		{
			map[x][y].resistance = 0;
			if(map[x][y].effect == 4) // if the player breaks a gem
			{
				(*gem)++;
				map[x][y].content = FLOOR;
			}
			else
			{
				if(rand()%100 <= 90)
					map[x][y].content = FLOOR;
				else
				{
					map[x][y].content = MINES;
					map[x][y].trap = 2;
				}
			}
		}
	}
}

// Assembly:
cmpl $0x82, %edx
je 0x9361
testl %esi, %esi
je 0x9361
cmpl $0x27, %esi
je 0x9361
testl %edx, %edx
je 0x9361
pushq %rbx
movslq %esi, %rax
movslq %edx, %rdx
imulq $0xe38, %rax, %rax      # imm = 0xE38
addq %rax, %rdi
leaq (%rdx,%rdx,8), %rax
leaq (%rax,%rax,2), %rax
addq %rdx, %rax
leaq (%rdi,%rax), %rbx
movl 0x14(%rdi,%rax), %eax
subl 0x10(%rcx), %eax
jle 0x92f8
movl %eax, 0x14(%rbx)
cmpl $0x0, 0x24(%rcx)
je 0x930a
decl 0x1c(%rcx)
jmp 0x9360
movl $0x0, 0x14(%rbx)
cmpl $0x4, 0x4(%rbx)
jne 0x9326
incl (%r8)
jmp 0x934b
movl %eax, %eax
movl $0xcccccccd, %edx       # imm = 0xCCCCCCCD
imulq %rax, %rdx
shrq $0x22, %rdx
movl 0x1c(%rcx), %eax
subl %edx, %eax
addl $-0x3, %eax
movl %eax, 0x1c(%rcx)
jmp 0x9360
callq 0x11d0
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
cmpl $0x5a, %eax
jg 0x9353
movl $0x1, (%rbx)
jmp 0x9360
movl $0x4, (%rbx)
movl $0x2, 0x18(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/menu.c
// Function: popUpArchitect
void popUpArchitect()
{
	WINDOW *win;
	win = newwin(5,30,rand()%LONGUEUR,rand()%LARGEUR);
	box(win,0,0);
	int color = rand()%255+1;
	wattron(win, COLOR_PAIR(color));
	mvwprintw(win,1,1,"PFL TRE'K VJTRGV !");
	mvwprintw(win,2,1,"JKFG");
	mvwprintw(win,3,1,"**WE ALREADY WON**");
	if(rand()%100 > 50)
		mvwprintw(win,4,1,"THEY PAID A LOT FOR THIS WEAPON...");
	wattroff(win, COLOR_PAIR(color));
	box(win, ' ', ' ');
	wborder(win, ' ', ' ', ' ',' ',' ',' ',' ',' ');
	wclear(win);
	wrefresh(win);
	delwin(win);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
callq 0x11d0
movslq %eax, %rbx
imulq $-0x2df2df2d, %rbx, %rax # imm = 0xD20D20D3
shrq $0x20, %rax
addl %ebx, %eax
movl %eax, %ecx
shrl $0x1f, %ecx
sarl $0x5, %eax
addl %ecx, %eax
imull $0x27, %eax, %eax
subl %eax, %ebx
callq 0x11d0
movslq %eax, %rcx
imulq $0x7e07e07f, %rcx, %rax # imm = 0x7E07E07F
movq %rax, %rdx
shrq $0x3f, %rdx
shrq $0x20, %rax
sarl $0x6, %eax
addl %edx, %eax
movl %eax, %edx
shll $0x7, %edx
leal (%rdx,%rax,2), %eax
subl %eax, %ecx
movl $0x5, %edi
movl $0x1e, %esi
movl %ebx, %edx
callq 0x1130
movq %rax, %rbx
subq $0x8, %rsp
xorl %r14d, %r14d
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
xorl %r9d, %r9d
pushq %r14
pushq %r14
pushq %r14
callq 0x1120
addq $0x20, %rsp
callq 0x11d0
cltq
imulq $-0x7f7f7f7f, %rax, %rcx # imm = 0x80808081
shrq $0x20, %rcx
addl %eax, %ecx
movl %ecx, %edx
shrl $0x1f, %edx
shrl $0x7, %ecx
addl %edx, %ecx
addl %eax, %ecx
shll $0x8, %ecx
addl $0x100, %ecx            # imm = 0x100
movzwl %cx, %ebp
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x11c0
leaq 0x6419(%rip), %rcx      # 0x10f68
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
leaq 0x6411(%rip), %rcx      # 0x10f7b
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
leaq 0x63fb(%rip), %rcx      # 0x10f80
movq %rbx, %rdi
movl $0x3, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
callq 0x11d0
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
cmpl $0x33, %eax
jl 0xabd9
leaq 0x63ce(%rip), %rcx      # 0x10f93
movq %rbx, %rdi
movl $0x4, %esi
movl $0x1, %edx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x1060
subq $0x8, %rsp
movl $0x20, %r15d
movq %rbx, %rdi
movl $0x20, %esi
movl $0x20, %edx
movl $0x20, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq %r14
pushq %r14
pushq %r14
callq 0x1120
addq $0x18, %rsp
movq %rbx, %rdi
movl $0x20, %esi
movl $0x20, %edx
movl $0x20, %ecx
movl $0x20, %r8d
movl $0x20, %r9d
pushq %r15
pushq %r15
pushq %r15
callq 0x1120
addq $0x20, %rsp
movq %rbx, %rdi
callq 0x1030
movq %rbx, %rdi
callq 0x1100
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1110
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/player.c
// Function: hitEnnemy
int hitEnnemy(Player player, Ennemy *ennemy, Weapons weaponHold, int *components, int *blood)
{
	int ret = 0;
	if(rand()%100 < 100-player.hate)
	{
		if(weaponHold.type == 0)
			ennemy->life -= abs(weaponHold.degat+(int)(player.strength/2));
	}
	else
	{
		ret = 2;
		ennemy->life -= weaponHold.degat*(int)(player.hate/2);
	}
	if(ennemy->life <= 0)
	{
		ret = 1;
		if(ennemy->type == 1)
		{
			int compWin = rand()%10+5;
			*components += compWin;	
		}
		else if(ennemy->type == 2)
		{
			int compWin = rand()%15+7;
			*components += compWin;	
		}
		else if(ennemy->type == 3 || ennemy->type == 4)
		{
			*blood += rand()%10+5;
		}
	}

	return ret;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
leaq 0x70(%rsp), %r12
callq 0x11d0
cltq
imulq $0x51eb851f, %rax, %rcx # imm = 0x51EB851F
movq %rcx, %rdx
shrq $0x3f, %rdx
sarq $0x25, %rcx
addl %edx, %ecx
imull $0x64, %ecx, %ecx
subl %ecx, %eax
movl 0x58(%rsp), %ecx
movl $0x64, %edx
subl %ecx, %edx
cmpl %edx, %eax
jge 0xbcbf
cmpl $0x0, 0x24(%r12)
je 0xbcdf
movl 0x8(%r15), %eax
jmp 0xbd04
movl %ecx, %eax
shrl $0x1f, %eax
addl %ecx, %eax
sarl %eax
negl %eax
imull 0x10(%r12), %eax
addl 0x8(%r15), %eax
movl %eax, 0x8(%r15)
movl $0x2, %ebp
jmp 0xbd06
leaq 0x30(%rsp), %rax
movl 0x20(%rax), %eax
movl %eax, %ecx
shrl $0x1f, %ecx
addl %eax, %ecx
sarl %ecx
addl 0x10(%r12), %ecx
movl %ecx, %eax
negl %eax
cmovnsl %ecx, %eax
addl 0x8(%r15), %eax
movl %eax, 0x8(%r15)
xorl %ebp, %ebp
testl %eax, %eax
jg 0xbd50
movl 0x20(%r15), %eax
movl $0x5, %r15d
movl $0xa, %r12d
movl $0x1, %ebp
leal -0x3(%rax), %ecx
cmpl $0x2, %ecx
jb 0xbd3f
cmpl $0x1, %eax
je 0xbd42
cmpl $0x2, %eax
jne 0xbd50
movl $0x7, %r15d
movl $0xf, %r12d
jmp 0xbd42
movq %r14, %rbx
callq 0x11d0
cltd
idivl %r12d
addl %r15d, %edx
addl %edx, (%rbx)
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/player.c
// Function: crystalCanon
void crystalCanon(Map map[LONGUEUR][LARGEUR], Player player, char dir)
{

		int x, y = 0;
		int posX = player.x;
		int posY = player.y;

		switch(dir)
		{
			case 'z':
				x = -1;
				y = 0;
				break;
			case 's':
				x = 1;
				y = 0;
				break;
			case 'q':
				x = 0;
				y = -1;
				break;
			case 'd':
				x = 0;
				y = 1;
				break;
			case 'a':
				x = -1;
				y = -1;
				break;
			case 'e':
				x = -1;
				y = 1;
				break;
			case 'w':
				x = 1;
				y = -1;
				break;
			case 'x':
				x = 1;
				y = 1;
				break;
		}

		while(posX < LONGUEUR && posX > 0 && posY > 0 && posY < LARGEUR)
		{
			map[posX][posY].content = FLOOR;
			posX += x;
			posY += y;
		}
}

// Assembly:
pushq %rbx
movl 0x24(%rsp), %eax
movl 0x28(%rsp), %ecx
xorl %edx, %edx
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
cmpl $0x70, %esi
jle 0xc2f2
addl $-0x71, %esi
cmpl $0x7, %esi
ja 0xc332
leaq 0x5062(%rip), %r9       # 0x11344
movslq (%r9,%rsi,4), %rsi
addq %r9, %rsi
jmpq *%rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jmp 0xc32f
cmpl $0x61, %esi
je 0xc31d
cmpl $0x64, %esi
je 0xc32a
cmpl $0x65, %esi
je 0xc316
jmp 0xc332
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x1, %r8d
jmp 0xc332
movl $0x1, %r8d
movl $0x1, %edx
jmp 0xc332
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jmp 0xc332
movl $0x1, %edx
xorl %r8d, %r8d
leal -0x1(%rax), %esi
cmpl $0x26, %esi
setb %sil
leal -0x1(%rcx), %r9d
cmpl $0x81, %r9d
setb %r9b
andb %sil, %r9b
cmpb $0x1, %r9b
jne 0xc39a
leal -0x1(%rdx), %esi
leal -0x1(%r8), %r9d
movl %eax, %r10d
movl %ecx, %r11d
imulq $0xe38, %r10, %r10      # imm = 0xE38
addq %rdi, %r10
leaq (%r11,%r11,8), %rbx
leaq (%rbx,%rbx,2), %rbx
addq %r11, %rbx
movl $0x1, (%r10,%rbx)
leal (%r9,%rax), %r10d
cmpl $0x25, %r10d
ja 0xc39a
addl %r8d, %eax
leal (%rsi,%rcx), %r10d
addl %edx, %ecx
cmpl $0x81, %r10d
jb 0xc35b
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/pnj.c
// Function: testPnjOnPos
int testPnjOnPos(Pnj pnj[], int x, int y, int nbrPnj)
{
	int ret = -1;
	int i = 0;

	for(i = 0; i < nbrPnj; i++)
	{
		if(pnj[i].x == x && pnj[i].y == y)
		{
			ret = i;
			break;
		}
	}

	return ret;
}

// Assembly:
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %ecx, %ecx
jle 0xc403
movl %ecx, %ecx
addq $0x18, %rdi
xorl %r8d, %r8d
cmpl %esi, -0x4(%rdi)
jne 0xc3f7
cmpl %edx, (%rdi)
je 0xc404
incq %r8
addq $0x20, %rdi
cmpq %r8, %rcx
jne 0xc3ee
retq
movl %r8d, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/S01den[P]Lost_CavernRL/screen.c
// Function: flashBomb
void flashBomb(WINDOW *win_map)
{
	int k = 0;
	int l = 0;
	
	for(k = 1; k < LONGUEUR-1; k++)
	{
		for(l = 1; l < LARGEUR-1; l++)
		{
			wattron(win_map,COLOR_PAIR(244));
			mvwprintw(win_map,k,l," ");
			wattroff(win_map,COLOR_PAIR(244));
		}
	}
	
	wrefresh(win_map);
	delay(15);
	for(k = 1; k < LONGUEUR-1; k++)
	{
		for(l = 1; l < LARGEUR-1; l++)
		{
			wattron(win_map,COLOR_BLACK);
			mvwprintw(win_map,k,l," ");
			wattroff(win_map,COLOR_BLACK);
		}
	}
	wrefresh(win_map);
	delay(9);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %ebp
leaq 0x185b(%rip), %r14      # 0xf23e
movl $0x1, %r15d
movq %rbx, %rdi
movl $0xf400, %esi           # imm = 0xF400
xorl %edx, %edx
callq 0x11c0
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
movl $0xf400, %esi           # imm = 0xF400
xorl %edx, %edx
callq 0x1060
incl %r15d
cmpl $0x81, %r15d
jne 0xd9e9
incl %ebp
cmpl $0x26, %ebp
jne 0xd9e3
movq %rbx, %rdi
callq 0x1100
movl $0x1, %ebp
leaq 0x17fe(%rip), %r14      # 0xf23e
movl $0x1, %r15d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x11c0
movq %rbx, %rdi
movl %ebp, %esi
movl %r15d, %edx
movq %r14, %rcx
xorl %eax, %eax
callq 0x1070
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x1060
incl %r15d
cmpl $0x81, %r15d
jne 0xda46
incl %ebp
cmpl $0x26, %ebp
jne 0xda40
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x1100
// File: /workspace/github_c_makefile_star2_O3/kek[P]evilwm/client.c
// Function: find_client
Client *find_client(Window w) {
	struct list *iter;

	for (iter = clients_tab_order; iter; iter = iter->next) {
		Client *c = iter->data;
		if (w == c->parent || w == c->window)
			return c;
	}
	return NULL;
}

// Assembly:
leaq 0x8de5(%rip), %rcx      # 0xc798
movq (%rcx), %rcx
testq %rcx, %rcx
je 0x39cb
movq 0x8(%rcx), %rax
cmpq %rdi, 0x8(%rax)
je 0x39ca
cmpq %rdi, (%rax)
jne 0x39b3
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/kek[P]evilwm/client.c
// Function: set_wm_state
void set_wm_state(Client *c, int state) {
	/* Using "long" for the type of "data" looks wrong, but the
	 * fine people in the X Consortium defined it this way
	 * (even on 64-bit machines).
	 */
	long data[2];
	data[0] = state;
	data[1] = None;
	XChangeProperty(dpy, c->window, xa_wm_state, xa_wm_state, 32,
			PropModeReplace, (unsigned char *)data, 2);
}

// Assembly:
subq $0x18, %rsp
movslq %esi, %rax
movq %rsp, %r10
movq %rax, (%r10)
movq $0x0, 0x8(%r10)
leaq 0x8d98(%rip), %rax      # 0xc7e0
movq (%rax), %rax
movq (%rdi), %rsi
leaq 0x8bdb(%rip), %rcx      # 0xc630
movq (%rcx), %rcx
movq %rax, %rdi
movq %rcx, %rdx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq $0x2
pushq %r10
callq 0x3460
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O3/kek[P]evilwm/client.c
// Function: client_lower
void client_lower(Client *c) {
	struct list *iter;
	Client *below;
	Window order[2];
	/* Find lowest other client in stacking order that is visible on the
	 * same screen. */
	for (iter = clients_stacking_order; iter; iter = iter->next) {
		below = iter->data;
		if (below == c)
			return;
		if (below->screen == c->screen && (is_fixed(below) || below->vdesk == c->screen->vdesk))
			break;
	}
	if (!iter) return;
	order[0] = below->parent;
	order[1] = c->parent;
	XRestackWindows(dpy, order, 2);
	clients_stacking_order = list_delete(clients_stacking_order, c);
	clients_stacking_order = list_insert_before(clients_stacking_order, iter, c);
	ewmh_set_net_client_list_stacking(c->screen);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
leaq 0x8c89(%rip), %r15      # 0xc7a8
movq (%r15), %r14
testq %r14, %r14
je 0x3ba2
movq %rdi, %rbx
movq 0x8(%r14), %rax
cmpq %rbx, %rax
je 0x3ba2
movq 0x10(%rbx), %rcx
cmpq %rcx, 0x10(%rax)
jne 0x3b4a
movl 0x74(%rax), %edx
cmpl $-0x1, %edx
je 0x3b54
cmpl 0x40(%rcx), %edx
je 0x3b54
movq (%r14), %r14
testq %r14, %r14
jne 0x3b2a
jmp 0x3ba2
movq 0x8(%rax), %rax
movq %rsp, %rsi
movq %rax, (%rsi)
movq 0x8(%rbx), %rax
movq %rax, 0x8(%rsi)
leaq 0x8c73(%rip), %rax      # 0xc7e0
movq (%rax), %rdi
movl $0x2, %edx
callq 0x35a0
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x5bbc
movq %rax, (%r15)
movq %rax, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x5b20
movq %rax, (%r15)
movq 0x10(%rbx), %rdi
callq 0x5841
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq