LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/genl_family.c
// Function: family_clone
static int family_clone(struct nl_object *_dst, struct nl_object *_src)
{
	struct genl_family *dst = nl_object_priv(_dst);
	struct genl_family *src = nl_object_priv(_src);
	struct genl_family_op *ops;
	struct genl_family_grp *grp;
	int err;

	nl_list_for_each_entry(ops, &src->gf_ops, o_list) {
		err = genl_family_add_op(dst, ops->o_id, ops->o_flags);
		if (err < 0)
			return err;
	}

	nl_list_for_each_entry(grp, &src->gf_mc_grps, list) {
		err = genl_family_add_grp(dst, grp->id, grp->name);
		if (err < 0)
			return err;
	}

	
	return 0;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x58(%rsi), %r15
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x5b23
movl -0x8(%r12), %esi
movl -0x4(%r12), %edx
movq %r14, %rdi
callq 0x31f0
testl %eax, %eax
jns 0x5b02
jmp 0x5b4a
addq $0x68, %rbx
movq %rbx, %r15
movq (%r15), %r15
cmpq %rbx, %r15
je 0x5b48
movl 0x20(%r15), %esi
leaq 0x10(%r15), %rdx
movq %r14, %rdi
callq 0x3360
testl %eax, %eax
jns 0x5b2a
jmp 0x5b4a
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/genl_family.c
// Function: family_compare
static int family_compare(struct nl_object *_a, struct nl_object *_b,
			  uint32_t attrs, int flags)
{
	struct genl_family *a = (struct genl_family *) _a;
	struct genl_family *b = (struct genl_family *) _b;
	int diff = 0;

#define FAM_DIFF(ATTR, EXPR) ATTR_DIFF(attrs, FAMILY_ATTR_##ATTR, a, b, EXPR)

	diff |= FAM_DIFF(ID,		a->gf_id != b->gf_id);
	diff |= FAM_DIFF(VERSION,	a->gf_version != b->gf_version);
	diff |= FAM_DIFF(HDRSIZE,	a->gf_hdrsize != b->gf_hdrsize);
	diff |= FAM_DIFF(MAXATTR,	a->gf_maxattr != b->gf_maxattr);
	diff |= FAM_DIFF(NAME,		strcmp(a->gf_name, b->gf_name));

#undef FAM_DIFF

	return diff;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
xorl %ebp, %ebp
movl $0x0, %r14d
testb $0x1, %dl
je 0x5b85
movl 0x30(%rdi), %eax
andl 0x30(%rsi), %eax
testb $0x1, %al
je 0x5b7f
movzwl 0x34(%rdi), %eax
cmpw 0x34(%rsi), %ax
je 0x5b85
movl $0x1, %r14d
testb $0x4, %dl
je 0x5ba1
movl 0x30(%rdi), %eax
andl 0x30(%rsi), %eax
testb $0x4, %al
je 0x5b9c
movl 0x48(%rdi), %eax
cmpl 0x48(%rsi), %eax
je 0x5ba1
movl $0x4, %ebp
xorl %r15d, %r15d
movl $0x0, %ebx
testb $0x8, %dl
je 0x5bc5
movl 0x30(%rdi), %eax
andl 0x30(%rsi), %eax
testb $0x8, %al
je 0x5bc0
movl 0x4c(%rdi), %eax
cmpl 0x4c(%rsi), %eax
je 0x5bc5
movl $0x8, %ebx
testb $0x10, %dl
je 0x5be2
movl 0x30(%rdi), %eax
andl 0x30(%rsi), %eax
testb $0x10, %al
je 0x5bdc
movl 0x50(%rdi), %eax
cmpl 0x50(%rsi), %eax
je 0x5be2
movl $0x10, %r15d
xorl %r12d, %r12d
testb $0x2, %dl
je 0x5c0b
movl 0x30(%rdi), %eax
andl 0x30(%rsi), %eax
testb $0x2, %al
je 0x5c05
addq $0x36, %rdi
addq $0x36, %rsi
callq 0x3280
testl %eax, %eax
je 0x5c0b
movl $0x2, %r12d
orl %r14d, %ebp
orl %r15d, %ebx
orl %ebp, %ebx
orl %r12d, %ebx
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/genl_ctrl.c
// Function: genl_ctrl_search
struct genl_family *genl_ctrl_search(struct nl_cache *cache, int id)
{
	struct genl_family *fam;

	if (cache->c_ops != &genl_ctrl_ops)
		BUG();

	nl_list_for_each_entry(fam, &cache->c_items, ce_list) {
		if (fam->gf_id == id) {
			nl_object_get((struct nl_object *) fam);
			return fam;
		}
	}

	return NULL;
}

// Assembly:
pushq %rax
leaq 0x578a(%rip), %rax      # 0xb3c8
cmpq %rax, 0x20(%rdi)
jne 0x5c65
xorl %eax, %eax
movq %rdi, %rcx
movq (%rcx), %rcx
cmpq %rdi, %rcx
je 0x5c63
movzwl 0x1c(%rcx), %edx
cmpl %esi, %edx
jne 0x5c49
incl -0x18(%rcx)
addq $-0x18, %rcx
movq %rcx, %rax
popq %rcx
retq
callq 0x396f
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/genl_ctrl.c
// Function: genl_ctrl_search_by_name
struct genl_family *genl_ctrl_search_by_name(struct nl_cache *cache,
					    const char *name)
{
	struct genl_family *fam;

	if (cache->c_ops != &genl_ctrl_ops)
		BUG();

	nl_list_for_each_entry(fam, &cache->c_items, ce_list) {
		if (!strcmp(name, fam->gf_name)) {
			nl_object_get((struct nl_object *) fam);
			return fam;
		}
	}

	return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x574f(%rip), %rax      # 0xb3c8
cmpq %rax, 0x20(%rdi)
jne 0x5cbf
movq %rsi, %r14
movq %rdi, %r15
xorl %ebx, %ebx
movq %rdi, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x5cb0
leaq 0x1e(%r12), %rsi
movq %r14, %rdi
callq 0x3280
testl %eax, %eax
jne 0x5c8a
incl -0x18(%r12)
addq $-0x18, %r12
movq %r12, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x39b2
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/genl_ctrl.c
// Function: genl_ctrl_resolve
int genl_ctrl_resolve(struct nl_sock *sk, const char *name)
{
	struct nl_cache *cache;
	struct genl_family *family;
	int err;

	if ((err = genl_ctrl_alloc_cache(sk, &cache)) < 0)
		return err;

	family = genl_ctrl_search_by_name(cache, name);
	if (family == NULL) {
		err = -NLE_OBJ_NOTFOUND;
		goto errout;
	}

	err = genl_family_get_id(family);
	genl_family_put(family);
errout:
	nl_cache_free(cache);

	return err;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rsi
leaq 0x56f3(%rip), %rdi      # 0xb3c8
movq %rsp, %rdx
callq 0x3600
testl %eax, %eax
js 0x5d08
movq (%rsp), %rdi
movq %r14, %rsi
callq 0x3490
testq %rax, %rax
je 0x5d0c
xorl %ebx, %ebx
testb $0x1, 0x30(%rax)
je 0x5cfe
movzwl 0x34(%rax), %ebx
movq %rax, %rdi
callq 0x3100
jmp 0x5d11
movl %eax, %ebx
jmp 0x5d1a
movl $0xfffffff4, %ebx       # imm = 0xFFFFFFF4
movq (%rsp), %rdi
callq 0x3050
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/genl_ctrl.c
// Function: genl_ctrl_resolve_grp
int genl_ctrl_resolve_grp(struct nl_sock *sk, const char *family_name,
	const char *grp_name)
{
	struct nl_cache *cache;
	struct genl_family *family;
	int err;

	if ((err = genl_ctrl_alloc_cache(sk, &cache)) < 0)
		return err;

	family = genl_ctrl_search_by_name(cache, family_name);
	if (family == NULL) {
		err = -NLE_OBJ_NOTFOUND;
		goto errout;
	}

	err = genl_ctrl_grp_by_name(family, grp_name);
	genl_family_put(family);
errout:
	nl_cache_free(cache);

	return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %rsi
leaq 0x5688(%rip), %rdi      # 0xb3c8
leaq 0x8(%rsp), %rdx
callq 0x3600
testl %eax, %eax
js 0x5d8e
movq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x3490
testq %rax, %rax
je 0x5d92
movq %rax, %r14
movq %rax, %r15
addq $0x68, %r15
movq %r15, %r12
movq (%r12), %r12
cmpq %r15, %r12
je 0x5d99
leaq 0x10(%r12), %rdi
movq %rbx, %rsi
callq 0x3280
testl %eax, %eax
jne 0x5d6d
movl 0x20(%r12), %ebp
jmp 0x5d9e
movl %eax, %ebp
jmp 0x5db0
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
jmp 0x5da6
movl $0xfffffff4, %ebp       # imm = 0xFFFFFFF4
movq %r14, %rdi
callq 0x3100
movq 0x8(%rsp), %rdi
callq 0x3050
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/genl_mngt.c
// Function: genl_msg_parser
static int genl_msg_parser(struct nl_cache_ops *ops, struct sockaddr_nl *who,
			   struct nlmsghdr *nlh, struct nl_parser_param *pp)
{
	int i, err;
	struct genlmsghdr *ghdr;
	struct genl_cmd *cmd;

	ghdr = nlmsg_data(nlh);

	if (ops->co_genl == NULL)
		BUG();

	for (i = 0; i < ops->co_genl->o_ncmds; i++) {
		cmd = &ops->co_genl->o_cmds[i];
		if (cmd->c_id == ghdr->cmd)
			goto found;
	}

	err = -NLE_MSGTYPE_NOSUPPORT;
	goto errout;

found:
	if (cmd->c_msg_parser == NULL)
		err = -NLE_OPNOTSUPP;
	else {
		struct nlattr *tb[cmd->c_maxattr + 1];
		struct genl_info info = {
			.who = who,
			.nlh = nlh,
			.genlhdr = ghdr,
			.userhdr = genlmsg_data(ghdr),
			.attrs = tb,
		};

		err = nlmsg_parse(nlh, ops->co_hdrsize, tb, cmd->c_maxattr,
				  cmd->c_attr_policy);
		if (err < 0)
			goto errout;

		err = cmd->c_msg_parser(ops, cmd, &info, pp);
	}
errout:
	return err;

}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %r12
movq 0x40(%rdi), %rdx
testq %rdx, %rdx
je 0x6203
movq %rcx, %rbx
movslq 0x20(%rdx), %rcx
movl $0xffffffea, %eax       # imm = 0xFFFFFFEA
testq %rcx, %rcx
jle 0x61f4
movq %rdi, %r14
leaq 0x10(%r12), %rdi
movq 0x18(%rdx), %r15
movzbl (%rdi), %edx
cmpl %edx, (%r15)
je 0x617e
addq $0x28, %r15
decq %rcx
jne 0x616e
jmp 0x61f4
cmpq $0x0, 0x18(%r15)
je 0x61ef
movq %rsp, -0x30(%rbp)
movl 0x10(%r15), %eax
incl %eax
movq %rsp, %r13
leaq 0xf(,%rax,8), %rax
andq $-0x10, %rax
subq %rax, %r13
movq %r13, %rsp
movq %rsi, -0x58(%rbp)
movq %r12, -0x50(%rbp)
movq %rdi, -0x48(%rbp)
callq 0x3220
movq %rax, -0x40(%rbp)
movq %r13, -0x38(%rbp)
movl 0x8(%r14), %esi
movl 0x10(%r15), %ecx
movq 0x20(%r15), %r8
movq %r12, %rdi
movq %r13, %rdx
callq 0x3620
testl %eax, %eax
js 0x61e9
leaq -0x58(%rbp), %rdx
movq %r14, %rdi
movq %r15, %rsi
movq %rbx, %rcx
callq *0x18(%r15)
movq -0x30(%rbp), %rsp
jmp 0x61f4
movl $0xfffffff6, %eax       # imm = 0xFFFFFFF6
leaq -0x28(%rbp), %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x39f5
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_genl_init
int unl_genl_init(struct unl *unl, const char *family)
{
	if (unl_init(unl))
		goto error_out;

	unl->hdrlen = NLMSG_ALIGN(sizeof(struct genlmsghdr));
	unl->family_name = strdup(family);
	if (!unl->family_name)
		goto error;

	if (genl_connect(unl->sock))
		goto error;

	if (genl_ctrl_alloc_cache(unl->sock, &unl->cache))
		goto error;

	unl->family = genl_ctrl_search_by_name(unl->cache, family);
	if (!unl->family)
		goto error;

	return 0;

error:
	unl_free(unl);
error_out:
	return -1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
callq 0x32c0
movq %rax, %r15
movq %rax, (%rbx)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testq %r15, %r15
je 0x629f
movl $0x4, 0x20(%rbx)
movq %r14, %rdi
callq 0x35d0
movq %rax, 0x18(%rbx)
testq %rax, %rax
je 0x6292
movq %r15, %rdi
callq 0x32d0
testl %eax, %eax
jne 0x6292
movq (%rbx), %rdi
leaq 0x8(%rbx), %rsi
callq 0x31b0
testl %eax, %eax
je 0x62a5
movq %rbx, %rdi
callq 0x3250
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
popq %rbx
popq %r14
popq %r15
retq
movq 0x8(%rbx), %rdi
movq %r14, %rsi
callq 0x3490
movq %rax, %rcx
movq %rax, 0x10(%rbx)
xorl %eax, %eax
testq %rcx, %rcx
jne 0x629f
jmp 0x6292
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_free
void unl_free(struct unl *unl)
{
	if (unl->family_name)
		free(unl->family_name);

	if (unl->sock)
		nl_socket_free(unl->sock);

	if (unl->cache)
		nl_cache_free(unl->cache);

	memset(unl, 0, sizeof(*unl));
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
testq %rdi, %rdi
je 0x62d3
callq 0x3060
movq (%rbx), %rdi
testq %rdi, %rdi
je 0x62e0
callq 0x34f0
movq 0x8(%rbx), %rdi
testq %rdi, %rdi
je 0x62ee
callq 0x3050
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, (%rbx)
movq $0x0, 0x20(%rbx)
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_rtnl_init
int unl_rtnl_init(struct unl *unl)
{
	if (unl_init(unl))
		goto error_out;

	unl->hdrlen = 0;
	if (nl_connect(unl->sock, NETLINK_ROUTE))
		goto error;

	return 0;

error:
	unl_free(unl);
error_out:
	return -1;
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rdi)
movups %xmm0, (%rdi)
movq $0x0, 0x20(%rdi)
callq 0x32c0
movq %rax, (%rbx)
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x6350
movl $0x0, 0x20(%rbx)
xorl %ebp, %ebp
movq %rax, %rdi
xorl %esi, %esi
callq 0x3040
testl %eax, %eax
je 0x6350
movq %rbx, %rdi
callq 0x3250
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_genl_msg
struct nl_msg *unl_genl_msg(struct unl *unl, int cmd, bool dump)
{
	struct nl_msg *msg;
	int flags = 0;

	msg = nlmsg_alloc();
	if (!msg)
		goto out;

	if (dump)
		flags |= NLM_F_DUMP;

	genlmsg_put(msg, NL_AUTO_PID, NL_AUTO_SEQ,
		    genl_family_get_id(unl->family), 0, flags, cmd, 0);

out:
	return msg;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %r15d
movl %esi, %ebp
movq %rdi, %r14
callq 0x3530
movq %rax, %rbx
testq %rax, %rax
je 0x63ac
xorl %ecx, %ecx
testb %r15b, %r15b
movl $0x300, %r9d            # imm = 0x300
cmovel %ecx, %r9d
movq 0x10(%r14), %rax
testb $0x1, 0x30(%rax)
je 0x6392
movzwl 0x34(%rax), %ecx
movzbl %bpl, %eax
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %r8d, %r8d
pushq $0x0
pushq %rax
callq 0x34d0
addq $0x10, %rsp
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_rtnl_msg
struct nl_msg *unl_rtnl_msg(struct unl *unl, int cmd, bool dump)
{
	struct nl_msg *msg;
	int flags = 0;

	msg = nlmsg_alloc();
	if (!msg)
		goto out;

	if (dump)
		flags |= NLM_F_DUMP;

	nlmsg_put(msg, NL_AUTO_PID, NL_AUTO_SEQ, cmd, 0, flags);

out:
	return msg;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %edx, %r14d
movl %esi, %ebp
callq 0x3530
movq %rax, %rbx
testq %rax, %rax
je 0x63f0
xorl %eax, %eax
testb %r14b, %r14b
movl $0x300, %r9d            # imm = 0x300
cmovel %eax, %r9d
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movl %ebp, %ecx
xorl %r8d, %r8d
callq 0x3340
movq %rbx, %rax
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_request
int unl_request(struct unl *unl, struct nl_msg *msg, unl_cb handler, void *arg)
{
	struct nl_cb *cb;
	int err;

	cb = nl_cb_alloc(NL_CB_CUSTOM);
	err = nl_send_auto_complete(unl->sock, msg);
	if (err < 0)
		goto out;

	err = 1;
	nl_cb_err(cb, NL_CB_CUSTOM, error_handler, &err);
	nl_cb_set(cb, NL_CB_FINISH, NL_CB_CUSTOM, finish_handler, &err);
	nl_cb_set(cb, NL_CB_ACK, NL_CB_CUSTOM, ack_handler, &err);
	if (handler)
		nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, handler, arg);

	while (err > 0)
		nl_recvmsgs(unl->sock, cb);

out:
	nlmsg_free(msg);
	nl_cb_put(cb);
	return err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %rbx
movq %rdi, %r15
movl $0x3, %edi
callq 0x30e0
movq %rax, %r14
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x3500
movl %eax, 0x4(%rsp)
testl %eax, %eax
js 0x64bc
leaq 0x4(%rsp), %rbp
movl $0x1, (%rbp)
leaq 0x99(%rip), %rdx        # 0x64df
movq %r14, %rdi
movl $0x3, %esi
movq %rbp, %rcx
callq 0x3550
leaq 0x8c(%rip), %rcx        # 0x64e9
movq %r14, %rdi
movl $0x1, %esi
movl $0x3, %edx
movq %rbp, %r8
callq 0x35f0
leaq 0x7c(%rip), %rcx        # 0x64f5
movq %r14, %rdi
movl $0x4, %esi
movl $0x3, %edx
movq %rbp, %r8
callq 0x35f0
testq %r13, %r13
je 0x64b5
movq %r14, %rdi
xorl %esi, %esi
movl $0x3, %edx
movq %r13, %rcx
movq %r12, %r8
callq 0x35f0
jmp 0x64b5
movq (%r15), %rdi
movq %r14, %rsi
callq 0x3170
cmpl $0x0, 0x4(%rsp)
jg 0x64aa
movq %rbx, %rdi
callq 0x35a0
movq %r14, %rdi
callq 0x32b0
movl 0x4(%rsp), %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_loop
void unl_loop(struct unl *unl, unl_cb handler, void *arg)
{
	struct nl_cb *cb;

	cb = nl_cb_alloc(NL_CB_CUSTOM);
	unl->loop_done = false;
	nl_cb_set(cb, NL_CB_SEQ_CHECK, NL_CB_CUSTOM, no_seq_check, NULL);
	nl_cb_set(cb, NL_CB_VALID, NL_CB_CUSTOM, handler, arg);

	while (!unl->loop_done)
		nl_recvmsgs(unl->sock, cb);

	nl_cb_put(cb);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl $0x3, %edi
callq 0x30e0
movq %rax, %r14
movb $0x0, 0x24(%rbx)
leaq 0x54(%rip), %rcx        # 0x65a6
movq %rax, %rdi
movl $0x8, %esi
movl $0x3, %edx
xorl %r8d, %r8d
callq 0x35f0
movq %r14, %rdi
xorl %esi, %esi
movl $0x3, %edx
movq %r12, %rcx
movq %r15, %r8
callq 0x35f0
cmpb $0x0, 0x24(%rbx)
jne 0x6593
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x3170
cmpb $0x1, 0x24(%rbx)
jne 0x6582
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
jmp 0x32b0
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_genl_subscribe
int unl_genl_subscribe(struct unl *unl, const char *name)
{
	int mcid;

	mcid = unl_genl_multicast_id(unl, name);
	if (mcid < 0)
		return mcid;

	return nl_socket_add_membership(unl->sock, mcid);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x3410
testl %eax, %eax
js 0x6773
movq (%rbx), %rdi
movl %eax, %esi
xorl %edx, %edx
xorl %eax, %eax
popq %rbx
jmp 0x3440
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_genl_unsubscribe
int unl_genl_unsubscribe(struct unl *unl, const char *name)
{
	int mcid;

	mcid = unl_genl_multicast_id(unl, name);
	if (mcid < 0)
		return mcid;

	return nl_socket_drop_membership(unl->sock, mcid);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x3410
testl %eax, %eax
js 0x6791
movq (%rbx), %rdi
movl %eax, %esi
xorl %edx, %edx
xorl %eax, %eax
popq %rbx
jmp 0x3160
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_nl80211_phy_lookup
int unl_nl80211_phy_lookup(const char *name)
{
	char buf[32];
	int fd, pos;

	snprintf(buf, sizeof(buf), "/sys/class/ieee80211/%s/index", name);

	fd = open(buf, O_RDONLY);
	if (fd < 0)
		return -1;
	pos = read(fd, buf, sizeof(buf) - 1);
	if (pos < 0) {
		close(fd);
		return -1;
	}
	buf[pos] = '\0';
	close(fd);
	return atoi(buf);
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x28, %rsp
movq %rdi, %rcx
leaq 0x1072(%rip), %rdx      # 0x7815
movq %rsp, %rbx
movl $0x20, %esi
movq %rbx, %rdi
xorl %eax, %eax
callq 0x31d0
movq %rbx, %rdi
xorl %esi, %esi
xorl %eax, %eax
callq 0x3460
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testl %eax, %eax
js 0x6802
movl %eax, %ebp
movq %rsp, %rsi
movl $0x1f, %edx
movl %eax, %edi
callq 0x3260
testl %eax, %eax
js 0x67fb
andl $0x7fffffff, %eax       # imm = 0x7FFFFFFF
movb $0x0, (%rsp,%rax)
movl %ebp, %edi
callq 0x3230
movq %rsp, %rdi
callq 0x34e0
movl %eax, %ebx
jmp 0x6802
movl %ebp, %edi
callq 0x3230
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/sabotage-linux[P]libnl-tiny/unl.c
// Function: unl_nl80211_wdev_to_phy
int unl_nl80211_wdev_to_phy(struct unl *unl, int wdev)
{
	struct nl_msg *msg;
	struct nlattr *attr;
	int ret = -1;

	msg = unl_genl_msg(unl, NL80211_CMD_GET_INTERFACE, false);
	if (!msg)
		return -1;

	NLA_PUT_U32(msg, NL80211_ATTR_IFINDEX, wdev);
	if (unl_request_single(unl, msg, &msg) < 0)
		return -1;

	attr = unl_find_attr(unl, msg, NL80211_ATTR_WIPHY);
	if (!attr)
		goto out;

	ret = nla_get_u32(attr);
out:
nla_put_failure:
	nlmsg_free(msg);
	return ret;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movl %esi, %ebp
movq %rdi, %rbx
movl $0x5, %esi
xorl %edx, %edx
callq 0x31c0
movq %rax, 0x8(%rsp)
testq %rax, %rax
je 0x68a0
leaq 0x14(%rsp), %rcx
movl %ebp, (%rcx)
movq %rax, %rdi
movl $0x3, %esi
movl $0x4, %edx
callq 0x3390
testl %eax, %eax
js 0x68a7
leaq 0x8(%rsp), %rcx
movq (%rcx), %rsi
movq $0x0, (%rcx)
leaq -0x348(%rip), %rdx      # 0x6517
movq %rbx, %rdi
callq 0x3580
testl %eax, %eax
js 0x68a0
movq 0x8(%rsp), %rax
movq 0x30(%rax), %rax
movl 0x20(%rbx), %ecx
addl $0x3, %ecx
andl $-0x4, %ecx
leaq (%rax,%rcx), %rdi
addq $0x10, %rdi
movl (%rax), %esi
subl %ecx, %esi
addl $-0x10, %esi
movl $0x1, %edx
callq 0x32a0
testq %rax, %rax
je 0x68a7
movl 0x4(%rax), %ebx
jmp 0x68ac
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x68b6
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq 0x8(%rsp), %rdi
callq 0x35a0
movl %ebx, %eax
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: create_session
static session_t *
create_session()
{
	session_t *sp;

	errno = 0;
	if (cfg.host == NULL || cfg.host[0] == '\0') {
		warnx("Host not defined. Corrupted config file?");
		return (NULL);
	}
	if (cfg.cookie == NULL || cfg.cookie[0] == '\0') {
		warnx("Cookie not defined. Corrupted config file?");
		return (NULL);
	}
	if ((sp = malloc(sizeof(session_t))) == NULL)
		return (NULL);

	sp->host	 = cfg.host;
	sp->port	 = cfg.port;
	sp->cookie	 = cfg.cookie; 
	sp->attr.name	 = sp->attr.did = NULL;
	sp->attr.aspects = NULL;

	if (get_attributs(sp) == -1) {
		free_session(sp); return (NULL);
	}
	return (sp);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
callq 0x2060
movl $0x0, (%rax)
leaq 0xbf25(%rip), %r14      # 0xf400
movq 0x10(%r14), %r15
testq %r15, %r15
je 0x3543
cmpb $0x0, (%r15)
je 0x3543
movq 0x18(%r14), %r12
testq %r12, %r12
je 0x354c
cmpb $0x0, (%r12)
je 0x354c
movl $0x60, %edi
callq 0x2420
testq %rax, %rax
je 0x353f
movq %rax, %rbx
movq %r15, (%rax)
movzwl (%r14), %eax
movw %ax, 0x10(%rbx)
movq %r12, 0x8(%rbx)
movq $0x0, 0x58(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x40(%rbx)
movq %rbx, %rdi
callq 0x62f6
cmpl $-0x1, %eax
jne 0x355c
movq %rbx, %rdi
callq 0x62d8
xorl %ebx, %ebx
jmp 0x355c
leaq 0x72c0(%rip), %rdi      # 0xa80a
jmp 0x3553
leaq 0x72e0(%rip), %rdi      # 0xa833
xorl %ebx, %ebx
xorl %eax, %eax
callq 0x22d0
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: show_contacts
static void
show_contacts(contact_t *contacts)
{
	wchar_t	  w[50];
	contact_t *ctp;

	(void)wprintf(L"ID       NAME                     HANDLE\n");
	for (ctp = contacts; ctp != NULL; ctp = ctp->next) {
		(void)wprintf(L"%-8d ", ctp->id);
		(void)mbstowcs(w, ctp->name, 50); w[24] = L'\0';
		(void)wprintf(L"%-24S ", w);
		(void)mbstowcs(w, ctp->handle, 50); w[40] = L'\0';
		(void)wprintf(L"%-40S\n", w);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq 0x6e5d(%rip), %rdi      # 0xb33c
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x24c0
testq %rbx, %rbx
je 0x4561
leaq 0x6ef0(%rip), %r14      # 0xb3e4
movq %rsp, %r15
leaq 0x6efe(%rip), %r12      # 0xb3fc
leaq 0x6f13(%rip), %r13      # 0xb418
movl (%rbx), %esi
movq %r14, %rdi
xorl %eax, %eax
callq 0x24c0
movq 0x8(%rbx), %rsi
movl $0x32, %edx
movq %r15, %rdi
callq 0x2050
movl %ebp, 0x60(%rsp)
movq %r12, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x24c0
movq 0x10(%rbx), %rsi
movl $0x32, %edx
movq %r15, %rdi
callq 0x2050
movl %ebp, 0xa0(%rsp)
movq %r13, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x24c0
movq 0x28(%rbx), %rbx
testq %rbx, %rbx
jne 0x4505
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: show_msg_index
static void
show_msg_index(session_t *sp)
{
	char	  *name;
	wchar_t   w[50];
	contact_t *ctp;
	msg_idx_t *idx;

	(void)wprintf(L"DATE                 MSG ID  " \
	    "FROM ID FROM            SUBJECT\n");
	for (idx = sp->midx; idx != NULL; idx = idx->next) {
		name = NULL;
		if (sp->contacts != NULL &&
		    (ctp = find_contact_by_id(sp->contacts,
			idx->aid)) != NULL) {
			name = ctp->name;
		} else if (sp->attr.id == idx->aid)
			name = sp->attr.name;
		(void)wprintf(L"%-20s ", idx->date);
		(void)wprintf(L"%-7d %-7d ", idx->mid, idx->aid);
		(void)mbstowcs(w, name != NULL ? name : "?", 50);
		w[15] = L'\0';
		(void)wprintf(L"%-15S ", w);
		(void)mbstowcs(w, idx->subject, 50); w[27] = L'\0';
		(void)wprintf(L"%-27S\n", w);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq 0x65d9(%rip), %rdi      # 0xb1c4
xorl %r15d, %r15d
xorl %eax, %eax
callq 0x24c0
movq 0x18(%rbx), %r13
testq %r13, %r13
je 0x4cd2
leaq 0x40(%rbx), %rbp
movq %rsp, %r12
movq 0x20(%rbx), %rax
testq %rax, %rax
je 0x4c2e
movl (%r13), %ecx
cmpl %ecx, (%rax)
je 0x4c23
movq 0x28(%rax), %rax
testq %rax, %rax
jne 0x4c16
testq %rax, %rax
je 0x4c2e
addq $0x8, %rax
jmp 0x4c3a
movl 0x28(%rbx), %ecx
movq %rbp, %rax
cmpl (%r13), %ecx
jne 0x4c3f
movq (%rax), %r14
jmp 0x4c42
xorl %r14d, %r14d
movq 0x10(%r13), %rsi
leaq 0x666f(%rip), %rdi      # 0xb2bc
xorl %eax, %eax
callq 0x24c0
movl (%r13), %edx
movl 0x4(%r13), %esi
leaq 0x6675(%rip), %rdi      # 0xb2d8
xorl %eax, %eax
callq 0x24c0
testq %r14, %r14
leaq 0x5be8(%rip), %rax      # 0xa85c
cmoveq %rax, %r14
movl $0x32, %edx
movq %r12, %rdi
movq %r14, %rsi
callq 0x2050
movl %r15d, 0x3c(%rsp)
leaq 0x6670(%rip), %rdi      # 0xb304
movq %r12, %rsi
xorl %eax, %eax
callq 0x24c0
movq 0x8(%r13), %rsi
movl $0x32, %edx
movq %r12, %rdi
callq 0x2050
movl %r15d, 0x6c(%rsp)
leaq 0x6665(%rip), %rdi      # 0xb320
movq %r12, %rsi
xorl %eax, %eax
callq 0x24c0
movq 0x18(%r13), %r13
testq %r13, %r13
jne 0x4c09
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: show_aspects
static void
show_aspects(session_t *sp)
{
	wchar_t  w[50];
	aspect_t *ap;

	(void)wprintf(L"NAME                 ASPECT ID\n");
	for (ap = sp->attr.aspects; ap != NULL; ap = ap->next) {
		(void)mbstowcs(w, ap->name, 50); w[20] = L'\0';
		(void)wprintf(L"%-20S ", w);
		(void)wprintf(L"%d\n", ap->id);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movq %rdi, %rbx
leaq 0x641c(%rip), %rdi      # 0xb118
xorl %eax, %eax
callq 0x24c0
movq 0x58(%rbx), %r12
testq %r12, %r12
je 0x4d5c
movq %rsp, %rbx
leaq 0x6482(%rip), %r14      # 0xb198
leaq 0x6497(%rip), %r15      # 0xb1b4
movq 0x8(%r12), %rsi
movl $0x32, %edx
movq %rbx, %rdi
callq 0x2050
movl $0x0, 0x50(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
xorl %eax, %eax
callq 0x24c0
movl (%r12), %esi
movq %r15, %rdi
xorl %eax, %eax
callq 0x24c0
movq 0x10(%r12), %r12
testq %r12, %r12
jne 0x4d1d
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: like
static int
like(session_t *sp, int id)
{
	int	   status, ret;
	char	   *url;
	ssl_conn_t *cp;
	
	errno = 0;
	if ((url = strduprintf("/posts/%d/likes", id)) == NULL)
		return (-1);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL) {
		free(url); return (-1);
	}
	status = http_post(cp, url, sp->cookie, NULL,
	    USER_AGENT, HTTP_POST_TYPE_JSON, "[]");
	free(url);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == -1)
		ret = -1;
	else if (status == HTTP_CREATED)
		ret = 0;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r15
callq 0x2060
movl $0x0, (%rax)
leaq 0x584c(%rip), %rdi      # 0xa5d5
movl %ebx, %esi
xorl %eax, %eax
callq 0x99a1
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x4e3b
movq %rax, %r14
movq (%r15), %rdi
movzwl 0x10(%r15), %esi
callq 0x7828
testq %rax, %rax
je 0x4e10
movq %rax, %rbx
movq 0x8(%r15), %rdx
leaq 0x5822(%rip), %rax      # 0xa5e5
movq %rax, (%rsp)
leaq 0x5632(%rip), %r8       # 0xa400
movq %rbx, %rdi
movq %r14, %rsi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x83d9
movl %eax, %ebp
movq %r14, %rdi
callq 0x23c0
cmpl $-0x1, %ebp
je 0x4e33
cmpl $0xc9, %ebp
je 0x4e1a
cmpl $0x191, %ebp            # imm = 0x191
jne 0x4e1e
leaq 0x5603(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x4e2e
movq %r14, %rdi
callq 0x23c0
jmp 0x4e3b
xorl %ebp, %ebp
jmp 0x4e33
leaq 0x58b2(%rip), %rdi      # 0xa6d7
movl %ebp, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x7a3f
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: delete_post
static int
delete_post(session_t *sp, int id)
{
	int	   status, ret;
	char	   *url;
	ssl_conn_t *cp;
	
	errno = 0;
	if ((url = strduprintf("/posts/%d", id)) == NULL)
		return (-1);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL) {
		free(url); return (-1);
	}
	status = http_delete(cp, url, sp->cookie, USER_AGENT);
	free(url);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == HTTP_FOUND)
		ret = 0;
	else if (status == -1)
		ret = -1;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %esi, %ebx
movq %rdi, %r14
callq 0x2060
movl $0x0, (%rax)
leaq 0x5782(%rip), %rdi      # 0xa5e8
movl %ebx, %esi
xorl %eax, %eax
callq 0x99a1
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x4f05
movq %rax, %r15
movq (%r14), %rdi
movzwl 0x10(%r14), %esi
callq 0x7828
testq %rax, %rax
je 0x4eda
movq %rax, %rbx
movq 0x8(%r14), %rdx
leaq 0x5560(%rip), %rcx      # 0xa400
movq %rax, %rdi
movq %r15, %rsi
callq 0x84de
movl %eax, %ebp
movq %r15, %rdi
callq 0x23c0
cmpl $-0x1, %ebp
je 0x4ef8
cmpl $0x12e, %ebp            # imm = 0x12E
je 0x4ee4
cmpl $0x191, %ebp            # imm = 0x191
jne 0x4ee8
leaq 0x5539(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x4ef8
movq %r15, %rdi
callq 0x23c0
jmp 0x4f05
xorl %ebp, %ebp
jmp 0x4efd
leaq 0x57e8(%rip), %rdi      # 0xa6d7
movl %ebp, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x7a3f
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: get_aspect_id
static int
get_aspect_id(session_t *sp, const char *name)
{
	aspect_t *ap;

	for (ap = sp->attr.aspects; ap != NULL; ap = ap->next) {
		if (strcmp(ap->name, name) == 0)
			return (ap->id);
	}
	return (-1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq 0x58(%rdi), %r15
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %r15, %r15
je 0x4f46
movq %rsi, %r14
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x2450
testl %eax, %eax
je 0x4f43
movq 0x10(%r15), %r15
testq %r15, %r15
jne 0x4f28
jmp 0x4f46
movl (%r15), %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: follow_tag
static int
follow_tag(session_t *sp, const char *tag)
{
	int	   status, ret;
	char	   *rq, *p;
	ssl_conn_t *cp;
	
	errno = 0;

	while (*tag == '\0' && *tag != '#')
		tag++;
	if ((p = urlencode(tag)) == NULL)
		return (-1);
	if ((rq = strduprintf("name=%s", p)) == NULL) {
		free(p); return (-1);
	}
	free(p);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL) {
		free(rq); return (-1);
	}
	status = http_post(cp, "/tag_followings", sp->cookie, NULL,
	    USER_AGENT, HTTP_POST_TYPE_FORM, rq);
	free(rq);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == HTTP_CREATED)
		ret = 0;
	else if (status == -1)
		ret = -1;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r15
callq 0x2060
movl $0x0, (%rax)
decq %rbx
cmpb $0x0, 0x1(%rbx)
leaq 0x1(%rbx), %rbx
je 0x58e7
movq %rbx, %rdi
callq 0x81cd
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x59c2
movq %rax, %r14
leaq 0x4d60(%rip), %rdi      # 0xa671
movq %rax, %rsi
xorl %eax, %eax
callq 0x99a1
movq %rax, %r12
movq %r14, %rdi
callq 0x23c0
testq %r12, %r12
je 0x59c2
movq (%r15), %rdi
movzwl 0x10(%r15), %esi
callq 0x7828
testq %rax, %rax
je 0x599b
movq %rax, %r14
movq 0x8(%r15), %rdx
movq %r12, (%rsp)
leaq 0x4d26(%rip), %rsi      # 0xa679
leaq 0x4aa6(%rip), %r8       # 0xa400
xorl %ebx, %ebx
movq %rax, %rdi
xorl %ecx, %ecx
movl $0x3, %r9d
callq 0x83d9
movl %eax, %ebp
movq %r12, %rdi
callq 0x23c0
cmpl $-0x1, %ebp
je 0x59b5
cmpl $0xc9, %ebp
je 0x59ba
cmpl $0x191, %ebp            # imm = 0x191
jne 0x59a5
leaq 0x4a78(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x59b5
movq %r12, %rdi
callq 0x23c0
jmp 0x59c2
leaq 0x4d2b(%rip), %rdi      # 0xa6d7
movl %ebp, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r14, %rdi
callq 0x7a3f
movl %ebx, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: add_contact
static int
add_contact(session_t *sp, int aspect, int id)
{
	int	   status, ret;
	char	   *rq;
	ssl_conn_t *cp;
	const char tmpl[] = "aspect_id=%d&person_id=%d&_method=POST";

	errno = 0;
	if ((rq = strduprintf(tmpl, aspect, id)) == NULL)
		return (-1);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL) {
		free(rq);
		return (-1);
	}
	status = http_post(cp, "/aspect_memberships.json", sp->cookie, NULL,
	    USER_AGENT, HTTP_POST_TYPE_FORM, rq);
	free(rq);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == HTTP_OK)
		ret = 0;
	else if (status == -1)
		ret = -1;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x40, %rsp
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r15
movaps 0x5665(%rip), %xmm0     # 0xb050
leaq 0x10(%rsp), %r14
movaps %xmm0, 0x10(%r14)
movaps 0x5644(%rip), %xmm0     # 0xb040
movaps %xmm0, (%r14)
movabsq $0x54534f503d646f, %rax # imm = 0x54534F503D646F
movq %rax, 0x1f(%r14)
callq 0x2060
movl $0x0, (%rax)
movq %r14, %rdi
movl %ebp, %esi
movl %ebx, %edx
xorl %eax, %eax
callq 0x99a1
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x5ace
movq %rax, %r12
movq (%r15), %rdi
movzwl 0x10(%r15), %esi
callq 0x7828
testq %rax, %rax
je 0x5aa6
movq %rax, %rbx
movq 0x8(%r15), %rdx
movq %r12, (%rsp)
leaq 0x4c2c(%rip), %rsi      # 0xa689
leaq 0x499c(%rip), %r8       # 0xa400
xorl %r14d, %r14d
movq %rax, %rdi
xorl %ecx, %ecx
movl $0x3, %r9d
callq 0x83d9
movl %eax, %ebp
movq %r12, %rdi
callq 0x23c0
cmpl $-0x1, %ebp
je 0x5ac0
cmpl $0xc8, %ebp
je 0x5ac6
cmpl $0x191, %ebp            # imm = 0x191
jne 0x5ab0
leaq 0x496d(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x5ac0
movq %r12, %rdi
callq 0x23c0
jmp 0x5ace
leaq 0x4c20(%rip), %rdi      # 0xa6d7
movl %ebp, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x7a3f
movl %r14d, %eax
addq $0x40, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: add_aspect
static int
add_aspect(session_t *sp, const char *name, bool visible)
{
	int	   status, ret;
	char	   *rq;
	ssl_conn_t *cp;
	const char tmpl[] = "aspect%%5bname%%5d=%s&aspect%%5b" \
			    "contacts_visible%%5d=%d";

	errno = 0;
	if ((rq = strduprintf(tmpl, name, visible ? 1 : 0)) == NULL)
		return (-1);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL) {
		free(rq); return (-1);
	}
	status = http_post(cp, "/aspects", sp->cookie, NULL,
	    USER_AGENT, HTTP_POST_TYPE_FORM, rq);
	free(rq);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == HTTP_FOUND)
		ret = 0;
	else if (status == -1)
		ret = -1;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x50, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r15
movaps 0x5527(%rip), %xmm0     # 0xb020
leaq 0x10(%rsp), %r12
movaps %xmm0, 0x20(%r12)
movaps 0x5505(%rip), %xmm0     # 0xb010
movaps %xmm0, 0x10(%r12)
movaps 0x54e8(%rip), %xmm0     # 0xb000
movaps %xmm0, (%r12)
movabsq $0x64253d64352525, %rax # imm = 0x64253D64352525
movq %rax, 0x30(%r12)
callq 0x2060
movl $0x0, (%rax)
xorl %edx, %edx
testl %ebx, %ebx
setne %dl
movq %r12, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x99a1
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x5bf2
movq %rax, %r12
movq (%r15), %rdi
movzwl 0x10(%r15), %esi
callq 0x7828
testq %rax, %rax
je 0x5bca
movq %rax, %rbx
movq 0x8(%r15), %rdx
movq %r12, (%rsp)
leaq 0x4ae7(%rip), %rsi      # 0xa668
leaq 0x4878(%rip), %r8       # 0xa400
xorl %r14d, %r14d
movq %rax, %rdi
xorl %ecx, %ecx
movl $0x3, %r9d
callq 0x83d9
movl %eax, %ebp
movq %r12, %rdi
callq 0x23c0
cmpl $-0x1, %ebp
je 0x5be4
cmpl $0x12e, %ebp            # imm = 0x12E
je 0x5bea
cmpl $0x191, %ebp            # imm = 0x191
jne 0x5bd4
leaq 0x4849(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x5be4
movq %r12, %rdi
callq 0x23c0
jmp 0x5bf2
leaq 0x4afc(%rip), %rdi      # 0xa6d7
movl %ebp, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %rbx, %rdi
callq 0x7a3f
movl %r14d, %eax
addq $0x50, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: post
static int
post(session_t *sp, const char *msg, const char *aspect)
{
	int	   aid, ret, status;
	char	   *rq, *p, idstr[24];
	ssl_conn_t *cp;
	const char tmpl[] = "{\"status_message\":{\"text\":\"%s\", "	  \
			     "\"provider_display_name\":\"cliaspora\"},"  \
			     "\"aspect_ids\":\"%s\"}\n\n";

	errno = 0;
	if (strcmp(aspect, "public") == 0)
		(void)strncpy(idstr, "public", sizeof(idstr));
	else if ((aid = get_aspect_id(sp, aspect)) == -1) {
		warnx("Unknown aspect '%s'", aspect); return (-1);
	} else
		(void)snprintf(idstr, sizeof(idstr), "%d", aid);
	if ((p = json_escape_str(msg)) == NULL)
		return (-1);
	if ((rq = strduprintf(tmpl, p, idstr)) == NULL) {
		free(p); return (-1);
	}
	free(p);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL)
		return (-1);
	status = http_post(cp, "/status_messages", sp->cookie, NULL,
	    USER_AGENT, HTTP_POST_TYPE_JSON, rq);
	free(rq);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == HTTP_FOUND)
		ret = 0;
	else if (status == -1)
		ret = -1;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x98, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x5220(%rip), %rsi      # 0xae40
leaq 0x30(%rsp), %rax
movl $0xb, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movw $0xa, 0x58(%rax)
callq 0x2060
movl $0x0, (%rax)
leaq 0x45c7(%rip), %rsi      # 0xa20f
movq %r15, %rdi
callq 0x2450
testl %eax, %eax
je 0x5c84
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4f12
cmpl $-0x1, %eax
je 0x5d4b
leaq 0x5b14(%rip), %rdx      # 0xb783
leaq 0x10(%rsp), %rdi
movl $0x18, %esi
movl %eax, %ecx
xorl %eax, %eax
callq 0x2530
jmp 0x5c99
movups 0x57a9(%rip), %xmm0     # 0xb434
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq %r14, %rdi
callq 0x9051
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x5d82
movq %rax, %r15
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movq %rax, %rsi
xorl %eax, %eax
callq 0x99a1
movq %rax, %r12
movq %r15, %rdi
callq 0x23c0
testq %r12, %r12
je 0x5d82
movq (%rbx), %rdi
movzwl 0x10(%rbx), %esi
callq 0x7828
testq %rax, %rax
je 0x5d82
movq %rax, %r15
movq 0x8(%rbx), %rdx
movq %r12, (%rsp)
leaq 0x4804(%rip), %rsi      # 0xa506
leaq 0x46f7(%rip), %r8       # 0xa400
xorl %r14d, %r14d
movq %rax, %rdi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x83d9
movl %eax, %ebx
movq %r12, %rdi
callq 0x23c0
cmpl $-0x1, %ebx
je 0x5d74
cmpl $0x12e, %ebx            # imm = 0x12E
je 0x5d7a
cmpl $0x191, %ebx            # imm = 0x191
jne 0x5d64
leaq 0x46c8(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x5d74
leaq 0x44c4(%rip), %rdi      # 0xa216
movq %r15, %rsi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x5d82
leaq 0x496c(%rip), %rdi      # 0xa6d7
movl %ebx, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movq %r15, %rdi
callq 0x7a3f
movl %r14d, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: comment
static int
comment(session_t *sp, const char *msg, int id)
{
	int	   ret, status;
	char	   *rq, *url, *p;
	ssl_conn_t *cp;
	const char tmpl[] = "{\"text\":\"%s\"}";

	errno = 0;
	if ((url = strduprintf("/posts/%d/comments", id)) == NULL)
		return (-1);
	if ((p = json_escape_str(msg)) == NULL) {
		free(url); return (-1);
	}
	if ((rq = strduprintf(tmpl, p)) == NULL) {
		free(p); free(url); return (-1);
	}
	free(p);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL)
		return (-1);
	status = http_post(cp, url, sp->cookie, NULL,
	    USER_AGENT, HTTP_POST_TYPE_JSON, rq);
	free(rq); free(url);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == -1)
		ret = -1;
	else if (status == HTTP_CREATED)
		ret = 0;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x20, %rsp
movl %edx, %ebx
movq %rsi, %r14
movq %rdi, %r12
movabsq $0x7d227325223a22, %rax # imm = 0x7D227325223A22
movq %rax, 0x16(%rsp)
movabsq $0x3a2274786574227b, %rax # imm = 0x3A2274786574227B
movq %rax, 0x10(%rsp)
callq 0x2060
movl $0x0, (%rax)
leaq 0x47e9(%rip), %rdi      # 0xa5c2
movl %ebx, %esi
xorl %eax, %eax
callq 0x99a1
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x5ec6
movq %rax, %r15
movq %r14, %rdi
callq 0x9051
testq %rax, %rax
je 0x5e9b
movq %rax, %r14
leaq 0x10(%rsp), %rdi
movq %rax, %rsi
xorl %eax, %eax
callq 0x99a1
movq %rax, %r13
movq %r14, %rdi
callq 0x23c0
testq %r13, %r13
je 0x5e9b
movq (%r12), %rdi
movzwl 0x10(%r12), %esi
callq 0x7828
testq %rax, %rax
je 0x5ec6
movq %rax, %r14
movq 0x8(%r12), %rdx
movq %r13, (%rsp)
leaq 0x45af(%rip), %r8       # 0xa400
movq %rax, %rdi
movq %r15, %rsi
xorl %ecx, %ecx
movl $0x1, %r9d
callq 0x83d9
movl %eax, %ebx
movq %r13, %rdi
callq 0x23c0
movq %r15, %rdi
callq 0x23c0
cmpl $-0x1, %ebx
je 0x5ebe
cmpl $0xc9, %ebx
je 0x5ea5
cmpl $0x191, %ebx            # imm = 0x191
jne 0x5ea9
leaq 0x4578(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x5eb9
movq %r15, %rdi
callq 0x23c0
jmp 0x5ec6
xorl %ebx, %ebx
jmp 0x5ebe
leaq 0x4827(%rip), %rdi      # 0xa6d7
movl %ebx, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r14, %rdi
callq 0x7a3f
movl %ebx, %eax
addq $0x20, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: get_pm_id
static int
get_pm_id(session_t *sp, const char *handle)
{
	int	   status, id;
	char	   *p, *q;
	contact_t  *ctp;
	ssl_conn_t *cp;

	errno = 0;
	
	for (ctp = sp->contacts; ctp != NULL; ctp = ctp->next) {
		if (strcmp(ctp->handle, handle) == 0)
			break;
	}
	if (ctp == NULL) {
		warnx("'%s' not found in your contacts", handle);
		return (-1);
	}
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL)
		return (-1);
	status = http_get(cp, ctp->url, sp->cookie, "*/*", USER_AGENT);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ssl_disconnect(cp); return (-1);
	} else if (status == -1) {
		ssl_disconnect(cp); return (-1);
	} else if (status != HTTP_OK) {
		warnx("Server replied with code %d", status);
		ssl_disconnect(cp); return (-1);
	}
	for (q = NULL; q == NULL && (p = ssl_readln(cp)) != NULL;)
		q = strstr(p, "/conversations/new?contact_id=");
	if (q == NULL) {
		warnx("Unexpected server reply"); ssl_disconnect(cp);
		return (-1);
	}
	if (strtok(q, "=&\" ") == NULL ||
	    (p = strtok(NULL, "=&\" ")) == NULL) {
		warnx("Unexpected server reply"); ssl_disconnect(cp);
		return (-1);
	}
	id = strtol(p, NULL, 10);
	ssl_disconnect(cp);
	
	return (id);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r15
callq 0x2060
movl $0x0, (%rax)
movq 0x20(%r15), %r12
testq %r12, %r12
je 0x5f10
movq 0x10(%r12), %rdi
movq %rbx, %rsi
callq 0x2450
testl %eax, %eax
je 0x5f2b
movq 0x28(%r12), %r12
jmp 0x5ef3
leaq 0x44c9(%rip), %rdi      # 0xa3e0
movq %rbx, %rsi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
jmp 0x600f
movq (%r15), %rdi
movzwl 0x10(%r15), %esi
callq 0x7828
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x600f
movq %rax, %r14
movq 0x18(%r12), %rsi
movq 0x8(%r15), %rdx
leaq 0x453e(%rip), %rcx      # 0xa497
leaq 0x44a0(%rip), %r8       # 0xa400
movq %rax, %rdi
callq 0x833e
cmpl $-0x1, %eax
je 0x6007
cmpl $0x191, %eax            # imm = 0x191
je 0x5fde
cmpl $0xc8, %eax
jne 0x5fe7
leaq 0x44b6(%rip), %r15      # 0xa43c
movq %r14, %rdi
callq 0x7e06
testq %rax, %rax
je 0x5ff9
movq %rax, %rdi
movq %r15, %rsi
callq 0x20d0
testq %rax, %rax
je 0x5f86
leaq 0x44c9(%rip), %rsi      # 0xa473
movq %rax, %rdi
callq 0x2500
testq %rax, %rax
je 0x5ff9
leaq 0x44b5(%rip), %rsi      # 0xa473
xorl %edi, %edi
callq 0x2500
testq %rax, %rax
je 0x5ff9
movq %rax, %rdi
xorl %esi, %esi
movl $0xa, %edx
callq 0x2460
movq %rax, %rbx
jmp 0x6007
leaq 0x4425(%rip), %rdi      # 0xa40a
jmp 0x6000
leaq 0x46e9(%rip), %rdi      # 0xa6d7
movl %eax, %esi
xorl %eax, %eax
callq 0x22d0
jmp 0x6007
leaq 0x445b(%rip), %rdi      # 0xa45b
xorl %eax, %eax
callq 0x22d0
movq %r14, %rdi
callq 0x7a3f
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/tomka[P]cliaspora/cliaspora.c
// Function: message
static int
message(session_t *sp, const char *subject, const char *msg, int id)
{
	int	   ret, status;
	char	   *rq, *m, *s;
	ssl_conn_t *cp;
	const char tmpl[] = "contact_ids=%d&conversation%%5bsubject" \
			    "%%5d=%s&conversation%%5btext%%5d=%s\n";

	errno = 0;
	if ((m = urlencode(msg)) == NULL)
		return (-1);
	if ((s = urlencode(subject)) == NULL) {
		free(m); return (-1);
	}
	if ((rq = strduprintf(tmpl, id, s, m)) == NULL) {
		free(m); free(s); return (-1);
	}
	free(m); free(s);
	if ((cp = ssl_connect(sp->host, sp->port)) == NULL)
		return (-1);
	status = http_post(cp, "/conversations", sp->cookie, NULL,
	    USER_AGENT, HTTP_POST_TYPE_FORM, rq);
	free(rq);
	if (status == HTTP_UNAUTHORIZED) {
		warnx("You're not logged in. Please create a new session");
		ret = -1;
	} else if (status == HTTP_FOUND)
		ret = 0;
	else if (status == -1)
		ret = -1;
	else {
		warnx("Server replied with code %d", status);
		ret = -1;
	}
	ssl_disconnect(cp);

	return (ret);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movl %ecx, %ebp
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x4f53(%rip), %rsi      # 0xaf90
leaq 0x10(%rsp), %rax
movl $0x9, %ecx
movq %rax, %rdi
rep  movsq (%rsi), %es:(%rdi)
movb $0x0, 0x4a(%rax)
movw $0xa73, 0x48(%rax)      # imm = 0xA73
callq 0x2060
movl $0x0, (%rax)
movq %rbx, %rdi
callq 0x81cd
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
testq %rax, %rax
je 0x6156
movq %rax, %r14
movq %r12, %rdi
callq 0x81cd
testq %rax, %rax
je 0x612f
movq %rax, %r13
leaq 0x10(%rsp), %rdi
movl %ebp, %esi
movq %rax, %rdx
movq %r14, %rcx
xorl %eax, %eax
callq 0x99a1
movq %rax, %r12
movq %r14, %rdi
callq 0x23c0
movq %r13, %rdi
callq 0x23c0
testq %r12, %r12
je 0x6156
movq (%r15), %rdi
movzwl 0x10(%r15), %esi
callq 0x7828
testq %rax, %rax
je 0x6156
movq %rax, %r14
movq 0x8(%r15), %rdx
movq %r12, (%rsp)
leaq 0x450b(%rip), %rsi      # 0xa5f2
leaq 0x4312(%rip), %r8       # 0xa400
xorl %ebx, %ebx
movq %rax, %rdi
xorl %ecx, %ecx
movl $0x3, %r9d
callq 0x83d9
movl %eax, %ebp
movq %r12, %rdi
callq 0x23c0
cmpl $-0x1, %ebp
je 0x6149
cmpl $0x12e, %ebp            # imm = 0x12E
je 0x614e
cmpl $0x191, %ebp            # imm = 0x191
jne 0x6139
leaq 0x42e4(%rip), %rdi      # 0xa40a
xorl %eax, %eax
callq 0x22d0
jmp 0x6149
movq %r14, %rdi
callq 0x23c0
jmp 0x6156
leaq 0x4597(%rip), %rdi      # 0xa6d7
movl %ebp, %esi
xorl %eax, %eax
callq 0x22d0
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
movq %r14, %rdi
callq 0x7a3f
movl %ebx, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq