LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_reset
void dns_res_reset(struct dns_resolver *R) {
	unsigned i;

	dns_so_reset(&R->so);
	dns_p_setptr(&R->nodata, NULL);

	for (i = 0; i < lengthof(R->stack); i++)
		dns_res_frame_destroy(R, &R->stack[i]);

	memset(&R->qname, '\0', sizeof *R - offsetof(struct dns_resolver, qname));

	for (i = 0; i < lengthof(R->stack); i++)
		dns_res_frame_init(R, &R->stack[i]);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movq 0x2e8(%rdi), %rdi
callq 0xff30
leaq 0x1b0(%rbx), %rdi
movl $0x150, %edx            # imm = 0x150
xorl %esi, %esi
callq 0xf750
movq 0x4a8(%rbx), %rdi
callq 0xff30
movq $0x0, 0x4a8(%rbx)
movl $0x4b8, %r14d           # imm = 0x4B8
leaq (%rbx,%r14), %rdi
callq 0x2f265
addq $0x110, %r14            # imm = 0x110
cmpq $0xd38, %r14            # imm = 0xD38
jne 0x2f1df
leaq 0x328(%rbx), %rdi
movl $0xa10, %edx            # imm = 0xA10
xorl %esi, %esi
callq 0xf750
movq 0x300(%rbx), %r14
movl $0x4c4, %r15d           # imm = 0x4C4
leaq (%rbx,%r15), %rdi
addq $-0xc, %rdi
movl $0x110, %edx            # imm = 0x110
xorl %esi, %esi
callq 0xf750
testq %r14, %r14
je 0x2f24f
cmpb $0x0, 0x5c1(%r14)
jne 0x2f240
orb $0x1, (%rbx,%r15)
cmpb $0x1, 0x5b0(%r14)
jne 0x2f24f
orb $0x2, (%rbx,%r15)
addq $0x110, %r15            # imm = 0x110
cmpq $0xd44, %r15            # imm = 0xD44
jne 0x2f218
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_frame_destroy
static void dns_res_frame_destroy(struct dns_resolver *R, struct dns_res_frame *frame) {
	(void)R;

	dns_p_setptr(&frame->query, NULL);
	dns_p_setptr(&frame->answer, NULL);
	dns_p_setptr(&frame->hints, NULL);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x18(%rdi), %rdi
callq 0xff30
xorl %r14d, %r14d
movq %r14, 0x18(%rbx)
movq 0x20(%rbx), %rdi
callq 0xff30
movq %r14, 0x20(%rbx)
movq 0x28(%rbx), %rdi
callq 0xff30
movq %r14, 0x28(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_events2
static int dns_res_events2(struct dns_resolver *R, enum dns_events type) {
	int events;

	switch (R->stack[R->sp].state) {
	case DNS_R_CHECK:
		events = R->cache->events(R->cache);

		return (type == DNS_LIBEVENT)? DNS_POLL2EV(events) : events;
	default:
		return dns_so_events2(&R->so, type);
	}
}

// Assembly:
pushq %rbx
movl %esi, %ebx
movl 0x4b0(%rdi), %eax
imulq $0x110, %rax, %rax      # imm = 0x110
cmpl $0x6, 0x4b8(%rdi,%rax)
jne 0x2f33f
movq 0x318(%rdi), %rdi
callq *0x40(%rdi)
movswl %ax, %ecx
movl %ecx, %eax
andl $0x1, %eax
movl %ecx, %edx
andl $0x4, %edx
cmpl $0x1, %ebx
leal (%rdx,%rax,2), %eax
cmovnel %ecx, %eax
popq %rbx
retq
movl %ebx, %esi
popq %rbx
jmp 0x2ed22
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_pollfd
int dns_res_pollfd(struct dns_resolver *R) {
	switch (R->stack[R->sp].state) {
	case DNS_R_CHECK:
		return R->cache->pollfd(R->cache);
	default:
		return dns_so_pollfd(&R->so);
	}
}

// Assembly:
movl 0x4b0(%rdi), %eax
imulq $0x110, %rax, %rax      # imm = 0x110
cmpl $0x6, 0x4b8(%rdi,%rax)
jne 0x2f368
movq 0x318(%rdi), %rdi
jmpq *0x38(%rdi)
movl 0x1b0(%rdi), %eax
leal -0x7(%rax), %ecx
cmpl $0x3, %ecx
jb 0x2f382
addl $-0x2, %eax
cmpl $0x2, %eax
ja 0x2f386
movl 0x18(%rdi), %eax
retq
movl 0x1c(%rdi), %eax
retq
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_timeout
time_t dns_res_timeout(struct dns_resolver *R) {
	time_t elapsed;

	switch (R->stack[R->sp].state) {
#if 0
	case DNS_R_QUERY_AAAA:
#endif
	case DNS_R_QUERY_A:
		elapsed = dns_so_elapsed(&R->so);

		if (elapsed <= dns_resconf_timeout(R->resconf))
			return R->resconf->options.timeout - elapsed;

		break;
	default:
		break;
	} /* switch() */

	/*
	 * NOTE: We're not in a pollable state, or the user code hasn't
	 * called dns_res_check properly. The calling code is probably
	 * broken. Put them into a slow-burn pattern.
	 */
	return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movl 0x4b0(%rdi), %eax
imulq $0x110, %rax, %rax      # imm = 0x110
movl $0x1, %ebx
cmpl $0x10, 0x4b8(%rdi,%rax)
jne 0x2f3dd
movq %rdi, %r14
addq $0x2d8, %rdi            # imm = 0x2D8
callq 0x2ec4f
movq 0x300(%r14), %rcx
movl 0x5b8(%rcx), %ecx
movl $0x7fffffff, %edx       # imm = 0x7FFFFFFF
cmpl %edx, %ecx
cmovbl %ecx, %edx
cmpq %rdx, %rax
jg 0x2f3dd
subq %rax, %rcx
movq %rcx, %rbx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_submit2
int dns_res_submit2(struct dns_resolver *R, const char *qname, size_t qlen, enum dns_type qtype, enum dns_class qclass) {
	dns_res_reset(R);

	/* Don't anchor; that can conflict with searchlist generation. */
	dns_d_init(R->qname, sizeof R->qname, qname, (R->qlen = qlen), 0);

	R->qtype	= qtype;
	R->qclass	= qclass;

	dns_begin(&R->elapsed);

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movl %ecx, %r14d
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
callq 0xfb10
leaq 0x328(%rbx), %rdi
movq %r15, 0x428(%rbx)
movl $0x100, %edx            # imm = 0x100
cmpq %rdx, %r15
cmovbq %r15, %rdx
movq %r12, %rsi
callq 0x105f0
movl $0xff, %eax
cmpq %rax, %r15
cmovbq %r15, %rax
movb $0x0, 0x328(%rbx,%rax)
movl %r14d, 0x430(%rbx)
movl %ebp, 0x434(%rbx)
xorl %edi, %edi
callq 0xfc20
movq %rax, 0x438(%rbx)
movq $0x0, 0x440(%rbx)
xorl %eax, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_fetch
struct dns_packet *dns_res_fetch(struct dns_resolver *R, int *error) {
	struct dns_packet *P = NULL;

	if (R->stack[0].state != DNS_R_DONE)
		return *error = DNS_EUNKNOWN, (void *)0;

	if (!dns_p_movptr(&P, &R->stack[0].answer))
		return *error = DNS_EFETCHED, (void *)0;

	return P;
}

// Assembly:
movl $0x9b918cc4, %eax       # imm = 0x9B918CC4
cmpl $0x16, 0x4b8(%rdi)
jne 0x319cb
movq 0x4d8(%rdi), %rax
movq $0x0, 0x4d8(%rdi)
testq %rax, %rax
je 0x319c6
retq
movl $0x9b918cc8, %eax       # imm = 0x9B918CC8
movl %eax, (%rsi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_query
struct dns_packet *dns_res_query(struct dns_resolver *res, const char *qname, enum dns_type qtype, enum dns_class qclass, int timeout, int *error_) {
	int error;

	if ((error = dns_res_submit(res, qname, qtype, qclass)))
		goto error;

	while ((error = dns_res_check(res))) {
		if (dns_res_elapsed(res) > timeout)
			error = DNS_ETIMEDOUT;

		if (error != DNS_EAGAIN)
			goto error;

		if ((error = dns_res_poll(res, 1)))
			goto error;
	}

	return dns_res_fetch(res, error_);
error:
	*error_ = error;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r9, %rbx
movl %r8d, %r12d
movq %rdi, %r14
callq 0xf340
movq %r14, %rdi
callq 0xf510
testl %eax, %eax
je 0x31a36
movl %eax, %ebp
leaq 0x438(%r14), %r15
movslq %r12d, %r12
movl $0x6e, %r13d
movq %r15, %rdi
callq 0x2ec4f
cmpq %r12, %rax
cmovgl %r13d, %ebp
cmpl $0xb, %ebp
jne 0x31a61
movq %r14, %rdi
movl $0x1, %esi
callq 0xfdf0
movq %r14, %rdi
callq 0xf510
movl %eax, %ebp
testl %eax, %eax
jne 0x31a07
movl $0x9b918cc4, %ebp       # imm = 0x9B918CC4
cmpl $0x16, 0x4b8(%r14)
jne 0x31a61
movq 0x4d8(%r14), %rax
movq $0x0, 0x4d8(%r14)
testq %rax, %rax
jne 0x31a65
movl $0x9b918cc8, %ebp       # imm = 0x9B918CC8
movl %ebp, (%rbx)
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_ai_close
void dns_ai_close(struct dns_addrinfo *ai) {
	if (!ai)
		return;

	dns_res_close(ai->res);

	if (ai->answer != ai->glue)
		dns_p_free(ai->glue);

	dns_p_free(ai->answer);
	free(ai);
}

// Assembly:
testq %rdi, %rdi
je 0x31cdc
pushq %rbx
movq %rdi, %rbx
movq 0x30(%rdi), %rdi
callq 0xfde0
movq 0x160(%rbx), %rdi
cmpq %rdi, 0x158(%rbx)
je 0x31cc7
callq 0xff30
movq 0x158(%rbx), %rdi
callq 0xff30
movq %rbx, %rdi
popq %rbx
jmp 0xff30
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_fetch_and_study
static struct dns_packet *dns_res_fetch_and_study(struct dns_resolver *R, int *_error) {
	struct dns_packet *P = NULL;
	int error;

	if (!(P = dns_res_fetch(R, &error)))
		goto error;
	if ((error = dns_p_study(P)))
		goto error;

	return P;
error:
	*_error = error;

	dns_p_free(P);

	return NULL;
}

// Assembly:
pushq %rbx
cmpl $0x16, 0x4b8(%rdi)
jne 0x32764
movq 0x4d8(%rdi), %rbx
movq $0x0, 0x4d8(%rdi)
movl $0x9b918cc8, %eax       # imm = 0x9B918CC8
jmp 0x3276b
movl $0x9b918cc4, %eax       # imm = 0x9B918CC4
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x3277a
movq %rbx, %rdi
callq 0xf7a0
jmp 0x32786
movl %eax, (%rsi)
movq %rbx, %rdi
callq 0xff30
xorl %ebx, %ebx
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_strsection
const char *(dns_strsection)(enum dns_section section, void *_dst, size_t lim) {
	struct dns_buf dst = DNS_B_INTO(_dst, lim);
	unsigned i;

	for (i = 0; i < lengthof(dns_sections); i++) {
		if (dns_sections[i].type & section) {
			dns_b_puts(&dst, dns_sections[i].name);
			section &= ~dns_sections[i].type;
			if (section)
				dns_b_putc(&dst, '|');
		}
	}

	if (section || dst.p == dst.base)
		dns_b_fmtju(&dst, (0xffff & section), 0);

	return dns_b_tostring(&dst);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rdx, %rbp
movq %rsi, %r14
addq %rsi, %rbp
xorl %ebx, %ebx
leaq 0x550d(%rip), %rax      # 0x385b0
movq %rsi, 0x10(%rsp)
movl 0x10(%rbx,%rax), %r15d
testl %edi, %r15d
je 0x33103
leaq (%rax,%rbx), %r12
movl %edi, 0xc(%rsp)
movq %r12, %rdi
callq 0xf560
movq %rbp, %r13
subq %r14, %r13
cmpq %rax, %r13
cmovaeq %rax, %r13
movq %r14, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0xfa60
movl 0xc(%rsp), %edi
addq %r13, %r14
notl %r15d
andl %r15d, %edi
je 0x330fa
cmpq %rbp, %r14
jae 0x330fc
movb $0x7c, (%r14)
incq %r14
jmp 0x330fc
xorl %edi, %edi
leaq 0x54ad(%rip), %rax      # 0x385b0
addq $0x14, %rbx
cmpq $0xa0, %rbx
jne 0x330a8
testl %edi, %edi
movq 0x10(%rsp), %r11
jne 0x33122
cmpq %r11, %r14
jne 0x331c9
movzwl %di, %ecx
xorl %r8d, %r8d
movabsq $-0x3333333333333333, %rdi # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rsi
incq %r8
movq %rsi, %rax
mulq %rdi
shrq $0x3, %rdx
cmpq $0x9, %rsi
movq %rdx, %rsi
ja 0x33135
movq %rbp, %rax
subq %r14, %rax
xorl %r9d, %r9d
subq %rax, %r8
cmovaeq %r8, %r9
movl $0x1, %r10d
movq %r14, %r8
movq %rcx, %rsi
movq %rcx, %rax
mulq %rdi
movq %rdx, %rcx
shrq $0x3, %rcx
cmpq %r10, %r9
jae 0x33195
cmpq %rbp, %r8
jae 0x33195
leaq (%rcx,%rcx), %rax
leaq (%rax,%rax,4), %rax
movq %rsi, %rdx
subq %rax, %rdx
orb $0x30, %dl
movb %dl, (%r8)
incq %r8
incq %r10
cmpq $0x9, %rsi
ja 0x33164
cmpq %r8, %r14
jae 0x331c6
incq %r14
movq %r8, %rax
movb -0x1(%rax), %cl
movb -0x1(%r14), %dl
movb %dl, -0x1(%rax)
decq %rax
movb %cl, -0x1(%r14)
leaq 0x1(%r14), %rcx
cmpq %rax, %r14
movq %rcx, %r14
jb 0x331a9
movq %r8, %r14
cmpq %rbp, %r14
jb 0x331dd
cmpq %r11, %r14
jbe 0x331e3
cmpb $0x0, -0x1(%r14)
je 0x331ea
decq %r14
movb $0x0, (%r14)
jmp 0x331ea
leaq 0x5e61(%rip), %r11      # 0x3904b
movq %r11, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_isection
enum dns_section dns_isection(const char *src) {
	enum dns_section section = 0;
	char sbuf[128];
	char *name, *next;
	unsigned i;

	dns_strlcpy(sbuf, src, sizeof sbuf);
	next = sbuf;

	while ((name = dns_strsep(&next, "|+, \t"))) {
		for (i = 0; i < lengthof(dns_sections); i++) {
			if (!strcasecmp(dns_sections[i].name, name)) {
				section |= dns_sections[i].type;
				break;
			}
		}
	}

	return section;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x98, %rsp
xorl %eax, %eax
movb (%rdi,%rax), %cl
movb %cl, 0x10(%rsp,%rax)
testb %cl, %cl
je 0x33239
incq %rax
cmpq $0x80, %rax
jne 0x3320f
movb $0x0, 0x8f(%rsp)
addq %rax, %rdi
cmpb $0x0, (%rdi)
leaq 0x1(%rdi), %rdi
jne 0x33230
leaq 0x10(%rsp), %rax
leaq 0x8(%rsp), %rdi
movq %rax, (%rdi)
leaq 0x5f85(%rip), %rsi      # 0x391d2
callq 0xf810
testq %rax, %rax
je 0x332ac
movq %rax, %r12
xorl %ebx, %ebx
leaq 0x534d(%rip), %r13      # 0x385b0
leaq 0x5f68(%rip), %r14      # 0x391d2
leaq 0x8(%rsp), %r15
xorl %ebp, %ebp
movq %r13, %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0xfe40
testl %eax, %eax
je 0x33292
addq $0x14, %rbp
cmpq $0xa0, %rbp
jne 0x33271
jmp 0x33297
orl 0x10(%rbp,%r13), %ebx
movq %r15, %rdi
movq %r14, %rsi
callq 0xf810
movq %rax, %r12
testq %rax, %rax
jne 0x3326f
jmp 0x332ae
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x98, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_iclass
enum dns_class dns_iclass(const char *name) {
	unsigned i, class;

	for (i = 0; i < lengthof(dns_classes); i++) {
		if (!strcasecmp(dns_classes[i].name, name))
			return dns_classes[i].type;
	}

	class = 0;
	while (dns_isdigit(*name)) {
		class *= 10;
		class += *name++ - '0';
	}

	return DNS_PP_MIN(class, 0xffff);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0x5383(%rip), %rdi      # 0x38650
movq %rbx, %rsi
callq 0xfe40
testl %eax, %eax
je 0x33317
callq 0xfe30
movq (%rax), %rax
movzbl (%rbx), %ecx
xorl %edx, %edx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x3330b
incq %rbx
xorl %edx, %edx
leal (%rdx,%rdx,4), %edx
movsbl %cl, %ecx
leal (%rcx,%rdx,2), %edx
addl $-0x30, %edx
movzbl (%rbx), %ecx
incq %rbx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x332f2
movl $0xffff, %eax           # imm = 0xFFFF
cmpl %eax, %edx
cmovbl %edx, %eax
jmp 0x3331c
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_itype
enum dns_type dns_itype(const char *name) {
	unsigned i, type;

	for (i = 0; i < lengthof(dns_rrtypes); i++) {
		if (!strcasecmp(dns_rrtypes[i].name, name))
			return dns_rrtypes[i].type;
	}

	type = 0;
	while (dns_isdigit(*name)) {
		type *= 10;
		type += *name++ - '0';
	}

	return DNS_PP_MIN(type, 0xffff);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
movl $0x8, %r14d
leaq 0x1344d(%rip), %r15     # 0x46780
movq (%r14,%r15), %rdi
movq %rbx, %rsi
callq 0xfe40
testl %eax, %eax
je 0x3338e
addq $0x40, %r14
cmpq $0x348, %r14            # imm = 0x348
jne 0x33333
callq 0xfe30
movq (%rax), %rax
movzbl (%rbx), %ecx
xorl %edx, %edx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x33382
incq %rbx
xorl %edx, %edx
leal (%rdx,%rdx,4), %edx
movsbl %cl, %ecx
leal (%rcx,%rdx,2), %edx
addl $-0x30, %edx
movzbl (%rbx), %ecx
incq %rbx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x33369
movl $0xffff, %eax           # imm = 0xFFFF
cmpl %eax, %edx
cmovbl %edx, %eax
jmp 0x33393
movl -0x8(%r14,%r15), %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_stropcode
const char *dns_stropcode(enum dns_opcode opcode) {
	opcode = (unsigned)opcode % lengthof(dns_opcodes);

	if ('\0' == dns_opcodes[opcode][0])
		return dns__strcode(opcode, dns_opcodes[opcode], sizeof dns_opcodes[opcode]);

	return dns_opcodes[opcode];
}

// Assembly:
pushq %rbx
andl $0xf, %edi
movl %edi, %eax
shll $0x4, %eax
leaq 0x14f37(%rip), %rcx     # 0x482e0
leaq (%rcx,%rax), %rbx
cmpb $0x0, (%rax,%rcx)
jne 0x333bb
movq %rbx, %rsi
callq 0x333c0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns__strcode
static const char *dns__strcode(int code, volatile char *dst, size_t lim) {
	char _tmp[48] = "";
	struct dns_buf tmp;
	size_t p;

	assert(lim > 0);
	dns_b_fmtju(dns_b_into(&tmp, _tmp, DNS_PP_MIN(sizeof _tmp, lim - 1)), code, 0);

	/* copy downwards so first byte is copied last (see below) */
	p = (size_t)(tmp.p - tmp.base);
	dst[p] = '\0';
	while (p--)
		dst[p] = _tmp[p];

	return (const char *)dst;
}

// Assembly:
pushq %rbx
xorps %xmm0, %xmm0
movaps %xmm0, -0x10(%rsp)
movaps %xmm0, -0x20(%rsp)
movaps %xmm0, -0x30(%rsp)
movl %edi, %ecx
xorl %r8d, %r8d
movabsq $-0x3333333333333333, %r9 # imm = 0xCCCCCCCCCCCCCCCD
movq %rcx, %rdi
incq %r8
movq %rdi, %rax
mulq %r9
shrq $0x3, %rdx
cmpq $0x9, %rdi
movq %rdx, %rdi
ja 0x333e5
xorl %edi, %edi
subq $0xf, %r8
cmovbq %rdi, %r8
movl $0x1, %r10d
cmpq %r10, %r8
setb %r11b
cmpq $0xf, %rdi
setl %bl
movq %rcx, %rax
mulq %r9
andb %r11b, %bl
shrq $0x3, %rdx
cmpb $0x1, %bl
jne 0x33445
leaq (%rdx,%rdx), %rax
leaq (%rax,%rax,4), %rax
movq %rcx, %r11
subq %rax, %r11
orb $0x30, %r11b
movb %r11b, -0x30(%rsp,%rdi)
incq %rdi
incq %r10
cmpq $0x9, %rcx
movq %rdx, %rcx
ja 0x3340b
testq %rdi, %rdi
jle 0x33480
leaq (%rsp,%rdi), %rcx
addq $-0x30, %rcx
leaq -0x2f(%rsp), %rax
movb -0x1(%rcx), %dl
movb -0x1(%rax), %r8b
movb %r8b, -0x1(%rcx)
decq %rcx
movb %dl, -0x1(%rax)
leaq 0x1(%rax), %rdx
cmpq %rcx, %rax
movq %rdx, %rax
jb 0x33463
movb $0x0, (%rsi,%rdi)
testq %rdi, %rdi
je 0x3349c
movq %rdi, %rax
movb -0x31(%rsp,%rdi), %cl
movb %cl, -0x1(%rsi,%rdi)
decq %rax
movq %rax, %rdi
jne 0x3348c
movq %rsi, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_iopcode
enum dns_opcode dns_iopcode(const char *name) {
	unsigned opcode;

	for (opcode = 0; opcode < lengthof(dns_opcodes); opcode++) {
		if (!strcasecmp(name, dns_opcodes[opcode]))
			return opcode;
	}

	opcode = 0;
	while (dns_isdigit(*name)) {
		opcode *= 10;
		opcode += *name++ - '0';
	}

	return DNS_PP_MIN(opcode, 0x0f);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x14e30(%rip), %r15     # 0x482e0
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xfe40
testl %eax, %eax
je 0x3350e
incq %r14
addq $0x10, %r15
cmpq $0x10, %r14
jne 0x334b3
callq 0xfe30
movq (%rax), %rax
movzbl (%rbx), %ecx
xorl %edx, %edx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x33501
incq %rbx
xorl %edx, %edx
leal (%rdx,%rdx,4), %edx
movsbl %cl, %ecx
leal (%rcx,%rdx,2), %edx
addl $-0x30, %edx
movzbl (%rbx), %ecx
incq %rbx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x334e8
cmpl $0xf, %edx
movl $0xf, %eax
cmovbl %edx, %eax
jmp 0x33511
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_strrcode
const char *dns_strrcode(enum dns_rcode rcode) {
	rcode = (unsigned)rcode % lengthof(dns_rcodes);

	if ('\0' == dns_rcodes[rcode][0])
		return dns__strcode(rcode, dns_rcodes[rcode], sizeof dns_rcodes[rcode]);

	return dns_rcodes[rcode];
}

// Assembly:
pushq %rbx
andl $0x1f, %edi
movl %edi, %eax
shll $0x4, %eax
leaq 0x14eb9(%rip), %rcx     # 0x483e0
leaq (%rcx,%rax), %rbx
cmpb $0x0, (%rax,%rcx)
jne 0x33539
movq %rbx, %rsi
callq 0x333c0
movq %rbx, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_ircode
enum dns_rcode dns_ircode(const char *name) {
	unsigned rcode;

	for (rcode = 0; rcode < lengthof(dns_rcodes); rcode++) {
		if (!strcasecmp(name, dns_rcodes[rcode]))
			return rcode;
	}

	rcode = 0;
	while (dns_isdigit(*name)) {
		rcode *= 10;
		rcode += *name++ - '0';
	}

	return DNS_PP_MIN(rcode, 0xfff);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %rbx
leaq 0x14e93(%rip), %r15     # 0x483e0
xorl %r14d, %r14d
movq %rbx, %rdi
movq %r15, %rsi
callq 0xfe40
testl %eax, %eax
je 0x335aa
incq %r14
addq $0x10, %r15
cmpq $0x20, %r14
jne 0x33550
callq 0xfe30
movq (%rax), %rax
movzbl (%rbx), %ecx
xorl %edx, %edx
testb $0x8, 0x1(%rax,%rcx,2)
je 0x3359e
incq %rbx
xorl %edx, %edx
leal (%rdx,%rdx,4), %edx
movsbl %cl, %ecx
leal (%rcx,%rdx,2), %edx
addl $-0x30, %edx
movzbl (%rbx), %ecx
incq %rbx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0x33585
movl $0xfff, %eax            # imm = 0xFFF
cmpl %eax, %edx
cmovbl %edx, %eax
jmp 0x335ad
movl %r14d, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_s_study
static int dns_s_study(struct dns_s_memo *m, enum dns_section section, unsigned short base, struct dns_packet *P) {
	unsigned short count, rp;

	count = dns_p_count(P, section);

	for (rp = base; count && rp < P->end; count--)
		rp = dns_rr_skip(rp, P);

	m->base = base;
	m->end  = rp;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rcx, %r15
movl %edx, %ebx
movq %rdi, %r14
movq %rcx, %rdi
callq 0x10790
movl %eax, %ebp
movl %ebx, %eax
testw %bp, %bp
je 0x335ef
movq 0x50(%r15), %r12
movl %ebx, %eax
movzwl %ax, %edi
cmpq %rdi, %r12
jbe 0x335ef
movq %r15, %rsi
callq 0xf2e0
decw %bp
jne 0x335da
movw %bx, (%r14)
movw %ax, 0x2(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_rr_i_match
static _Bool dns_rr_i_match(struct dns_rr *rr, struct dns_rr_i *i, struct dns_packet *P) {
	if (i->section && !(rr->section & i->section))
		return 0;

	if (i->type && rr->type != i->type && i->type != DNS_T_ALL)
		return 0;

	if (i->class && rr->class != i->class && i->class != DNS_C_ANY)
		return 0;

	if (i->name) {
		char dn[DNS_D_MAXNAME + 1];
		size_t len;
		int error;

		if (!(len = dns_d_expand(dn, sizeof dn, rr->dn.p, P, &error))
		||  len >= sizeof dn)
			return 0;

		if (0 != strcasecmp(dn, i->name))
			return 0;
	}

	if (i->data && i->type && rr->section > DNS_S_QD) {
		union dns_any rd;
		int error;

		if ((error = dns_any_parse(&rd, rr, P)))
			return 0;

		if (0 != dns_any_cmp(&rd, rr->type, i->data, i->type))
			return 0;
	}

	return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x420, %rsp            # imm = 0x420
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
movl (%rsi), %eax
testl %eax, %eax
je 0x33628
testl %eax, (%r14)
je 0x3371c
movl 0x10(%rbx), %ebp
testl %ebp, %ebp
je 0x33641
cmpl $0xff, %ebp
je 0x33641
cmpl %ebp, 0x8(%r14)
jne 0x3371c
movl 0x14(%rbx), %eax
testl %eax, %eax
je 0x33659
cmpl $0xff, %eax
je 0x33659
cmpl %eax, 0xc(%r14)
jne 0x3371c
movq 0x8(%rbx), %r12
testq %r12, %r12
je 0x336a1
movzwl 0x4(%r14), %edx
leaq 0x10(%rsp), %rdi
leaq 0xc(%rsp), %r8
movl $0x100, %esi            # imm = 0x100
movq %r15, %rcx
callq 0xfec0
addq $-0x100, %rax
cmpq $-0xff, %rax
jb 0x3371c
leaq 0x10(%rsp), %rdi
movq %r12, %rsi
callq 0xfe40
testl %eax, %eax
jne 0x3371c
testl %ebp, %ebp
je 0x33718
cmpq $0x0, 0x18(%rbx)
je 0x33718
cmpl $0x2, (%r14)
jb 0x33718
leaq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xfe70
testl %eax, %eax
jne 0x3371c
movl 0x8(%r14), %eax
cmpl 0x10(%rbx), %eax
jne 0x3371c
movq 0x18(%rbx), %rsi
xorl %ecx, %ecx
leaq 0x130a4(%rip), %rdx     # 0x46780
xorl %edi, %edi
cmpl %eax, (%rdi,%rdx)
jne 0x336eb
cmpq $0x0, 0x18(%rdi,%rdx)
jne 0x336fd
leaq 0x40(%rdi), %r8
cmpq $0x300, %rdi            # imm = 0x300
movq %r8, %rdi
jb 0x336de
jmp 0x33703
addq %rdi, %rdx
movq %rdx, %rcx
testq %rcx, %rcx
je 0x3371c
xorl %ebx, %ebx
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq *0x28(%rcx)
testl %eax, %eax
jne 0x3371e
movb $0x1, %bl
jmp 0x3371e
xorl %ebx, %ebx
movl %ebx, %eax
addq $0x420, %rsp            # imm = 0x420
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_anyconf_match
static _Bool dns_anyconf_match(const char *pat, int mc) {
	_Bool match;
	int pc;

	if (*pat == '^') {
		match = 0;
		++pat;
	} else {
		match = 1;
	}

	while ((pc = *(const unsigned char *)pat++)) {
		switch (pc) {
		case '%':
			if (!(pc = *(const unsigned char *)pat++))
				return !match;

			switch (pc) {
			case 'a':
				if (dns_isalpha(mc))
					return match;
				break;
			case 'd':
				if (dns_isdigit(mc))
					return match;
				break;
			case 'w':
				if (dns_isalnum(mc))
					return match;
				break;
			case 's':
				if (dns_isspace(mc))
					return match;
				break;
			default:
				if (mc == pc)
					return match;
				break;
			} /* switch() */

			break;
		default:
			if (mc == pc)
				return match;
			break;
		} /* switch() */
	} /* while() */

	return !match;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %esi, %ebp
movb (%rdi), %r14b
xorl %r15d, %r15d
cmpb $0x5e, %r14b
setne %bl
sete %r15b
addq %rdi, %r15
movzbl %bpl, %r12d
movzbl (%r15), %eax
cmpl $0x25, %eax
je 0x33768
testl %eax, %eax
je 0x337d5
incq %r15
cmpl %ebp, %eax
jne 0x33752
jmp 0x337dc
movzbl 0x1(%r15), %eax
addq $0x2, %r15
cmpl $0x72, %eax
jg 0x33792
cmpl $0x61, %eax
je 0x337ad
cmpl $0x64, %eax
jne 0x337d1
callq 0xfe30
movq (%rax), %rax
testb $0x8, 0x1(%rax,%r12,2)
je 0x33752
jmp 0x337dc
cmpl $0x73, %eax
je 0x337bf
cmpl $0x77, %eax
jne 0x33762
callq 0xfe30
movq (%rax), %rax
testb $0x8, (%rax,%r12,2)
je 0x33752
jmp 0x337dc
callq 0xfe30
movq (%rax), %rax
testb $0x4, 0x1(%rax,%r12,2)
je 0x33752
jmp 0x337dc
callq 0xfe30
movq (%rax), %rax
testb $0x20, 0x1(%rax,%r12,2)
je 0x33752
jmp 0x337dc
testl %eax, %eax
jne 0x33762
cmpb $0x5e, %r14b
sete %bl
movl %ebx, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_hints_i_cmp
static int dns_hints_i_cmp(unsigned a, unsigned b, struct dns_hints_i *i, struct dns_hints_soa *soa) {
	int cmp;

	if ((cmp = soa->addrs[a].priority - soa->addrs[b].priority))
		return cmp;

	return dns_k_shuffle16(a, i->state.seed) - dns_k_shuffle16(b, i->state.seed);
}

// Assembly:
movl %edi, %eax
movq %rax, %r8
shlq $0x7, %r8
leaq (%r8,%rax,8), %rax
movl 0x180(%rcx,%rax), %eax
movl %esi, %r8d
movq %r8, %r9
shlq $0x7, %r9
leaq (%r9,%r8,8), %r8
subl 0x180(%rcx,%r8), %eax
je 0x33814
retq
movl 0xc(%rdx), %ecx
movl %edi, %edx
shrl $0x8, %edx
movl $0x4, %eax
leaq 0x4e38(%rip), %r8       # 0x38660
movl %ecx, %r9d
movl %r9d, %r10d
xorb %dil, %r10b
movzbl %r10b, %r10d
movzbl %dl, %r11d
movl %edx, %edi
xorb (%r10,%r8), %dil
movb (%r11,%r8), %dl
xorb %dil, %dl
shrl $0x8, %r9d
decl %eax
jne 0x3382b
movzbl %dil, %eax
shll $0x8, %eax
movl %esi, %edi
shrl $0x8, %edi
movl $0x4, %r9d
movl %ecx, %r10d
xorb %sil, %r10b
movzbl %r10b, %r10d
movzbl %dil, %r11d
movl %edi, %esi
xorb (%r10,%r8), %sil
movb (%r11,%r8), %dil
xorb %sil, %dil
shrl $0x8, %ecx
decl %r9d
jne 0x33860
movzbl %dl, %ecx
orl %ecx, %eax
movzbl %sil, %ecx
movzbl %dil, %edx
shll $0x8, %ecx
orl %edx, %ecx
subl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_socketclose
static void dns_socketclose(int *fd, const struct dns_options *opts) {
	if (opts && opts->closefd.cb)
		opts->closefd.cb(fd, opts->closefd.arg);

	if (*fd != -1) {
#if _WIN32
		closesocket(*fd);
#else
		close(*fd);
#endif
		*fd	= -1;
	}
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
testq %rsi, %rsi
je 0x338b2
movq 0x8(%rsi), %rax
testq %rax, %rax
je 0x338b2
movq (%rsi), %rsi
movq %rbx, %rdi
callq *%rax
movl (%rbx), %edi
cmpl $-0x1, %edi
je 0x338c4
callq 0x10a10
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_q_make2
static dns_error_t
dns_q_make2(struct dns_packet **_Q, const char *qname, size_t qlen, enum dns_type qtype, enum dns_class qclass, int qflags)
{
	struct dns_packet *Q = NULL;
	int error;

	if (dns_p_movptr(&Q, _Q)) {
		dns_p_reset(Q);
	} else if (!(Q = dns_p_make(DNS_P_QBUFSIZ, &error))) {
		goto error;
	}

	if ((error = dns_p_push(Q, DNS_S_QD, qname, qlen, qtype, qclass, 0, 0)))
		goto error;

	dns_header(Q)->rd = !!(qflags & DNS_Q_RD);

	if (qflags & DNS_Q_EDNS0) {
		struct dns_opt opt = DNS_OPT_INIT(&opt);

		opt.version = 0; /* RFC 6891 version */
		opt.maxudp = 4096;

		if ((error = dns_p_push(Q, DNS_S_AR, ".", 1, DNS_T_OPT, dns_opt_class(&opt), dns_opt_ttl(&opt), &opt)))
			goto error;
	}

	*_Q = Q;

	return 0;
error:
	dns_p_free(Q);

	return error;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x128, %rsp            # imm = 0x128
movl %r9d, 0x4(%rsp)
movl %r8d, %r15d
movl %ecx, %r12d
movq %rdx, %r13
movq %rsi, %rbp
movq %rdi, %r14
movq (%rdi), %rbx
movq $0x0, (%rdi)
testq %rbx, %rbx
je 0x3390c
movq 0x48(%rbx), %rsi
addq $0x5c, %rsi
movq %rbx, %rdi
callq 0x10a30
jmp 0x33921
movq %rsp, %rsi
movl $0x160, %edi            # imm = 0x160
callq 0xfa30
movq %rax, %rbx
testq %rax, %rax
je 0x33949
movq %rbx, %rdi
movl $0x1, %esi
movq %rbp, %rdx
movq %r13, %rcx
movl %r12d, %r8d
movl %r15d, %r9d
pushq $0x0
pushq $0x0
callq 0x106d0
addq $0x10, %rsp
movl %eax, (%rsp)
testl %eax, %eax
je 0x33959
movq %rbx, %rdi
callq 0xff30
movl (%rsp), %eax
jmp 0x339ef
movl 0x4(%rsp), %edx
movl %edx, %eax
andl $0x1, %eax
movq $-0x10001, %rcx         # imm = 0xFFFEFFFF
andq 0x5c(%rbx), %rcx
shll $0x10, %eax
orq %rax, %rcx
movq %rcx, 0x5c(%rbx)
testb $0x2, %dl
je 0x339ea
leaq 0x8(%rsp), %r15
movl $0x120, %edx            # imm = 0x120
movq %r15, %rdi
xorl %esi, %esi
callq 0xf750
movq $0x100, 0x10(%r15)      # imm = 0x100
movb $0x0, 0x4(%r15)
movw $0x1000, 0x8(%r15)      # imm = 0x1000
movl (%r15), %eax
shll $0x18, %eax
movzwl 0x6(%r15), %r10d
orl %eax, %r10d
leaq 0x559a(%rip), %rdx      # 0x38f53
movl $0x1, %ecx
movq %rbx, %rdi
movl $0x8, %esi
movl $0x29, %r8d
movl $0x1000, %r9d           # imm = 0x1000
pushq %r15
pushq %r10
callq 0x106d0
addq $0x10, %rsp
movl %eax, (%rsp)
testl %eax, %eax
jne 0x33949
movq %rbx, (%r14)
xorl %eax, %eax
addq $0x128, %rsp            # imm = 0x128
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_nameserv_cmp
static int dns_res_nameserv_cmp(struct dns_rr *a, struct dns_rr *b, struct dns_rr_i *i, struct dns_packet *P) {
	_Bool glued[2] = { 0 };
	struct dns_rr x = { 0 }, y = { 0 };
	struct dns_ns ns;
	int cmp, error;

	if (!(error = dns_ns_parse(&ns, a, P)))
		glued[0] = !!dns_rr_grep(&x, 1, dns_rr_i_new(P, .section = (DNS_S_ALL & ~DNS_S_QD), .name = ns.host, .type = DNS_T_A), P, &error);

	if (!(error = dns_ns_parse(&ns, b, P)))
		glued[1] = !!dns_rr_grep(&y, 1, dns_rr_i_new(P, .section = (DNS_S_ALL & ~DNS_S_QD), .name = ns.host, .type = DNS_T_A), P, &error);

	if ((cmp = glued[1] - glued[0])) {
		return cmp;
	} else if ((cmp = (dns_rr_offset(&y) < i->args[0]) - (dns_rr_offset(&x) < i->args[0]))) {
		return cmp;
	} else {
		return dns_rr_i_shuffle(a, b, i, P);
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x208, %rsp            # imm = 0x208
movq %rcx, %r12
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
xorl %ebp, %ebp
movq %rbp, 0x40(%rsp)
movq %rbp, 0x20(%rsp)
movaps %xmm0, 0x10(%rsp)
movzwl 0x14(%rdi), %edx
leaq 0x108(%rsp), %r13
leaq 0xc(%rsp), %r8
movl $0x100, %esi            # imm = 0x100
movq %r13, %rdi
callq 0xfec0
cmpq $0x100, %rax            # imm = 0x100
movl $0x9b918cc1, %ecx       # imm = 0x9B918CC1
cmovbl %ebp, %ecx
testq %rax, %rax
jne 0x33a6c
movl 0xc(%rsp), %ecx
movl %ecx, 0x8(%rsp)
testl %ecx, %ecx
jne 0x33ad0
xorps %xmm0, %xmm0
leaq 0xb0(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, 0x40(%rdx)
movaps %xmm0, 0x30(%rdx)
movaps %xmm0, 0x20(%rdx)
movq $0x0, 0x50(%rdx)
movl $0xe, (%rdx)
movq %r13, 0x8(%rdx)
movl $0x1, 0x10(%rdx)
movups %xmm0, 0x38(%rdx)
movups %xmm0, 0x48(%rdx)
leaq 0x30(%rsp), %rdi
leaq 0x8(%rsp), %r8
movl $0x1, %esi
movq %r12, %rcx
callq 0xfd70
xorl %ebp, %ebp
negl %eax
sbbl %ebp, %ebp
movzwl 0x14(%r14), %edx
leaq 0x108(%rsp), %r13
leaq 0xc(%rsp), %r8
movl $0x100, %esi            # imm = 0x100
movq %r13, %rdi
movq %r12, %rcx
callq 0xfec0
movq %rax, %rcx
xorl %eax, %eax
cmpq $0x100, %rcx            # imm = 0x100
movl $0x9b918cc1, %edx       # imm = 0x9B918CC1
cmovbl %eax, %edx
testq %rcx, %rcx
jne 0x33b0f
movl 0xc(%rsp), %edx
movl %edx, 0x8(%rsp)
testl %edx, %edx
jne 0x33b73
xorps %xmm0, %xmm0
leaq 0x50(%rsp), %rdx
movaps %xmm0, (%rdx)
movaps %xmm0, 0x10(%rdx)
movaps %xmm0, 0x40(%rdx)
movaps %xmm0, 0x30(%rdx)
movaps %xmm0, 0x20(%rdx)
movq $0x0, 0x50(%rdx)
movl $0xe, (%rdx)
movq %r13, 0x8(%rdx)
movl $0x1, 0x10(%rdx)
movups %xmm0, 0x38(%rdx)
movups %xmm0, 0x48(%rdx)
leaq 0x10(%rsp), %rdi
leaq 0x8(%rsp), %r8
movl $0x1, %esi
movq %r12, %rcx
callq 0xfd70
movl %eax, %ecx
xorl %eax, %eax
testl %ecx, %ecx
setne %al
addl %ebp, %eax
jne 0x33ba5
movzwl 0x14(%rsp), %ecx
movl 0x30(%rbx), %edx
xorl %eax, %eax
cmpl %ecx, %edx
seta %al
movzwl 0x34(%rsp), %ecx
xorl %esi, %esi
cmpl %ecx, %edx
seta %sil
subl %esi, %eax
jne 0x33ba5
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x107d0
addq $0x208, %rsp            # imm = 0x208
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/dns.c
// Function: dns_res_frame_prepare
static dns_error_t dns_res_frame_prepare(struct dns_resolver *R, struct dns_res_frame *F, const char *qname, enum dns_type qtype, enum dns_class qclass) {
	struct dns_packet *P = NULL;

	if (!(F < endof(R->stack)))
		return DNS_EUNKNOWN;

	dns_p_movptr(&P, &F->query);
	dns_res_frame_reset(R, F);
	dns_p_movptr(&F->query, &P);

	return dns_q_make(&F->query, qname, qtype, qclass, F->qflags);
}

// Assembly:
leaq 0xd38(%rdi), %rax
cmpq %rsi, %rax
jbe 0x33c6c
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r13
leaq 0x18(%rsi), %r12
movq 0x18(%rsi), %rbp
movq $0x0, 0x18(%rsi)
movq %rsi, %rdi
callq 0x2f265
movl $0x110, %edx            # imm = 0x110
movq %r15, %rdi
xorl %esi, %esi
callq 0xf750
movq 0x300(%r13), %rax
testq %rax, %rax
je 0x33c2c
cmpb $0x0, 0x5c1(%rax)
jne 0x33c1e
orb $0x1, 0xc(%r15)
cmpb $0x1, 0x5b0(%rax)
jne 0x33c2c
orb $0x2, 0xc(%r15)
movq 0x18(%r15), %rdi
callq 0xff30
movq %rbp, 0x18(%r15)
movl 0xc(%r15), %ebp
movq %r14, %rdi
callq 0xf560
movq %r12, %rdi
movq %r14, %rsi
movq %rax, %rdx
movl %ebx, %ecx
movl $0x1, %r8d
movl %ebp, %r9d
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x338c6
movl $0x9b918cc4, %eax       # imm = 0x9B918CC4
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/notify.c
// Function: closefd
static int closefd(int *fd) {
	while (*fd >= 0 && 0 != close(*fd)) {
		if (errno != EINTR)
			return errno;
	}

	*fd = -1;

	return 0;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl (%rbx), %edi
testl %edi, %edi
js 0x344a0
callq 0x10a10
testl %eax, %eax
je 0x344a0
callq 0xf0a0
cmpl $0x4, (%rax)
je 0x34485
jmp 0x344a6
movl $0xffffffff, (%rbx)     # imm = 0xFFFFFFFF
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/notify.c
// Function: notify_timeout
int notify_timeout(struct notify *nfy) {
	if (nfy->dirty || !LIST_EMPTY(&nfy->pending) || !LIST_EMPTY(&nfy->changed))
		return 0;
	else
		return -1;
}

// Assembly:
xorl %eax, %eax
cmpb $0x0, 0x50(%rdi)
jne 0x344ba
cmpq $0x0, 0x18(%rdi)
je 0x344bb
retq
xorl %eax, %eax
cmpq $0x1, 0x20(%rdi)
sbbl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/notify.c
// Function: notify_step
int notify_step(struct notify *nfy, int timeout) {
	int error;

	if (nfy->dirty || !LIST_EMPTY(&nfy->pending))
		goto post;

	if (nfy->changes || !LIST_EMPTY(&nfy->changed))
		return 0;

	if ((error = NFY_STEP(nfy, timeout)))
		return error;

post:
	if ((error = NFY_POST(nfy)))
		return error;

	return 0;
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdi, %rbx
cmpb $0x0, 0x50(%rdi)
jne 0x344e1
cmpq $0x0, 0x18(%rbx)
je 0x3457b
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x34564
leaq 0x20(%rbx), %rcx
leaq 0x10(%rbx), %rdx
leaq 0x18(%rax), %rdi
movq 0x18(%rax), %rsi
movl 0x4(%rax), %r8d
andl %r8d, 0x8(%rax)
je 0x34531
testq %rsi, %rsi
je 0x34511
movq 0x20(%rax), %r8
movq %r8, 0x20(%rsi)
movq 0x20(%rax), %r8
movq %rsi, (%r8)
movq (%rcx), %r8
movq %r8, 0x18(%rax)
testq %r8, %r8
je 0x34528
movq %rdi, 0x20(%r8)
movq %rax, (%rcx)
movq %rcx, 0x20(%rax)
jmp 0x3455c
testq %rsi, %rsi
je 0x3453e
movq 0x20(%rax), %r8
movq %r8, 0x20(%rsi)
movq 0x20(%rax), %r8
movq %rsi, (%r8)
movq (%rdx), %r8
movq %r8, 0x18(%rax)
testq %r8, %r8
je 0x34555
movq %rdi, 0x20(%r8)
movq %rax, (%rdx)
movq %rdx, 0x20(%rax)
movq %rsi, %rax
testq %rsi, %rsi
jne 0x344f2
movb $0x0, 0x50(%rbx)
movl 0x48(%rbx), %eax
andl %eax, 0x4c(%rbx)
xorl %ebp, %ebp
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
xorl %ebp, %ebp
cmpl $0x0, 0x4c(%rbx)
jne 0x34570
cmpq $0x0, 0x20(%rbx)
jne 0x34570
movl %esi, %r14d
movq %rbx, %rdi
callq 0x349aa
testl %eax, %eax
je 0x345e8
cmpl $0xb, %eax
jne 0x345dc
xorl %ebp, %ebp
testl %r14d, %r14d
je 0x345ea
movl (%rbx), %eax
leaq 0x8(%rsp), %rdi
movl %eax, (%rdi)
movl $0x1, 0x4(%rdi)
movl $0x1, %esi
movl %r14d, %edx
callq 0x10440
cmpl $-0x1, %eax
je 0x345d5
movq %rbx, %rdi
callq 0x349aa
testl %eax, %eax
jne 0x345dc
jmp 0x345ea
callq 0xf0a0
movl (%rax), %eax
xorl %ebp, %ebp
cmpl $0x4, %eax
je 0x345ea
cmpl $0xb, %eax
je 0x345ea
movl %eax, %ebp
testl %ebp, %ebp
jne 0x34570
jmp 0x344e1
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/notify.c
// Function: lookup
static struct file *lookup(struct notify *nfy, const char *name, size_t namelen) {
#if ENABLE_FEN
	struct file key = { .name = (char *)name, .namelen = namelen };

	return LLRB_FIND(files, &nfy->files, &key);
#else
	struct file *key = &((union { char pad[offsetof(struct file, name) + NAME_MAX + 1]; struct file file; }){ { 0 } }).file;

	if (namelen > NAME_MAX)
		return NULL;

	memcpy(key->name, name, namelen);
	key->namelen = namelen;

	return LLRB_FIND(files, &nfy->files, key);
#endif
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x160, %rsp            # imm = 0x160
movq %rdx, %r15
movq %rsi, %r13
movq %rdi, %r12
movq %rsp, %rdi
xorl %ebx, %ebx
movl $0x160, %edx            # imm = 0x160
xorl %esi, %esi
callq 0xf750
cmpq $0xff, %r15
ja 0x34916
leaq 0x60(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
movq %r15, %rdx
callq 0xfa60
movq %r15, -0x8(%r14)
movq 0x8(%r12), %r15
testq %r15, %r15
je 0x34914
leaq 0x60(%r15), %rsi
movq %r14, %rdi
callq 0x10250
movl $0x38, %ecx
testl %eax, %eax
js 0x34901
movl $0x40, %ecx
je 0x3490d
movq (%r15,%rcx), %r15
movb $0x1, %al
testb %al, %al
jne 0x348e0
jmp 0x34916
xorl %eax, %eax
movq %r15, %rbx
jmp 0x34907
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x160, %rsp            # imm = 0x160
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/wahern[P]cqueues/src/lib/notify.c
// Function: notify_get
int notify_get(struct notify *nfy, const char **name) {
	struct file *file;
	int changes;

	if ((file = LIST_FIRST(&nfy->changed))) {
		NFY_LIST_MOVE(&nfy->dormant, file, le);

		if (name)
			*name = file->name;

		changes = file->changes;
		file->changes = 0;

		return changes;
	}

	if (!nfy->dirty && nfy->changes) {
		if (name)
			*name = ".";

		changes = nfy->changes;
		nfy->changes = 0;

		return changes;
	}

	return 0;
}

// Assembly:
movq 0x20(%rdi), %rcx
testq %rcx, %rcx
je 0x34982
movq 0x18(%rcx), %rax
testq %rax, %rax
je 0x34944
movq 0x20(%rcx), %rdx
movq %rdx, 0x20(%rax)
movq 0x20(%rcx), %rdx
movq %rax, (%rdx)
movq 0x10(%rdi), %rax
addq $0x10, %rdi
movq %rax, 0x18(%rcx)
testq %rax, %rax
je 0x34964
leaq 0x18(%rcx), %rdx
movq %rdx, 0x20(%rax)
movq %rcx, (%rdi)
movq %rdi, 0x20(%rcx)
testq %rsi, %rsi
je 0x34977
leaq 0x60(%rcx), %rax
movq %rax, (%rsi)
movl 0x8(%rcx), %eax
movl $0x0, 0x8(%rcx)
retq
xorl %eax, %eax
cmpb $0x0, 0x50(%rdi)
jne 0x349a9
movl 0x4c(%rdi), %ecx
testl %ecx, %ecx
je 0x349a9
testq %rsi, %rsi
je 0x349a0
leaq 0x45b6(%rip), %rax      # 0x38f53
movq %rax, (%rsi)
movl $0x0, 0x4c(%rdi)
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/ryo[P]shmqueue/shmserver.c
// Function: reap_items
int
reap_items()
{
	int i, nexpire;
	struct keyvalue kv;

	shmqueue_dump(shmqueue);

	nexpire = 0;
	for (i = 0; i < 5000; i++) {
#if 1
		if (!shmqueue_watermark(shmqueue))
			break;
#else
		if (shmqueue_inuse(shmqueue) < 5000)
			break;
#endif

		/* XXX: TODO */

		/* fetch from expire queue, and store to db */
		if (shmqueue_getoldest(shmqueue, &kv) != 0)
			break;

		if ((i & 0xff) == 0) {
			fprintf(stderr, "EXPIRE: key=<%s>, storage_size=%u, storage=<%s>\n",
			    KEYVALUE_KEY(&kv),
			    kv.kv_storagesize,
			    KEYVALUE_STORAGE(&kv));
			fflush(stdout);
		}

		nexpire++;
	}

	fflush(stdout);

	return nexpire;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x7d8, %rsp            # imm = 0x7D8
movq 0x3e23(%rip), %rdi      # 0x50b0
callq 0x1453
leaq 0x8(%rsp), %r14
xorl %ebx, %ebx
leaq 0x4(%rsp), %r15
movq %rsp, %r12
movq 0x3e08(%rip), %rdi      # 0x50b0
callq 0x26c6
testl %eax, %eax
je 0x12e9
movq 0x3df8(%rip), %rdi      # 0x50b0
movq %r12, %rsi
callq 0x2705
testl %eax, %eax
jne 0x12e9
testb %bl, %bl
je 0x12d4
incl %ebx
cmpl $0x1388, %ebx           # imm = 0x1388
jne 0x12a1
jmp 0x12e4
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x1140
jmp 0x12c8
movl $0x1388, %ebx           # imm = 0x1388
movq 0x3ce8(%rip), %rax      # 0x4fd8
movq (%rax), %rdi
callq 0x10e0
movl %ebx, %eax
addq $0x7d8, %rsp            # imm = 0x7D8
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/ryo[P]shmqueue/shmserver.c
// Function: main
int
main(int argc, char *argv[])
{
	int ch;
	int opt_a = 0, opt_f = 0, opt_i = 0;

	while ((ch = getopt(argc, argv, "afi")) != -1) {
		switch (ch) {
		case 'a':
			opt_a = 1;
			break;
		case 'f':
			opt_f = 1;
			break;
		case 'i':
			opt_i = 1;
			break;
		default:
			usage();
			return 1;
		}
	}
	argc -= optind;
	argv += optind;

	shmqueue = shmqueue_new(MEMID, MEMSIZE, !opt_i, 1);
	if (shmqueue == NULL) {
		shmqueue = shmqueue_new(MEMID, 0, !opt_i, 1);
		if (shmqueue == NULL)
			err(1, "shmqueue_new");
	}

	while (1) {
		if (reap_items() == 0) {
//			sleep(1);
		}
	}

	return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %r14
movl %edi, %ebp
movl $0x1, %ebx
leaq 0x1d14(%rip), %r15      # 0x3035
movl %ebp, %edi
movq %r14, %rsi
movq %r15, %rdx
callq 0x1100
cmpl $0x65, %eax
jg 0x133a
cmpl $0x61, %eax
je 0x1321
jmp 0x1348
cmpl $0x66, %eax
je 0x1321
cmpl $0x69, %eax
jne 0x1395
xorl %ebx, %ebx
jmp 0x1321
cmpl $-0x1, %eax
jne 0x1395
movl $0x10000000, %esi       # imm = 0x10000000
movl $0x186a0, %edi          # imm = 0x186A0
movl %ebx, %edx
movl $0x1, %ecx
callq 0x1901
movq %rax, 0x3d46(%rip)      # 0x50b0
testq %rax, %rax
jne 0x138e
movl $0x186a0, %edi          # imm = 0x186A0
xorl %esi, %esi
movl %ebx, %edx
movl $0x1, %ecx
callq 0x1901
movq %rax, 0x3d27(%rip)      # 0x50b0
testq %rax, %rax
je 0x13b1
callq 0x1278
jmp 0x138e
leaq 0x1caa(%rip), %rdi      # 0x3046
callq 0x1050
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1c81(%rip), %rsi      # 0x3039
movl $0x1, %edi
xorl %eax, %eax
callq 0x10c0
// File: /workspace/github_c_makefile_star2_O1/kasymovga[P]devilwm/ewmh.c
// Function: ewmh_set_net_client_list
void ewmh_set_net_client_list(ScreenInfo *s) {
	struct list *iter;
	for (iter = clients_mapping_order; iter; iter = iter->next) {
		Client *c = iter->data;
		XChangeProperty(dpy, s->root, xa_net_client_list,
				XA_WINDOW, 32, PropModeReplace,
				(unsigned char *)&c->window, 1);
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x89f0(%rip), %rax      # 0xe7e8
movq (%rax), %r14
testq %r14, %r14
je 0x5e3d
movq %rdi, %rbx
leaq 0x8a1e(%rip), %r15      # 0xe828
movq (%r15), %rdi
movq 0x8(%rbx), %rsi
movq 0x88a0(%rip), %rdx      # 0xe6b8
movl $0x21, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq $0x1
pushq 0x8(%r14)
callq 0x3660
addq $0x10, %rsp
movq (%r14), %r14
testq %r14, %r14
jne 0x5e0a
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/kasymovga[P]devilwm/ewmh.c
// Function: ewmh_set_net_client_list_stacking
void ewmh_set_net_client_list_stacking(ScreenInfo *s) {
	struct list *iter;
	for (iter = clients_stacking_order; iter; iter = iter->next) {
		Client *c = iter->data;
		if (c->screen == s) {
			XChangeProperty(dpy, s->root, xa_net_client_list_stacking,
					XA_WINDOW, 32, PropModeReplace,
					(unsigned char *)&c->window, 1);
		}
	}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
leaq 0x89a1(%rip), %rax      # 0xe7f0
movq (%rax), %r14
testq %r14, %r14
je 0x5e9b
movq %rdi, %rbx
leaq 0x89c7(%rip), %r15      # 0xe828
movq 0x8(%r14), %rax
cmpq %rbx, 0x10(%rax)
jne 0x5e93
movq (%r15), %rdi
movq 0x8(%rbx), %rsi
movq 0x8847(%rip), %rdx      # 0xe6c0
movl $0x21, %ecx
movl $0x20, %r8d
xorl %r9d, %r9d
pushq $0x1
pushq %rax
callq 0x3660
addq $0x10, %rsp
movq (%r14), %r14
testq %r14, %r14
jne 0x5e61
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/kasymovga[P]devilwm/screen.c
// Function: find_monitors
void find_monitors(Client *c) {
#ifdef RANDR
	if (have_randr) {
		XRRMonitorInfo *xmonitors = XRRGetMonitors(dpy, c->screen->root, 0, &monitors_count);
		monitors_realloc();
		for (int i = 0; i < monitors_count; i++) {
			monitors[i].x = xmonitors[i].x;
			monitors[i].y = xmonitors[i].y;
			monitors[i].width = xmonitors[i].width;
			monitors[i].height = xmonitors[i].height;
		}
		if (monitors_count) {
			XRRFreeMonitors(xmonitors);
			return;
		}
	}
#endif
	monitors_count = 1;
	monitors_realloc();
	monitors[0].x = 0;
	monitors[0].y = 0;
	monitors[0].width = DisplayWidth(dpy, c->screen->screen);
	monitors[0].height = DisplayHeight(dpy, c->screen->screen);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
leaq 0x71ba(%rip), %rax      # 0xe860
cmpl $0x0, (%rax)
je 0x7732
leaq 0x7172(%rip), %rax      # 0xe828
movq (%rax), %rdi
movq 0x10(%rbx), %rax
movq 0x8(%rax), %rsi
leaq 0x71b8(%rip), %rcx      # 0xe880
xorl %edx, %edx
callq 0x3170
movq %rax, %r14
callq 0x7781
movl 0x71a3(%rip), %esi      # 0xe880
testl %esi, %esi
jle 0x771f
movq 0x7190(%rip), %rax      # 0xe878
addq $0xc, %rax
leaq 0x20(%r14), %rcx
xorl %edx, %edx
movl -0xc(%rcx), %esi
movl %esi, -0xc(%rax)
movl -0x8(%rcx), %esi
movl %esi, -0x8(%rax)
movl -0x4(%rcx), %esi
movl %esi, -0x4(%rax)
movl (%rcx), %esi
movl %esi, (%rax)
incq %rdx
movslq 0x716e(%rip), %rsi      # 0xe880
addq $0x10, %rax
addq $0x38, %rcx
cmpq %rsi, %rdx
jl 0x76f2
testl %esi, %esi
je 0x7732
movq %r14, %rdi
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x32e0
movl $0x1, 0x7144(%rip)      # 0xe880
callq 0x7781
movq 0x7130(%rip), %rax      # 0xe878
movq $0x0, (%rax)
leaq 0x70d2(%rip), %rcx      # 0xe828
movq (%rcx), %rcx
movq 0xe8(%rcx), %rcx
movq 0x10(%rbx), %rdx
movslq (%rdx), %rdx
shlq $0x7, %rdx
movl 0x18(%rcx,%rdx), %esi
movl %esi, 0x8(%rax)
movl 0x1c(%rcx,%rdx), %ecx
movl %ecx, 0xc(%rax)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/kasymovga[P]devilwm/screen.c
// Function: monitors_realloc
static void monitors_realloc(void) {
	static Monitor monitor_static;
	if (!monitors_count)
		return;

	if (monitors_size < monitors_count) {
		if (monitors != &monitor_static) {
			free(monitors);
		}
		monitors = malloc(sizeof(struct Monitor) * monitors_count);
		if (monitors)
			monitors_size = monitors_count;
		else {
			monitors_size = 0;
		}
	}
	if (monitors) {
		return;
	}
	//Canot allocate memory
	LOG_ERROR("out of memory\n");
	monitors_count = 1;
	monitors = &monitor_static;
}

// Assembly:
movl 0x70f9(%rip), %eax      # 0xe880
testl %eax, %eax
je 0x77df
pushq %rbx
cmpl %eax, 0x70f2(%rip)      # 0xe884
jge 0x77d4
movq 0x70dd(%rip), %rdi      # 0xe878
leaq 0x70e6(%rip), %rax      # 0xe888
cmpq %rax, %rdi
je 0x77ac
callq 0x32b0
movslq 0x70cd(%rip), %rbx      # 0xe880
movq %rbx, %rdi
shlq $0x4, %rdi
callq 0x31c0
movq %rax, 0x70b2(%rip)      # 0xe878
xorl %ecx, %ecx
testq %rax, %rax
cmovnel %ebx, %ecx
movl %ecx, 0x70b0(%rip)      # 0xe884
cmpq $0x0, 0x709c(%rip)      # 0xe878
je 0x77e0
popq %rbx
retq
callq 0x390c
jmp 0x77de