// File: /workspace/github_c_makefile_star2_O0/wahern[P]cqueues/src/lib/dns.c
// Function: dns_ai_nextent
int dns_ai_nextent(struct addrinfo **ent, struct dns_addrinfo *ai) {
	struct dns_packet *ans, *glue;
	struct dns_rr rr;
	char qname[DNS_D_MAXNAME + 1];
	union dns_any any;
	size_t qlen, clen;
	int error;

	*ent = 0;

exec:

	switch (ai->state) {
	case DNS_AI_S_INIT:
		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_NEXTAF:
		if (!dns_ai_nextaf(ai))
			dns_ai_goto(DNS_AI_S_DONE);

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_NUMERIC:
		if (1 == dns_inet_pton(AF_INET, ai->qname, &any.a)) {
			if (ai->af.atype == AF_INET) {
				ai->state = DNS_AI_S_NEXTAF;
				return dns_ai_setent(ent, &any, DNS_T_A, ai);
			} else {
				dns_ai_goto(DNS_AI_S_NEXTAF);
			}
		}

		if (1 == dns_inet_pton(AF_INET6, ai->qname, &any.aaaa)) {
			if (ai->af.atype == AF_INET6) {
				ai->state = DNS_AI_S_NEXTAF;
				return dns_ai_setent(ent, &any, DNS_T_AAAA, ai);
			} else {
				dns_ai_goto(DNS_AI_S_NEXTAF);
			}
		}

		if (ai->hints.ai_flags & AI_NUMERICHOST)
			dns_ai_goto(DNS_AI_S_NEXTAF);

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_SUBMIT:
		assert(ai->res);

		if ((error = dns_res_submit(ai->res, ai->qname, dns_ai_qtype(ai), DNS_C_IN)))
			return error;

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_CHECK:
		if ((error = dns_res_check(ai->res)))
			return error;

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_FETCH:
		if (!(ans = dns_res_fetch_and_study(ai->res, &error)))
			return error;
		if (ai->glue != ai->answer)
			dns_p_free(ai->glue);
		ai->glue = dns_p_movptr(&ai->answer, &ans);

		/* Search generator may have changed the qname. */
		if (!(qlen = dns_d_expand(qname, sizeof qname, 12, ai->answer, &error)))
			return error;
		else if (qlen >= sizeof qname)
			return DNS_EILLEGAL;
		if (!dns_d_cname(ai->cname, sizeof ai->cname, qname, qlen, ai->answer, &error))
			return error;

		dns_strlcpy(ai->i_cname, ai->cname, sizeof ai->i_cname);
		dns_rr_i_init(&ai->i, ai->answer);
		ai->i.section = DNS_S_AN;
		ai->i.name    = ai->i_cname;
		ai->i.type    = dns_ai_qtype(ai);
		ai->i.sort    = &dns_rr_i_order;

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_FOREACH_I:
		if (!dns_rr_grep(&rr, 1, &ai->i, ai->answer, &error))
			dns_ai_goto(DNS_AI_S_NEXTAF);

		if ((error = dns_any_parse(&any, &rr, ai->answer)))
			return error;

		ai->port = ai->qport;

		switch (rr.type) {
		case DNS_T_A:
		case DNS_T_AAAA:
			return dns_ai_setent(ent, &any, rr.type, ai);
		default:
			if (!(clen = dns_any_cname(ai->cname, sizeof ai->cname, &any, rr.type)))
				dns_ai_goto(DNS_AI_S_FOREACH_I);

			/*
			 * Find the "real" canonical name. Some authorities
			 * publish aliases where an RFC defines a canonical
			 * name. We trust that the resolver followed any
			 * CNAME chains on it's own, regardless of whether
			 * the "smart" option is enabled.
			 */
			if (!dns_d_cname(ai->cname, sizeof ai->cname, ai->cname, clen, ai->answer, &error))
				return error;

			if (rr.type == DNS_T_SRV)
				ai->port = any.srv.port;

			break;
		} /* switch() */

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_INIT_G:
		ai->g_depth = 0;

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_ITERATE_G:
		dns_strlcpy(ai->g_cname, ai->cname, sizeof ai->g_cname);
		dns_rr_i_init(&ai->g, ai->glue);
		ai->g.section = DNS_S_ALL & ~DNS_S_QD;
		ai->g.name    = ai->g_cname;
		ai->g.type    = ai->af.qtype;

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_FOREACH_G:
		if (!dns_rr_grep(&rr, 1, &ai->g, ai->glue, &error)) {
			if (dns_rr_i_count(&ai->g) > 0)
				dns_ai_goto(DNS_AI_S_FOREACH_I);
			else
				dns_ai_goto(DNS_AI_S_SUBMIT_G);
		}

		if ((error = dns_any_parse(&any, &rr, ai->glue)))
			return error;

		return dns_ai_setent(ent, &any, rr.type, ai);
	case DNS_AI_S_SUBMIT_G:
		/* skip if already queried */
		if (dns_rr_grep(&rr, 1, dns_rr_i_new(ai->glue, .section = DNS_S_QD, .name = ai->g.name, .type = ai->g.type), ai->glue, &error))
			dns_ai_goto(DNS_AI_S_FOREACH_I);
		/* skip if we recursed (CNAME chains should have been handled in the resolver) */
		if (++ai->g_depth > 1)
			dns_ai_goto(DNS_AI_S_FOREACH_I);

		if ((error = dns_res_submit(ai->res, ai->g.name, ai->g.type, DNS_C_IN)))
			return error;

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_CHECK_G:
		if ((error = dns_res_check(ai->res)))
			return error;

		ai->state++;
		/* FALL THROUGH */
	case DNS_AI_S_FETCH_G:
		if (!(ans = dns_res_fetch_and_study(ai->res, &error)))
			return error;

		glue = dns_p_merge(ai->glue, DNS_S_ALL, ans, DNS_S_ALL, &error);
		dns_p_setptr(&ans, NULL);
		if (!glue)
			return error;

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

		if (!dns_d_cname(ai->cname, sizeof ai->cname, ai->g.name, strlen(ai->g.name), ai->glue, &error))
			dns_ai_goto(DNS_AI_S_FOREACH_I);

		dns_ai_goto(DNS_AI_S_ITERATE_G);
	case DNS_AI_S_DONE:
		if (ai->found) {
			return ENOENT; /* TODO: Just return 0 */
		} else if (ai->answer) {
			switch (dns_p_rcode(ai->answer)) {
			case DNS_RC_NOERROR:
				/* FALL THROUGH */
			case DNS_RC_NXDOMAIN:
				return DNS_ENONAME;
			default:
				return DNS_EFAIL;
			}
		} else {
			return DNS_EFAIL;
		}
	default:
		return EINVAL;
	} /* switch() */
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x600, %rsp            # imm = 0x600
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rax
movq $0x0, (%rax)
movq -0x18(%rbp), %rax
movl 0x534(%rax), %eax
movq %rax, -0x5c8(%rbp)
subq $0xd, %rax
ja 0x41f25
movq -0x5c8(%rbp), %rax
leaq 0x8b49(%rip), %rcx      # 0x4a0a0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rdi
callq 0x41f40
cmpl $0x0, %eax
jne 0x41593
jmp 0x41583
movq -0x18(%rbp), %rax
movl $0xd, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rsi
addq $0x38, %rsi
movl $0x2, %edi
leaq -0x550(%rbp), %rdx
callq 0x10b60
movl %eax, %ecx
movl $0x1, %eax
cmpl %ecx, %eax
jne 0x4161b
movq -0x18(%rbp), %rax
cmpl $0x2, 0x14c(%rax)
jne 0x41606
movq -0x18(%rbp), %rax
movl $0x1, 0x534(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rcx
leaq -0x550(%rbp), %rsi
movl $0x1, %edx
callq 0x421f0
movl %eax, -0x4(%rbp)
jmp 0x41f2c
jmp 0x41608
movq -0x18(%rbp), %rax
movl $0x1, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rsi
addq $0x38, %rsi
movl $0xa, %edi
leaq -0x550(%rbp), %rdx
callq 0x10b60
movl %eax, %ecx
movl $0x1, %eax
cmpl %ecx, %eax
jne 0x41690
movq -0x18(%rbp), %rax
cmpl $0xa, 0x14c(%rax)
jne 0x4167b
movq -0x18(%rbp), %rax
movl $0x1, 0x534(%rax)
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rcx
leaq -0x550(%rbp), %rsi
movl $0x1c, %edx
callq 0x421f0
movl %eax, -0x4(%rbp)
jmp 0x41f2c
jmp 0x4167d
movq -0x18(%rbp), %rax
movl $0x1, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rax
movl (%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x416b3
jmp 0x416a0
movq -0x18(%rbp), %rax
movl $0x1, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rax
cmpq $0x0, 0x30(%rax)
je 0x416d3
jmp 0x416f2
leaq 0xbf77(%rip), %rdi      # 0x4d651
leaq 0xbcfc(%rip), %rsi      # 0x4d3dd
movl $0x20a3, %edx           # imm = 0x20A3
leaq 0xbf6c(%rip), %rcx      # 0x4d659
callq 0xf920
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rax
movq %rax, -0x5d8(%rbp)
movq -0x18(%rbp), %rax
addq $0x38, %rax
movq %rax, -0x5d0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x42470
movq -0x5d8(%rbp), %rdi
movq -0x5d0(%rbp), %rsi
movl %eax, %edx
movl $0x1, %ecx
callq 0xf380
movl %eax, -0x564(%rbp)
cmpl $0x0, %eax
je 0x4174c
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0xf560
movl %eax, -0x564(%rbp)
cmpl $0x0, %eax
je 0x41785
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rdi
leaq -0x564(%rbp), %rsi
callq 0x424b0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x417c4
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x158(%rcx), %rax
je 0x417ec
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rdi
callq 0x39a50
movq -0x18(%rbp), %rdi
addq $0x158, %rdi            # imm = 0x158
leaq -0x20(%rbp), %rsi
callq 0x41030
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x160(%rax)
leaq -0x140(%rbp), %rdi
movq -0x18(%rbp), %rax
movq 0x158(%rax), %rcx
movl $0x100, %esi            # imm = 0x100
movl $0xc, %edx
leaq -0x564(%rbp), %r8
callq 0xffd0
movq %rax, -0x558(%rbp)
cmpq $0x0, %rax
jne 0x41851
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
cmpq $0x100, -0x558(%rbp) # imm = 0x100
jb 0x4186a
movl $0x9b918cc1, -0x4(%rbp) # imm = 0x9B918CC1
jmp 0x41f2c
jmp 0x4186c
movq -0x18(%rbp), %rdi
addq $0x230, %rdi            # imm = 0x230
leaq -0x140(%rbp), %rdx
movq -0x558(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x158(%rax), %r8
movl $0x100, %esi            # imm = 0x100
leaq -0x564(%rbp), %r9
callq 0x100a0
cmpq $0x0, %rax
jne 0x418b5
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rdi
addq $0x330, %rdi            # imm = 0x330
movq -0x18(%rbp), %rsi
addq $0x230, %rsi            # imm = 0x230
movl $0x100, %edx            # imm = 0x100
callq 0xf520
movq -0x18(%rbp), %rdi
addq $0x168, %rdi            # imm = 0x168
movq -0x18(%rbp), %rax
movq 0x158(%rax), %rsi
callq 0x10750
movq -0x18(%rbp), %rax
movl $0x2, 0x168(%rax)
movq -0x18(%rbp), %rcx
addq $0x330, %rcx            # imm = 0x330
movq -0x18(%rbp), %rax
movq %rcx, 0x170(%rax)
movq -0x18(%rbp), %rdi
callq 0x42470
movl %eax, %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x178(%rax)
movq -0x18(%rbp), %rax
movq 0x1a644(%rip), %rcx     # 0x5bf78
movq %rcx, 0x190(%rax)
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rdx
addq $0x168, %rdx            # imm = 0x168
movq -0x18(%rbp), %rax
movq 0x158(%rax), %rcx
leaq -0x40(%rbp), %rdi
movl $0x1, %esi
leaq -0x564(%rbp), %r8
callq 0xfe80
cmpl $0x0, %eax
jne 0x41993
jmp 0x41980
movq -0x18(%rbp), %rax
movl $0x1, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rax
movq 0x158(%rax), %rdx
leaq -0x550(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xff80
movl %eax, -0x564(%rbp)
cmpl $0x0, %eax
je 0x419c7
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movw 0x13c(%rax), %cx
movw %cx, 0x13e(%rax)
movl -0x38(%rbp), %eax
movl %eax, -0x5dc(%rbp)
subl $0x1, %eax
je 0x419f6
jmp 0x419e9
movl -0x5dc(%rbp), %eax
subl $0x1c, %eax
jne 0x41a15
jmp 0x419f6
movq -0x10(%rbp), %rdi
movl -0x38(%rbp), %edx
movq -0x18(%rbp), %rcx
leaq -0x550(%rbp), %rsi
callq 0x421f0
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rdi
addq $0x230, %rdi            # imm = 0x230
movl -0x38(%rbp), %ecx
movl $0x100, %esi            # imm = 0x100
leaq -0x550(%rbp), %rdx
callq 0x10520
movq %rax, -0x560(%rbp)
cmpq $0x0, %rax
jne 0x41a56
jmp 0x41a43
movq -0x18(%rbp), %rax
movl $0x6, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rdi
addq $0x230, %rdi            # imm = 0x230
movq -0x18(%rbp), %rdx
addq $0x230, %rdx            # imm = 0x230
movq -0x560(%rbp), %rcx
movq -0x18(%rbp), %rax
movq 0x158(%rax), %r8
movl $0x100, %esi            # imm = 0x100
leaq -0x564(%rbp), %r9
callq 0x100a0
cmpq $0x0, %rax
jne 0x41aa3
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
cmpl $0x21, -0x38(%rbp)
jne 0x41abb
movw -0x54c(%rbp), %cx
movq -0x18(%rbp), %rax
movw %cx, 0x13e(%rax)
jmp 0x41abd
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rax
movl $0x0, 0x530(%rax)
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rdi
addq $0x430, %rdi            # imm = 0x430
movq -0x18(%rbp), %rsi
addq $0x230, %rsi            # imm = 0x230
movl $0x100, %edx            # imm = 0x100
callq 0xf520
movq -0x18(%rbp), %rdi
addq $0x1c0, %rdi            # imm = 0x1C0
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rsi
callq 0x10750
movq -0x18(%rbp), %rax
movl $0xe, 0x1c0(%rax)
movq -0x18(%rbp), %rcx
addq $0x430, %rcx            # imm = 0x430
movq -0x18(%rbp), %rax
movq %rcx, 0x1c8(%rax)
movq -0x18(%rbp), %rax
movl 0x150(%rax), %ecx
movq -0x18(%rbp), %rax
movl %ecx, 0x1d0(%rax)
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rdx
addq $0x1c0, %rdx            # imm = 0x1C0
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rcx
leaq -0x40(%rbp), %rdi
movl $0x1, %esi
leaq -0x564(%rbp), %r8
callq 0xfe80
cmpl $0x0, %eax
jne 0x41be1
movq -0x18(%rbp), %rax
movzwl 0x1fa(%rax), %eax
cmpl $0x0, %eax
jle 0x41bcc
jmp 0x41bb9
movq -0x18(%rbp), %rax
movl $0x6, 0x534(%rax)
jmp 0x4152e
jmp 0x41bce
movq -0x18(%rbp), %rax
movl $0xa, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rdx
leaq -0x550(%rbp), %rdi
leaq -0x40(%rbp), %rsi
callq 0xff80
movl %eax, -0x564(%rbp)
cmpl $0x0, %eax
je 0x41c15
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x10(%rbp), %rdi
movl -0x38(%rbp), %edx
movq -0x18(%rbp), %rcx
leaq -0x550(%rbp), %rsi
callq 0x421f0
movl %eax, -0x4(%rbp)
jmp 0x41f2c
leaq -0x5c0(%rbp), %rdi
xorl %esi, %esi
movl $0x58, %edx
callq 0xf7d0
movl $0x1, -0x5c0(%rbp)
movq -0x18(%rbp), %rax
movq 0x1c8(%rax), %rax
movq %rax, -0x5b8(%rbp)
movq -0x18(%rbp), %rax
movl 0x1d0(%rax), %eax
movl %eax, -0x5b0(%rbp)
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rsi
leaq -0x5c0(%rbp), %rdi
callq 0x10750
movq %rax, %rdx
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rcx
leaq -0x40(%rbp), %rdi
movl $0x1, %esi
leaq -0x564(%rbp), %r8
callq 0xfe80
cmpl $0x0, %eax
je 0x41cc7
jmp 0x41cb4
movq -0x18(%rbp), %rax
movl $0x6, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rcx
movl 0x530(%rcx), %eax
addl $0x1, %eax
movl %eax, 0x530(%rcx)
cmpl $0x1, %eax
jle 0x41cf4
jmp 0x41ce1
movq -0x18(%rbp), %rax
movl $0x6, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rdi
movq -0x18(%rbp), %rax
movq 0x1c8(%rax), %rsi
movq -0x18(%rbp), %rax
movl 0x1d0(%rax), %edx
movl $0x1, %ecx
callq 0xf380
movl %eax, -0x564(%rbp)
cmpl $0x0, %eax
je 0x41d34
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rdi
callq 0xf560
movl %eax, -0x564(%rbp)
cmpl $0x0, %eax
je 0x41d6d
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movl 0x534(%rax), %ecx
addl $0x1, %ecx
movl %ecx, 0x534(%rax)
movq -0x18(%rbp), %rax
movq 0x30(%rax), %rdi
leaq -0x564(%rbp), %rsi
callq 0x424b0
movq %rax, -0x20(%rbp)
cmpq $0x0, %rax
jne 0x41dac
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rdi
movq -0x20(%rbp), %rdx
movl $0xf, %ecx
leaq -0x564(%rbp), %r8
movl %ecx, %esi
callq 0x10580
movq %rax, -0x28(%rbp)
leaq -0x20(%rbp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x328c0
cmpq $0x0, -0x28(%rbp)
jne 0x41df4
movl -0x564(%rbp), %eax
movl %eax, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rax
movq -0x18(%rbp), %rcx
cmpq 0x158(%rcx), %rax
je 0x41e1c
movq -0x18(%rbp), %rax
movq 0x160(%rax), %rdi
callq 0x39a50
movq -0x28(%rbp), %rcx
movq -0x18(%rbp), %rax
movq %rcx, 0x160(%rax)
movq -0x18(%rbp), %rax
addq $0x230, %rax            # imm = 0x230
movq %rax, -0x5f0(%rbp)
movq -0x18(%rbp), %rax
movq 0x1c8(%rax), %rax
movq %rax, -0x5e8(%rbp)
movq -0x18(%rbp), %rax
movq 0x1c8(%rax), %rdi
callq 0xf5c0
movq -0x5f0(%rbp), %rdi
movq -0x5e8(%rbp), %rdx
movq %rax, %rcx
movq -0x18(%rbp), %rax
movq 0x160(%rax), %r8
movl $0x100, %esi            # imm = 0x100
leaq -0x564(%rbp), %r9
callq 0x100a0
cmpq $0x0, %rax
jne 0x41ea6
jmp 0x41e93
movq -0x18(%rbp), %rax
movl $0x6, 0x534(%rax)
jmp 0x4152e
jmp 0x41ea8
movq -0x18(%rbp), %rax
movl $0x8, 0x534(%rax)
jmp 0x4152e
movq -0x18(%rbp), %rax
cmpl $0x0, 0x538(%rax)
je 0x41ed1
movl $0x2, -0x4(%rbp)
jmp 0x41f2c
movq -0x18(%rbp), %rax
cmpq $0x0, 0x158(%rax)
je 0x41f1c
movq -0x18(%rbp), %rax
movq 0x158(%rax), %rdi
callq 0x105e0
movl %eax, %ecx
movl %ecx, -0x5f4(%rbp)
testl %eax, %eax
je 0x41f0a
jmp 0x41efd
movl -0x5f4(%rbp), %eax
subl $0x3, %eax
jne 0x41f13
jmp 0x41f0a
movl $0x9b918cca, -0x4(%rbp) # imm = 0x9B918CCA
jmp 0x41f2c
movl $0x9b918ccb, -0x4(%rbp) # imm = 0x9B918CCB
jmp 0x41f2c
movl $0x9b918ccb, -0x4(%rbp) # imm = 0x9B918CCB
jmp 0x41f2c
movl $0x16, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x600, %rsp            # imm = 0x600
popq %rbp
retq
nopl (%rax,%rax)