LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/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 0x4e26(%rip), %r15      # 0xb978
movq (%r15), %rdi
movq 0xe8(%rdi), %rax
movslq (%rbx), %rcx
shlq $0x7, %rcx
movq 0x50(%rax,%rcx), %rsi
leaq 0xc40(%rip), %rdx       # 0x77af
leaq 0x4fd2(%rip), %rcx      # 0xbb48
movq %rsp, %r14
movq %r14, %r8
callq 0x2400
movq (%r15), %rdi
movq 0xe8(%rdi), %rax
movslq (%rbx), %rcx
shlq $0x7, %rcx
movq 0x50(%rax,%rcx), %rsi
leaq 0xc17(%rip), %rdx       # 0x77b5
leaq 0x4fb3(%rip), %rcx      # 0xbb58
movq %r14, %r8
callq 0x2400
leaq 0x4db8(%rip), %rax      # 0xb96c
movl (%rax), %eax
cmpl $0x1, %eax
je 0x6c05
cmpl $0x2, %eax
jne 0x6c4f
leaq 0x4c5d(%rip), %rdi      # 0xb828
movq %rbx, %rsi
callq 0x6a9c
movq %rax, 0x68(%rbx)
leaq 0x4bbe(%rip), %rdi      # 0xb79c
movq %rbx, %rsi
callq 0x6a9c
movq %rax, 0x50(%rbx)
leaq 0x4cc3(%rip), %r14      # 0xb8b4
movq %r14, %rdi
movq %rbx, %rsi
callq 0x6a9c
movq %rax, 0x58(%rbx)
movq %r14, %rdi
jmp 0x6c45
leaq 0x4a78(%rip), %rdi      # 0xb684
movq %rbx, %rsi
callq 0x6a9c
movq %rax, 0x68(%rbx)
leaq 0x49d9(%rip), %rdi      # 0xb5f8
movq %rbx, %rsi
callq 0x6a9c
movq %rax, 0x50(%rbx)
leaq 0x48ae(%rip), %rdi      # 0xb4e0
movq %rbx, %rsi
callq 0x6a9c
movq %rax, 0x58(%rbx)
leaq 0x4927(%rip), %rdi      # 0xb56c
movq %rbx, %rsi
callq 0x6a9c
jmp 0x6c8f
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_O1/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 0x434a(%rip), %r14      # 0xaff8
movq (%r14), %rcx
leaq 0xb03(%rip), %rdi       # 0x77bb
movl $0x5, %esi
movl $0x1, %edx
callq 0x2530
movq %rbx, %rdi
callq 0x24a0
movq (%r14), %rsi
movl $0xa, %edi
callq 0x2240
movl $0x1, %edi
callq 0x2520
// File: /workspace/github_c_makefile_star2_O1/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 0x4c7d(%rip), %r13      # 0xb980
cmpl $0x0, (%r13)
je 0x6d1a
cmpb $0x2, 0x21(%rbx)
jne 0x6d1a
cmpb $0xa, 0x20(%rbx)
je 0x6deb
cmpl $0x0, 0x4e47(%rip)      # 0xbb68
je 0x6d44
movzbl 0x20(%rbx), %eax
cmpl $0x3, %eax
je 0x6d31
cmpl $0xc, %eax
jne 0x6d44
xorl %eax, %eax
addq $0xf0, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
movzbl 0x20(%rbx), %esi
leaq 0x50(%rsp), %rdx
movq %r14, %rdi
movl $0x50, %ecx
callq 0x2370
movzbl 0x21(%rbx), %edx
leaq 0x607(%rip), %rsi       # 0x736c
leaq 0xa0(%rsp), %r15
movq %r15, %rdi
xorl %eax, %eax
callq 0x2510
leaq 0xa92(%rip), %rsi       # 0x7810
leaq 0x430(%rip), %rcx       # 0x71b5
movq %rsp, %r12
movq %r14, %rdi
movq %r15, %rdx
movq %r12, %r8
movl $0x50, %r9d
callq 0x2280
cmpb $0x0, (%r12)
jne 0x6db8
movzbl 0x21(%rbx), %edx
leaq 0xa6b(%rip), %rsi       # 0x7819
movq %rsp, %rdi
xorl %eax, %eax
callq 0x2510
movq 0x4239(%rip), %rax      # 0xaff8
movq (%rax), %rdi
movl 0x10(%rbx), %ecx
leaq 0xa5f(%rip), %rsi       # 0x782b
movq %rsp, %rdx
leaq 0x50(%rsp), %r8
xorl %eax, %eax
callq 0x22b0
cmpl $0x0, (%r13)
je 0x6d31
callq 0x29c7
callq 0x29a2
// File: /workspace/github_c_makefile_star2_O1/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 0x12c0
movq 0x50(%rdi), %rax
testq %rax, %rax
je 0x12c0
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 0x12a7
addq %rax, 0x50(%rcx)
movq 0x10(%rdi), %rax
testq %rax, %rax
je 0x12b8
movq 0x50(%rdi), %rcx
addq %rcx, 0x50(%rax)
movq $0x0, 0x50(%rdi)
retq
// File: /workspace/github_c_makefile_star2_O1/6851-2021[P]euler_tour_tree/splay_tree.c
// Function: make_node
Node* make_node(k_t key, v_t value, int is_start) {
    Node* node = malloc(sizeof(Node));
    node->key = key;
    node->value = value;

    node->left = NULL;
    node->right = NULL;
    node->parent = NULL;
    node->is_start = is_start;

    augment_node(node);
    return node;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movl $0x58, %edi
callq 0x1080
movq %rax, %r12
movq %r15, 0x18(%rax)
movq %r14, 0x20(%rax)
vxorps %xmm0, %xmm0, %xmm0
vmovups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
movl %ebx, 0x28(%rax)
movq %rax, %rdi
callq 0x11ac
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1334
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
callq 0x1310
movq 0x10(%rbx), %rdi
callq 0x1310
movq %rbx, %rdi
popq %rbx
jmp 0x1030
retq
// File: /workspace/github_c_makefile_star2_O1/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 %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x13c1
movq (%rdi), %r14
movq 0x8(%rdi), %rax
testq %r14, %r14
je 0x1387
movq 0x8(%r14), %rcx
cmpq %rbx, %rax
je 0x138e
cmpq %rcx, %rdi
je 0x13a5
callq 0x15b2
jmp 0x139b
cmpq %rbx, %rax
jne 0x139b
jmp 0x13b4
cmpq %rcx, %rdi
je 0x13af
movq %rbx, %rdi
callq 0x1535
movq %rbx, %rdi
callq 0x15b2
jmp 0x13bc
movq %rbx, %rdi
callq 0x15b2
jmp 0x13b4
callq 0x1535
movq %rbx, %rdi
callq 0x1535
testq %r14, %r14
jne 0x135e
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1417
movq %rax, %r15
movq %r14, %rdi
callq 0x1448
movq %rax, %r12
addq %rbx, 0x50(%r14)
movq %r14, %rdi
callq 0x126c
movq %r14, %rdi
movq %r12, %rsi
callq 0x1479
movq %r15, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x1479
// File: /workspace/github_c_makefile_star2_O1/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 0x1357
movq 0x8(%rbx), %r14
testq %r14, %r14
je 0x1435
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_O1/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 0x1357
movq 0x10(%rbx), %r14
testq %r14, %r14
je 0x1466
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_O1/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 0x14af
testq %r14, %r14
je 0x14b4
movq %rdi, %rbx
movq 0x10(%rdi), %rdi
testq %rdi, %rdi
jne 0x148a
movq %rbx, %rdi
callq 0x1357
movq %r14, 0x10(%rbx)
movq %rbx, (%r14)
movq %rbx, %rdi
callq 0x11ac
jmp 0x14b7
movq %r14, %rbx
jmp 0x14b7
movq %rdi, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1417
movq %rax, %r15
movq %rbx, %rdi
callq 0x1448
vmovups 0x30(%rbx), %ymm0
vmovups %ymm0, (%r14)
movq 0x50(%rbx), %rcx
movq %rcx, 0x20(%r14)
movq %rbx, %rdi
movq %rax, %rsi
vzeroupper
callq 0x1479
movq %r15, %rdi
movq %rax, %rsi
callq 0x1479
movq %r14, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x126c
movq 0x8(%r14), %rdi
callq 0x126c
movq 0x10(%r14), %rdi
callq 0x126c
movq 0x8(%rbx), %rdi
callq 0x126c
movq 0x10(%rbx), %rdi
callq 0x126c
movq (%r14), %rax
testq %rax, %rax
je 0x1581
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 0x1597
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_O1/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 0x126c
movq 0x8(%r14), %rdi
callq 0x126c
movq 0x10(%r14), %rdi
callq 0x126c
movq 0x8(%rbx), %rdi
callq 0x126c
movq 0x10(%rbx), %rdi
callq 0x126c
movq (%r14), %rax
testq %rax, %rax
je 0x15fe
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 0x1614
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_O1/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 0x1659
movq %rdi, %rbx
movq 0x8(%rdi), %rdi
testq %rdi, %rdi
jne 0x1643
movq %rbx, %rdi
callq 0x1357
jmp 0x165b
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x1980(%rip), %r14      # 0x3004
leaq 0x1985(%rip), %r15      # 0x3010
testq %rbx, %rbx
je 0x16cb
movq 0x8(%rbx), %rdi
callq 0x1675
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
jmp 0x168b
popq %rbx
popq %r14
popq %r15
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/6851-2021[P]euler_tour_tree/euler_tour_tree.c
// Function: make_euler_tour_tree
EulerTourTree* make_euler_tour_tree(s_t n) {
    EulerTourTree* tree = malloc(sizeof(EulerTourTree));
    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 = malloc(sizeof(NodePair) * n);
    tree->has_parent = malloc(sizeof(bool) * n);

    // make n Nodes with default values
    for (k_t i = 0; 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;
    }

    return tree;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movl $0x18, %edi
callq 0x1080
movq %rax, %r14
movq %rbx, 0x10(%rax)
movq %rbx, %rdi
shlq $0x4, %rdi
callq 0x1080
movq %rax, %r15
movq %rax, (%r14)
movq %rbx, %rdi
callq 0x1080
movq %rax, 0x8(%r14)
testq %rbx, %rbx
je 0x1745
movq %rax, %r12
addq $0x8, %r15
xorl %r13d, %r13d
movq %r13, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x12c1
movq %rax, -0x8(%r15)
movq %rax, (%r15)
movb $0x0, (%r12,%r13)
incq %r13
addq $0x10, %r15
cmpq %r13, %rbx
jne 0x171e
movq %r14, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x17c7
movq %r15, %r12
shlq $0x4, %r12
orq $0x8, %r12
movq %r15, %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x12c1
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 0x1797
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x181c
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x8(%rbx), %rax
cmpb $0x0, (%rax,%r13)
jne 0x1810
movq (%rbx), %rax
movq (%rax,%r12), %r14
movq %r14, %rdi
callq 0x162f
movq %r14, %rdi
callq 0x1310
incq %r13
addq $0x10, %r12
cmpq %r13, %r15
jne 0x17ee
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_O1/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 0x1868
pushq %rbx
movq (%rdi), %rcx
shlq $0x4, %rax
movq (%rcx,%rax), %rbx
movq %rbx, %rdi
callq 0x162f
movq %rbx, %rdi
callq 0x163d
movq 0x18(%rax), %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x190e
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x8(%rdi), %rcx
cmpb $0x1, (%rcx,%rsi)
jne 0x1909
movb $0x0, (%rcx,%rsi)
movq (%rbx), %rax
shlq $0x4, %rsi
movq (%rax,%rsi), %rdi
movq 0x8(%rax,%rsi), %r15
callq 0x1417
movq %rax, %r14
movq %r15, %rdi
callq 0x1448
movq %rax, %rdi
callq 0x163d
movq %rax, %r15
movq 0x10(%rax), %rax
testq %rax, %rax
je 0x18c9
movq $0x0, (%rax)
movq (%rbx), %rax
movq 0x18(%r15), %rcx
shlq $0x4, %rcx
cmpq %r15, 0x8(%rax,%rcx)
jne 0x18f3
movq %r14, %rdi
callq 0x1660
movq (%rbx), %rcx
movq 0x18(%r15), %rdx
shlq $0x4, %rdx
movq %rax, 0x8(%rcx,%rdx)
movq 0x10(%r15), %rsi
movq %r14, %rdi
callq 0x1479
movq %r15, %rdi
callq 0x1030
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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
cmpq %rsi, 0x10(%rdi)
ja 0x1935
leaq 0x1(%r14), %rsi
movq %rbx, %rdi
callq 0x1752
cmpq %r15, 0x10(%rbx)
ja 0x1947
leaq 0x1(%r15), %rsi
movq %rbx, %rdi
callq 0x1752
movq 0x8(%rbx), %rax
movl $0x1, %ebp
cmpb $0x0, (%rax,%r14)
jne 0x1a14
movb $0x1, (%rax,%r14)
movq %rbx, %rdi
movq %r15, %rsi
callq 0x183e
movl $0x2, %ebp
cmpq %r14, %rax
je 0x1a14
movq (%rbx), %rax
movq %r15, %r13
shlq $0x4, %r13
movq 0x8(%rax,%r13), %rdi
callq 0x1417
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 0x12c1
movq %rax, %r15
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1479
movq %rax, %rbp
movq (%rbx), %rax
shlq $0x4, %r14
movq (%rax,%r14), %rdi
callq 0x162f
movq (%rbx), %rax
movq (%rax,%r14), %rsi
movq %rbp, %rdi
callq 0x1479
movq (%rbx), %rcx
movq 0x8(%rcx,%r13), %rsi
movq %rax, %rdi
callq 0x1479
xorl %ebp, %ebp
cmpq (%rsp), %r12
jne 0x1a14
movq (%rbx), %rax
movq (%rax,%r13), %rdi
xorl %ebp, %ebp
xorl %esi, %esi
callq 0x14c2
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_O1/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 0x1c04
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 0x1497(%rip), %ymm1 # 0x3068
xorl %ecx, %ecx
vpbroadcastq 0x1484(%rip), %ymm2 # 0x3060
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 0x1bdc
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
vzeroupper
retq
// File: /workspace/github_c_makefile_star2_O1/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)
cmpq $0x0, 0x10(%rdi)
jle 0x1cd9
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorl %r12d, %r12d
movq (%r15), %rax
cmpq %r14, (%rax,%r12,8)
jne 0x1cd0
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x1c96
incq %r12
cmpq 0x10(%r15), %r12
jl 0x1cb9
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x1d2e
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rbp
xorl %r12d, %r12d
cmpq %r14, (%rbp,%r12,8)
jne 0x1d26
movq %r15, %rdi
movq %r12, %rsi
callq 0x1ce5
cmpq %rax, %rbx
cmovgeq %rax, %rbx
incq %r12
cmpq %r12, %r13
jne 0x1d0d
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_O1/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 0x1d89
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rbp
xorl %r12d, %r12d
cmpq %r14, (%rbp,%r12,8)
jne 0x1d81
movq %r15, %rdi
movq %r12, %rsi
callq 0x1d40
cmpq %rax, %rbx
cmovleq %rax, %rbx
incq %r12
cmpq %r12, %r13
jne 0x1d68
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_O1/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 0x1de0
movq %rsi, %r14
movq %rdi, %r15
movq (%rdi), %rbp
xorl %r12d, %r12d
cmpq %r14, (%rbp,%r12,8)
jne 0x1dd8
movq %r15, %rdi
movq %r12, %rsi
callq 0x1d9b
addq %rax, %rbx
incq %r12
cmpq %r12, %r13
jne 0x1dc3
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_O1/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 0x1e37
movq %rsi, %rbx
movq %rdi, %r14
movq (%rdi), %rbp
movl $0x1, %r15d
xorl %r12d, %r12d
cmpq %rbx, (%rbp,%r12,8)
jne 0x1e2d
movq %r14, %rdi
movq %r12, %rsi
callq 0x1df2
addq %rax, %r15
incq %r12
cmpq %r12, %r13
jne 0x1e18
jmp 0x1e3d
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_O1/albertito[P]libfiu/preload/run/run.c
// Function: fiu_run_init
static void __attribute__((constructor)) fiu_run_init(void)
{
	char *fiu_fifo_env, *fiu_enable_env;

	fiu_init(0);

	fiu_fifo_env = getenv("FIU_CTRL_FIFO");
	if (fiu_fifo_env && *fiu_fifo_env != '\0') {
		if (fiu_rc_fifo(fiu_fifo_env) < 0) {
			perror("fiu_run_preload: Error opening RC fifo");
		}
	}

	fiu_enable_env = getenv("FIU_ENABLE");
	if (fiu_enable_env && *fiu_enable_env != '\0') {
		/* FIU_ENABLE can contain more than one command, separated by
		 * a newline, so we split them and call fiu_rc_string()
		 * accordingly. */
		char *tok, *state;
		char *env_copy;
		char *rc_error = "no error returned";

		env_copy = strdup(fiu_enable_env);
		if (env_copy == NULL) {
			perror("fiu_run_preload: Error in strdup()");
			return;
		}

		tok = strtok_r(env_copy, "\n", &state);
		while (tok) {
			if (fiu_rc_string(tok, &rc_error) != 0) {
				fprintf(stderr,
				        "fiu_run_preload: Error applying "
				        "FIU_ENABLE commands: %s\n",
				        rc_error);
				return;
			}
			tok = strtok_r(NULL, "\n", &state);
		}
		free(env_copy);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
xorl %edi, %edi
callq 0x1050
leaq 0xe2b(%rip), %rdi       # 0x2000
callq 0x1030
testq %rax, %rax
je 0x11f4
cmpb $0x0, (%rax)
je 0x11f4
movq %rax, %rdi
callq 0x1060
testl %eax, %eax
js 0x1285
leaq 0xe3a(%rip), %rdi       # 0x2035
callq 0x1030
testq %rax, %rax
je 0x1279
cmpb $0x0, (%rax)
je 0x1279
leaq 0xe2f(%rip), %rcx       # 0x2040
movq %rcx, 0x8(%rsp)
movq %rax, %rdi
callq 0x10b0
testq %rax, %rax
je 0x1296
movq %rax, %rbx
leaq 0xe7f(%rip), %rsi       # 0x20ac
leaq 0x10(%rsp), %rdx
movq %rax, %rdi
callq 0x1070
testq %rax, %rax
je 0x1271
leaq 0x8(%rsp), %r14
leaq 0xe61(%rip), %r15       # 0x20ac
leaq 0x10(%rsp), %r12
movq %rax, %rdi
movq %r14, %rsi
callq 0x1090
testl %eax, %eax
jne 0x12a4
xorl %edi, %edi
movq %r15, %rsi
movq %r12, %rdx
callq 0x1070
testq %rax, %rax
jne 0x1250
movq %rbx, %rdi
callq 0x1040
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
leaq 0xd82(%rip), %rdi       # 0x200e
callq 0x10a0
jmp 0x11f4
leaq 0xdb5(%rip), %rdi       # 0x2052
callq 0x10a0
jmp 0x1279
leaq 0x8(%rsp), %rdi
callq 0x10d0
jmp 0x1279
// File: /workspace/github_c_makefile_star2_O1/giometti[P]mastering_UNIX_programming/chapter_03/flockw.c
// Function: main
int main(void)
{
	int  fd;
	char buf[32];
	int ret;
	struct flock fl;

        /* Open the file */
        fd = open("file.locked", O_WRONLY);
        if (fd < 0) {
                perror("open");
                return -1;
        }
        printf("file opened\n");

	/* Establish the write lock */
	fl.l_type   = F_WRLCK;
	fl.l_whence = SEEK_SET;
	fl.l_start  = 0;        /* Offset from l_whence */
	fl.l_len    = 0;        /* length, 0 = to EOF   */
	fl.l_pid    = getpid();
	ret = fcntl(fd, F_SETLKW, &fl);
	if (ret < 0) {
                perror("fcntl(F_SETLKW)");
                return -1;
        }
        printf("write lock get\n");

	ret = write(fd, buf, 32);
        if (ret < 0) {
                perror("write");
                return -1;
        }
        printf("write done\n");

        printf("sleeping 10s...\n");
        sleep(10);

        /* Unlock the region */
        fl.l_type   = F_UNLCK;
        fl.l_whence = SEEK_SET;
        fl.l_start  = 0;        /* Offset from l_whence */
        fl.l_len    = 0;        /* length, 0 = to EOF   */
        fl.l_pid    = getpid();
        ret = fcntl(fd, F_UNLCK, &fl); 
        if (ret < 0) {
                perror("fcntl(F_SETLKW)");
                return -1;
        }
        printf("unlock done\n");

	close(fd);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x40, %rsp
leaq 0xe49(%rip), %rdi       # 0x2004
movl $0x1, %esi
xorl %eax, %eax
callq 0x1080
testl %eax, %eax
js 0x12a6
movl %eax, %ebx
leaq 0xe53(%rip), %rdi       # 0x202b
callq 0x1030
movq %rsp, %r14
movl $0x1, (%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x8(%r14)
callq 0x1060
movl %eax, 0x18(%r14)
movl %ebx, %edi
movl $0x7, %esi
movq %r14, %rdx
xorl %eax, %eax
callq 0x1040
testl %eax, %eax
js 0x129d
leaq 0xe1f(%rip), %rdi       # 0x2037
callq 0x1030
leaq 0x20(%rsp), %rsi
movl $0x20, %edx
movl %ebx, %edi
callq 0x1050
testl %eax, %eax
js 0x12af
leaq 0x8(%rsp), %r14
leaq 0xe08(%rip), %rdi       # 0x2046
callq 0x1030
leaq 0xe07(%rip), %rdi       # 0x2051
callq 0x1030
movl $0xa, %edi
callq 0x10a0
movl $0x2, -0x8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
callq 0x1060
movl %eax, 0x10(%r14)
xorl %ebp, %ebp
movq %rsp, %rdx
movl %ebx, %edi
movl $0x2, %esi
xorl %eax, %eax
callq 0x1040
testl %eax, %eax
js 0x129d
leaq 0xdd2(%rip), %rdi       # 0x2061
callq 0x1030
movl %ebx, %edi
callq 0x1070
jmp 0x12c0
leaq 0xd71(%rip), %rdi       # 0x2015
jmp 0x12b6
leaq 0xd63(%rip), %rdi       # 0x2010
jmp 0x12b6
leaq 0xd6f(%rip), %rdi       # 0x2025
callq 0x1090
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x40, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/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
vmovdqa %xmm0, (%rsp)
testl %r15d, %r15d
je 0x2f6b
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 0x2fe5
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmp 0x1040
vmovdqa (%r12), %xmm1
vmovdqa 0x10(%r12), %xmm2
vmovdqa 0x20(%r12), %xmm3
vmovdqa 0x30(%r12), %xmm4
vpternlogq $0x96, %xmm3, %xmm0, %xmm4
vaesenc %xmm1, %xmm4, %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 0x2fd7
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_O1/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 0x3100
movl %r9d, %ebx
movq %rdi, %r14
movq 0x60(%rsp), %r12
movq 0x50(%rsp), %r15
callq 0x1080
cmpl %ebx, %ebp
jne 0x3055
testb $0xf, %r15b
je 0x308b
testl %ebx, %ebx
je 0x304d
movl %ebx, %edx
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
vmovaps %xmm0, (%rsp)
callq 0x10c0
vmovdqa (%rsp), %xmm0
vmovdqa 0x10(%rsp), %xmm5
jmp 0x3090
movq %r14, %rdi
movl $0x1, %esi
movq %r15, %rdx
movl %ebp, %ecx
movl %ebx, %r8d
movq %r12, %r9
addq $0x20, %rsp
cmpl $0x1f, %ebp
ja 0x307e
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
movl $0x10, %eax
subl %ebx, %eax
leaq 0x1062(%rip), %rcx      # 0x4100
vmovdqu (%rax,%rcx), %xmm1
vmovdqa (%r14), %xmm2
vmovdqa 0x10(%r14), %xmm3
vmovdqa 0x20(%r14), %xmm4
vpand %xmm5, %xmm1, %xmm6
vpternlogq $0x96, 0x30(%r14), %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_O1/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 0xd44(%rip), %rsi       # 0x2047
xorl %edi, %edi
callq 0x1190
xorl %edi, %edi
callq 0x1160
movq %rax, 0x2df8(%rip)      # 0x4110
cmpq $-0x1, %rax
je 0x13ea
addq $-0x15180, %rax         # imm = 0xFFFEAE80
movq %rax, 0x2de1(%rip)      # 0x4110
cmpl $0x1, %ebp
jne 0x134c
movq 0x2ca5(%rip), %rax      # 0x3fe0
movq (%rax), %rdi
leaq 0xd02(%rip), %rsi       # 0x2047
callq 0x13fd
jmp 0x13b1
jle 0x13b1
movl %ebp, %r13d
movl $0x1, %ebp
leaq 0xca7(%rip), %r14       # 0x2004
movq (%rbx,%rbp,8), %rdi
movq %r14, %rsi
callq 0x11a0
movq (%rbx,%rbp,8), %r12
testq %rax, %rax
je 0x13c2
movq %rax, %r15
movq %r12, %rdi
movl $0x2f, %esi
callq 0x10c0
leaq 0x1(%rax), %rsi
testq %rax, %rax
cmoveq %r12, %rsi
movq %r15, %rdi
callq 0x13fd
movq %r15, %rdi
callq 0x1060
testl %eax, %eax
jne 0x13d3
movq %r15, %rdi
callq 0x1070
incq %rbp
cmpq %rbp, %r13
jne 0x135d
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc3d(%rip), %rsi       # 0x2006
movl $0x1, %edi
movq %r12, %rdx
jmp 0x13e3
movq (%rbx,%rbp,8), %rdx
leaq 0xc32(%rip), %rsi       # 0x2010
movl $0x1, %edi
xorl %eax, %eax
callq 0x1180
leaq 0xc2f(%rip), %rsi       # 0x2020
movl $0x1, %edi
xorl %eax, %eax
callq 0x1180
// File: /workspace/github_c_makefile_star2_O1/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 0x2cfe(%rip), %rdi      # 0x4118
leaq 0x2cff(%rip), %rsi      # 0x4120
movq %r14, %rdx
callq 0x11c0
testq %rax, %rax
jle 0x1582
leaq 0x20(%rsp), %r15
leaq 0xc02(%rip), %rbx       # 0x2040
leaq 0x2cd3(%rip), %r13      # 0x4118
leaq 0x2cd4(%rip), %rbp      # 0x4120
movq %r14, 0x10(%rsp)
movq 0x2cc0(%rip), %rcx      # 0x4118
cmpb $0xa, -0x1(%rcx,%rax)
jne 0x1464
movb $0x0, -0x1(%rcx,%rax)
movq 0x2cad(%rip), %rdi      # 0x4118
movq %r15, %rsi
callq 0x1abf
testq %rax, %rax
je 0x1582
movq $0x0, 0x8(%rsp)
movq 0x20(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1b44
testl %eax, %eax
jne 0x156b
movq %r13, %r12
movq %r15, %r13
leaq 0x8(%rsp), %rdi
callq 0x1030
testq %rax, %rax
je 0x1591
movq %rax, %r15
movq 0x8(%rsp), %rax
cmpq 0x2c4c(%rip), %rax      # 0x4110
movq 0x2b0d(%rip), %r14      # 0x3fd8
movq (%r14), %rsi
leaq 0xb50(%rip), %rdi       # 0x2025
cmovlq %rbx, %rdi
callq 0x10d0
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 0xb20(%rip), %rsi       # 0x2028
xorl %eax, %eax
callq 0x1130
movq 0x18(%rsp), %rsi
cmpb $0x0, (%rsi)
je 0x1536
movq (%r14), %rdi
movl $0xf, %edx
movl $0x20, %ecx
callq 0x1c3e
movq (%r14), %rsi
movq %rbx, %rdi
callq 0x10d0
movq (%r14), %rdi
movq 0x28(%rsp), %rsi
movl $0x46, %edx
movl $0x20, %ecx
callq 0x1c3e
movq 0x30(%rsp), %rsi
leaq 0xaea(%rip), %rdi       # 0x2043
xorl %eax, %eax
callq 0x10a0
movq %r13, %r15
movq %r12, %r13
movq 0x10(%rsp), %r14
movq %r13, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x11c0
testq %rax, %rax
jg 0x1451
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xa83(%rip), %rsi       # 0x201b
movl $0x1, %edi
xorl %eax, %eax
callq 0x1180
// File: /workspace/github_c_makefile_star2_O1/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 0x24ca(%rip), %rdi      # 0x4180
movl $0x2, %esi
xorl %eax, %eax
callq 0x1220
testl %eax, %eax
js 0x1cea
leaq 0x24b3(%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 0x1ccd
leaq 0x57c(%rip), %rdi       # 0x226d
leaq 0x57d(%rip), %rsi       # 0x2275
leaq 0x5a9(%rip), %rcx       # 0x22a8
movl $0x18, %edx
callq 0x1130