// File: /workspace/github_c_makefile_star2_O2/oridb[P]mc/parse/infer.c
// Function: inferexpr
static void
inferexpr(Node **np, Type *ret, int *sawret)
{
	Node **args;
	size_t i, nargs;
	Node *s, *n;
	Type *t, *b;
	int isconst;
	Stab *ns;

	n = *np;
	assert(n->type == Nexpr);
	args = n->expr.args;
	nargs = n->expr.nargs;
	infernode(&n->expr.idx, NULL, NULL);
	n = checkns(n, np);
	switch (exprop(n)) {
	case Oauto:	/* @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		constrain(n, t, traittab[Tcdisp]);
		n->expr.isconst = isconst;
		settype(n, t);
		break;
		/* all operands are same type */
	case Oadd:	/* @a + @a -> @a */
	case Osub:	/* @a - @a -> @a */
	case Omul:	/* @a * @a -> @a */
	case Odiv:	/* @a / @a -> @a */
	case Oneg:	/* -@a -> @a */
	case Oaddeq:	/* @a += @a -> @a */
	case Osubeq:	/* @a -= @a -> @a */
	case Omuleq:	/* @a *= @a -> @a */
	case Odiveq:	/* @a /= @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		constrain(n, t, traittab[Tcnum]);
		isconst = args[0]->expr.isconst;
		for (i = 1; i < nargs; i++) {
			isconst = isconst && args[i]->expr.isconst;
			t = unify(n, t, type(args[i]));
		}
		n->expr.isconst = isconst;
		settype(n, t);
		break;
	case Omod:	/* @a % @a -> @a */
	case Obor:	/* @a | @a -> @a */
	case Oband:	/* @a & @a -> @a */
	case Obxor:	/* @a ^ @a -> @a */
	case Obsl:	/* @a << @a -> @a */
	case Obsr:	/* @a >> @a -> @a */
	case Obnot:	/* ~@a -> @a */
	case Opreinc:	/* ++@a -> @a */
	case Opredec:	/* --@a -> @a */
	case Opostinc:	/* @a++ -> @a */
	case Opostdec:	/* @a-- -> @a */
	case Omodeq:	/* @a %= @a -> @a */
	case Oboreq:	/* @a |= @a -> @a */
	case Obandeq:	/* @a &= @a -> @a */
	case Obxoreq:	/* @a ^= @a -> @a */
	case Obsleq:	/* @a <<= @a -> @a */
	case Obsreq:	/* @a >>= @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		constrain(n, t, traittab[Tcnum]);
		constrain(n, t, traittab[Tcint]);
		isconst = args[0]->expr.isconst;
		for (i = 1; i < nargs; i++) {
			isconst = isconst && args[i]->expr.isconst;
			t = unify(n, t, type(args[i]));
		}
		n->expr.isconst = isconst;
		settype(n, t);
		break;
	case Oasn:	/* @a = @a -> @a */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		for (i = 1; i < nargs; i++)
			t = unify(n, t, type(args[i]));
		settype(n, t);
		if (args[0]->expr.isconst)
			fatal(n, "attempting to assign constant \"%s\"", ctxstr(args[0]));
		break;

		/* operands same type, returning bool */
	case Olor:	/* @a || @b -> bool */
		if (n->expr.ispat) {
			infersub(n, ret, sawret, &isconst);
			t = type(args[0]);
			for (i = 1; i < nargs; i++)
				t = unify(n, t, type(args[i]));
			n->expr.isconst = isconst;
			settype(n, t);
			break;
		}
	case Oland:	/* @a && @b -> bool */
	case Oeq:	/* @a == @a -> bool */
	case One:	/* @a != @a -> bool */
	case Ogt:	/* @a > @a -> bool */
	case Oge:	/* @a >= @a -> bool */
	case Olt:	/* @a < @a -> bool */
	case Ole:	/* @a <= @b -> bool */
		infersub(n, ret, sawret, &isconst);
		t = type(args[0]);
		for (i = 1; i < nargs; i++)
			unify(n, t, type(args[i]));
		settype(n, mktype(Zloc, Tybool));
		break;

	case Olnot:	/* !bool -> bool */
		infersub(n, ret, sawret, &isconst);
		t = unify(n, type(args[0]), mktype(Zloc, Tybool));
		settype(n, t);
		break;

		/* reach into a type and pull out subtypes */
	case Oaddr:	/* &@a -> @a* */
		infersub(n, ret, sawret, &isconst);
		settype(n, mktyptr(n->loc, type(args[0])));
		break;
	case Oderef:	/* @a# ->  @a */
		infersub(n, ret, sawret, &isconst);
		t = unify(n, type(args[0]), mktyptr(n->loc, mktyvar(n->loc)));
		settype(n, t->sub[0]);
		break;
	case Oidx:	/* @a[@b::tcint] -> @a */
		infersub(n, ret, sawret, &isconst);
		b = mktyvar(n->loc);
		t = mktyvar(n->loc);
		t->seqaux = b;
		unify(n, type(args[0]), t);
		constrain(n, type(args[0]), traittab[Tcidx]);
		constrain(n, type(args[1]), traittab[Tcint]);
		settype(n, b);
		break;
	case Oslice:	/* @a[@b::tcint,@b::tcint] -> @a[,] */
		infersub(n, ret, sawret, &isconst);
		b = mktyvar(n->loc);
		t = mktyvar(n->loc);
		t->seqaux = b;
		unify(n, type(args[0]), t);
		constrain(n, type(args[1]), traittab[Tcint]);
		constrain(n, type(args[1]), traittab[Tcnum]);
		constrain(n, type(args[2]), traittab[Tcint]);
		constrain(n, type(args[2]), traittab[Tcnum]);
		settype(n, mktyslice(n->loc, b));
		break;

		/* special cases */
	case Otupmemb:	/* @a.N -> @b, verify type(@a.N)==@b later */
	case Omemb:	/* @a.Ident -> @b, verify type(@a.Ident)==@b later */
		infersub(n, ret, sawret, &isconst);
		settype(n, mktyvar(n->loc));
		delayedcheck(n);
		break;
	case Osize:	/* sizeof(@a) -> size */
		settype(n, mktylike(n->loc, Tyuint));
		inferdecl(args[0]);
		n->expr.isconst = 1;
		break;
	case Ocall:	/* (@a, @b, @c, ... -> @r)(@a, @b, @c, ...) -> @r */
		infersub(n, ret, sawret, &isconst);
		unifycall(n);
		break;
	case Ocast:	/* (@a : @b) -> @b */
		infersub(n, ret, sawret, &isconst);
		delayedcheck(n);
		break;
	case Oret:	/* -> @a -> void */
		infersub(n, ret, sawret, &isconst);
		if (!ret)
			fatal(n, "returns are not valid near %s", ctxstr(n));
		if (sawret)
			*sawret = 1;
		t = unify(n, ret, type(args[0]));
		settype(n, t);
		break;
	case Obreak:
	case Ocontinue:
		/* nullary: nothing to infer. */
		settype(n, mktype(Zloc, Tyvoid));
		break;
	case Ojmp:	/* goto void* -> void */
		if (args[0]->type == Nlit && args[0]->lit.littype == Llbl)
			args[0] = getlbl(curstab(), args[0]->loc, args[0]->lit.lblname);
		infersub(n, ret, sawret, &isconst);
		settype(n, mktype(Zloc, Tyvoid));
		break;
	case Ovar:	/* a:@a -> @a */
		infersub(n, ret, sawret, &isconst);
		/* if we created this from a namespaced var, the type should be
		 * set, and the normal lookup is expected to fail. Since we're
		 * already done with this node, we can just return. */
		if (n->expr.type)
			return;
		ns = curstab();
		if (args[0]->name.ns)
			ns = getns(args[0]->name.ns);
		s = getdcl(ns, args[0]);
		if (!s)
			fatal(n, "undeclared var %s", ctxstr(args[0]));
		if (n->expr.param && !s->decl.trait)
			fatal(n, "var %s must refer to a trait decl", ctxstr(args[0]));
		pushenv(s->decl.env);
		initvar(n, s);
		popenv(s->decl.env);
		break;
	case Ogap:	/* _ -> @a */
		if (n->expr.type)
			return;
		n->expr.type = mktyvar(n->loc);
		break;
	case Oucon:	inferucon(n, &n->expr.isconst);	break;
	case Otup:	infertuple(n, &n->expr.isconst);	break;
	case Ostruct:	inferstruct(n, &n->expr.isconst);	break;
	case Oarr:	inferarray(n, &n->expr.isconst);	break;
	case Olit:	/* <lit>:@a::tyclass -> @a */
		infersub(n, ret, sawret, &isconst);
		switch (args[0]->lit.littype) {
		case Lfunc:
			infernode(&args[0]->lit.fnval, NULL, NULL);
			/* FIXME: env capture means this is non-const */
			n->expr.isconst = 1;
			break;
		case Llbl:
			s = getlbl(curstab(), args[0]->loc, args[0]->lit.lblname);
			if (!s)
				fatal(n, "unable to find label %s in function scope\n", args[0]->lit.lblname);
			*np = s;
			break;
		default:
			n->expr.isconst = 1;
			break;
		}
		settype(n, type(args[0]));
		break;
	case Otern:
		infersub(n, NULL, sawret, &isconst);
		unify(n, type(args[0]), mktype(n->loc, Tybool));
		unify(n, type(args[1]), type(args[2]));
		settype(n, type(args[1]));
		break;
	case Oundef:
		infersub(n, ret, sawret, &isconst);
		settype(n, mktype(n->loc, Tyvoid));
		break;
	case Odef:
	case Odead:
		   n->expr.type = mktype(n->loc, Tyvoid);
		   break;
	/* unexpected in frontend */
	case Obad: case Ocjmp: case Ovjmp: case Oset: case Oslbase: case Osllen:
	case Outag: case Ocallind: case Oblit: case Oclear: case Oudata: case Otrunc:
	case Oswiden: case Ozwiden: case Oint2flt: case Oflt2int: case Oflt2flt:
	case Ofadd: case Ofsub: case Ofmul: case Ofdiv: case Ofneg: case Ofeq:
	case Ofne: case Ofgt: case Ofge: case Oflt: case Ofle: case Oueq: case Oune:
	case Ougt: case Ouge: case Oult: case Oule: case Otupget: case Numops:
		die("Should not see %s in fe", opstr[exprop(n)]);
		break;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq (%rdi), %rbx
cmpl $0x8, 0x8(%rbx)
jne 0x1ad82
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %r12
movq 0x40(%rbx), %rbp
movq 0x50(%rbx), %r13
leaq 0x48(%rbx), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x16e0d
movq %rbx, %rdi
movq %r12, %rsi
callq 0x1af03
movq %rax, %rbx
movq %rax, %rdi
callq 0x1b5e6
cmpl $0x60, %eax
ja 0x1abb0
movl %eax, %eax
leaq 0x17820(%rip), %rcx     # 0x31b58
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
leaq 0x44e91(%rip), %r15     # 0x5f1f8
movq (%r15), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1a237
movq (%r15), %rax
movq 0x8(%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1a237
movq (%r13), %rax
movl 0x30(%rax), %r12d
pushq $0x1
popq %r15
cmpq %rbp, %r15
jae 0x1a451
movq (%r13,%r15,8), %rdi
testl %r12d, %r12d
je 0x1a3b6
xorl %r12d, %r12d
cmpl $0x0, 0x30(%rdi)
setne %r12b
jmp 0x1a3b9
xorl %r12d, %r12d
callq 0x19ae5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
movq %rax, %r14
incq %r15
jmp 0x1a396
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
leaq 0x44dfe(%rip), %rax     # 0x5f1f8
movq (%rax), %rax
movq (%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1a237
movq (%r13), %rax
movl 0x30(%rax), %r12d
pushq $0x1
popq %r15
cmpq %rbp, %r15
jae 0x1a451
movq (%r13,%r15,8), %rdi
testl %r12d, %r12d
je 0x1a433
xorl %r12d, %r12d
cmpl $0x0, 0x30(%rdi)
setne %r12b
jmp 0x1a436
xorl %r12d, %r12d
callq 0x19ae5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
movq %rax, %r14
incq %r15
jmp 0x1a417
movl %r12d, 0x30(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
jmp 0x1ac11
movq (%rbx), %rdi
pushq $0x1
popq %rsi
callq 0x1fdc2
movq %rax, 0x20(%rbx)
jmp 0x1abb0
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%rbx), %rdi
callq 0x2003f
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1aea7
jmp 0x1aa14
cmpl $0x0, 0x34(%rbx)
je 0x1a4f1
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
pushq $0x1
popq %r15
cmpq %rbp, %r15
jae 0x1acc5
movq (%r13,%r15,8), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
movq %rax, %r14
incq %r15
jmp 0x1a4c8
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
pushq $0x1
popq %r15
cmpq %rbp, %r15
jae 0x1a536
movq (%r13,%r15,8), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
incq %r15
jmp 0x1a514
pushq $0x2
jmp 0x1ac00
movl $0x1, 0x30(%rbx)
movq %rbx, %rdi
callq 0x1a296
xorl %r14d, %r14d
xorl %r15d, %r15d
cmpq 0x40(%rbx), %r15
jae 0x1a583
movq 0x50(%rbx), %rdi
addq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x16e0d
movq 0x50(%rbx), %rax
movq (%rax,%r14), %rax
cmpl $0x0, 0x30(%rax)
jne 0x1a57a
andl $0x0, 0x30(%rbx)
incq %r15
addq $0x8, %r14
jmp 0x1a552
movq (%rbx), %rdi
callq 0x2003f
jmp 0x1ac0b
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
pushq $0x1
popq %r15
cmpq %rbp, %r15
jae 0x1a5d8
movq (%r13,%r15,8), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
movq %rax, %r14
incq %r15
jmp 0x1a5b3
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1aea7
movq (%r13), %rdi
cmpl $0x0, 0x30(%rdi)
je 0x1abb0
callq 0x17f9e
leaq 0x17fb5(%rip), %rsi     # 0x325b2
jmp 0x1ae9f
movl $0x1, 0x30(%rbx)
movq 0x40(%rbx), %rdi
shlq $0x3, %rdi
callq 0x29aa7
movq %rax, %r14
xorl %r15d, %r15d
xorl %r12d, %r12d
movq 0x40(%rbx), %rdx
cmpq %rdx, %r12
jae 0x1a66e
movq 0x50(%rbx), %rdi
addq %r15, %rdi
xorl %r13d, %r13d
xorl %esi, %esi
xorl %edx, %edx
callq 0x16e0d
cmpl $0x0, 0x30(%rbx)
movq 0x50(%rbx), %rax
je 0x1a654
movq (%rax,%r15), %rcx
xorl %r13d, %r13d
cmpl $0x0, 0x30(%rcx)
setne %r13b
movl %r13d, 0x30(%rbx)
movq (%rax,%r15), %rdi
callq 0x19ae5
movq %rax, (%r14,%r15)
incq %r12
addq $0x8, %r15
jmp 0x1a61f
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x20240
jmp 0x1ac0b
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%rbx), %rdi
callq 0x2003f
movq %rax, %r14
movq (%rbx), %rdi
callq 0x2003f
movq %rax, %r15
movq %r14, 0x28(%rax)
movq (%r13), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x18a60
movq 0x8(%r13), %rdi
callq 0x19ae5
leaq 0x44b26(%rip), %r15     # 0x5f1f8
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a237
movq 0x8(%r13), %rdi
callq 0x19ae5
movq (%r15), %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a237
movq 0x10(%r13), %rdi
callq 0x19ae5
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a237
movq 0x10(%r13), %rdi
callq 0x19ae5
movq (%r15), %rcx
movq (%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a237
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x201d8
jmp 0x1ac0b
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%rbx), %rdi
callq 0x2003f
movq %rax, %r14
movq (%rbx), %rdi
callq 0x2003f
movq %rax, %r15
movq %r14, 0x28(%rax)
movq (%r13), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %rax, %rsi
movq %r15, %rdx
callq 0x18a60
movq (%r13), %rdi
callq 0x19ae5
leaq 0x44a61(%rip), %r15     # 0x5f1f8
movq (%r15), %rcx
movq 0x18(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a237
movq 0x8(%r13), %rdi
callq 0x19ae5
movq (%r15), %rcx
movq 0x8(%rcx), %rdx
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1a237
jmp 0x1a455
movl $0x1, 0x30(%rbx)
movq 0x50(%rbx), %r12
xorl %r13d, %r13d
pushq $0x1
popq %rbp
xorl %r14d, %r14d
cmpq 0x40(%rbx), %r13
jae 0x1ac41
movq (%r12,%r13,8), %rax
movq 0x48(%rax), %rdi
testq %rdi, %rdi
je 0x1a838
movl %ebp, %esi
callq 0x12bd3
movq (%r12,%r13,8), %rcx
movq %rax, 0x48(%rcx)
movq (%r12,%r13,8), %rax
movq 0x48(%rax), %r15
movq %r15, %rdi
callq 0x1b5e6
cmpl $0x35, %eax
jne 0x1adc4
movq 0x50(%r15), %rax
movq (%rax), %rax
movl 0x18(%rax), %ecx
cmpl $0x2, %ecx
je 0x1a83d
testl %ecx, %ecx
jne 0x1ae03
movl 0x30(%rax), %eax
jmp 0x1a841
incq %r14
jmp 0x1a84f
movq 0x30(%rax), %rax
leaq 0x1(%rax), %rcx
cmpq %r14, %rax
cmovlq %r14, %rcx
movq %rcx, %r14
incq %r13
jmp 0x1a7dd
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
testq %r15, %r15
je 0x1ae1f
testq %r14, %r14
je 0x1a87c
movl $0x1, (%r14)
movq (%r13), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %r15, %rsi
jmp 0x1ab0b
leaq 0x4(%rsp), %r12
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %r12, %rcx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
leaq 0x4493f(%rip), %rax     # 0x5f1f8
movq (%rax), %rax
movq 0x38(%rax), %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1a237
movl (%r12), %eax
jmp 0x1acc9
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
movl 0x18(%rdi), %eax
cmpl $0x6, %eax
je 0x1ad4f
cmpl $0x5, %eax
jne 0x1a909
addq $0x30, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x16e0d
movl $0x1, 0x30(%rbx)
jmp 0x1ad74
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
cmpq $0x0, 0x20(%rbx)
jne 0x1abb0
callq 0x1d859
movq (%r13), %rsi
movq 0x18(%rsi), %rdi
testq %rdi, %rdi
je 0x1a94e
callq 0x1da38
movq (%r13), %rsi
movq %rax, %rdi
callq 0x1dc67
testq %rax, %rax
je 0x1ae69
movq %rax, %r14
cmpq $0x0, 0x28(%rbx)
je 0x1a974
cmpq $0x0, 0x40(%r14)
je 0x1ae8f
movq 0x38(%r14), %rdi
callq 0x1d970
movq %rbx, %rdi
movq %r14, %rsi
callq 0x1b1c1
movq 0x38(%r14), %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1d9bb
cmpq $0x0, 0x20(%rbx)
jne 0x1abb0
movq (%rbx), %rdi
callq 0x2003f
jmp 0x1a46b
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%rbx), %rdi
pushq $0x1
popq %rsi
jmp 0x1ac06
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x2020c
jmp 0x1ac0b
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1a296
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
movq (%rbx), %rdi
pushq $0x2
popq %rsi
callq 0x1fdc2
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
movq 0x8(%r13), %rdi
callq 0x19ae5
movq %rax, %r14
movq 0x10(%r13), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
movq 0x8(%r13), %rdi
jmp 0x1ad78
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
movq (%rbx), %rdi
callq 0x2003f
movq (%rbx), %rdi
movq %rax, %rsi
callq 0x2020c
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
movq 0x68(%rax), %rax
movq (%rax), %rsi
jmp 0x1ad47
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq (%r13), %rdi
callq 0x19ae5
movq %rax, %r14
pushq $0x2
popq %rsi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1fdc2
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
jmp 0x1ac0b
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
movq 0x50(%rbx), %rax
movq (%rax), %rdi
callq 0x19ae5
cmpl $0x19, (%rax)
jne 0x1acd1
movq 0x50(%rbx), %r14
addq $0x8, %r14
movq (%rbx), %rdi
movq 0x40(%rbx), %r15
decq %r15
callq 0x2003f
movq (%rbx), %rdi
movq %r14, %rsi
movq %r15, %rdx
movq %rax, %rcx
callq 0x2028c
movq %rax, %r14
movq 0x50(%rbx), %rax
movq (%rax), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x18a60
jmp 0x1ace5
movq (%rbx), %rdi
pushq $0xc
popq %rsi
callq 0x19be5
movq %rbx, %rdi
movq %rax, %rsi
callq 0x1aea7
movq (%r13), %rdi
callq 0x19e74
movl $0x1, 0x30(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq (%r13), %rax
cmpl $0x9, 0x8(%rax)
jne 0x1abeb
cmpl $0x6, 0x18(%rax)
jne 0x1abeb
callq 0x1d859
movq (%r13), %rcx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdx
movq %rax, %rdi
callq 0x1dd42
movq %rax, (%r13)
leaq 0x4(%rsp), %rcx
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x1b3ae
pushq $0x1
popq %rsi
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
callq 0x1fdc2
movq %rbx, %rdi
movq %rax, %rsi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1aea7
movq %rbx, %rsi
addq $0x30, %rsi
movq %rbx, %rdi
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b00f
movq (%rbx), %rdi
movq %r14, %rsi
callq 0x1b6fc
movq %rax, %r14
movq (%rbx), %rdi
callq 0x2003f
movq (%rbx), %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x20198
movq %rax, %r14
xorl %r12d, %r12d
xorl %r13d, %r13d
cmpq 0x40(%rbx), %r13
jae 0x1a455
movq 0x50(%rbx), %rdi
addq %r12, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x16e0d
movq 0x68(%r14), %rax
movq (%rax), %r15
movq 0x50(%rbx), %rax
movq (%rax,%r12), %rdi
callq 0x19ae5
movq %rbx, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x18a60
movq 0x50(%rbx), %rax
movq (%rax,%r12), %rax
cmpl $0x0, 0x30(%rax)
jne 0x1acbc
andl $0x0, 0x30(%rbx)
incq %r13
addq $0x8, %r12
jmp 0x1ac6e
movl 0x4(%rsp), %eax
movl %eax, 0x30(%rbx)
jmp 0x1a455
movq %rax, %r14
movq %rax, %rdi
callq 0x1fcd8
cmpl $0x13, (%rax)
jne 0x1ae30
pushq $0x1
popq %r15
movq 0x70(%r14), %rax
cmpq 0x40(%rbx), %r15
jae 0x1ad2e
cmpq %rax, %r15
je 0x1add5
movq 0x68(%r14), %rcx
movq (%rcx,%r15,8), %r12
cmpl $0x11, (%r12)
je 0x1ad32
movq 0x50(%rbx), %rax
movq (%rax), %r13
movq (%rax,%r15,8), %rdi
callq 0x19ae5
movq %r13, %rdi
movq %r12, %rsi
movq %rax, %rdx
callq 0x18a60
incq %r15
jmp 0x1ace9
movq 0x68(%r14), %rcx
cmpq %rax, %r15
jae 0x1ad44
movq (%rcx,%r15,8), %rax
cmpl $0x11, (%rax)
jne 0x1ae41
movq (%rcx), %rsi
movq %rbx, %rdi
jmp 0x1ac11
callq 0x1d859
movq (%r13), %rcx
movq (%rcx), %rsi
movq 0x38(%rcx), %rdx
movq %rax, %rdi
callq 0x1dd42
testq %rax, %rax
je 0x1ae7b
movq %rax, (%r12)
movq (%r13), %rdi
callq 0x19ae5
jmp 0x1ac0b
leaq 0x13b92(%rip), %rdi     # 0x2e91b
leaq 0x174f8(%rip), %rsi     # 0x32288
leaq 0x177f4(%rip), %rcx     # 0x3258b
movl $0x681, %edx            # imm = 0x681
callq 0x4180
movq %rbx, %rdi
callq 0x1b5e6
movl %eax, %eax
leaq 0x425ee(%rip), %rcx     # 0x5d3a0
movq (%rcx,%rax,8), %rsi
leaq 0x17895(%rip), %rdi     # 0x32652
xorl %eax, %eax
callq 0x1205c
movq %r15, %rdi
callq 0x17f9e
leaq 0x178e1(%rip), %rsi     # 0x326b4
jmp 0x1ae12
movq 0x50(%rbx), %rax
movq (%rax), %rdi
callq 0x17f9e
movq 0x70(%r14), %rcx
decq %rcx
movq 0x40(%rbx), %r8
decq %r8
leaq 0x1788f(%rip), %rsi     # 0x32685
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x120fd
movq %r15, %rdi
callq 0x17f9e
leaq 0x178cf(%rip), %rsi     # 0x326e1
movq %r15, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x120fd
movq %rbx, %rdi
callq 0x17f9e
leaq 0x177a7(%rip), %rsi     # 0x325d5
jmp 0x1ae9f
movq %r14, %rdi
callq 0x21009
leaq 0x1782b(%rip), %rsi     # 0x3266a
jmp 0x1ae9f
movq 0x50(%rbx), %rax
movq (%rax), %rdi
callq 0x17f9e
movq 0x70(%r14), %rcx
decq %rcx
decq %r15
leaq 0x17827(%rip), %rsi     # 0x32685
movq %rbx, %rdi
movq %rax, %rdx
movq %r15, %r8
jmp 0x1adfc
movq (%r13), %rdi
callq 0x17f9e
leaq 0x1777a(%rip), %rsi     # 0x325f3
jmp 0x1ae9f
movq (%r13), %rax
movq 0x38(%rax), %rdx
leaq 0x1779d(%rip), %rsi     # 0x32627
movq %rbx, %rdi
jmp 0x1ae18
movq (%r13), %rdi
callq 0x17f9e
leaq 0x17766(%rip), %rsi     # 0x32605
movq %rbx, %rdi
jmp 0x1ae15