LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/9wm[P]9wm/cursor.c
// Function: initcurs
void
initcurs(ScreenInfo * s)
{
	XColor dummy;

	XAllocNamedColor(dpy, DefaultColormap(dpy, s->num), "black", &bl, &dummy);
	XAllocNamedColor(dpy, DefaultColormap(dpy, s->num), "white", &wh, &dummy);

	switch (curs) {
	case 2:
		s->arrow = getcursor(&blitarrow, s);
		s->target = getcursor(&blittarget, s);
		s->sweep0 = getcursor(&blitsweep, s);
		s->boxcurs = getcursor(&blitsweep, s);
		break;
	case 1:
		s->arrow = getcursor(&arrowdata, s);
		s->target = getcursor(&sightdata, s);
		s->sweep0 = getcursor(&sweep0data, s);
		s->boxcurs = getcursor(&boxcursdata, s);
		break;
	default:
		s->arrow = XCreateFontCursor(dpy, XC_left_ptr);
		s->target = XCreateFontCursor(dpy, XC_crosshair);
		s->sweep0 = XCreateFontCursor(dpy, XC_sizing);
		s->boxcurs = XCreateFontCursor(dpy, XC_dotbox);
		break;
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
leaq 0x4ede(%rip), %r15      # 0xb988
movq (%r15), %rdi
movq 0xe8(%rdi), %rax
movslq (%rbx), %rcx
shlq $0x7, %rcx
movq 0x50(%rax,%rcx), %rsi
leaq 0xce8(%rip), %rdx       # 0x77af
leaq 0x508a(%rip), %rcx      # 0xbb58
movq %rsp, %r14
movq %r14, %r8
callq 0x2410
movq (%r15), %rdi
movq 0xe8(%rdi), %rax
movslq (%rbx), %rcx
shlq $0x7, %rcx
movq 0x50(%rax,%rcx), %rsi
leaq 0xcbf(%rip), %rdx       # 0x77b5
leaq 0x506b(%rip), %rcx      # 0xbb68
movq %r14, %r8
callq 0x2410
leaq 0x4e70(%rip), %rax      # 0xb97c
movl (%rax), %eax
cmpl $0x1, %eax
je 0x6b5d
cmpl $0x2, %eax
jne 0x6ba7
leaq 0x4d15(%rip), %rdi      # 0xb838
movq %rbx, %rsi
callq 0x69f4
movq %rax, 0x68(%rbx)
leaq 0x4c76(%rip), %rdi      # 0xb7ac
movq %rbx, %rsi
callq 0x69f4
movq %rax, 0x50(%rbx)
leaq 0x4d7b(%rip), %r14      # 0xb8c4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x69f4
movq %rax, 0x58(%rbx)
movq %r14, %rdi
jmp 0x6b9d
leaq 0x4b30(%rip), %rdi      # 0xb694
movq %rbx, %rsi
callq 0x69f4
movq %rax, 0x68(%rbx)
leaq 0x4a91(%rip), %rdi      # 0xb608
movq %rbx, %rsi
callq 0x69f4
movq %rax, 0x50(%rbx)
leaq 0x4966(%rip), %rdi      # 0xb4f0
movq %rbx, %rsi
callq 0x69f4
movq %rax, 0x58(%rbx)
leaq 0x49df(%rip), %rdi      # 0xb57c
movq %rbx, %rsi
callq 0x69f4
jmp 0x6be7
movq (%r15), %rdi
movl $0x44, %esi
callq 0x20e0
movq %rax, 0x68(%rbx)
movq (%r15), %rdi
movl $0x22, %esi
callq 0x20e0
movq %rax, 0x50(%rbx)
movq (%r15), %rdi
movl $0x78, %esi
callq 0x20e0
movq %rax, 0x58(%rbx)
movq (%r15), %rdi
movl $0x28, %esi
callq 0x20e0
movq %rax, 0x60(%rbx)
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O3/9wm[P]9wm/error.c
// Function: fatal
void
fatal(char *s)
{
	fprintf(stderr, "9wm: ");
	perror(s);
	fprintf(stderr, "\n");
	exit(1);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x43f2(%rip), %r14      # 0xaff8
movq (%r14), %rcx
leaq 0xbab(%rip), %rdi       # 0x77bb
movl $0x5, %esi
movl $0x1, %edx
callq 0x2540
movq %rbx, %rdi
callq 0x24b0
movq (%r14), %rsi
movl $0xa, %edi
callq 0x2240
movl $0x1, %edi
callq 0x2530
// File: /workspace/github_c_makefile_star2_O3/9wm[P]9wm/error.c
// Function: handler
int
handler(Display * d, XErrorEvent * e)
{
	char msg[80], req[80], number[80];

	if (initting && (e->request_code == X_ChangeWindowAttributes) && (e->error_code == BadAccess)) {
		fprintf(stderr, "9wm: it looks like there's already a window manager running;  9wm not started\n");
		exit(1);
	}

	if (ignore_badwindow && (e->error_code == BadWindow || e->error_code == BadColor))
		return 0;

	XGetErrorText(d, e->error_code, msg, sizeof(msg));
	sprintf(number, "%d", e->request_code);
	XGetErrorDatabaseText(d, "XRequest", number, "", req, sizeof(req));
	if (req[0] == '\0')
		sprintf(req, "<request-code-%d>", e->request_code);

	fprintf(stderr, "9wm: %s(0x%x): %s\n", req, (int) e->resourceid, msg);

	if (initting) {
		fprintf(stderr, "9wm: failure during initialisation; aborting\n");
		exit(1);
	}
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf0, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x4d35(%rip), %r13      # 0xb990
cmpl $0x0, (%r13)
je 0x6c72
cmpb $0x2, 0x21(%rbx)
jne 0x6c72
cmpb $0xa, 0x20(%rbx)
je 0x6d3f
cmpl $0x0, 0x4eff(%rip)      # 0xbb78
movzbl 0x20(%rbx), %esi
je 0x6c9c
cmpl $0x3, %esi
je 0x6c89
cmpl $0xc, %esi
jne 0x6c9c
xorl %eax, %eax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
movl $0x50, %ecx
callq 0x2380
movzbl 0x21(%rbx), %edx
leaq 0x6b0(%rip), %rsi       # 0x7369
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
xorl %eax, %eax
callq 0x2520
leaq 0xb3e(%rip), %rsi       # 0x7810
leaq 0x4dc(%rip), %rcx       # 0x71b5
movq %rsp, %r12
movq %r14, %rdi
movq %r15, %rdx
movq %r12, %r8
movl $0x50, %r9d
callq 0x2290
cmpb $0x0, (%r12)
jne 0x6d0c
movzbl 0x21(%rbx), %edx
leaq 0xb17(%rip), %rsi       # 0x7819
movq %rsp, %rdi
xorl %eax, %eax
callq 0x2520
movq 0x42e5(%rip), %rax      # 0xaff8
movq (%rax), %rdi
movl 0x10(%rbx), %ecx
leaq 0xb0b(%rip), %rsi       # 0x782b
movq %rsp, %rdx
leaq 0x50(%rsp), %r8
xorl %eax, %eax
callq 0x22c0
cmpl $0x0, (%r13)
je 0x6c89
callq 0x293d
callq 0x2918
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: propagate
void propagate(Node* node) {
    #ifdef SUBTREE_INCREMENT
    if (node != NULL && node->augments.lazy != 0) {
        node->value += node->augments.lazy;
        #ifdef SUBTREE_MIN
        node->augments.min += node->augments.lazy;
        #endif
        #ifdef SUBTREE_MAX
        node->augments.max += node->augments.lazy;
        #endif
        #ifdef SUBTREE_SUM
        node->augments.sum += (node->augments.lazy) * (node->augments.size);
        #endif
        if (node->left != NULL) {
            node->left->augments.lazy += node->augments.lazy;
        }
        if (node->right != NULL) {
            node->right->augments.lazy += node->augments.lazy;
        }
        node->augments.lazy = 0;
    }
    #endif
}

// Assembly:
testq %rdi, %rdi
je 0x12b8
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0x12b8
addq %rax, 0x20(%rdi)
vpbroadcastq %rax, %xmm0
vpaddq 0x30(%rdi), %xmm0, %xmm0
vmovdqu %xmm0, 0x30(%rdi)
movq 0x48(%rdi), %rcx
imulq %rax, %rcx
addq %rcx, 0x40(%rdi)
movq 0x8(%rdi), %rcx
testq %rcx, %rcx
je 0x129f
addq %rax, 0x50(%rcx)
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x12b0
movq 0x50(%rdi), %rcx
addq %rcx, 0x50(%rax)
movq $0x0, 0x50(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: delete_recursive
void delete_recursive(Node* node) {
    if (node == NULL) return;

    delete_recursive(node->left);
    delete_recursive(node->right);
    free(node);
}

// Assembly:
testq %rdi, %rdi
je 0x132c
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x1308
movq 0x10(%rbx), %rdi
callq 0x1308
movq %rbx, %rdi
popq %rbx
jmp 0x1030
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: splay
void splay(Node* node) {

    // rotate until node is at root
    while (node->parent) {
        Node* parent = node->parent;
        Node* gp = parent->parent;

        if (gp == NULL) {
            // zig step
            if (node == parent->left) {
                right_rotate(node);
            } else {
                left_rotate(node);
            }
            break;
        }
        if (node == parent->left) {
            if (parent == gp->left) {
                // zig-zig
                right_rotate(parent);
                right_rotate(node);
            } else {
                // zig-zag
                right_rotate(node);
                left_rotate(node);
            }
        } else {
            if (parent == gp->left) {
                // zig-zag
                left_rotate(node);
                right_rotate(node);
            } else {
                // zig-zig
                left_rotate(parent);
                left_rotate(node);
            }
        }
    }
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x13af
movq (%rdi), %rcx
movq 0x8(%rdi), %rax
testq %rcx, %rcx
je 0x13b1
movq 0x8(%rcx), %rcx
cmpq %rbx, %rax
je 0x137c
cmpq %rcx, %rdi
je 0x1393
callq 0x15ae
jmp 0x1389
cmpq %rcx, %rdi
je 0x139d
movq %rbx, %rdi
callq 0x1531
movq %rbx, %rdi
callq 0x15ae
jmp 0x13aa
movq %rbx, %rdi
callq 0x15ae
jmp 0x13a2
callq 0x1531
movq %rbx, %rdi
callq 0x1531
movq (%rbx), %rdi
jmp 0x1356
popq %rbx
retq
movq %rbx, %rdi
cmpq %rbx, %rax
je 0x13bf
popq %rbx
jmp 0x15ae
popq %rbx
jmp 0x1531
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: update_range
void update_range(Node* start, Node* end, v_t delta) {
    // split out subtree
    Node* left = split_left(start);
    Node* right = split_right(end);

    // increment values
    end->augments.lazy += delta;
    propagate(end);

    // re-concatenate tree
    merge(left, merge(end, right));
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rsi, %r14
callq 0x1413
movq %rax, %r15
movq %r14, %rdi
callq 0x1444
movq %rax, %r12
addq %rbx, 0x50(%r14)
movq %r14, %rdi
callq 0x1264
movq %r14, %rdi
movq %r12, %rsi
callq 0x1475
movq %r15, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1475
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: split_left
Node* split_left(Node* node) {
    // node ends up on right side
    // returns the root of the other (left) tree
    // which might be null
    splay(node);
    Node* left = node->left;
    if (left != NULL) {
        left->parent = NULL;
        node->left = NULL;
    }

    augment_node(node);
    return left;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x134f
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x1431
xorl %eax, %eax
movq %rax, (%r14)
movq %rax, 0x8(%rbx)
movq %rbx, %rdi
callq 0x11ac
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: split_right
Node* split_right(Node* node) {
    // node ends up on left side
    // returns the root of the other (right) tree
    // which might be null
    splay(node);
    Node* right = node->right;
    if (right != NULL) {
        right->parent = NULL;
        node->right = NULL;
    }

    augment_node(node);
    return right;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
callq 0x134f
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x1462
xorl %eax, %eax
movq %rax, (%r14)
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
callq 0x11ac
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: merge
Node* merge(Node* node1, Node* node2) {

    // if either node is null, return the other
    if (node1 == NULL) {
        return node2;
    }
    if (node2 == NULL) {
        return node1;
    }

    // max of node1's tree becomes new root
    Node* root = find_max(node1);
    splay(root);

    // append node2's tree
    root->right = node2;
    node2->parent = root;

    augment_node(root);
    return root;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
testq %rdi, %rdi
je 0x14ab
testq %r14, %r14
je 0x14b0
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
jne 0x1486
movq %rbx, %rdi
callq 0x134f
movq %r14, 0x10(%rbx)
movq %rbx, (%r14)
movq %rbx, %rdi
callq 0x11ac
jmp 0x14b3
movq %r14, %rbx
jmp 0x14b3
movq %rdi, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: query
Augmentations query(Node* start, Node* end) {
    // split out subtree
    Node* left = split_left(start);
    Node* right = split_right(end);

    // find query value
    Augmentations ret = end->augments;

    // re-concatenate tree
    merge(left, merge(end, right));
    return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rdi, %r14
movq %rsi, %rdi
callq 0x1413
movq %rax, %r15
movq %rbx, %rdi
callq 0x1444
vmovups 0x30(%rbx), %ymm0
vmovups %ymm0, (%r14)
movq 0x50(%rbx), %rcx
movq %rcx, 0x20(%r14)
movq %rbx, %rdi
movq %rax, %rsi
vzeroupper
callq 0x1475
movq %r15, %rdi
movq %rax, %rsi
callq 0x1475
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: right_rotate
void right_rotate(Node* node) {
    Node* parent = node->parent;

    // propagate augmented values
    propagate(parent);
    propagate(parent->left);
    propagate(parent->right);
    propagate(node->left);
    propagate(node->right);

    // updating pointers with grandparent node
    Node* gp = parent->parent;
    if (gp != NULL) {
        if (parent == gp->left) {
            gp->left = node;
        }
        else {
            gp->right = node;
        }
    }
    node->parent = gp;
    parent->parent = node;
    parent->left = node->right;
    if (parent->left != NULL) {
        parent->left->parent = parent;
    }
    node->right = parent;

    augment_node(parent);
    augment_node(node);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
movq %r14, %rdi
callq 0x1264
movq 0x8(%r14), %rdi
callq 0x1264
movq 0x10(%r14), %rdi
callq 0x1264
movq 0x8(%rbx), %rdi
callq 0x1264
movq 0x10(%rbx), %rdi
callq 0x1264
movq (%r14), %rax
testq %rax, %rax
je 0x157d
xorl %ecx, %ecx
cmpq 0x8(%rax), %r14
setne %cl
movq %rbx, 0x8(%rax,%rcx,8)
movq %rax, (%rbx)
movq %rbx, (%r14)
movq 0x10(%rbx), %rax
movq %rax, 0x8(%r14)
testq %rax, %rax
je 0x1593
movq %r14, (%rax)
movq %r14, 0x10(%rbx)
movq %r14, %rdi
callq 0x11ac
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x11ac
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: left_rotate
void left_rotate(Node* node) {
    Node* parent = node->parent;

    // propagate augmented values
    propagate(parent);
    propagate(parent->left);
    propagate(parent->right);
    propagate(node->left);
    propagate(node->right);

    // updating pointers with grandparent node
    Node* gp = parent->parent;
    if (gp != NULL) {
        if (parent == gp->right) {
            gp->right = node;
        }
        else {
            gp->left = node;
        }
    }
    node->parent = gp;
    parent->parent = node;
    parent->right = node->left;
    if (parent->right != NULL) {
        parent->right->parent = parent;
    }
    node->left = parent;

    augment_node(parent);
    augment_node(node);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rdi), %r14
movq %r14, %rdi
callq 0x1264
movq 0x8(%r14), %rdi
callq 0x1264
movq 0x10(%r14), %rdi
callq 0x1264
movq 0x8(%rbx), %rdi
callq 0x1264
movq 0x10(%rbx), %rdi
callq 0x1264
movq (%r14), %rax
testq %rax, %rax
je 0x15fa
xorl %ecx, %ecx
cmpq 0x10(%rax), %r14
sete %cl
movq %rbx, 0x8(%rax,%rcx,8)
movq %rax, (%rbx)
movq %rbx, (%r14)
movq 0x8(%rbx), %rax
movq %rax, 0x10(%r14)
testq %rax, %rax
je 0x1610
movq %r14, (%rax)
movq %r14, 0x8(%rbx)
movq %r14, %rdi
callq 0x11ac
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x11ac
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: find_min
Node* find_min(Node* node) {
    // node must not be null
    if (node == NULL) {
        return NULL;
    }

    // walk left to min
    while (node->left != NULL) {
        node = node->left;
    }
    splay(node);
    return node;
}

// Assembly:
pushq %rbx
testq %rdi, %rdi
je 0x1655
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
jne 0x163f
movq %rbx, %rdi
callq 0x134f
jmp 0x1657
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: print
void print(Node* node) {
    if (node != NULL) {
        print(node->left);
        printf("(%ld, %ld) ", node->key, node->value);
        printf("[%ld, %ld, %ld, %ld] ", node->augments.min, node->augments.max,
        node->augments.sum, node->augments.size);
        print(node->right);
    }
}

// Assembly:
testq %rdi, %rdi
je 0x16cf
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x199d(%rip), %r14      # 0x3022
leaq 0x19a2(%rip), %r15      # 0x302e
movq 0x8(%rbx), %rdi
callq 0x1671
movq 0x18(%rbx), %rsi
movq 0x20(%rbx), %rdx
movq %r14, %rdi
xorl %eax, %eax
callq 0x1040
movq 0x30(%rbx), %rsi
movq 0x38(%rbx), %rdx
movq 0x40(%rbx), %rcx
movq 0x48(%rbx), %r8
movq %r15, %rdi
xorl %eax, %eax
callq 0x1040
movq 0x10(%rbx), %rbx
testq %rbx, %rbx
jne 0x168c
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree.c
// Function: extend_euler_tour_tree
void extend_euler_tour_tree(EulerTourTree* tree, s_t n) {
    s_t old_n = tree->n;
    tree->n = n;

    // visits is a length-2n array of Node pointers.
    // visits[2i] and visits[2i+1] stores the pointers to the
    // first and last visits of node i, respectively.
    tree->visits = realloc(tree->visits, sizeof(NodePair) * n);
    tree->has_parent = realloc(tree->has_parent, sizeof(bool) * n);

    // make n Nodes with default values
    for (k_t i = old_n; i < n; ++i) {
        Node* node = make_node(i, 0, 1);
        tree->visits[i].first = node;
        tree->visits[i].last = node;
        tree->has_parent[i] = false;
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rdi
movq 0x10(%r14), %r15
movq %rsi, 0x10(%r14)
shlq $0x4, %rsi
callq 0x1090
movq %rax, (%r14)
movq 0x8(%r14), %rdi
movq %rbx, %rsi
callq 0x1090
movq %rax, 0x8(%r14)
cmpq %rbx, %r15
jae 0x17c3
movq %r15, %r12
shlq $0x4, %r12
orq $0x8, %r12
movq %r15, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x12b9
movq (%r14), %rcx
movq %rax, -0x8(%rcx,%r12)
movq %rax, (%rcx,%r12)
movq 0x8(%r14), %rax
movb $0x0, (%rax,%r15)
incq %r15
addq $0x10, %r12
cmpq %r15, %rbx
jne 0x1793
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree.c
// Function: destroy_euler_tour_tree
void destroy_euler_tour_tree(EulerTourTree* tree) {
    
    s_t n = tree->n;

    for (k_t i = 0; i < n; ++i) {
        if (!tree->has_parent[i]) {
            Node* node = tree->visits[i].first;
            root(node);
            delete_recursive(node);
        }
    }

    free(tree->visits);
    free(tree->has_parent);
    free(tree);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x10(%rdi), %r15
testq %r15, %r15
je 0x1818
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x8(%rbx), %rax
cmpb $0x0, (%rax,%r13)
jne 0x180c
movq (%rbx), %rax
movq (%rax,%r12), %r14
movq %r14, %rdi
callq 0x162b
movq %r14, %rdi
callq 0x1308
incq %r13
addq $0x10, %r12
cmpq %r13, %r15
jne 0x17ea
movq (%rbx), %rdi
callq 0x1030
movq 0x8(%rbx), %rdi
callq 0x1030
movq %rbx, %rdi
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1030
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree.c
// Function: find_root
k_t find_root(EulerTourTree* tree, k_t v) {
    // if out-of-bounds, then node is singleton
    if (v >= tree->n) {
        return v;
    }

    // return minimum element of the splay tree starting from first visit to v

    Node* first_visit = tree->visits[v].first;
    root(first_visit);
    Node* min_node = find_min(first_visit);
    return min_node->key;
}

// Assembly:
movq %rsi, %rax
cmpq %rsi, 0x10(%rdi)
jbe 0x1864
pushq %rbx
movq (%rdi), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rbx
movq %rbx, %rdi
callq 0x162b
movq %rbx, %rdi
callq 0x1639
movq 0x18(%rax), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree.c
// Function: cut
int cut(EulerTourTree* tree, k_t v) {
    // return if node is out-of-bounds or does not have a parent
    if (v >= tree->n || !tree->has_parent[v]) {
        return 1;
    }
        
    tree->has_parent[v] = false;

    // split splay tree before first and after last visit to v
    Node* first = tree->visits[v].first;
    Node* last = tree->visits[v].last;
    Node* left = split_left(first);
    Node* right = split_right(last);

    // potential extra visitation
    Node* redundant = find_min(right);

    // cut redundant node
    if (redundant->right != NULL) {
        redundant->right->parent = NULL;
    }

    // reassign last pointer if necessary
    if (tree->visits[redundant->key].last == redundant) {
        tree->visits[redundant->key].last = find_max(left);
    }

    merge(left, redundant->right);
    free(redundant);
    return 0;
}

// Assembly:
movl $0x1, %eax
cmpq %rsi, 0x10(%rdi)
jbe 0x190a
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
cmpb $0x1, (%rcx,%rsi)
jne 0x1905
movb $0x0, (%rcx,%rsi)
movq (%rbx), %rax
shlq $0x4, %rsi
movq (%rax,%rsi), %rdi
movq 0x8(%rax,%rsi), %r15
callq 0x1413
movq %rax, %r14
movq %r15, %rdi
callq 0x1444
movq %rax, %rdi
callq 0x1639
movq %rax, %r15
movq 0x10(%rax), %rsi
testq %rsi, %rsi
je 0x18c5
movq $0x0, (%rsi)
movq (%rbx), %rax
movq 0x18(%r15), %rcx
shlq $0x4, %rcx
cmpq %r15, 0x8(%rax,%rcx)
jne 0x18f3
movq %r14, %rdi
callq 0x165c
movq (%rbx), %rcx
movq 0x18(%r15), %rdx
shlq $0x4, %rdx
movq %rax, 0x8(%rcx,%rdx)
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x1475
movq %r15, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree.c
// Function: link
int link(EulerTourTree* tree, k_t u, k_t v) {
    if (u >= tree->n) {
        extend_euler_tour_tree(tree, u+1);
    }
    if (v >= tree->n) {
        extend_euler_tour_tree(tree, v+1);
    }

    if (!tree->has_parent[u]) {
        tree->has_parent[u] = true;
    }
    else {
        return 1;
    }

    if (find_root(tree, v) == u) {
        return 2;
    }
    

    // split before last visit to v
    Node* left = split_left(tree->visits[v].last);

    // create new visit to v
    int is_first = (tree->visits[v].first == tree->visits[v].last);
    Node* new_v = make_node(v, tree->visits[v].first->value, is_first);

    // concatenate visits in the correct order
    Node* root_node = merge(left, new_v);
    root(tree->visits[u].first);
    root_node = merge(root_node, tree->visits[u].first);
    root_node = merge(root_node, tree->visits[v].last);

    // if v was a leaf, need to update visits
    if (is_first) {
        update_node_start(tree->visits[v].first, 0);
        tree->visits[v].first = new_v;
    }

    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movq 0x10(%rdi), %rax
cmpq %rsi, %rax
ja 0x1938
leaq 0x1(%r14), %rsi
movq %rbx, %rdi
callq 0x174e
movq 0x10(%rbx), %rax
cmpq %r15, %rax
ja 0x1949
leaq 0x1(%r15), %rsi
movq %rbx, %rdi
callq 0x174e
movq 0x8(%rbx), %rax
movl $0x1, %ebp
cmpb $0x0, (%rax,%r14)
jne 0x1a16
movb $0x1, (%rax,%r14)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x183a
movl $0x2, %ebp
cmpq %r14, %rax
je 0x1a16
movq (%rbx), %rax
movq %r15, %r13
shlq $0x4, %r13
movq 0x8(%rax,%r13), %rdi
callq 0x1413
movq %rax, %rbp
movq (%rbx), %rax
movq (%rax,%r13), %r12
movq 0x8(%rax,%r13), %rax
movq %rax, (%rsp)
xorl %edx, %edx
cmpq %rax, %r12
sete %dl
movq 0x20(%r12), %rsi
movq %r15, %rdi
callq 0x12b9
movq %rax, %r15
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1475
movq %rax, %rbp
movq (%rbx), %rax
shlq $0x4, %r14
movq (%rax,%r14), %rdi
callq 0x162b
movq (%rbx), %rax
movq (%rax,%r14), %rsi
movq %rbp, %rdi
callq 0x1475
movq (%rbx), %rcx
movq 0x8(%rcx,%r13), %rsi
movq %rax, %rdi
callq 0x1475
xorl %ebp, %ebp
cmpq (%rsp), %r12
jne 0x1a16
movq (%rbx), %rax
movq (%rax,%r13), %rdi
xorl %ebp, %ebp
xorl %esi, %esi
callq 0x14be
movq (%rbx), %rax
movq %r15, (%rax,%r13)
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree_test.c
// Function: make_euler_tour_tree_test
EulerTourTreeTest* make_euler_tour_tree_test(s_t n) {
    EulerTourTreeTest* tree = malloc(sizeof(EulerTourTreeTest));
    tree->n = n;
    tree->parent = malloc(sizeof(v_t) * n);
    tree->value = malloc(sizeof(v_t) * n);
    for (k_t i = 0; i < n; i++) {
        tree->value[i] = i*10;
        tree->parent[i] = -1;
    }
    return tree;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %r15
movl $0x18, %edi
callq 0x1080
movq %rax, %rbx
movq %r15, 0x10(%rax)
leaq (,%r15,8), %r12
movq %r12, %rdi
callq 0x1080
movq %rax, %r13
movq %rax, (%rbx)
movq %r12, %rdi
callq 0x1080
movq %rax, 0x8(%rbx)
testq %r15, %r15
je 0x1c08
movq %rax, %r14
movq %r13, %rdi
movl $0xff, %esi
movq %r12, %rdx
callq 0x1060
leaq 0x3(%r15), %rax
andq $-0x4, %rax
decq %r15
vpbroadcastq %r15, %ymm0
vpmovsxbq 0x14b3(%rip), %ymm1 # 0x3088
xorl %ecx, %ecx
vpbroadcastq 0x14a0(%rip), %ymm2 # 0x3080
vpcmpleuq %ymm0, %ymm1, %k1
vpaddq %ymm1, %ymm1, %ymm3
vpsllq $0x3, %ymm1, %ymm4
vpaddq %ymm3, %ymm4, %ymm3
vmovdqu64 %ymm3, (%r14,%rcx,8) {%k1}
addq $0x4, %rcx
vpaddq %ymm2, %ymm1, %ymm1
cmpq %rcx, %rax
jne 0x1be0
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree_test.c
// Function: subtree_update_test
void subtree_update_test(EulerTourTreeTest* tree, k_t v, v_t delta) {
    tree->value[v] += delta;
    for (k_t i = 0; i < tree->n; i++) {
        if (tree->parent[i] == v) {
            subtree_update_test(tree, i, delta);
        }
    }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
addq %rdx, (%rax,%rsi,8)
movq 0x10(%rdi), %rax
testq %rax, %rax
jle 0x1ce5
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rcx
xorl %r12d, %r12d
cmpq %r14, (%rcx,%r12,8)
jne 0x1cdd
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x1c9a
movq (%r15), %rcx
movq 0x10(%r15), %rax
incq %r12
cmpq %rax, %r12
jl 0x1cc2
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree_test.c
// Function: subtree_aggregate_min_test
v_t subtree_aggregate_min_test(EulerTourTreeTest* tree, k_t v) {
    v_t min_val = tree->value[v];
    for (k_t i = 0; i < tree->n; i++) {
        if (tree->parent[i] == v) {
            min_val = MIN(min_val, subtree_aggregate_min_test(tree, i));
        }
    }
    return min_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %r13
movq (%rax,%rsi,8), %rbx
testq %r13, %r13
jle 0x1d3a
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rbp
xorl %r12d, %r12d
cmpq %r14, (%rbp,%r12,8)
jne 0x1d32
movq %r15, %rdi
movq %r12, %rsi
callq 0x1cf1
cmpq %rax, %rbx
cmovgeq %rax, %rbx
incq %r12
cmpq %r12, %r13
jne 0x1d19
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree_test.c
// Function: subtree_aggregate_max_test
v_t subtree_aggregate_max_test(EulerTourTreeTest* tree, k_t v) {
    v_t max_val = tree->value[v];
    for (k_t i = 0; i < tree->n; i++) {
        if (tree->parent[i] == v) {
            max_val = MAX(max_val, subtree_aggregate_max_test(tree, i));
        }
    }
    return max_val;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %r13
movq (%rax,%rsi,8), %rbx
testq %r13, %r13
jle 0x1d95
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rbp
xorl %r12d, %r12d
cmpq %r14, (%rbp,%r12,8)
jne 0x1d8d
movq %r15, %rdi
movq %r12, %rsi
callq 0x1d4c
cmpq %rax, %rbx
cmovleq %rax, %rbx
incq %r12
cmpq %r12, %r13
jne 0x1d74
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree_test.c
// Function: subtree_aggregate_sum_test
v_t subtree_aggregate_sum_test(EulerTourTreeTest* tree, k_t v) {
    v_t sum = tree->value[v];
    for (k_t i = 0; i < tree->n; i++) {
        if (tree->parent[i] == v) {
            sum += subtree_aggregate_sum_test(tree, i);
        }
    }
    return sum;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x8(%rdi), %rax
movq 0x10(%rdi), %r13
movq (%rax,%rsi,8), %rbx
testq %r13, %r13
jle 0x1dec
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rbp
xorl %r12d, %r12d
cmpq %r14, (%rbp,%r12,8)
jne 0x1de4
movq %r15, %rdi
movq %r12, %rsi
callq 0x1da7
addq %rax, %rbx
incq %r12
cmpq %r12, %r13
jne 0x1dcf
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/6851-2021[P]euler_tour_tree/euler_tour_tree_test.c
// Function: subtree_aggregate_size_test
v_t subtree_aggregate_size_test(EulerTourTreeTest* tree, k_t v) {
    v_t count = 1;
    for (k_t i = 0; i < tree->n; i++) {
        if (tree->parent[i] == v) {
            count += subtree_aggregate_size_test(tree, i);
        }
    }
    return count;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x10(%rdi), %r13
testq %r13, %r13
jle 0x1e43
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rbp
movl $0x1, %r15d
xorl %r12d, %r12d
cmpq %rbx, (%rbp,%r12,8)
jne 0x1e39
movq %r14, %rdi
movq %r12, %rsi
callq 0x1dfe
addq %rax, %r15
incq %r12
cmpq %r12, %r13
jne 0x1e24
jmp 0x1e49
movl $0x1, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aezv3/aesni/aez_ni.c
// Function: aez_encrypt
void aez_encrypt(aez_ctx_t *ctx, char *n, unsigned nbytes,
                 char *ad, unsigned adbytes, unsigned abytes,
                 char *src, unsigned bytes, char *dst) {

    __m128i t = aez_hash(ctx, n, nbytes, ad, adbytes, abytes);
    if (bytes==0) {
        unsigned i;
        t = aes((__m128i*)ctx, vxor3(t, ctx->J[0], ctx->J[1]));
        for (i=0; i<abytes; i++) dst[i] = ((char*)&t)[i];
    } else if (bytes+abytes < 32)
        cipher_aez_tiny(ctx, t, 0, src, bytes, abytes, dst);
    else
        cipher_aez_core(ctx, t, 0, src, bytes, abytes, dst);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x10, %rsp
movl %r9d, %r14d
movq %rdi, %r12
movq 0x50(%rsp), %rbx
movl 0x48(%rsp), %r15d
movq 0x40(%rsp), %r13
callq 0x1080
testl %r15d, %r15d
je 0x2f85
leal (%r15,%r14), %eax
movq %r12, %rdi
xorl %esi, %esi
movq %r13, %rdx
movl %r15d, %ecx
movl %r14d, %r8d
movq %rbx, %r9
addq $0x10, %rsp
cmpl $0x1f, %eax
ja 0x2ffa
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1040
vmovdqa (%r12), %xmm1
vmovdqa 0x10(%r12), %xmm2
vmovdqa 0x20(%r12), %xmm3
vpternlogq $0x96, 0x30(%r12), %xmm3, %xmm0
vaesenc %xmm1, %xmm0, %xmm0
vaesenc %xmm2, %xmm0, %xmm0
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm1, %xmm0, %xmm0
vaesenc %xmm2, %xmm0, %xmm0
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm1, %xmm0, %xmm0
vaesenc %xmm2, %xmm0, %xmm0
vaesenc %xmm3, %xmm0, %xmm0
vaesenc %xmm1, %xmm0, %xmm0
vmovdqa %xmm0, (%rsp)
testl %r14d, %r14d
je 0x2fec
movl %r14d, %edx
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x10c0
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x10d0
// File: /workspace/github_c_makefile_star2_O3/mjosaarinen[P]brutus/crypto_aead/aezv3/aesni/aez_ni.c
// Function: aez_decrypt
int aez_decrypt(aez_ctx_t *ctx, char *n, unsigned nbytes,
                 char *ad, unsigned adbytes, unsigned abytes,
                 char *src, unsigned bytes, char *dst) {

    __m128i t;
    if (bytes < abytes) return -1;
    t = aez_hash(ctx, n, nbytes, ad, adbytes, abytes);
    if (bytes==abytes) {
        __m128i claimed = zero_pad(load_partial(src,abytes), 16-abytes);
        t = zero_pad(aes((__m128i*)ctx, vxor3(t, ctx->J[0], ctx->J[1])), 16-abytes);
        return _mm_testc_si128(t, claimed) - 1;
    } else if (bytes < 32) {
        return cipher_aez_tiny(ctx, t, 1, src, bytes, abytes, dst);
    } else {
        return cipher_aez_core(ctx, t, 1, src, bytes, abytes, dst);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl 0x58(%rsp), %ebp
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl %r9d, %ebp
jb 0x3117
movl %r9d, %r14d
movq %rdi, %rbx
movq 0x60(%rsp), %r12
movq 0x50(%rsp), %r15
callq 0x1080
cmpl %r14d, %ebp
jne 0x306d
testb $0xf, %r15b
je 0x30a3
testl %ebp, %ebp
je 0x30aa
movl %ebp, %edx
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
vmovaps %xmm0, (%rsp)
callq 0x10c0
vmovdqa (%rsp), %xmm0
vmovdqa (%r14), %xmm5
jmp 0x30aa
movq %rbx, %rdi
movl $0x1, %esi
movq %r15, %rdx
movl %ebp, %ecx
movl %r14d, %r8d
movq %r12, %r9
addq $0x20, %rsp
cmpl $0x1f, %ebp
ja 0x3096
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x1040
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
jmp 0x10d0
vmovdqu (%r15), %xmm5
jmp 0x30aa
movl $0x10, %eax
subl %ebp, %eax
leaq 0x1048(%rip), %rcx      # 0x4100
vmovdqu (%rax,%rcx), %xmm1
vmovdqa (%rbx), %xmm2
vmovdqa 0x10(%rbx), %xmm3
vmovdqa 0x20(%rbx), %xmm4
vpand %xmm5, %xmm1, %xmm6
vpternlogq $0x96, 0x30(%rbx), %xmm4, %xmm0
vaesenc %xmm2, %xmm0, %xmm5
vaesenc %xmm3, %xmm5, %xmm5
vaesenc %xmm4, %xmm5, %xmm5
vaesenc %xmm2, %xmm5, %xmm5
vaesenc %xmm3, %xmm5, %xmm5
vaesenc %xmm4, %xmm5, %xmm5
vaesenc %xmm2, %xmm5, %xmm5
vaesenc %xmm3, %xmm5, %xmm3
vaesenc %xmm4, %xmm3, %xmm3
vaesenc %xmm2, %xmm3, %xmm2
vpand %xmm1, %xmm2, %xmm1
xorl %eax, %eax
vptest %xmm6, %xmm1
adcl $-0x1, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/dxwc[P]sfeed/sfeed_plain.c
// Function: main
int
main(int argc, char *argv[])
{
	FILE *fp;
	char *name;
	int i;

	if (pledge("stdio rpath", NULL) == -1)
		err(1, "pledge");

	setlocale(LC_CTYPE, "");

	if (pledge(argc == 1 ? "stdio" : "stdio rpath", NULL) == -1)
		err(1, "pledge");

	if ((comparetime = time(NULL)) == -1)
		err(1, "time");
	/* 1 day is old news */
	comparetime -= 86400;

	if (argc == 1) {
		printfeed(stdin, "");
	} else {
		for (i = 1; i < argc; i++) {
			if (!(fp = fopen(argv[i], "r")))
				err(1, "fopen: %s", argv[i]);
			name = ((name = strrchr(argv[i], '/'))) ? name + 1 : argv[i];
			printfeed(fp, name);
			if (ferror(fp))
				err(1, "ferror: %s", argv[i]);
			fclose(fp);
		}
	}
	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movl %edi, %ebp
leaq 0xd54(%rip), %rsi       # 0x2047
xorl %edi, %edi
callq 0x1180
xorl %edi, %edi
callq 0x1150
movq %rax, 0x2e00(%rip)      # 0x4108
cmpq $-0x1, %rax
je 0x13da
addq $-0x15180, %rax         # imm = 0xFFFEAE80
movq %rax, 0x2de9(%rip)      # 0x4108
cmpl $0x1, %ebp
jne 0x133c
movq 0x2cb5(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0xd12(%rip), %rsi       # 0x2047
callq 0x13ed
jmp 0x13a1
jle 0x13a1
movl %ebp, %r13d
movl $0x1, %ebp
leaq 0xcb7(%rip), %r14       # 0x2004
movq (%rbx,%rbp,8), %rdi
movq %r14, %rsi
callq 0x1190
movq (%rbx,%rbp,8), %r12
testq %rax, %rax
je 0x13b2
movq %rax, %r15
movq %r12, %rdi
movl $0x2f, %esi
callq 0x10b0
leaq 0x1(%rax), %rsi
testq %rax, %rax
cmoveq %r12, %rsi
movq %r15, %rdi
callq 0x13ed
movq %r15, %rdi
callq 0x1050
testl %eax, %eax
jne 0x13c3
movq %r15, %rdi
callq 0x1060
incq %rbp
cmpq %rbp, %r13
jne 0x134d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc4d(%rip), %rsi       # 0x2006
movl $0x1, %edi
movq %r12, %rdx
jmp 0x13d3
movq (%rbx,%rbp,8), %rdx
leaq 0xc42(%rip), %rsi       # 0x2010
movl $0x1, %edi
xorl %eax, %eax
callq 0x1170
leaq 0xc3f(%rip), %rsi       # 0x2020
movl $0x1, %edi
xorl %eax, %eax
callq 0x1170
// File: /workspace/github_c_makefile_star2_O3/dxwc[P]sfeed/sfeed_plain.c
// Function: printfeed
static void
printfeed(FILE *fp, const char *feedname)
{
	char *fields[FieldLast];
	struct tm *tm;
	time_t parsedtime;
	ssize_t linelen;

	while ((linelen = getline(&line, &linesize, fp)) > 0) {
		if (line[linelen - 1] == '\n')
			line[--linelen] = '\0';
		if (!parseline(line, fields))
			break;

		parsedtime = 0;
		if (strtotime(fields[FieldUnixTimestamp], &parsedtime))
			continue;
		if (!(tm = localtime(&parsedtime)))
			err(1, "localtime");

		if (parsedtime >= comparetime)
			fputs("N ", stdout);
		else
			fputs("  ", stdout);

		fprintf(stdout, "%04d-%02d-%02d %02d:%02d  ",
		        tm->tm_year + 1900, tm->tm_mon + 1, tm->tm_mday,
		        tm->tm_hour, tm->tm_min);
		if (feedname[0]) {
			printutf8pad(stdout, feedname, 15, ' ');
			fputs("  ", stdout);
		}
		printutf8pad(stdout, fields[FieldTitle], 70, ' ');
		printf(" %s\n", fields[FieldLink]);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, 0x18(%rsp)
movq %rdi, %r14
leaq 0x2d06(%rip), %rdi      # 0x4110
leaq 0x2d07(%rip), %rsi      # 0x4118
movq %r14, %rdx
callq 0x11b0
testq %rax, %rax
jle 0x1572
leaq 0x20(%rsp), %r15
leaq 0xc12(%rip), %rbx       # 0x2040
leaq 0x2cdb(%rip), %r13      # 0x4110
leaq 0x2cdc(%rip), %rbp      # 0x4118
movq %r14, 0x10(%rsp)
movq 0x2cc8(%rip), %rdi      # 0x4110
cmpb $0xa, -0x1(%rdi,%rax)
jne 0x145b
movb $0x0, -0x1(%rdi,%rax)
movq 0x2cb5(%rip), %rdi      # 0x4110
movq %r15, %rsi
callq 0x1a59
testq %rax, %rax
je 0x1572
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1b7b
testl %eax, %eax
jne 0x155b
movq %r13, %r12
movq %r15, %r13
leaq 0x8(%rsp), %rdi
callq 0x1030
testq %rax, %rax
je 0x1581
movq %rax, %r15
movq 0x8(%rsp), %rax
cmpq 0x2c54(%rip), %rax      # 0x4108
movq 0x2b1d(%rip), %r14      # 0x3fd8
movq (%r14), %rsi
leaq 0xb60(%rip), %rdi       # 0x2025
cmovlq %rbx, %rdi
callq 0x10c0
movq (%r14), %rdi
movl 0x14(%r15), %edx
movl $0x76c, %eax            # imm = 0x76C
addl %eax, %edx
movl 0x10(%r15), %ecx
incl %ecx
movl 0xc(%r15), %r8d
movl 0x4(%r15), %eax
movl 0x8(%r15), %r9d
movl %eax, (%rsp)
leaq 0xb30(%rip), %rsi       # 0x2028
xorl %eax, %eax
callq 0x1120
movq 0x18(%rsp), %rsi
cmpb $0x0, (%rsi)
je 0x1526
movq (%r14), %rdi
movl $0xf, %edx
movl $0x20, %ecx
callq 0x1c75
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x10c0
movq (%r14), %rdi
movq 0x28(%rsp), %rsi
movl $0x46, %edx
movl $0x20, %ecx
callq 0x1c75
movq 0x30(%rsp), %rsi
leaq 0xafa(%rip), %rdi       # 0x2043
xorl %eax, %eax
callq 0x1090
movq %r13, %r15
movq %r12, %r13
movq 0x10(%rsp), %r14
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x11b0
testq %rax, %rax
jg 0x1441
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa93(%rip), %rsi       # 0x201b
movl $0x1, %edi
xorl %eax, %eax
callq 0x1170
// File: /workspace/github_c_makefile_star2_O3/antonblanchard[P]will-it-scale/tests/open3.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	while (1) {
		int fd = open(tmpfile, O_RDWR);
		assert(fd >= 0);
		close(fd);

		(*iterations)++;
	}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x242a(%rip), %rdi      # 0x4180
movl $0x2, %esi
xorl %eax, %eax
callq 0x1220
testl %eax, %eax
js 0x1d8a
leaq 0x2413(%rip), %r14      # 0x4180
movl %eax, %edi
callq 0x1160
incq (%rbx)
movq %r14, %rdi
movl $0x2, %esi
xorl %eax, %eax
callq 0x1220
testl %eax, %eax
jns 0x1d6d
leaq 0x50c(%rip), %rdi       # 0x229d
leaq 0x50d(%rip), %rsi       # 0x22a5
leaq 0x539(%rip), %rcx       # 0x22d8
movl $0x18, %edx
callq 0x1130
// File: /workspace/github_c_makefile_star2_O3/info-telecom-strasbourg[P]code-generator/src/flag_m.cpp
// Function: create_standard_include(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void create_standard_include (string file_name, string include_path) {
	int exit_code;
	vector<char*> cmd;

	LOAD_CMD ("bash");
	LOAD_CMD (ADD_HEADER_SCRIPT_PATH);
	LOAD_CMD ("0");
	LOAD_CMD (file_name.c_str());
	LOAD_CMD (include_path.c_str());

	cout << execute (exit_code, BASH_PATH, cmd);
	if (exit_code)
		return;

	cout << "\033[1;32minfo\033[0m: created standard header " 
		<< file_name << ".\n";
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x44e7(%rip), %rax      # 0x70f9
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
callq 0x3f9c
leaq 0x4542(%rip), %rax      # 0x7168
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x4555(%rip), %rax      # 0x7194
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
movq (%rbx), %rax
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
movq (%r14), %rax
leaq 0x30(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x50(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3dea
leaq 0x445f(%rip), %rdx      # 0x70f0
leaq 0x30(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x50(%rsp), %rcx
callq 0x5e42
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x7312(%rip), %rdi      # 0x9fc8
callq 0x2210
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2cd6
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2ced
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
cmpl $0x0, 0xc(%rsp)
jne 0x2d33
movq 0x72cd(%rip), %rdi      # 0x9fc8
leaq 0x4494(%rip), %rsi      # 0x7196
movl $0x29, %edx
callq 0x2210
movq (%rbx), %rsi
movq 0x8(%rbx), %rdx
movq 0x72ae(%rip), %rdi      # 0x9fc8
callq 0x2210
leaq 0x4507(%rip), %rsi      # 0x722d
movl $0x2, %edx
movq %rax, %rdi
callq 0x2210
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2d4a
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
addq $0x68, %rsp
popq %rbx
popq %r14
retq
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d75
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x2d75
movq %rax, %rbx
movq 0x50(%rsp), %rdi
testq %rdi, %rdi
je 0x2d9d
movq 0x60(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0x2d9d
jmp 0x2d9a
jmp 0x2d9a
jmp 0x2d9a
jmp 0x2d9a
jmp 0x2d9a
jmp 0x2d9a
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x2db4
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_c_makefile_star2_O3/info-telecom-strasbourg[P]code-generator/src/other_flags.cpp
// Function: flag_t(char*)
void flag_t (char * optarg_) {
	int exit_code;
	vector<char*> cmd;

	LOAD_CMD ("bash");
	LOAD_CMD (LOAD_TEMPLATE_SCRIPT_PATH);
	LOAD_CMD (optarg_);
	LOAD_CMD (LOAD_TEMPLATES_DIR_PATH);

	cout << execute (exit_code, BASH_PATH, cmd);
	CHECK_CODE (exit_code);
}

// Assembly:
pushq %rbx
subq $0x60, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movaps %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x2f2f(%rip), %rax      # 0x70f9
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
callq 0x3f9c
leaq 0x331a(%rip), %rax      # 0x74f8
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x28(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x331e(%rip), %rax      # 0x7527
leaq 0x28(%rsp), %rsi
movq %rax, (%rsi)
leaq 0x10(%rsp), %rdi
callq 0x3f9c
leaq 0x48(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x3dea
leaq 0x2ebf(%rip), %rdx      # 0x70f0
leaq 0x28(%rsp), %rdi
leaq 0xc(%rsp), %rsi
leaq 0x48(%rsp), %rcx
callq 0x5e42
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x5d72(%rip), %rdi      # 0x9fc8
callq 0x2210
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x4276
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x428d
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
cmpl $0x1, 0xc(%rsp)
je 0x42b1
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x42ab
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
addq $0x60, %rsp
popq %rbx
retq
movl $0x1, %edi
callq 0x2240
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x42de
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x21d0
jmp 0x42de
movq %rax, %rbx
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x4302
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
jmp 0x4302
jmp 0x42ff
jmp 0x42ff
jmp 0x42ff
jmp 0x42ff
movq %rax, %rbx
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0x4319
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_c_makefile_star2_O3/info-telecom-strasbourg[P]code-generator/src/parse_args.cpp
// Function: parse_args(int, char**)
void parse_args (int argc, char ** argv) {
	int c = 0;
	int exit_code;

	if (argc == 1) {
		fprintf(stderr,"\033[1;31merror\033[0m: Missing arguments.\n");
		case_h (EXIT_FAILURE);
	}

 	while ((c = getopt (argc, argv, "hcdmt:a:")) != -1) {

		switch (c) {
		case -1:
		case 0:
	  		break;

		case 'h':
	  		case_h (EXIT_SUCCESS);
			break;

		case 'a':
			cout << s_execute (exit_code, CODEGEN_DIR_PARSING_BIN_PATH,
				"codegen_setup");	
			CHECK_CODE (exit_code);
			flag_a (optarg);
			break;

		case 'm':
			cout << s_execute (exit_code, CODEGEN_DIR_PARSING_BIN_PATH,
				"codegen_setup");	
			CHECK_CODE (exit_code);
			flag_m ();
			break;

		case 't':
			flag_t (optarg);
			break;

		case 'c':
			flag_c ();
			break;

		case 'd':
			flag_d ();
			break;

		default:
	  		fprintf (stderr, "Unknown option character `%c'.\n", c);
	  		case_h (EXIT_FAILURE);
		}
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpl $0x1, %edi
je 0x5726
movq %rsi, %rbx
movl %edi, %ebp
leaq 0x22b3(%rip), %r14      # 0x786c
leaq 0x2150(%rip), %r13      # 0x7710
movq 0x4a01(%rip), %r12      # 0x9fc8
movq 0x49ea(%rip), %r15      # 0x9fb8
movl %ebp, %edi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x2040
cmpl $0x6c, %eax
jg 0x5659
leal -0x61(%rax), %ecx
cmpl $0x7, %ecx
ja 0x5674
movslq (%r13,%rcx,4), %rcx
addq %r13, %rcx
jmpq *%rcx
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
leaq 0x226e(%rip), %rdx      # 0x7875
leaq 0x228b(%rip), %rcx      # 0x7899
callq 0x5e9a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x2210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x5641
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
cmpl $0x1, 0x4(%rsp)
je 0x5702
movq (%r15), %rdi
callq 0x4891
jmp 0x55ce
cmpl $0x6d, %eax
je 0x5692
cmpl $0x74, %eax
jne 0x570c
movq (%r15), %rdi
callq 0x41a8
jmp 0x55ce
testl %eax, %eax
je 0x55ce
jmp 0x56ee
callq 0x5254
jmp 0x55ce
callq 0x5403
jmp 0x55ce
leaq 0x8(%rsp), %rdi
leaq 0x4(%rsp), %rsi
leaq 0x21d2(%rip), %rdx      # 0x7875
leaq 0x21ef(%rip), %rcx      # 0x7899
callq 0x5e9a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x2210
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x56dd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
cmpl $0x1, 0x4(%rsp)
je 0x5702
callq 0x349a
jmp 0x55ce
cmpl $-0x1, %eax
jne 0x570c
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x1, %edi
callq 0x2240
movl %eax, %edi
callq 0x2632
leaq 0x2016(%rip), %rdi      # 0x7730
callq 0x22f0
xorl %edi, %edi
callq 0x2240
callq 0x2661
jmp 0x572d
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x574c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x21d0
movq %rbx, %rdi
callq 0x2340
// File: /workspace/github_c_makefile_star2_O3/info-telecom-strasbourg[P]code-generator/src/utils.cpp
// Function: interupt(int, char const*, ...)
void interupt(int syserr, const char * msg, ...) {
	va_list ap;

	va_start(ap, msg);
	vfprintf(stderr, msg, ap);
	fprintf (stderr, "\n");
	va_end(ap);

	if (syserr == 1)
		perror("");

	exit(EXIT_FAILURE);
}

// Assembly:
pushq %r14
pushq %rbx
subq $0xd8, %rsp
movl %edi, %ebx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x5b38
movaps %xmm0, 0x50(%rsp)
movaps %xmm1, 0x60(%rsp)
movaps %xmm2, 0x70(%rsp)
movaps %xmm3, 0x80(%rsp)
movaps %xmm4, 0x90(%rsp)
movaps %xmm5, 0xa0(%rsp)
movaps %xmm6, 0xb0(%rsp)
movaps %xmm7, 0xc0(%rsp)
movq %rsp, %rdx
movq %rdi, 0x10(%rdx)
leaq 0xf0(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq 0x4471(%rip), %r14      # 0x9fd0
movq (%r14), %rdi
callq 0x2290
movq (%r14), %rsi
movl $0xa, %edi
callq 0x2270
cmpl $0x1, %ebx
jne 0x5b85
leaq 0x1ae3(%rip), %rdi      # 0x7663
callq 0x2140
movl $0x1, %edi
callq 0x2240